/* Blueline Guest: the phone page behind the TV's QR code (canvas: MStay, MService, MRequestStatus, MChat, MExpired). */
:root {
  --night: #0A1020; --blue: #1B3FA0; --blue-dark: #16357F; --accent: #6FA3FF; --soft: #9CC0FF; --white: #F7F9FC;
  --info-bg: #DCE8FF; --glass: rgba(10,16,32,.55); --line: rgba(247,249,252,.18);
  --mono: 'IBM Plex Mono', ui-monospace, monospace; --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--night); color: var(--white); font: 400 15px/1.5 'Inter', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2 { margin: 0; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wall { position: fixed; inset: 0; z-index: -2; background: var(--night) url('/img/villa.webp') 72% 50% / cover; }
.wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,32,.35) 0%, rgba(10,16,32,.25) 18%, rgba(10,16,32,.86) 42%, rgba(10,16,32,.97) 100%); }
.wall.dim::after { background: rgba(10,16,32,.92); }
.page { max-width: 480px; margin: 0 auto; padding: 16px 20px calc(32px + env(safe-area-inset-bottom)); min-height: 100vh; display: flex; flex-direction: column; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.top img { height: 22px; width: auto; display: block; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(10,16,32,.5); backdrop-filter: blur(16px); border: 1px solid rgba(247,249,252,.25); font: 600 13px var(--mono); display: flex; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; background: none; border: 0; cursor: pointer; }

.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; }
.hero { margin-top: 110px; }
.hero h1 { margin-top: 6px; font-size: 38px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.meta { margin-top: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; font-weight: 600; color: rgba(247,249,252,.9); }
.dia { width: 6px; height: 6px; transform: rotate(45deg); background: var(--accent); display: inline-block; }
.title { margin-top: 18px; }
.title h1 { margin-top: 6px; font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.title p { margin: 6px 0 0; font-size: 15px; color: rgba(247,249,252,.82); }

.stack { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.glass { padding: 16px 18px; border-radius: 22px; background: var(--glass); backdrop-filter: blur(22px) saturate(1.2); border: 1px solid var(--line); }
.k { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--soft); text-transform: uppercase; }
.v { margin-top: 4px; font-size: 17px; font-weight: 800; }
.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bars { margin-top: 14px; display: grid; gap: 6px; }
.bars span { height: 6px; border-radius: 999px; background: rgba(247,249,252,.2); }
.bars span.on { background: var(--soft); }

.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { min-height: 104px; padding: 14px; border-radius: 22px; background: var(--glass); backdrop-filter: blur(22px); border: 1px solid var(--line); color: var(--white); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 800; transition: transform .12s var(--ease); }
.tile:active { transform: scale(.97); }
.tile.main { background: var(--white); color: var(--night); box-shadow: 0 0 0 4px rgba(111,163,255,.35), 0 14px 30px rgba(0,0,0,.45); }
.tile .ic { width: 36px; height: 36px; border-radius: 50%; background: rgba(247,249,252,.14); display: flex; align-items: center; justify-content: center; }
.tile.main .ic { background: var(--blue); color: var(--white); }
.foot { margin-top: auto; padding-top: 28px; text-align: center; font-size: 12px; color: rgba(247,249,252,.6); }

/* Lists and forms */
.list { display: flex; flex-direction: column; gap: 10px; }
.item { width: 100%; min-height: 64px; padding: 12px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; cursor: pointer; }
.item .ic { width: 40px; height: 40px; border-radius: 50%; background: rgba(247,249,252,.12); display: flex; align-items: center; justify-content: center; flex: none; }
.item .t { font-weight: 800; }
.item .d { font-size: 13px; color: rgba(247,249,252,.75); }
.item .chev { margin-left: auto; opacity: .6; }
.label { margin-top: 18px; font-size: 11px; font-weight: 800; letter-spacing: .16em; color: rgba(247,249,252,.82); }
.opt { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); color: var(--white); display: flex; align-items: center; gap: 12px; font: 700 15px 'Inter', Arial, sans-serif; cursor: pointer; text-align: left; }
.opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(247,249,252,.6); flex: none; display: flex; align-items: center; justify-content: center; }
.opt[aria-checked="true"] { background: var(--white); color: var(--night); border-color: var(--white); }
.opt[aria-checked="true"] .radio { border-color: var(--blue); background: var(--blue); color: #fff; }
.qrow { min-height: 60px; padding: 0 8px 0 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(247,249,252,.5); background: transparent; color: var(--white); font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty button.add { background: var(--blue); border-color: var(--blue); }
.qty button:disabled { opacity: .35; }
.qty .n { width: 28px; text-align: center; font: 600 18px var(--mono); }
.wins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.field { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(247,249,252,.3); background: rgba(10,16,32,.6); color: var(--white); font: 500 16px 'Inter', Arial, sans-serif; }
textarea.field { min-height: 88px; resize: vertical; }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(111,163,255,.25); }
.btn { width: 100%; min-height: 52px; border-radius: 999px; border: 0; background: var(--white); color: var(--night); font: 800 16px 'Inter', Arial, sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .1s, opacity .15s; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--white); border: 1px solid rgba(247,249,252,.5); }
.sticky { position: sticky; bottom: 0; padding: 14px 0 calc(6px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(10,16,32,0) 0%, var(--night) 40%); margin-top: 18px; }
.err { margin-top: 8px; font-size: 13px; font-weight: 600; color: #F7DADF; }

/* Status */
.check { width: 64px; height: 64px; border-radius: 50%; background: var(--info-bg); color: var(--blue-dark); display: flex; align-items: center; justify-content: center; }
.refline { margin-top: 14px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(247,249,252,.08); border: 1px solid var(--line); font-size: 13px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 0 0 18px 30px; font-size: 15px; color: rgba(247,249,252,.6); }
.steps li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(247,249,252,.4); }
.steps li::after { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: rgba(247,249,252,.2); }
.steps li:last-child::after { display: none; }
.steps li.on { color: var(--white); font-weight: 700; }
.steps li.on::before { background: var(--soft); border-color: var(--soft); }
.pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--info-bg); color: var(--blue-dark); white-space: nowrap; }
.pill.ok { background: #E3F1E8; color: #1E5B3A; }
.pill.wait { background: #FBEFD5; color: #7A4800; }

/* Chat */
.chat { flex: 1; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 18px; background: rgba(247,249,252,.1); font-size: 15px; }
.bubble.guest { align-self: flex-end; background: var(--blue); }
.bubble .m { margin-top: 4px; font-size: 11px; color: rgba(247,249,252,.7); }
.day { align-self: center; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: rgba(247,249,252,.6); }
.quick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.quick button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(247,249,252,.35); background: rgba(10,16,32,.6); color: var(--white); font: 600 14px 'Inter', Arial, sans-serif; cursor: pointer; }
.composer { display: flex; gap: 8px; margin-top: 8px; }
.composer .field { min-height: 48px; }
.composer .btn { width: auto; padding: 0 18px; }

.center { margin: auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.skel { height: 104px; border-radius: 22px; background: linear-gradient(90deg, rgba(247,249,252,.06) 25%, rgba(247,249,252,.12) 50%, rgba(247,249,252,.06) 75%); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.fade { animation: f .25s var(--ease); }
@keyframes f { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
