/* TimtixHub marketplace design system.
   Premium dark royal-purple. Structure follows a working marketplace:
   dense, scannable, product-first. No decorative filler. */
:root {
  color-scheme: dark;
  /* ---- Semantic colour tokens: the source of truth ----
     Components reference these roles (or the short aliases below that
     point at them). Raw hex and rgba values live only in this block
     and its light-theme twin; scripts/design-gate.mjs enforces it. */
  --color-bg: #0A0A0F;
  --color-bg-subtle: #0E0E16;
  --color-surface: #141420;
  --color-surface-raised: #1B1928;
  --color-surface-high: #232032;
  --color-border: #262338;
  --color-border-soft: #1D1B2C;
  --color-text: #F8FAFC;
  --color-text-muted: #A1A1AA;
  --color-text-faint: #94949F;
  --color-accent: #7C3AED;
  --color-accent-strong: #A855F7;
  --color-accent-deep: #9333EA;
  --color-accent-bright: #C084FC;
  --color-accent-pale: #D8B4FE;
  --color-accent-tint: #EDE9FE;
  --color-accent-soft: rgba(124, 58, 237, .14);
  --color-success: #34D399;
  --color-success-soft: rgba(52, 211, 153, .12);
  --color-danger: #F87171;
  --color-danger-bright: #FCA5A5;
  --color-danger-soft: rgba(248, 113, 113, .12);
  --color-warning: #FBBF24;
  --color-warning-soft: rgba(251, 191, 36, .12);
  --color-orange: #FB923C;
  --color-on-accent: #FFFFFF;
  --color-chrome: rgba(10, 10, 15, .88);
  --color-chrome-strong: rgba(14, 14, 22, .94);
  --color-overlay-soft: rgba(255, 255, 255, .06);
  --color-switch-track: rgba(255, 255, 255, .13);
  --color-on-panel: #FFFFFF;
  --color-on-panel-muted: rgba(255, 255, 255, .74);
  /* Constants that stay the same in both themes */
  --white: #FFFFFF;
  --black: #000000;
  --ink: #0C0A14;
  --google-line: #DADCE0;
  --brand-wa: #1EB85C;
  --brand-wa-hover: #23CC66;
  --brand-tg: #229ED9;
  --brand-tg-hover: #2FB0EC;
  --brand-wa-soft: rgba(37, 211, 102, .13);
  --brand-tg-soft: rgba(34, 158, 217, .14);
  --panel-a: #181130;
  --panel-b: #100C20;
  --panel-c: #0D0A18;
  --showcase-a: #241350;
  --showcase-b: #180D33;
  --showcase-c: #100826;
  /* Controlled alpha scales (replace dozens of ad-hoc tints) */
  --accent-a06: rgba(124, 58, 237, .06);
  --accent-a10: rgba(124, 58, 237, .10);
  --accent-a14: rgba(124, 58, 237, .14);
  --accent-a16: rgba(124, 58, 237, .16);
  --accent-a20: rgba(124, 58, 237, .20);
  --accent-a28: rgba(124, 58, 237, .28);
  --accent-a35: rgba(124, 58, 237, .35);
  --accent-a45: rgba(124, 58, 237, .45);
  --accent-a92: rgba(124, 58, 237, .92);
  --accent2-a08: rgba(168, 85, 247, .08);
  --accent2-a12: rgba(168, 85, 247, .12);
  --accent2-a16: rgba(168, 85, 247, .16);
  --accent2-a20: rgba(168, 85, 247, .20);
  --accent2-a28: rgba(168, 85, 247, .28);
  --accent2-a35: rgba(168, 85, 247, .35);
  --accent2-a45: rgba(168, 85, 247, .45);
  --accent2-a55: rgba(168, 85, 247, .55);
  --accent2-a65: rgba(168, 85, 247, .65);
  --accent2-a75: rgba(168, 85, 247, .75);
  --accent2-a92: rgba(168, 85, 247, .92);
  --accent3-a15: rgba(192, 132, 252, .15);
  --accent3-a25: rgba(192, 132, 252, .25);
  --accent3-a35: rgba(192, 132, 252, .35);
  --accent3-a55: rgba(192, 132, 252, .55);
  --success-a10: rgba(52, 211, 153, .10);
  --success-a14: rgba(52, 211, 153, .14);
  --success-a25: rgba(52, 211, 153, .25);
  --success-a45: rgba(52, 211, 153, .45);
  --success-a50: rgba(52, 211, 153, .50);
  --danger-a08: rgba(248, 113, 113, .08);
  --danger-a12: rgba(248, 113, 113, .12);
  --danger-a35: rgba(248, 113, 113, .35);
  --danger-a38: rgba(248, 113, 113, .38);
  --warning-a09: rgba(251, 191, 36, .09);
  --warning-a12: rgba(251, 191, 36, .12);
  --warning-a30: rgba(251, 191, 36, .30);
  --orange-a14: rgba(249, 115, 22, .14);
  --white-a05: rgba(255, 255, 255, .05);
  --white-a10: rgba(255, 255, 255, .10);
  --white-a15: rgba(255, 255, 255, .15);
  --white-a20: rgba(255, 255, 255, .20);
  --white-a35: rgba(255, 255, 255, .35);
  --white-a45: rgba(255, 255, 255, .45);
  --white-a70: rgba(255, 255, 255, .70);
  --white-a75: rgba(255, 255, 255, .75);
  --white-a80: rgba(255, 255, 255, .80);
  --white-a88: rgba(255, 255, 255, .88);
  --white-a92: rgba(255, 255, 255, .92);
  --white-a94: rgba(255, 255, 255, .94);
  --black-a25: rgba(0, 0, 0, .25);
  --black-a35: rgba(0, 0, 0, .35);
  --black-a45: rgba(0, 0, 0, .45);
  --black-a55: rgba(0, 0, 0, .55);
  --black-a60: rgba(0, 0, 0, .60);
  --scrim-a60: rgba(5, 5, 9, .60);
  --scrim-a72: rgba(5, 5, 9, .72);
  --bg-a72: rgba(10, 10, 15, .72);
  --bg-a88: rgba(10, 10, 15, .88);
  --bg2-a94: rgba(14, 14, 22, .94);
  --surface-a40: rgba(20, 20, 32, .40);
  --surface-a60: rgba(20, 20, 32, .60);
  --surface-a82: rgba(20, 20, 32, .82);
  --surface2-a94: rgba(27, 25, 40, .94);
  --panel-a88: rgba(16, 9, 34, .88);
  --ink-a05: rgba(22, 18, 31, .05);
  --ink-a07: rgba(22, 18, 31, .07);
  --ink-a18: rgba(22, 18, 31, .18);
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-accent), var(--color-accent-deep));
  --gradient-accent: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  /* Short aliases: the names existing rules already reference */
  --bg: var(--color-bg);
  --bg-2: var(--color-bg-subtle);
  --surface: var(--color-surface);
  --surface-2: var(--color-surface-raised);
  --surface-3: var(--color-surface-high);
  --line: var(--color-border);
  --line-soft: var(--color-border-soft);
  --text: var(--color-text);
  --muted: var(--color-text-muted);
  --muted-2: var(--color-text-faint);
  --purple: var(--color-accent);
  --purple-2: var(--color-accent-strong);
  --purple-3: var(--color-accent-bright);
  --purple-soft: var(--color-accent-soft);
  --green: var(--color-success);
  --green-soft: var(--color-success-soft);
  --red: var(--color-danger);
  --red-soft: var(--color-danger-soft);
  --amber: var(--color-warning);
  --amber-soft: var(--color-warning-soft);
  --border: var(--color-border);
  --highlight: var(--color-accent-bright);
  --accent-2: var(--color-accent-strong);
  /* Spacing scale (4pt) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 80px;
  --sp-10: 96px;
  --sp-11: 120px;
  /* Type scale */
  --fs-display: clamp(40px, 5vw, 57px);
  --fs-hero: clamp(30px, 4.2vw, 44px);
  --fs-hero-mobile: clamp(31px, 9.2vw, 38px);
  --fs-landing-title: clamp(27px, 3.4vw, 36px);
  --fs-auth-title: clamp(29px, 4vw, 36px);
  --fs-showcase: clamp(36px, 3.4vw, 48px);
  --fs-cta-title: clamp(32px, 5vw, 48px);
  --fs-final-title: clamp(36px, 5.5vw, 54px);
  --fs-page-fluid: clamp(23px, 2.2vw + 14px, 30px);
  --fs-acct-fluid: clamp(20px, 1.4vw + 13px, 24px);
  --fs-h1: 31px;
  --fs-page: 27px;
  --fs-title: 24px;
  --fs-h2: 21px;
  --fs-sheet: 19px;
  --fs-h3: 17px;
  --fs-body: 15px;
  --fs-small: 13.5px;
  --fs-micro: 12px;
  --fs-caption: 11px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --lh-display: 1.08;
  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-body: 1.55;
  --lh-relaxed: 1.65;
  --ls-heading: -.01em;
  --ls-display: -.03em;
  /* Radius scale. --radius-btn is the approved button radius. */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-btn: 12px;
  --radius: 14px;
  --radius-card: 18px;
  --radius-dialog: 22px;
  --radius-xl: 28px;
  --radius-hero: 40px;
  --radius-pill: 999px;
  /* Elevation */
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .35);
  --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, .42);
  --elevation-1: var(--shadow-sm);
  --elevation-2: var(--shadow);
  --shadow-accent: 0 8px 24px rgba(124, 58, 237, .35);
  --shadow-accent-lg: 0 14px 34px rgba(124, 58, 237, .42);
  /* Motion: one micro standard, one medium, one slow */
  --dur-micro: .15s;
  --dur-med: .3s;
  --dur-slow: .6s;
  --ease-out: cubic-bezier(.22, .8, .3, 1);
  --ease-drawer: cubic-bezier(.32, .72, .24, 1);
  /* Focus states */
  --focus-color: var(--color-accent-strong);
  --focus-outline: 2px solid var(--color-accent-strong);
  --focus-ring: 0 0 0 3px var(--color-accent-soft);
  /* Chrome */
  --header-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  /* Safe areas: real values once viewport-fit=cover applies */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; }
/* No global smooth scrolling: it made route changes and programmatic
   focus scrolls visibly drag the page around. Intentional smooth
   scrolls are requested per call in JS. scrollbar-gutter keeps the
   layout from shifting sideways when overlays lock the scrollbar. */
html { scrollbar-gutter: stable; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple-3); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: var(--lh-tight); letter-spacing: -.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea {
  font-family: inherit; font-size: var(--fs-small); color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-3); width: 100%; outline: none; transition: border-color var(--dur-micro), box-shadow var(--dur-micro);
}
input:focus, select:focus, textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
label { display: block; font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--muted); margin: var(--sp-3) 0 0; }
label input, label select, label textarea { margin-top: var(--sp-2); font-weight: var(--fw-regular); }
img { max-width: 100%; }
.ic-wrap { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ic { width: 20px; height: 20px; display: block; }
.muted { color: var(--muted); font-size: var(--fs-small); }
.status { color: var(--muted); font-size: var(--fs-small); margin: var(--sp-3) 0; }
.form-error { color: var(--red); font-size: var(--fs-small); margin-top: var(--sp-3); }

/* ---------- Buttons, badges ----------
   One button system: every button-like class shares this base.
   Variants (.primary, .ghost, .btn-white, .btn-outline, button.buy,
   .copy-btn, .small, .wide, .danger, .auth-submit) only restate what
   makes them different. .claim-btn is a .btn variant hook. */
.btn, .btn-white, .btn-outline, button.buy, .copy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  font-size: var(--fs-small); font-weight: var(--fw-semibold); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-btn);
  transition: transform var(--dur-micro), background var(--dur-micro), border-color var(--dur-micro), box-shadow var(--dur-micro);
  white-space: nowrap; cursor: pointer;
}
.btn:hover { border-color: var(--purple-2); text-decoration: none; transform: translateY(-1px); }
.btn.primary {
  background: var(--gradient-primary); border-color: transparent; color: var(--white);
  box-shadow: 0 8px 24px var(--accent-a35);
}
.btn.primary:hover { box-shadow: 0 10px 30px var(--accent-a45); }
.btn.ghost { background: transparent; }
.btn.small { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-small); }
.btn.wide { width: 100%; margin-top: var(--sp-4); }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
button.buy {
  background: var(--gradient-primary); color: var(--white); border: none;
  font-weight: var(--fw-bold); padding: var(--sp-2) var(--sp-4);
}
button.buy:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 20px var(--accent-a45); }
button.buy:disabled { background: var(--surface-3); color: var(--muted-2); cursor: default; }
.pill, .badge, .smm-chip, .duration-badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-size: var(--fs-caption); font-weight: var(--fw-semibold);
  padding: var(--sp-1) var(--sp-2); border-radius: var(--radius-pill);
}
.pill { font-weight: var(--fw-bold); padding: var(--sp-1) var(--sp-3); letter-spacing: .02em; }
.pill-done { background: var(--green-soft); color: var(--green); }
.pill-wait { background: var(--amber-soft); color: var(--amber); }
.pill-bad { background: var(--red-soft); color: var(--red); }
.badge { background: var(--purple-soft); color: var(--purple-3); }
.stock { font-size: var(--fs-micro); font-weight: var(--fw-semibold); color: var(--green); }
.copy-btn {
  background: var(--surface-3); color: var(--muted);
  font-size: var(--fs-caption); padding: var(--sp-1) var(--sp-2); margin-left: var(--sp-2);
}
.copy-btn:hover { color: var(--text); border-color: var(--purple-2); }

/* ---------- topbar ----------
   One flex row at every width. Desktop: brand, nav (pushed right),
   theme, cart, account actions. Phone widths: menu, brand, cart,
   account actions. --header-h is the single source for the bar
   height and every sticky offset under it. */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: var(--sp-3);
  height: var(--header-h); padding: 0 var(--sp-6);
  background: var(--color-chrome); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: var(--sp-3); color: var(--text); flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; flex: none; }
/* The official brand emblem (purple T) as a PNG, wordmark kept separate. */
.brand-logo { height: 27px; width: auto; display: block; }
.auth-brand .brand-logo { height: 40px; }
.foot-brand .brand-logo { height: 30px; }
.mobile-brand { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-1) var(--sp-1) var(--sp-3); font-size: var(--fs-sheet); font-weight: var(--fw-extrabold); color: var(--text); border-bottom: 1px solid var(--line-soft); }
.mobile-brand:hover { text-decoration: none; }
.mobile-brand .brand-logo { height: 30px; }
.brand-name { font-size: var(--fs-sheet); font-weight: var(--fw-extrabold); letter-spacing: -.02em; }
.topnav { display: flex; align-items: center; gap: var(--sp-1); margin-left: auto; flex: none; }
.topnav a, .nav-link {
  color: var(--muted); font-size: var(--fs-small); font-weight: var(--fw-semibold); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-btn); white-space: nowrap;
  background: none; border: none; transition: color var(--dur-micro), background var(--dur-micro);
}
.topnav a:hover, .nav-link:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.top-search { flex: 1; max-width: 440px; position: relative; display: flex; align-items: center; }
.top-search .ic-wrap { position: absolute; left: 13px; color: var(--muted-2); pointer-events: none; }
.top-search .ic { width: 17px; height: 17px; }
.top-search input { border-radius: var(--radius-btn); padding: var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-7); background: var(--surface); }
.top-actions { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.top-actions .btn { white-space: nowrap; }
.wallet-chip {
  display: inline-flex; align-items: center; gap: var(--sp-2); background: var(--purple-soft);
  border: 1px solid var(--accent2-a35); color: var(--text); font-weight: var(--fw-bold); font-size: var(--fs-small);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-btn);
}
.wallet-chip .ic { width: 16px; height: 16px; color: var(--purple-3); }
.menu-btn {
  display: none; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); width: 40px; height: 40px; border-radius: var(--radius-sm); align-items: center; justify-content: center;
}
.menu-btn .ic { width: 20px; height: 20px; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 57; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow: auto;
  background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--sp-3) var(--sp-4) calc(var(--sp-4) + var(--safe-bottom)); box-shadow: var(--shadow);
}
.mobile-menu[hidden] { display: none; }
.mobile-cat { border-bottom: 1px solid var(--line-soft); }
.mobile-cat summary { padding: var(--sp-3) var(--sp-1); font-weight: var(--fw-bold); font-size: var(--fs-body); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mobile-cat summary::after { content: "▾"; color: var(--muted); }
.mobile-cat a { display: block; color: var(--muted); padding: var(--sp-2) var(--sp-1) var(--sp-2) var(--sp-4); font-size: var(--fs-small); }
.mm-label { font-size: var(--fs-caption); font-weight: var(--fw-extrabold); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin: var(--sp-4) var(--sp-1) var(--sp-2); }
.mm-list { display: flex; flex-direction: column; gap: var(--sp-1); }
.mm-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-2); border-radius: var(--radius-btn); color: var(--text); font-size: var(--fs-body); font-weight: var(--fw-semibold); }
.mm-row:hover { background: var(--surface-2); text-decoration: none; }
.mm-ic { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--purple-soft); color: var(--purple-3); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mm-ic .ic { width: 16px; height: 16px; }
.mm-row.active { background: var(--purple-soft); }
.mm-row.active .mm-ic { background: var(--accent2-a28); }
.mm-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
.mm-actions .btn { flex: 1; justify-content: center; margin-top: 0; padding: var(--sp-3) var(--sp-4); }

/* ---------- layout ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: var(--sp-6) var(--sp-6) var(--sp-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.section-title { font-size: var(--fs-h2); font-weight: var(--fw-extrabold); letter-spacing: -.02em; margin-bottom: var(--sp-4); }
.section-head .section-title { margin-bottom: 0; }
.section-link { font-size: var(--fs-small); font-weight: var(--fw-semibold); flex: none; }
.page-title { font-size: var(--fs-page); font-weight: var(--fw-extrabold); letter-spacing: -.02em; margin: var(--sp-2) 0 var(--sp-2); }
.page-blurb { color: var(--muted); max-width: 720px; margin-bottom: var(--sp-4); }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); font-size: var(--fs-small); color: var(--muted-2); margin-bottom: var(--sp-2); }
.crumbs a { color: var(--muted); }
.crumb-sep { color: var(--muted-2); }
.crumb-here { color: var(--text); font-weight: var(--fw-semibold); }
.app-chip { display: inline-block; background: var(--surface-2); border: 1px solid var(--line); padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-pill); font-size: var(--fs-small); margin-bottom: var(--sp-3); }

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--line-soft); background:
  radial-gradient(720px 300px at 12% -60px, var(--accent-a16), transparent 65%),
  radial-gradient(560px 260px at 88% -40px, var(--accent2-a12), transparent 60%), var(--bg); }
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: var(--sp-7) var(--sp-6) var(--sp-6);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr); gap: var(--sp-7); align-items: center;
}
.hero h1 { font-size: var(--fs-hero); font-weight: var(--fw-extrabold); letter-spacing: -.03em; line-height: var(--lh-display); }
.hero h1 .grad { background: linear-gradient(92deg, var(--purple-2), var(--purple-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-search { position: relative; display: flex; align-items: center; margin: var(--sp-5) 0 0; max-width: 580px; }
.hero-search .ic-wrap { position: absolute; left: 17px; color: var(--muted-2); pointer-events: none; }
.hero-search input {
  padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-7); font-size: var(--fs-body); border-radius: var(--radius-btn); background: var(--surface);
  border-color: var(--line); box-shadow: 0 10px 34px var(--black-a35); margin: 0;
}
.pop-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); align-items: center; }
.pop-chips > span { font-size: var(--fs-micro); color: var(--muted-2); font-weight: var(--fw-semibold); }
.pop-chips a {
  font-size: var(--fs-micro); font-weight: var(--fw-semibold); color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-btn); transition: all var(--dur-micro);
}
.pop-chips a:hover { color: var(--text); border-color: var(--purple-2); text-decoration: none; }
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); margin-top: var(--sp-5); }
.hero-stats span { font-size: var(--fs-small); color: var(--muted); }
.hero-stats b { color: var(--text); font-weight: var(--fw-extrabold); }
.hero-panel {
  background: var(--surface-a82); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: var(--sp-4); backdrop-filter: blur(8px); box-shadow: var(--shadow);
}
.hero-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-2); }
.hero-panel-head h3 { font-size: var(--fs-small); font-weight: var(--fw-bold); display: flex; align-items: center; gap: var(--sp-2); }
.hero-panel-head h3 .ic { width: 16px; height: 16px; color: var(--purple-3); }
.hero-panel-head a { font-size: var(--fs-micro); font-weight: var(--fw-semibold); }
.hero-panel .svc-row { border: none; border-bottom: 1px solid var(--line-soft); border-radius: 0; padding: var(--sp-3) var(--sp-1); background: none; }
.hero-panel .svc-row:hover { background: none; }
.hero-panel .svc-row:last-of-type { border-bottom: none; }
.hero-panel-note { font-size: var(--fs-micro); color: var(--muted-2); margin-top: var(--sp-3); }

/* ---------- category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: var(--sp-4); }
.cat-tile {
  display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-4);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  color: var(--text); transition: transform var(--dur-micro), border-color var(--dur-micro), background var(--dur-micro);
}
.cat-tile:hover { transform: translateY(-2px); border-color: var(--accent2-a45); background: var(--surface-2); text-decoration: none; }
.cat-tile-icon {
  width: 42px; height: 42px; border-radius: var(--radius-btn); margin-bottom: var(--sp-2);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--purple-soft); color: var(--purple-3);
}
.cat-tile-icon .ic { width: 21px; height: 21px; }
.cat-tile-name { font-size: var(--fs-h3); font-weight: var(--fw-bold); }
.cat-tile-blurb { font-size: var(--fs-small); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-tile-count { font-size: var(--fs-micro); color: var(--purple-3); font-weight: var(--fw-bold); margin-top: var(--sp-2); }
.cat-tile-price { font-size: var(--fs-micro); color: var(--muted); }
.cat-tile-price b { color: var(--text); }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: var(--sp-4); }
/* One card system: shared surface, border and radius. The card
   classes below are layout variants of this base. */
.card, .smm-card, .feature-card, .featured-card, .shop-card, .pm-card,
.food-card, .socials-card, .settings-card, .adm-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-card);
}
.card {
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur-micro), border-color var(--dur-micro), box-shadow var(--dur-micro);
}
.card:hover { transform: translateY(-2px); border-color: var(--accent2-a45); box-shadow: var(--shadow-sm); }
.card .visual {
  position: relative; height: 104px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); border-bottom: 1px solid var(--line-soft);
}
.card .visual .flag { width: 74px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); box-shadow: 0 6px 16px var(--black-a45); }
.card .visual .stock { position: absolute; top: 10px; right: 12px; background: var(--bg-a72); padding: var(--sp-1) var(--sp-2); border-radius: var(--radius-pill); }
.logo-chip {
  position: relative; overflow: hidden;
  width: 52px; height: 52px; border-radius: var(--radius); background: var(--white);
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px var(--black-a35);
}
.logo-chip img { position: relative; }
.logo-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--purple-soft); color: var(--purple-3);
}
.flag-wrap { position: relative; display: inline-flex; }
.flag-wrap .flag { position: relative; }
.logo-chip img { width: 30px; height: 30px; }
.tile-icon {
  width: 52px; height: 52px; border-radius: var(--radius); background: var(--purple-soft); color: var(--purple-3);
  display: inline-flex; align-items: center; justify-content: center;
}
.tile-icon .ic { width: 26px; height: 26px; }
.card-body { padding: var(--sp-4) var(--sp-4) var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-1); flex: 1; }
.card .name { font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: var(--lh-snug); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: var(--fs-micro); color: var(--muted); display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.card .foot { margin-top: auto; padding-top: var(--sp-3); display: flex; align-items: center; gap: var(--sp-3); }
.price { font-size: var(--fs-h3); font-weight: var(--fw-extrabold); letter-spacing: -.01em; }
.price small { font-size: var(--fs-caption); color: var(--muted); font-weight: var(--fw-semibold); }
.price.big { font-size: var(--fs-page); }
.details-link { font-size: var(--fs-small); font-weight: var(--fw-semibold); margin-left: auto; }
.card .foot .buy { margin-left: auto; }
.card .foot .details-link + .buy { margin-left: 0; }

/* ---------- service rows / pickers ---------- */
.svc-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.svc-row {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  transition: border-color var(--dur-micro), background var(--dur-micro);
}
.svc-row:hover { border-color: var(--accent2-a45); background: var(--surface-2); }
.svc-visual { flex: none; display: inline-flex; }
.svc-visual .flag { width: 40px; height: 28px; object-fit: cover; border-radius: var(--radius-xs); }
.svc-visual .logo-chip { width: 36px; height: 36px; border-radius: var(--radius-sm); }
.svc-visual .logo-chip img { width: 20px; height: 20px; }
.svc-visual .tile-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); }
.svc-visual .tile-icon .ic { width: 18px; height: 18px; }
.svc-name { flex: 1; min-width: 0; font-weight: var(--fw-semibold); font-size: var(--fs-body); overflow: hidden; text-overflow: ellipsis; }
.svc-name small { display: block; color: var(--muted); font-weight: var(--fw-regular); font-size: var(--fs-micro); margin-top: var(--sp-1); }
.svc-price { font-weight: var(--fw-extrabold); font-size: var(--fs-body); white-space: nowrap; }
.svc-price small { color: var(--muted); font-weight: var(--fw-semibold); font-size: var(--fs-caption); }
.picker-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-5); align-items: start; }
.picker-side {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--sp-4);
  position: sticky; top: 122px;
}
.picker-side h3 { font-size: var(--fs-body); margin-bottom: var(--sp-3); }
.pick-step { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-3); }
.pick-step:first-child { margin-top: 0; }
.pick-step h3 { font-size: var(--fs-body); }
.list-search { position: relative; display: flex; align-items: center; margin: 0 0 var(--sp-2); }
.list-search .ic-wrap { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.list-search .ic { width: 16px; height: 16px; }
.list-search input { border-radius: var(--radius-btn); padding-left: var(--sp-6); background: var(--surface); margin: 0; }
.country-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: var(--sp-2); max-height: 336px; overflow: auto; padding: var(--sp-1); }
.country-row {
  display: flex; align-items: center; gap: var(--sp-3); text-align: left;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  color: var(--text); font-size: var(--fs-small); font-weight: var(--fw-semibold); padding: var(--sp-3) var(--sp-3); transition: all var(--dur-micro);
}
.country-row:hover { border-color: var(--accent2-a45); }
.country-row.selected { border-color: var(--purple-2); background: var(--purple-soft); }
.country-row .flag { width: 30px; height: 21px; object-fit: cover; border-radius: var(--radius-xs); flex: none; }
.country-row small { margin-left: auto; color: var(--muted); font-weight: var(--fw-medium); font-size: var(--fs-micro); white-space: nowrap; }
.active-row { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line-soft); }
.active-row:last-child { border-bottom: none; }
.active-phone { font-weight: var(--fw-bold); margin-top: var(--sp-1); }
.countdown { font-size: var(--fs-micro); color: var(--amber); margin-top: var(--sp-1); }
.code-box {
  background: var(--green-soft); color: var(--green); font-weight: var(--fw-bold); font-size: var(--fs-small);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); margin-top: var(--sp-2); word-break: break-all;
}
.tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: var(--sp-1) 0 var(--sp-4); }
.tab {
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  font-size: var(--fs-small); font-weight: var(--fw-semibold); padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-btn); transition: all var(--dur-micro);
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--purple-soft); border-color: var(--purple-2); color: var(--text); }

