/* ============================================================================
   INOR · Warm Hospitality — design system
   Hand-authored. No Bootstrap, no template. RTL-aware via logical properties.
   ============================================================================ */

/* ---------- Tokens ---------- */
:root{
  /* Brand — mint (near the original inor mint #37BC9B) */
  --persimmon:#37BC9B;
  --persimmon-600:#2CA588;
  --persimmon-700:#1F8F76;
  --persimmon-soft:rgba(55,188,155,.12);
  --plum:#1F6E63;
  --herb:#3E9B6E;
  --herb-soft:rgba(62,155,110,.12);
  --gold:#B8873B;
  /* Cool CTA + title accents */
  --cta-grad:linear-gradient(135deg,#43C6A6 0%, #2FA98B 48%, #1E8A8A 100%);
  --cta-shadow:0 12px 26px rgba(30,138,138,.30);
  --title-cool:#1B8A85;

  /* Light ground (warm porcelain) */
  --bg:#FBF9F7;
  --bg-2:#F4EFEA;
  --surface:#FFFFFF;
  --ink:#231A17;
  --ink-2:#4E423D;
  --muted:#8A7F7A;
  --line:#EDE6E0;
  --line-2:#E2D9D2;

  /* Depth */
  --shadow-sm:0 1px 3px rgba(35,26,23,.06), 0 1px 2px rgba(35,26,23,.04);
  --shadow:0 10px 30px rgba(35,26,23,.09), 0 2px 8px rgba(35,26,23,.05);
  --shadow-lg:0 22px 50px rgba(35,26,23,.16);
  --shadow-warm:0 14px 30px rgba(55,188,155,.32);

  /* Shape */
  --r-xl:26px; --r-lg:20px; --r-md:15px; --r-sm:11px; --r-pill:999px;

  /* Type */
  --font-display:'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui:'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shell-max:480px;
  --header-h:60px;
  --nav-h:72px;
}

html[dir="rtl"]{
  --font-ui:'Tajawal', system-ui, sans-serif;
  --font-display:'Tajawal', system-ui, sans-serif;
}

.theme-dark{
  --bg:#161210;
  --bg-2:#1E1815;
  --surface:#211B18;
  --ink:#F5EEE9;
  --ink-2:#D6CBC3;
  --muted:#9C8F88;
  --line:#302823;
  --line-2:#3A312B;
  --persimmon-soft:rgba(55,188,155,.18);
  --herb-soft:rgba(62,155,110,.18);
  --gold:#E0A458;
  --title-cool:#4FD1C0;
  --cta-shadow:0 12px 28px rgba(0,0,0,.5);
  --shadow-sm:0 1px 3px rgba(0,0,0,.4);
  --shadow:0 12px 32px rgba(0,0,0,.5);
  --shadow-lg:0 24px 54px rgba(0,0,0,.6);
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  font-family:var(--font-ui);
  background:var(--bg);
  color:var(--ink-2);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
button{font-family:inherit;cursor:pointer}
input,textarea,select{font-family:inherit;color:inherit}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4,h5{margin:0;color:var(--ink);font-weight:600;line-height:1.18;letter-spacing:-.01em}
p{margin:0}
:focus-visible{outline:2px solid var(--persimmon);outline-offset:2px;border-radius:6px}
::selection{background:var(--persimmon-soft)}

.display{font-family:var(--font-display);font-optical-sizing:auto;font-weight:600;letter-spacing:-.015em}

/* ---------- App shell ---------- */
.app{
  max-width:var(--shell-max);
  margin-inline:auto;
  min-height:100vh;
  min-height:100dvh;
  background:var(--bg);
  position:relative;
  isolation:isolate;
}
.screen{
  padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 20px);
  min-height:100dvh;
}
.px{padding-inline:18px}
.stack{display:flex;flex-direction:column}
.eyebrow{
  text-transform:uppercase;letter-spacing:.18em;font-size:11px;font-weight:700;
  color:var(--muted);margin:0;
}
.muted{color:var(--muted)}
.section-title{font-family:var(--font-display);font-size:19px;font-weight:600;color:var(--ink)}

/* ---------- Header ---------- */
.appbar{
  position:sticky;top:0;z-index:40;
  height:var(--header-h);
  display:flex;align-items:center;justify-content:space-between;
  padding-inline:16px;
  background:color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter:saturate(1.4) blur(12px);
  -webkit-backdrop-filter:saturate(1.4) blur(12px);
  border-bottom:1px solid transparent;
  transition:border-color .2s ease, background .2s ease;
}
.appbar.is-scrolled{border-bottom-color:var(--line)}
.brand{font-family:var(--font-display);font-weight:600;font-size:23px;letter-spacing:-.02em;color:var(--ink)}
.brand em{color:var(--persimmon);font-style:normal}
.appbar-actions{display:flex;align-items:center;gap:9px}

.iconbtn{
  width:42px;height:42px;border-radius:13px;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--surface);border:1px solid var(--line);color:var(--ink-2);
  box-shadow:var(--shadow-sm);transition:transform .12s ease;
  position:relative;
}
.iconbtn:active{transform:scale(.93)}
.iconbtn svg{width:19px;height:19px}
.iconbtn .dot{
  position:absolute;top:-4px;inset-inline-end:-4px;min-width:18px;height:18px;padding:0 5px;
  background:var(--persimmon);color:#fff;border-radius:9px;font-size:11px;font-weight:700;
  display:flex;align-items:center;justify-content:center;border:2px solid var(--bg);
}

