/* ============================================================
   ORDER FLOW POS — Visual system (mirror of theme.dart)
   Light / dark exactly like the APK. No web fonts.
   ============================================================ */
:root{
  --nav-h: 72px;
  --hdr-h: 64px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --mint:#2EA771; --gold:#D49E35; --danger:#D94838; --warn:#D98816; --info:#2B7DE9;
  --r-card:22px; --r-input:14px; --r-btn:16px;
}
html[data-theme="light"], :root{
  --canvas:#FAF7F2; --surface:#FFFDF9; --surface2:#F3ECE0; --border:#E8E0D2;
  --ink:#13231A; --muted:#5E7166; --btn-forest:#163E2E; --btn-forest2:#0D281E;
  --shadow: 0 8px 22px rgba(22,62,46,.06), 0 18px 36px rgba(16,40,23,.05);
  --glass: rgba(250,247,242,.86);
}
html[data-theme="dark"]{
  --canvas:#0F1512; --surface:#18221D; --surface2:#202C26; --border:#24352E;
  --ink:#F3F7F2; --muted:#A9C6B7; --btn-forest:#2EA771; --btn-forest2:#23915F;
  --shadow: 0 10px 24px rgba(0,0,0,.35);
  --glass: rgba(15,21,18,.84);
}
*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html{ height:100%; }
html, body{ margin:0; width:100%; overflow-x:hidden; }
body{
  min-height:100dvh; min-height:-webkit-fill-available;
  background:var(--canvas); color:var(--ink);
  font-family:-apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Arial, sans-serif;
  overscroll-behavior:none;
  font-size:15px; line-height:1.35;
}
[hidden]{ display:none !important; }
button{ font-family:inherit; touch-action:manipulation; }
input, select, textarea{ font-family:inherit; font-size:16px; color:var(--ink); background:var(--surface); border:1.2px solid var(--border); border-radius:var(--r-input); padding:12px 14px; outline:none; width:100%; }
input:focus, select:focus, textarea:focus{ border-color:var(--mint); box-shadow:0 0 0 3px rgba(46,167,113,.16); }
img{ max-width:100%; }
h1,h2,h3,h4,p{ margin:0; }
.muted{ color:var(--muted); }
.small{ font-size:12.5px; }
.mono{ font-family:ui-monospace, Menlo, monospace; }
.row{ display:flex; align-items:center; gap:10px; }
.grow{ flex:1 1 auto; min-width:0; }
.grid{ display:grid; gap:12px; }
.hidden{ display:none !important; }