/* ---------- Social media services page ---------- */
.smm-head { margin-bottom: var(--sp-4); }
.smm-title { font-size: var(--fs-page); font-weight: var(--fw-extrabold); letter-spacing: -.02em; margin: var(--sp-1) 0 var(--sp-2); }
.smm-sub { color: var(--muted); font-size: var(--fs-small); max-width: 640px; }
.smm-search { margin-top: var(--sp-4); max-width: 560px; }
.smm-rail { display: flex; gap: var(--sp-2); overflow-x: auto; padding: var(--sp-2) var(--sp-1) var(--sp-3); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.smm-rail::-webkit-scrollbar { display: none; }
.smm-pchip { color: var(--text); flex: none; }
.smm-pchip-ic { display: inline-flex; width: 17px; height: 17px; align-items: center; justify-content: center; }
.smm-pchip-ic img { width: 16px; height: 16px; }
.smm-pchip-ic .ic { width: 16px; height: 16px; }
.smm-pchip-count { font-size: var(--fs-caption); font-weight: var(--fw-bold); color: var(--muted); background: var(--color-overlay-soft); padding: var(--sp-1) var(--sp-2); border-radius: var(--radius-pill); }
.smm-pchip.active { background: var(--gradient-primary); border-color: transparent; color: var(--white); }
.smm-pchip.active .smm-pchip-count { background: var(--white-a20); color: var(--white); }
.smm-controls { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-2); }
.smm-controls .tabs { margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.smm-controls .tabs::-webkit-scrollbar { display: none; }
.smm-sort { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-micro); color: var(--muted); flex: none; margin-left: auto; }
.smm-sort select { background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.smm-count { margin: var(--sp-1) 0 var(--sp-3); }
#smmMore[hidden] { display: none; }
.smm-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
.smm-card { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.smm-card:hover { border-color: var(--accent2-a35); }
.smm-card-top { display: flex; gap: var(--sp-3); align-items: flex-start; }
.smm-card-ic { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--color-overlay-soft); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.smm-card-ic img { width: 17px; height: 17px; }
.smm-card-ic .ic { width: 17px; height: 17px; }
.smm-card-name { font-size: var(--fs-small); font-weight: var(--fw-semibold); line-height: var(--lh-snug); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.smm-card-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.smm-chip { color: var(--muted); background: var(--color-overlay-soft); }
.smm-chip.ok { color: var(--green); background: var(--success-a10); }
.smm-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.smm-price { font-size: var(--fs-h3); font-weight: var(--fw-extrabold); letter-spacing: -.01em; }
.smm-price small { display: block; font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--muted); letter-spacing: .02em; }
.smm-group { margin-top: var(--sp-5); }
.smm-group-head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.smm-group-head h2 { font-size: var(--fs-h3); font-weight: var(--fw-extrabold); }
.smm-group-ic { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; }
.smm-group-ic img { width: 18px; height: 18px; }
.smm-group-ic .ic { width: 18px; height: 18px; }
.smm-group-count { font-size: var(--fs-micro); color: var(--muted); }
.smm-group-link { margin-left: auto; background: none; border: none; color: var(--purple-3); font-size: var(--fs-small); font-weight: var(--fw-bold); cursor: pointer; padding: var(--sp-1) var(--sp-1); }
@media (min-width: 701px) { .smm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1101px) { .smm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .smm-title { font-size: var(--fs-page); } .smm-rail { flex-wrap: wrap; overflow-x: visible; } }

/* ---------- app index rows ---------- */
.app-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.app-row {
  display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); color: var(--text);
  transition: border-color var(--dur-micro), background var(--dur-micro);
}
.app-row:hover { border-color: var(--accent2-a45); background: var(--surface-2); text-decoration: none; }
.app-name { font-weight: var(--fw-bold); font-size: var(--fs-body); }
.app-meta { color: var(--muted); font-size: var(--fs-small); }
.app-price { margin-left: auto; font-weight: var(--fw-extrabold); color: var(--purple-3); white-space: nowrap; }

/* ---------- panels / forms / product ---------- */
.tool-panel {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: var(--sp-5); max-width: 560px;
}
.tool-panel.wide-panel { max-width: 760px; }
.tool-panel .btn { margin-top: var(--sp-4); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-4); }
.product-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.product-visual {
  height: 240px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); border: 1px solid var(--line-soft);
}
.product-visual .flag { width: 150px; height: 104px; object-fit: cover; border-radius: var(--radius-sm); }
.product-visual .logo-chip { width: 92px; height: 92px; border-radius: var(--radius-dialog); }
.product-visual .logo-chip img { width: 52px; height: 52px; }
.product-visual .tile-icon { width: 92px; height: 92px; border-radius: var(--radius-dialog); }
.product-visual .tile-icon .ic { width: 44px; height: 44px; }
.product-main .meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; color: var(--muted); font-size: var(--fs-small); margin-top: var(--sp-2); }
.need-list { margin: var(--sp-2) 0 0; padding-left: var(--sp-4); color: var(--muted); font-size: var(--fs-small); }
.product-buy {
  display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-5);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-card);
  padding: var(--sp-4) var(--sp-4);
}
.product-buy .buy { padding: var(--sp-3) var(--sp-5); font-size: var(--fs-body); }
@media (max-width: 560px) {
  .product-buy { flex-direction: column; align-items: stretch; }
  .product-buy .buy { width: 100%; }
}
.how-num {
  width: 26px; height: 26px; border-radius: var(--radius-pill); flex: none;
  background: var(--gradient-primary); color: var(--white);
  font-size: var(--fs-small); font-weight: var(--fw-extrabold); display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- sheets / modals ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 80; background: var(--scrim-a72);
  backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; padding: 0;
  height: 100vh; height: 100dvh;
}
.overlay[hidden] { display: none; }
.sheet {
  background: var(--surface); border: 1px solid var(--line); border-bottom: none;
  border-radius: var(--radius-dialog) var(--radius-dialog) 0 0; padding: var(--sp-5) var(--sp-5) calc(var(--sp-6) + env(safe-area-inset-bottom, 0)); width: 100%; max-width: 460px;
  max-height: 92vh; max-height: 92dvh; overflow: auto; position: relative; box-shadow: var(--shadow);
  animation: sheet-up var(--dur-med) ease;
}
@keyframes sheet-up { from { transform: translateY(16px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sheet); line-height: 1;
}
.sheet-close:hover { color: var(--text); }
.sheet-title { font-size: var(--fs-sheet); font-weight: var(--fw-extrabold); margin-bottom: var(--sp-3); padding-right: var(--sp-6); }
.sheet-note { background: var(--purple-soft); color: var(--purple-3); font-size: var(--fs-small); padding: var(--sp-3) var(--sp-3); border-radius: var(--radius-sm); margin-bottom: var(--sp-2); }
.sheet-fine { font-size: var(--fs-micro); color: var(--muted-2); margin-top: var(--sp-3); text-align: center; }
.auth-tabs { display: flex; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--sp-1); margin-bottom: var(--sp-2); }
.auth-tabs button {
  flex: 1; background: none; border: none; color: var(--muted); font-size: var(--fs-small); font-weight: var(--fw-bold);
  padding: var(--sp-2); border-radius: var(--radius-sm); transition: all var(--dur-micro);
}
.auth-tabs button.active { background: var(--surface-3); color: var(--text); }
.buy-item { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-4); }
/* Chunked buy-sheet sections: one titled group per decision. */
.buy-section { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-4) var(--sp-4); margin-top: var(--sp-4); }
.buy-section legend { font-size: var(--fs-caption); font-weight: var(--fw-extrabold); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 var(--sp-2); }
.buy-section .buy-rows { margin-top: var(--sp-3); }
input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px var(--danger-a16); }
.buy-name { font-weight: var(--fw-bold); font-size: var(--fs-body); }
.buy-cat { color: var(--muted); font-size: var(--fs-small); margin-top: var(--sp-1); }
.price-note { background: var(--amber-soft); color: var(--amber); font-size: var(--fs-small); padding: var(--sp-3) var(--sp-3); border-radius: var(--radius-sm); margin-top: var(--sp-3); }
.buy-rows { margin-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
.buy-rows > div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-small); }
.buy-rows span { color: var(--muted); text-transform: capitalize; }
.success-box { text-align: center; padding: var(--sp-3) 0 var(--sp-1); }
.success-box .ic-wrap { width: 54px; height: 54px; border-radius: var(--radius-pill); background: var(--green-soft); color: var(--green); margin-bottom: var(--sp-3); }
.success-box .ic { width: 27px; height: 27px; }
.big-number { font-size: var(--fs-title); font-weight: var(--fw-extrabold); letter-spacing: .01em; margin: var(--sp-2) 0; }

/* ---------- account drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 69; background: var(--scrim-a60); }
.scrim[hidden] { display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: 430px; max-width: 94vw;
  background: var(--bg-2); border-left: 1px solid var(--line); padding: var(--sp-5) var(--sp-5) var(--sp-6);
  overflow: auto; box-shadow: var(--shadow); animation: drawer-in var(--dur-med) ease;
}
.drawer[hidden] { display: none; }
@keyframes drawer-in { from { transform: translateX(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); }
.drawer-head h2 { font-size: var(--fs-sheet); font-weight: var(--fw-extrabold); }
.drawer-head p { color: var(--muted); font-size: var(--fs-small); }
.drawer-head .sheet-close { position: static; flex: none; }
.wallet-card {
  margin-top: var(--sp-4); border-radius: var(--radius); padding: var(--sp-4);
  background: linear-gradient(140deg, var(--accent-a35), var(--accent2-a12) 55%, var(--surface-a40)), var(--surface);
  border: 1px solid var(--accent2-a35);
}
.wallet-label { font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--purple-3); }
.wallet-balance { display: block; font-size: var(--fs-h1); font-weight: var(--fw-extrabold); letter-spacing: -.02em; margin: var(--sp-1) 0 var(--sp-1); }
.wallet-note { font-size: var(--fs-micro); color: var(--muted); }
.topup-label { color: var(--muted); }
.drawer-h { font-size: var(--fs-body); font-weight: var(--fw-extrabold); margin: var(--sp-5) 0 var(--sp-3); }
.drawer-tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: var(--sp-5) 0 var(--sp-1); }
.drawer-tabs .tab { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-micro); }
.order-row { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-2); }
.order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); }
.order-top b { font-size: var(--fs-small); line-height: var(--lh-snug); }
.order-meta { color: var(--muted-2); font-size: var(--fs-micro); margin-top: var(--sp-1); }
.order-phone { font-weight: var(--fw-extrabold); font-size: var(--fs-h3); margin-top: var(--sp-2); }
.order-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); flex-wrap: wrap; }
.order-err { color: var(--red); font-size: var(--fs-micro); margin-top: var(--sp-2); }
.ledger-row { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-1); border-bottom: 1px solid var(--line-soft); font-size: var(--fs-small); }
.ledger-row small { display: block; color: var(--muted-2); font-size: var(--fs-micro); }
.ledger-row .pos { color: var(--green); }
.ledger-row .neg { color: var(--text); }

/* ---------- home info: track band, popular, how, trust, faq ---------- */
.track-band {
  max-width: 1200px; margin: var(--sp-5) auto 0; padding: 0 var(--sp-6);
}
.track-band-inner {
  display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap;
  background: linear-gradient(120deg, var(--accent-a20), var(--surface-a60) 60%), var(--surface);
  border: 1px solid var(--accent2-a28); border-radius: var(--radius-card); padding: var(--sp-5) var(--sp-5);
}
.track-band-text { flex: 1; min-width: 240px; }
.track-band-text h2 { font-size: var(--fs-sheet); font-weight: var(--fw-extrabold); display: flex; align-items: center; gap: var(--sp-2); }
.track-band-text h2 .ic { width: 19px; height: 19px; color: var(--purple-3); }
.track-band-text p { color: var(--muted); font-size: var(--fs-small); margin-top: var(--sp-1); }
.track-band-form { display: flex; gap: var(--sp-2); flex: 1; min-width: 280px; max-width: 480px; }
.track-band-form input { border-radius: var(--radius-btn); background: var(--bg-2); }
.pop-group { margin-bottom: var(--sp-5); }
.pop-group:last-child { margin-bottom: 0; }
.pop-group-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.pop-group-head h3 { font-size: var(--fs-h3); font-weight: var(--fw-extrabold); }
.pop-group-head .ic { width: 18px; height: 18px; color: var(--purple-3); }
.pop-group-head a { margin-left: auto; font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.how { max-width: 1200px; margin: 0 auto; padding: var(--sp-7) var(--sp-6) var(--sp-2); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.how-step { display: flex; gap: var(--sp-3); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--sp-4); }
.how-step h3 { font-size: var(--fs-body); margin-bottom: var(--sp-1); }
.how-step p { color: var(--muted); font-size: var(--fs-small); }
.trust-strip { max-width: 1200px; margin: 0 auto; padding: var(--sp-5) var(--sp-6) var(--sp-2); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.trust-item { display: flex; gap: var(--sp-3); padding: var(--sp-4); border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--bg-2); }
.trust-item .ic-wrap { width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--purple-soft); color: var(--purple-3); flex: none; }
.trust-item .ic { width: 19px; height: 19px; }
.trust-item h4 { font-size: var(--fs-small); margin-bottom: var(--sp-1); }
.trust-item p { color: var(--muted); font-size: var(--fs-micro); line-height: var(--lh-body); }
.faq { max-width: 820px; margin: 0 auto; padding: var(--sp-6) var(--sp-6) var(--sp-7); }
.faq h2 { font-size: var(--fs-h2); font-weight: var(--fw-extrabold); margin-bottom: var(--sp-4); }
.faq details { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: var(--sp-2); overflow: hidden; }
.faq summary { padding: var(--sp-4) var(--sp-4); font-weight: var(--fw-bold); font-size: var(--fs-body); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.faq summary::after { content: "▾"; color: var(--muted); transition: transform var(--dur-micro); }
.faq details[open ] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 var(--sp-4) var(--sp-4); color: var(--muted); font-size: var(--fs-small); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); margin-top: var(--sp-7); background: var(--bg-2); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: var(--sp-6) var(--sp-6) var(--sp-6); display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
.foot-brand .ic-wrap { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--gradient-primary); color: var(--white); }
.foot-brand .ic { width: 17px; height: 17px; }
.foot-blurb { color: var(--muted); font-size: var(--fs-small); margin-top: var(--sp-3); max-width: 340px; margin-inline: auto; }
/* Footer brand block sits centred: logo over the blurb. */
.footer-inner > div { text-align: center; }
.foot-brand { display: flex; justify-content: center; align-items: center; gap: var(--sp-3); font-size: var(--fs-sheet); font-weight: var(--fw-extrabold); }
.foot-col h4 { font-size: var(--fs-small); font-weight: var(--fw-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: var(--sp-3); }
.foot-col a { display: block; color: var(--muted); font-size: var(--fs-small); padding: var(--sp-1) 0; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { border-top: 1px solid var(--line-soft); }
.foot-bottom-inner { max-width: 1200px; margin: 0 auto; padding: var(--sp-4) var(--sp-6); display: flex; justify-content: center; gap: var(--sp-4); flex-wrap: wrap; }
.foot-small { color: var(--muted-2); font-size: var(--fs-micro); }

/* ---------- admin ---------- */
.admin-block { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--sp-4); margin-bottom: var(--sp-4); }
.admin-row { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-2) 0; }
.admin-row input, .admin-row select { width: auto; flex: 1; min-width: 130px; }
.admin-row .admin-num { flex: 0 0 84px; min-width: 84px; }
.admin-sub { padding-left: var(--sp-5); border-left: 2px solid var(--line); margin-left: var(--sp-2); }
.admin-check { display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0; font-size: var(--fs-small); }
.admin-check input { width: auto; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .topnav { display: none; }
  .menu-btn { display: inline-flex; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-5); padding: var(--sp-6) var(--sp-5) var(--sp-6); }
  .hero-panel { max-width: 560px; }
  .picker-layout { grid-template-columns: 1fr; }
  .picker-side { position: static; }
  .product-layout { grid-template-columns: 1fr; }
  .product-visual { height: 180px; }
  .top-search { display: none; }
  .section { padding: var(--sp-5) var(--sp-4) var(--sp-2); }
  .track-band { padding: 0 var(--sp-4); }
  .how, .trust-strip, .faq { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .footer-inner { grid-template-columns: 1fr; padding: var(--sp-6) var(--sp-4) var(--sp-5); }
  .foot-bottom-inner { padding: var(--sp-4) var(--sp-4); }
  .topbar { padding: 0 var(--sp-4); gap: var(--sp-3); }
}
@media (max-width: 640px) {
  .menu-btn { display: inline-flex; }
  .top-actions .btn.ghost { display: none; }
  .top-actions .btn { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-small); }
  .brand-name { font-size: var(--fs-h3); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-3); }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .cat-tile { padding: var(--sp-4); }
  .cat-tile-blurb { display: none; }
  .card .visual { height: 84px; }
  .card-body { padding: var(--sp-3) var(--sp-3) var(--sp-3); }
  .card .name { font-size: var(--fs-small); }
  .price { font-size: var(--fs-body); }
  .form-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-5) var(--sp-4); padding: var(--sp-6) var(--sp-4) var(--sp-5); }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
  .svc-row { flex-wrap: wrap; }
  .svc-price { margin-left: auto; }
  .hero h1 { font-size: var(--fs-page); }
  .hero-stats { gap: var(--sp-2) var(--sp-4); }
  .drawer { width: 100vw; max-width: 100vw; }
  .overlay { align-items: flex-end; }
}
/* Reduced motion, handled once for the whole site: no animation, no
   transitions, reveal targets shown immediately. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1 !important; transform: none !important; }
  .gtn-plate::after { display: none; }
}

/* ---------- auth sheet (sign in / create account) ---------- */
.auth-sheet { max-width: 480px; padding-top: var(--sp-6); }
.auth-sheet::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-2), var(--purple-3));
  border-radius: var(--radius-dialog) var(--radius-dialog) 0 0;
}
.auth-brand { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-5); padding-right: var(--sp-6); }
.auth-brand .brand-mark { width: 46px; height: 46px; border-radius: var(--radius); }
.auth-brand .brand-mark .ic { width: 24px; height: 24px; }
.auth-brand h2 { font-size: var(--fs-h2); font-weight: var(--fw-extrabold); letter-spacing: -.02em; }
.auth-brand p { color: var(--muted); font-size: var(--fs-small); margin-top: var(--sp-1); }
.auth-benefits { display: flex; flex-direction: column; gap: var(--sp-2); margin: var(--sp-4) 0 var(--sp-1); }
.auth-benefit {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-3);
}
.auth-benefit .ic-wrap { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--purple-soft); color: var(--purple-3); flex: none; }
.auth-benefit .ic { width: 16px; height: 16px; }
.auth-benefit p { font-size: var(--fs-small); color: var(--muted); line-height: var(--lh-body); }
.auth-benefit b { color: var(--text); }
.pw-wrap { position: relative; display: block; margin-top: var(--sp-2); }
.pw-wrap input { margin-top: 0; padding-right: var(--sp-7); }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: var(--radius-sm); border: none; background: none;
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
}
.pw-toggle:hover { color: var(--text); background: var(--surface-2); }
.pw-toggle .ic { width: 18px; height: 18px; }
.pw-meter { height: 5px; border-radius: var(--radius-pill); background: var(--surface-3); margin-top: var(--sp-3); overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: var(--radius-pill); transition: width var(--dur-med) ease, background var(--dur-med) ease; }
.pw-hint { font-size: var(--fs-micro); color: var(--muted); margin-top: var(--sp-2); }
.auth-fine { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); font-size: var(--fs-micro); color: var(--muted-2); margin-top: var(--sp-4); text-align: center; }
.auth-fine .ic-wrap { color: var(--muted-2); }
.auth-fine .ic { width: 14px; height: 14px; }

/* ---------- account dashboard shell (#/account) ---------- */
.account-section { padding-top: var(--sp-5); }
.acct-shell { display: grid; grid-template-columns: 282px minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.acct-side {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: var(--sp-4); position: sticky; top: 122px;
}
.acct-user { display: flex; align-items: center; gap: var(--sp-3); }
.acct-avatar {
  width: 46px; height: 46px; border-radius: var(--radius-pill); flex: none;
  background: var(--gradient-primary); color: var(--white);
  font-size: var(--fs-sheet); font-weight: var(--fw-extrabold); display: inline-flex; align-items: center; justify-content: center;
}
.acct-user-meta { min-width: 0; }
.acct-user-meta b { display: block; font-size: var(--fs-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-user-meta span { display: block; color: var(--muted); font-size: var(--fs-micro); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-wallet {
  margin-top: var(--sp-4); border-radius: var(--radius-sm); padding: var(--sp-4);
  background: linear-gradient(140deg, var(--accent-a35), var(--accent2-a12) 60%, var(--surface-a40)), var(--bg-2);
  border: 1px solid var(--accent2-a35);
}
.acct-wallet-balance { display: block; font-size: var(--fs-title); font-weight: var(--fw-extrabold); letter-spacing: -.02em; margin: var(--sp-1) 0 var(--sp-3); }
.acct-nav { display: flex; flex-direction: column; gap: var(--sp-1); margin-top: var(--sp-4); }
.acct-nav .mm-label { margin: 0 var(--sp-1) var(--sp-2); }
.acct-nav-item {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%; text-align: left;
  background: none; border: 1px solid transparent; color: var(--text);
  font-size: var(--fs-h3); font-weight: var(--fw-semibold); padding: var(--sp-3) var(--sp-2); border-radius: var(--radius-btn);
  transition: all var(--dur-micro);
}
.acct-nav-item .ic { width: 18px; height: 18px; }
.acct-nav-item .mm-ic .ic { width: 16px; height: 16px; }
.acct-nav-item.active .mm-ic { background: var(--accent2-a28); }
.acct-nav-item.danger .mm-ic { background: var(--danger-a12); color: var(--red); }
a.acct-nav-item { text-decoration: none; }
.acct-nav-item:hover { color: var(--text); background: var(--surface-2); }
.acct-nav-item.active { color: var(--text); background: var(--purple-soft); border-color: var(--accent2-a35); }
.acct-nav-item.active .ic-wrap { color: var(--purple-3); }
.acct-side-foot { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: var(--sp-1); }
.acct-side-foot a { color: var(--muted); font-size: var(--fs-small); font-weight: var(--fw-semibold); padding: var(--sp-2) var(--sp-3); }
.acct-side-foot a:hover { color: var(--text); text-decoration: none; }
.acct-side-foot button {
  display: flex; align-items: center; gap: var(--sp-3); background: none; border: none;
  font-size: var(--fs-small); font-weight: var(--fw-semibold); padding: var(--sp-2) var(--sp-3); text-align: left;
}
.acct-side-foot button .ic { width: 16px; height: 16px; }
.acct-main { min-width: 0; }
.acct-title { font-size: var(--fs-title); font-weight: var(--fw-extrabold); letter-spacing: -.02em; margin-bottom: var(--sp-4); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.stat-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--sp-4); }
.stat-card span { font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.stat-card b { display: block; font-size: var(--fs-title); font-weight: var(--fw-extrabold); letter-spacing: -.02em; margin-top: var(--sp-1); }
.stat-card small { color: var(--muted); font-size: var(--fs-micro); }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.quick-card {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-4);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  color: var(--text); font-weight: var(--fw-bold); font-size: var(--fs-body); transition: all var(--dur-micro);
}
.quick-card .ic-wrap { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--purple-soft); color: var(--purple-3); flex: none; }
.quick-card .ic { width: 18px; height: 18px; }
.quick-card:hover { border-color: var(--accent2-a45); background: var(--surface-2); text-decoration: none; transform: translateY(-1px); }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.support-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--sp-4); }
.support-card .ic-wrap { width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--purple-soft); color: var(--purple-3); margin-bottom: var(--sp-3); }
.support-card .ic { width: 19px; height: 19px; }
.support-card h3 { font-size: var(--fs-body); margin-bottom: var(--sp-2); }
.support-card p { color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-body); }
.profile-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--sp-5); max-width: 560px; }
.profile-rows { margin: var(--sp-4) 0 var(--sp-3); }
.acct-wallet-big { margin-top: 0; max-width: 560px; }
.acct-topup { margin-top: var(--sp-4); border-top: 1px solid var(--accent2-a28); padding-top: var(--sp-2); }
.acct-topup .btn { margin-top: var(--sp-3); }
.acct-topup-off { margin-top: var(--sp-3); }
.acct-signin { margin: var(--sp-6) auto; text-align: left; }
.acct-signin-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--purple-soft); color: var(--purple-3); display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--sp-3); }
.acct-signin-icon .ic { width: 24px; height: 24px; }
.acct-signin .btn { margin-right: var(--sp-2); }

@media (max-width: 900px) {
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .quick-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- DanSMS-style layout: picker-first home, one catalogue ---------- */
.slim-hero { max-width: 1200px; margin: 0 auto; padding: var(--sp-6) var(--sp-5) var(--sp-1); }
.slim-hero h1 { font-size: var(--fs-page); font-weight: var(--fw-extrabold); letter-spacing: -.025em; }
.slim-hero p { color: var(--muted); font-size: var(--fs-body); line-height: var(--lh-relaxed); max-width: 640px; margin-top: var(--sp-2); }
.home-picker-section { padding-top: var(--sp-4); }
.home-picker-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: var(--sp-4);
}
.pick-cols { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.hp-countries { grid-template-columns: 1fr; max-height: 452px; }
.pick-col .svc-list { margin-top: var(--sp-1); }
.catalogue-toolbar { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin: var(--sp-2) 0 var(--sp-1); }
.catalogue-toolbar .list-search { flex: 1 1 260px; margin: 0; }
.catalogue-select {
  width: auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0 var(--sp-3); min-height: 44px;
  font: inherit; font-size: var(--fs-small); font-weight: var(--fw-semibold); cursor: pointer;
}
.chip-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }
/* One chip/tab system. Size variants: .server-btn (segmented, larger),
   .country-chip (picker touch target). Filled active variant:
   .smm-pchip.active, .tv-chip.active (gradient). Default active:
   purple-soft. .pg-tab is the segmented-container variant. */
.chip, .smm-pchip, .server-btn, .country-chip, .brand-chip, .tv-chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-btn);
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: var(--fs-small); font-weight: var(--fw-semibold); white-space: nowrap; cursor: pointer;
  transition: color var(--dur-micro), border-color var(--dur-micro), background var(--dur-micro);
}
.chip { padding: var(--sp-2) var(--sp-4); }
.chip:hover { color: var(--text); border-color: var(--accent2-a45); text-decoration: none; }
.chip.active { background: var(--purple-soft); border-color: var(--accent2-a45); color: var(--text); }