/* ---------- Bottom nav ---------- */
.tabbar{
  position:fixed;inset-inline:0;bottom:0;z-index:45;
  height:calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom:env(safe-area-inset-bottom);
  max-width:var(--shell-max);margin-inline:auto;
  background:color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter:blur(16px) saturate(1.3);-webkit-backdrop-filter:blur(16px) saturate(1.3);
  border-top:1px solid var(--line);
  display:flex;align-items:stretch;justify-content:space-around;
}
.tabbar a{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  color:var(--muted);font-size:10.5px;font-weight:600;letter-spacing:.01em;
  padding-top:10px;position:relative;transition:color .15s ease;
}
.tabbar a svg{width:22px;height:22px;stroke-width:1.9}
.tabbar a.active{color:var(--persimmon)}
.tabbar a.active::before{
  content:"";position:absolute;top:0;width:26px;height:3px;border-radius:0 0 4px 4px;
  background:var(--persimmon);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  border:none;border-radius:var(--r-pill);font-weight:600;font-size:15px;
  padding:14px 22px;transition:transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space:nowrap;
}
.btn:active{transform:translateY(1px) scale(.99)}
.btn-block{width:100%}
.btn svg{width:18px;height:18px;flex:none}
.btn-primary{background:var(--cta-grad);color:#fff;box-shadow:var(--cta-shadow)}
.btn-primary:active{filter:brightness(.94)}
.btn-dark{background:var(--ink);color:var(--bg)}
.btn-ghost{background:var(--surface);color:var(--ink);border:1px solid var(--line-2);box-shadow:var(--shadow-sm)}
.btn-soft{background:var(--persimmon-soft);color:var(--persimmon-700)}
.theme-dark .btn-soft{color:var(--persimmon)}
.btn-lg{padding:15px 24px;font-size:15.5px}
.btn-sm{padding:9px 15px;font-size:13.5px}
.btn-tool{padding:9px 14px;font-size:13.5px}
.btn-tool svg{width:17px;height:17px}
.btn[disabled]{opacity:.5;pointer-events:none}

/* ---------- Cards & surfaces ---------- */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-sm)}
.card-pad{padding:18px}