/* ——— Views ——— */
.view{ position:fixed; inset:0; display:flex; flex-direction:column; background:var(--canvas); }
.view-main__col{ flex:1 1 auto; min-height:0; min-width:0; display:flex; flex-direction:column; position:relative; }
.view-main__body{ flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:0 0 calc(var(--nav-h) + var(--safe-b) + 12px) }
.view > .scroll-pad{ flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.scroll-pad{ padding:18px 16px 24px }
@media (min-width:720px){ .view-main__body{ padding-bottom:24px; } .scroll-pad{ padding:22px 24px 26px; max-width:1040px; margin:0 auto; width:100%; } }

/* ——— Header (StationShell app bar), 64 tall, glass ——— */
.hdr{
  height:calc(var(--hdr-h) + var(--safe-t));
  padding:var(--safe-t) 14px 0 14px;
  display:flex; align-items:center; gap:10px;
  background:var(--glass); border-bottom:1px solid var(--border);
  backdrop-filter:blur(18px) saturate(1.15); -webkit-backdrop-filter:blur(18px) saturate(1.15);
  position:relative; z-index:30; flex:0 0 auto;
}
.hdr__logo{ width:34px; height:34px; border-radius:10px; object-fit:contain; background:var(--btn-forest); padding:4px; flex:0 0 34px; }
.hdr__title{ font-weight:800; font-size:17px; letter-spacing:-.3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hdr__sub{ font-size:12px; font-weight:600; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:52vw; }
.hdr__icons{ margin-left:auto; display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.iconbtn{ width:44px; height:44px; border-radius:13px; border:1.2px solid var(--border); background:var(--surface); display:grid; place-items:center; font-size:19px; color:var(--ink); cursor:pointer; }
.iconbtn svg{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.chip{ display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:0 12px; border-radius:999px; font-size:12.5px; font-weight:800; border:1.2px solid var(--border); background:var(--surface2); color:var(--muted); }
.chip--live{ background:rgba(46,167,113,.14); color:var(--mint); border-color:transparent; }
.chip--warn{ background:rgba(217,136,22,.14); color:var(--warn); border-color:transparent; }
.chip--gold{ background:rgba(212,158,53,.16); color:var(--gold); border-color:transparent; }

/* ——— Buttons ——— */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:52px; padding:0 20px; border-radius:var(--r-btn);
  font-weight:800; font-size:15.5px; cursor:pointer; border:0;
  background:var(--surface2); color:var(--ink); border:1.2px solid var(--border);
  text-decoration:none; -webkit-appearance:none; appearance:none;
}
.btn:active{ transform:scale(.98); }
.btn--primary{ background:var(--btn-forest); color:#fff; border-color:transparent; box-shadow:0 10px 22px rgba(22,62,46,.22); }
html[data-theme="dark"] .btn--primary{ color:#07130D; }
.btn--mint{ background:var(--mint); color:#07130D; border-color:transparent; box-shadow:0 10px 22px rgba(46,167,113,.26); }
.btn--gold{ background:var(--gold); color:#2b1d00; border-color:transparent; }
.btn--danger{ background:rgba(217,72,56,.12); color:var(--danger); border-color:rgba(217,72,56,.3); }
.btn--ghost{ background:transparent; color:var(--ink); border-color:var(--border); }
.btn--full{ width:100%; }
.btn--sm{ min-height:44px; padding:0 14px; font-size:13.5px; border-radius:12px; }
.btn[disabled]{ opacity:.45; pointer-events:none; }

/* ——— Cards ——— */
.card{ background:var(--surface); border:1.2px solid var(--border); border-radius:var(--r-card); box-shadow:var(--shadow); }
.card--pad{ padding:16px; }
.card--forest{ background:linear-gradient(160deg,#163E2E 0%, #0D281E 100%) !important; color:#fff !important; border-color:rgba(46,167,113,.35); }
.card--forest .muted, .card--forest .small, .card--forest span, .card--forest p{ color:rgba(255,255,255,.78) !important; }
.card--forest h1,.card--forest h2,.card--forest h3,.card--forest .big, .card--forest b{ color:#fff !important; }
.card--forest .chip{ background:rgba(255,255,255,.14) !important; color:#fff !important; border-color:rgba(255,255,255,.16) !important; }

/* ——— Sales hero ——— */
.hero{ padding:18px; border-radius:24px; }
.hero__amt{ font-size:38px; font-weight:900; letter-spacing:-1px; line-height:1; }
.hero__grid{ display:flex; gap:14px; align-items:flex-end; justify-content:space-between; margin-top:14px; }
.hero__spark{ width:110px; height:44px; flex:0 0 auto; opacity:.95; }
.prog{ height:8px; border-radius:99px; background:rgba(255,255,255,.16); overflow:hidden; width:100%; }
.prog b{ display:block; height:100%; border-radius:99px; background:#fff; }

/* ——— Quick tiles ——— */
.tiles{ display:grid; grid-template-columns:repeat(4, 1fr); gap:10px; }
@media (max-width:520px){ .tiles{ grid-template-columns:repeat(4, 1fr); gap:8px; } }
.tile{
  min-height:88px; border-radius:18px; background:var(--surface);
  border:1.2px solid var(--border); display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:8px; cursor:pointer;
  font-weight:800; font-size:12.5px; color:var(--ink); padding:10px 4px;
}
.tile__ic{ width:42px; height:42px; border-radius:13px; display:grid; place-items:center; background:var(--surface2); color:var(--btn-forest); }
.tile__ic svg{ width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }

/* ——— Stat cards ——— */
.stats{ display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; }
.stat{ padding:14px; border-radius:18px; background:var(--surface); border:1.2px solid var(--border); }
.stat__k{ font-size:11.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); }
.stat__v{ font-size:26px; font-weight:900; letter-spacing:-.5px; margin-top:4px; }
.stat__d{ font-size:12px; font-weight:700; color:var(--muted); margin-top:2px; }

/* ——— Bottom nav (phone) + left rail (≥720) ——— */
.bnav{
  position:fixed; left:0; right:0; bottom:0; z-index:40;
  height:calc(var(--nav-h) + var(--safe-b));
  padding:0 6px calc(var(--safe-b));
  background:var(--glass); border-top:1px solid var(--border);
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  display:flex; align-items:stretch;
}
.bnav__dest{ flex:1 1 0; min-width:0; border:0; background:transparent; color:var(--muted);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  font-weight:800; font-size:11.5px; cursor:pointer; position:relative;
}
.bnav__dest svg{ width:24px; height:24px; stroke:currentColor; fill:none; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.bnav__dest.is-on{ color:var(--btn-forest); }
html[data-theme="dark"] .bnav__dest.is-on{ color:var(--mint); }
.bnav__dest.is-on::before{ content:''; position:absolute; top:0; width:26px; height:3px; border-radius:0 0 4px 4px; background:var(--mint); }
.rail{ display:none; }
@media (min-width:720px){
  .bnav{ display:none; }
  .rail{ display:flex; flex-direction:column; gap:4px; width:216px; flex:0 0 216px;
    padding:calc(var(--safe-t) + 16px) 10px 10px; border-right:1px solid var(--border); background:var(--glass);
    backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
  .rail__dest{ display:flex; align-items:center; gap:12px; min-height:48px; border:0; padding:0 14px; border-radius:14px;
    background:transparent; color:var(--muted); font-weight:800; font-size:14px; cursor:pointer; text-align:left; }
  .rail__dest svg{ width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
  .rail__dest.is-on{ background:var(--surface2); color:var(--btn-forest); }
  html[data-theme="dark"] .rail__dest.is-on{ color:var(--mint); }
  .view-main{ flex-direction:row; }
  .view-main__col{ flex:1 1 auto; display:flex; flex-direction:column; min-width:0; }
}
.nav-badge{ position:absolute; top:6px; right:calc(50% - 22px); min-width:17px; height:17px; padding:0 4px;
  border-radius:9px; background:var(--danger); color:#fff; font-size:10px; font-weight:900; line-height:17px; text-align:center; }
.rail .nav-badge{ position:static; margin-left:auto; }

/* ——— Floor: tables map (restaurant) ——— */
.filters{ display:flex; gap:8px; overflow-x:auto; padding:2px 0 4px; scrollbar-width:none; }
.filters::-webkit-scrollbar{ display:none; }
.fchip{ min-height:38px; padding:0 15px; border-radius:999px; border:1.2px solid var(--border); background:var(--surface); color:var(--muted); font-weight:800; font-size:13px; cursor:pointer; white-space:nowrap; }
.fchip.is-on{ background:var(--btn-forest); color:#fff; border-color:transparent; }
.tmap{ display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:12px; }
.tcard{ position:relative; min-height:126px; padding:14px; border-radius:20px; background:var(--surface);
  border:1.4px solid var(--border); display:flex; flex-direction:column; justify-content:space-between; cursor:pointer; }
.tcard--ready{ border-color:var(--gold); box-shadow:0 0 0 3px rgba(212,158,53,.18), var(--shadow); }
.tcard--busy{ border-color:var(--btn-forest); }
.tcard--free{ border-style:dashed; }
.tcard__name{ font-weight:900; font-size:20px; letter-spacing:-.3px; }
.tcard__meta{ font-size:12px; font-weight:700; color:var(--muted); display:flex; justify-content:space-between; align-items:center; }
.dot{ display:inline-block; width:9px; height:9px; border-radius:50%; }
.dot--free{ background:#9BB5A8; } .dot--busy{ background:var(--gold); } .dot--ready{ background:var(--mint); }

/* ——— Lists ——— */
.lrow{ display:flex; align-items:center; gap:12px; padding:12px 14px; background:var(--surface); border:1.2px solid var(--border); border-radius:16px; }
.lrow + .lrow{ margin-top:8px; }
.lrow .hd{ flex:1 1 auto; min-width:0; overflow:hidden; }
.lrow .hd b{ display:block; font-size:14.5px; letter-spacing:-.2px; word-break:break-word; }
.lrow .hd small{ display:block; font-size:12px; font-weight:600; color:var(--muted); margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.avatar,.lrow__ic{ width:42px; height:42px; border-radius:13px; background:var(--surface2); display:grid; place-items:center; font-size:19px; flex:0 0 42px; font-weight:900; color:var(--btn-forest); overflow:hidden; }
.lrow img.lrow__ic{ padding:0; object-fit:cover; width:42px; height:42px; }
.lrow__ic img{ width:100%; height:100%; object-fit:cover; display:block; }
.lrow.is-off{ opacity:.62; }
.lrow__amt{ font-weight:900; font-size:15px; white-space:nowrap; flex:none; margin-left:auto; text-align:right; }
.lrow button, .lrow .qtyctl, .lrow .tag{ flex:none; }
.tag{ display:inline-flex; align-items:center; min-height:26px; padding:0 9px; border-radius:8px; font-size:11.5px; font-weight:800; background:var(--surface2); color:var(--muted); }
.tag--mint{ background:rgba(46,167,113,.14); color:var(--mint); }
.tag--gold{ background:rgba(212,158,53,.16); color:var(--gold); }
.tag--danger{ background:rgba(217,72,56,.12); color:var(--danger); }
.tag--blue{ background:rgba(43,125,233,.12); color:var(--info); }

/* ——— Ready strip (stays until served) ——— */
.readyline{ display:flex; align-items:center; gap:10px; padding:11px 12px; border-radius:16px;
  background:rgba(212,158,53,.12); border:1.4px solid var(--gold); }
.readyline + .readyline{ margin-top:8px; }
.readyline .ttl{ font-weight:800; font-size:14px; }
.readyline .sub{ font-size:12px; font-weight:600; color:var(--muted); }
.readyline button{ margin-left:auto; min-height:40px; border-radius:999px; border:0; background:var(--gold); color:#2b1d00; font-weight:900; padding:0 16px; cursor:pointer; }

/* ——— Menu grid / register ——— */
.mgrid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(158px, 1fr)); gap:12px; }
.mcard{ border-radius:18px; background:var(--surface); border:1.2px solid var(--border); overflow:hidden; display:flex; flex-direction:column; cursor:pointer; }
.mcard__img{ height:92px; background:var(--surface2); display:grid; place-items:center; font-size:34px; overflow:hidden; }
.mcard__img img{ width:100%; height:100%; object-fit:cover; }
.mcard__body{ padding:10px 12px 12px; display:flex; flex-direction:column; gap:2px; }
.mcard__name{ font-weight:800; font-size:14px; letter-spacing:-.2px; }
.mcard__price{ font-weight:800; font-size:12.5px; color:var(--muted); }
.mcard.is-off{ opacity:.55; }
.mcard__add{ margin-top:8px; min-height:40px; border-radius:11px; border:0; background:var(--mint); color:#07130D; font-weight:900; font-size:13.5px; cursor:pointer; }

/* ——— Sheets (bottom modal) ——— */
.sheet{ position:fixed; inset:0; z-index:60; display:none; background:rgba(10,15,12,.44); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px); }
.sheet.is-open{ display:flex; align-items:flex-end; justify-content:center; padding:0; }
.sheet__panel{
  width:100%; max-width:640px; max-height:calc(92dvh - var(--safe-t));
  background:var(--surface); border-radius:28px 28px 0 0; border:1.2px solid var(--border); border-bottom:0;
  padding:18px 16px calc(16px + var(--safe-b)); overflow-y:auto; -webkit-overflow-scrolling:touch;
  box-shadow:0 -10px 40px rgba(0,0,0,.3);
  animation:sheetUp .24s ease-out;
}
@keyframes sheetUp{ from{ transform:translateY(40px); opacity:.6 } to{ transform:none; opacity:1 } }
@media (min-width:720px){
  .sheet.is-open{ align-items:center; padding:20px; }
  .sheet__panel{ border-radius:28px; border-bottom:1.2px solid var(--border); }
}
.sheet__head{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.sheet__title{ font-weight:900; font-size:19px; letter-spacing:-.4px; }

/* ——— Center dialogs ——— */
.dlg{ position:fixed; inset:0; z-index:70; display:none; background:rgba(10,15,12,.5); align-items:center; justify-content:center; padding:18px; }
.dlg.is-open{ display:flex; }
.dlg__box{ width:100%; max-width:480px; background:var(--surface); border:1.4px solid var(--border); border-radius:22px; padding:18px; box-shadow:0 24px 60px rgba(0,0,0,.35); }
.dlg__title{ font-weight:900; font-size:17px; letter-spacing:-.3px; margin-bottom:10px; }
.dlg__btns{ display:flex; gap:8px; margin-top:16px; }
.dlg__btns .btn{ flex:1 1 0; }
.dlg__btns .btn:only-child{ flex:1 1 100%; }

/* ——— Pay sheet (APK mirror) ——— */
.pay-amt{ text-align:center; font-weight:900; font-size:30px; letter-spacing:-.8px; }
.pay-line{ display:flex; justify-content:space-between; font-weight:700; font-size:13px; padding:5px 0; }
.pay-line.muted{ color:var(--muted); font-weight:600; }
.pay-line.grand{ font-size:17px; font-weight:900; border-top:1.4px dashed var(--border); padding-top:9px; margin-top:4px; }
.pay-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.pay-chip{ min-height:44px; padding:0 16px; border-radius:999px; border:1.4px solid var(--border); background:var(--surface); font-weight:800; font-size:14px; cursor:pointer; color:var(--ink); }
.pay-chip.is-on{ background:var(--mint); border-color:transparent; color:#07130D; }
.pay-tender{ text-align:center; font-weight:900; font-size:38px; letter-spacing:-.5px; min-height:48px; }
.pay-change{ text-align:center; font-weight:800; font-size:14.5px; color:var(--mint); min-height:22px; }
.pay-change.short{ color:var(--danger); }
.numpad{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.numpad button{ min-height:54px; border-radius:14px; border:1.2px solid var(--border); background:var(--surface); font-weight:900; font-size:21px; color:var(--ink); cursor:pointer; }
.numpad button:active{ transform:scale(.97); background:var(--surface2); }
.numpad .exact{ grid-column:span 3; min-height:46px; font-size:15px; background:var(--btn-forest); color:#fff; border-color:transparent; }
.switch{ display:flex; align-items:center; justify-content:space-between; min-height:44px; gap:10px; font-weight:700; }
.switch input{ width:22px; height:22px; }

/* ——— Ticket (full-screen route) ——— */
.tkt__line{ display:flex; align-items:center; gap:10px; padding:11px 12px; background:var(--surface2); border-radius:14px; }
.tkt__line + .tkt__line{ margin-top:8px; }
.tkt__line .nm{ min-width:0; font-weight:800; font-size:14px; }
.tkt__line .no{ font-size:11.5px; font-weight:600; color:var(--muted); }
.qtyctl{ display:inline-flex; align-items:center; gap:6px; }
.qtyctl button{ width:34px; height:34px; border-radius:10px; border:1.2px solid var(--border); background:var(--surface); color:var(--ink); font-weight:900; font-size:16px; cursor:pointer; }
.tkt__cat{ display:flex; gap:8px; overflow-x:auto; padding:4px 0 6px; scrollbar-width:none; }
.tkt__cat::-webkit-scrollbar{ display:none; }
.tkt__menu{ flex:1 1 auto; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:2px 0 8px; }
.tkt__strip{ position:sticky; bottom:0; background:var(--surface); border-top:1.2px solid var(--border); padding:10px 14px calc(10px + var(--safe-b)); box-shadow:0 -8px 24px rgba(0,0,0,.08); }
.typechips{ display:flex; gap:8px; flex-wrap:wrap; }

/* ——— Toasts / sounds ——— */
.of-toasts{ position:fixed; top:calc(14px + var(--safe-t)); left:12px; right:12px; display:grid; gap:8px; justify-items:center; z-index:90; pointer-events:none; }
.of-toast{ max-width:min(92vw,460px); background:var(--btn-forest); color:#fff; border-radius:16px; padding:12px 16px; font-weight:800; font-size:14px; box-shadow:0 14px 32px rgba(0,0,0,.32); opacity:0; transform:translateY(-8px) scale(.98); transition:opacity .22s, transform .22s; text-align:center; }
html[data-theme="dark"] .of-toast{ background:var(--mint); color:#07130D; }
.of-toast.is-in{ opacity:1; transform:none; }
.of-toast small{ display:block; font-weight:600; opacity:.8; font-size:12px; margin-top:2px; }
.of-toast:nth-child(n+3){ display:none; }

/* ——— Scanner-like qr / station etc ——— */
.qrbox{ display:grid; place-items:center; padding:16px; background:var(--surface2); border-radius:18px; }
.qrbox img, .qrbox canvas{ width:200px; height:200px; border-radius:12px; background:#fff; padding:8px; }

/* ——— Customer display fullscreen ——— */
.cdisp{ position:fixed; inset:0; z-index:80; background:linear-gradient(160deg,#163E2E,#0D281E); color:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:24px; }
.cdisp__total{ font-size:clamp(56px, 16vw, 140px); font-weight:900; letter-spacing:-3px; line-height:1; text-shadow:0 10px 40px rgba(0,0,0,.35); }

/* ——— Splash / gate ——— */
.splash{ position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; flex-direction:column;
  background:radial-gradient(120% 120% at 50% 45%, #0D2420 0%, #050A08 55%, #020404 100%); overflow:hidden;
  padding:var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l); }
/* APK SplashScreen (gate_screens.dart): two pulsing rings behind the logo */
.splash__ring{ position:absolute; border-radius:50%; border:1px solid rgba(47,255,160,.09); animation:ringPulse 3s ease-in-out infinite; }
.splash__ring.r1{ width:480px; height:480px; }
.splash__ring.r2{ width:660px; height:660px; border-color:rgba(47,255,160,.04); animation-delay:.45s; }
@keyframes ringPulse{ 0%,100%{ transform:scale(1);} 50%{ transform:scale(1.03);} }
.splash__logo{ width:clamp(100px, 22vw, 150px); height:clamp(100px,22vw,150px); object-fit:contain; z-index:1;
  filter:drop-shadow(0 0 24px rgba(47,255,160,.53)) drop-shadow(0 0 68px rgba(0,229,255,.27));
  animation:logoEnt 0.9s cubic-bezier(.34,1.56,.64,1) .15s both; }
@keyframes logoEnt{ 0%{ transform:scale(.4) rotate(-8deg); opacity:0 } 60%{ transform:scale(1.07) rotate(1.5deg); opacity:1 } 100%{ transform:scale(1) rotate(0) } }
.splash__word{ display:flex; gap:6px; align-items:center; height:72px; margin-top:32px; z-index:1; }
.splash__typed{ color:#2FFFA0; font-weight:900; font-size:56px; letter-spacing:-1.2px; line-height:1; }
.splash__cur{ width:3px; height:36px; background:#2FFFA0; border-radius:2px; animation:blinkC .7s infinite; margin-left:6px; }
@keyframes blinkC{ 0%,100%{opacity:1} 50%{opacity:0} }
.splash__tag{ color:rgba(47,255,160,.5); letter-spacing:5.5px; font-size:13px; font-weight:300; margin-top:8px; opacity:0; transform:translateY(30%); transition:opacity .7s, transform .7s; z-index:1; }
.splash__tag.is-in{ opacity:1; transform:translateY(0); }

/* printing (iOS-safe same-document path — hidden iframes no-op on iOS Safari) */
#of-print-area{ display:none; }
@media print{
  #of-print-area{ display:block; }
  body.is-printing > *:not(#of-print-area):not(script):not(style){ display:none !important; }
}

.gate{ position:fixed; inset:0; z-index:95; background:linear-gradient(180deg, #061A14 0%, #04120D 100%); overflow-y:auto; }
.gate__in{ width:min(430px, 100%); margin:0 auto; padding:calc(40px + var(--safe-t)) 26px calc(26px + var(--safe-b)); display:flex; flex-direction:column; }
.gate__logo{ width:68px; height:68px; border-radius:18px; margin:0 auto; box-shadow:0 10px 28px rgba(0,0,0,.3); }
.gate__ttl{ text-align:center; color:#fff; font-weight:800; font-size:28px; letter-spacing:-.5px; margin-top:16px; }
.gate__sub{ text-align:center; color:#9BB5A8; font-size:14px; margin-top:8px; line-height:1.45; }
.gate__lbl{ color:#9BB5A8; font-size:12.5px; margin:26px 0 8px; font-weight:700; }
.gate__key{ text-align:center; letter-spacing:2px; font-weight:800; font-size:17px; background:rgba(0,0,0,.25) !important; color:#fff !important;
  border:1.4px solid rgba(61,220,151,.32) !important; text-transform:uppercase; padding-block:15px; }
.gate__key::placeholder{ color:rgba(255,255,255,.26); }
.gate__err{ color:#FF8A80; text-align:center; font-weight:700; font-size:13px; margin-top:10px; min-height:18px; }
.gate__link{ text-align:center; color:#2EA771; font-weight:800; font-size:14px; margin-top:18px; background:none; border:0; cursor:pointer; padding:10px; }
.gate__foot{ margin-top:auto; text-align:center; color:rgba(155,181,168,.6); font-size:11.5px; padding-top:26px; font-weight:600; }
.gate .btn{ width:100%; margin-top:14px; }
.gate .btn--mint{ color:#07130D; }

/* ——— setup model cards ——— */
.modelcard{ display:flex; flex-direction:column; align-items:center; gap:8px; padding:18px 10px; border-radius:20px; background:var(--surface); border:1.6px solid var(--border); cursor:pointer; font-weight:800; font-size:13.5px; }
.modelcard .ic{ width:54px; height:54px; border-radius:16px; display:grid; place-items:center; background:var(--surface2); font-size:27px; }
.modelcard.is-on{ border-color:var(--mint); box-shadow:0 0 0 3px rgba(46,167,113,.16); }

/* ——— receipt print ——— */
#print-root{ display:none; }
@media print{
  @page{ size:80mm auto; margin:0; }
  html, body{ background:#fff !important; }
  body *{ visibility:hidden !important; }
  #print-root, #print-root *{ visibility:visible !important; }
  #print-root{ display:block !important; position:absolute; left:0; top:0; width:72mm; padding:4mm 3mm; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}

/* ——— misc ——— */
.spin{ animation:spin 1s linear infinite; } @keyframes spin{ to{ transform:rotate(360deg) } }
.divider{ height:1.2px; background:var(--border); margin:14px 0; }
.sect{ margin-top:20px; }
.sect__t{ font-size:12px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); margin:0 4px 8px; }
.mrow{ display:flex; align-items:center; gap:12px; padding:13px 14px; background:var(--surface); border:1.2px solid var(--border); border-radius:16px; cursor:pointer; text-decoration:none; color:inherit; width:100%; text-align:left; }
.mrow + .mrow, .card .mrow + .mrow{ margin-top:8px; }
.mrow .ic, .mrow .lrow__ic{ flex:0 0 40px; width:40px; height:40px; border-radius:12px; background:var(--surface2); display:grid; place-items:center; font-size:18px; }
.mrow .ttl{ flex:1 1 auto; min-width:0; display:block; font-weight:800; font-size:14.5px; letter-spacing:-.2px; }
.mrow .ttl .sub{ display:block; margin-top:1px; font-weight:600; font-size:12px; color:var(--muted); }
.mrow .hd b{ display:block; font-size:14.5px; letter-spacing:-.2px; }
.mrow .hd small{ display:block; font-size:12px; color:var(--muted); font-weight:600; }
.mrow .arrow, .mrow .go{ flex:none; color:var(--muted); font-size:19px; font-weight:800; }
.mrow .lock{ flex:none; font-size:15px; }
.lockic{ color:var(--gold); font-size:16px; }
.check-row{ display:flex; align-items:center; gap:10px; min-height:44px; font-weight:700; }
html[dir="rtl"] body{ direction:rtl; unicode-bidi:isolate; }
html[dir="rtl"] .hdr__icons{ margin-left:0; margin-right:auto; }
html[dir="rtl"] .mrow .arrow, html[dir="rtl"] .rail__dest{ text-align:right; }