.home-more { margin-top: var(--sp-1); }
.duration-badge {
  background: var(--accent3-a15); color: var(--purple-3);
  border: 1px solid var(--accent3-a35); font-weight: var(--fw-bold);
}
.duration-badge .ic { width: 12px; height: 12px; }

@media (max-width: 900px) {
  .pick-cols { grid-template-columns: 1fr; }
  .hp-countries { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); max-height: 300px; }
  .slim-hero h1 { font-size: var(--fs-title); }
}

/* ---------- DanSMS-style landing (purple identity kept) ---------- */
.landing-hero-wrap { max-width: 1200px; margin: 0 auto; padding: var(--sp-5) var(--sp-5) 0; }
.hero-card {
  border-radius: var(--radius-hero); text-align: center; padding: var(--sp-9) var(--sp-6) var(--sp-8);
  background:
    radial-gradient(640px 320px at 50% -60px, var(--accent2-a35), transparent 70%),
    linear-gradient(180deg, var(--panel-a), var(--panel-b));
  border: 1px solid var(--accent2-a35);
}
.eyebrow { font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--purple-3); margin-bottom: var(--sp-4); }
.eyebrow.centred { text-align: center; }
.hero-card h1 { font-size: var(--fs-display); font-weight: var(--fw-extrabold); letter-spacing: var(--ls-display); line-height: var(--lh-display); color: var(--white); }
.hero-sub { color: var(--color-on-panel-muted); font-size: var(--fs-h3); line-height: var(--lh-relaxed); max-width: 620px; margin: var(--sp-5) auto 0; }
.hero-sub-note { color: var(--color-on-panel-muted); font-size: var(--fs-body); line-height: var(--lh-relaxed); max-width: 620px; margin: var(--sp-2) auto 0; }
.hero-ctas { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-6); }
.hero-ctas.left { justify-content: flex-start; }
.btn-white { background: var(--white); color: var(--ink); border-color: var(--white); padding: var(--sp-3) var(--sp-6); font-size: var(--fs-body); }
.btn-white:hover { background: var(--color-accent-tint); text-decoration: none; }
.btn-outline { background: transparent; padding: var(--sp-3) var(--sp-6); font-size: var(--fs-body); }
.btn-outline:hover { border-color: var(--accent2-a55); text-decoration: none; }
.landing-section { max-width: 1200px; margin: 0 auto; padding: var(--sp-10) var(--sp-5) var(--sp-5); }
.landing-section.tight { padding-top: var(--sp-7); }
.landing-title { font-size: var(--fs-landing-title); font-weight: var(--fw-extrabold); letter-spacing: -.025em; text-align: center; line-height: var(--lh-tight); }
.landing-title.left { text-align: left; }
.landing-sub { color: var(--muted); font-size: var(--fs-body); line-height: var(--lh-relaxed); text-align: center; max-width: 620px; margin: var(--sp-4) auto 0; }
.landing-sub.left { text-align: left; margin-left: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-7); }
.feature-card { padding: var(--sp-5); }
.feature-icon { width: 44px; height: 44px; border-radius: var(--radius-btn); background: var(--purple-soft); color: var(--purple-3); display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--sp-4); }
.feature-icon .ic { width: 21px; height: 21px; }
.feature-card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.feature-card p { color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-relaxed); }
.stats-band {
  background-image: radial-gradient(var(--accent2-a16) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-top: var(--sp-7); }
.stat { text-align: center; background: var(--surface-a82); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--sp-5) var(--sp-3); }
.stat b { display: block; font-size: var(--fs-h1); font-weight: var(--fw-extrabold); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: var(--fs-small); }
.wall-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center; }
.brand-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.brand-chip { gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-color: var(--line-soft); border-radius: var(--radius-sm); color: var(--text); }
.brand-chip:hover { border-color: var(--accent2-a45); text-decoration: none; transform: translateY(-1px); }
.brand-chip .logo-chip { width: 30px; height: 30px; }
.faq-plain { max-width: 760px; margin: var(--sp-6) auto 0; }
.faq-plain details { border-bottom: 1px solid var(--line-soft); padding: var(--sp-4) var(--sp-1); }
.faq-plain summary { font-weight: var(--fw-bold); font-size: var(--fs-body); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-plain summary::-webkit-details-marker { display: none; }
.faq-plain summary::after { content: "›"; color: var(--muted); font-size: var(--fs-h2); transform: rotate(90deg); }
.faq-plain details p { color: var(--muted); font-size: var(--fs-body); line-height: var(--lh-relaxed); margin-top: var(--sp-3); }
.track-band-inner.standalone {
  max-width: none; background: linear-gradient(140deg, var(--accent-a28), var(--accent2-a08) 60%, var(--surface-a40)), var(--bg-2);
  border: 1px solid var(--accent2-a35); border-radius: var(--radius); padding: var(--sp-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap;
}
.cta-final { text-align: center; padding: var(--sp-9) var(--sp-5); max-width: 900px; margin: 0 auto; }
.cta-final .btn { margin-top: var(--sp-5); }
.cta-final h2 { font-size: var(--fs-final-title); font-weight: var(--fw-extrabold); letter-spacing: -.03em; line-height: var(--lh-display); }
.cta-final p { color: var(--muted); font-size: var(--fs-h3); margin-top: var(--sp-4); }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .wall-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero-card { padding: var(--sp-8) var(--sp-5) var(--sp-8); border-radius: var(--radius-xl); }
  .landing-section { padding-top: var(--sp-8); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .brand-wall { grid-template-columns: 1fr 1fr; }
}

/* ---------- Header: logo left, nav + actions right (per the video) ---------- */

/* ---------- Auth pages (full pages, centred column) ---------- */
.auth-page {
  max-width: 1200px; margin: 0 auto; padding: var(--sp-7) var(--sp-5) var(--sp-10); position: relative;
}
.auth-page::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 340px; pointer-events: none;
  background: radial-gradient(560px 260px at 50% -40px, var(--accent2-a20), transparent 70%);
}
.auth-brand { display: inline-flex; align-items: center; gap: var(--sp-3); color: var(--text); position: relative; }
.auth-brand:hover { text-decoration: none; }
.auth-col { max-width: 440px; margin: var(--sp-7) auto 0; position: relative; }
.auth-col h1 { font-size: var(--fs-auth-title); font-weight: var(--fw-extrabold); letter-spacing: -.025em; text-align: center; line-height: var(--lh-tight); }
.auth-sub { color: var(--muted); font-size: var(--fs-body); text-align: center; margin-top: var(--sp-3); line-height: var(--lh-body); }
.auth-col .sheet-note { margin-top: var(--sp-4); }
.auth-form { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.auth-label { display: block; font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--muted); margin-top: var(--sp-3); }
.auth-field {
  display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-2);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 0 var(--sp-3);
  transition: border-color var(--dur-micro);
}
.auth-field:focus-within { border-color: var(--accent2-a65); }
.auth-field-icon { color: var(--muted); display: inline-flex; flex: none; }
.auth-field-icon .ic { width: 17px; height: 17px; }
.auth-field input {
  flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text);
  font: inherit; font-size: var(--fs-body); padding: var(--sp-3) 0;
}
.auth-field input::placeholder { color: var(--muted-2); }
.auth-field input:disabled { color: var(--muted); }
.auth-field .pw-toggle { position: static; color: var(--muted); }
.auth-error { background: var(--danger-a12); border: 1px solid var(--danger-a35); border-radius: var(--radius-btn); padding: var(--sp-3) var(--sp-4); margin-top: var(--sp-4); }
.form-ok { color: var(--green); font-size: var(--fs-small); margin-top: var(--sp-3); }
.btn.auth-submit {
  width: 100%; margin-top: var(--sp-5); padding: var(--sp-4); font-size: var(--fs-body); border-radius: var(--radius-btn);
  background: var(--white); color: var(--ink); border: 1px solid var(--white);
}
.btn.auth-submit:hover { background: var(--color-accent-tint); }
.btn.auth-submit:disabled { opacity: .6; }
.auth-fine { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); color: var(--muted); font-size: var(--fs-micro); margin-top: var(--sp-4); }
.auth-fine .ic { width: 13px; height: 13px; }
.auth-switch { text-align: center; color: var(--muted); font-size: var(--fs-small); margin-top: var(--sp-4); }
.auth-switch a { color: var(--purple-3); font-weight: var(--fw-bold); }
.auth-home { text-align: center; margin-top: var(--sp-3); font-size: var(--fs-small); }
.auth-home a { color: var(--muted); }
.auth-col .auth-benefits { margin-top: var(--sp-5); }
.auth-benefit > span { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--purple-soft); color: var(--purple-3); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.auth-benefit > span .ic { width: 16px; height: 16px; }

/* ---------- Dashboard v2 (reference shell) ---------- */
.acct-brand { display: flex; align-items: center; gap: var(--sp-3); color: var(--text); padding: var(--sp-1) var(--sp-1) var(--sp-4); }
.acct-brand:hover { text-decoration: none; }
.acct-balance-card {
  background: linear-gradient(150deg, var(--accent-a28), var(--accent2-a08) 65%), var(--surface);
  border: 1px solid var(--accent2-a35); border-radius: var(--radius); padding: var(--sp-4); margin-bottom: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-1);
}
.acct-balance-amount { font-size: var(--fs-title); font-weight: var(--fw-extrabold); letter-spacing: -.02em; color: var(--purple-3); margin-bottom: var(--sp-3); }
.acct-balance-card .btn { align-self: flex-start; }
.acct-balance-card .btn .ic { width: 14px; height: 14px; }
.acct-nav-item.danger { color: var(--red); }
.acct-nav-item.danger:hover { color: var(--color-danger-bright); background: var(--danger-a08); }
.acct-back { display: block; color: var(--muted); font-size: var(--fs-small); padding: var(--sp-3) var(--sp-3) var(--sp-1); }
.acct-sub { color: var(--muted); font-size: var(--fs-body); margin: calc(-1 * var(--sp-2)) 0 var(--sp-5); }
.acct-wallet-card { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.wallet-card-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.wallet-card-actions .btn { display: inline-flex; align-items: center; gap: var(--sp-2); }
.wallet-card-actions .ic { width: 15px; height: 15px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.svc-card {
  display: flex; gap: var(--sp-4); align-items: center; background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--sp-5); color: var(--text);
  transition: border-color var(--dur-micro), transform var(--dur-micro);
}
.svc-card:hover { border-color: var(--accent2-a45); text-decoration: none; transform: translateY(-1px); }
button.svc-card { font: inherit; text-align: left; cursor: pointer; width: 100%; }
.acct-main .home-picker-card { max-width: none; }
.svc-icon { width: 46px; height: 46px; border-radius: var(--radius-btn); background: var(--purple-soft); color: var(--purple-3); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.svc-icon .ic { width: 22px; height: 22px; }
.svc-card b { display: block; font-size: var(--fs-h3); }
.svc-card small { color: var(--muted); font-size: var(--fs-small); }
.acct-row-head { display: flex; align-items: center; justify-content: space-between; margin-top: var(--sp-2); }
.activity-row {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-1);
  border-bottom: 1px solid var(--line-soft);
}
.activity-main { flex: 1; min-width: 0; }
.activity-main b { display: block; font-size: var(--fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-main small { color: var(--muted); font-size: var(--fs-micro); }
.activity-amount { font-weight: var(--fw-bold); font-size: var(--fs-small); white-space: nowrap; }
.history-tools { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.history-search {
  flex: 1; min-width: 200px; display: flex; align-items: center; gap: var(--sp-2);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 0 var(--sp-4);
}
.history-search .ic { width: 16px; height: 16px; color: var(--muted); flex: none; }
.history-search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font: inherit; font-size: var(--fs-small); padding: var(--sp-3) 0; }
.topup-input {
  display: flex; align-items: center; gap: var(--sp-2); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 0 var(--sp-4); margin-top: var(--sp-2); max-width: 340px;
}
.topup-input span { font-weight: var(--fw-extrabold); color: var(--purple-3); font-size: var(--fs-h3); }
.topup-input input { flex: 1; background: none; border: none; outline: none; color: var(--text); font: inherit; font-size: var(--fs-h3); font-weight: var(--fw-bold); padding: var(--sp-3) 0; }
.topup-chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: var(--sp-3) 0 var(--sp-1); }
.chip-btn {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-btn);
  padding: var(--sp-2) var(--sp-4); font: inherit; font-size: var(--fs-small); font-weight: var(--fw-semibold); cursor: pointer;
}
.chip-btn:hover:not(:disabled) { border-color: var(--accent2-a55); }
.chip-btn:disabled { opacity: .5; cursor: default; }
.settings-card { padding: var(--sp-5); margin-bottom: var(--sp-4); max-width: 560px; }
.settings-card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.settings-card .btn { margin-top: var(--sp-4); }
.settings-card .auth-label { color: var(--text); }

@media (max-width: 700px) {
  .svc-grid { grid-template-columns: 1fr; }
  .auth-col { margin-top: var(--sp-6); }
}

/* ---------- Homepage v2 (reference structure) ---------- */
.landing-hero-wrap.narrow { max-width: 1054px; }
.landing-hero-wrap.narrow .hero-card { border-radius: var(--radius-hero); }
.hero-badge {
  display: inline-block; background: var(--purple-soft); color: var(--purple-3);
  border: 1px solid var(--accent2-a45); border-radius: var(--radius-pill);
  font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: .04em; padding: var(--sp-2) var(--sp-4); margin-bottom: var(--sp-5);
}
.hero-card .btn .ic { width: 16px; height: 16px; vertical-align: -3px; }
.trust-row {
  display: flex; justify-content: center; gap: var(--sp-6); flex-wrap: wrap;
  padding: var(--sp-5) var(--sp-3) var(--sp-1); color: var(--muted); font-size: var(--fs-small); font-weight: var(--fw-semibold);
}
.trust-row span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.trust-row .ic { width: 16px; height: 16px; color: var(--purple-3); }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.band-link { color: var(--purple-3); font-weight: var(--fw-bold); font-size: var(--fs-small); white-space: nowrap; }
.band-link.inline { align-self: center; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.country-chip { padding: var(--sp-3) var(--sp-4); border-color: var(--line-soft); color: var(--text); }
.country-chip:hover { border-color: var(--accent2-a55); text-decoration: none; }
.country-chip .flag { width: 22px; height: 16px; object-fit: cover; border-radius: var(--radius-xs); }
.chip-row.apps .brand-chip { border-radius: var(--radius-btn); }
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-top: var(--sp-6); }
.card-link { display: inline-block; margin-top: var(--sp-4); color: var(--purple-3); font-weight: var(--fw-bold); font-size: var(--fs-small); }
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.featured-card {
  display: flex; flex-direction: column; gap: var(--sp-1);
  padding: var(--sp-4); color: var(--text);
  transition: border-color var(--dur-micro);
}
.featured-card:hover { border-color: var(--accent2-a45); text-decoration: none; }
.featured-name { display: flex; align-items: center; gap: var(--sp-2); font-weight: var(--fw-bold); font-size: var(--fs-body); }
.featured-name .ic { width: 16px; height: 16px; color: var(--purple-3); }
.featured-price { font-size: var(--fs-h2); font-weight: var(--fw-extrabold); color: var(--purple-3); }
.featured-from { color: var(--muted); font-size: var(--fs-micro); text-transform: capitalize; }
.coverage-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-6); }
.coverage-row {
  display: flex; align-items: center; gap: var(--sp-2); color: var(--text); font-size: var(--fs-small); font-weight: var(--fw-medium);
  padding: var(--sp-2) var(--sp-1); border-bottom: 1px solid var(--line-soft);
}
.coverage-row:hover { text-decoration: none; color: var(--purple-3); }
.coverage-row .flag { width: 22px; height: 16px; object-fit: cover; border-radius: var(--radius-xs); flex: none; }
.coverage-row span { margin-left: auto; color: var(--muted); font-size: var(--fs-micro); white-space: nowrap; }
.socials-card { padding: var(--sp-6); }
.brand-wall.four { grid-template-columns: 1fr 1fr; align-content: center; }
.hero-card.cta-card { border-radius: var(--radius-hero); padding: var(--sp-8) var(--sp-6) var(--sp-9); margin-bottom: var(--sp-10); }
.hero-card.cta-card h2 { font-size: var(--fs-cta-title); font-weight: var(--fw-extrabold); letter-spacing: -.03em; line-height: var(--lh-display); }

@media (max-width: 1024px) {
  .platform-grid, .featured-grid { grid-template-columns: 1fr 1fr; }
  .coverage-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .platform-grid, .featured-grid { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: 1fr 1fr; }
  .landing-hero-wrap.narrow .hero-card, .hero-card.cta-card { border-radius: var(--radius-xl); }
  .trust-row { gap: var(--sp-4); }
}

/* ---------- Products catalogue (grouped, reference layout) ---------- */
.shop-toolbar { flex-wrap: wrap; }
.list-search.grow { flex: 1; min-width: 220px; }
.shop-group-title { font-size: var(--fs-sheet); font-weight: var(--fw-extrabold); letter-spacing: -.01em; margin: var(--sp-6) 0 var(--sp-4); text-transform: uppercase; }
.shop-group-title span { color: var(--muted); font-weight: var(--fw-semibold); }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.shop-card { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.shop-card-top { display: flex; gap: var(--sp-3); align-items: flex-start; }
.shop-card-icon {
  width: 46px; height: 46px; border-radius: var(--radius-btn); background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden;
}
.shop-card-icon .logo-chip { width: 30px; height: 30px; }
.shop-card-icon .flag { width: 30px; height: 22px; object-fit: cover; border-radius: var(--radius-xs); }
.shop-card-icon .tile-icon { color: var(--purple-3); }
.shop-card-head h3 { font-size: var(--fs-body); font-weight: var(--fw-extrabold); letter-spacing: .01em; line-height: var(--lh-snug); }
.shop-card-cat { color: var(--muted); font-size: var(--fs-caption); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: .08em; }
.desc-toggle { background: none; border: none; color: var(--purple-3); font: inherit; font-size: var(--fs-small); font-weight: var(--fw-semibold); cursor: pointer; padding: 0; align-self: flex-start; }
.shop-card-desc { color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-relaxed); }
.shop-card-meta { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.stock-line { font-size: var(--fs-small); font-weight: var(--fw-bold); }
.stock-line.in { color: var(--green); }
.stock-line.out { color: var(--red); }
.shop-card-price { font-size: var(--fs-title); font-weight: var(--fw-extrabold); color: var(--purple-3); margin-top: auto; }
.shop-buy {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: var(--sp-3); font: inherit; font-size: var(--fs-body); font-weight: var(--fw-bold); cursor: pointer; transition: all var(--dur-micro);
}
.shop-buy:hover:not(:disabled) { border-color: var(--accent2-a55); background: var(--purple-soft); }
.shop-buy:disabled { opacity: .45; cursor: default; }
.shop-buy .ic { width: 16px; height: 16px; }
.shop-details { align-self: center; font-size: var(--fs-small); }

@media (max-width: 768px) { .shop-grid { grid-template-columns: 1fr; } }

/* ---------- Buy Number card (dropdown interaction) ---------- */
.server-toggle { display: flex; justify-content: center; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.server-btn { border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-5); font: inherit; font-size: var(--fs-small); font-weight: var(--fw-bold); }
.server-btn .ic { width: 15px; height: 15px; }
.server-btn.active { background: var(--purple-soft); color: var(--text); border-color: var(--accent2-a55); }
.buy-layout { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); }
.buy-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-card);
  padding: var(--sp-5); align-self: start;
}
.buy-card-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.buy-card-head .ic { width: 20px; height: 20px; color: var(--purple-3); }
.buy-card-head h2 { font-size: var(--fs-sheet); font-weight: var(--fw-extrabold); }
.dd-step { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-3); }
.dd-step:first-of-type { margin-top: 0; }
.dd-step h3 { font-size: var(--fs-body); font-weight: var(--fw-bold); }
.dd-step .how-num { width: 22px; height: 22px; font-size: var(--fs-micro); border-radius: var(--radius-xs); }
.dd-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-btn);
  padding: var(--sp-4) var(--sp-4); color: var(--text); font: inherit; font-size: var(--fs-body); cursor: pointer; text-align: left;
}
.dd-btn .ic { width: 16px; height: 16px; color: var(--muted); flex: none; }
.dd-price-inline { color: var(--purple-3); margin-left: var(--sp-2); }
.dd-panel { margin-top: var(--sp-2); border: 1px solid var(--line); border-radius: var(--radius-btn); padding: var(--sp-3); background: var(--bg-2); }
.dd-panel .list-search { margin-bottom: var(--sp-2); }
.dd-list { max-height: 290px; overflow-y: auto; display: flex; flex-direction: column; }
.dd-row {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%; text-align: left;
  background: none; border: none; border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-3);
  color: var(--text); font: inherit; font-size: var(--fs-small); cursor: pointer;
}
.dd-row:hover { background: var(--surface-2); }
.dd-row.more { justify-content: center; color: var(--purple-3); font-weight: var(--fw-bold); }
.dd-code { color: var(--muted); font-size: var(--fs-micro); font-weight: var(--fw-bold); width: 30px; flex: none; }
.dd-name { flex: 1; min-width: 0; }
.dd-name small { color: var(--muted); font-size: var(--fs-micro); }
.dd-count { color: var(--muted); font-size: var(--fs-micro); }
.dd-price { color: var(--purple-3); font-weight: var(--fw-extrabold); white-space: nowrap; }
.dd-clear { background: none; border: none; color: var(--muted); font: inherit; font-size: var(--fs-micro); cursor: pointer; padding: var(--sp-2) var(--sp-1) 0; }
.dd-clear:hover { color: var(--text); }
.buy-main {
  width: 100%; margin-top: var(--sp-5); padding: var(--sp-4); border-radius: var(--radius-btn); border: none;
  background: var(--gradient-primary); color: var(--white);
  font: inherit; font-size: var(--fs-body); font-weight: var(--fw-extrabold); cursor: pointer;
}
.buy-main:disabled { opacity: .45; cursor: default; }
.buy-card-note { margin-top: var(--sp-4); border: 1px solid var(--line-soft); border-radius: var(--radius-btn); padding: var(--sp-3) var(--sp-4); }
.buy-card-note p { color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-body); display: flex; gap: var(--sp-2); }
.buy-card-note .ic { width: 15px; height: 15px; flex: none; margin-top: var(--sp-1); }
.server-alt { background: none; border: none; color: var(--text); font: inherit; font-size: var(--fs-small); font-weight: var(--fw-semibold); cursor: pointer; padding: var(--sp-2) 0 0; display: inline-flex; gap: var(--sp-2); align-items: center; }
.server-alt:hover { color: var(--purple-3); }
.active-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.active-head h3 { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-h3); }
.active-head h3 .ic { width: 17px; height: 17px; color: var(--purple-3); }
.active-head .btn .ic { width: 13px; height: 13px; vertical-align: -2px; }
/* Verification Tips: a centred dialog card (not a bottom sheet), with a
   gradient badge header and solid icon tiles, in both themes. */
/* height: auto lets inset: 0 pin this overlay to the exact viewport box
   (the shared .overlay height: 100vh/dvh can overshoot the visible screen
   on iOS, which pushed the centred card down and off the bottom). */
#tipsModal { align-items: center; padding: var(--sp-4); height: auto; }
.sheet.tips-sheet {
  width: min(420px, calc(100vw - 32px)); max-width: 420px;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  border-bottom: 1px solid var(--line); border-radius: var(--radius-dialog);
  padding: var(--sp-6) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; overflow: hidden;
  animation: tips-in var(--dur-med) ease;
}
.sheet.tips-sheet > .btn { flex: none; }
@keyframes tips-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.tips-head { display: flex; flex-direction: column; align-items: center; text-align: center; flex: none; }
.tips-badge {
  width: 56px; height: 56px; border-radius: var(--radius-card); margin-bottom: var(--sp-4);
  background: var(--gradient-primary); color: var(--white);
  display: grid; place-items: center; box-shadow: 0 10px 22px var(--accent-a35);
}
.tips-badge svg { width: 30px; height: 30px; display: block; }
.tips-sheet .sheet-title { padding-right: 0; margin-bottom: 0; text-align: center; font-size: var(--fs-h2); }
.tips-list { display: flex; flex-direction: column; gap: var(--sp-4); margin: var(--sp-5) 0 var(--sp-5); flex: 1 1 auto; overflow-y: auto; min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.tips-list p { display: flex; gap: var(--sp-3); align-items: flex-start; color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-body); }
.tips-list p b { color: var(--text); }
.tips-ic {
  width: 40px; height: 40px; border-radius: var(--radius); flex: none;
  background: var(--purple-soft); color: var(--purple-3);
  display: grid; place-items: center;
}
.tips-ic svg { width: 22px; height: 22px; display: block; }

@media (max-width: 900px) { .buy-layout { grid-template-columns: 1fr; } }

/* ---------- Steps as numbered rows ---------- */
.how.rows { display: block; max-width: 860px; margin: var(--sp-6) auto 0; text-align: left; }
.how.rows .how-step {
  display: flex; gap: var(--sp-5); align-items: flex-start;
  padding: var(--sp-5) var(--sp-1); border-top: 1px solid var(--line-soft); background: none; border-radius: 0;
}
.how.rows .how-step:last-child { border-bottom: 1px solid var(--line-soft); }
.how-idx { color: var(--muted); font-size: var(--fs-small); font-weight: var(--fw-bold); padding-top: var(--sp-1); min-width: 28px; }
.how.rows .how-step h3 { font-size: var(--fs-h2); margin-bottom: var(--sp-2); }
.how.rows .how-step p { max-width: 560px; }

/* ---------- Settings cards + shop density (per the video) ---------- */
.settings-card { max-width: 720px; }
.settings-head { display: flex; gap: var(--sp-4); align-items: flex-start; margin-bottom: var(--sp-4); }
.settings-ic {
  width: 42px; height: 42px; border-radius: var(--radius-btn); flex: none;
  background: var(--gradient-primary); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
}
.settings-ic .ic { width: 20px; height: 20px; }
.settings-head h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-1); }
.settings-head p { color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-body); }
.profile-row { display: flex; align-items: center; gap: var(--sp-4); }
.profile-row .avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--purple-soft); color: var(--purple-3);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-sheet); font-weight: var(--fw-extrabold);
}
.profile-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.profile-who b { font-size: var(--fs-body); }
.profile-who small { color: var(--muted); font-size: var(--fs-small); }
#setEditBox { margin-top: var(--sp-4); }
.email-row { display: flex; gap: var(--sp-3); align-items: center; }
.email-row .auth-field.grow { flex: 1; }
.email-row .btn { margin-top: 0; }
.shop-tools-row { display: flex; align-items: center; gap: var(--sp-4); margin: var(--sp-2) 0 var(--sp-4); }
.shop-tools-row .btn .ic { width: 13px; height: 13px; vertical-align: -2px; }
.shop-foot { margin-top: var(--sp-5); }
.shop-grid { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 1380px) { .shop-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .shop-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Homepage motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.anim-in { animation: fadeUp var(--dur-slow) var(--ease-out) backwards; }
.anim-in.d1 { animation-delay: .05s; } .anim-in.d2 { animation-delay: .18s; }
.anim-in.d3 { animation-delay: .32s; } .anim-in.d4 { animation-delay: .48s; }
.js .rv { opacity: 0; transform: translateY(30px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }
.rv .platform-grid > *, .rv .featured-grid > *, .rv .chip-row > * { transition: transform var(--dur-med) ease, border-color var(--dur-med) ease, box-shadow var(--dur-med) ease; }
.feature-card:hover, .featured-card:hover { transform: translateY(-2px); border-color: var(--accent2-a45); box-shadow: var(--shadow-sm); }
.country-chip:hover, .brand-chip:hover { transform: translateY(-3px); border-color: var(--accent2-a45); }
.shop-card { transition: transform var(--dur-med) ease, border-color var(--dur-med) ease, box-shadow var(--dur-med) ease; }
.shop-card:hover { transform: translateY(-2px); border-color: var(--accent2-a45); box-shadow: var(--shadow-sm); }
.hero-ctas .btn { transition: transform var(--dur-med) ease, box-shadow var(--dur-med) ease, background var(--dur-med) ease; }
.hero-ctas .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px var(--black-a35); }
/* Static row of the apps people verify with; every chip is a real link */
.brand-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2);
  max-width: 1054px; margin: var(--sp-6) auto 0;
}
.brand-row .brand-chip { border-radius: var(--radius-pill); padding: var(--sp-2) var(--sp-4); }
.brand-row .brand-chip .logo-chip { width: 20px; height: 20px; }
.section { }
.coverage-row { padding: var(--sp-3) var(--sp-1); }
.stats-band { padding-top: var(--sp-10); }

