/* =====================================================================
   فطارك — design system
   Rule: clean · simple · professional. White, black and gold only.
   ===================================================================== */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-2: #2b2b2b;
  --muted: #6f6f73;
  --line: #e4e4e4;
  --line-2: #cfcfcf;
  --soft: #f5f5f5;
  --gold: #ffbc0d;
  --gold-2: #ffcd45;
  --gold-soft: #fff5d9;
  --gold-ink: #7a5800;
  --r: 16px;
  --r-sm: 12px;
  --pill: 999px;
  --shadow: 0 2px 14px rgba(0, 0, 0, .07);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, .10);
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --nav-h: 76px;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.55; font-size: 16px; min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 24px + var(--safe-b));
}
a { color: var(--ink); }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 1.75rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .6em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: .9rem; }
.big { font-size: 1.15rem; font-weight: 700; }
.ok { color: var(--ink); } .bad, .warn { color: var(--gold-ink); }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.grow { flex: 1; min-width: 0; }
.ic { flex-shrink: 0; display: block; }
[hidden] { display: none !important; }

/* ---------- logo (typographic) ---------- */
.logo { display: inline-flex; align-items: baseline; font-weight: 700; font-size: 1.55rem; line-height: 1; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo-word { position: relative; }
.logo-moon { width: .34em; height: .34em; border-radius: 50%; background: var(--gold); margin-inline-start: .12em; transform: translateY(-.55em); }
.logo.lg { font-size: 3rem; }
.logo-img { height: 34px; width: auto; display: block; }
.logo-img.lg { height: 64px; margin: 0 auto; }
.ticket .logo { color: #fff; font-size: 1.35rem; }

/* ---------- header & nav ---------- */
.header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); padding-top: env(safe-area-inset-top, 0); }
.header-inner { max-width: 760px; margin: 0 auto; padding: .7rem 1.1rem; display: flex; align-items: center; justify-content: space-between; }
.brand { text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: .35rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.badge-wrap { position: relative; }
.dot { position: absolute; top: 3px; inset-inline-end: 3px; background: var(--gold); color: var(--ink); font-size: .66rem; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }

.bottom-nav { position: fixed; z-index: 30; inset-inline: 12px; bottom: calc(10px + var(--safe-b)); max-width: 560px; margin: 0 auto; background: #fff; border-radius: 30px; box-shadow: 0 4px 24px rgba(0, 0, 0, .12); display: flex; justify-content: space-around; padding: 7px; height: var(--nav-h); }
.nav-item { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--ink); font-size: .74rem; font-weight: 600; border-radius: 24px; transition: background .15s; }
.nav-item .ic { width: 25px; height: 25px; }
.nav-item.active { background: var(--soft); }
.nav-item .dot { top: 6px; inset-inline-end: calc(50% - 22px); }

.main { max-width: 760px; margin: 0 auto; }
.page { padding: .6rem 1.1rem 2rem; }
.page.center { text-align: center; padding-top: 4rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin: .4rem 0 1.2rem; }
.page-head h1 { margin: 0; }
.topbar { display: flex; margin: .3rem 0 .8rem; }
.back-btn { width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: inline-grid; place-items: center; color: var(--ink); text-decoration: none; border: 0; cursor: pointer; flex-shrink: 0; }
.back-link { display: inline-flex; align-items: center; gap: .3rem; margin-bottom: .8rem; text-decoration: none; font-weight: 600; color: var(--muted); }
.section-label { font-size: 1.15rem; font-weight: 700; margin: 1.6rem 0 .8rem; display: flex; justify-content: space-between; align-items: center; }
.section-label a, .section-label button { font-size: .92rem; font-weight: 500; }

/* ---------- buttons ---------- */
.btn { font: inherit; font-weight: 700; border: 0; border-radius: var(--pill); padding: .75rem 1.3rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; text-decoration: none; transition: transform .08s, opacity .2s, background .15s; min-height: 48px; color: var(--ink); background: transparent; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-gold, .btn-primary { background: var(--gold); color: var(--ink); }
.btn-gold:hover, .btn-primary:hover { background: var(--gold-2); }
.btn-dark, .btn-ok { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.danger { color: var(--ink); text-decoration: underline; }
.btn-link { font: inherit; cursor: pointer; background: none; border: 0; color: var(--ink); padding: .3rem .2rem; min-height: auto; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.btn-sm { padding: .4rem .95rem; min-height: 38px; font-size: .9rem; }
.btn-lg { padding: .95rem 1.4rem; font-size: 1.08rem; min-height: 58px; }
.btn-block { width: 100%; }
.icon-btn { background: none; border: 0; font: inherit; width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.icon-btn:hover { background: var(--soft); }
.row-gap { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.2rem; }

.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
.spinner.big { width: 30px; height: 30px; color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.loader { display: grid; place-items: center; padding: 5rem 0; }

/* ---------- sticky call-to-action (like the reference) ---------- */
.cta-bar { position: fixed; z-index: 25; inset-inline: 0; bottom: calc(var(--nav-h) + 18px + var(--safe-b)); padding: 1.6rem 1.1rem .4rem; background: linear-gradient(rgba(255, 255, 255, 0), #fff 38%); max-width: 760px; margin: 0 auto; }
.cta-bar .btn { width: 100%; min-height: 58px; font-size: 1.08rem; }
.cta-hint { text-align: center; font-size: .85rem; color: var(--muted); margin-top: .35rem; min-height: 1.2em; }
.has-cta { padding-bottom: 9rem; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 1rem; }
.field-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.hint { display: block; color: var(--muted); font-size: .84rem; margin-top: .3rem; }
.input { width: 100%; font: inherit; font-size: 16px; padding: .85rem 1rem; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; color: var(--ink); transition: border-color .15s; min-height: 54px; }
.input:focus { outline: none; border-color: var(--ink); }
.input:disabled { background: var(--soft); color: var(--muted); }
.input::placeholder { color: #a5a5aa; }
.input-sm { padding: .4rem .6rem; width: auto; min-height: 40px; }
textarea.input { resize: vertical; min-height: 90px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-inline-start: 2.6rem; }
.input-group { display: flex; gap: .5rem; }
.input-group .input { flex: 1; }
.check { display: flex; align-items: flex-start; gap: .65rem; margin: .6rem 0 1rem; cursor: pointer; font-weight: 500; font-size: .95rem; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); flex-shrink: 0; margin: .1rem 0 0; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 0 .8rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.code-input { text-align: center; font-size: 1.9rem; letter-spacing: .5em; font-weight: 700; margin-bottom: 1rem; }
.switch { position: relative; width: 46px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 14px; transition: .2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 22px; height: 22px; top: 3px; inset-inline-start: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::before { transform: translateX(-18px); }

/* ---------- option cards (selectable, like the reference) ---------- */
.options { display: flex; flex-direction: column; gap: .75rem; }
.option { display: flex; align-items: center; gap: .9rem; width: 100%; font: inherit; text-align: start; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 1rem 1.1rem; cursor: pointer; text-decoration: none; transition: border-color .12s; min-height: 72px; }
.option:hover { border-color: #9a9a9a; }
.option.selected { border: 2.5px solid var(--ink); padding: calc(1rem - 1px) calc(1.1rem - 1px); }
.option .ic { width: 30px; height: 30px; }
.option-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.option-body strong { font-weight: 600; }
.option-body small { color: var(--muted); }
.option-thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--soft) center / cover; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; }
.tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); flex-shrink: 0; display: grid; place-items: center; color: transparent; }
.option.selected .tick { background: var(--gold); border-color: #d99e00; color: var(--ink); }
.tick .ic { width: 16px; height: 16px; stroke-width: 2.4; }

/* ---------- cards & misc ---------- */
.card { background: #fff; border-radius: var(--r); border: 1.5px solid var(--line); padding: 1.1rem; margin-bottom: 1rem; }
.card.flat { border: 0; background: var(--soft); }
.list { display: flex; flex-direction: column; gap: .7rem; }
.list > .card { margin-bottom: 0; }
.section-title { margin: 1.6rem 0 .8rem; font-size: 1.1rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .7rem; border-radius: var(--pill); font-size: .78rem; font-weight: 600; background: var(--soft); color: var(--ink); border: 0; font-family: inherit; text-decoration: none; cursor: default; margin-inline-start: .35rem; white-space: nowrap; }
button.chip { cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; }
.chip-gold { background: var(--gold-soft); color: var(--gold-ink); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; }
.chips .chip { margin: 0; padding: .5rem .95rem; font-size: .88rem; border: 1.5px solid var(--line-2); background: #fff; }
.chips .chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.badge { display: inline-block; padding: .22rem .7rem; border-radius: var(--pill); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--ink); color: #fff; }
.badge-ok2 { background: var(--gold); color: var(--ink); }
.badge-warn { background: var(--gold-soft); color: var(--gold-ink); }
.badge-info { background: var(--gold-soft); color: var(--gold-ink); }
.badge-bad { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.badge-muted { background: var(--soft); color: var(--muted); }
.alert { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; margin-bottom: 1rem; font-size: .93rem; background: var(--soft); color: var(--ink); }
.alert .ic { margin-top: .1rem; }
.alert-warn, .alert-info { background: var(--gold-soft); color: var(--ink); }
.alert-bad { background: #fff; border: 1.5px solid var(--ink); }
.alert-ok { background: var(--soft); }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.empty-moon { width: 64px; height: 64px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; }
.empty-moon .ic { width: 30px; height: 30px; }
.copyable { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.seg { display: flex; background: var(--soft); border-radius: var(--pill); padding: 4px; gap: 2px; margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: 1; font: inherit; font-weight: 600; border: 0; background: none; padding: .5rem .9rem; border-radius: var(--pill); cursor: pointer; color: var(--muted); white-space: nowrap; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.seg-sm button { padding: .35rem .7rem; font-size: .85rem; }
.tabs { display: flex; gap: .2rem; overflow-x: auto; margin: .6rem 0 1.2rem; scrollbar-width: none; border-bottom: 1.5px solid var(--line); }
.tabs button { font: inherit; font-weight: 600; border: 0; background: none; padding: .7rem .9rem; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--ink); }
.tabs button:disabled { opacity: .35; }
.row-link { display: flex; align-items: center; gap: .9rem; padding: 1rem .1rem; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); background: none; border-inline: 0; border-top: 0; width: 100%; font: inherit; cursor: pointer; text-align: start; }
.row-link > span:first-of-type { flex: 1; }
.row-link .ic:last-child { color: var(--muted); width: 18px; height: 18px; }
.links { padding-top: .2rem; padding-bottom: .2rem; }
.links .row-link:last-child { border-bottom: 0; }
.line { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.kv { list-style: none; padding: 0; margin: .4rem 0; }
.kv li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.kv li:last-child { border-bottom: 0; }
.kv li > span:last-child { text-align: left; font-weight: 600; }

/* ---------- toast & modal ---------- */
#toasts { position: fixed; top: calc(70px + env(safe-area-inset-top, 0px)); inset-inline: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; gap: .4rem; pointer-events: none; padding: 0 1rem; }
.toast { background: var(--ink); color: #fff; padding: .75rem 1.2rem; border-radius: var(--pill); box-shadow: var(--shadow-lg); font-weight: 500; font-size: .95rem; max-width: 520px; opacity: 0; transform: translateY(-8px); transition: .25s; pointer-events: auto; display: flex; align-items: center; gap: .5rem; }
.toast.show { opacity: 1; transform: none; }
.toast-ok .ic, .toast-warn .ic, .toast-bad .ic { color: var(--gold); }
.modal-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@media (min-width: 640px) { .modal-overlay { align-items: center; } }
.modal { background: #fff; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; border-radius: 24px 24px 0 0; padding: 1.2rem 1.2rem calc(1.2rem + var(--safe-b)); animation: up .2s; }
@media (min-width: 640px) { .modal { border-radius: 24px; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.modal-head h3 { margin: 0; font-size: 1.2rem; }
.modal-actions { display: flex; gap: .5rem; margin-top: 1.2rem; }
.modal-actions .btn { flex: 1; }
.full-img { width: 100%; border-radius: 12px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

/* ---------- home ---------- */
.home-title { font-size: 2rem; margin: 1rem 0 .3rem; }
.home-sub { color: var(--muted); margin-bottom: 1.4rem; }
.rest-thumb-letter { color: var(--ink); }
.price-line { font-size: .88rem; color: var(--ink-2); }
.install-banner { display: flex; align-items: center; gap: .8rem; background: var(--soft); margin: 0 0 1.2rem; padding: .8rem .9rem; border-radius: var(--r); }
.install-icon img { width: 44px; height: 44px; border-radius: 11px; display: block; }
.install-text { flex: 1; display: flex; flex-direction: column; font-size: .92rem; }
.install-text small { color: var(--muted); }
.how-line { display: flex; gap: 1rem; color: var(--muted); font-size: .85rem; margin: 1.4rem 0 0; justify-content: center; flex-wrap: wrap; }
.how-line span { display: inline-flex; align-items: center; gap: .3rem; }
.how-line .ic { width: 17px; height: 17px; }

/* ---------- location & home feed ---------- */
.loc-chip { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; color: var(--ink); margin: .2rem 0 1rem; padding: .35rem .2rem; }
.loc-chip .rot { transform: rotate(-90deg); color: var(--muted); }
.where-logo { text-align: center; margin: 1rem 0 .6rem; }
.or { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .88rem; margin: 1.3rem 0 1rem; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.banner-wrap { margin: 0 0 1.4rem; }
.banners { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 20px; }
.banners::-webkit-scrollbar { display: none; }
.banner { position: relative; flex: 0 0 100%; scroll-snap-align: start; display: block; aspect-ratio: 2 / 1; background: var(--soft); }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-dots { display: flex; justify-content: center; gap: 6px; margin-top: .6rem; }
.banner-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: width .2s; }
.banner-dots span.on { width: 18px; background: var(--ink); }
.hscroll { display: flex; gap: .8rem; overflow-x: auto; scrollbar-width: none; margin: 0 -1.1rem; padding: 0 1.1rem .3rem; }
.hscroll::-webkit-scrollbar { display: none; }
.pop-card { flex: 0 0 138px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .15rem; }
.pop-cover { position: relative; height: 104px; border-radius: 16px; background: var(--soft) center / cover; display: grid; place-items: center; font-weight: 700; font-size: 1.8rem; margin-bottom: .35rem; }
.pop-rank { position: absolute; top: 8px; inset-inline-start: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.pop-card strong { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-card small { color: var(--muted); font-size: .8rem; }

/* admin: banners & areas */
.banner-admin .banner-thumb { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 12px; display: block; margin-bottom: .8rem; background: var(--soft); }
.banner-admin.off, .row-link.off { opacity: .5; }
.img-prev.wide { height: auto; aspect-ratio: 2 / 1; display: grid; place-items: center; color: var(--muted); font-size: .9rem; border: 1.5px dashed var(--line-2); }

/* menu import */
.menu-photos { display: flex; gap: .6rem; flex-wrap: wrap; margin: .6rem 0; }
.menu-photo { position: relative; width: 88px; height: 112px; border-radius: 12px; overflow: hidden; background: var(--soft); }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-photo .icon-btn { position: absolute; top: 4px; inset-inline-end: 4px; width: 30px; height: 30px; background: #fff; box-shadow: var(--shadow); }
.import-list { display: flex; flex-direction: column; max-height: 55vh; overflow-y: auto; margin: 0 -.2rem; }
.import-row { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .2rem; border-bottom: 1px solid var(--line); }
.import-row.off { opacity: .45; }
.import-row > input { width: 22px; height: 22px; margin-top: .7rem; accent-color: var(--ink); flex-shrink: 0; }
.import-fields { flex: 1; display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.import-meta { display: grid; grid-template-columns: 96px 1fr; gap: .4rem; }
.import-fields .input-sm { width: 100%; min-height: 42px; }
.import-flags { display: flex; gap: 1rem; font-size: .85rem; }
.import-flags label { display: inline-flex; align-items: center; gap: .3rem; }
.import-flags input { accent-color: var(--ink); }
.menu-viewer img { width: 100%; border-radius: 12px; display: block; margin-bottom: .6rem; }

/* ---------- booking wizard ---------- */
.wiz-top { display: flex; align-items: center; gap: .8rem; margin: .4rem 0 1rem; }
.progress { display: flex; gap: 6px; flex: 1; }
.progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.progress span.on { background: var(--ink); }
.wiz-rest { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; }
.wiz-rest .option-thumb { width: 48px; height: 48px; }
.wiz-rest strong { display: block; font-size: 1.05rem; }
.wiz-title { font-size: 1.7rem; margin: 0 0 1.2rem; }
.guest-row { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.guest-row:last-of-type { border-bottom: 0; }
.guest-row strong { font-weight: 600; display: block; }
.guest-row small { color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.stepper-btn { width: 40px; height: 40px; border: 1.5px solid var(--line-2); border-radius: 50%; background: #fff; cursor: pointer; color: var(--ink); display: grid; place-items: center; padding: 0; }
.stepper-btn:hover:not(:disabled) { border-color: var(--ink); }
.stepper-btn:disabled { opacity: .3; cursor: default; }
.stepper-btn .ic { width: 18px; height: 18px; }
.stepper-val { min-width: 28px; text-align: center; font-weight: 700; font-size: 1.1rem; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .55rem; transition: opacity .2s; }
.days.loading { opacity: .45; pointer-events: none; }
.day { font: inherit; border: 1.5px solid var(--line-2); background: #fff; border-radius: 14px; padding: .55rem .3rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; color: var(--ink); line-height: 1.35; }
.day strong { font-size: .95rem; font-weight: 600; }
.day small { font-size: .72rem; color: var(--muted); }
.day-top { font-size: .72rem; color: var(--muted); min-height: 1em; }
.day.selected { border: 2.5px solid var(--ink); padding: calc(.55rem - 1px) calc(.3rem - 1px); background: var(--gold-soft); }
.day.full { background: var(--soft); color: #a5a5aa; border-color: var(--soft); }
.day.full small { color: #a5a5aa; }
.menu-group h4 { margin: 1.4rem 0 .3rem; font-size: 1rem; color: var(--muted); font-weight: 600; }
.menu-group:first-child h4 { margin-top: 0; }
.menu-item { display: flex; align-items: center; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.menu-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.menu-info strong { font-weight: 600; }
.menu-info small { font-size: .84rem; }
.menu-info .price { font-weight: 600; margin-top: .15rem; }
.menu-info .chip { margin: .25rem 0 0; align-self: flex-start; }
.sum-row { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .95rem; }
.sum-total { display: flex; justify-content: space-between; align-items: center; padding: .9rem 0 .3rem; margin-top: .4rem; border-top: 1.5px solid var(--ink); font-weight: 700; font-size: 1.1rem; }
.sum-rest { display: flex; justify-content: space-between; color: var(--muted); font-size: .92rem; }
.review-list { list-style: none; padding: 0; margin: 0; }
.review-list li { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.review-list li:last-child { border-bottom: 0; }
.review-list .ic { color: var(--muted); }
.review-list span { flex: 1; }
.policy { margin: .2rem 0; font-size: .9rem; }
.policy summary { cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- booking page ---------- */
.booking-head { display: flex; justify-content: space-between; align-items: center; margin: .4rem 0 1.2rem; }
.booking-head h1 { margin: 0; font-size: 1.5rem; }
.code { font-family: ui-monospace, 'SF Mono', monospace; letter-spacing: .02em; }
.hold { display: inline-flex; align-items: center; gap: .45rem; background: var(--gold-soft); color: var(--ink); padding: .45rem .9rem; border-radius: var(--pill); font-weight: 600; font-size: .9rem; }
.countdown { font-variant-numeric: tabular-nums; font-family: ui-monospace, monospace; font-weight: 700; }
.countdown.urgent { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .4; } }
.due { text-align: center; padding: 1.4rem 0 1rem; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.due strong { font-size: 2.6rem; font-weight: 700; line-height: 1.15; }
.due small { color: var(--muted); }
.note { display: flex; gap: .6rem; align-items: center; background: var(--soft); padding: .85rem 1rem; border-radius: 14px; margin: .4rem 0 1.4rem; font-size: .93rem; }
.note b { font-family: ui-monospace, monospace; }
.copy-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: 1rem 0 .4rem; }
.copy-row > div { display: flex; flex-direction: column; min-width: 0; }
.copy-row strong { font-size: 1.2rem; word-break: break-all; }
.copy-btn { display: inline-flex; align-items: center; gap: .35rem; }
.file-drop { display: block; position: relative; cursor: pointer; margin-bottom: 1rem; }
.file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-preview { border: 1.5px dashed var(--line-2); border-radius: var(--r); min-height: 120px; display: flex; flex-direction: column; gap: .4rem; align-items: center; justify-content: center; color: var(--ink); font-weight: 600; overflow: hidden; }
.file-preview small { color: var(--muted); font-weight: 400; }
.file-preview .ic { width: 30px; height: 30px; }
.file-preview img { max-height: 280px; display: block; }
.waiting { text-align: center; padding: 2.4rem 1.2rem; }
.pulse-moon { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 1.2rem; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; animation: pulse 2s ease-in-out infinite; }
.pulse-moon .ic { width: 34px; height: 34px; }
@keyframes pulse { 50% { transform: scale(.93); opacity: .7; } }
.facts { list-style: none; padding: 0; margin: .2rem 0 .8rem; }
.facts li { display: flex; gap: .8rem; padding: .55rem 0; align-items: flex-start; }
.facts li .ic { color: var(--muted); margin-top: .15rem; }
.facts li > div { display: flex; flex-direction: column; }
.facts li small { color: var(--muted); font-size: .8rem; }
.items { width: 100%; border-collapse: collapse; margin: .4rem 0; font-size: .93rem; }
.items td { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.items td:not(:first-child) { text-align: left; white-space: nowrap; padding-inline-start: .6rem; }
.proof { display: flex; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.proof:last-child { border-bottom: 0; }
.proof p { margin: 0 0 .2rem; }
.proof-thumb { width: 110px; flex-shrink: 0; min-height: 90px; background: var(--soft); border-radius: 12px; display: grid; place-items: center; overflow: hidden; font-size: .8rem; color: var(--muted); }
.proof-thumb img { width: 100%; display: block; }
.img-btn { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.stars { display: flex; gap: .25rem; direction: ltr; justify-content: flex-end; margin-bottom: .8rem; }
.stars button { border: 0; background: none; cursor: pointer; color: var(--line-2); padding: .1rem; }
.stars button .ic { width: 32px; height: 32px; }
.stars button.on { color: var(--gold); }
.stars button.on .ic { fill: var(--gold); }
.review textarea { margin-bottom: .8rem; }

/* ---------- ticket ---------- */
.ticket { background: var(--ink); color: #fff; border-radius: 26px; padding: 1.3rem 1.3rem 1.5rem; margin: 0 auto 1.2rem; position: relative; overflow: hidden; max-width: 420px; }
.ticket-top { display: flex; justify-content: space-between; align-items: center; }
.ticket-status { background: rgba(255, 255, 255, .12); padding: .25rem .8rem; border-radius: var(--pill); font-size: .8rem; font-weight: 600; }
.ticket-rest { font-size: 1.3rem; font-weight: 700; margin: 1.1rem 0 .7rem; }
.ticket-grid { display: flex; gap: 1rem; align-items: center; }
.ticket-grid p { margin: 0; color: #e8e8e8; }
.ticket-grid p b { color: #fff; }
.ticket-table { background: var(--gold); color: var(--ink); border-radius: 18px; min-width: 96px; padding: .55rem; text-align: center; display: flex; flex-direction: column; }
.ticket-table strong { font-size: 2.6rem; line-height: 1.05; font-weight: 700; }
.ticket-table small { font-weight: 600; font-size: .8rem; }
.ticket-cut { border-top: 2px dashed rgba(255, 255, 255, .22); margin: 1.3rem -1.3rem; position: relative; }
.ticket-cut::before, .ticket-cut::after { content: ''; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.ticket-cut::before { inset-inline-start: -12px; } .ticket-cut::after { inset-inline-end: -12px; }
.ticket-qr { background: #fff; border-radius: 18px; padding: .6rem; width: 220px; max-width: 78%; margin: 0 auto; }
.ticket-qr svg { display: block; width: 100%; height: auto; }
.ticket-code { text-align: center; font-family: ui-monospace, monospace; font-size: 1.1rem; letter-spacing: .12em; margin: .8rem 0 .2rem; color: var(--gold); font-weight: 700; }
.ticket-rest-amount { text-align: center; margin-bottom: .3rem; color: #e8e8e8; }
.ticket-rest-amount b { color: #fff; }
.ticket .muted { color: #9a9a9f; display: block; font-size: .85rem; }

/* ---------- lists ---------- */
.booking-item { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: inherit; padding: .95rem 1rem; }
.bi-date { width: 58px; flex-shrink: 0; text-align: center; background: var(--soft); border-radius: 12px; padding: .45rem .2rem; font-size: .8rem; line-height: 1.3; }
.bi-date strong { font-weight: 600; }
.bi-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.bi-body strong { font-weight: 600; }
.bi-body small { color: var(--muted); }
.bi-body .warn { color: var(--gold-ink); font-weight: 600; }

/* ---------- auth ---------- */
.auth { max-width: 440px; margin: 0 auto; padding-top: 2.4rem; }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-card { border: 0; padding: 0; }
.auth-card h2 { font-size: 1.6rem; }

/* ---------- chat ---------- */
.conv { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: inherit; padding: .9rem 1rem; }
.conv.unread strong::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-inline-start: .4rem; vertical-align: middle; }
.conv-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-body strong { font-weight: 600; }
.conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.conv-meta .dot { position: static; }
.chat-page { display: flex; flex-direction: column; height: calc(100dvh - 62px - var(--nav-h) - 22px - var(--safe-b)); padding: 0; }
.chat-head { display: flex; align-items: center; gap: .6rem; padding: .5rem 1rem .8rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chat-head > div { flex: 1; display: flex; flex-direction: column; }
.chat-head strong { font-weight: 600; font-size: 1.05rem; }
.thread { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.bubble { max-width: 78%; padding: .6rem .85rem .4rem; border-radius: 18px; background: var(--soft); align-self: flex-end; word-wrap: break-word; }
.bubble.me { align-self: flex-start; background: var(--ink); color: #fff; border-end-start-radius: 6px; }
.bubble.them { border-end-end-radius: 6px; }
.bubble.admin { background: var(--gold-soft); }
.bubble p { margin: 0; white-space: pre-wrap; }
.bubble time { display: block; font-size: .68rem; opacity: .55; margin-top: .15rem; }
.bubble .who { font-weight: 700; font-size: .75rem; }
.bubble-img img { border-radius: 12px; max-height: 260px; display: block; }
.quick { display: flex; gap: .4rem; overflow-x: auto; padding: .5rem 1rem; scrollbar-width: none; }
.quick .chip { white-space: nowrap; margin: 0; padding: .45rem .85rem; border: 1.5px solid var(--line-2); background: #fff; }
.composer { display: flex; gap: .5rem; align-items: flex-end; padding: .6rem 1rem .4rem; border-top: 1px solid var(--line); }
.chat-input { min-height: 46px !important; max-height: 120px; padding: .65rem 1rem; border-radius: 23px; }
.send-btn { width: 46px; height: 46px; min-height: 46px; padding: 0; border-radius: 50%; flex-shrink: 0; }
.send-btn .ic { transform: scaleX(-1); }

/* ---------- dashboards ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; margin-bottom: 1rem; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--soft); border-radius: var(--r); padding: .9rem 1rem; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.stat small { color: var(--muted); font-weight: 500; font-size: .84rem; }
.stat strong { font-size: 1.4rem; font-weight: 700; }
.stat.hot { background: var(--gold); } .stat.hot small { color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: inherit; margin: 0; padding: 1rem; }
.tile strong { font-weight: 600; margin-top: .5rem; }
.tile small { font-size: .82rem; }
.tile-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; }
.dash-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; margin: .4rem 0 .8rem; }
.dash-head h1 { margin: 0; }
.dash-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.dash-links .btn { flex-shrink: 0; }
.day-nav { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin: 0 0 1rem; border: 1.5px solid var(--line); border-radius: var(--pill); padding: .3rem; }
.day-nav-mid { display: flex; align-items: center; gap: .5rem; font-weight: 600; flex-wrap: wrap; justify-content: center; }
.legend { display: flex; gap: .7rem; font-size: .78rem; flex-wrap: wrap; color: var(--muted); }
.lg::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: .3rem; vertical-align: middle; }
.lg.free::before { background: #fff; border: 1.5px solid var(--line-2); } .lg.booked::before { background: var(--ink); } .lg.in::before { background: var(--gold); } .lg.pending::before { background: var(--gold-soft); border: 1.5px dashed var(--gold-ink); }
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: .5rem; margin: .8rem 0; }
.tbl { font: inherit; border: 0; border-radius: 14px; padding: .55rem .2rem; display: flex; flex-direction: column; align-items: center; text-decoration: none; cursor: pointer; line-height: 1.25; }
.tbl strong { font-size: 1.15rem; font-weight: 700; }
.tbl small { font-size: .7rem; }
.tbl-free { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); }
.tbl-booked { background: var(--ink); color: #fff; }
.tbl-in { background: var(--gold); color: var(--ink); }
.tbl-pending { background: var(--gold-soft); color: var(--ink); border: 1.5px dashed var(--gold-ink); }
.tbl-closed { background: var(--soft); color: #a5a5aa; text-decoration: line-through; }
.res-list { display: flex; flex-direction: column; }
.res { display: flex; gap: .85rem; padding: .85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; align-items: center; }
.res:last-child { border-bottom: 0; }
.res.checked_in { opacity: .6; }
.res.cancelled { opacity: .4; }
.res-table { width: 54px; flex-shrink: 0; text-align: center; background: var(--ink); color: #fff; border-radius: 14px; padding: .35rem; display: flex; flex-direction: column; line-height: 1.2; }
.res-table strong { font-size: 1.25rem; color: var(--gold); }
.res-table small { font-size: .62rem; }
.res-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.res-body strong { font-weight: 600; }
.res-body small { color: var(--muted); }
.res-side { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; font-size: .8rem; }

/* scan */
.cam-box { position: relative; border-radius: 22px; overflow: hidden; background: var(--ink); margin-bottom: 1rem; min-height: 140px; display: grid; place-items: center; }
.cam-box p { color: #ddd; padding: 1.4rem; }
.scan-video { width: 100%; display: block; max-height: 60vh; object-fit: cover; }
.scan-frame { position: absolute; inset: 18%; border: 3px solid var(--gold); border-radius: 22px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.result { text-align: center; border-radius: 26px; padding: 1.5rem 1.1rem; margin-bottom: 1rem; }
.result-ok { background: var(--ink); color: #fff; }
.result-warn { background: var(--gold); color: var(--ink); }
.result-bad { background: #fff; color: var(--ink); border: 2.5px solid var(--ink); }
.result-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto .6rem; }
.result-icon .ic { width: 32px; height: 32px; stroke-width: 2.2; }
.result-ok .result-icon { background: var(--gold); color: var(--ink); }
.result-warn .result-icon { background: var(--ink); color: var(--gold); }
.result-bad .result-icon { background: var(--ink); color: #fff; }
.result-table { background: #fff; color: var(--ink); border-radius: 18px; display: inline-flex; flex-direction: column; padding: .4rem 1.6rem; margin: .5rem 0 .9rem; border: 1.5px solid var(--line); }
.result-table strong { font-size: 3.2rem; line-height: 1.05; font-weight: 700; }
.result .muted { color: inherit; opacity: .75; }
.result a { color: inherit; }
.collect { background: rgba(127, 127, 127, .14); border-radius: 14px; padding: .7rem; margin: .7rem 0; font-size: 1.05rem; }
.items-list { list-style: none; padding: 0; margin: .4rem 0 .9rem; }
.result .btn { margin-top: .5rem; width: 100%; }
.result-ok .btn-primary { background: #fff; }

/* admin */
.pay-review { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 720px) { .pay-review { grid-template-columns: 200px 1fr; } .pay-review .proof-thumb { width: 200px; } }
.pay-review .proof-thumb { width: 100%; min-height: 160px; }
.pay-review.mismatch { border: 2.5px solid var(--gold); }
.amounts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .6rem 0; }
.amounts > div { background: var(--soft); border-radius: 14px; padding: .55rem .8rem; display: flex; flex-direction: column; }
.amounts small { color: var(--muted); }
.amounts strong { font-size: 1.2rem; }
.amounts .bad { color: var(--gold-ink); }
.filters .field { margin-bottom: .5rem; }
.rest-row { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; flex-wrap: wrap; }
.rest-row strong { font-weight: 600; }
.rest-row.off { opacity: .55; }
.mini-stats { display: flex; gap: .8rem; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.mini-stats .bad { color: var(--gold-ink); font-weight: 700; }
.menu-admin-item { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.menu-admin-item:last-child { border-bottom: 0; }
.menu-admin-item.off { opacity: .5; }
.menu-admin-item .grow { display: flex; flex-direction: column; }
.menu-admin-item strong { font-weight: 600; }
.thumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.thumb.ph { background: var(--soft); display: grid; place-items: center; color: var(--muted); }
.img-prev { height: 120px; border-radius: 14px; background: var(--soft) center / cover; margin-bottom: .5rem; }
.img-prev.small { height: 72px; width: 72px; }
.table-wrap { overflow-x: auto; padding: 0; }
.report { width: 100%; border-collapse: collapse; font-size: .88rem; white-space: nowrap; }
.report th, .report td { padding: .6rem .8rem; text-align: right; border-bottom: 1px solid var(--line); }
.report th { background: var(--soft); font-weight: 600; position: sticky; top: 0; }
.audit-row { padding: .8rem 1rem; }
.audit-row strong { font-weight: 600; }
.audit-data { display: block; font-size: .72rem; color: var(--muted); overflow-x: auto; white-space: nowrap; margin-top: .3rem; }
.notif { display: block; text-decoration: none; color: inherit; }
.notif strong { font-weight: 600; }
.notif p { margin: .1rem 0; color: var(--ink-2); }
.notif.unread { border-color: var(--gold); background: #fffdf6; }
.prose p { font-size: 1.02rem; color: var(--ink-2); }

@media (min-width: 900px) {
  .page { padding: 1rem 1.2rem 2.5rem; }
}

@media print {
  .header, .bottom-nav, .dash-links, .day-nav button, .btn, .cta-bar { display: none !important; }
  body { padding: 0; }
}

/* v1.3 — search, banner headline, password auth */
.search-box { display: flex; align-items: center; gap: .7rem; width: 100%; max-width: 560px; margin: .2rem auto .6rem; min-height: 56px; padding: 0 1.25rem; background: #f4f4f5; border: 1px solid #e6e6e8; border-radius: 999px; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: border-color .15s, box-shadow .15s, background .15s; }
.search-box:focus-within { background: #fff; border-color: var(--ink); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.search-box > svg { color: #9a9aa0; flex-shrink: 0; width: 22px; height: 22px; }
.search-input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16.5px; font-weight: 700; color: var(--ink); padding: .9rem 0; outline: none; }
.search-input::placeholder { color: #2b2b2e; font-weight: 700; opacity: 1; }
.search-box:focus-within .search-input::placeholder { color: #a5a5aa; }
.search-input::-webkit-search-cancel-button { display: none; }
.loc-row { display: flex; justify-content: center; }
.loc-row .loc-chip { margin: 0 0 .9rem; font-size: .92rem; }
.search-clear { width: 34px; height: 34px; min-height: auto; }
.banner-text { position: absolute; inset: auto 0 0 0; padding: 2.2rem 1rem .9rem; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0)); display: flex; flex-direction: column; gap: .15rem; }
.banner-text strong { font-size: 1.15rem; font-weight: 800; line-height: 1.35; }
.banner-text span { font-size: .9rem; opacity: .92; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-inline-end: 4.6rem; }
.pw-eye { position: absolute; inset-inline-end: .5rem; top: 50%; transform: translateY(-50%); background: none; border: 0; font: inherit; font-size: .85rem; font-weight: 700; color: var(--muted); cursor: pointer; padding: .4rem .5rem; }
.auth-row { display: flex; justify-content: flex-end; margin: -.4rem 0 1rem; }
.auth-switch { margin-top: 1.2rem; color: var(--muted); }
.auth-switch .btn-link { font-weight: 700; }
.pop-rank svg { width: 14px; height: 14px; vertical-align: -2px; }
.rest-row .feat-btn { color: var(--line-2); flex-shrink: 0; }
.rest-row .feat-btn.on { color: var(--gold); }
.rest-row .feat-btn.on svg { fill: var(--gold); }
.small-note { font-size: .88rem; margin: -.3rem 0 .8rem; }
.pop-rank svg { fill: currentColor; }
.ticket-label { font-weight: 800; font-size: 1rem; color: var(--gold); letter-spacing: .02em; }
body.on-login .header-actions .btn { display: none; }
.page.auth { padding-top: 1.5rem; }
.code-wrap { position: relative; margin-bottom: 1rem; }
.code-wrap .code-input { margin-bottom: 0; }
.paste-btn { display: block; margin: .6rem auto 0; background: var(--soft); border: 0; border-radius: 999px; padding: .5rem 1.2rem; font: inherit; font-size: .9rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.paste-btn:active { background: var(--line); }