/* ---------- Home hero ---------- */
.hero{
  position:relative;overflow:hidden;border-radius:var(--r-xl);
  padding:30px 24px;color:#fff;
  background:linear-gradient(150deg,#48CFAD 0%, #37BC9B 55%, #1F7A69 130%);
  box-shadow:var(--shadow-warm);
}
.hero::after{content:"";position:absolute;inset-inline-end:-50px;top:-50px;width:190px;height:190px;background:rgba(255,255,255,.09);border-radius:50%}
.hero::before{content:"";position:absolute;inset-inline-end:40px;bottom:-70px;width:150px;height:150px;background:rgba(255,255,255,.06);border-radius:50%}
.hero > *{position:relative;z-index:1}
.hero .badge-qr{
  width:70px;height:70px;border-radius:20px;background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.28);display:flex;align-items:center;justify-content:center;margin-bottom:16px;
}
.hero .badge-qr svg{width:34px;height:34px}
.hero h1{font-family:var(--font-display);color:#fff;font-size:29px;font-weight:600;margin-bottom:8px;text-wrap:balance}
.hero p{color:rgba(255,255,255,.9);font-size:14px;margin-bottom:22px;max-width:30ch}
.hero .btn-primary{background:#fff;color:var(--persimmon-700);box-shadow:0 12px 26px rgba(0,0,0,.18)}

/* ---------- Steps ---------- */
.step{display:flex;gap:14px;align-items:flex-start;padding:15px 0}
.step + .step{border-top:1px solid var(--line)}
.step .n{
  flex:none;width:38px;height:38px;border-radius:12px;background:var(--persimmon-soft);
  color:var(--persimmon-700);display:flex;align-items:center;justify-content:center;
  font-family:var(--font-display);font-weight:600;font-size:16px;
}
.theme-dark .step .n{color:var(--persimmon)}
.step h4{font-size:15px;margin-bottom:2px}
.step p{font-size:13px;color:var(--muted)}

/* ---------- Venue cover ---------- */
.venue{
  position:relative;border-radius:var(--r-xl);overflow:hidden;
  aspect-ratio:16/10;background:var(--bg-2);box-shadow:var(--shadow)
}
.venue img{width:100%;height:100%;object-fit:cover}
.venue .scrim{position:absolute;inset:0;background:linear-gradient(to top, rgba(20,12,10,.82) 0%, rgba(20,12,10,.15) 55%, transparent 100%)}
.venue .meta{position:absolute;inset-inline:0;bottom:0;padding:20px}
.venue .meta h1{font-family:var(--font-display);color:#fff;font-size:26px;font-weight:600}
.venue .meta .loc{color:rgba(255,255,255,.85);font-size:13px;display:flex;align-items:center;gap:6px;margin-top:4px}
.venue .meta .loc svg{width:14px;height:14px}

/* ---------- Sticky category chips + search ---------- */
.menu-sticky{
  position:sticky;top:var(--header-h);z-index:32;
  background:color-mix(in srgb,var(--bg) 92%, transparent);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
  padding-bottom:8px;
}
.catnav{
  padding:10px 0 4px;
}
.catnav-scroll{display:flex;gap:8px;overflow-x:auto;padding-inline:18px;scrollbar-width:none}
.catnav-scroll::-webkit-scrollbar{display:none}
.chip{
  flex:none;padding:9px 16px;border-radius:var(--r-pill);font-size:13.5px;font-weight:600;
  background:var(--surface);border:1px solid var(--line-2);color:var(--ink-2);white-space:nowrap;
  transition:all .15s ease;
}
.chip.active{background:var(--ink);color:var(--bg);border-color:var(--ink)}

/* ---------- Product rows ---------- */
.cat-head{font-family:var(--font-display);font-size:20px;font-weight:600;color:var(--ink);margin:22px 0 10px;padding-inline:18px}
.product{
  display:flex;gap:14px;align-items:center;padding:14px 18px;
  transition:background .15s ease;position:relative;
}
.product:active{background:var(--bg-2)}
.product + .product::before{content:"";position:absolute;top:0;inset-inline:18px 18px;height:1px;background:var(--line)}
.product .info{flex:1;min-width:0}
.product .info h4{font-size:15.5px;margin-bottom:3px}
.product .info .desc{font-size:12.5px;color:var(--muted);overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.price{display:flex;align-items:baseline;gap:6px;margin-top:6px}
.price .now{font-family:var(--font-display);font-weight:600;font-size:16px;color:var(--ink)}
.price .cur{font-size:11px;color:var(--muted);font-weight:600}
.price .was{font-size:12.5px;color:var(--muted);text-decoration:line-through}
.product .thumb{
  flex:none;width:88px;height:88px;border-radius:var(--r-md);object-fit:cover;background:var(--bg-2);
  box-shadow:var(--shadow-sm);
}
.product .thumb.placeholder{display:flex;align-items:center;justify-content:center;color:var(--line-2)}
.product .thumb.placeholder svg{width:30px;height:30px}
.tag-off{background:var(--persimmon);color:#fff;font-size:10px;font-weight:700;padding:2px 7px;border-radius:6px;letter-spacing:.02em}
.tag-out{background:var(--bg-2);color:var(--muted);font-size:11px;font-weight:700;padding:2px 8px;border-radius:6px}
.product.is-out{opacity:.55}

/* ---------- Search ---------- */
.searchbar{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line-2);
  border-radius:var(--r-pill);padding:11px 16px;margin:2px 18px 8px;box-shadow:var(--shadow-sm)}
.searchbar svg{width:18px;height:18px;color:var(--muted);flex:none}
.searchbar input{border:none;background:none;outline:none;width:100%;font-size:14.5px}

/* ---------- Floating cart bar ---------- */
.cartbar{
  position:fixed;inset-inline:0;bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px);z-index:44;
  max-width:var(--shell-max);margin-inline:auto;padding-inline:14px;
  transform:translateY(180%);transition:transform .32s cubic-bezier(.2,.8,.2,1);
}
.cartbar.show{transform:translateY(0)}
.cartbar-inner{
  display:flex;align-items:center;gap:14px;background:var(--ink);color:var(--bg);
  border-radius:var(--r-lg);padding:12px 16px;box-shadow:var(--shadow-lg);
}
.cartbar .count{
  background:var(--persimmon);color:#fff;width:34px;height:34px;border-radius:11px;
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;flex:none;
}
.cartbar .lbl{flex:1;font-weight:600;font-size:14px}
.cartbar .lbl small{display:block;font-weight:500;opacity:.7;font-size:11.5px}
.cartbar .go{display:flex;align-items:center;gap:6px;font-weight:700;font-size:14px}
.cartbar .go svg{width:16px;height:16px}

/* ---------- Stepper ---------- */
.stepper{display:inline-flex;align-items:center;background:var(--bg-2);border-radius:var(--r-pill);padding:4px}
.stepper button{
  width:34px;height:34px;border-radius:50%;border:none;background:var(--surface);color:var(--ink);
  box-shadow:var(--shadow-sm);display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:700;
}
.stepper button:active{transform:scale(.9)}
.stepper .val{min-width:30px;text-align:center;font-weight:700;font-size:15px;color:var(--ink);font-variant-numeric:tabular-nums}

/* ---------- Sheets / modals / drawer ---------- */
.scrim-el{
  position:fixed;inset:0;z-index:60;background:rgba(20,12,10,.5);
  backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .28s ease;
}
.scrim-el.show{opacity:1;pointer-events:auto}

.sheet{
  position:fixed;inset-inline:0;bottom:0;z-index:70;
  max-width:var(--shell-max);margin-inline:auto;
  background:var(--surface);border-radius:var(--r-xl) var(--r-xl) 0 0;
  box-shadow:var(--shadow-lg);
  transform:translateY(100%);transition:transform .34s cubic-bezier(.2,.85,.25,1);
  max-height:92dvh;display:flex;flex-direction:column;
}
.sheet.show{transform:translateY(0)}
.sheet.full{top:0;border-radius:0;max-height:100dvh}
.sheet .grab{width:40px;height:4px;border-radius:2px;background:var(--line-2);margin:10px auto 4px}
.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:8px 18px 12px;flex:none}
.sheet-head h3{font-family:var(--font-display);font-size:20px;color:var(--title-cool)}
.sheet-body{overflow-y:auto;padding:0 18px calc(20px + env(safe-area-inset-bottom))}
.sheet-close{width:34px;height:34px;border-radius:50%;background:var(--bg-2);border:none;color:var(--ink-2);display:flex;align-items:center;justify-content:center}
.sheet-close svg{width:18px;height:18px}

.drawer{
  position:fixed;inset-block:0;inset-inline-end:0;z-index:70;width:82%;max-width:340px;
  background:var(--surface);box-shadow:var(--shadow-lg);
  transform:translateX(100%);transition:transform .32s cubic-bezier(.2,.8,.2,1);
  display:flex;flex-direction:column;padding:calc(env(safe-area-inset-top) + 20px) 20px 24px;
}
html[dir="rtl"] .drawer{inset-inline-end:0;transform:translateX(-100%)}
.drawer.show{transform:translateX(0)}
html[dir="rtl"] .drawer.show{transform:translateX(0)}
.drawer-profile{text-align:center;padding:14px 0 22px;border-bottom:1px solid var(--line)}
.drawer-profile .ava{width:76px;height:76px;border-radius:22px;margin:0 auto 12px;object-fit:cover;box-shadow:var(--shadow)}
.drawer-profile .name{font-family:var(--font-display);font-size:20px;color:var(--ink)}
.drawer-profile .pts{display:inline-flex;align-items:center;gap:6px;margin-top:6px;background:var(--herb-soft);color:var(--herb);
  padding:5px 12px;border-radius:var(--r-pill);font-size:12.5px;font-weight:700}
.drawer-nav{display:flex;flex-direction:column;gap:2px;margin-top:14px;flex:1}
.drawer-nav a{display:flex;align-items:center;gap:14px;padding:14px 12px;border-radius:var(--r-md);font-weight:600;color:var(--ink-2);transition:background .15s}
.drawer-nav a:active{background:var(--bg-2)}
.drawer-nav a svg{width:20px;height:20px;color:var(--persimmon)}

/* Google sign-in button + sign-out */
.btn-google{background:#fff;color:#3c4043;border:1px solid var(--line-2);box-shadow:var(--shadow-sm);font-weight:600}
.btn-google svg{width:18px;height:18px}
.theme-dark .btn-google{background:#fff;color:#3c4043}
.drawer-signout{display:flex;align-items:center;gap:14px;padding:12px;border-radius:var(--r-md);font-weight:600;color:var(--persimmon);cursor:pointer}
.drawer-signout svg{width:19px;height:19px}

/* ---------- Modal (centered) ---------- */
.modal{
  position:fixed;inset:0;z-index:70;display:flex;align-items:center;justify-content:center;padding:24px;
  opacity:0;pointer-events:none;transition:opacity .22s ease;
}
.modal.show{opacity:1;pointer-events:auto}
.modal-card{
  background:var(--surface);border-radius:var(--r-xl);box-shadow:var(--shadow-lg);
  width:100%;max-width:330px;padding:28px 22px;text-align:center;
  transform:scale(.92);transition:transform .26s cubic-bezier(.2,.85,.25,1);
}
.modal.show .modal-card{transform:scale(1)}
.modal-icon{width:64px;height:64px;border-radius:20px;margin:0 auto 16px;display:flex;align-items:center;justify-content:center}
.modal-icon svg{width:32px;height:32px}
.modal-icon.ok{background:var(--herb-soft);color:var(--herb)}
.modal-icon.err{background:var(--persimmon-soft);color:var(--persimmon)}
.modal-card h3{font-family:var(--font-display);font-size:21px;margin-bottom:8px}
.modal-card p{color:var(--muted);font-size:14px;margin-bottom:20px}

/* ---------- Forms ---------- */
.field{margin-bottom:16px}
.field label{display:block;font-size:12.5px;font-weight:700;color:var(--muted);margin-bottom:7px;letter-spacing:.02em}
.field input, .field textarea, .field select{
  width:100%;background:var(--bg-2);border:1px solid var(--line-2);border-radius:var(--r-md);
  padding:13px 15px;font-size:15px;outline:none;transition:border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus{border-color:var(--persimmon);background:var(--surface)}

/* ---------- Order timeline / rows ---------- */
.order-row{display:flex;align-items:center;gap:12px;padding:13px 0}
.order-row + .order-row{border-top:1px solid var(--line)}
.order-row .qty{flex:none;width:30px;height:30px;border-radius:9px;background:var(--persimmon-soft);color:var(--persimmon-700);
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px}
.theme-dark .order-row .qty{color:var(--persimmon)}
.order-row .nm{flex:1;min-width:0}
.order-row .nm h5{font-size:14.5px;color:var(--ink)}
.order-row .nm .opt{font-size:12px;color:var(--gold)}
/* option subtitle under a product name (cart + live order) */
.ln-opt{font-size:12px;color:var(--gold);font-weight:600;margin-top:5px}
.status{font-size:11px;font-weight:700;padding:4px 9px;border-radius:var(--r-pill);white-space:nowrap}
.status.s0{background:var(--persimmon-soft);color:var(--persimmon-700)}
.status.s1{background:rgba(224,164,88,.16);color:#B47A2E}
.status.s2{background:var(--herb-soft);color:var(--herb)}
.status.s3,.status.s4{background:var(--bg-2);color:var(--muted)}
.theme-dark .status.s0{color:var(--persimmon)}

.totals{margin-top:8px}
.totals .row{display:flex;justify-content:space-between;padding:7px 0;font-size:14px}
.totals .row.grand{border-top:1px solid var(--line);margin-top:6px;padding-top:12px}
.totals .row.grand span:last-child{font-family:var(--font-display);font-size:19px;font-weight:600;color:var(--persimmon)}
.totals .row span:first-child{color:var(--muted)}
.totals .row span:last-child{font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}

.history-item{display:flex;align-items:center;gap:14px;padding:16px 0}
.history-item + .history-item{border-top:1px solid var(--line)}
.history-item .ic{flex:none;width:44px;height:44px;border-radius:14px;background:var(--bg-2);display:flex;align-items:center;justify-content:center;color:var(--persimmon)}
.history-item .ic svg{width:20px;height:20px}
.history-item .b{flex:1}
.history-item .b h5{font-size:14.5px;color:var(--ink)}
.history-item .b span{font-size:12px;color:var(--muted)}
.history-item .amt{font-family:var(--font-display);font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}

/* ---------- Radios (payment/options) ---------- */
.opt-list{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.opt{display:flex;align-items:center;gap:12px;padding:13px 15px;border:1px solid var(--line-2);border-radius:var(--r-md);
  background:var(--surface);transition:border-color .15s, background .15s}
.opt.sel{border-color:var(--persimmon);background:var(--persimmon-soft)}
.opt .radio{width:22px;height:22px;border-radius:50%;border:2px solid var(--line-2);flex:none;display:flex;align-items:center;justify-content:center}
.opt.sel .radio{border-color:var(--persimmon)}
.opt.sel .radio::after{content:"";width:11px;height:11px;border-radius:50%;background:var(--persimmon)}
.opt .on{flex:1;font-weight:600;color:var(--ink);font-size:14.5px}
.opt .op{font-weight:700;color:var(--ink-2);font-variant-numeric:tabular-nums}

/* ---------- Toast ---------- */
.toast{
  position:fixed;inset-inline:0;top:calc(env(safe-area-inset-top) + 12px);z-index:90;
  display:flex;justify-content:center;pointer-events:none;
}
.toast-inner{
  background:var(--ink);color:var(--bg);padding:11px 18px;border-radius:var(--r-pill);
  font-size:13.5px;font-weight:600;box-shadow:var(--shadow-lg);
  transform:translateY(-160%);transition:transform .3s cubic-bezier(.2,.8,.2,1);
  display:flex;align-items:center;gap:9px;max-width:88%;
}
.toast.show .toast-inner{transform:translateY(0)}
.toast-inner svg{width:17px;height:17px;flex:none}

/* ---------- Spinner / states ---------- */
.spinner{width:26px;height:26px;border-radius:50%;border:3px solid var(--line-2);border-top-color:var(--persimmon);animation:spin .7s linear infinite}
.spinner.lg{width:40px;height:40px;border-width:4px}
.spinner.white{border-color:rgba(255,255,255,.35);border-top-color:#fff}
@keyframes spin{to{transform:rotate(360deg)}}
.center-load{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:60px 20px;color:var(--muted)}

.empty{text-align:center;padding:56px 26px;color:var(--muted)}
.empty .em-ic{width:76px;height:76px;border-radius:24px;background:var(--bg-2);display:flex;align-items:center;justify-content:center;margin:0 auto 18px;color:var(--line-2)}
.empty .em-ic svg{width:36px;height:36px}
.empty h3{font-family:var(--font-display);color:var(--ink);font-size:20px;margin-bottom:6px}
.empty p{font-size:14px}

/* ---------- Preloader ---------- */
#boot{position:fixed;inset:0;z-index:200;background:var(--bg);display:flex;align-items:center;justify-content:center;transition:opacity .4s ease}
#boot.hide{opacity:0;pointer-events:none}
#boot .brand{font-size:32px}

/* ---------- Update prompt ---------- */
.update-bar{
  position:fixed;inset-inline:0;bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px);z-index:80;
  max-width:var(--shell-max);margin-inline:auto;padding-inline:14px;
  transform:translateY(220%);transition:transform .32s cubic-bezier(.2,.8,.2,1);
}
.update-bar.show{transform:translateY(0)}
.update-bar-inner{
  display:flex;align-items:center;gap:12px;background:var(--ink);color:var(--bg);
  border-radius:var(--r-lg);padding:12px 14px;box-shadow:var(--shadow-lg);
}
.update-bar .u-ic{flex:none;width:34px;height:34px;border-radius:11px;background:var(--persimmon);color:#fff;display:flex;align-items:center;justify-content:center}
.update-bar .u-ic svg{width:18px;height:18px}
.update-bar .u-tx{flex:1;font-size:13.5px;font-weight:600}
.update-bar .btn{padding:9px 16px;font-size:13.5px;flex:none}

/* ---------- Social + footer ---------- */
.social{display:flex;justify-content:center;gap:10px;margin-top:8px}
.social a{width:42px;height:42px;border-radius:13px;background:var(--surface);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:var(--ink-2);box-shadow:var(--shadow-sm)}
.social a svg{width:17px;height:17px}
.copy{text-align:center;color:var(--muted);font-size:11.5px;margin-top:16px}

/* ---------- Utilities ---------- */
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.hidden{display:none !important}
.qr-reader{border-radius:var(--r-lg);overflow:hidden;background:#000}
.qr-reader video{width:100%!important;display:block}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms!important;transition-duration:.001ms!important}
}