/* ---------- Auth pages: split showcase + glass form card ---------- */
.auth-page {
  display: grid; grid-template-columns: 1.05fr 1fr;
  min-height: calc(100dvh - 66px); max-width: none; margin: 0; padding: 0;
}
.auth-showcase {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: var(--sp-7) var(--sp-7); color: var(--white);
  background:
    radial-gradient(720px 480px at 85% -10%, var(--accent3-a35), transparent 60%),
    radial-gradient(640px 520px at -10% 110%, var(--accent-a45), transparent 60%),
    linear-gradient(150deg, var(--showcase-a) 0%, var(--showcase-b) 55%, var(--showcase-c) 100%);
}
.auth-showcase::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(var(--white-a15) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(600px 400px at 70% 30%, var(--black), transparent 75%);
  mask-image: radial-gradient(600px 400px at 70% 30%, var(--black), transparent 75%);
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(46px); pointer-events: none; }
.hero-blob.sb1 { width: 300px; height: 300px; right: -60px; top: 6%; background: var(--accent3-a35); }
.hero-blob.sb2 { width: 240px; height: 240px; left: -50px; bottom: -70px; background: var(--accent-a45); }
.auth-brand { display: inline-flex; align-items: center; gap: var(--sp-3); position: relative; z-index: 2; }
.auth-brand.light .brand-name { color: var(--white); }
.showcase-mid { margin: auto 0; position: relative; z-index: 2; max-width: 520px; }
.showcase-mid h2 { font-size: var(--fs-showcase); font-weight: var(--fw-extrabold); letter-spacing: -.02em; line-height: var(--lh-display); }
.showcase-sub { color: var(--white-a70); font-size: var(--fs-h3); line-height: var(--lh-relaxed); margin-top: var(--sp-4); max-width: 440px; }
.demo-card {
  position: relative; margin-top: var(--sp-6); max-width: 400px;
  background: var(--white-a05); border: 1px solid var(--white-a15);
  border-radius: var(--radius-card); padding: var(--sp-5) var(--sp-5) var(--sp-6); margin-bottom: var(--sp-5); backdrop-filter: blur(8px);
  box-shadow: 0 24px 50px var(--black-a35);
}
.demo-row { display: flex; align-items: center; gap: var(--sp-3); }
.demo-ic { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--white-a10); display: inline-flex; align-items: center; justify-content: center; }
.demo-ic img { width: 20px; height: 20px; }
.demo-name { font-weight: var(--fw-bold); font-size: var(--fs-body); flex: 1; }
.demo-price { font-weight: var(--fw-extrabold); color: var(--color-accent-pale); }
.demo-number { font-family: var(--font-mono); font-size: var(--fs-sheet); letter-spacing: .04em; margin-top: var(--sp-4); color: var(--white-a92); }
.demo-code { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); color: var(--white-a75); font-size: var(--fs-small); }
.demo-code b { color: var(--white); letter-spacing: .12em; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--success-a25); flex: none; }
.demo-chip {
  position: absolute; display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--panel-a88); border: 1px solid var(--white-a20);
  color: var(--white); font-size: var(--fs-micro); font-weight: var(--fw-bold); border-radius: var(--radius-pill); padding: var(--sp-2) var(--sp-3);
  box-shadow: 0 12px 26px var(--black-a35); }
.demo-chip .ic { width: 13px; height: 13px; color: var(--color-accent-pale); }
.demo-chip.c1 { right: -16px; top: -16px; }
.demo-chip.c2 { left: -12px; bottom: -15px; animation-delay: -2.6s; }
/* Hero phone 3D: the stage slowly sways, the tiles float at real depths. */

/* ---------- Site loader: the emblem inside a fine gradient ring ---------- */
.site-loader {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-5);
  background: var(--bg);
  transition: opacity var(--dur-med) ease, visibility var(--dur-med);
}
.site-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-core { position: relative; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.loader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 42%, var(--purple) 76%, var(--purple-3) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), var(--black) calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), var(--black) calc(100% - 3px));
  animation: loaderSpin 1.1s linear infinite;
}
.loader-logo { width: 60px; height: auto; display: block; animation: loaderBreath 2.6s ease-in-out infinite; }
.loader-name { font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderBreath { 0%, 100% { transform: scale(1); opacity: .92; } 50% { transform: scale(1.045); opacity: 1; } }
.showcase-points { display: flex; gap: var(--sp-5); flex-wrap: wrap; position: relative; z-index: 2; color: var(--white-a80); font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.showcase-points span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.showcase-points .ic { width: 16px; height: 16px; color: var(--color-accent-pale); }
.auth-main {
  display: flex; align-items: center; justify-content: center; padding: var(--sp-7) var(--sp-5);
  background: radial-gradient(560px 380px at 50% -6%, var(--accent-a16), transparent 65%);
}
.auth-card {
  width: 100%; max-width: 460px; background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--radius-dialog); padding: var(--sp-6) var(--sp-6);
  box-shadow: 0 30px 60px var(--black-a45); animation: fadeUp var(--dur-slow) var(--ease-out) backwards;
}
.auth-card h1 { font-size: var(--fs-page); font-weight: var(--fw-extrabold); letter-spacing: -.02em; line-height: var(--lh-tight); }
.auth-card .auth-sub { margin-top: var(--sp-2); }
.auth-brand.mobile-only { display: none; margin-bottom: var(--sp-5); }
.auth-note {
  display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4);
  background: var(--purple-soft); border: 1px solid var(--accent2-a45);
  color: var(--text); border-radius: var(--radius-btn); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-small); font-weight: var(--fw-semibold);
}
.auth-note .ic { width: 15px; height: 15px; color: var(--purple-3); flex: none; }
.auth-field { transition: border-color var(--dur-med) ease, box-shadow var(--dur-med) ease; }
.auth-field:focus-within { border-color: var(--accent2-a75); box-shadow: 0 0 0 4px var(--accent2-a16); }
.btn.auth-submit {
  width: 100%; margin-top: var(--sp-5); padding: var(--sp-4); border: none; border-radius: var(--radius-btn);
  background: var(--gradient-primary); color: var(--white);
  font-size: var(--fs-body); font-weight: var(--fw-extrabold); display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  cursor: pointer; transition: transform var(--dur-med) ease, box-shadow var(--dur-med) ease, filter var(--dur-med) ease;
}
.btn.auth-submit .ic { width: 17px; height: 17px; }
.btn.auth-submit:hover { background: var(--gradient-primary); transform: translateY(-2px); box-shadow: 0 14px 30px var(--accent-a45); filter: brightness(1.07); }
.btn.auth-submit:disabled { opacity: .55; transform: none; box-shadow: none; }
@media (max-width: 1024px) {
  .auth-page { grid-template-columns: 1fr; min-height: calc(100dvh - 66px); }
  .auth-showcase { display: none; }
  .auth-brand.mobile-only { display: inline-flex; }
  .auth-main { padding: var(--sp-6) var(--sp-4) var(--sp-7); align-items: flex-start; }
  .auth-card { padding: var(--sp-6) var(--sp-5); }
  .demo-chip.c1 { right: 0; } .demo-chip.c2 { left: 0; }
}

/* ---------- Account on small screens: sidebar becomes a drawer ---------- */
/* Same pattern as the reference's mobile view: the main column stands
   alone (welcome, wallet card, services, quick actions) and the sidebar
   slides in as a drawer from the header hamburger: brand, balance card
   and the full vertical menu inside, exactly as on desktop. */
.acct-drawer-close { display: none; }
.acct-backdrop { position: fixed; inset: 0; z-index: 190; background: var(--scrim-a60); }
@media (max-width: 1100px) {
  .account-section { padding-top: var(--sp-4); }
  .acct-shell { grid-template-columns: 1fr; gap: var(--sp-4); }
  .acct-shell > * { min-width: 0; }
  .acct-side {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 200;
    width: min(320px, 86vw); padding: var(--sp-5) var(--sp-4) var(--sp-5);
    border-radius: 0; border-top: none; border-bottom: none; border-left: none;
    transform: translateX(-106%); transition: transform var(--dur-med) var(--ease-drawer);
    overflow-y: auto;
  }
  .acct-side.open { transform: none; box-shadow: 30px 0 80px var(--black-a55); }
  .acct-drawer-close {
    display: inline-flex; align-items: center; justify-content: center;
    position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
    border-radius: var(--radius-sm); border: 1px solid var(--line-soft);
    background: var(--surface-2); color: var(--text); cursor: pointer;
  }
  .acct-drawer-close .ic { width: 17px; height: 17px; }
  .acct-brand { display: flex; }
  .acct-balance-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: var(--sp-3); }
  .acct-balance-card .wallet-label { flex: 1 1 100%; }
  .acct-balance-amount { margin-bottom: 0; }
  .acct-balance-card .btn { align-self: center; margin-left: auto; }
  .acct-nav { flex-direction: column; flex-wrap: nowrap; gap: var(--sp-1); margin-top: var(--sp-4); padding-bottom: 0; overflow: visible; }
  .acct-nav-item {
    flex: none; width: 100%; white-space: normal;
    padding: var(--sp-3) var(--sp-3); border-radius: var(--radius-sm);
    background: none; border: 1px solid transparent;
  }
  .acct-nav-item .ic { width: 18px; height: 18px; }
  .acct-nav-item.active { background: var(--purple-soft); border-color: var(--accent2-a35); }
  .acct-side-foot { flex-direction: column; align-items: stretch; gap: var(--sp-1); margin-top: var(--sp-4); padding-top: var(--sp-4); }
  .acct-side-foot .acct-nav-item { flex: none; width: 100%; }
  .acct-back { margin-left: 0; padding: var(--sp-3) var(--sp-3) var(--sp-1); white-space: normal; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .buy-layout { grid-template-columns: 1fr; }
  .server-toggle { display: flex; }
  .server-btn { flex: 1; justify-content: center; }
}
@media (max-width: 700px) {
  .wallet-card-actions { width: 100%; }
  .wallet-card-actions .btn { flex: 1; justify-content: center; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
  .quick-card { flex-direction: column; justify-content: center; text-align: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-2); font-size: var(--fs-caption); }
  .quick-card .ic-wrap { width: 34px; height: 34px; }
  .shop-grid { grid-template-columns: 1fr; }
  .svc-card { padding: var(--sp-4); }
  .stat-grid { gap: var(--sp-3); }
  .acct-wallet-card { gap: var(--sp-3); }
}

/* ---------- Mobile view: matched to the reference recording ----------
   Everything below is scoped to phone/tablet widths (or to elements
   that only exist for the mobile layout), so the desktop site renders
   exactly as before. Structure follows the reference's mobile screens:
   logo + Sign in header, hero with a phone mockup, three-across stats,
   stacked wallet card, two-column service cards, three-across footer. */

/* Phone mockup, homepage hero, mobile only */
.phone-stage { display: none; }
.bc-refresh { display: none; }
.bal-eye { display: none; }
#bcCountryLabel .flag { display: none; }

@media (max-width: 1100px) {
  /* Header, signed out: the hamburger leads the bar and opens the
     storefront menu (brand, public destinations, Sign in and Create
     account), the logo sits beside it and the Sign in pill stays on
     the right. Get started stays out of the bar; the menu and the
     hero carry registration. */
  body:not(.signed-in) .menu-btn { display: inline-flex; order: -1; }
  body:not(.signed-in) .brand-name { font-size: var(--fs-h3); }
  .cart-btn { margin-left: auto; }
  /* Signed-in header (every page, homepage included): the menu
     button takes the top left corner, the logo sits beside it and
     the balance pill stays on the right. Nothing overlaps. The
     hamburger opens the one permanent account menu everywhere. */
  body.signed-in .menu-btn { display: inline-flex; order: -1; }
  body.signed-in .brand { gap: var(--sp-2); }
  body.signed-in .brand-name { font-size: var(--fs-h3); }
  body:not(.signed-in) .top-actions .btn.ghost { display: inline-flex; }
  .top-actions .btn.primary { display: none; }
  /* Header, signed in: the wallet chip becomes the balance pill:
     amount on the right of the bar, tap goes to Top Up. */
  .wallet-chip { margin-left: auto; }

  /* Hero CTAs stay side by side, like the reference. */
  .hero-card .hero-ctas { flex-wrap: nowrap; }
  .hero-card .btn-white, .hero-card .btn-outline { padding: var(--sp-3) var(--sp-5); font-size: var(--fs-body); white-space: nowrap; }

  /* Phone mockup under the hero */
  .phone-stage {
    display: block; position: relative; max-width: 350px; margin: var(--sp-7) auto var(--sp-1);
  }
  .phone {
    position: relative; width: 232px; margin: 0 auto;
    background: linear-gradient(180deg, var(--panel-a), var(--panel-c));
    border: 1px solid var(--accent2-a45); border-radius: var(--radius-hero);
    padding: var(--sp-5) var(--sp-4) var(--sp-4);
    box-shadow: 0 24px 50px var(--black-a45), 0 0 60px var(--accent-a28);
  }
  .phone-notch {
    position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
    width: 74px; height: 17px; border-radius: var(--radius-pill); background: var(--ink);
  }
  .phone-head { text-align: center; margin-bottom: var(--sp-4); }
  .phone-head b { display: block; font-size: var(--fs-h3); font-weight: var(--fw-extrabold); letter-spacing: -.01em; color: var(--color-on-panel); }
  .phone-head span { color: var(--color-on-panel-muted); font-size: var(--fs-caption); letter-spacing: .04em; }
  .phone-row {
    display: flex; align-items: center; gap: var(--sp-3);
    background: var(--white-a05); border: 1px solid var(--accent2-a16);
    border-radius: var(--radius); padding: var(--sp-2) var(--sp-3); margin-top: var(--sp-2);
  }
  .phone-ic {
    position: relative; overflow: hidden;
    width: 30px; height: 30px; border-radius: var(--radius-sm); flex: none;
    background: var(--white-a10); display: inline-flex; align-items: center; justify-content: center;
  }
  .phone-ic img { width: 17px; height: 17px; position: relative; }
  .phone-ic .logo-fallback { background: transparent; color: var(--color-accent-pale); }
  .phone-ic .logo-fallback .ic { width: 15px; height: 15px; }
  .phone-meta { flex: 1; min-width: 0; }
  .phone-meta b { display: block; font-size: var(--fs-small); line-height: var(--lh-snug); color: var(--color-on-panel); }
  .phone-meta small { display: block; color: var(--color-on-panel-muted); font-size: var(--fs-caption); font-family: var(--font-mono); letter-spacing: .02em; }
  .phone-price {
    flex: none; font-size: var(--fs-caption); font-weight: var(--fw-extrabold); color: var(--color-accent-pale);
    background: var(--purple-soft); border: 1px solid var(--accent2-a45);
    border-radius: var(--radius-pill); padding: var(--sp-1) var(--sp-2);
  }
  .phone-foot { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-4); color: var(--color-on-panel-muted); font-size: var(--fs-caption); font-weight: var(--fw-semibold); }

  /* Dashboard wallet card: stacked, eye beside the amount, one
     full-width Add funds button (the labelled hide button goes). */
  .acct-wallet-card { flex-direction: column; align-items: stretch; }
  .wallet-balance-row { display: flex; align-items: center; gap: var(--sp-3); }
  .bal-eye {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: var(--radius-sm); flex: none;
    background: none; border: none; color: var(--muted); cursor: pointer; padding: 0;
  }
  .bal-eye .ic { width: 20px; height: 20px; }
  .wallet-card-actions { width: 100%; }
  .wallet-card-actions .hide-bal-btn { display: none; }
  .wallet-card-actions .add-funds-btn { flex: 1; width: 100%; justify-content: center; padding: var(--sp-3); }

  /* Service cards: icon on top, title, then two muted lines. */
  .svc-card { flex-direction: column; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-4); }
  .svc-lines small { display: block; margin-top: var(--sp-1); }
  .svc-lines small + small { text-transform: capitalize; }
  .svc-sep { display: none; }

  /* Buy card: refresh icon in the head; flag in the chosen country. */
  .bc-refresh {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 34px; height: 34px; border-radius: var(--radius-sm); flex: none;
    background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  }
  .bc-refresh .ic { width: 16px; height: 16px; }
  #bcCountryLabel { display: inline-flex; align-items: center; gap: var(--sp-2); }
  #bcCountryLabel .flag { display: inline-block; width: 22px; height: 16px; object-fit: cover; border-radius: var(--radius-xs); }
}

@media (max-width: 700px) {
  /* Stats band: three across over the dotted field, as in the video.
     The fourth stat (typical code time) stays on desktop only. */
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
  .stats-row .stat:nth-child(4) { display: none; }
  .stat { padding: var(--sp-4) var(--sp-2); }
  .stat b { font-size: var(--fs-h2); }
  .stat span { font-size: var(--fs-caption); }

  /* Footer: brand on its own row, link columns three across. */
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-5) var(--sp-4); padding: var(--sp-6) var(--sp-4) var(--sp-5); }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
  .foot-col h4 { font-size: var(--fs-micro); margin-bottom: var(--sp-2); }
  .foot-col a { font-size: var(--fs-micro); }
  .foot-bottom-inner { flex-direction: column; align-items: center; text-align: center; gap: var(--sp-1); padding: var(--sp-4) var(--sp-4); }

  /* Sign-in / register: one plain centred column, fields on the page
     background instead of inside a card. */
  .auth-main { padding: var(--sp-5) var(--sp-4) var(--sp-7); }
  .auth-card { background: transparent; border: none; box-shadow: none; padding: var(--sp-2) var(--sp-1) var(--sp-3); animation: none; }
  .auth-card h1 { font-size: var(--fs-page); }
  .auth-card .auth-sub { text-align: left; }
}

/* ---------- Mobile homepage compaction (per the reference recording) ----------
   The reference's mobile homepage puts its hero text directly on the
   page background, no inset card, and keeps a tight, even rhythm
   between sections. Everything below is scoped to <=1100px, so the
   desktop site renders exactly as before. */

@media (max-width: 1100px) {
  /* No horizontal scroll from bleeding decorations (orbit chips,
     phone pedestal) at 360-430px widths. */
  #view { overflow-x: clip; }

  /* Hero: text on the background, compact and centred, the card
     chrome, border and tall padding go on mobile only. */
  .landing-hero-wrap { display: flex; flex-direction: column; padding: var(--sp-4) var(--sp-4) 0; perspective: 1200px; }
  .landing-hero-wrap .hero-card:not(.cta-card) {
    background: none; border: none; border-radius: 0; box-shadow: none;
    padding: var(--sp-2) 0 0;
  }
  .hero-card h1 { font-size: var(--fs-hero-mobile); line-height: var(--lh-display); letter-spacing: -.025em; color: var(--text); }
  .hero-sub { font-size: var(--fs-body); line-height: var(--lh-relaxed); margin-top: var(--sp-4); color: var(--muted); }
  .hero-sub-note { font-size: var(--fs-small); color: var(--muted); }
  .hero-ctas { margin-top: var(--sp-5); gap: var(--sp-3); }
  .hero-card .btn-white {
    background: var(--gradient-primary);
    border-color: transparent; color: var(--white);
    box-shadow: 0 8px 24px var(--accent-a35);
  }

  /* Order inside the hero wrap: copy, then the phone, then the trust
     row, then the animated app marquee scrolling underneath (owner
     asked for the marquee back in place of the static chips band). */
  .landing-hero-wrap .hero-card { order: 1; }
  .phone-stage { order: 2; margin-top: var(--sp-5); }
  .trust-row { order: 3; padding: var(--sp-5) var(--sp-1) 0; gap: var(--sp-3) var(--sp-5); font-size: var(--fs-small); }
  .brand-row { order: 4; margin-top: var(--sp-5); }

  /* One compact rhythm for every homepage section. */
  .landing-section { padding: var(--sp-7) var(--sp-4) var(--sp-1); }
  .landing-section.tight { padding-top: var(--sp-6); }
  .landing-title { font-size: var(--fs-title); }
  .landing-sub { font-size: var(--fs-body); margin-top: var(--sp-3); }
  .eyebrow { margin-bottom: var(--sp-3); }

  /* Stats sit directly under the phone; the 21-row coverage list is
     desktop-only (countries live in the chips band and the picker). */
  .stats-row { margin-top: var(--sp-5); }
  .coverage-grid { display: none; }

  /* Chips band + section heads. */
  .band-head { margin-bottom: var(--sp-4); flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
  .country-chip { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-small); }

  /* Platform + featured cards: compact, no giant tiles. */
  .platform-grid { margin-top: var(--sp-5); gap: var(--sp-3); }
  .feature-card { padding: var(--sp-4); }
  .feature-icon { width: 38px; height: 38px; border-radius: var(--radius-btn); margin-bottom: var(--sp-3); }
  .feature-icon .ic { width: 19px; height: 19px; }
  .feature-card h3 { font-size: var(--fs-body); margin-bottom: var(--sp-1); }
  .feature-card p { font-size: var(--fs-small); }
  .card-link { margin-top: var(--sp-3); }
  .featured-grid { gap: var(--sp-3); }
  .featured-card { padding: var(--sp-4); }

  /* Socials: tighter card, compact orbit. */
  .socials-card { padding: var(--sp-5); }
  .socials-card .hero-ctas { margin-top: var(--sp-5); }
  .socials-card .hero-ctas .btn { padding: var(--sp-3) var(--sp-4); font-size: var(--fs-small); }
  .orbit { height: 300px; }

  /* Steps: numbered hairline rows, slightly tighter. */
  .how.rows { margin-top: var(--sp-5); }
  .how.rows .how-step { padding: var(--sp-5) var(--sp-1); gap: var(--sp-4); }
  .how.rows .how-step h3 { font-size: var(--fs-sheet); }

  /* Tracking band: compact, and the form can never overflow, its
     old 280px min-width broke at 360px. */
  .track-band-inner.standalone { padding: var(--sp-5); gap: var(--sp-4); }
  .track-band-form { min-width: 0; }
  .track-band-form input { min-width: 0; flex: 1; }

  /* FAQ: ~52px rows. */
  .faq-plain { margin-top: var(--sp-5); }
  .faq-plain details { padding: var(--sp-4) var(--sp-1); }
  .faq-plain summary { font-size: var(--fs-body); }

  /* Final CTA: card kept, but compact, and the old 90px of dead
     margin before the footer goes. */
  .hero-card.cta-card { padding: var(--sp-7) var(--sp-5) var(--sp-7); border-radius: var(--radius-xl); margin-bottom: var(--sp-3); }
  .hero-card.cta-card h2 { font-size: var(--fs-page); }
}

@media (max-width: 700px) {
  .track-band-inner { flex-direction: column; align-items: stretch; }
  .track-band-form { width: 100%; max-width: none; }
  .track-band-text { min-width: 0; }
}

/* ---------- Support page ---------- */
.sup-sub { color: var(--muted); font-size: var(--fs-body); line-height: var(--lh-body); max-width: 560px; margin-top: var(--sp-1); }
.sup-channels { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); margin-top: var(--sp-4); }
@media (min-width: 701px) { .sup-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sup-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-card); padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.sup-card h2 { font-size: var(--fs-h3); font-weight: var(--fw-extrabold); }
.sup-card p { color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-body); flex: 1; }
.sup-card-ic { width: 46px; height: 46px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; }
.sup-card-ic img { width: 24px; height: 24px; }
.sup-card-ic.wa { background: var(--brand-wa-soft); }
.sup-card-ic.tg { background: var(--brand-tg-soft); }
.sup-btn { margin-top: var(--sp-2); justify-content: center; }
.sup-btn.wa { background: var(--brand-wa); color: var(--white); }
.sup-btn.wa:hover { background: var(--brand-wa-hover); }
.sup-btn.tg { background: var(--brand-tg); color: var(--white); }
.sup-btn.tg:hover { background: var(--brand-tg-hover); }
.sup-card-ic.em { background: var(--accent-a16); color: var(--purple-3); }
.sup-card-ic svg { width: 22px; height: 22px; }
.sup-btn.em { background: var(--gradient-primary); color: var(--white); }
.sup-btn.em:hover { filter: brightness(1.1); }
@media (min-width: 1101px) { .sup-channels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sup-soon { margin-top: var(--sp-2); text-align: center; font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-pill); padding: var(--sp-3) var(--sp-4); }
.sup-h { font-size: var(--fs-sheet); font-weight: var(--fw-extrabold); margin: var(--sp-6) 0 var(--sp-3); }
.sup-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
@media (min-width: 901px) { .sup-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sup-cat { display: flex; flex-direction: column; gap: var(--sp-2); text-align: left; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-card); padding: var(--sp-4); color: var(--text); cursor: pointer; font: inherit; transition: border-color var(--dur-micro); }
.sup-cat:hover { border-color: var(--accent2-a45); }
.sup-cat b { font-size: var(--fs-small); line-height: var(--lh-snug); }
.sup-cat small { color: var(--muted); font-size: var(--fs-micro); line-height: var(--lh-body); }
.sup-cat-ic { width: 34px; height: 34px; border-radius: var(--radius-btn); background: var(--purple-soft); color: var(--purple-3); display: inline-flex; align-items: center; justify-content: center; }
.sup-cat-ic .ic { width: 17px; height: 17px; }
.sup-faq { display: flex; flex-direction: column; gap: var(--sp-2); }
.sup-faq-item { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.sup-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); background: none; border: none; color: var(--text); font-size: var(--fs-body); font-weight: var(--fw-bold); text-align: left; padding: var(--sp-4) var(--sp-4); cursor: pointer; font-family: inherit; }
.sup-faq-q .ic { width: 17px; height: 17px; color: var(--muted); transition: transform var(--dur-micro); flex: none; }
.sup-faq-item.open .sup-faq-q .ic { transform: rotate(180deg); }
.sup-faq-a { display: none; padding: 0 var(--sp-4) var(--sp-4); color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-relaxed); }
.sup-faq-item.open .sup-faq-a { display: block; }
.sup-before { margin-top: var(--sp-6); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-card); padding: var(--sp-4) var(--sp-5); }
.sup-before h2 { font-size: var(--fs-h3); font-weight: var(--fw-extrabold); margin-bottom: var(--sp-3); }
.sup-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.sup-list p { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-small); color: var(--muted); line-height: var(--lh-body); }
.sup-list p b { color: var(--text); }
.sup-list .ic { width: 16px; height: 16px; color: var(--purple-3); flex: none; margin-top: var(--sp-1); }
.sup-warn { display: flex; gap: var(--sp-2); align-items: flex-start; margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-3); border-radius: var(--radius-btn); background: var(--danger-a08); color: var(--color-danger-bright); font-size: var(--fs-small); line-height: var(--lh-body); }
.sup-warn .ic { width: 16px; height: 16px; flex: none; margin-top: var(--sp-1); }

/* ---------- AI tools marketplace ---------- */
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); margin-top: var(--sp-4); }
@media (min-width: 701px) { .ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1101px) { .ai-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ai-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-card); padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.ai-card h3 { font-size: var(--fs-h3); font-weight: var(--fw-extrabold); line-height: var(--lh-snug); }
.ai-card-ic { width: 46px; height: 46px; border-radius: var(--radius); background: var(--purple-soft); color: var(--purple-3); display: inline-flex; align-items: center; justify-content: center; }
.ai-card-ic .ic { width: 22px; height: 22px; }
.ai-card-desc { color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-body); flex: 1; }
.ai-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); border-top: 1px solid var(--line-soft); padding-top: var(--sp-3); margin-top: var(--sp-1); }
.ai-price { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.ai-price b { font-size: var(--fs-sheet); font-weight: var(--fw-extrabold); color: var(--text); }
.ai-price small { color: var(--muted); font-size: var(--fs-caption); line-height: var(--lh-snug); }
.ai-info { display: flex; flex-direction: column; gap: var(--sp-2); margin: var(--sp-4) 0 var(--sp-1); }
.ai-info:empty { display: none; }
.ai-info-row { display: flex; gap: var(--sp-3); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-btn); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-small); }
.ai-info-row span { color: var(--purple-3); font-weight: var(--fw-extrabold); font-size: var(--fs-caption); letter-spacing: .07em; text-transform: uppercase; flex: none; width: 86px; padding-top: var(--sp-1); }
.ai-info-row b { font-weight: var(--fw-semibold); color: var(--text); line-height: var(--lh-body); }
.ai-info-row b small { color: var(--muted); font-weight: var(--fw-semibold); }

/* Food delivery */
.food-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-4); }
.food-card { overflow: hidden; }
.food-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.food-body { padding: var(--sp-4); }
.food-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); }
.food-head h3 { margin: 0; font-size: var(--fs-h3); color: var(--text); }
.food-cat { font-size: var(--fs-micro); color: var(--purple-3); white-space: nowrap; }
.food-desc { color: var(--muted); font-size: var(--fs-small); margin: var(--sp-2) 0 0; }
.food-variants { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-3); }
.food-pill { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-btn); padding: var(--sp-2) var(--sp-3); font-size: var(--fs-small); cursor: pointer; text-transform: capitalize; }
.food-pill.active { background: var(--purple); border-color: var(--purple); }
.food-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-4); }
.food-price { font-weight: var(--fw-bold); color: var(--text); white-space: nowrap; }
.food-qty { display: inline-flex; align-items: center; gap: var(--sp-2); }
.food-qty button { width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); border: 1px solid var(--line); cursor: pointer; font-size: var(--fs-body); }
.food-basket { margin-top: var(--sp-5); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-card); padding: var(--sp-4); }
.food-basket h3 { margin: 0 0 var(--sp-3); color: var(--text); }
.food-line { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; color: var(--text); font-size: var(--fs-small); }
.food-line.total { border-top: 1px solid var(--line); margin-top: var(--sp-2); padding-top: var(--sp-3); font-size: var(--fs-body); }
.food-remove { background: none; border: none; color: var(--purple-3); cursor: pointer; font-size: var(--fs-small); }
.food-form { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.food-form label { display: grid; gap: var(--sp-2); color: var(--muted); font-size: var(--fs-small); }
.food-form input, .food-form textarea { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); padding: var(--sp-3) var(--sp-3); font-size: var(--fs-small); }
.food-success { color: var(--text); }
.gift-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gift-meta { display: flex; align-items: center; gap: var(--sp-2); }
.gift-meta .ic { width: 15px; height: 15px; flex: none; }
.gift-panel-head { display: flex; gap: var(--sp-4); margin-bottom: var(--sp-2); }
.gift-panel-img { width: 110px; height: 110px; object-fit: cover; border-radius: var(--radius-btn); flex: none; }
.gift-panel-head h3 { margin: 0; color: var(--text); font-size: var(--fs-h3); }
.food-form select { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); padding: var(--sp-3) var(--sp-3); font-size: var(--fs-small); }
/* Gift galleries: photos crossfade through the product's pictures */
.gift-gallery { position: relative; height: 160px; overflow: hidden; background: var(--bg-2); }
.gift-gallery-lg { height: 320px; border-radius: var(--radius-btn); margin-bottom: var(--sp-4); }
.gift-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--dur-slow) ease; pointer-events: none; }
.gift-slide.active { opacity: 1; }
.gift-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: var(--sp-1); z-index: 2; }
.gift-dot { width: 7px; height: 7px; border-radius: var(--radius-hero); border: none; padding: 0; background: var(--white-a45); cursor: pointer; transition: all var(--dur-med); }
.gift-dot.active { width: 18px; background: var(--purple-2); }
.gift-thumbs { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: var(--sp-3) 0 var(--sp-1); }
.gift-thumb { width: 52px; height: 52px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; padding: 0; background: none; cursor: pointer; }
.gift-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gift-thumb.active { border-color: var(--purple-2); }
.gift-card-btns { display: inline-flex; gap: var(--sp-2); }
/* Gift variant swatches: pick by picture, not by name alone */
.gift-variant { display: grid; gap: var(--sp-2); }
.gift-variant-label { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--muted); }
.gift-variant-label b { color: var(--text); }
.gift-swatches { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.gift-swatch { width: 82px; padding: var(--sp-2); border-radius: var(--radius-btn); border: 1.5px solid var(--line); background: var(--surface-2); cursor: pointer; display: grid; gap: var(--sp-1); justify-items: center; font: inherit; transition: all var(--dur-micro); }
.gift-swatch img { width: 100%; height: 54px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.gift-swatch:hover { border-color: var(--accent2-a55); }
.gift-swatch.active { border-color: var(--purple-2); box-shadow: 0 0 0 2px var(--accent2-a35); }
.gift-swatch-cap { font-size: var(--fs-caption); line-height: var(--lh-snug); color: var(--muted); text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gift-swatch.plain { width: auto; padding: var(--sp-2) var(--sp-4); display: inline-flex; align-items: center; gap: var(--sp-2); }
.gift-swatch-dot { width: 14px; height: 14px; border-radius: var(--radius-hero); border: 1px solid var(--white-a35); flex: none; }
.gift-swatch-name { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--text); }
/* Travel documents: search panels, flight cards, hotel cards */
.tv-note { background: var(--accent-a10); border: 1px solid var(--accent2-a35); color: var(--text); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-small); line-height: var(--lh-body); margin: 0 0 var(--sp-4); max-width: 880px; }
.tv-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-dialog); padding: var(--sp-5); max-width: 880px; display: grid; gap: var(--sp-4); }
.tv-trip-pills { display: inline-flex; gap: var(--sp-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-hero); padding: var(--sp-1); justify-self: start; }
.tv-trip { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: var(--fs-small); font-weight: var(--fw-bold); padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-hero); cursor: pointer; }
.tv-trip.active { background: var(--gradient-primary); color: var(--white); }
.tv-row { display: flex; gap: var(--sp-3); align-items: flex-end; flex-wrap: wrap; }
.tv-field { display: grid; gap: var(--sp-2); position: relative; min-width: 150px; }
.tv-field.grow { flex: 1 1 180px; }
.tv-field label { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--muted); }
.tv-field input, .tv-field select { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-btn); color: var(--text); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-body); font: inherit; width: 100%; }
.tv-field input:focus, .tv-field select:focus { outline: none; border-color: var(--purple-2); box-shadow: 0 0 0 3px var(--accent2-a20); }
.tv-drop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px var(--black-a35); padding: var(--sp-2); display: grid; gap: var(--sp-1); max-height: 280px; overflow: auto; }
.tv-drop[hidden] { display: none; }
.tv-drop .trav-opt { background: transparent; border: 0; color: var(--text); border-radius: var(--radius-sm); }
.tv-drop .trav-opt:hover { background: var(--surface-2); }
.tv-swap { flex: none; width: 42px; height: 42px; margin-bottom: var(--sp-1); border-radius: var(--radius-btn); border: 1px solid var(--line); background: var(--surface-2); color: var(--accent-2, var(--purple-2)); cursor: pointer; display: grid; place-items: center; }
.tv-swap:hover { border-color: var(--purple-2); }
.tv-swap .ic-wrap svg { width: 18px; height: 18px; }
.tv-search-btn { padding: var(--sp-3) var(--sp-5); font-size: var(--fs-body); white-space: nowrap; }
.tv-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); max-width: 880px; margin: var(--sp-5) 0 var(--sp-3); flex-wrap: wrap; }
.tv-results-head h3 { margin: 0; font-size: var(--fs-sheet); color: var(--text); }
.tv-results-head span { color: var(--muted); font-size: var(--fs-small); }
.tv-card { display: flex; gap: var(--sp-4); justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--sp-4) var(--sp-5); max-width: 880px; margin-bottom: var(--sp-3); }
.tv-card-main { display: grid; gap: var(--sp-2); flex: 1; min-width: 0; }
.tv-airline { font-weight: var(--fw-extrabold); font-size: var(--fs-body); color: var(--text); }
.tv-leg { display: flex; align-items: center; gap: var(--sp-4); }
.tv-point { display: grid; gap: var(--sp-1); }
.tv-time { font-size: var(--fs-title); font-weight: var(--fw-extrabold); color: var(--text); line-height: var(--lh-display); }
.tv-code { font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--muted); letter-spacing: .06em; }
.tv-path { flex: 1; display: grid; justify-items: center; gap: var(--sp-1); min-width: 90px; }
.tv-dur { font-size: var(--fs-micro); color: var(--muted); font-weight: var(--fw-semibold); }
.tv-line { width: 100%; height: 2px; border-radius: var(--radius-xs); background: linear-gradient(90deg, var(--accent2-a16), var(--purple-2), var(--accent2-a16)); position: relative; }
.tv-stops { font-size: var(--fs-micro); font-weight: var(--fw-bold); color: var(--muted); }
.tv-stops.direct { color: var(--green); }
.tv-card-date { font-size: var(--fs-small); color: var(--muted); }
.tv-card-side { display: grid; gap: var(--sp-1); justify-items: end; align-content: center; text-align: right; flex: none; }
.tv-price { font-size: var(--fs-title); font-weight: var(--fw-extrabold); color: var(--text); }
.tv-price-cap { font-size: var(--fs-micro); color: var(--muted); max-width: 150px; line-height: var(--lh-snug); }
.tv-selected { font-size: var(--fs-micro); font-weight: var(--fw-extrabold); color: var(--green); border: 1px solid var(--success-a45); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-hero); }
.tv-hotel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-4); max-width: 880px; }
.tv-hotel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; }
.tv-hotel-media { position: relative; }
.tv-hotel-media img { width: 100%; height: 180px; object-fit: cover; display: block; }
.tv-hotel-count { position: absolute; right: 10px; bottom: 10px; background: var(--bg-a72); color: var(--white); font-size: var(--fs-micro); font-weight: var(--fw-bold); padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-hero); }
.tv-hotel-body { padding: var(--sp-4); display: grid; gap: var(--sp-2); flex: 1; }
.tv-hotel-body h3 { margin: 0; font-size: var(--fs-h3); color: var(--text); line-height: var(--lh-snug); }
.tv-hotel-info { margin: 0; font-size: var(--fs-small); color: var(--muted); line-height: var(--lh-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tv-hotel-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); }
.tv-hotel-price { display: grid; gap: var(--sp-1); }
.tv-hotel-price .tv-price { font-size: var(--fs-h2); }
.tv-book { max-width: 880px; margin-top: var(--sp-5); display: grid; gap: var(--sp-4); }
.tv-book .food-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--sp-5); }
@media (max-width: 700px) {
  .tv-card { flex-direction: column; gap: var(--sp-3); }
  .tv-card-top { flex-direction: column; gap: var(--sp-3); }
  .tv-card-side { justify-items: start; text-align: left; }
  .tv-search-btn { width: 100%; }
}
/* Travel steps + flight leg details */
.tv-steps { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: 0 0 var(--sp-4); }
.tv-step { font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--muted); border: 1px solid var(--line); background: var(--surface); padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-hero); }
.tv-step.active { color: var(--white); background: var(--gradient-primary); border-color: transparent; }
.tv-card { flex-direction: column; gap: 0; }
.tv-card-top { display: flex; gap: var(--sp-4); justify-content: space-between; }
.tv-details-btn { background: none; border: 0; padding: 0; font: inherit; font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--accent-2, var(--purple-2)); cursor: pointer; display: inline-flex; align-items: center; gap: var(--sp-1); vertical-align: middle; }
.tv-details-btn .ic-wrap svg { width: 14px; height: 14px; transition: transform var(--dur-micro); }
.tv-details-btn.open .ic-wrap svg { transform: rotate(180deg); }
.tv-legs { border-top: 1px solid var(--line); margin-top: var(--sp-4); padding-top: var(--sp-4); display: grid; gap: var(--sp-3); }
.tv-legs[hidden] { display: none; }
.tv-legrow { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.tv-legpoint { display: grid; gap: var(--sp-1); min-width: 170px; }
.tv-legtime { font-size: var(--fs-h3); font-weight: var(--fw-extrabold); color: var(--text); }
.tv-legplace { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--text); }
.tv-legdate { font-size: var(--fs-micro); color: var(--muted); }
.tv-legflight { flex: 1; text-align: center; font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--muted); border-top: 2px dashed var(--accent2-a45); padding-top: var(--sp-2); min-width: 140px; }
.tv-layover { text-align: center; font-size: var(--fs-micro); font-weight: var(--fw-bold); color: var(--amber); background: var(--warning-a09); border: 1px solid var(--warning-a30); border-radius: var(--radius-hero); padding: var(--sp-1) var(--sp-3); justify-self: center; }
/* Travel staged flow: stage transitions, searching animation, filters, pager, forms, review */
.tv-stage { animation: tvStageIn var(--dur-med) ease both; max-width: 880px; }
@keyframes tvStageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tv-searching { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-dialog); padding: var(--sp-6) var(--sp-5) var(--sp-6); text-align: center; display: grid; justify-items: center; gap: var(--sp-2); overflow: hidden; }
.tv-searching h3 { margin: var(--sp-2) 0 0; font-size: var(--fs-h2); color: var(--text); }
.tv-route-anim { position: relative; width: min(420px, 88%); height: 52px; }
.tv-route-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tv-route-svg path { stroke: var(--accent2-a55); stroke-width: 2; stroke-dasharray: 5 6; animation: tvDash 1.2s linear infinite; }
@keyframes tvDash { to { stroke-dashoffset: -22; } }
.tv-rdot { position: absolute; bottom: 2px; width: 11px; height: 11px; border-radius: var(--radius-hero); background: var(--purple-2); box-shadow: 0 0 0 4px var(--accent2-a20); }
.tv-rdot.start { left: 0; }
.tv-rdot.end { right: 0; background: var(--green); box-shadow: 0 0 0 4px var(--success-a25); }
.tv-plane-anim { position: absolute; top: 0; left: 0; color: var(--purple-2); offset-path: path('M6 36 Q 160 -4 314 36'); offset-rotate: auto 90deg; animation: tvFly 2.6s ease-in-out infinite; }
.tv-plane-anim .ic-wrap svg { width: 22px; height: 22px; }
@keyframes tvFly { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.tv-pin-anim { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.tv-pin { color: var(--purple-2); position: relative; z-index: 2; animation: tvPinBob 1.6s ease-in-out infinite; }
.tv-pin .ic-wrap svg { width: 30px; height: 30px; }
@keyframes tvPinBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.tv-ring { position: absolute; inset: 8px; border-radius: var(--radius-hero); border: 2px solid var(--accent2-a45); animation: tvRing 1.8s ease-out infinite; }
.tv-ring.r2 { animation-delay: .9s; }
@keyframes tvRing { from { transform: scale(.45); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.tv-search-msg { font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--text); min-height: 21px; margin: var(--sp-1) 0 0; }
.tv-search-bar { width: min(320px, 80%); height: 5px; border-radius: var(--radius-hero); background: var(--surface-2); overflow: hidden; margin-top: var(--sp-2); }
.tv-search-bar i { display: block; height: 100%; width: 40%; border-radius: var(--radius-hero); background: var(--gradient-primary); animation: tvBarSlide 1.3s ease-in-out infinite; }
@keyframes tvBarSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(280%); } }
.tv-filterbar { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; max-width: 880px; margin: 0 0 var(--sp-4); }
.tv-sort { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--muted); }
.tv-sort select { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); font: inherit; font-size: var(--fs-small); }
.tv-chip { font: inherit; font-size: var(--fs-small); font-weight: var(--fw-bold); border-radius: var(--radius-hero); }
.tv-chip:hover { border-color: var(--accent2-a55); color: var(--text); }
.tv-chip.active { background: var(--gradient-primary); color: var(--white); border-color: transparent; }
.tv-chip.ghosty { margin-left: auto; }
.tv-pager { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; margin: var(--sp-4) 0 var(--sp-1); }
.tv-page-btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-small); font-weight: var(--fw-bold); min-width: 38px; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); cursor: pointer; }
.tv-page-btn:hover:not(:disabled) { border-color: var(--purple-2); }
.tv-page-btn.active { background: var(--gradient-primary); color: var(--white); border-color: transparent; }
.tv-page-btn:disabled { opacity: .45; cursor: default; }
.tv-page-gap { color: var(--muted); padding: 0 var(--sp-1); }
.tv-stepper { display: inline-flex; align-items: center; gap: var(--sp-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-btn); padding: var(--sp-2) var(--sp-3); }
.tv-stepper button { width: 30px; height: 30px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: var(--fs-h3); cursor: pointer; line-height: 1; }
.tv-stepper b { font-size: var(--fs-body); color: var(--text); min-width: 14px; text-align: center; }
.tv-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--sp-5); display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.tv-form h3 { margin: 0; color: var(--text); font-size: var(--fs-h3); }
.tv-form > label { display: grid; gap: var(--sp-2); font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--muted); }
.tv-form input, .tv-form select { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); padding: var(--sp-3) var(--sp-3); font-size: var(--fs-body); font: inherit; width: 100%; }
.tv-pax { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); display: grid; gap: var(--sp-3); margin: 0; }
.tv-pax legend { font-size: var(--fs-small); font-weight: var(--fw-extrabold); color: var(--text); padding: 0 var(--sp-2); }
.tv-pax > label { display: grid; gap: var(--sp-2); font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--muted); }
.tv-pax input { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); padding: var(--sp-3) var(--sp-3); font-size: var(--fs-body); font: inherit; width: 100%; }
.tv-navrow { display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-1); }
.tv-review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--sp-5); display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.tv-review h3 { margin: 0; color: var(--text); font-size: var(--fs-h3); }
.tv-review-rows { display: grid; }
.tv-review-rows > div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.tv-review-rows > div:last-child { border-bottom: 0; }
.tv-review-rows span { color: var(--muted); }
.tv-review-rows b { color: var(--text); text-align: right; }
.tv-review-total b { color: var(--accent-2, var(--purple-2)); font-size: var(--fs-h3); }
.tv-success { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-dialog); padding: var(--sp-6) var(--sp-5); text-align: center; display: grid; justify-items: center; gap: var(--sp-2); }
.tv-success-ic { width: 58px; height: 58px; border-radius: var(--radius-hero); background: var(--success-a14); border: 1px solid var(--success-a50); color: var(--green); display: grid; place-items: center; }
.tv-success-ic .ic-wrap svg { width: 27px; height: 27px; }
.tv-success h3 { margin: var(--sp-1) 0 0; color: var(--text); font-size: var(--fs-h2); }
.tv-success-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; margin-top: var(--sp-3); }
.tv-empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--sp-6) var(--sp-5); text-align: center; display: grid; justify-items: center; gap: var(--sp-2); }
.tv-empty h3 { margin: 0; color: var(--text); font-size: var(--fs-sheet); }
.btn.is-loading { position: relative; pointer-events: none; opacity: .85; }
/* Account views fade in on navigation instead of snapping. */
#acctMain > * { animation: tvStageIn var(--dur-med) ease both; }
/* Header cart, unified drawer, staged checkouts, shop + food marketplaces */
.cart-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-btn); border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; flex: none; }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn:hover { border-color: var(--purple-2); }
.cart-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 var(--sp-1); border-radius: var(--radius-hero); background: var(--gradient-primary); color: var(--white); font-size: var(--fs-caption); font-weight: var(--fw-extrabold); display: grid; place-items: center; border: 2px solid var(--bg, var(--bg)); }
.cart-badge[hidden] { display: none; }
.cart-drawer { display: flex; flex-direction: column; }
.cart-section { margin-bottom: var(--sp-5); }
.cart-section-title { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-body); color: var(--text); margin: 0 0 var(--sp-3); }
.cart-section-title span { color: var(--muted); font-size: var(--fs-micro); font-weight: var(--fw-semibold); }
.cart-empty-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; justify-content: center; margin-top: var(--sp-2); }
.ck-steps { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.ck-step { font-size: var(--fs-micro); font-weight: var(--fw-bold); color: var(--muted); border: 1px solid var(--line); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-hero); }
.ck-step.active { color: var(--white); background: var(--gradient-primary); border-color: transparent; }
.ck-step.done { color: var(--accent-2, var(--purple-2)); border-color: var(--accent2-a45); }
.ck-lines { margin-bottom: var(--sp-1); }
.ck-nav { display: flex; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-4); }
.ck-summary { display: grid; margin: var(--sp-2) 0; }
.ck-summary > div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.ck-summary > div:last-child { border-bottom: 0; }
.ck-summary span { color: var(--muted); }
.ck-summary b { color: var(--text); text-align: right; }
.ck-done .ic-wrap { animation: ckPop var(--dur-med) ease both; }
@keyframes ckPop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.food-toolbar { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin: var(--sp-1) 0 var(--sp-3); }
.food-search { flex: 1; min-width: 210px; }
.food-cats { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: 0 0 var(--sp-4); }
.food-card.sold-out { opacity: .62; }
.food-soldout { font-size: var(--fs-micro); font-weight: var(--fw-bold); color: var(--amber); }
.store-top-title { font-size: var(--fs-h3); color: var(--text); margin: var(--sp-3) 0 var(--sp-3); }
.store-top-row { display: flex; gap: var(--sp-3); overflow-x: auto; padding-bottom: var(--sp-2); margin-bottom: var(--sp-2); scrollbar-width: thin; }
.store-top-card { flex: 0 0 168px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--sp-3); display: grid; gap: var(--sp-2); justify-items: start; }
.store-top-card img { width: 100%; height: 104px; object-fit: cover; border-radius: var(--radius-sm); }
.store-top-card b { font-size: var(--fs-small); color: var(--text); line-height: var(--lh-snug); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-top-card span { font-weight: var(--fw-extrabold); color: var(--text); }
.gift-related { margin-top: var(--sp-4); }
.gift-related h4 { color: var(--text); margin: 0 0 var(--sp-3); font-size: var(--fs-body); }
.gift-related-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: var(--sp-3); }
.gift-related-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3); display: grid; gap: var(--sp-1); justify-items: start; cursor: pointer; text-align: left; font: inherit; }
.gift-related-card:hover { border-color: var(--purple-2); }
.gift-related-card img { width: 100%; height: 74px; object-fit: cover; border-radius: var(--radius-sm); }
.gift-related-card b { font-size: var(--fs-micro); color: var(--text); line-height: var(--lh-snug); }
.gift-related-card span { font-size: var(--fs-micro); font-weight: var(--fw-extrabold); color: var(--accent-2, var(--purple-2)); }
/* Gift panel actions and buy box */
.gift-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-1); }
.gift-buybox { display: grid; gap: var(--sp-3); border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.gift-buybox h4 { margin: 0; color: var(--text); font-size: var(--fs-body); }
/* Gift cart: floating bar, drawer lines, toast */
.gift-cart-bar { position: sticky; bottom: 14px; z-index: 5; display: flex; align-items: center; gap: var(--sp-4); width: 100%; margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-card); cursor: pointer; color: var(--white); font: inherit; background: var(--gradient-primary); border: 1px solid var(--white-a20); box-shadow: 0 14px 34px var(--accent-a45); }
.gift-cart-bar-left { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: var(--fw-bold); }
.gift-cart-bar-total { margin-left: auto; font-weight: var(--fw-extrabold); }
.gift-cart-bar-cta { background: var(--white-a20); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-hero); font-weight: var(--fw-bold); font-size: var(--fs-small); }
.gift-drawer { width: 440px; }
.gift-cart-empty { text-align: center; padding: var(--sp-7) 0; color: var(--muted); }
.gift-cart-empty .ic { width: 40px; height: 40px; color: var(--purple-3); }
.gift-lines { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.gift-line { display: flex; gap: var(--sp-3); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: var(--sp-3); }
.gift-line-img { width: 62px; height: 62px; object-fit: cover; border-radius: var(--radius-sm); flex: none; }
.gift-line-main { display: grid; gap: var(--sp-1); flex: 1; min-width: 0; }
.gift-line-title { font-size: var(--fs-small); line-height: var(--lh-snug); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gift-line-main small { color: var(--muted); font-size: var(--fs-micro); }
.gift-line-side { display: grid; justify-items: end; align-content: space-between; }
.gift-line-remove { background: none; border: none; color: var(--purple-3); cursor: pointer; font-size: var(--fs-micro); padding: 0; }
.gift-cart-total { margin-top: var(--sp-4); }
.gift-checkout-btn { width: 100%; margin-top: var(--sp-3); }
.gift-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 16px); z-index: 130; background: var(--surface-2); color: var(--text); border: 1px solid var(--accent2-a45); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-hero); font-size: var(--fs-small); font-weight: var(--fw-semibold); opacity: 0; pointer-events: none; transition: all var(--dur-med) ease; box-shadow: 0 12px 30px var(--black-a45); }
.gift-toast.show { opacity: 1; transform: translate(-50%, 0); }
/* ---------- AI Playground ---------- */
.pg-page { max-width: 880px; }
.pg-head { display: flex; align-items: flex-start; gap: var(--sp-4); }
.pg-head-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: var(--radius); background: var(--gradient-primary); color: var(--white); box-shadow: 0 8px 22px var(--accent-a45); }
.pg-head-ic .ic { width: 23px; height: 23px; }
.pg-head .page-title { margin: 0; }
.pg-head .page-blurb { margin: var(--sp-1) 0 0; }
.pg-balance { margin-left: auto; flex: none; background: var(--surface); border: 1px solid var(--line); color: var(--muted); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); font-size: var(--fs-small); }
.pg-balance b, .pg-balance { font-weight: var(--fw-semibold); }
.pg-tabs { display: flex; gap: var(--sp-1); flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-1); margin-top: var(--sp-4); }
.pg-tab { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); border: none; border-radius: var(--radius-sm); background: none; color: var(--muted); font: inherit; font-size: var(--fs-body); font-weight: var(--fw-semibold); cursor: pointer; transition: all var(--dur-micro); }
.pg-tab .ic { width: 17px; height: 17px; }
.pg-tab:hover { color: var(--text); }
.pg-tab.active { background: var(--gradient-primary); color: var(--white); box-shadow: 0 6px 18px var(--accent-a35); }
.pg-chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-4); }
.pg-price-chip { display: inline-flex; align-items: center; gap: var(--sp-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--text); }
.pg-price-chip .ic { width: 15px; height: 15px; color: var(--purple-3); }
.pg-price-chip small { color: var(--muted); font-weight: var(--fw-semibold); }
.pg-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-dialog); padding: var(--sp-5); margin-top: var(--sp-4); display: grid; gap: var(--sp-5); box-shadow: var(--shadow); }
.pg-step h4 { margin: 0 0 var(--sp-3); font-size: var(--fs-body); font-weight: var(--fw-bold); color: var(--text); }
.pg-step input[type="text"], .pg-step textarea, .pg-card input[type="text"], .pg-card textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-btn); color: var(--text); padding: var(--sp-3) var(--sp-4); font: inherit; font-size: var(--fs-body); }
.pg-drop { position: relative; border: 1.5px dashed var(--line); border-radius: var(--radius-card); padding: var(--sp-6) var(--sp-4); text-align: center; cursor: pointer; display: grid; justify-items: center; gap: var(--sp-1); transition: all var(--dur-micro); background: var(--surface-2); }
.pg-drop:hover, .pg-drop.drag { border-color: var(--purple-2); background: var(--accent2-a08); }
.pg-drop b { font-size: var(--fs-body); color: var(--text); }
.pg-drop small { color: var(--muted); font-size: var(--fs-small); }
.pg-drop-ic { width: 46px; height: 46px; border-radius: var(--radius-hero); background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--purple-3); margin-bottom: var(--sp-1); }
.pg-drop-ic .ic { width: 21px; height: 21px; }
.pg-drop.has-file { border-style: solid; border-color: var(--accent2-a55); }
.pg-drop-preview { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-btn); margin-bottom: var(--sp-1); }
.pg-seg { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.pg-seg-btn { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-btn); border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font: inherit; font-size: var(--fs-small); font-weight: var(--fw-semibold); cursor: pointer; }
.pg-seg-btn.active { background: var(--gradient-primary); border-color: transparent; color: var(--white); }
.pg-note { color: var(--muted); font-size: var(--fs-small); margin: 0; }
.pg-sub-h { margin: var(--sp-1) 0 0; font-size: var(--fs-h3); font-weight: var(--fw-extrabold); color: var(--text); }
.pg-cta { width: 100%; padding: var(--sp-4); font-size: var(--fs-h3); border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); }
.pg-result { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.pg-foot { border-top: 1px solid var(--line-soft); padding-top: var(--sp-4); display: grid; gap: var(--sp-2); }
.pg-foot p { margin: 0; color: var(--muted); font-size: var(--fs-small); }
.pg-foot b { color: var(--text); }
.pg-past-h { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-h3); font-weight: var(--fw-extrabold); margin: var(--sp-5) 0 var(--sp-3); color: var(--text); }
.pg-past-h .ic { width: 18px; height: 18px; color: var(--purple-3); }
.pg-job { display: flex; align-items: center; gap: var(--sp-3); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-btn); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-2); }
.pg-job-name { font-weight: var(--fw-semibold); font-size: var(--fs-small); flex: 1; min-width: 0; }
.pg-chip { font-size: var(--fs-micro); font-weight: var(--fw-bold); padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-hero); }
.pg-chip.ok { background: var(--success-a14); color: var(--green); }
.pg-chip.bad { background: var(--danger-a12); color: var(--red); }
.pg-chip.wait { background: var(--accent2-a16); color: var(--purple-3); }
@media (max-width: 640px) { .pg-card { padding: var(--sp-4); } .pg-tab { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-small); } .pg-balance { margin-left: 0; } .pg-head { flex-wrap: wrap; } }
.food-success a { color: var(--purple-3); }

/* Travel documents */
.trav-suggest { display: grid; gap: var(--sp-2); margin: var(--sp-3) 0; }
.trav-opt { text-align: left; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-3); font-size: var(--fs-small); cursor: pointer; }
.trav-opt:hover { border-color: var(--purple); }
.tool-panel select, .food-form select { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); padding: var(--sp-3) var(--sp-3); font-size: var(--fs-small); width: 100%; }

/* ---------- one permanent menu: the shared account drawer ---------- */
/* Lives on <body> (built by account.js) so the hamburger can open the
   same account menu on every page, not just inside the account area.
   Off-canvas at every width; only the phone hamburger opens it. */
.global-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 205;
  width: min(320px, 86vw); padding: var(--sp-5) var(--sp-4) var(--sp-5); margin: 0;
  border-radius: 0; border-top: none; border-bottom: none; border-left: none;
  transform: translateX(-106%); transition: transform var(--dur-med) var(--ease-drawer);
  overflow-y: auto;
}
.global-drawer.open { transform: none; box-shadow: 30px 0 80px var(--black-a55); }
.global-backdrop { z-index: 204; }
.global-drawer .acct-drawer-close {
  display: inline-flex; align-items: center; justify-content: center;
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-soft);
  background: var(--surface-2); color: var(--text); cursor: pointer;
}
.global-drawer .acct-drawer-close .ic { width: 17px; height: 17px; }
.global-drawer .acct-brand { display: flex; }
.global-drawer .acct-balance-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: var(--sp-3); }
.global-drawer .acct-balance-card .wallet-label { flex: 1 1 100%; }
.global-drawer .acct-balance-amount { margin-bottom: 0; }
.global-drawer .acct-balance-card .btn { align-self: center; margin-left: auto; }

/* ---------- products marketplace (Buy Products + /shop) ---------- */
.pm-hero {
  background: linear-gradient(140deg, var(--accent-a20), var(--accent2-a08) 55%, var(--surface-a40)), var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-5) var(--sp-4); margin-bottom: var(--sp-3);
}
.pm-title { font-size: var(--fs-page); font-weight: var(--fw-extrabold); letter-spacing: -.02em; line-height: var(--lh-display); }
.pm-sub { color: var(--muted); font-size: var(--fs-body); margin-top: var(--sp-1); }
.pm-count { color: var(--muted-2); font-size: var(--fs-micro); margin-top: var(--sp-2); }
.pm-search { margin-top: var(--sp-4); max-width: 560px; }
.pm-chips {
  display: flex; gap: var(--sp-2); overflow-x: auto; padding: var(--sp-1) var(--sp-1) var(--sp-3);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.pm-chips::-webkit-scrollbar { display: none; }
.pm-chip {
  flex: none; display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-btn); cursor: pointer;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: var(--fs-small); font-weight: var(--fw-semibold); transition: all var(--dur-micro);
}
.pm-chip:hover { color: var(--text); border-color: var(--accent2-a45); }
.pm-chip.active { background: var(--purple-soft); border-color: var(--accent2-a45); color: var(--text); }
.pm-chip .n { font-size: var(--fs-caption); font-weight: var(--fw-bold); color: var(--purple-3); background: var(--accent2-a16); padding: var(--sp-1) var(--sp-2); border-radius: var(--radius-pill); }
.pm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin: var(--sp-1) 0 var(--sp-3); }
.pm-showing { font-size: var(--fs-small); color: var(--muted); }
.pm-toolbar-right { display: inline-flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; flex: none; }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: var(--sp-3); }
.pm-card {
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur-micro) ease, border-color var(--dur-micro) ease, box-shadow var(--dur-micro) ease;
}
@media (hover: hover) {
  .pm-card:hover { transform: translateY(-2px); border-color: var(--accent2-a45); box-shadow: var(--shadow-sm); }
}
.pm-media {
  position: relative; height: 96px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(320px 130px at 50% -50px, var(--accent-a28), transparent 70%), var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
}
.pm-body { padding: var(--sp-3) var(--sp-3) var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.pm-name {
  font-size: var(--fs-body); font-weight: var(--fw-extrabold); line-height: var(--lh-snug);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pm-desc {
  font-size: var(--fs-small); color: var(--muted); line-height: var(--lh-body);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pm-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.pm-foot { margin-top: auto; padding-top: var(--sp-1); }
.pm-price { font-size: var(--fs-sheet); font-weight: var(--fw-extrabold); letter-spacing: -.01em; }
.pm-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); }
.pm-buy { flex: 1; justify-content: center; }
.pm-details {
  display: inline-flex; align-items: center; padding: 0 var(--sp-3); border-radius: var(--radius-btn);
  border: 1px solid var(--line); color: var(--muted); font-size: var(--fs-small); font-weight: var(--fw-semibold);
}
.pm-details:hover { color: var(--text); border-color: var(--accent2-a45); text-decoration: none; }
.pm-skel { height: 262px; border-radius: var(--radius-card); }
@keyframes pmShimmer { from { background-position: 120% 0; } to { background-position: -80% 0; } }
.pm-empty {
  text-align: center; padding: var(--sp-7) var(--sp-4); color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
}
.pm-empty .ic-wrap { color: var(--purple-3); }
.pm-empty .ic { width: 30px; height: 30px; }
.pm-empty h3 { color: var(--text); font-size: var(--fs-h3); }
.pm-empty p { font-size: var(--fs-small); max-width: 420px; }
.pm-empty .btn { margin-top: var(--sp-2); }
@media (max-width: 640px) {
  .pm-hero { padding: var(--sp-4) var(--sp-4) var(--sp-3); }
  .pm-title { font-size: var(--fs-h2); }
  .pm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
  .pm-media { height: 76px; }
  .pm-media .logo-chip, .pm-media .tile-icon { width: 42px; height: 42px; border-radius: var(--radius-btn); }
  .pm-media .logo-chip img { width: 24px; height: 24px; }
  .pm-media .tile-icon .ic { width: 21px; height: 21px; }
  .pm-body { padding: var(--sp-3); gap: var(--sp-2); }
  .pm-name { font-size: var(--fs-small); }
  .pm-desc { font-size: var(--fs-micro); }
  .pm-price { font-size: var(--fs-h3); }
  .pm-actions { flex-direction: column; gap: var(--sp-2); }
  .pm-details { justify-content: center; padding: var(--sp-2) var(--sp-3); }
  .pm-toolbar-right { width: 100%; }
  .pm-toolbar-right .catalogue-select { flex: 1; }
  /* Fade the chip rail's right edge: a quiet hint it scrolls. */
  .pm-chips { -webkit-mask-image: linear-gradient(90deg, var(--black) 93%, transparent); mask-image: linear-gradient(90deg, var(--black) 93%, transparent); }
}

/* ================= global design system polish ================= */
/* One consistent layer over every page: focus states, fluid type,
   touch targets, calmer motion, centred desktop dialogs, and the
   iOS form zoom fix. Appended last so it wins ties on purpose. */

/* Visible keyboard focus everywhere, mouse clicks stay clean. */
:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

/* Text selection in brand purple. */
::selection { background: var(--accent-a45); color: var(--white); }

/* Fluid page titles: they scale with the screen instead of jumping
   between fixed sizes, which also keeps browser zoom smooth. */
.page-title { font-size: var(--fs-page-fluid); }
.acct-title { font-size: var(--fs-acct-fluid); }
h1, h2, h3 { text-wrap: balance; }

/* Buttons give a small press feedback; cards and chips ease their
   borders the same way everywhere. */
.btn:active { transform: scale(.985); }
.btn { transition: background var(--dur-micro), border-color var(--dur-micro), color var(--dur-micro), transform var(--dur-micro); }

/* Dropdown panels open with the same small settle everywhere. */
.dd-panel, .mobile-menu { animation: panel-in var(--dur-micro) ease; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Dialogs: bottom sheet on phones, a proper centred card on larger
   screens, like every serious dashboard. */
@media (min-width: 768px) {
  .overlay { align-items: center; padding: var(--sp-5); }
  .sheet { border-bottom: 1px solid var(--line); border-radius: var(--radius-dialog); }
}

/* Touch and form comfort at phone widths. Form controls go to 16px
   so iOS Safari stops auto-zooming the page when a field is tapped,
   which also stops the layout jumps that zoom caused. */
@media (max-width: 1100px) {
  input, select, textarea { font-size: var(--fs-h3); }
  .btn.small { min-height: 38px; }
  .chip-btn { min-height: 38px; }
  .catalogue-select { min-height: 42px; }
  .icon-btn, .sheet-close, .acct-drawer-close { min-width: 38px; min-height: 38px; }
}

/* Long product and order names wrap inside their rows instead of
   pushing layouts sideways. */
.buy-name, .order-name, .ledger-row span, .pm-name { overflow-wrap: break-word; }

/* Reduced motion: honour the system setting across the whole site,
   including the hero phone and the loaders. */
.buy-rows b.neg { color: var(--red); }

/* The hidden attribute must always win. Several components set their
   own display (buttons especially), which silently overrode hidden
   and left controls like Clear filters visible when they should not
   be. */
[hidden] { display: none !important; }

/* Wallet withdraw (coming soon) */
.wallet-withdraw { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--border); }
.wallet-withdraw .wallet-note { margin-top: var(--sp-3); }
.soon-pill { display: inline-block; padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-pill); background: var(--accent-a16); border: 1px solid var(--accent2-a45); color: var(--highlight); font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: .04em; text-transform: uppercase; }
.withdraw-copy { margin: var(--sp-4) 0 var(--sp-4); line-height: var(--lh-relaxed); }

/* Forgot password link on the sign-in form */
.auth-forgot { margin: var(--sp-3) 0 0; text-align: right; font-size: var(--fs-small); }
.auth-forgot a { color: var(--highlight); font-weight: var(--fw-semibold); text-decoration: none; }
.auth-forgot a:hover { text-decoration: underline; }

/* ---------- Owner admin: full panel (sync #72) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.stat-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-1); }
.stat-num { font-size: var(--fs-h2); font-weight: var(--fw-bold); }
.stat-label { font-size: var(--fs-micro); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.stat-sub { font-size: var(--fs-micro); color: var(--muted); }
.adm-detail { margin-top: var(--sp-4); }
.adm-filters { align-items: center; }
.adm-filters .list-search { flex: 1; min-width: 200px; margin: 0; }

/* ---------- Owner admin: premium control room (sync #73) ---------- */
.adm-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); width: 100%; margin: 0; padding: 0; align-items: stretch; }
.adm-shell input, .adm-shell select { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3); color: var(--text); font: inherit; font-size: var(--fs-small); }
.adm-shell input:focus, .adm-shell select:focus { outline: none; border-color: var(--purple-2); box-shadow: 0 0 0 3px var(--purple-soft); }
.adm-side { position: sticky; top: 64px; height: calc(100dvh - 64px); align-self: start; background: var(--bg-2); border-right: 1px solid var(--line-soft); padding: var(--sp-5) var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-4); overflow-y: auto; scrollbar-width: thin; }
.adm-brand { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-1) var(--sp-2); }
.adm-brand img { height: 38px; width: auto; }
.adm-brand b { display: block; font-size: var(--fs-h3); line-height: var(--lh-display); }
.adm-brand span { display: block; font-size: var(--fs-micro); color: var(--purple-3); font-weight: var(--fw-semibold); letter-spacing: .03em; }
.adm-nav { display: flex; flex-direction: column; gap: var(--sp-1); }
.adm-nav-group { display: flex; flex-direction: column; gap: var(--sp-1); }
.adm-nav-group + .adm-nav-group { margin-top: var(--sp-4); }
.adm-nav-group-label { font-size: var(--fs-caption); font-weight: var(--fw-bold); letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); padding: 0 var(--sp-3); margin-bottom: var(--sp-1); }
.adm-brand-text { min-width: 0; }
.adm-collapse { margin-left: auto; width: 28px; height: 28px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); cursor: pointer; padding: 0; }
.adm-collapse:hover { color: var(--text); border-color: var(--line); }
.adm-collapse svg { width: 15px; height: 15px; transform: rotate(90deg); transition: transform var(--dur-med) ease; }
.adm-shell.adm-collapsed .adm-collapse svg { transform: rotate(-90deg); }
@media (min-width: 881px) {
  .adm-shell.adm-collapsed { grid-template-columns: 78px minmax(0, 1fr); }
  .adm-collapsed .adm-side { padding: var(--sp-5) var(--sp-3); }
  .adm-collapsed .adm-brand { flex-direction: column; gap: var(--sp-3); padding: var(--sp-1) 0; }
  .adm-collapsed .adm-brand-text { display: none; }
  .adm-collapsed .adm-collapse { margin: 0; }
  .adm-collapsed .adm-nav-group-label { display: none; }
  .adm-collapsed .adm-nav-item { justify-content: center; padding: var(--sp-3) 0; position: relative; }
  .adm-collapsed .adm-nav-label { display: none; }
  .adm-collapsed .adm-badge { position: absolute; top: 3px; right: 3px; margin: 0; padding: var(--sp-1) var(--sp-1); font-size: var(--fs-caption); }
  .adm-collapsed .adm-foot-link { font-size: 0; justify-content: center; padding: var(--sp-2) 0; gap: 0; }
  .adm-collapsed .adm-foot-link svg { width: 17px; height: 17px; }
}
.adm-nav-item { display: flex; align-items: center; gap: var(--sp-3); width: 100%; padding: var(--sp-3) var(--sp-3); border: 0; border-radius: var(--radius-btn); background: transparent; color: var(--muted); font: inherit; font-size: var(--fs-small); font-weight: var(--fw-semibold); cursor: pointer; text-align: left; transition: background var(--dur-micro), color var(--dur-micro); }
.adm-nav-item:hover { background: var(--color-overlay-soft); color: var(--text); }
.adm-nav-item.active { background: linear-gradient(135deg, var(--accent-a35), var(--accent2-a16)); color: var(--white); box-shadow: inset 0 0 0 1px var(--accent2-a35); }
.adm-nav-ic { display: inline-flex; color: var(--purple-3); }
.adm-nav-ic svg { width: 18px; height: 18px; }
.adm-nav-item:not(.active) .adm-nav-ic { color: var(--muted-2); }
.adm-badge { margin-left: auto; background: var(--purple); color: var(--white); font-style: normal; font-size: var(--fs-caption); font-weight: var(--fw-bold); padding: var(--sp-1) var(--sp-2); border-radius: var(--radius-pill); }
.adm-side-foot { border-top: 1px solid var(--line-soft); padding-top: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-1); }
.adm-foot-link { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); font: inherit; font-size: var(--fs-small); font-weight: var(--fw-semibold); cursor: pointer; text-decoration: none; text-align: left; }
.adm-foot-link:hover { color: var(--text); background: var(--color-overlay-soft); }
.adm-foot-link svg { width: 15px; height: 15px; }
/* Mobile bottom bar + More sheet (Phase 4): rendered inside the admin
   shell, displayed only at phone and tablet widths (see the 880px
   block below). Desktop keeps the sidebar exactly as it was. */
.adm-tabbar, .adm-more { display: none; }
.adm-main { min-width: 0; padding: var(--sp-6) var(--sp-6) var(--sp-8); background: radial-gradient(760px 360px at 12% -90px, var(--accent-a14), transparent 70%); }
.adm-head, .adm-body { max-width: 1220px; }
.adm-head { padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line-soft); }
.adm-side, .adm-body, .adm-body > *, .adm-card, .adm-nav, .kpi, .cust-row, .adm-ord { min-width: 0; }
.adm-head h1 { font-size: var(--fs-h1); font-weight: var(--fw-extrabold); letter-spacing: -.01em; }
.adm-head p { color: var(--muted); margin-top: var(--sp-1); font-size: var(--fs-small); }
.adm-body { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); }
.adm-card { padding: var(--sp-4); }
.adm-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.adm-card-head h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); }
.adm-card.attention { border-color: var(--danger-a38); }
.adm-mini-h { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: var(--sp-4) 0 var(--sp-1); }
.adm-sec { display: flex; flex-direction: column; gap: var(--sp-3); }
.adm-sec-label { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: var(--fw-bold); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: var(--sp-4); }
.kpi { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-soft); border-radius: var(--radius-card); padding: var(--sp-4); display: flex; flex-direction: column; }
.kpi-top { display: flex; align-items: center; gap: var(--sp-2); }
.kpi-ic { width: 30px; height: 30px; flex: none; border-radius: var(--radius-sm); background: var(--purple-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--purple-3); }
.kpi-ic svg { width: 15px; height: 15px; }
.kpi-num { font-size: var(--fs-title); font-weight: var(--fw-extrabold); margin-top: var(--sp-3); letter-spacing: -.01em; }
.kpi-label { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: var(--fw-bold); }
.kpi-sub { font-size: var(--fs-micro); color: var(--muted-2); margin-top: var(--sp-1); }
.money-card { display: grid; grid-template-columns: repeat(4, 1fr); padding: var(--sp-2) var(--sp-4); }
.money-cell { padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; }
.money-cell + .money-cell { border-left: 1px solid var(--line-soft); padding-left: var(--sp-4); }
.money-label { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: var(--fw-bold); }
.money-label svg { width: 14px; height: 14px; color: var(--purple-3); }
.money-cell b { display: block; font-size: var(--fs-title); font-weight: var(--fw-extrabold); margin-top: var(--sp-2); }
.money-cell small { display: block; color: var(--muted); font-size: var(--fs-micro); margin-top: var(--sp-1); }
.adm-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.adm-ords { display: flex; flex-direction: column; }
.adm-ord { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-1); border-top: 1px solid var(--line-soft); }
.adm-ord:first-child { border-top: 0; }
.adm-ord-ic { width: 37px; height: 37px; flex: none; border-radius: var(--radius-btn); background: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; color: var(--purple-3); }
.adm-ord-ic svg { width: 17px; height: 17px; }
.adm-ord-main { flex: 1; min-width: 0; }
.adm-ord-main b { display: block; font-size: var(--fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-ord-main small { display: block; color: var(--muted); font-size: var(--fs-micro); line-height: var(--lh-body); overflow-wrap: anywhere; margin-top: var(--sp-1); }
.adm-ord-side { text-align: right; flex: none; }
.adm-ord-side b { display: block; font-size: var(--fs-small); }
.adm-ord-side small { display: block; color: var(--muted); font-size: var(--fs-micro); margin-top: var(--sp-1); }
.adm-ord-side .pill { margin-top: var(--sp-1); }
.adm-err { color: var(--red); }
.pill { display: inline-block; font-size: var(--fs-caption); font-weight: var(--fw-bold); padding: var(--sp-1) var(--sp-2); border-radius: var(--radius-pill); letter-spacing: .02em; }
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.info { background: var(--purple-soft); color: var(--purple-3); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.bad { background: var(--red-soft); color: var(--red); }
.pill.ref { background: var(--orange-a14); color: var(--color-orange); }
.pill.mute { background: var(--color-overlay-soft); color: var(--muted); }
.pos { color: var(--green); }
.neg { color: var(--red); }
.mono { font-family: var(--font-mono); font-size: var(--fs-micro); }
.sys-rows { display: flex; flex-direction: column; }
.sys-row { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; border-top: 1px solid var(--line-soft); }
.sys-row:first-child { border-top: 0; }
.sys-row span { color: var(--muted); font-size: var(--fs-small); }
.sys-row b { font-size: var(--fs-small); text-align: right; }
.avatar { width: 41px; height: 41px; flex: none; border-radius: 50%; background: var(--gradient-primary); color: var(--white); font-weight: var(--fw-extrabold); font-size: var(--fs-small); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px var(--accent-a35); }
.adm-search { display: flex; align-items: center; gap: var(--sp-3); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 0 var(--sp-4); }
.adm-search > span { display: inline-flex; color: var(--muted-2); }
.adm-search svg { width: 17px; height: 17px; }
.adm-search input { flex: 1; background: transparent; border: 0; padding: var(--sp-3) 0; box-shadow: none; }
.adm-search input:focus { box-shadow: none; border: 0; }
.adm-search.grow { flex: 1; min-width: 190px; }
.adm-count { color: var(--muted); font-size: var(--fs-small); margin: var(--sp-1) var(--sp-1) 0; }
.cust-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.cust-row { display: flex; align-items: center; gap: var(--sp-3); width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-card); padding: var(--sp-4) var(--sp-4); cursor: pointer; color: var(--text); font: inherit; transition: border-color var(--dur-micro), transform var(--dur-micro); }
.cust-row:hover { border-color: var(--accent2-a45); background: var(--surface-2); transform: translateY(-1px); }
.cust-row-main { flex: 1; min-width: 0; }
.cust-row-main b { display: block; font-size: var(--fs-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust-row-main small { display: block; color: var(--muted); font-size: var(--fs-micro); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: var(--sp-1); }
.cust-row-bal { text-align: right; flex: none; }
.cust-row-bal b { display: block; font-size: var(--fs-h3); }
.cust-row-bal small { display: block; color: var(--muted-2); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .06em; margin-top: var(--sp-1); }
.cust-detail { padding: var(--sp-5); }
.cust-head { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line-soft); }
.cust-detail .adm-cols { margin-top: var(--sp-4); }
.cust-detail .adm-cols > div { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--sp-4) var(--sp-4); }
.cust-detail .adm-cols .adm-mini-h { margin-top: var(--sp-1); }
.cust-head .avatar { width: 48px; height: 48px; font-size: var(--fs-h3); }
.cust-head-main { flex: 1; min-width: 180px; }
.cust-head-main b { font-size: var(--fs-sheet); display: block; }
.cust-head-main small { color: var(--muted); font-size: var(--fs-micro); }
.cust-head-bal { text-align: right; }
.cust-head-bal span { display: block; font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: var(--fw-bold); }
.cust-head-bal b { display: block; font-size: var(--fs-h2); margin-top: var(--sp-1); }
.cust-head-bal small { color: var(--muted); font-size: var(--fs-micro); }
.adj-form { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; margin-top: var(--sp-4); }
.adj-fields { display: flex; gap: var(--sp-3); flex: 1; min-width: 250px; }
.adj-fields input { flex: 1; min-width: 120px; }
.adj-hint { margin-top: var(--sp-2); font-size: var(--fs-micro); }
.adj-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-4); margin-top: var(--sp-4); }
.adj-block { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--sp-4); }
.adj-block .adm-mini-h { margin-top: 0; }
.adj-block .adj-form { margin-top: var(--sp-2); }
.sync-bar { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.sync-stat span { display: block; font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: var(--fw-bold); }
.sync-stat b { display: block; font-size: var(--fs-body); margin-top: var(--sp-1); }
.sync-bar .btn { margin-left: auto; display: inline-flex; align-items: center; gap: var(--sp-2); }
.sync-bar .btn svg { width: 14px; height: 14px; }
.adm-filters { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; margin-bottom: var(--sp-2); }
.adm-empty { text-align: center; padding: var(--sp-8) var(--sp-5); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-card); color: var(--muted); }
.adm-empty svg { width: 38px; height: 38px; color: var(--purple); }
.adm-empty h3 { color: var(--text); margin: var(--sp-3) 0 var(--sp-1); font-size: var(--fs-h3); }
.rate-card { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap; }
.rate-main p { color: var(--muted); font-size: var(--fs-small); margin-top: var(--sp-2); max-width: 420px; }
.rate-input { display: flex; align-items: center; gap: var(--sp-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); }
.rate-input > span { font-size: var(--fs-h2); font-weight: var(--fw-extrabold); color: var(--purple-3); }
.rate-input input { width: 112px; background: transparent; border: 0; padding: 0; font-size: var(--fs-h2); font-weight: var(--fw-extrabold); }
.rate-input input:focus { box-shadow: none; }
.rate-input small { color: var(--muted); font-size: var(--fs-micro); }
.price-rows { display: flex; flex-direction: column; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; border-top: 1px solid var(--line-soft); }
.price-row:first-child { border-top: 0; }
.price-row-main b { font-size: var(--fs-body); display: block; }
.price-row-main small { color: var(--muted); font-size: var(--fs-micro); }
.pct-input { display: flex; align-items: center; gap: var(--sp-1); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-btn); padding: var(--sp-2) var(--sp-3); }
.pct-input input { width: 58px; background: transparent; border: 0; padding: 0; font-size: var(--fs-h3); font-weight: var(--fw-bold); text-align: right; }
.pct-input input:focus { box-shadow: none; }
.pct-input span { color: var(--muted); font-weight: var(--fw-bold); }
.adm-savebar { position: sticky; bottom: 14px; display: flex; align-items: center; gap: var(--sp-4); background: var(--surface2-a94); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--sp-4) var(--sp-4); box-shadow: var(--shadow); }
.adm-savebar b { display: block; font-size: var(--fs-small); }
.adm-savebar small { display: block; color: var(--muted); font-size: var(--fs-micro); margin-top: var(--sp-1); }
.adm-savebar .btn { margin-left: auto; flex: none; }
.cat-head { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line-soft); }
.cat-name { flex: 1; min-width: 150px; font-weight: var(--fw-bold); font-size: var(--fs-body); }
.sub-list { margin-top: var(--sp-2); }
.sub-row { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-3) var(--sp-3); margin-top: var(--sp-2); background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-btn); }
.sub-row input[type="text"], .sub-row input:not([type]) { flex: 1; min-width: 130px; }
.sub-add, .cat-add { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.sub-add { margin-top: var(--sp-3); }
.sub-add input, .cat-add input { flex: 1; min-width: 120px; }
.switch-wrap { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-small); color: var(--muted); cursor: pointer; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.switch i { position: absolute; inset: 0; background: var(--color-switch-track); border-radius: var(--radius-pill); transition: background var(--dur-micro); pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: transform var(--dur-micro); }
.switch input:checked + i { background: var(--gradient-primary); }
.switch input:checked + i::after { transform: translateX(16px); }
.rule-add { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: end; }
.rule-add input, .rule-add select { flex: 1; min-width: 120px; }
.adm-field { display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; min-width: 140px; }
.adm-field > span { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: var(--fw-bold); }
.adm-field.grow { flex: 2; }
.adm-field-num { flex: 0 1 150px; min-width: 120px; }
.rule-add .adm-field input, .rule-add .adm-field select { width: 100%; flex: none; min-width: 0; }
.rule-val { margin-left: auto; color: var(--purple-3); background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-pill); padding: var(--sp-1) var(--sp-3); }
.btn.danger { color: var(--red); }
.ov-row { flex-direction: column; align-items: stretch; gap: var(--sp-3); }
.ov-controls { display: grid; grid-template-columns: minmax(170px, 1.3fr) auto auto minmax(100px, .5fr) auto; align-items: center; gap: var(--sp-3); width: 100%; }
.ov-controls select { min-width: 0; width: 100%; }
@media (max-width: 640px) {
  .ov-controls { grid-template-columns: 1fr 1fr; }
  .ov-controls select { grid-column: 1 / -1; }
}
/* Transactions (Phase 3): real table on desktop, stacked cards on
   phone widths, mirroring the customer detail ledger rows. */
.tx-table-wrap { overflow-x: auto; }
.tx-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.tx-table th { text-align: left; font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: var(--fw-bold); padding: var(--sp-3) var(--sp-3) var(--sp-2); border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.tx-table td { padding: var(--sp-3) var(--sp-3); border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tx-table tbody tr:last-child td { border-bottom: 0; }
.tx-table .tx-num, .tx-table th.tx-num { text-align: right; white-space: nowrap; }
.tx-when { white-space: nowrap; color: var(--muted); }
.tx-sub { display: block; color: var(--muted); font-size: var(--fs-micro); margin-top: var(--sp-1); overflow-wrap: anywhere; }
.tx-ref { font-size: var(--fs-micro); overflow-wrap: anywhere; max-width: 190px; }
.tx-note { color: var(--muted); overflow-wrap: anywhere; min-width: 130px; }
.tx-cards { display: none; }
.tx-pager { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-4); flex-wrap: wrap; }
.tx-pager-btns { display: inline-flex; gap: var(--sp-2); }
.tx-pager .btn[disabled] { opacity: .45; pointer-events: none; }
@media (max-width: 880px) {
  .tx-table-wrap { display: none; }
  .tx-cards { display: flex; flex-direction: column; }
  .tx-cards .adm-ord:first-child { border-top: 0; }
}
.adm-loading { display: flex; gap: var(--sp-2); justify-content: center; padding: var(--sp-7) 0; }
.adm-loading span { width: 9px; height: 9px; border-radius: 50%; background: var(--purple-2); animation: admPulse 1s infinite ease-in-out; }
.adm-loading span:nth-child(2) { animation-delay: .15s; }
.adm-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes admPulse { 0%, 100% { transform: scale(.6); opacity: .4; } 50% { transform: scale(1); opacity: 1; } }
.adm-unlock-wrap { min-height: 62vh; display: flex; align-items: center; justify-content: center; padding: var(--sp-6) var(--sp-4); }
.adm-unlock { width: min(400px, 94vw); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-soft); border-radius: var(--radius-dialog); padding: var(--sp-6) var(--sp-6); text-align: center; box-shadow: var(--shadow); }
.adm-unlock-logo img { height: 54px; width: auto; }
.adm-unlock h1 { font-size: var(--fs-title); margin: var(--sp-4) 0 var(--sp-2); }
.adm-unlock p { color: var(--muted); font-size: var(--fs-small); margin-bottom: var(--sp-5); }
.adm-field { display: flex; align-items: center; gap: var(--sp-3); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 0 var(--sp-4); margin-bottom: var(--sp-4); text-align: left; }
.adm-field > span { display: inline-flex; color: var(--muted-2); }
.adm-field svg { width: 16px; height: 16px; }
.adm-field input { flex: 1; background: transparent; border: 0; padding: var(--sp-3) 0; color: var(--text); font: inherit; }
.adm-field input:focus { outline: none; }
.adm-unlock-btn { width: 100%; }
@media (max-width: 1024px) {
  .adm-cols { grid-template-columns: 1fr; }
  .adj-actions { grid-template-columns: 1fr; }
  .money-card { grid-template-columns: 1fr; padding: var(--sp-2) var(--sp-4); }
  .money-cell + .money-cell { border-left: 0; border-top: 1px solid var(--line-soft); padding-left: 0; }
}
@media (max-width: 880px) {
  .adm-shell { grid-template-columns: 1fr; gap: var(--sp-4); padding: var(--sp-4) var(--sp-4) 0; }
  .adm-side { position: static; height: auto; padding: var(--sp-4); gap: var(--sp-3); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-soft); border-radius: var(--radius-dialog); box-shadow: var(--shadow); overflow: visible; }
  /* Phase 4: section navigation moves to the fixed bottom bar. The
     sidebar keeps only the brand on mobile; its foot actions (Back to
     storefront, Lock admin) live in the More sheet instead. */
  .adm-nav, .adm-side-foot { display: none; }
  .adm-collapse { display: none; }
  .adm-main { padding: 0 0 calc(var(--sp-10) + var(--safe-bottom)); background: none; }
  .adm-head, .adm-body { max-width: none; }
  .adm-head { border-bottom: 0; padding-bottom: 0; }
  .adm-head h1 { font-size: var(--fs-title); }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .adm-shell input, .adm-shell select { font-size: var(--fs-h3); }
  .adm-savebar { flex-wrap: wrap; }
  .adm-savebar .btn { margin-left: 0; width: 100%; }
  /* Names, emails and order titles wrap instead of truncating away. */
  .cust-row-main b, .cust-row-main small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
  .adm-ord-main b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
  .cust-head-main { min-width: 0; }
  .cust-head-main small { overflow-wrap: anywhere; }
  /* Fixed bottom navigation bar */
  .adm-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; gap: var(--sp-1); padding: var(--sp-2) var(--sp-2) calc(var(--sp-2) + var(--safe-bottom)); background: var(--color-chrome-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-soft); }
  .adm-tab-item { flex: 1; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1); padding: var(--sp-2) var(--sp-1); background: none; border: 0; border-radius: var(--radius-btn); color: var(--muted); font: inherit; cursor: pointer; position: relative; }
  .adm-tab-ic { display: inline-flex; }
  .adm-tab-ic svg { width: 20px; height: 20px; }
  .adm-tab-label { font-size: var(--fs-caption); font-weight: var(--fw-semibold); line-height: var(--lh-display); }
  .adm-tab-item.active { color: var(--purple-3); background: var(--purple-soft); }
  .adm-tab-badge { position: absolute; top: 3px; left: calc(50% + 4px); margin: 0; padding: var(--sp-1) var(--sp-2); font-size: var(--fs-caption); }
  /* More sheet */
  .adm-more { display: block; position: fixed; inset: 0; z-index: 90; }
  .adm-more-scrim { position: absolute; inset: 0; background: var(--scrim-a60); }
  .adm-more-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 84dvh; overflow-y: auto; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-top: 1px solid var(--line-soft); border-radius: var(--radius-dialog) var(--radius-dialog) 0 0; padding: var(--sp-4) var(--sp-4) calc(var(--sp-4) + var(--safe-bottom)); }
  .adm-more-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-2); }
  .adm-more-head b { font-size: var(--fs-h3); }
  .adm-more-close { width: 38px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); color: var(--muted); cursor: pointer; padding: 0; }
  .adm-more-close svg { width: 16px; height: 16px; }
  .adm-more-item { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 52px; padding: var(--sp-3) var(--sp-2); background: none; border: 0; border-top: 1px solid var(--line-soft); color: var(--text); font: inherit; font-size: var(--fs-body); font-weight: var(--fw-semibold); text-align: left; cursor: pointer; text-decoration: none; }
  .adm-more-list .adm-more-item:first-child { border-top: 0; }
  .adm-more-item.active { color: var(--purple-3); }
  .adm-more-item .adm-badge { margin-left: auto; }
  .adm-more-foot { margin-top: var(--sp-2); }
}

/* Small phones (Phase 4, master 9.2): deliberate one-column stacking,
   readable KPI figures, full-width form fields and filters. */
@media (max-width: 430px) {
  .kpi-grid { gap: var(--sp-3); }
  .kpi { padding: var(--sp-3); }
  .kpi-num { font-size: var(--fs-h2); }
  .adm-card { padding: var(--sp-4); }
  .adm-field { flex: 1 1 100%; min-width: 0; }
  .adj-fields { flex-direction: column; min-width: 0; }
  .adj-fields input { min-width: 0; width: 100%; }
  .adj-form .btn { width: 100%; }
  .cat-name { flex: 1 1 100%; min-width: 0; }
  .sub-row input[type="text"], .sub-row input:not([type]) { flex: 1 1 100%; min-width: 0; }
  .sub-row select { flex: 1; min-width: 0; }
  .price-row { flex-wrap: wrap; }
  .rate-input { width: 100%; flex-wrap: wrap; }
  .rate-input input { flex: 1; width: auto; min-width: 0; }
  .adm-filters select { flex: 1 1 100%; }
  .adm-search.grow { flex: 1 1 100%; min-width: 0; }
}

/* ================= component primitives (redesign Phase 1B) =====
   Reusable loading and skeleton states built on the Phase 1A tokens.
   The radius convergence lives in the component rules above (buttons,
   chips, tabs and search fields now use --radius-btn; cards use
   --radius-card; sheets use --radius-dialog). This block only adds
   states that later phases wire into pages. */
.btn.is-loading { pointer-events: none; opacity: .75; }
.spinner {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2px solid var(--white-a35); border-top-color: var(--white);
  animation: loaderSpin var(--dur-slow) linear infinite;
}
.skel, .pm-skel {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(100deg, var(--surface) 40%, var(--surface-2) 50%, var(--surface) 60%);
  background-size: 200% 100%; animation: pmShimmer 1.2s infinite;
}
.skel-line { height: 12px; border-radius: var(--radius-xs); }
.skel-card { height: 180px; }
/* ---------- Phase 6: customer account + fintech polish ----------
   Appended last so these rules settle the cascade for the account
   shell, dashboard, wallet, history, auth, settings and support.
   Class names and hooks are unchanged; this is presentation only. */

/* 6A: identity block in the account sidebar + global drawer */
.acct-user { margin: 0 var(--sp-1) var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line-soft); }
.acct-avatar { box-shadow: 0 4px 14px var(--accent-a35); }

/* 6A: the balance eye toggle now works at every width (it replaces
   the old labelled Hide balance button, which duplicated it). */
.wallet-balance-row { display: flex; align-items: center; gap: var(--sp-3); }
.bal-eye {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-sm); flex: none;
  background: none; border: none; color: var(--muted); cursor: pointer; padding: 0;
}
.bal-eye:hover { color: var(--text); background: var(--surface-2); }
.bal-eye .ic { width: 20px; height: 20px; }

/* 6A: quick actions sit two-by-two on tablet widths too */
@media (min-width: 701px) and (max-width: 1100px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 6B: wallet (Mercury-style balance card + top-up panel) */
.wallet-hero { max-width: 640px; margin-top: 0; }
.wallet-hero .wallet-withdraw { border-top-color: var(--accent2-a28); }
.wallet-topup-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: var(--sp-5); margin-top: var(--sp-4); max-width: 640px;
}
.wallet-panel-h { font-size: var(--fs-h3); font-weight: var(--fw-extrabold); margin-bottom: var(--sp-4); }
.wallet-topup-card .topup-input { max-width: none; }
.wallet-topup-card .btn.wide { margin-top: var(--sp-4); }
.topup-convert { margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--muted); }
.topup-convert b { color: var(--text); }
.topup-min-hint { margin-top: var(--sp-2); font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--amber); }
.ledger-main { min-width: 0; }
.ledger-note { color: var(--muted); }
.ledger-amt { text-align: right; flex: none; }
.ledger-amt b { font-size: var(--fs-body); }
.ledger-amt small { display: block; color: var(--muted-2); font-size: var(--fs-micro); margin-top: var(--sp-1); }

/* 6C: history (clearer order cards, honest empty states) */
.order-row { border-radius: var(--radius); padding: var(--sp-4); margin-bottom: var(--sp-3); }
.order-top b { font-size: var(--fs-body); }
.order-top .pill { flex: none; margin-top: var(--sp-1); }
.order-price { color: var(--text); font-weight: var(--fw-bold); }
.order-actions { border-top: 1px solid var(--line-soft); padding-top: var(--sp-3); margin-top: var(--sp-3); }
.code-box { border: 1px solid var(--success-a25); }
.hist-empty {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: var(--sp-6) var(--sp-4); text-align: center; color: var(--muted); font-size: var(--fs-small);
}
.stat-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 560px; }

/* 6D: auth pages (token adoption + field polish; layout unchanged) */
.auth-card { border-radius: var(--radius-dialog); box-shadow: var(--elevation-2); }
.auth-card h1 { font-size: var(--fs-page); }
.auth-field { border-radius: var(--radius-btn); }
.auth-field .pw-toggle { border-radius: var(--radius-sm); padding: var(--sp-1); }
.auth-field .pw-toggle:hover { color: var(--text); background: var(--surface-2); }
.auth-error, .auth-note { border-radius: var(--radius-btn); }
.btn.auth-submit { border-radius: var(--radius-btn); }
.auth-benefit { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: var(--sp-3) var(--sp-3); }
.pw-meter { background: var(--surface-3); }

/* 6E: settings + support (token adoption; content and channels unchanged) */
.settings-head h3 { font-size: var(--fs-h3); }
.sup-card { border-radius: var(--radius-card); }
.sup-card h2 { font-size: var(--fs-h3); }
.sup-h { font-size: var(--fs-h2); }
.sup-faq-item { border-radius: var(--radius-sm); }
.sup-faq-q:hover { color: var(--purple-3); }
.sup-before { border-radius: var(--radius-card); }
.sup-before h2 { font-size: var(--fs-h3); }
.sup-warn { border-radius: var(--radius-btn); }
.sup-soon { border-radius: var(--radius-btn); }

/* ================= Phase 7: customer mobile refinement =================
   Touch targets, the 16px form floor and safe-area edges on customer
   pages. Measured against the live site at 320 to 768px: the header
   button, balance pill, sheet and drawer close buttons, small buttons,
   top-up chips, sort select and marketplace chips all landed between
   36px and 42px tall, and a few class-styled fields (auth, history
   search, sort select) sat at 14 to 15px, under the no-zoom floor.
   Everything below is phone/tablet width only; desktop is untouched. */

/* Drawers and the side cart respect the notch and the home indicator
   at every width (the insets are zero on devices without them). */
.global-drawer { padding-top: calc(var(--sp-5) + var(--safe-top)); padding-bottom: calc(var(--sp-5) + var(--safe-bottom)); }
.drawer { padding-top: calc(var(--sp-5) + var(--safe-top)); padding-bottom: calc(var(--sp-6) + var(--safe-bottom)); }
.global-drawer .acct-drawer-close, .acct-side .acct-drawer-close { top: calc(14px + var(--safe-top)); }

@media (max-width: 1100px) {
  /* Primary touch targets reach 44px. The header grows its button and
     balance pill to 44px and gives back the same height in padding,
     so the bar stays 63px and the storefront menu and category strip
     keep their established offsets. */
  .topbar { padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
  .menu-btn { width: 44px; height: 44px; }
  .wallet-chip { min-height: 44px; }
  .btn { min-height: 44px; }
  .btn.small { min-height: 44px; }
  .chip-btn { min-height: 44px; }
  .catalogue-select { min-height: 44px; }
  .pm-chip { min-height: 44px; }
  .icon-btn, .sheet-close, .acct-drawer-close { min-width: 44px; min-height: 44px; }
  /* The taller sheet close button must never sit over the title. */
  .sheet-title { padding-right: var(--sp-8); }
  /* The 16px floor also covers fields whose class rules set a smaller
     size (the bare-element rule loses to those on specificity). */
  .auth-field input, .history-search input, .catalogue-select,
  .food-form input, .food-form textarea, .food-form select,
  .tool-panel select { font-size: var(--fs-h3); }
  /* The in-account drawer gets the same safe-area edges. */
  .acct-side { padding-top: calc(var(--sp-5) + var(--safe-top)); padding-bottom: calc(var(--sp-5) + var(--safe-bottom)); }
}

/* ---------- Phase 8: loading, empty, error and success states ----------
   Wires the Phase 1 state primitives (.skel, .spinner, .btn.is-loading)
   into the surfaces that load, and aligns the empty/error patterns.
   Presentation only: no class names or hooks were renamed. */

/* Skeleton building blocks (sizes for the Phase 1 .skel shimmer). */
.skel-w40 { width: 40%; }
.skel-w60 { width: 60%; }
.skel-title { height: 26px; width: 45%; border-radius: var(--radius-xs); }
.skel-avatar { width: 46px; height: 46px; border-radius: 50%; margin-bottom: var(--sp-3); }
.skel-stack { display: flex; flex-direction: column; gap: var(--sp-3); }
.skel-tile { height: 84px; border-radius: var(--radius-card); }

/* Account shell skeleton (dashboard/history while account data loads). */
.acct-skel-bal { height: 112px; border-radius: var(--radius-card); margin: var(--sp-4) 0 var(--sp-4); }
.acct-skel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-5); }
@media (max-width: 640px) { .acct-skel-grid { grid-template-columns: repeat(2, 1fr); } }

/* Admin transactions skeleton rows (table height on desktop, close to
   the stacked cards on phones). */
.tx-skel-row { height: 52px; margin-bottom: var(--sp-3); border-radius: var(--radius-sm); }
.tx-error { text-align: center; padding: var(--sp-5) var(--sp-4); }
.tx-error .form-error { margin: 0 0 var(--sp-3); }

/* History empty states take the shared dashed pattern (icon, sentence,
   one action), matching .pm-empty and .adm-empty. */
.hist-empty {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  padding: var(--sp-6) var(--sp-4); text-align: center; color: var(--muted); font-size: var(--fs-small);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.hist-empty .ic { width: 28px; height: 28px; color: var(--purple-3); }
.hist-empty .btn { margin-top: var(--sp-2); }

/* Compact admin empty state for in-card queues. */
.adm-empty.compact { padding: var(--sp-5) var(--sp-4); }
.adm-empty.compact svg { width: 26px; height: 26px; }
.adm-empty.compact h3 { font-size: var(--fs-body); margin: var(--sp-2) 0 var(--sp-1); }

/* Tracking reveal errors sit under the row they belong to. */
.reveal-err { margin: var(--sp-1) var(--sp-1) var(--sp-3); }

/* ---------- Light theme (owner-requested 2026-11-18) ----------
   Dark stays the default. The early script in index.html sets
   data-theme="light" on <html> from localStorage (key th_theme)
   before first paint; app.js owns switching and syncing the
   controls. Toggle spots: the topbar button (desktop), a row in
   the storefront menu and the account drawer, and a Dark/Light
   choice in Settings. Deliberate dark brand panels (the homepage
   hero card, the auth showcase, the phone mockup) keep their dark
   design in both themes; the few var-driven children inside the
   hero are re-pinned below so they stay readable on dark. */
:root[data-theme="light"] {
  color-scheme: light;
  --color-bg: #F5F4FA;
  --color-bg-subtle: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-raised: #EFEDF7;
  --color-surface-high: #E3E0F1;
  --color-border: #D8D4E9;
  --color-border-soft: #E5E2F1;
  --color-text: #16121F;
  --color-text-muted: #5A5570;
  --color-text-faint: #65617C;
  --color-accent-strong: #9333EA;
  --color-accent-bright: #7C3AED;
  --color-accent-soft: rgba(124, 58, 237, .10);
  --color-success: #047857;
  --color-success-soft: rgba(4, 120, 87, .10);
  --color-danger: #DC2626;
  --color-danger-soft: rgba(220, 38, 38, .08);
  --color-warning: #B45309;
  --color-warning-soft: rgba(180, 83, 9, .12);
  --color-chrome: rgba(255, 255, 255, .88);
  --color-chrome-strong: rgba(255, 255, 255, .94);
  --color-overlay-soft: rgba(22, 18, 31, .06);
  --color-switch-track: rgba(22, 18, 31, .18);
  --shadow-sm: 0 8px 24px rgba(38, 20, 84, .12);
  --shadow: 0 18px 50px rgba(38, 20, 84, .16);
  --shadow-lg: 0 30px 60px rgba(38, 20, 84, .14);
  --elevation-1: var(--shadow-sm);
  --elevation-2: var(--shadow);
}

/* ---------- Theme controls ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm); flex: none;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
}
.theme-toggle .ic { width: 19px; height: 19px; }
@media (max-width: 1100px) {
  .theme-toggle { display: none; }
}
button.mm-row { background: none; border: none; width: 100%; text-align: left; font: inherit; cursor: pointer; }
.theme-value { margin-left: auto; color: var(--muted); font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.acct-nav-item .theme-value { font-weight: var(--fw-semibold); }
.theme-seg { display: flex; gap: var(--sp-2); }
.theme-seg [data-theme-set].active { background: var(--purple-soft); border-color: var(--accent2-a55); color: var(--text); }

/* ---------- Continue with Google (auth pages) ---------- */
.or-divider { display: flex; align-items: center; gap: var(--sp-3); color: var(--muted-2); font-size: var(--fs-micro); font-weight: var(--fw-semibold); margin: var(--sp-4) 0 var(--sp-3); }
.or-divider::before, .or-divider::after { content: ''; flex: 1; border-top: 1px solid var(--line-soft); }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  width: 100%; padding: var(--sp-3); border-radius: var(--radius-btn);
  background: var(--white); color: var(--ink); border: 1px solid var(--google-line);
  font-size: var(--fs-body); font-weight: var(--fw-semibold);
}
.google-btn:hover { background: var(--white); text-decoration: none; }
.google-btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Passkeys ---------- */
.passkey-auth { margin-top: var(--sp-3); }
.passkey-btn {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  width: 100%; padding: var(--sp-3); border-radius: var(--radius-btn);
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  font-size: var(--fs-body); font-weight: var(--fw-semibold); cursor: pointer;
}
.passkey-btn:hover { border-color: var(--purple-2); }
.passkey-btn:disabled { opacity: .6; cursor: wait; }
.passkey-btn svg { width: 18px; height: 18px; flex: none; }
.pk-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid var(--line-soft); }
.pk-row:first-child { border-top: none; padding-top: var(--sp-1); }
.pk-meta { flex: 1; min-width: 0; }
.pk-meta b { display: block; font-size: var(--fs-body); }
.pk-meta small { color: var(--muted-2); font-size: var(--fs-micro); }
.pk-empty { color: var(--muted); font-size: var(--fs-small); margin: var(--sp-1) 0 var(--sp-3); }

/* ---------- Auth redesign 2026-11-20: premium fintech sign in / sign up ----------
   Linear's restraint, Stripe's form craft, Vercel's quiet type, in
   TimtixHub purple. Scoped to the auth pages only; every id and hook the
   auth logic uses is unchanged. Placed last so it settles the cascade. */
.auth-page { background: var(--bg); }
.auth-showcase {
  background:
    radial-gradient(680px 440px at 88% -10%, var(--accent3-a25), transparent 62%),
    radial-gradient(600px 480px at -12% 112%, var(--accent-a35), transparent 62%),
    linear-gradient(155deg, var(--showcase-a) 0%, var(--showcase-b) 55%, var(--showcase-c) 100%);
  border-right: 1px solid var(--white-a05);
  padding: var(--sp-7) var(--sp-7);
}
.auth-showcase::after { opacity: .38; background-size: 24px 24px; }
.hero-blob.sb1 { background: var(--accent3-a25); }
.hero-blob.sb2 { background: var(--accent-a35); }
.auth-brand .brand-name { font-size: var(--fs-sheet); font-weight: var(--fw-extrabold); letter-spacing: -.01em; }
.showcase-mid h2 { font-size: var(--fs-showcase); letter-spacing: -.03em; }
.showcase-sub { font-size: var(--fs-body); color: var(--white-a70); max-width: 420px; }
.demo-card {
  border-radius: var(--radius-dialog); padding: var(--sp-5) var(--sp-5) var(--sp-5); margin-top: var(--sp-6);
  background: var(--white-a05); border-color: var(--white-a15);
  box-shadow: 0 30px 60px var(--black-a35);
}
.demo-number { font-size: var(--fs-sheet); }
.demo-chip { background: var(--panel-a88); backdrop-filter: blur(6px); }
.showcase-points { gap: var(--sp-6); font-size: var(--fs-small); color: var(--white-a75); }

.auth-main {
  padding: var(--sp-7) var(--sp-6);
  background:
    radial-gradient(620px 400px at 50% -8%, var(--accent-a14), transparent 65%),
    var(--bg);
}
.auth-card {
  max-width: 464px; padding: var(--sp-7) var(--sp-7) var(--sp-6); border-radius: var(--radius-dialog); position: relative;
  background: var(--surface); border: 1px solid var(--line-soft);
  box-shadow: 0 24px 60px var(--black-a45), 0 4px 16px var(--black-a25);
}
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 40px; right: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent3-a55), transparent);
}
.auth-card h1 { font-size: var(--fs-page); letter-spacing: -.03em; text-align: left; }
.auth-card .auth-sub { text-align: left; font-size: var(--fs-body); line-height: var(--lh-relaxed); margin-top: var(--sp-2); }
.auth-note { border-radius: var(--radius-btn); margin-top: var(--sp-4); }

.auth-form { margin-top: var(--sp-6); gap: 0; }
.auth-label { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--text); letter-spacing: .01em; margin-top: var(--sp-4); }
.auth-form .auth-label:first-child { margin-top: 0; }
.auth-field {
  margin-top: var(--sp-2); padding: 0 var(--sp-4); border-radius: var(--radius-btn); background: var(--bg-2);
  border: 1px solid var(--line);
  transition: border-color var(--dur-med) ease, box-shadow var(--dur-med) ease, background var(--dur-med) ease;
}
.auth-field:hover { border-color: var(--surface-3); }
.auth-field:focus-within {
  border-color: var(--purple-2);
  box-shadow: 0 0 0 4px var(--accent2-a16);
  background: var(--bg-2);
}
.auth-field-icon { transition: color var(--dur-med) ease; }
.auth-field:focus-within .auth-field-icon { color: var(--purple-3); }
.auth-field-icon .ic { width: 18px; height: 18px; }
.auth-field input { font-size: var(--fs-h3); padding: var(--sp-4) 0; letter-spacing: .01em; }
.auth-field input::placeholder { color: var(--muted-2); }
.auth-field .pw-toggle { border-radius: var(--radius-sm); padding: var(--sp-2); margin-right: calc(-1 * var(--sp-2)); transition: color var(--dur-med), background var(--dur-med); }
.auth-field .pw-toggle:hover { color: var(--text); background: var(--surface-2); }
.pw-meter { height: 6px; margin-top: var(--sp-3); }
.pw-hint { font-size: var(--fs-micro); line-height: var(--lh-body); margin-top: var(--sp-2); }
.auth-forgot { margin-top: var(--sp-3); font-size: var(--fs-small); text-align: right; }
.auth-forgot a { color: var(--purple-3); font-weight: var(--fw-semibold); }
.auth-forgot a:hover { text-decoration: underline; text-underline-offset: 3px; }

.auth-terms {
  display: flex; align-items: flex-start; gap: var(--sp-3); margin-top: var(--sp-5); position: relative;
  font-size: var(--fs-small); line-height: var(--lh-body); color: var(--muted); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.auth-terms input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.auth-check {
  width: 20px; height: 20px; flex: none; margin-top: var(--sp-1); border-radius: var(--radius-xs);
  border: 1.5px solid var(--line); background: var(--bg-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-micro) ease, border-color var(--dur-micro) ease, box-shadow var(--dur-micro) ease;
}
.auth-check .ic { width: 12px; height: 12px; color: var(--white); opacity: 0; transform: scale(.5); transition: opacity var(--dur-micro) ease, transform var(--dur-micro) ease; }
.auth-terms input:checked + .auth-check { background: var(--gradient-primary); border-color: transparent; }
.auth-terms input:checked + .auth-check .ic { opacity: 1; transform: scale(1); }
.auth-terms input:focus-visible + .auth-check { box-shadow: 0 0 0 4px var(--accent2-a28); border-color: var(--purple-2); }
.auth-terms:hover .auth-check { border-color: var(--purple-2); }
.auth-terms-text a { color: var(--purple-3); font-weight: var(--fw-semibold); }
.auth-terms-text a:hover { text-decoration: underline; text-underline-offset: 3px; }

.btn.auth-submit {
  margin-top: var(--sp-5); padding: var(--sp-4); min-height: 52px; border-radius: var(--radius-btn);
  font-size: var(--fs-body); font-weight: var(--fw-bold); letter-spacing: .01em; border: none;
  background: var(--gradient-primary); color: var(--white);
  box-shadow: 0 10px 26px var(--accent-a35);
  transition: transform var(--dur-micro) ease, box-shadow var(--dur-micro) ease, filter var(--dur-micro) ease;
}
.btn.auth-submit:hover { background: var(--gradient-primary); transform: translateY(-1px); box-shadow: 0 16px 34px var(--accent-a45); filter: brightness(1.06); }
.btn.auth-submit:active { transform: translateY(0); box-shadow: 0 8px 20px var(--accent-a28); }
.btn.auth-submit:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent2-a35); }
.btn.auth-submit:disabled { opacity: .55; transform: none; box-shadow: none; }

.or-divider { margin: var(--sp-5) 0 var(--sp-4); font-size: var(--fs-caption); letter-spacing: .14em; text-transform: uppercase; }
.google-btn {
  min-height: 50px; padding: var(--sp-3); border-radius: var(--radius-btn); font-size: var(--fs-body); font-weight: var(--fw-semibold);
  transition: transform var(--dur-micro) ease, box-shadow var(--dur-micro) ease;
}
.google-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.passkey-btn { min-height: 50px; padding: var(--sp-3); border-radius: var(--radius-btn); transition: border-color var(--dur-med) ease, transform var(--dur-micro) ease; }
.passkey-btn:hover { transform: translateY(-1px); }

.auth-error { border-radius: var(--radius-btn); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-small); line-height: var(--lh-body); }
.auth-col .auth-benefits, .auth-card .auth-benefits { margin-top: var(--sp-5); gap: var(--sp-3); }
.auth-benefit { align-items: flex-start; }
.auth-benefit > span { width: 34px; height: 34px; border-radius: var(--radius-sm); }
.auth-benefit p { font-size: var(--fs-small); line-height: var(--lh-body); }
.auth-fine { margin-top: var(--sp-4); font-size: var(--fs-micro); color: var(--muted-2); }
.auth-switch { margin-top: var(--sp-5); font-size: var(--fs-small); }
.auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }


@media (max-width: 1024px) {
  .auth-main { padding: var(--sp-6) var(--sp-5) var(--sp-8); align-items: flex-start; }
  .auth-card { padding: var(--sp-6) var(--sp-6) var(--sp-6); }
  .auth-brand.mobile-only { margin-bottom: var(--sp-5); }
}
@media (max-width: 640px) {
  .auth-main { padding: var(--sp-5) var(--sp-4) var(--sp-7); background: radial-gradient(420px 260px at 50% -4%, var(--accent-a14), transparent 65%), var(--bg); }
  .auth-card { background: transparent; border: none; box-shadow: none; padding: var(--sp-1) var(--sp-1) var(--sp-3); animation: none; }
  .auth-card::before { display: none; }
  .auth-card h1 { font-size: var(--fs-title); }
  .auth-card .auth-sub { font-size: var(--fs-body); }
  .auth-brand.mobile-only { margin-bottom: var(--sp-5); }
  .auth-form { margin-top: var(--sp-5); }
  .btn.auth-submit { margin-top: var(--sp-5); }
}
@media (max-width: 380px) {
  /* The wordmark steps aside so menu, logo, cart and Sign in fit one row */
  .topbar .brand-name { display: none; }
  .topbar { gap: var(--sp-2); padding: 0 var(--sp-3); }
  .auth-main { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .auth-field { padding: 0 var(--sp-3); }
  .showcase-points { gap: var(--sp-4); }
}
/* Sidebar fit + embedded sections 2026-11-20: on desktop the account
   sidebar stays put under the topbar and never grows past the screen:
   identity and balance stay pinned at the top, Settings and Log Out at
   the bottom, and only the menu list scrolls (a little, on short
   screens). The marketplace sections (Boost Socials, AI Tools, Track,
   Travel, Food) render inside the main column via .acct-embed. */
@media (min-width: 1101px) {
  .acct-shell .acct-side {
    top: 92px; max-height: calc(100vh - 112px);
    display: flex; flex-direction: column; overflow: hidden;
    padding: var(--sp-4) var(--sp-4);
  }
  .acct-shell .acct-brand { display: none; }
  .acct-shell .acct-avatar { width: 38px; height: 38px; font-size: var(--fs-h3); }
  .acct-shell .acct-balance-card { padding: var(--sp-3) var(--sp-3); margin-bottom: var(--sp-3); flex-direction: row; align-items: center; justify-content: space-between; }
  .acct-shell .acct-balance-card .wallet-label { display: none; }
  .acct-shell .acct-balance-amount { font-size: var(--fs-sheet); margin-bottom: 0; }
  .acct-shell .acct-nav { overflow-y: auto; min-height: 0; margin-top: var(--sp-1); padding-right: var(--sp-1); scrollbar-width: thin; gap: 0; }
  .acct-shell .acct-nav .mm-label { display: none; }
  .acct-shell .acct-nav-item { padding: var(--sp-1) var(--sp-2); font-size: var(--fs-body); }
  .acct-shell .acct-nav-item .mm-ic { width: 27px; height: 27px; border-radius: var(--radius-sm); }
  .acct-shell .acct-side-foot { margin-top: auto; padding-top: var(--sp-3); gap: var(--sp-1); flex-direction: row; flex-wrap: wrap; }
  .acct-shell .acct-side-foot .acct-nav-item { flex: 1 1 40%; }
  .acct-shell .acct-back { padding: var(--sp-2) var(--sp-3) 0; flex-basis: 100%; }
}
.acct-embed > .section, .acct-embed > .page { padding: 0; }
.acct-embed .breadcrumbs, .acct-embed .crumbs { display: none; }
.acct-embed .page-title { font-size: var(--fs-title); }
button.svc-card { font: inherit; text-align: left; cursor: pointer; width: 100%; }

/* ---------- Get Tracking Number page ---------- */
/* Header */
.gtn-head { margin-bottom: var(--sp-5); }
.gtn-eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-caption); font-weight: var(--fw-extrabold); letter-spacing: .16em;
  color: var(--purple-3); background: var(--purple-soft);
  border: 1px solid var(--accent2-a35); border-radius: var(--radius-pill); padding: var(--sp-1) var(--sp-3);
}
.gtn-eyebrow .ic { width: 13px; height: 13px; }
.gtn-title { margin-top: var(--sp-3); }
.gtn-grad {
  background: linear-gradient(92deg, var(--purple-2), var(--purple-3) 55%, var(--purple-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gtn-head .page-blurb { margin-bottom: var(--sp-3); }
.gtn-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); align-items: center; }
.gtn-help-link { background: none; border: none; padding: 0; color: var(--purple-3); font: inherit; font-size: var(--fs-small); font-weight: var(--fw-semibold); cursor: pointer; }
.gtn-help-link:hover { text-decoration: underline; }
.gtn-crosslink { color: var(--muted); font-size: var(--fs-small); }

/* Two-column layout: form left, rail right; stacks on mobile */
.gtn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: var(--sp-5); align-items: start; }
@media (max-width: 1024px) { .gtn-layout { grid-template-columns: minmax(0, 1fr); } }

/* Form card: glass surface with a gradient border and a soft glow */
.tool-panel.gtn-panel {
  max-width: none; padding: var(--sp-5); border-radius: var(--radius-dialog); position: relative;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(155deg, var(--accent2-a55), var(--line-soft) 42%, var(--accent-a28)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow), 0 0 90px var(--accent-a06);
}

/* Mode tabs: segmented pill bar, gradient active pill */
.gtn-tabs {
  display: flex; flex-wrap: nowrap; gap: var(--sp-1); justify-content: flex-start;
  background: var(--bg-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill); padding: var(--sp-1); margin-bottom: var(--sp-5);
}
.gtn-tabs .server-btn {
  flex: 1 1 0; justify-content: center; border: none; background: transparent;
  border-radius: var(--radius-pill); padding: var(--sp-3) var(--sp-2); font-size: var(--fs-small); color: var(--muted);
  transition: background var(--dur-micro), color var(--dur-micro), box-shadow var(--dur-micro);
}
.gtn-tabs .server-btn:hover { color: var(--text); }
.gtn-tabs .server-btn .ic { width: 15px; height: 15px; }
.gtn-tabs .server-btn.active {
  background: var(--gradient-primary); color: var(--white);
  border-color: transparent; box-shadow: 0 6px 18px var(--accent-a35);
}
@media (max-width: 640px) {
  .gtn-tabs { flex-wrap: wrap; border-radius: var(--radius-card); }
  .gtn-tabs .server-btn { flex: 1 1 40%; padding: var(--sp-3) var(--sp-2); }
}

/* Tab panels animate in on every switch (hidden toggling restarts it) */
.gtn-tabpage:not([hidden]) { animation: gtnPageIn var(--dur-med) var(--ease-out) both; }
@keyframes gtnPageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Fields: quiet uppercase labels, icon-led inputs, purple focus glow */
.gtn-panel .form-grid { gap: 0 var(--sp-4); }
.gtn-panel .form-grid label, .gtn-panel .gtn-coupon-label {
  font-size: var(--fs-caption); font-weight: var(--fw-bold); letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted-2); margin-top: var(--sp-4);
}
.gtn-coupon-label { display: block; margin-top: var(--sp-4); }
.gtn-field { position: relative; display: block; margin-top: var(--sp-2); }
.gtn-field .ic-wrap {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted-2); pointer-events: none; z-index: 1;
}
.gtn-field .ic { width: 16px; height: 16px; }
.gtn-field input, .gtn-field select {
  margin-top: 0; padding: var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-7); border-radius: var(--radius);
  font-size: var(--fs-body); font-weight: var(--fw-medium); text-transform: none; letter-spacing: normal;
  background: var(--bg-2);
}
.gtn-panel input:focus, .gtn-panel select:focus {
  border-color: var(--purple-2);
  box-shadow: 0 0 0 4px var(--purple-soft), 0 0 24px var(--accent-a10);
}

/* Advanced Options: pill toggle with a rotating chevron */
.gtn-adv-toggle {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--purple-soft); border: 1px solid var(--accent2-a28);
  border-radius: var(--radius-pill); padding: var(--sp-2) var(--sp-4); margin-top: var(--sp-4);
  color: var(--purple-3); font: inherit; font-size: var(--fs-small); font-weight: var(--fw-bold); cursor: pointer;
  transition: border-color var(--dur-micro), color var(--dur-micro), background var(--dur-micro);
}
.gtn-adv-toggle:hover { border-color: var(--purple-2); color: var(--text); }
.gtn-adv-toggle .ic-wrap { transition: transform var(--dur-med) ease; }
.gtn-adv-toggle .ic { width: 15px; height: 15px; }
.gtn-adv-toggle.open .ic-wrap { transform: rotate(180deg); }
.gtn-adv:not([hidden]) { animation: gtnAdvIn var(--dur-med) ease both; }
@keyframes gtnAdvIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.gtn-check {
  display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4);
  font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--muted); cursor: pointer;
}
.gtn-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--purple); }

/* Other mode: date-type segmented control */
.gtn-seg {
  display: inline-flex; gap: var(--sp-1); justify-content: flex-start;
  background: var(--bg-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill); padding: var(--sp-1); margin-bottom: var(--sp-1);
}
.gtn-seg .server-btn { border: none; background: transparent; border-radius: var(--radius-pill); padding: var(--sp-2) var(--sp-4); font-size: var(--fs-small); }
.gtn-seg .server-btn.active {
  background: var(--gradient-primary); color: var(--white);
  border-color: transparent; box-shadow: 0 4px 14px var(--accent-a35);
}
.gtn-seg-label { font-size: var(--fs-caption); font-weight: var(--fw-bold); letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); margin: var(--sp-4) 0 var(--sp-2); }
.gtn-note { margin-top: var(--sp-2); }

/* Price block and CTA at the foot of each mode */
.gtn-foot { margin-top: var(--sp-5); border-top: 1px solid var(--line-soft); padding-top: var(--sp-4); }
.gtn-price-block { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); }
.gtn-price-text { display: flex; flex-direction: column; gap: var(--sp-1); }
.gtn-price-label { font-size: var(--fs-caption); font-weight: var(--fw-bold); letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); }
.gtn-price-cap { font-size: var(--fs-micro); color: var(--muted); }
.gtn-price-value { font-size: var(--fs-page); font-weight: var(--fw-extrabold); letter-spacing: -.01em; line-height: var(--lh-display); white-space: nowrap; }
.gtn-price-value-na { font-size: var(--fs-h3); letter-spacing: 0; white-space: normal; text-align: right; }
.gtn-search-btn { width: 100%; margin-top: var(--sp-4); padding: var(--sp-4) var(--sp-5); font-size: var(--fs-body); border-radius: var(--radius); }
.gtn-search-btn .ic { width: 17px; height: 17px; }
.gtn-signin-note { margin-top: var(--sp-3); }

/* Consignment: numbered steps joined by a line */
.gtn-how { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-card); padding: var(--sp-4); }
.gtn-how h3 { font-size: var(--fs-body); font-weight: var(--fw-extrabold); margin-bottom: var(--sp-4); }
.gtn-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.gtn-steps li { position: relative; display: flex; gap: var(--sp-3); padding-bottom: var(--sp-4); }
.gtn-steps li:last-child { padding-bottom: 0; }
.gtn-steps li::before {
  content: ""; position: absolute; left: 13px; top: 31px; bottom: 1px; width: 2px;
  background: linear-gradient(var(--purple), transparent); opacity: .35;
}
.gtn-steps li:last-child::before { display: none; }
.gtn-step-num {
  width: 27px; height: 27px; border-radius: var(--radius-pill); flex: none; z-index: 1;
  background: var(--gradient-primary); color: var(--white);
  font-size: var(--fs-small); font-weight: var(--fw-extrabold); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px var(--accent-a35);
}
.gtn-steps p { color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-body); padding-top: var(--sp-1); }

/* Consignment: the issued code as a ticket */
.gtn-ticket {
  margin-top: var(--sp-4); padding: var(--sp-4); border-radius: var(--radius-card);
  border: 1.5px dashed var(--accent2-a45); background: var(--purple-soft);
  animation: gtnCardIn var(--dur-med) var(--ease-out) both;
}
.gtn-ticket .gtn-code { margin-top: var(--sp-3); }

/* Searching state: bouncing dots */
.gtn-searching { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-5) var(--sp-1) var(--sp-2); }
.gtn-dots { display: inline-flex; gap: var(--sp-1); }
.gtn-dots i { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--purple-2); animation: gtnDot 1.1s ease-in-out infinite; }
.gtn-dots i:nth-child(2) { animation-delay: .15s; }
.gtn-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes gtnDot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

/* Result cards: gradient ring, animated in with a stagger */
.gtn-card {
  position: relative; margin-top: var(--sp-4); padding: var(--sp-5); border-radius: var(--radius-dialog);
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    linear-gradient(150deg, var(--accent2-a55), var(--line-soft) 45%, var(--accent-a28)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 16px 40px var(--black-a35);
  animation: gtnCardIn var(--dur-med) var(--ease-out) both;
}
#gtnResults .gtn-card:nth-child(2) { animation-delay: .08s; }
#gtnResults .gtn-card:nth-child(3) { animation-delay: .16s; }
#gtnResults .gtn-card:nth-child(4) { animation-delay: .24s; }
#gtnResults .gtn-card:nth-child(n+5) { animation-delay: .32s; }
@keyframes gtnCardIn { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
.gtn-found { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sheet); font-weight: var(--fw-extrabold); margin-bottom: var(--sp-1); }
.gtn-found-ic {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: var(--radius-sm); background: var(--green-soft); color: var(--green);
}
.gtn-found-ic .ic { width: 17px; height: 17px; }

/* The hidden number: a monospace plate with a lock and a shimmer sweep */
.gtn-plate {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  gap: var(--sp-3); margin-top: var(--sp-4); padding: var(--sp-4) var(--sp-4);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.gtn-plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, var(--accent2-a12) 50%, transparent 70%);
  transform: translateX(-100%);
}
.gtn-plate-lock {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: var(--radius-sm); background: var(--purple-soft); color: var(--purple-3);
}
.gtn-plate-lock .ic { width: 15px; height: 15px; }
.gtn-blur-bar {
  font-family: var(--font-mono);
  font-size: var(--fs-h2); font-weight: var(--fw-bold); letter-spacing: .14em; white-space: nowrap;
  filter: blur(5px); user-select: none; -webkit-user-select: none;
}
.gtn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4) var(--sp-4); margin-top: var(--sp-4); }
.gtn-grid > div { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.gtn-grid-label {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: var(--muted-2); font-size: var(--fs-caption); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: .07em;
}
.gtn-grid-label .ic { width: 13px; height: 13px; }
.gtn-grid b { font-size: var(--fs-body); font-weight: var(--fw-semibold); overflow-wrap: anywhere; }
.gtn-grid b.blurred, .blurred { filter: blur(4px); user-select: none; -webkit-user-select: none; }
.gtn-card .btn { margin-top: var(--sp-4); }
.gtn-reveal-btn { width: 100%; padding: var(--sp-3) var(--sp-4); font-size: var(--fs-body); border-radius: var(--radius); }
.gtn-reveal-btn::before {
  content: ""; width: 15px; height: 15px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 1 1 6 0v3H9z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 1 1 6 0v3H9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Revealed number / shipping code plate */
.gtn-code {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: var(--sp-4); padding: var(--sp-4) var(--sp-4);
  background: var(--bg-2); border: 1px solid var(--accent2-a45); border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--fs-h2); font-weight: var(--fw-bold); letter-spacing: .04em; overflow-wrap: anywhere;
}
.gtn-code .copy-btn { margin-left: auto; font-family: var(--font); letter-spacing: normal; }

/* Right rail */
.gtn-rail { display: flex; flex-direction: column; gap: var(--sp-4); }
.gtn-rail-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-dialog); padding: var(--sp-5); }
.gtn-rail-title { font-size: var(--fs-h3); font-weight: var(--fw-extrabold); margin-bottom: var(--sp-4); }
.gtn-rail-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.gtn-rail-steps li { display: flex; gap: var(--sp-3); }
.gtn-rail-steps .how-num { margin-top: var(--sp-1); }
.gtn-rail-steps b { display: block; font-size: var(--fs-body); margin-bottom: var(--sp-1); }
.gtn-rail-steps p { color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-body); }
.gtn-assure { list-style: none; margin: var(--sp-4) 0 0; padding: var(--sp-4) 0 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: var(--sp-3); }
.gtn-assure li { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--muted); }
.gtn-assure .ic-wrap { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--purple-soft); color: var(--purple-3); flex: none; }
.gtn-assure .ic { width: 15px; height: 15px; }
.gtn-rail-track { background: linear-gradient(160deg, var(--purple-soft), transparent 65%), var(--surface); }
.gtn-rail-ic {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-btn); margin-bottom: var(--sp-3);
  background: var(--gradient-primary); color: var(--white);
  box-shadow: 0 8px 20px var(--accent-a35);
}
.gtn-rail-ic .ic { width: 21px; height: 21px; }
.gtn-rail-track .gtn-rail-title { margin-bottom: var(--sp-2); }
.gtn-rail-track p { color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-body); }
.gtn-rail-btn { margin-top: var(--sp-4); }
.gtn-rail-btn .ic { width: 15px; height: 15px; }

/* Help sheet mode list */
.gtn-mode-list p { margin-bottom: var(--sp-3); font-size: var(--fs-body); color: var(--muted); }
.gtn-mode-list b { color: var(--text); }

@media (max-width: 640px) {
  .tool-panel.gtn-panel { padding: var(--sp-4); border-radius: var(--radius-card); }
  .gtn-price-block { flex-wrap: wrap; row-gap: var(--sp-2); }
  .gtn-price-value { font-size: var(--fs-title); }
  .gtn-price-value-na { font-size: var(--fs-h3); }
  .gtn-blur-bar { font-size: var(--fs-h3); letter-spacing: .1em; }
  .gtn-code { font-size: var(--fs-h3); }
  .gtn-rail-card { padding: var(--sp-4); }
}

/* Order chat (manual delivery): claim element, chat zone, admin thread */
.claim-btn { position: relative; }
.chat-dot {
  position: absolute; top: -4px; right: -4px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--red); border: 2px solid var(--surface);
}
#buyBody .claim-btn { margin-bottom: var(--sp-3); }
.order-chat {
  margin-top: var(--sp-3); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: var(--surface-2, var(--surface)); padding: var(--sp-3);
}
.chat-thread { display: flex; flex-direction: column; gap: var(--sp-2); max-height: 320px; overflow-y: auto; padding: var(--sp-1); }
.chat-empty { font-size: var(--fs-small); }
.chat-msg { max-width: 82%; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius); }
.chat-msg p { margin: 0; font-size: var(--fs-small); line-height: var(--lh-body); overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-msg span { display: block; margin-top: var(--sp-1); font-size: var(--fs-caption); opacity: .75; }
.chat-msg.mine { align-self: flex-end; background: var(--gradient-primary); color: var(--white); border-bottom-right-radius: 4px; }
.chat-msg.theirs { align-self: flex-start; background: var(--surface-3); color: var(--text); border-bottom-left-radius: 4px; }
.chat-compose { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
.chat-compose .chat-input {
  flex: 1; min-width: 0; padding: var(--sp-3) var(--sp-3); border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft); background: var(--surface); color: var(--text); font-size: var(--fs-small);
}
.chat-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 var(--sp-1); margin-left: var(--sp-2); border-radius: var(--radius-pill);
  background: var(--red); color: var(--white); font-size: var(--fs-caption); font-weight: var(--fw-bold); vertical-align: 1px;
}
.adm-ord-wrap .adm-ord { border-top: 1px solid var(--line-soft); }
.adm-ords > .adm-ord-wrap:first-child .adm-ord { border-top: 0; }
.adm-ord-actions { display: flex; gap: var(--sp-2); padding: 0 var(--sp-1) var(--sp-3) var(--sp-7); flex-wrap: wrap; }
.adm-ord-panel { margin: 0 var(--sp-1) var(--sp-3) var(--sp-7); }
.adm-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--sp-2) var(--sp-4); margin: 0; }
.adm-details div { min-width: 0; }
.adm-details dt { font-size: var(--fs-caption); font-weight: var(--fw-bold); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.adm-details dd { margin: var(--sp-1) 0 0; font-size: var(--fs-small); overflow-wrap: anywhere; }
.adm-ord-panel .chat-thread { max-height: 300px; }
@media (max-width: 640px) {
  .adm-ord-actions { padding-left: var(--sp-1); }
  .adm-ord-panel { margin-left: var(--sp-1); }
  .chat-msg { max-width: 90%; }
}
