/* ==========================================================================
   Sony Bear — design system
   Taken from the shop's own logo: a crayon-drawn teddy bear in caramel and
   chocolate, pink hearts, little stars. Products are die-cut stickers.
   Light = warm paper. Dark = cocoa at night.
   ========================================================================== */

/* ---------- Tokens ---------- */
/* Baht sign only (tools/brand/make-baht.py): preloaded so prices never wait on a whole Thai or CJK subset */
@font-face { font-family: "Baht"; font-weight: 100 549; font-display: block; src: url(/assets/fonts/baht-400.woff2) format("woff2"); unicode-range: U+0E3F; }
@font-face { font-family: "Baht"; font-weight: 550 1000; font-display: block; src: url(/assets/fonts/baht-700.woff2) format("woff2"); unicode-range: U+0E3F; }
@font-face { font-family: "Baht Display"; font-weight: 100 1000; font-display: block; src: url(/assets/fonts/baht-display.woff2) format("woff2"); unicode-range: U+0E3F; }
:root {
  --bg: #fff8f1;
  --surface: #ffffff;
  --tint: #fbeee2;
  --tint-2: #f5e1cf;
  --ink: #3b2316;
  --ink-2: #6b4f3f;
  --ink-3: #9a7f6d;
  --line: rgba(59, 35, 22, .13);
  --line-2: rgba(59, 35, 22, .22);
  --brand: #8a5a3b;
  --caramel: #c98b5b;
  --honey: #ebb57f;
  --pink: #e4708a;
  --pink-ink: #b8435f;
  --pink-soft: #fde4ea;
  --ok: #2f8a57;
  --ok-soft: #dff3e6;
  --warn: #b7791f;
  --warn-soft: #fbefd5;
  --bad: #c33f3a;
  --bad-soft: #fbe2df;
  --cta: #3b2316;
  --cta-ink: #fff8f1;
  --sticker: #ffffff;
  --sticker-edge: #ffffff;
  --shadow-ink: 59, 35, 22;
  --scrim: rgba(43, 25, 15, .42);

  --f-display: "Fredoka", "Baht Display", "Mali", "ZCOOL KuaiLe", "M PLUS Rounded 1c", ui-rounded, system-ui, sans-serif;
  --f-body: "Nunito", "Baht", "IBM Plex Sans Thai Looped", "Noto Sans SC", "M PLUS Rounded 1c", ui-rounded, system-ui, sans-serif;

  --r-xs: 10px;
  --r-sm: 14px;
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --pill: 999px;

  --gut: clamp(16px, 4vw, 40px);
  --max: 1280px;
  --gap-section: clamp(88px, 12vw, 168px);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --lift: 0 1px 0 rgba(var(--shadow-ink), .04), 0 10px 24px -14px rgba(var(--shadow-ink), .35);
  --float: 0 18px 50px -18px rgba(var(--shadow-ink), .45), 0 2px 6px rgba(var(--shadow-ink), .08);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17100c; --surface: #211712; --tint: #2b1f18; --tint-2: #382920;
    --ink: #f8ebdd; --ink-2: #d2bba8; --ink-3: #a38b78;
    --line: rgba(248, 235, 221, .12); --line-2: rgba(248, 235, 221, .22);
    --brand: #dba67a; --caramel: #d99a68; --honey: #efc08f;
    --pink: #f390a6; --pink-ink: #f7a9ba; --pink-soft: #3b222a;
    --ok: #6fcf97; --ok-soft: #173325; --warn: #f0b85a; --warn-soft: #3a2b12; --bad: #f08a83; --bad-soft: #3d1c1a;
    --cta: #efc08f; --cta-ink: #2a1a10;
    --sticker: #fffaf4; --sticker-edge: #fffaf4;
    --shadow-ink: 0, 0, 0; --scrim: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17100c; --surface: #211712; --tint: #2b1f18; --tint-2: #382920;
  --ink: #f8ebdd; --ink-2: #d2bba8; --ink-3: #a38b78;
  --line: rgba(248, 235, 221, .12); --line-2: rgba(248, 235, 221, .22);
  --brand: #dba67a; --caramel: #d99a68; --honey: #efc08f;
  --pink: #f390a6; --pink-ink: #f7a9ba; --pink-soft: #3b222a;
  --ok: #6fcf97; --ok-soft: #173325; --warn: #f0b85a; --warn-soft: #3a2b12; --bad: #f08a83; --bad-soft: #3d1c1a;
  --cta: #efc08f; --cta-ink: #2a1a10;
  --sticker: #fffaf4; --sticker-edge: #fffaf4;
  --shadow-ink: 0, 0, 0; --scrim: rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* Thai, Chinese and Japanese get taller lines and their own faces first in the body stack. */
:root:lang(th) { --f-body: "Nunito", "Baht", "IBM Plex Sans Thai Looped", ui-rounded, system-ui, sans-serif; --lh: 1.7; }
:root:lang(zh) { --f-display: "Fredoka", "Baht Display", "ZCOOL KuaiLe", system-ui, sans-serif; --f-body: "Nunito", "Baht", "Noto Sans SC", system-ui, sans-serif; --lh: 1.75; }
:root:lang(ja) { --f-display: "Fredoka", "Baht Display", "M PLUS Rounded 1c", system-ui, sans-serif; --f-body: "Nunito", "Baht", "M PLUS Rounded 1c", system-ui, sans-serif; --lh: 1.75; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/var(--lh, 1.55) var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
  transition: background-color .3s ease, color .3s ease;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--cta); color: var(--cta-ink); padding: 10px 16px; border-radius: var(--pill); transition: top .2s var(--ease-out); }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.pos { color: var(--ok); }
.neg { color: var(--bad); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack { display: grid; gap: 16px; }
.grow { flex: 1; min-width: 0; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }
.display { font-family: var(--f-display); }
.link { color: var(--pink-ink); font-weight: 700; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ease-out); }
.link:hover { background-size: 100% 2px; }
.page { position: relative; z-index: 1; background: var(--bg); min-height: 100vh; }
main { display: block; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--cta); --bi: var(--cta-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: var(--pill);
  background: var(--b); color: var(--bi); font-weight: 800; font-size: 1rem; white-space: nowrap;
  transition: transform .16s var(--ease-out), background-color .2s ease, box-shadow .2s ease, opacity .2s;
  -webkit-tap-highlight-color: transparent; user-select: none; position: relative;
}
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: 0 8px 20px -10px rgba(var(--shadow-ink), .6); }
}
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-accent { --b: var(--pink); --bi: #fff; }
.btn-ghost { --b: transparent; --bi: var(--ink); box-shadow: inset 0 0 0 2px var(--line-2); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { --b: var(--tint); box-shadow: inset 0 0 0 2px var(--ink); } }
.btn-soft { --b: var(--tint); --bi: var(--ink); }
.btn-danger { --b: var(--bad-soft); --bi: var(--bad); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .9rem; gap: 6px; }
.btn-lg { min-height: 60px; padding: 0 34px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn .i { width: 18px; height: 18px; }
.btn.is-busy { color: transparent; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--bi); border-right-color: transparent; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink); transition: background-color .2s ease, transform .16s var(--ease-out);
}
.icon-btn:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--tint); } }
.dot-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--pink); color: #fff; font: 800 11px/18px var(--f-body); text-align: center; box-shadow: 0 0 0 2px var(--bg);
  animation: pop .4s var(--ease-spring);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* ---------- Badges & pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--pill);
  font-size: .78rem; font-weight: 800; background: var(--tint); color: var(--ink-2); white-space: nowrap;
}
.badge-paid, .badge-completed, .badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-pending, .badge-pending_payment, .badge-processing, .badge-open { background: var(--warn-soft); color: var(--warn); }
.badge-failed, .badge-cancelled, .badge-expired, .badge-refunded, .badge-void { background: var(--bad-soft); color: var(--bad); }
.badge-answered { background: var(--pink-soft); color: var(--pink-ink); }
.badge-closed, .badge-sold { background: var(--tint); color: var(--ink-3); }
.tag { position: absolute; top: 14px; left: 14px; z-index: 2; height: 26px; padding: 0 11px; border-radius: var(--pill); font: 800 .76rem/26px var(--f-body); background: var(--ink); color: var(--bg); }
.tag-sale { background: var(--pink); color: #fff; }
.tag-new { background: #4f8f6a; color: #fff; }
.tag-best { background: var(--honey); color: #3b2316; }
.tag-hot { background: var(--ink); color: var(--bg); }

/* ---------- Header ---------- */
.news { background: var(--ink); color: var(--bg); font-size: .9rem; font-weight: 700; text-align: center; }
.news .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 6px 0; }
.news svg { color: var(--honey); }
.top {
  position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent);
  transition: transform .35s var(--ease-out), background-color .3s ease, box-shadow .3s ease;
}
@supports (backdrop-filter: blur(1px)) { .top { backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); } }
.top.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.top.is-hidden { transform: translateY(-100%); }
.top-in { display: flex; align-items: center; gap: 10px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 46px; height: 45px; transition: transform .5s var(--ease-spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-word { font: 600 1.42rem/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.brand-word b { color: var(--caramel); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 14px; }
.nav > a, .nav > .menu > button {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: var(--pill);
  font-weight: 800; font-size: .96rem; color: var(--ink-2); white-space: nowrap; transition: background-color .2s ease, color .2s ease;
}
.nav > a:hover, .nav > .menu > button:hover, .nav > .menu > button[aria-expanded="true"] { background: var(--tint); color: var(--ink); }
.nav > a[aria-current="page"], .nav > .menu > button.is-current { color: var(--ink); background: var(--tint); }
.nav .i { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.nav button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.top-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }

/* Header search with live suggestions */
.search { position: relative; width: clamp(200px, 26vw, 360px); }
.search-box {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 16px; border-radius: var(--pill);
  background: var(--tint); transition: background-color .2s ease, box-shadow .2s ease;
}
.search-box:focus-within { background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pink) 18%, transparent), var(--lift); }
.search-box input:focus, .search-box input:focus-visible, .search-box input:hover { outline: none !important; box-shadow: none !important; border-radius: 0; }
.search-box input { flex: 1; min-width: 0; height: 100% !important; min-height: 0 !important; padding: 0 !important; border: 0; border-radius: 0; background: none !important; box-shadow: none !important; outline: none; font-weight: 700; }
.search-box input::placeholder { color: var(--ink-3); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box kbd { font: 800 .72rem/1 var(--f-body); color: var(--ink-3); border: 1.5px solid var(--line-2); border-radius: 7px; padding: 4px 7px; }
.search-box:focus-within kbd { display: none; }
.suggest {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 50; min-width: 320px;
  background: var(--surface); border-radius: var(--r); box-shadow: var(--float), 0 0 0 1px var(--line); padding: 8px;
  transform-origin: top center; opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
}
.suggest.is-open { opacity: 1; transform: none; pointer-events: auto; }
.suggest-h { padding: 8px 12px 6px; font-size: .8rem; font-weight: 800; color: var(--ink-3); }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); transition: background-color .15s ease; }
.suggest a[aria-selected="true"], .suggest a:hover { background: var(--tint); }
.suggest .s-name { font-weight: 800; line-height: 1.25; }
.suggest .s-meta { font-size: .82rem; color: var(--ink-2); }
.suggest .s-price { margin-left: auto; font-weight: 800; white-space: nowrap; font-size: .92rem; }
.suggest .s-all { justify-content: center; font-weight: 800; color: var(--pink-ink); margin-top: 4px; }
.suggest-empty { padding: 18px 14px; color: var(--ink-2); text-align: center; }
.suggest mark { background: var(--pink-soft); color: inherit; border-radius: 4px; padding: 0 2px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 8px 10px; }

.wallet-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 6px; border-radius: var(--pill);
  background: var(--tint); font-weight: 800; font-size: .92rem; white-space: nowrap; transition: background-color .2s ease, transform .16s var(--ease-out);
}
.wallet-pill:active { transform: scale(.97); }
.wallet-pill:hover { background: var(--tint-2); }
.wallet-pill .plus { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--honey); color: #3b2316; }
.wallet-pill .plus .i { width: 16px; height: 16px; stroke-width: 2.6; }
.avatar {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--av, var(--caramel)); color: #fff; font: 600 1.05rem/1 var(--f-display);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--av-ring, transparent); transition: box-shadow .2s ease, transform .16s var(--ease-out);
}
button[aria-expanded="true"] > .avatar, .avatar-btn:hover .avatar { --av-ring: var(--pink); }
.avatar-btn:active .avatar { transform: scale(.94); }
.avatar-lg { width: 64px; height: 64px; font-size: 1.6rem; }

/* ---------- Menus (dropdowns) ---------- */
.menu { position: relative; }
.menu-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 260px;
  background: var(--surface); border-radius: var(--r); padding: 8px; box-shadow: var(--float), 0 0 0 1px var(--line);
  transform-origin: var(--origin, top right); opacity: 0; transform: translateY(-4px) scale(.96); visibility: hidden;
  transition: opacity .18s var(--ease-out), transform .2s var(--ease-out), visibility 0s .2s;
}
.menu-panel.from-left { right: auto; left: 0; --origin: top left; }
.menu.is-open > .menu-panel { opacity: 1; transform: none; visibility: visible; transition: opacity .18s var(--ease-out), transform .22s var(--ease-out), visibility 0s; }
.menu-panel a, .menu-panel button.mi {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px; border-radius: var(--r-sm);
  font-weight: 700; text-align: left; color: var(--ink); transition: background-color .15s ease;
}
.menu-panel a:hover, .menu-panel a:focus-visible, .menu-panel button.mi:hover, .menu-panel button.mi:focus-visible { background: var(--tint); outline: none; }
.menu-panel a[aria-current="page"] { background: var(--tint); }
.menu-panel .i { color: var(--ink-2); }
.menu-panel .mi-end { margin-left: auto; font-size: .82rem; color: var(--ink-3); font-weight: 800; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 8px; }
.menu-head { display: flex; align-items: center; gap: 14px; padding: 12px; }
.menu-head b { display: block; font-size: 1.02rem; line-height: 1.25; }
.menu-head span { font-size: .84rem; color: var(--ink-2); word-break: break-all; }
.menu-wallet {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 4px 8px; padding: 14px 14px 14px 16px;
  border-radius: var(--r-sm); background: var(--tint);
}
.menu-wallet small { display: block; color: var(--ink-2); font-weight: 700; font-size: .78rem; }
.menu-wallet b { font: 600 1.35rem/1.1 var(--f-display); }

/* Mega menu: every category */
.mega { width: min(720px, calc(100vw - 2 * var(--gut))); padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.mega a { align-items: flex-start; padding: 12px; }
.mega a b { display: block; font-weight: 800; }
.mega a small { display: block; color: var(--ink-2); font-weight: 600; font-size: .84rem; line-height: 1.4; }
.mega .cat-ic { width: 44px; height: 44px; }
.mega-all { grid-column: 1 / -1; justify-content: center; align-items: center !important; gap: 10px; background: var(--tint); margin-top: 4px; }
.mega-all .i { width: 20px; height: 20px; flex: none; }

.notif-list { max-height: 380px; overflow: auto; overscroll-behavior: contain; }
.notif { display: flex !important; gap: 12px; align-items: flex-start !important; }
.notif .n-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); }
.notif.unread .n-ic { background: var(--pink-soft); color: var(--pink-ink); }
.notif p { margin: 0; font-weight: 700; font-size: .92rem; line-height: 1.4; }
.notif time { font-size: .78rem; color: var(--ink-3); font-weight: 700; }
.notif.unread p::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); margin-left: 8px; vertical-align: middle; }
.notif-empty { padding: 28px 16px; text-align: center; color: var(--ink-2); }
.notif-empty img { width: 72px; margin: 0 auto 10px; }

/* Language / currency / theme panel */
.prefs-panel { width: 340px; padding: 16px; }
.prefs-panel h3 { font: 800 .82rem/1 var(--f-body); color: var(--ink-3); margin: 6px 4px 10px; letter-spacing: 0; }
.pref { display: block; border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.pref:last-child { margin-bottom: 0; }
.pref legend, .pref-h { display: flex; align-items: center; gap: 6px; padding: 0; margin-bottom: 8px; font-weight: 800; font-size: .8rem; color: var(--ink-3); letter-spacing: .01em; }
.pref legend .i, .pref-h .i { width: 15px; height: 15px; }
.pref .sel { display: block; width: 100%; }
.seg { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: var(--r-sm); background: var(--tint); position: relative; }
.seg label { position: relative; z-index: 1; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; white-space: nowrap; padding: 4px 6px; border-radius: 10px; font-weight: 800; font-size: .86rem; text-align: center; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.seg input:checked + span { background: var(--surface); box-shadow: var(--lift); color: var(--ink); }
.seg input:not(:checked) + span { color: var(--ink-2); }
.seg input:focus-visible + span { outline: 3px solid var(--pink); }
.seg .i { width: 17px; height: 17px; flex: none; }
.seg-ic span { flex-direction: column; gap: 3px; min-height: 58px; font-size: .8rem; }
.seg-ic .i { width: 20px; height: 20px; }

/* ---------- Custom select (progressive: native select stays for forms) ---------- */
.sel { position: relative; display: inline-block; min-width: 180px; }
.sel-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px 0 16px; border-radius: var(--r-sm);
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 700; text-align: left;
  transition: box-shadow .2s ease, background-color .2s ease;
}
.sel-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.sel-btn[aria-expanded="true"], .sel-btn:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); outline: none; }
.sel-btn .sel-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-btn .i { color: var(--ink-2); transition: transform .25s var(--ease-out); }
.sel-btn[aria-expanded="true"] .i:not(.sel-ic) { transform: rotate(180deg); }
.sel-list {
  position: absolute; z-index: 70; left: 0; top: calc(100% + 8px); min-width: 100%; max-height: min(340px, 50vh); overflow: auto; overscroll-behavior: contain;
  padding: 6px; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--float), 0 0 0 1px var(--line);
  transform-origin: top center; opacity: 0; transform: translateY(-4px) scale(.97); visibility: hidden;
  transition: opacity .16s var(--ease-out), transform .18s var(--ease-out), visibility 0s .18s;
}
.sel-list.up { top: auto; bottom: calc(100% + 8px); transform-origin: bottom center; }
.sel.is-open .sel-list { opacity: 1; transform: none; visibility: visible; transition: opacity .16s var(--ease-out), transform .2s var(--ease-out), visibility 0s; }
.sel-filter { position: sticky; top: -6px; margin: -6px -6px 6px; padding: 8px; background: var(--surface); z-index: 1; }
.sel-filter input { width: 100%; height: 40px; border-radius: 10px; border: 0; background: var(--tint); padding: 0 12px; outline: none; font-weight: 700; }
.sel-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.sel-opt[aria-selected="true"] { color: var(--pink-ink); }
.sel-opt[aria-selected="true"]::after { content: ""; margin-left: auto; width: 16px; height: 9px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-3px) rotate(-45deg); }
.sel-opt.is-active { background: var(--tint); }
.sel-opt small { color: var(--ink-3); font-weight: 700; }
.sel-none { padding: 14px; color: var(--ink-3); text-align: center; font-weight: 700; }
.sel select { position: absolute; inset: 0; opacity: 0; pointer-events: none; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; align-content: start; }
.field > span, .label { font-weight: 800; font-size: .92rem; }
.field small, .hint { color: var(--ink-2); font-size: .84rem; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
textarea, select {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-sm); border: 0;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink); font-weight: 600;
  transition: box-shadow .2s ease, background-color .2s ease; -webkit-appearance: none; appearance: none;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%239a7f6d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
input:hover, textarea:hover, select:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3) !important; }
input:focus, textarea:focus, select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink) !important; }
input[aria-invalid="true"], .field.is-bad input { box-shadow: inset 0 0 0 2px var(--bad) !important; }
input::placeholder, textarea::placeholder { color: var(--ink-3); font-weight: 500; }
input[type="color"] { width: 64px; height: 50px; padding: 4px; border-radius: var(--r-sm); border: 0; background: var(--tint); }
input[type="file"] { font-size: .9rem; }
input[type="file"]::file-selector-button { margin-right: 12px; border: 0; border-radius: var(--pill); padding: 10px 16px; background: var(--tint); font-weight: 800; color: var(--ink); cursor: pointer; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 600; line-height: 1.45; }
.check input, .radio-dot {
  -webkit-appearance: none; appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 7px;
  box-shadow: inset 0 0 0 2px var(--line-2); background: var(--surface); display: grid; place-items: center; cursor: pointer;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(.4); opacity: 0; transition: transform .22s var(--ease-spring), opacity .15s; }
.check input:checked { background: var(--pink); box-shadow: none; }
.check input:checked::after { opacity: 1; transform: translateY(-1px) rotate(-45deg) scale(1); }
.switch { position: relative; flex: none; width: 46px; height: 28px; -webkit-appearance: none; appearance: none; border-radius: 14px; background: var(--tint-2); cursor: pointer; transition: background-color .2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease-out); }
.switch:checked { background: var(--pink); }
.switch:checked::after { transform: translateX(18px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 56px; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.pw-meter { height: 6px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .3s var(--ease-out), background-color .3s; }
.qty { display: inline-flex; align-items: center; border-radius: var(--pill); background: var(--tint); padding: 4px; }
.qty button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; transition: background-color .15s ease, transform .12s var(--ease-out); }
.qty button:hover { background: var(--surface); }
.qty button:active { transform: scale(.88); }
.qty input { width: 52px !important; min-height: 40px !important; padding: 0 !important; text-align: center; background: none !important; box-shadow: none !important; font-weight: 800; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Choice cards (payment methods, options) */
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; transition: box-shadow .2s ease, background-color .2s ease, transform .16s var(--ease-out); }
.choice:active { transform: scale(.985); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .radio { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); display: grid; place-items: center; transition: box-shadow .2s ease; }
.choice .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); transform: scale(0.3); opacity: 0; transition: transform .25s var(--ease-spring), opacity .15s; }
.choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: color-mix(in srgb, var(--tint) 45%, var(--surface)); }
.choice:has(input:checked) .radio { box-shadow: inset 0 0 0 2px var(--pink); }
.choice:has(input:checked) .radio::after { transform: none; opacity: 1; }
.choice:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 2px; }
.choice:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.choice b { display: block; font-weight: 800; }
.choice small { display: block; color: var(--ink-2); font-size: .84rem; font-weight: 600; }
.choice .end { margin-left: auto; text-align: right; font-weight: 800; white-space: nowrap; }
.pm-logos { display: flex; gap: 4px; margin-left: auto; }
.pm-logos span { display: grid; place-items: center; height: 24px; min-width: 36px; padding: 0 5px; border-radius: 5px; background: var(--tint); font: 900 .62rem/1 var(--f-body); color: var(--ink-2); letter-spacing: .02em; }

/* ---------- Sections ---------- */
.section { margin-top: var(--gap-section); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.h-section { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.h-sub { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--ink-2); max-width: 54ch; }
.section-head .lead { margin: 12px 0 0; }

/* ---------- Doodles (hand-drawn, like the logo) ---------- */
.doodle { position: absolute; pointer-events: none; color: var(--pink); fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.doodle.brown { color: var(--brand); }
.doodle.honey { color: var(--honey); }
.doodle-fill { fill: currentColor; stroke: none; }
html.js[data-fx="high"] .doodle.wiggle { animation: wiggle 5s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.08); } }
.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .42em; color: var(--pink); fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; overflow: visible; }
html.js .scribble svg path { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1s .9s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Stickers (product logos) ---------- */
.sticker {
  --s: 72px; position: relative; display: grid; place-items: center; width: var(--s); height: var(--s); flex: none;
  border-radius: 26%; background: var(--sticker); box-shadow: 0 0 0 calc(var(--s) * .055) var(--sticker-edge), 0 calc(var(--s) * .06) calc(var(--s) * .16) -2px rgba(var(--shadow-ink), .28);
  overflow: hidden;
}
.sticker img { width: 70%; height: 70%; object-fit: contain; }
.sticker.wide img { width: 84%; }
.sticker .mono { font: 600 calc(var(--s) * .36)/1 var(--f-display); color: #fff; letter-spacing: -.02em; }
.sticker.is-mono { background: var(--c, var(--caramel)); }
.sticker-sm { --s: 44px; }
.sticker-md { --s: 56px; }
.sticker-lg { --s: 132px; }
.sticker-xl { --s: clamp(150px, 20vw, 220px); }

/* Category icon tile */
.cat-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--c, var(--caramel)) 22%, var(--surface)); color: color-mix(in srgb, var(--c, var(--caramel)) 70%, var(--ink)); flex: none; }
.cat-ic img { width: 64%; height: 64%; object-fit: contain; }
.cat-ic .i { width: 26px; height: 26px; stroke-width: 2; }
.cat-ic.xs { width: 30px; height: 30px; border-radius: 10px; }
.cat-ic.xs .i { width: 16px; height: 16px; }
.board-wrap > .doodle { width: 42px; right: -18px; top: 26%; z-index: 4; }
.board > .doodle { width: 44px; left: -12px; bottom: -14px; z-index: 4; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.6rem); line-height: .98; letter-spacing: -.03em; font-weight: 600; }
.hero h1 .line { display: block; overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; }
html.js .hero h1 .line > span { transform: translateY(105%); animation: rise .9s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
@keyframes rise { to { transform: none; } }
.hero-sub { margin: 26px 0 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 46ch; }
.hero-search { margin-top: 32px; max-width: 560px; position: relative; }
.hero-search .search-box { height: 64px; padding: 0 8px 0 22px; background: var(--surface); box-shadow: 0 0 0 2px var(--ink), 0 14px 32px -18px rgba(var(--shadow-ink), .6); }
.hero-search .search-box:focus-within { box-shadow: 0 0 0 2px var(--ink), 0 0 0 7px color-mix(in srgb, var(--pink) 20%, transparent), 0 14px 32px -18px rgba(var(--shadow-ink), .6); }
.hero-search .search-box input { font-size: 1.08rem; }
.hero-search .btn { min-height: 48px; }
.hero-search .suggest { top: calc(100% + 12px); }
.hero-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.hero-pop > span { font-weight: 800; color: var(--ink-3); font-size: .9rem; margin-right: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: var(--pill);
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 800; font-size: .9rem;
  transition: box-shadow .2s ease, transform .16s var(--ease-out), background-color .2s ease;
}
.chip:not(:has(.sticker)) { padding: 0 14px; }
.chip .sticker { --s: 28px; box-shadow: none; border-radius: 50%; }
.chip:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.chip:active { transform: scale(.96); }
.chip[aria-current="page"], .chip.is-on { background: var(--ink); color: var(--bg); box-shadow: none; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .i { color: var(--pink); }

/* The sticker board, with the bear peeking over its top edge */
.board-wrap { --bw: clamp(150px, 15vw, 196px); position: relative; padding-top: calc(var(--bw) * .97 - 34px); }
.bear-peek {
  position: absolute; z-index: 4; top: 0; left: 50%; width: var(--bw); transform: translateX(-50%);
  transform-origin: 50% 100%; transition: transform .6s var(--ease-spring);
}
.bear-peek img { width: 100%; filter: drop-shadow(0 6px 8px rgba(var(--shadow-ink), .12)); }
html.js .bear-peek { animation: peek .9s 1.1s var(--ease-spring) both; }
@keyframes peek { from { transform: translateX(-50%) translateY(60%) rotate(-6deg); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
.board {
  position: relative; z-index: 3; border-radius: var(--r-xl); background: var(--tint);
  padding: clamp(20px, 2.6vw, 32px) clamp(16px, 2.4vw, 28px);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--brand) 22%, transparent) 1.4px, transparent 0);
  background-size: 22px 22px;
}
.board-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px) clamp(12px, 2vw, 24px); }
.board-item { position: relative; display: grid; justify-items: center; gap: 10px; padding: 8px 4px; touch-action: none; cursor: grab; user-select: none; -webkit-user-drag: none; }
.board-item:active { cursor: grabbing; }
.board-item .sticker { --s: clamp(64px, 6.2vw, 92px); transform: rotate(var(--r, 0deg)); transition: transform .45s var(--ease-spring), box-shadow .3s ease; }
.board-item img { pointer-events: none; -webkit-user-drag: none; }
.board-item .b-name { font-weight: 800; font-size: .88rem; text-align: center; line-height: 1.2; }
.board-item .b-price { font-size: .8rem; font-weight: 800; color: var(--pink-ink); }
@media (hover: hover) and (pointer: fine) {
  .board-item:hover .sticker { transform: rotate(0deg) translateY(-6px) scale(1.06); box-shadow: 0 0 0 calc(var(--s) * .055) var(--sticker-edge), 0 18px 28px -10px rgba(var(--shadow-ink), .4); }
}
.board-item.is-drag { z-index: 5; transition: none; }
.board-item.is-drag .sticker { transform: rotate(0deg) scale(1.1); box-shadow: 0 0 0 calc(var(--s) * .055) var(--sticker-edge), 0 26px 40px -12px rgba(var(--shadow-ink), .5); }
html.js .board-item { animation: stick .7s var(--ease-spring) both; animation-delay: calc(var(--i) * 60ms + 450ms); }
@keyframes stick { from { opacity: 0; transform: translateY(18px) scale(.7) rotate(-10deg); } }
html.js[data-fx="high"] .board-item:nth-child(3n+1) .sticker { animation: bob 6s ease-in-out infinite; }
html.js[data-fx="high"] .board-item:nth-child(3n+2) .sticker { animation: bob 7s -2s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -5px; } }
.board-note { margin: 18px 0 0; text-align: center; font-size: .86rem; color: var(--ink-3); font-weight: 700; }

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cat-tile {
  --c: var(--caramel); position: relative; display: grid; align-content: space-between; gap: 34px; min-height: 196px; padding: 20px;
  border-radius: var(--r-lg); background: color-mix(in srgb, var(--c) 20%, var(--surface)); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease-out), background-color .3s ease;
}
.cat-tile::after { content: ""; position: absolute; z-index: -1; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: color-mix(in srgb, var(--c) 30%, var(--surface)); transition: transform .5s var(--ease-out); }
.cat-tile:hover { transform: translateY(-4px); }
.cat-tile:hover::after { transform: scale(1.35); }
.cat-tile:active { transform: scale(.98); }
.cat-tile .cat-ic { width: 58px; height: 58px; background: var(--surface); }
:root[data-theme="dark"] .cat-tile { background: color-mix(in srgb, var(--c) 34%, var(--surface)); }
:root[data-theme="dark"] .cat-tile::after { background: color-mix(in srgb, var(--c) 48%, var(--surface)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cat-tile { background: color-mix(in srgb, var(--c) 34%, var(--surface)); }
  :root:not([data-theme="light"]) .cat-tile::after { background: color-mix(in srgb, var(--c) 48%, var(--surface)); }
}
.cat-tile h3 { font-size: 1.3rem; }
.cat-tile p { margin: 4px 0 0; font-size: .86rem; font-weight: 700; color: var(--ink-2); }

/* ---------- Product cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.card {
  --c: var(--caramel); position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface);
  box-shadow: 0 0 0 1px var(--line); transition: transform .35s var(--ease-out), box-shadow .35s ease; isolation: isolate;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), var(--float); }
  .card:hover .card-stage .sticker { transform: rotate(-4deg) scale(1.07); }
  .card:hover .card-stage::before { transform: scale(1.08); }
}
.card:active { transform: scale(.985); }
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-link:focus-visible { outline-offset: 4px; }
.card-stage { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; margin: 8px 8px 0; border-radius: calc(var(--r-lg) - 6px); background: color-mix(in srgb, var(--c) 16%, var(--tint)); overflow: hidden; }
.card-stage::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--c) 22%, var(--tint)); transition: transform .6s var(--ease-out); }
.card-stage img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-stage .sticker { --s: clamp(78px, 8vw, 96px); transform: rotate(-2deg); transition: transform .5s var(--ease-spring); }
.card-body { display: grid; gap: 4px; padding: 16px 18px 18px; flex: 1; align-content: start; }
.card-cat { font-size: .8rem; font-weight: 800; color: var(--ink-3); }
.card h3 { font: 600 1.18rem/1.2 var(--f-display); letter-spacing: -.005em; }
.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: .82rem; font-weight: 800; color: var(--ink-2); }
.card-meta .i { width: 15px; height: 15px; }
.card-meta .ok { color: var(--ok); }
.card-meta .warn { color: var(--warn); }
.card-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.card-price b { font: 600 1.3rem/1 var(--f-display); }
.card-price small { font-weight: 800; color: var(--ink-3); font-size: .8rem; }
.card-price s { color: var(--ink-3); font-weight: 700; font-size: .9rem; }
.card.is-out .card-stage { filter: grayscale(.7); opacity: .7; }
.fav {
  position: absolute; z-index: 2; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--ink-2); box-shadow: var(--lift); transition: transform .2s var(--ease-out), color .2s ease;
}
.fav:hover { color: var(--pink); }
.fav:active { transform: scale(.85); }
.fav .i { width: 20px; height: 20px; transition: transform .35s var(--ease-spring); }
.fav[aria-pressed="true"] { color: var(--pink); }
.fav[aria-pressed="true"] .i { fill: currentColor; animation: heart .45s var(--ease-spring); }
@keyframes heart { 30% { transform: scale(.7); } 70% { transform: scale(1.25); } }
.burst { position: fixed; z-index: 90; pointer-events: none; width: 10px; height: 10px; color: var(--pink); }
.burst i { position: absolute; width: 10px; height: 10px; }
.burst svg { width: 100%; height: 100%; fill: currentColor; }

/* Horizontal drag rows */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.rail.is-dragging * { pointer-events: none; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line-2); transition: background-color .2s ease, box-shadow .2s ease, transform .16s var(--ease-out), opacity .2s; }
.rail-nav button:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.rail-nav button:active { transform: scale(.92); }
.rail-nav button:disabled { opacity: .35; pointer-events: none; }

/* ---------- Sale band ---------- */
.band { position: relative; border-radius: var(--r-xl); background: var(--pink-soft); padding: clamp(28px, 5vw, 64px); overflow: hidden; }
.band .h-section { color: var(--pink-ink); }
:root[data-theme="dark"] .band .h-section { color: var(--pink); }
.band .card { box-shadow: none; }
.band > .doodle { right: 30%; top: 9%; width: 64px; }

/* ---------- Brand marquee ---------- */
.marquee { overflow: hidden; padding: 28px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 18px; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee a { display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 22px 0 10px; border-radius: var(--pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 800; white-space: nowrap; transition: transform .25s var(--ease-out); }
.marquee a:hover { transform: translateY(-3px); }
.marquee .sticker { --s: 44px; box-shadow: none; border-radius: 50%; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }

/* ---------- Wallet section ---------- */
.wallet-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.wallet-sec .h-section { max-width: 15ch; }
.wcard {
  position: relative; aspect-ratio: 1.6; border-radius: 32px; padding: clamp(22px, 3vw, 34px); color: #fff8f1; overflow: hidden; isolation: isolate;
  background: #8a5a3b; box-shadow: 0 30px 60px -30px rgba(59, 35, 22, .7);
  display: grid; align-content: space-between; transform: rotate(-3deg); transition: transform .6s var(--ease-spring);
}
@media (hover: hover) { .wcard:hover { transform: rotate(0deg) scale(1.02); } } /* touch would leave it stuck in hover after a tap */
.wcard::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: #a3704c; }
.wcard::after { content: ""; position: absolute; z-index: -1; left: -15%; bottom: -55%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: #774b2f; }
.wcard .wc-top { display: flex; justify-content: space-between; align-items: center; }
.wcard .wc-top img { width: 64px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); }
.wcard .wc-chip { width: 48px; height: 36px; border-radius: 8px; background: #ebb57f; box-shadow: inset 0 0 0 2px #d39a62; }
.wcard small { display: block; opacity: .8; font-weight: 700; }
.wcard .wc-amt { font: 600 clamp(2rem, 4vw, 3rem)/1 var(--f-display); }
.wcard .wc-bonus { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--pill); background: #e4708a; font-weight: 800; font-size: .86rem; margin-top: 10px; transition: transform .3s var(--ease-spring); }
.wcalc { margin-top: 30px; }
.wcalc .amounts { margin-bottom: 18px; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.compare > div { padding: 18px; border-radius: var(--r); background: var(--tint); }
.compare > div.win { background: var(--ok-soft); }
.compare b { display: block; font: 600 1.6rem/1.1 var(--f-display); margin-top: 6px; }
.compare small { font-weight: 800; color: var(--ink-2); }
.compare .win small { color: var(--ok); }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.amounts button {
  position: relative; min-width: 92px; min-height: 52px; padding: 6px 16px; border-radius: var(--r-sm); background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 800; display: grid; place-items: center; line-height: 1.15;
  transition: box-shadow .2s ease, background-color .2s ease, transform .16s var(--ease-out);
}
.amounts button small { font-size: .72rem; color: var(--ok); font-weight: 800; }
.amounts button:hover { box-shadow: inset 0 0 0 2px var(--ink-3); }
.amounts button:active { transform: scale(.96); }
.amounts button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); background: color-mix(in srgb, var(--tint) 55%, var(--surface)); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; list-style: none; }
.step { position: relative; border-radius: var(--r-lg); background: var(--tint); padding: 26px; display: flex; flex-direction: column; gap: 22px; }
.step .ui { margin-top: auto; }
.step h3 { font-size: 1.5rem; }
.step p { margin: 8px 0 0; color: var(--ink-2); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 1.2rem/1 var(--f-display); }
.ui { border-radius: var(--r); background: var(--surface); padding: 16px; box-shadow: var(--lift); display: grid; gap: 10px; font-size: .9rem; }
.ui-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ui-opts span { display: grid; place-items: center; height: 54px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 800; font-size: .82rem; line-height: 1.2; text-align: center; }
.ui-opts span.on { box-shadow: inset 0 0 0 2px var(--ink); background: var(--tint); }
.ui-opts small { display: block; color: var(--pink-ink); }
.ui-pay { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 800; }
.ui-pay.on { box-shadow: inset 0 0 0 2px var(--ink); }
.ui-pay .end { margin-left: auto; color: var(--ok); font-size: .8rem; }
.ui-code { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--tint); font: 700 .95rem/1.2 var(--f-body); letter-spacing: .04em; }
.ui-code button { margin-left: auto; height: 32px; padding: 0 12px; border-radius: var(--pill); background: var(--ink); color: var(--bg); font-weight: 800; font-size: .8rem; letter-spacing: 0; transition: transform .16s var(--ease-out); }
.ui-code button:active { transform: scale(.94); }
.ui-ok { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 800; }

/* ---------- Trust & stats ---------- */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.trust > div { padding: 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.trust .i { width: 30px; height: 30px; color: var(--pink); stroke-width: 1.8; }
.trust h3 { font-size: 1.2rem; margin: 18px 0 6px; }
.trust p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 5vw, 72px); margin-top: 40px; }
.stats b { display: block; font: 600 clamp(2.6rem, 5vw, 4rem)/1 var(--f-display); letter-spacing: -.02em; }
.stats span { font-weight: 800; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-side img { width: 150px; margin-top: 28px; }
.faq details { border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); margin-bottom: 10px; transition: background-color .25s ease; }
.faq details[open] { background: var(--tint); box-shadow: none; }
.faq summary { display: flex; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 800; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; flex: none; width: 30px; height: 30px; margin-left: auto; border-radius: 50%; background: var(--tint); transition: background-color .25s ease, transform .35s var(--ease-out); }
.faq details[open] summary .pm { background: var(--ink); transform: rotate(45deg); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .pm::before, .faq details[open] summary .pm::after { background: var(--bg); }
.faq .ans { padding: 0 22px 22px; color: var(--ink-2); max-width: 64ch; }
.faq .ans p:last-child { margin: 0; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- Catalogue page ---------- */
.shop-head { position: relative; padding: clamp(28px, 4vw, 56px) 0 0; }
.shop-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.shop-head .lead { margin-top: 14px; }
.shop-head-cat { display: flex; align-items: center; gap: 22px; }
.shop-head-cat .cat-ic { width: 84px; height: 84px; border-radius: 26px; }
.shop-head-cat .cat-ic .i { width: 40px; height: 40px; }
.cat-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 26px 2px 6px; margin: 0 -2px; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip .chip { flex: none; height: 44px; }
.cat-strip .chip .cat-ic { width: 32px; height: 32px; border-radius: 50%; }
.cat-strip .chip .cat-ic .i { width: 17px; height: 17px; }
.cat-strip .chip[aria-current="page"] .cat-ic { background: var(--surface); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 20px 0 28px; padding: 10px 0; }
.toolbar .count { font-weight: 800; color: var(--ink-2); }
.toolbar form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filters { display: flex; gap: 6px; }
.filters a { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--pill); font-weight: 800; font-size: .88rem; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.filters a:hover { box-shadow: inset 0 0 0 2px var(--ink-3); }
.filters a[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.filters .i { width: 16px; height: 16px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: clamp(40px, 8vw, 90px) 20px; border-radius: var(--r-xl); background: var(--tint); }
.empty img { width: 140px; }
.empty h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.empty p { color: var(--ink-2); max-width: 46ch; margin: 0; }
.empty .row { justify-content: center; margin-top: 8px; }

/* ---------- Product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 22px 0 0; font-size: .9rem; font-weight: 700; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: 22px; }
.stage {
  --c: var(--caramel); position: relative; display: grid; place-items: center; aspect-ratio: 16 / 11; border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--c) 20%, var(--tint)); overflow: hidden; isolation: isolate; view-transition-name: stage;
}
.stage::before { content: ""; position: absolute; z-index: -1; width: 64%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--c) 28%, var(--tint)); }
.stage img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.stage .sticker { --s: clamp(150px, 19vw, 230px); transform: rotate(-4deg); transition: transform .6s var(--ease-spring); view-transition-name: sticker; }
.stage:hover .sticker { transform: rotate(2deg) scale(1.04); }
.stage .doodle { width: 54px; }
.stage .d1 { top: 14%; left: 14%; }
.stage .d2 { bottom: 16%; right: 15%; width: 40px; }
.stage .d3 { top: 18%; right: 20%; width: 34px; }
.stage .fav { top: 20px; right: 20px; width: 48px; height: 48px; }
.stage .tag { top: 22px; left: 22px; height: 30px; line-height: 30px; font-size: .84rem; padding: 0 14px; }
.pdp-info { margin-top: 36px; }
.pdp-info h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 18px; }
.pdp-block + .pdp-block { margin-top: 48px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.facts > div { padding: 16px 18px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.facts dt { font-size: .82rem; font-weight: 800; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-weight: 800; word-break: break-word; }
.howto { list-style: none; counter-reset: h; display: grid; gap: 12px; }
.howto li { counter-increment: h; position: relative; padding: 16px 18px 16px 64px; border-radius: var(--r); background: var(--tint); font-weight: 600; }
.howto li::before { content: counter(h); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); font: 600 1rem/1 var(--f-display); }
.desc { color: var(--ink-2); font-size: 1.05rem; max-width: 66ch; }

.buybox { position: sticky; top: 96px; border-radius: var(--r-xl); background: var(--surface); padding: clamp(22px, 2.6vw, 32px); box-shadow: 0 0 0 1px var(--line), var(--lift); }
.buybox h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.04; }
.buy-cat { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .88rem; color: var(--ink-2); margin-bottom: 10px; }
.buy-cat:hover { color: var(--ink); }
.rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .92rem; }
.stars { display: inline-flex; gap: 2px; color: var(--honey); }
.stars .i { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.stars .i.off { color: var(--tint-2); }
.buy-sub { margin: 10px 0 0; color: var(--ink-2); }
.buy-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.opt {
  position: relative; display: grid; gap: 2px; align-content: center; min-height: 76px; padding: 10px 12px; border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .2s ease, background-color .2s ease, transform .16s var(--ease-out);
}
.opt:hover { box-shadow: inset 0 0 0 2px var(--ink-3); }
.opt:active { transform: scale(.97); }
.opt[aria-current="true"] { box-shadow: inset 0 0 0 2.5px var(--ink); background: color-mix(in srgb, var(--tint) 55%, var(--surface)); }
.opt b { font-weight: 800; line-height: 1.2; }
.opt span { font-weight: 800; font-size: .9rem; }
.opt small { font-size: .74rem; font-weight: 800; color: var(--ink-3); }
.opt .save { color: var(--ok); }
.opt.is-out { opacity: .55; }
.opt .opt-tag { position: absolute; top: -9px; right: 8px; height: 20px; padding: 0 8px; border-radius: var(--pill); background: var(--honey); color: #3b2316; font-size: .68rem; font-weight: 900; line-height: 20px; }
.price-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-big b { font: 600 clamp(2.2rem, 3.6vw, 2.8rem)/1 var(--f-display); letter-spacing: -.02em; }
.price-big s { color: var(--ink-3); font-weight: 700; }
.price-big .off { display: inline-flex; height: 26px; align-items: center; padding: 0 10px; border-radius: var(--pill); background: var(--pink-soft); color: var(--pink-ink); font-weight: 900; font-size: .82rem; }
.buy-sec { margin-top: 24px; }
.buy-sec > .label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.stock-line { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .92rem; }
.stock-line::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.stock-line.low::before { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.stock-line.out::before { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
html.js[data-fx="high"] .stock-line:not(.out)::before { animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 7px transparent; } }
.summary { display: grid; gap: 10px; padding: 18px; border-radius: var(--r); background: var(--tint); }
.summary > div { display: flex; justify-content: space-between; gap: 16px; font-weight: 700; }
.summary > div > span:first-child { color: var(--ink-2); }
.summary .total { padding-top: 10px; border-top: 1.5px dashed var(--line-2); font-size: 1.12rem; font-weight: 900; }
.summary .total > span:first-child { color: var(--ink); }
.assure { display: grid; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.assure div { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 700; color: var(--ink-2); }
.assure .i { color: var(--ok); width: 19px; height: 19px; margin-top: 1px; }
.share-row { display: flex; gap: 8px; margin-top: 16px; }
.terms-note { font-size: .82rem; color: var(--ink-3); margin: 4px 0 0; }

.reviews { display: grid; gap: 12px; }
.review { padding: 18px 20px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.review header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 800; }
.review header time { margin-left: auto; color: var(--ink-3); font-size: .84rem; }
.review p { margin: 8px 0 0; color: var(--ink-2); }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: .8rem; font-weight: 800; }
.verified .i { width: 15px; height: 15px; }
.review-sum { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: var(--r); background: var(--tint); margin-bottom: 12px; }
.review-sum b { font: 600 3rem/1 var(--f-display); }

/* Star input */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; border: 0; padding: 0; margin: 0; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { cursor: pointer; color: var(--tint-2); transition: color .15s ease, transform .2s var(--ease-spring); }
.star-input label .i { width: 34px; height: 34px; fill: currentColor; stroke: none; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--honey); }
.star-input label:active { transform: scale(.85); }
.star-input input:focus-visible + label { outline: 3px solid var(--pink); border-radius: 8px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 95; top: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 10px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px; border-radius: var(--r);
  background: var(--ink); color: var(--bg); box-shadow: var(--float); font-weight: 700; pointer-events: auto; overflow: hidden;
  transition: transform .4s var(--ease-out), opacity .4s var(--ease-out);
  @starting-style { transform: translateY(-120%); opacity: 0; }
}
.toast.is-leaving { transform: translateY(-120%); opacity: 0; transition-duration: .22s; }
.toast .t-ic { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--honey); color: #3b2316; }
.toast .t-ic .i { width: 16px; height: 16px; stroke-width: 2.8; }
.toast-error .t-ic { background: var(--bad); color: #fff; }
.toast-ok .t-ic { background: #6fcf97; color: #143222; }
.toast span { flex: 1; padding-top: 2px; line-height: 1.4; }
.toast button { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: inherit; opacity: .7; transition: opacity .2s, background-color .2s; }
.toast button:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--honey); transform-origin: left; animation: toastbar var(--t, 6s) linear forwards; }
.toast:hover::after { animation-play-state: paused; }
@keyframes toastbar { to { transform: scaleX(0); } }

/* ---------- Dialog / sheets ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: var(--scrim); opacity: 0; transition: opacity .25s ease, overlay .25s allow-discrete, display .25s allow-discrete; }
dialog[open]::backdrop { opacity: 1; @starting-style { opacity: 0; } }
.dlg { width: min(520px, calc(100vw - 32px)); border-radius: var(--r-xl); background: var(--surface); padding: 28px; box-shadow: var(--float); opacity: 0; transform: scale(.96) translateY(8px); transition: opacity .25s var(--ease-out), transform .3s var(--ease-out), overlay .3s allow-discrete, display .3s allow-discrete; }
.dlg[open] { opacity: 1; transform: none; @starting-style { opacity: 0; transform: scale(.96) translateY(8px); } }
.dlg h2 { font-size: 1.6rem; margin-bottom: 12px; }
.dlg-x { position: absolute; top: 14px; right: 14px; }

/* Mobile search sheet */
.msearch { position: fixed; inset: 0; width: 100%; height: 100%; background: var(--bg); padding: 16px var(--gut); opacity: 0; transform: translateY(16px); transition: opacity .22s var(--ease-out), transform .3s var(--ease-drawer), overlay .3s allow-discrete, display .3s allow-discrete; }
.msearch[open] { opacity: 1; transform: none; @starting-style { opacity: 0; transform: translateY(16px); } }
.msearch .search { width: 100%; }
.msearch .suggest { position: static; box-shadow: none; padding: 8px 0; opacity: 1; transform: none; pointer-events: auto; background: none; display: none; }
.msearch .suggest.is-open { display: block; }
.msearch-top { display: flex; gap: 10px; align-items: center; }

/* ---------- Footer ---------- */
.foot { --fg: #fff8f1; position: relative; margin-top: var(--gap-section); background: #3b2316; color: var(--fg); padding: clamp(56px, 8vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); border-radius: var(--r-xl) var(--r-xl) 0 0; overflow: hidden; }
:root[data-theme="dark"] .foot { background: #0f0a07; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot { background: #0f0a07; } }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.foot-brand img { width: 230px; margin-left: -10px; }
.foot-brand p { margin: 20px 0 0; color: color-mix(in srgb, var(--fg) 72%, transparent); max-width: 34ch; }
.foot h2 { font: 800 .86rem/1 var(--f-body); color: color-mix(in srgb, var(--fg) 55%, transparent); margin-bottom: 16px; }
.foot-col a, .foot-col p { display: block; margin: 0 0 10px; font-weight: 700; color: color-mix(in srgb, var(--fg) 88%, transparent); }
.foot-col a:hover { color: var(--honey); }
.foot .btn-line { --b: #06c755; --bi: #fff; margin-top: 18px; }
.pay-marks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.pay-marks span { display: grid; place-items: center; height: 30px; padding: 0 10px; border-radius: 7px; background: rgba(255, 248, 241, .1); font: 900 .72rem/1 var(--f-body); letter-spacing: .02em; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 248, 241, .12); font-size: .86rem; color: color-mix(in srgb, var(--fg) 60%, transparent); }
.foot-bottom p { margin: 0; max-width: 80ch; }
.foot .doodle { color: var(--honey); opacity: .5; }

/* Floating chat (LINE) */
.chat-fab { position: fixed; z-index: 30; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 8px; border-radius: var(--pill); background: #06c755; color: #fff; font-weight: 800; box-shadow: 0 14px 30px -12px rgba(6, 199, 85, .7); transition: transform .3s var(--ease-spring); }
.chat-fab:hover { transform: translateY(-3px); }
.chat-fab:active { transform: scale(.95); }
.chat-fab span.ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.chat-fab img { width: 26px; height: 26px; }

/* Mobile tab bar */
.tabbar { display: none; }
.hide-lg { display: none !important; }
@media (max-width: 980px) { .hide-lg { display: inline-grid !important; } }

/* ---------- Account ---------- */
.acct { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; padding-top: 32px; }
.side { position: sticky; top: 100px; display: grid; gap: 2px; }
.side-user { display: flex; align-items: center; gap: 12px; padding: 0 8px 18px; }
.side-user b { display: block; font: 600 1.15rem/1.2 var(--f-display); }
.side-user span { font-size: .84rem; color: var(--ink-2); font-weight: 700; }
.side a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: var(--r-sm); font-weight: 800; color: var(--ink-2); transition: background-color .2s ease, color .2s ease; }
.side a:hover { background: var(--tint); color: var(--ink); }
.side a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.side a[aria-current="page"] .i { color: var(--honey); }
.side a .mi-end { margin-left: auto; }
.side form button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 14px; border-radius: var(--r-sm); font-weight: 800; color: var(--ink-2); }
.side form button:hover { background: var(--bad-soft); color: var(--bad); }
.acct-h { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 8px; }
.panel { border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); padding: clamp(20px, 3vw, 30px); margin-bottom: 20px; }
.panel h2 { font-size: 1.4rem; margin-bottom: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.tile { border-radius: var(--r-lg); padding: 22px; background: var(--tint); display: grid; gap: 6px; align-content: space-between; min-height: 150px; }
.tile small { font-weight: 800; color: var(--ink-2); }
.tile b { font: 600 clamp(1.8rem, 3vw, 2.4rem)/1 var(--f-display); }
.tile a { font-weight: 800; color: var(--pink-ink); font-size: .92rem; display: inline-flex; align-items: center; gap: 4px; }
.tile.is-wallet { background: #8a5a3b; color: #fff8f1; position: relative; overflow: hidden; isolation: isolate; }
.tile.is-wallet::after { content: ""; position: absolute; z-index: -1; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: #a3704c; }
.tile.is-wallet small { color: rgba(255, 248, 241, .8); }
.tile.is-wallet a { color: #ffd9a8; }
.olist { display: grid; gap: 4px; }
.orow { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-sm); transition: background-color .15s ease; }
a.orow:hover { background: var(--tint); }
.orow .grow b { display: block; font-weight: 800; line-height: 1.25; }
.orow .grow small { color: var(--ink-3); font-weight: 700; }
.orow .end { text-align: right; display: grid; gap: 4px; justify-items: end; font-weight: 800; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th { text-align: left; font-size: .8rem; font-weight: 800; color: var(--ink-3); padding: 10px 12px; white-space: nowrap; }
td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
td.num, th.num { text-align: right; }
tbody tr { transition: background-color .15s ease; }
tbody tr:hover { background: color-mix(in srgb, var(--tint) 50%, transparent); }

/* Order page */
.o-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.o-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 26px 0 6px; }
.timeline li { position: relative; padding-top: 30px; font-weight: 800; font-size: .86rem; color: var(--ink-3); }
.timeline li::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--tint-2); }
.timeline li::after { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 3px var(--tint-2); }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--ok); }
.timeline li.done::after { background: var(--ok); box-shadow: none; }
.timeline li.now::after { box-shadow: inset 0 0 0 3px var(--warn); }
html.js[data-fx="high"] .timeline li.now::after { animation: ring 1.6s ease-out infinite; }
@keyframes ring { 0% { box-shadow: inset 0 0 0 3px var(--warn), 0 0 0 0 var(--warn-soft); } 100% { box-shadow: inset 0 0 0 3px var(--warn), 0 0 0 10px transparent; } }
.timeline small { display: block; font-weight: 700; font-size: .76rem; color: var(--ink-3); }
.vault { display: grid; gap: 10px; }
.vault-item { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px 16px 16px 18px; border-radius: var(--r); background: var(--tint); }
.vault-item pre { flex: 1; margin: 0; font: 700 1rem/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.vault-actions { display: flex; flex-direction: column; gap: 6px; }
html.js .vault.is-new .vault-item pre { animation: unblur .7s var(--ease-out) both; }
@keyframes unblur { from { filter: blur(8px); opacity: .3; } }
.locked { position: relative; display: grid; justify-items: center; gap: 14px; text-align: center; padding: 34px 20px; border-radius: var(--r); background: var(--tint); overflow: hidden; }
.locked .fake { position: absolute; inset: 0; display: grid; gap: 10px; padding: 18px; filter: blur(7px); opacity: .5; pointer-events: none; font: 700 1rem/1.6 ui-monospace, monospace; text-align: left; }
.locked > *:not(.fake) { position: relative; }
.locked p { margin: 0; color: var(--ink-2); max-width: 44ch; }
.wait-card { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: var(--r); background: var(--warn-soft); }
.wait-card img { width: 76px; }
.wait-card p { margin: 4px 0 0; color: var(--ink-2); }

/* Wallet page */
.wallet-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: stretch; }
.wallet-hero .wcard { transform: none; aspect-ratio: auto; min-height: 240px; }
.tier-hint { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--ok-soft); color: var(--ok); font-weight: 800; font-size: .9rem; }
.tiers { display: flex; flex-wrap: wrap; gap: 8px; }
.tiers span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--pill); background: var(--tint); font-weight: 800; font-size: .84rem; }
.tiers span b { color: var(--ok); }
.tiers span.on { background: var(--ok-soft); }

/* Auth */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; min-height: calc(100vh - 160px); padding: 36px 0 0; }
.auth-card { width: 100%; max-width: 480px; justify-self: center; }
.auth-title { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 10px; }
.auth-card .lead { margin-bottom: 28px; }
.auth-alt { margin-top: 22px; text-align: center; color: var(--ink-2); font-weight: 700; }
.auth-art { position: relative; display: grid; place-items: center; align-self: stretch; min-height: 520px; border-radius: var(--r-xl); background: var(--tint); overflow: hidden; isolation: isolate; }
.auth-art::before { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--tint-2); }
.auth-art img.logo { width: min(78%, 420px); }
.auth-art .doodle { width: 46px; }
.auth-art blockquote { position: absolute; left: 28px; right: 28px; bottom: 28px; margin: 0; padding: 18px 20px; border-radius: var(--r); background: var(--surface); box-shadow: var(--lift); font-weight: 700; color: var(--ink-2); }
.auth-art blockquote b { color: var(--ink); }
.otp { letter-spacing: .5em; text-align: center; font-size: 1.5rem !important; font-weight: 800 !important; }

/* Checkout (demo gateway) */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.checkout-sum { background: var(--tint); padding: clamp(28px, 5vw, 72px); display: grid; align-content: start; gap: 26px; }
.checkout-form { padding: clamp(28px, 5vw, 72px); display: grid; align-content: start; max-width: 620px; width: 100%; }
.checkout .big { font: 600 clamp(2.6rem, 5vw, 3.6rem)/1 var(--f-display); margin-top: 6px; }
.sandbox { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: var(--pill); background: var(--warn-soft); color: var(--warn); font-weight: 900; font-size: .84rem; width: fit-content; }
.pm-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.pm-tabs label { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; font-weight: 800; font-size: .88rem; text-align: center; transition: box-shadow .2s ease, background-color .2s ease, transform .16s var(--ease-out); }
.pm-tabs label:active { transform: scale(.97); }
.pm-tabs input { position: absolute; opacity: 0; }
.pm-tabs label:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--ink); background: var(--tint); }
.pm-tabs label:has(input:focus-visible) { outline: 3px solid var(--pink); }
.pm-tabs label:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.pm-tabs .i { width: 26px; height: 26px; }
.card-input { position: relative; }
.card-input .brand-mark { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); height: 26px; padding: 0 8px; border-radius: 6px; background: var(--tint); display: grid; place-items: center; font: 900 .7rem/1 var(--f-body); text-transform: uppercase; color: var(--ink-2); transition: opacity .2s; }
.qr-box { display: grid; justify-items: center; gap: 14px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-align: center; }
.qr-head { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 10px; border-radius: 12px; background: #113566; color: #fff; font-weight: 900; }
.qr { width: 220px; height: 220px; padding: 10px; background: #fff; border-radius: 12px; }
.qr canvas, .qr img, .qr svg { width: 100% !important; height: 100% !important; image-rendering: pixelated; }
.countdown { font: 600 1.6rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.test-cards { display: grid; gap: 6px; padding: 14px; border-radius: var(--r-sm); background: var(--tint); font-size: .84rem; }
.test-cards button { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 8px; font-weight: 700; text-align: left; transition: background-color .15s; }
.test-cards button:hover { background: var(--surface); }
.test-cards code { font: 700 .84rem/1 ui-monospace, monospace; }
.threeds { width: min(440px, calc(100vw - 32px)); margin: 8vh auto; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--float); padding: 32px; text-align: center; }
.threeds .bank { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); font-weight: 900; }

/* Prose (legal & help) */
.prose { max-width: 72ch; font-size: 1.04rem; }
.prose h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 14px; }
.prose h2 { font-size: 1.55rem; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--pink-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { font-weight: 800; color: var(--ink-3); }
.legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-top: 40px; }
.legal-nav { position: sticky; top: 100px; align-self: start; display: grid; gap: 2px; }
.legal-nav a { padding: 10px 14px; border-radius: var(--r-sm); font-weight: 800; color: var(--ink-2); transition: background-color .2s ease, color .2s ease; }
.legal-nav a:hover { background: var(--tint); color: var(--ink); }
.legal-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 26px 0; }
.contact-cards a, .contact-cards div { display: grid; gap: 6px; padding: 20px; border-radius: var(--r); background: var(--tint); text-decoration: none !important; }
.contact-cards b { color: var(--ink); font-size: 1.05rem; }
.contact-cards span { color: var(--ink-2); font-weight: 600; }

/* Error page */
.err { display: grid; justify-items: center; text-align: center; gap: 16px; padding: clamp(48px, 10vw, 120px) 0 0; }
.err .code { font: 600 clamp(6rem, 18vw, 12rem)/.9 var(--f-display); color: var(--tint-2); letter-spacing: -.04em; }
.err img { width: 170px; margin-top: -60px; }
.err h1 { font-size: clamp(2rem, 4vw, 3rem); }
.err p { color: var(--ink-2); max-width: 46ch; }
.err .search { width: min(480px, 100%); }

/* Tickets */
.thread { display: grid; gap: 12px; }
.msg { max-width: 82%; padding: 14px 16px; border-radius: 20px 20px 20px 6px; background: var(--tint); }
.msg.me { justify-self: end; border-radius: 20px 20px 6px 20px; background: var(--ink); color: var(--bg); }
.msg small { display: block; font-weight: 700; opacity: .7; font-size: .78rem; margin-bottom: 4px; }
.msg p { margin: 0; white-space: pre-wrap; }

/* ---------- Scroll reveal ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--s, 0) * 70ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- View transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--ease-out); }
::view-transition-group(stage), ::view-transition-group(sticker) { animation-duration: .45s; animation-timing-function: var(--ease-out); }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin-side { position: sticky; top: 0; height: 100vh; overflow: auto; padding: 22px 14px; background: var(--tint); display: flex; flex-direction: column; gap: 2px; }
.admin-side .brand { padding: 0 10px 20px; }
.admin-main { padding: clamp(20px, 3vw, 40px); max-width: 1180px; width: 100%; }
.admin-main h1 { font-size: 2rem; margin-bottom: 20px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { padding: 20px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.kpi span, .kpi small { display: block; font-weight: 800; color: var(--ink-2); font-size: .86rem; }
.kpi b { display: block; font: 600 1.9rem/1.2 var(--f-display); margin: 6px 0 2px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; }
.bars .bar, .bars > div { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--caramel); min-height: 3px; position: relative; }
.bars .bar:hover, .bars > div:hover { background: var(--pink); }
.thumb { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav .nav-link { display: none; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .search.in-header { display: none; }
  .hero-grid, .wallet-sec, .faq-grid, .pdp, .auth, .wallet-hero, .legal-wrap, .checkout { grid-template-columns: minmax(0, 1fr); }
  .board-wrap { max-width: 560px; margin-inline: auto; width: 100%; }
  .buybox { position: static; }
  .faq-side { position: static; }
  .faq-side img { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { min-height: 0; }
  .acct { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); }
  .side::-webkit-scrollbar { display: none; }
  .side-user, .side form { display: none; }
  .side a { flex: none; background: var(--tint); }
  .legal-nav { position: static; display: flex; overflow-x: auto; gap: 6px; }
  .legal-nav a { flex: none; background: var(--tint); }
  .auth-art { display: none; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .admin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; }
  .admin-side { position: static; height: auto; flex-direction: row; overflow-x: auto; }
  .admin-side a { flex: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top-in { height: 64px; gap: 4px; }
  .brand img { width: 40px; height: 39px; }
  .brand-word { font-size: 1.2rem; }
  .nav, .hide-sm, .wallet-pill .amt-label { display: none !important; }
  .wallet-pill { padding: 0 12px 0 5px; height: 38px; }
  .wallet-pill .plus { width: 28px; height: 28px; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-tile { min-height: 150px; padding: 16px; gap: 20px; }
  .cat-tile h3 { font-size: 1.1rem; }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { border-radius: var(--r); }
  .card-stage { margin: 6px 6px 0; border-radius: calc(var(--r) - 4px); }
  .card-body { padding: 12px 12px 14px; }
  .card h3 { font-size: 1rem; }
  .card-price b { font-size: 1.1rem; }
  .card .fav { width: 34px; height: 34px; top: 12px; right: 12px; }
  .card .tag { top: 12px; left: 12px; }
  .card-meta .hide-xs { display: none; }
  .board { padding: 18px; min-height: 0; }
  .board-grid { gap: 10px; }
  .board-item .b-name { font-size: .8rem; }
  .hero-search .search-box { height: 58px; }
  .hero-search .btn span { display: none; }
  .hero-search .btn { width: 46px; padding: 0; }
  .compare, .facts, .contact-cards, .tiles, .kpis, .trust { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .foot { border-radius: var(--r-lg) var(--r-lg) 0 0; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .chat-fab { bottom: calc(84px + env(safe-area-inset-bottom)); right: 14px; padding: 0 8px; }
  .chat-fab b { display: none; }
  .toasts { top: auto; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .toast { @starting-style { transform: translateY(120%); opacity: 0; } }
  .toast.is-leaving { transform: translateY(120%); }
  .menu-panel { position: fixed; top: auto !important; bottom: 0; left: 0 !important; right: 0 !important; width: 100% !important; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 10px 12px calc(16px + env(safe-area-inset-bottom)); max-height: 85vh; overflow: auto; transform: translateY(100%); transform-origin: bottom center; transition: transform .3s var(--ease-drawer), opacity .2s, visibility 0s .3s; z-index: 80; }
  .menu-panel::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 10px; }
  .menu.is-open > .menu-panel { transform: none; transition: transform .38s var(--ease-drawer), opacity .2s, visibility 0s; }
  .menu-scrim { position: fixed; inset: 0; z-index: 79; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .menu-scrim.is-on { opacity: 1; pointer-events: auto; }
  .mega { grid-template-columns: minmax(0, 1fr); }
  .tabbar {
    position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 -1px 0 var(--line);
  }
  @supports (backdrop-filter: blur(1px)) { .tabbar { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); } }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 3px; padding: 6px 0; font-size: .7rem; font-weight: 800; color: var(--ink-3); border-radius: var(--r-sm); position: relative; transition: color .2s ease; }
  .tabbar .i { width: 24px; height: 24px; transition: transform .3s var(--ease-spring); }
  .tabbar [aria-current="page"] { color: var(--ink); }
  .tabbar [aria-current="page"] .i { transform: translateY(-2px); color: var(--pink); }
  .tabbar a:active .i, .tabbar button:active .i { transform: scale(.85); }
  .tabbar .dot-count { top: 0; right: calc(50% - 22px); }
  .step { padding: 20px; }
  .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vault-item { flex-direction: column; }
  .vault-actions { flex-direction: row; }
  .msg { max-width: 92%; }
  .pm-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .checkout-sum { padding-bottom: 28px; }
}
@media (max-width: 400px) {
  .brand-word { display: none; }
}

/* ---------- Graphics tier & motion preferences ---------- */
html[data-fx="low"] .top, html[data-fx="low"] .tabbar { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: var(--bg); }
html[data-fx="low"] .board { background-image: none; }
html[data-fx="low"] .marquee-track { animation-duration: 90s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  html.js .hero h1 .line > span { transform: none; }
  .marquee-track { animation: none; }
  @view-transition { navigation: none; }
}

/* ---------- Print (receipts) ---------- */
@media print {
  .top, .foot, .tabbar, .side, .chat-fab, .toasts, .no-print, .news { display: none !important; }
  body { background: #fff; color: #000; }
  .acct { display: block; padding: 0; }
  .panel { box-shadow: none; border: 1px solid #ccc; }
}
.foot .link { color: var(--honey); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wait-card > .i { width: 40px; height: 40px; flex: none; color: var(--warn); }
.panel h2 > .i { vertical-align: -3px; margin-right: 4px; color: var(--caramel); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pw-wrap button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink-2); transition: background-color .15s ease, transform .12s var(--ease-out); }
.pw-wrap button:hover { background: var(--tint); color: var(--ink); }
.pw-wrap button:active { transform: translateY(-50%) scale(.92); }
.auth-art .doodle { position: absolute; }
.auth-perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.auth-perks li { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--ink-2); }
.auth-perks .i { color: var(--ok); flex: none; }
.auth-art .a1 { top: 12%; left: 12%; width: 54px; }
.auth-art .a2 { top: 16%; right: 14%; width: 46px; animation-delay: -2s; }
.auth-art .a3 { top: 46%; left: 8%; width: 34px; }
.prose .faq summary { color: var(--ink); } .prose .search-box .i { width: 20px; }
.star-input { justify-self: start; width: fit-content; }
p > .i { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; }
.wallet-hero .wcard { align-self: start; aspect-ratio: 1.586; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tile.is-wallet { grid-column: 1 / -1; } .tile { min-height: 116px; padding: 18px; } .tile b { font-size: 1.6rem; } }
.panel-head .n-ic { flex: none; }
.stage { background: color-mix(in srgb, var(--c) 8%, var(--tint)); } .stage::before { background: color-mix(in srgb, var(--c) 22%, var(--tint)); }

/* ==========================================================================
   v2 — instant navigation, dialogs, wizards, scroll scene, dark theme polish
   ========================================================================== */

/* Theme-specific pictures (logo in cream on dark) */
.only-dark { display: none !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
:root[data-theme="dark"] .only-dark { display: revert !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none !important; }
  :root:not([data-theme="light"]) .only-dark { display: revert !important; }
}
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: none !important; }

/* Page loading bar (Turbo) */
.turbo-progress-bar { height: 3px; background: linear-gradient(90deg, var(--pink), var(--honey)); box-shadow: 0 0 10px color-mix(in srgb, var(--pink) 60%, transparent); }
#icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Header links */
.nav > a.nav-link .i { width: 17px; height: 17px; color: var(--ink-3); transition: color .2s ease, transform .3s var(--ease-spring); }
.nav > a.nav-link:hover .i, .nav > a.nav-link[aria-current="page"] .i { color: var(--pink); transform: rotate(-8deg) scale(1.08); }

/* Menus: items arrive one after another */
.menu-panel .mi-danger:hover, .menu-panel .mi-danger:focus-visible { background: var(--bad-soft); color: var(--bad); }
.menu-panel .mi-danger:hover .i { color: var(--bad); }
html.js[data-fx="high"] .menu.is-open > .menu-panel > *:not(.menu-sep) { animation: mi-in .32s var(--ease-out) both; }
html.js[data-fx="high"] .menu.is-open > .menu-panel > *:nth-child(2) { animation-delay: 20ms; }
html.js[data-fx="high"] .menu.is-open > .menu-panel > *:nth-child(3) { animation-delay: 40ms; }
html.js[data-fx="high"] .menu.is-open > .menu-panel > *:nth-child(4) { animation-delay: 60ms; }
html.js[data-fx="high"] .menu.is-open > .menu-panel > *:nth-child(5) { animation-delay: 80ms; }
html.js[data-fx="high"] .menu.is-open > .menu-panel > *:nth-child(6) { animation-delay: 100ms; }
html.js[data-fx="high"] .menu.is-open > .menu-panel > *:nth-child(7) { animation-delay: 120ms; }
html.js[data-fx="high"] .menu.is-open > .menu-panel > *:nth-child(n+8) { animation-delay: 140ms; }
@keyframes mi-in { from { opacity: 0; transform: translateY(-6px); } }

/* Selects: the open list unfolds, options slide in, the chosen one gets a drawn tick */
.sel { width: 100%; }
.toolbar .sel, .row > .sel { width: auto; }
.sel-list { transform: translateY(-6px) scaleY(.92); }
.sel.is-open .sel-list { transform: none; }
html.js[data-fx="high"] .sel.is-open .sel-opt { animation: opt-in .26s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 14ms); }
@keyframes opt-in { from { opacity: 0; transform: translateX(-6px); } }
.sel-opt { justify-content: space-between; transition: background-color .12s ease, color .12s ease; }
.sel-opt > span { overflow: hidden; text-overflow: ellipsis; }
.sel-opt[aria-selected="true"]::after { content: none; }
.sel-opt .tick { width: 18px; height: 18px; color: var(--pink); opacity: 0; transform: scale(.5) rotate(-12deg); transition: opacity .15s, transform .3s var(--ease-spring); }
.sel-opt[aria-selected="true"] .tick { opacity: 1; transform: none; }
.sel-opt[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.sel-filter { display: flex; align-items: center; gap: 8px; }
.sel-filter .i { position: absolute; left: 20px; width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.sel-filter input { padding-left: 36px !important; min-height: 40px !important; box-shadow: none !important; background: var(--tint) !important; }

/* Buttons that swap their label (copy → copied) keep icon and text on one line */
[data-copy] { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
[data-copy] .i { width: 16px; height: 16px; }
[data-copy].is-copied { color: var(--ok); }
.ui-code button[data-copy] { min-width: 86px; }
.ui-code button.is-copied { background: var(--ok); color: #fff; }
.btn-danger-solid { --b: var(--bad); --bi: #fff; }

/* Dialogs */
.dlg { position: fixed; margin: auto; max-height: min(88vh, 860px); overflow: auto; overscroll-behavior: contain; }
.dlg.is-closing { opacity: 0; transform: scale(.97) translateY(6px); transition-duration: .18s; }
.dlg-wide { width: min(640px, calc(100vw - 32px)); }
.dlg-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; padding-right: 40px; }
.dlg-head h2 { margin: 0 0 4px; font-size: 1.55rem; }
.dlg-head p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.dlg-head .h-ic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 15px; background: var(--tint); color: var(--caramel); }
.dlg-head .h-ic .i { width: 24px; height: 24px; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }
.dlg-ask { width: min(420px, calc(100vw - 32px)); text-align: center; padding: 30px 26px 24px; }
.dlg-ask .ask-ic { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; background: var(--tint); color: var(--caramel); }
.dlg-ask .ask-ic .i { width: 28px; height: 28px; }
.dlg-ask.is-danger .ask-ic { background: var(--bad-soft); color: var(--bad); }
.dlg-ask h2 { font-size: 1.35rem; margin-bottom: 8px; }
.dlg-ask p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.dlg-ask .dlg-actions { justify-content: center; }
.dlg-ask .dlg-actions .btn { flex: 1; min-width: 120px; }
html.js[data-fx="high"] .dlg[open] .ask-ic { animation: pop .45s var(--ease-spring) both; }
@media (max-width: 760px) {
  .dlg:not(.dlg-ask) { width: 100%; max-width: none; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(40px); max-height: 92vh; }
  .dlg:not(.dlg-ask)[open] { transform: none; @starting-style { transform: translateY(40px); opacity: 0; } }
}

/* Step-by-step wizards */
.wizard { display: grid; gap: 18px; }
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 4px; counter-reset: st; }
.stepper li { flex: 1; display: grid; gap: 8px; font-size: .78rem; font-weight: 800; color: var(--ink-3); counter-increment: st; min-width: 0; }
.stepper li::before { content: ""; height: 5px; border-radius: 3px; background: var(--tint-2); transition: background-color .35s var(--ease-out); }
.stepper li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper li span::before { content: counter(st) ". "; }
.stepper li.done { color: var(--ink-2); }
.stepper li.done::before { background: var(--ok); }
.stepper li.now { color: var(--ink); }
.stepper li.now::before { background: linear-gradient(90deg, var(--pink), var(--honey)); }
.step-pane { display: grid; gap: 16px; }
html.js[data-fx="high"] .step-pane:not([hidden]) { animation: pane-in .38s var(--ease-out) both; }
html.js[data-fx="high"] .step-pane.from-back:not([hidden]) { animation-name: pane-back; }
@keyframes pane-in { from { opacity: 0; transform: translateX(18px); } }
@keyframes pane-back { from { opacity: 0; transform: translateX(-18px); } }
.step-pane h3 { font-size: 1.2rem; }
.step-pane > p { margin: 0; color: var(--ink-2); }
.step-nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 6px; }
.step-nav .btn:only-child { margin-left: auto; }
.pw-row { display: flex; align-items: center; gap: 10px; }
.pw-row .pw-meter { flex: 1; }
.pw-row [data-meter-word] { min-width: 52px; text-align: right; font-size: .8rem; font-weight: 800; color: var(--ink-3); }
.hint-list { list-style: none; display: grid; gap: 6px; padding: 0; margin: 0; font-size: .86rem; color: var(--ink-2); font-weight: 600; }
.hint-list li { display: flex; gap: 8px; align-items: center; }
.hint-list .i { width: 16px; height: 16px; color: var(--ok); }
.app-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.app-chips span { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: var(--pill); background: var(--tint); font-size: .82rem; font-weight: 800; }
.secret { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--tint); }
.secret code { flex: 1; font: 700 .95rem/1.4 ui-monospace, monospace; letter-spacing: .06em; word-break: break-all; }
.otp-in { font: 800 1.6rem/1 ui-monospace, monospace !important; letter-spacing: .45em; text-align: center; max-width: 280px; }
.qr-wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.qr-wrap .qr { flex: none; width: 180px; height: 180px; box-shadow: 0 0 0 1px var(--line); }

/* Settings rows (security, privacy) */
.set-list { display: grid; gap: 12px; }
.set-row { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.set-row .s-ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 15px; background: var(--tint); color: var(--caramel); }
.set-row .s-ic .i { width: 24px; height: 24px; }
.set-row .grow b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.05rem; }
.set-row .grow p { margin: 3px 0 0; color: var(--ink-2); font-size: .9rem; }
.set-row.is-danger .s-ic { background: var(--bad-soft); color: var(--bad); }
.set-row > .btn, .set-row > form { flex: none; }
@media (max-width: 760px) { .set-row { flex-wrap: wrap; } .set-row > .btn, .set-row > form, .set-row > form .btn { width: 100%; } }
.dev-list { display: grid; gap: 8px; }
.dev { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--tint); }
.dev .s-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); flex: none; }
.dev .grow b { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 800; }
.dev .grow small { color: var(--ink-3); font-weight: 700; }

/* Page heads with an action button (tickets, orders) */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .acct-h { margin: 0; }
.page-head p { margin: 6px 0 0; }
.tabs-mini { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs-mini a { height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--pill); font-weight: 800; font-size: .86rem; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .2s, color .2s, box-shadow .2s; }
.tabs-mini a:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.tabs-mini a[aria-current="page"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.tabs-mini b { font-size: .76rem; padding: 1px 7px; border-radius: 9px; background: color-mix(in srgb, currentColor 14%, transparent); }
.tk-ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--tint); color: var(--ink-2); }
.tk-ic.is-answered { background: var(--pink-soft); color: var(--pink-ink); }
.tk-ic.is-closed { color: var(--ink-3); }
.orow .flag { display: inline-flex; align-items: center; gap: 4px; color: var(--warn); font-weight: 800; font-size: .78rem; }
.orow .flag .i { width: 14px; height: 14px; }
.badge-review { background: var(--warn-soft); color: var(--warn); }
.badge-resolved { background: var(--ok-soft); color: var(--ok); }
.badge .i { width: 13px; height: 13px; }
.report-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--r); background: var(--warn-soft); margin-bottom: 20px; }
.report-card.is-resolved { background: var(--ok-soft); }
.report-card .s-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--warn); flex: none; }
.report-card.is-resolved .s-ic { color: var(--ok); }
.report-card p { margin: 2px 0 0; color: var(--ink-2); font-size: .9rem; }
.empty-sm { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 34px 16px; }
.empty-sm img { width: 96px; }
.empty-sm p { margin: 0; color: var(--ink-2); max-width: 44ch; }
.conn { margin-top: 10px; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; font-size: .9rem; }
.conn.ok { background: var(--ok-soft); color: var(--ok); }
.conn.bad { background: var(--bad-soft); color: var(--bad); }

/* ---------- Pinned scroll scene (home: checkout to code) ---------- */
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 800; color: var(--pink-ink); font-size: .92rem; }
.kicker .i { width: 18px; height: 18px; }
.scene { --p: 0; --lp: 0; position: relative; height: 340vh; margin-top: calc(var(--gap-section) * .6); }
.scene-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.scene-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.scene-copy .h-section { max-width: 13ch; }
.scene-steps { list-style: none; display: grid; gap: 10px; margin-top: 34px; }
.scene-steps li { position: relative; border-radius: var(--r-lg); overflow: hidden; transition: background-color .4s var(--ease-out), opacity .4s; opacity: .5; }
.scene-steps li.on { opacity: .75; }
.scene-steps li[aria-current="step"] { opacity: 1; background: var(--tint); }
.scene-steps button { display: flex; gap: 16px; align-items: flex-start; width: 100%; padding: 18px 20px; text-align: left; }
.scene-steps .sn { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); font: 600 1.1rem/1 var(--f-display); transition: background-color .3s, color .3s, transform .4s var(--ease-spring); }
.scene-steps li.on .sn { background: var(--ink); color: var(--bg); }
.scene-steps li[aria-current="step"] .sn { background: var(--pink); color: #fff; transform: rotate(-8deg) scale(1.06); }
.scene-steps b { display: block; font: 600 1.3rem/1.2 var(--f-display); }
.scene-steps small { display: block; margin-top: 4px; color: var(--ink-2); font-size: .95rem; font-weight: 600; line-height: 1.45; max-height: 0; overflow: hidden; transition: max-height .45s var(--ease-out); }
.scene-steps li[aria-current="step"] small { max-height: 6em; }
.scene-steps .sbar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--pink), var(--honey)); transform-origin: left; transform: scaleX(0); }
.scene-steps li[aria-current="step"] .sbar { transform: scaleX(var(--lp)); }
.scene-steps li.on:not([aria-current="step"]) .sbar { transform: scaleX(1); opacity: .35; }

.scene-stage { position: relative; display: grid; place-items: center; min-height: 520px; }
.scene-stage::before { content: ""; position: absolute; width: min(520px, 92%); aspect-ratio: 1; border-radius: 50%; background: var(--tint); background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--brand) 20%, transparent) 1.4px, transparent 0); background-size: 22px 22px; transform: rotate(calc(var(--p) * 90deg)) scale(calc(.92 + var(--p) * .1)); }
.scene-stage .doodle { width: 46px; z-index: 2; }
.scene-stage .sd1 { top: 10%; left: 8%; color: var(--honey); }
.scene-stage .sd2 { bottom: 12%; right: 6%; width: 38px; }
.device { position: relative; z-index: 1; width: min(340px, 82vw); border-radius: 38px; padding: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -36px rgba(var(--shadow-ink), .55); transform: rotate(calc(-4deg + var(--p) * 6deg)) translateY(calc((.5 - var(--p)) * 30px)); }
.device-top { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; font: 600 1rem/1 var(--f-display); }
.device-top img { width: 28px; }
.device-top .dots { margin-left: auto; display: flex; gap: 4px; }
.device-top .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--tint-2); }
.frames { position: relative; height: 330px; border-radius: 26px; background: var(--tint); overflow: hidden; }
.frame { position: absolute; inset: 0; padding: 18px; display: grid; align-content: start; gap: 12px; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .45s var(--ease-out), transform .55s var(--ease-out); pointer-events: none; }
.scene[data-at="0"] .f1, .scene[data-at="1"] .f2, .scene[data-at="2"] .f3 { opacity: 1; transform: none; }
.scene[data-at="1"] .f1, .scene[data-at="2"] .f2 { transform: translateY(-24px) scale(.97); }
.f-prod { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface); }
.f-prod b { display: block; font-weight: 800; }
.f-prod small { color: var(--ok); font-weight: 800; font-size: .8rem; }
.f-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.f-opts span { display: grid; place-items: center; height: 62px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 800; font-size: .82rem; text-align: center; line-height: 1.2; transition: box-shadow .3s, transform .4s var(--ease-spring); }
.f-opts small { display: block; color: var(--pink-ink); }
.scene[data-at="0"] .f-opts .pick { box-shadow: inset 0 0 0 2.5px var(--ink); transform: scale(calc(1 + min(var(--lp) * 3, 1) * .06)); }
.f-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: var(--pill); background: var(--cta); color: var(--cta-ink); font-weight: 800; overflow: hidden; isolation: isolate; }
.f-btn .i { width: 18px; height: 18px; }
.f-btn.pay .fill { position: absolute; inset: 0; z-index: -1; background: var(--ok); transform-origin: left; transform: scaleX(0); }
.scene[data-at="1"] .f-btn.pay .fill { transform: scaleX(clamp(0, (var(--lp) - .35) * 2, 1)); }
.cursor { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--pink) 55%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--pink) 18%, transparent); left: calc(30% + var(--lp) * 22%); top: calc(52% + var(--lp) * 26%); }
.f-total { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 4px 4px; }
.f-total small { font-weight: 800; color: var(--ink-2); }
.f-total b { font: 600 1.8rem/1 var(--f-display); }
.f-pay { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--line); }
.f-pay.on { box-shadow: inset 0 0 0 2.5px var(--ink); }
.f-pay em { margin-left: auto; font-style: normal; color: var(--ok); font-size: .78rem; }
.f-ok { display: grid; justify-items: center; gap: 4px; padding: 18px 0 6px; text-align: center; }
.f-ok > span { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--ok); color: #fff; transform: scale(calc(.4 + min(var(--lp) * 4, 1) * .6)); }
.f-ok > span .i { width: 30px; height: 30px; stroke-width: 2.6; }
.f-ok b { font: 600 1.4rem/1.2 var(--f-display); }
.f-ok small { color: var(--ink-2); font-weight: 700; }
.f-code { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); font: 700 .95rem/1.2 ui-monospace, monospace; letter-spacing: .04em; filter: blur(calc((1 - min(var(--lp) * 2.5, 1)) * 6px)); }
.f-code.muted { color: var(--ink-2); font-size: .85rem; }
.f-code i { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); }
.f-code i .i { width: 15px; height: 15px; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: 22%; left: 50%; width: 8px; height: 12px; border-radius: 2px; background: var(--pink); opacity: 0; }
.confetti i:nth-child(3n) { background: var(--honey); }
.confetti i:nth-child(3n+1) { background: var(--caramel); border-radius: 50%; width: 9px; height: 9px; }
html.js[data-fx="high"] .scene[data-at="2"] .confetti i { animation: confetti 1.1s var(--ease-out) both; animation-delay: calc(var(--k) * 30ms); }
@keyframes confetti { 0% { opacity: 1; transform: translate(-50%, 0) rotate(0); } 100% { opacity: 0; transform: translate(calc(-50% + (var(--k) - 4.5) * 26px), calc(-60px + var(--k) * 4px)) rotate(calc(var(--k) * 70deg)); } }
.device-bar { height: 5px; width: 110px; margin: 12px auto 2px; border-radius: 3px; background: var(--tint-2); overflow: hidden; }
.device-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--pink); border-radius: inherit; }
@media (max-width: 980px) {
  .scene { height: 300vh; }
  .scene-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: center; }
  .scene-copy .h-section { font-size: clamp(1.7rem, 6vw, 2.4rem); max-width: none; }
  .scene-copy .kicker { margin-bottom: 8px; }
  .scene-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
  .scene-steps button { flex-direction: column; gap: 6px; padding: 10px; align-items: center; text-align: center; }
  .scene-steps b { font-size: .86rem; }
  .scene-steps small { display: none; }
  .scene-steps .sn { width: 32px; height: 32px; font-size: .95rem; }
  .scene-stage { min-height: 0; }
  .scene-stage::before { width: min(380px, 90%); }
  .device { width: min(290px, 78vw); padding: 10px; border-radius: 30px; }
  .frames { height: 290px; }
}
@media (max-height: 700px) and (min-width: 981px) { .frames { height: 280px; } .scene-steps button { padding: 12px 16px; } }
@media (prefers-reduced-motion: reduce) { .scene { height: auto; } .scene-pin { position: static; height: auto; padding: 40px 0; } }

/* ---------- Dark theme polish ---------- */
:root[data-theme="dark"] { --bg: #15100d; --surface: #201813; --tint: #2a2019; --tint-2: #3a2c22; --line: rgba(248, 235, 221, .10); --line-2: rgba(248, 235, 221, .18); --sticker: #fff8f1; --sticker-edge: #2f241c; }
:root[data-theme="dark"] body { background: radial-gradient(1200px 600px at 85% -10%, rgba(228, 112, 138, .08), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(235, 181, 127, .07), transparent 60%), var(--bg); background-attachment: fixed; }
:root[data-theme="dark"] .page { background: transparent; }
:root[data-theme="dark"] .board { background-color: #241a14; }
:root[data-theme="dark"] .wcard, :root[data-theme="dark"] .tile.is-wallet { background: #5e3b25; box-shadow: 0 30px 60px -30px #000, inset 0 0 0 1px rgba(255, 220, 180, .08); }
:root[data-theme="dark"] .wcard::before, :root[data-theme="dark"] .tile.is-wallet::after { background: #74492e; }
:root[data-theme="dark"] .wcard::after { background: #4b2f1d; }
:root[data-theme="dark"] .step-n, :root[data-theme="dark"] .side a[aria-current="page"], :root[data-theme="dark"] .chip[aria-current="page"], :root[data-theme="dark"] .chip.is-on, :root[data-theme="dark"] .filters a[aria-pressed="true"], :root[data-theme="dark"] .tabs-mini a[aria-current="page"], :root[data-theme="dark"] .legal-nav a[aria-current="page"] { background: var(--honey); color: #2a1a10; }
:root[data-theme="dark"] .side a[aria-current="page"] .i { color: #2a1a10; }
:root[data-theme="dark"] .msg.me { background: #5e3b25; color: #fff4e8; }
:root[data-theme="dark"] .news { background: #2a1d15; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
:root[data-theme="dark"] .bear-peek img, :root[data-theme="dark"] .empty img, :root[data-theme="dark"] .err img, :root[data-theme="dark"] .notif-empty img, :root[data-theme="dark"] .empty-sm img, :root[data-theme="dark"] .faq-side img, :root[data-theme="dark"] .wait-card img { filter: drop-shadow(0 0 1px rgba(255, 240, 225, .55)) drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
:root[data-theme="dark"] .brand img, :root[data-theme="dark"] .device-top img { filter: drop-shadow(0 0 .6px rgba(255, 240, 225, .7)); }
:root[data-theme="dark"] .cat-tile .cat-ic { background: rgba(255, 245, 235, .1); }
:root[data-theme="dark"] .scene-stage::before { background-color: #241a14; }
:root[data-theme="dark"] .foot { background: #0e0a08; box-shadow: 0 -1px 0 var(--line); }
:root[data-theme="dark"] img.cover { filter: brightness(.88) saturate(.95); }
:root[data-theme="dark"] .hero-search .search-box { background: var(--surface); box-shadow: 0 0 0 2px var(--line-2), 0 14px 32px -18px #000; }
:root[data-theme="dark"] .hero-search .search-box:focus-within { box-shadow: 0 0 0 2px var(--honey), 0 0 0 7px rgba(239, 192, 143, .14), 0 14px 32px -18px #000; }
:root[data-theme="dark"] .toast { background: #f3e3d1; color: #2a1a10; }
:root[data-theme="dark"] .toast button:hover { background: rgba(0, 0, 0, .08); }
:root[data-theme="dark"] .ui-code button, :root[data-theme="dark"] .f-code i { background: var(--honey); color: #2a1a10; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #15100d; --surface: #201813; --tint: #2a2019; --tint-2: #3a2c22; --line: rgba(248, 235, 221, .10); --line-2: rgba(248, 235, 221, .18); --sticker: #fff8f1; --sticker-edge: #2f241c; }
  :root:not([data-theme="light"]) body { background: radial-gradient(1200px 600px at 85% -10%, rgba(228, 112, 138, .08), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(235, 181, 127, .07), transparent 60%), var(--bg); background-attachment: fixed; }
  :root:not([data-theme="light"]) .page { background: transparent; }
  :root:not([data-theme="light"]) .board { background-color: #241a14; }
  :root:not([data-theme="light"]) .wcard, :root:not([data-theme="light"]) .tile.is-wallet { background: #5e3b25; box-shadow: 0 30px 60px -30px #000, inset 0 0 0 1px rgba(255, 220, 180, .08); }
  :root:not([data-theme="light"]) .wcard::before, :root:not([data-theme="light"]) .tile.is-wallet::after { background: #74492e; }
  :root:not([data-theme="light"]) .wcard::after { background: #4b2f1d; }
  :root:not([data-theme="light"]) .step-n, :root:not([data-theme="light"]) .side a[aria-current="page"], :root:not([data-theme="light"]) .chip[aria-current="page"], :root:not([data-theme="light"]) .chip.is-on, :root:not([data-theme="light"]) .filters a[aria-pressed="true"], :root:not([data-theme="light"]) .tabs-mini a[aria-current="page"], :root:not([data-theme="light"]) .legal-nav a[aria-current="page"] { background: var(--honey); color: #2a1a10; }
  :root:not([data-theme="light"]) .side a[aria-current="page"] .i { color: #2a1a10; }
  :root:not([data-theme="light"]) .msg.me { background: #5e3b25; color: #fff4e8; }
  :root:not([data-theme="light"]) .news { background: #2a1d15; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
  :root:not([data-theme="light"]) .bear-peek img, :root:not([data-theme="light"]) .empty img, :root:not([data-theme="light"]) .err img, :root:not([data-theme="light"]) .notif-empty img, :root:not([data-theme="light"]) .empty-sm img, :root:not([data-theme="light"]) .faq-side img, :root:not([data-theme="light"]) .wait-card img { filter: drop-shadow(0 0 1px rgba(255, 240, 225, .55)) drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
  :root:not([data-theme="light"]) .brand img, :root:not([data-theme="light"]) .device-top img { filter: drop-shadow(0 0 .6px rgba(255, 240, 225, .7)); }
  :root:not([data-theme="light"]) .cat-tile .cat-ic { background: rgba(255, 245, 235, .1); }
  :root:not([data-theme="light"]) .scene-stage::before { background-color: #241a14; }
  :root:not([data-theme="light"]) .foot { background: #0e0a08; box-shadow: 0 -1px 0 var(--line); }
  :root:not([data-theme="light"]) img.cover { filter: brightness(.88) saturate(.95); }
  :root:not([data-theme="light"]) .hero-search .search-box { background: var(--surface); box-shadow: 0 0 0 2px var(--line-2), 0 14px 32px -18px #000; }
  :root:not([data-theme="light"]) .hero-search .search-box:focus-within { box-shadow: 0 0 0 2px var(--honey), 0 0 0 7px rgba(239, 192, 143, .14), 0 14px 32px -18px #000; }
  :root:not([data-theme="light"]) .toast { background: #f3e3d1; color: #2a1a10; }
  :root:not([data-theme="light"]) .toast button:hover { background: rgba(0, 0, 0, .08); }
  :root:not([data-theme="light"]) .ui-code button, :root:not([data-theme="light"]) .f-code i { background: var(--honey); color: #2a1a10; }
}

/* Thai / Chinese / Japanese: tall vowels and tone marks need room above and below the line */
:root:lang(th) h1, :root:lang(th) h2, :root:lang(th) h3, :root:lang(th) h4 { line-height: 1.32; letter-spacing: 0; }
:root:lang(zh) h1, :root:lang(zh) h2, :root:lang(zh) h3, :root:lang(ja) h1, :root:lang(ja) h2, :root:lang(ja) h3 { line-height: 1.25; letter-spacing: 0; }
:root:lang(th) .hero h1, :root:lang(zh) .hero h1, :root:lang(ja) .hero h1 { line-height: 1.22; }
:root:lang(th) .hero h1 .line, :root:lang(zh) .hero h1 .line, :root:lang(ja) .hero h1 .line { padding: .14em 0 .12em; margin: -.14em 0 -.12em; }
:root:lang(th) .brand-word, :root:lang(th) .card h3, :root:lang(th) .scene-steps b, :root:lang(th) .stats b { line-height: 1.3; }
/* Instant page swaps: the new page fades in rather than flashing */

@keyframes swap-in { from { opacity: 0; transform: translateY(6px); } }

/* ==========================================================================
   v3 — review round 2
   ========================================================================== */

/* Account menu: the Top up button keeps its own colours inside the menu */
.menu-panel a.btn { display: inline-flex; width: auto; min-height: 38px; padding: 0 16px; background: var(--b); color: var(--bi); font-weight: 800; gap: 6px; }
.menu-panel a.btn:hover, .menu-panel a.btn:focus-visible { background: var(--b); color: var(--bi); filter: brightness(1.12); }
.menu-panel a.btn .i { color: inherit; }

/* Entrance animations must not leave a transform behind: that would trap open lists under later rows */
html.js[data-fx="high"] .menu.is-open > .menu-panel > *:not(.menu-sep),
html.js[data-fx="high"] .sel.is-open .sel-opt,
html.js[data-fx="high"] .step-pane:not([hidden]) { animation-fill-mode: backwards; }
.pref:has(.sel.is-open), .field:has(.sel.is-open) { position: relative; z-index: 6; }

/* Doodles: thinner crayon line now that every stroke is drawn twice */
.doodle { stroke-width: 2; }

/* Rating stars: solid and outlined so they read on paper and on cocoa */
.stars { display: inline-flex; gap: 2px; }
.stars .st { width: 18px; height: 18px; fill: #f6b42c; stroke: #a8650a; stroke-width: 2.6; stroke-linejoin: round; }
.stars .st.half { fill: color-mix(in srgb, #f6b42c 45%, transparent); }
.stars .st.off { fill: transparent; stroke: var(--ink-3); stroke-width: 2.4; opacity: .7; }
.review-sum .stars .st { width: 22px; height: 22px; }
.star-input label { color: inherit; }
.star-input .st { display: block; width: 38px; height: 38px; fill: transparent; stroke: var(--ink-3); stroke-width: 2.4; stroke-linejoin: round; transition: fill .15s ease, stroke .15s ease, transform .25s var(--ease-spring); }
.star-input label:hover .st, .star-input label:hover ~ label .st, .star-input input:checked ~ label .st { fill: #f6b42c; stroke: #a8650a; }
.star-input label:hover .st { transform: scale(1.12) rotate(-6deg); }
.star-input input:checked + label .st { animation: pop .4s var(--ease-spring); }

/* ---------- Home hero: fits the first screen ---------- */
.hero { padding-top: clamp(8px, 2.2vh, 32px); }
.hero-grid { min-height: min(780px, calc(100svh - 140px)); }
.hero h1 { font-size: clamp(2.3rem, min(4.6vw, 8.4vh), 4.6rem); }
.hero-sub { margin-top: clamp(14px, 2.4vh, 26px); }
.hero-search { margin-top: clamp(18px, 3vh, 32px); }
.hero-trust { margin-top: clamp(18px, 3vh, 34px); }
.board-wrap { --bw: clamp(118px, min(14vw, 19vh), 190px); }
.board { padding: clamp(14px, 2.2vh, 30px) clamp(14px, 2.2vw, 26px); }
.board-grid { gap: clamp(6px, 1.2vh, 18px) clamp(10px, 1.8vw, 22px); }
.board-item { gap: clamp(4px, .8vh, 10px); padding: 4px; }
.board-item .sticker { --s: clamp(52px, min(6vw, 8.6vh), 90px); }
.board-note { margin-top: clamp(8px, 1.4vh, 18px); }

/* ---------- Scene: the cursor taps "30 days", then presses Buy now ---------- */
.scene .f1 { --a: clamp(0, var(--lp) / .3, 1); --b: clamp(0, (var(--lp) - .45) / .3, 1); --tap: calc(clamp(0, (var(--lp) - .3) / .05, 1) - clamp(0, (var(--lp) - .37) / .05, 1)); --press: calc(clamp(0, (var(--lp) - .8) / .06, 1) - clamp(0, (var(--lp) - .9) / .06, 1)); --ring: clamp(0, (var(--lp) - .84) / .14, 1); }
.cursor { left: calc(18% + 32% * var(--a) - 11px); top: calc(88% - 45.3% * var(--a) + 20.6% * var(--b) - 11px); transform: scale(calc(1 - .35 * (var(--tap) + var(--press)))); transition: none; z-index: 3; }
.scene[data-at="0"] .f-opts .pick { transform: scale(calc(1 + .06 * var(--a) - .05 * var(--tap))); }
.scene[data-at="0"] .f-opts .pick small { color: var(--pink-ink); }
.f1 .f-btn { transform: scale(calc(1 - .06 * var(--press))); }
.f1 .f-btn::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(255, 255, 255, .4); transform: scale(calc(var(--ring) * 14)); opacity: calc((1 - var(--ring)) * min(1, var(--ring) * 30)); }
.f1 .f-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--pink); opacity: calc(var(--ring)); }

/* The disc behind the phone is coloured in with crayon strokes, like the icons */
.scene-stage::before { background: color-mix(in srgb, var(--caramel) 42%, transparent); background-image: none; border-radius: 0;
  -webkit-mask: url(/assets/brand/hatch-disc.svg) center / contain no-repeat; mask: url(/assets/brand/hatch-disc.svg) center / contain no-repeat; }
:root[data-theme="dark"] .scene-stage::before { background: rgba(239, 192, 143, .22); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scene-stage::before { background: rgba(239, 192, 143, .22); } }

/* ---------- Order timeline: even gaps, the live step runs ---------- */
.timeline { gap: 0; }
.timeline li { padding-top: 30px; padding-right: 8px; }
.timeline li::before { top: 7px; left: 24px; right: 8px; height: 6px; border-radius: 3px; background: var(--tint-2); }
.timeline li:last-child::before { display: none; }
.timeline li::after { top: 2px; width: 16px; height: 16px; }
.timeline li.done::before { background: var(--ok); }
.timeline li.done:has(+ li.now)::before, .timeline li.now::before {
  background: repeating-linear-gradient(-45deg, var(--ok) 0 6px, color-mix(in srgb, var(--ok) 40%, transparent) 6px 12px);
  background-size: 17px 100%; }
.timeline li.now::before { background: repeating-linear-gradient(-45deg, var(--warn) 0 6px, color-mix(in srgb, var(--warn) 35%, transparent) 6px 12px); background-size: 17px 100%; }
html.js[data-fx="high"] .timeline li.done:has(+ li.now)::before, html.js[data-fx="high"] .timeline li.now::before { animation: stripes .7s linear infinite; }
@keyframes stripes { to { background-position: 17px 0; } }
.timeline li.done::after { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
@media (max-width: 760px) { .timeline li:nth-child(2)::before { display: block; } }

/* ---------- Stepper (dialogs): numbered dots joined by a pencil line ---------- */
.stepper { gap: 0; margin-bottom: 8px; }
.stepper li { position: relative; justify-items: center; gap: 6px; text-align: center; font-size: .78rem; }
.stepper li::before { content: counter(st); position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--line-2); font: 800 .82rem/1 var(--f-body); color: var(--ink-3); transition: background-color .3s, color .3s, box-shadow .3s, transform .4s var(--ease-spring); }
.stepper li::after { content: ""; position: absolute; top: 14px; left: calc(50% + 21px); right: calc(-50% + 21px); height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 11px); }
.stepper li:last-child::after { display: none; }
.stepper li span::before { content: none; }
.stepper li span { max-width: 100%; }
.stepper li.done::before { content: "✓"; background: var(--ok); color: #fff; box-shadow: none; font-size: .95rem; }
.stepper li.done::after { background: var(--ok); }
.stepper li.now::before { background: var(--ink); color: var(--bg); box-shadow: 0 0 0 5px color-mix(in srgb, var(--pink) 25%, transparent); transform: scale(1.06); }
.stepper li.now { color: var(--ink); }
:root[data-theme="dark"] .stepper li.now::before { background: var(--honey); color: #2a1a10; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stepper li.now::before { background: var(--honey); color: #2a1a10; } }

/* ---------- 2FA set-up: centred steps, key on request ---------- */
.step-pane.center { justify-items: center; text-align: center; }
.step-pane.center .step-nav { width: 100%; }
.step-pane.center .app-chips { justify-content: center; max-width: 420px; }
.pane-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--tint); color: var(--caramel); }
.pane-ic .i { width: 30px; height: 30px; }
.qr-lg { width: 210px; height: 210px; box-shadow: 0 0 0 1px var(--line), var(--lift); }
.key-alt { width: 100%; max-width: 440px; }
.key-alt > button { display: inline-flex; align-items: center; gap: 4px; background-image: none; }
.key-alt > button .chev { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.key-alt > button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.key-alt .secret { text-align: left; }
.step-pane.center .otp-in { width: 100%; }

/* ---------- Deals view ---------- */
.sale-hero { position: relative; display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); padding: clamp(22px, 4vw, 44px); border-radius: var(--r-xl); background: var(--pink-soft); overflow: hidden; isolation: isolate; }
.sale-hero .h-ic { flex: none; display: grid; place-items: center; width: clamp(64px, 8vw, 92px); height: clamp(64px, 8vw, 92px); border-radius: 28px; background: var(--pink); color: #fff; transform-origin: 30% 15%; box-shadow: 0 18px 30px -16px var(--pink); }
.sale-hero .h-ic .i { width: 46%; height: 46%; }
html.js[data-fx="high"] .sale-hero .h-ic { animation: tag-swing 2.6s ease-in-out infinite; }
@keyframes tag-swing { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.sale-hero h1 { color: var(--pink-ink); font-size: clamp(2.2rem, 5vw, 4rem); }
.sale-hero .kicker { margin-bottom: 6px; }
.sale-hero .lead { margin: 10px 0 0; }
.sale-hero .doodle { z-index: -1; }
.sale-hero .sh1 { width: 56px; right: 22%; top: 14%; }
.sale-hero .sh2 { width: 40px; right: 8%; bottom: 16%; }
.sale-hero .sh3 { width: 34px; right: 34%; bottom: 10%; }
.sale-hero .sale-all { position: absolute; top: 18px; right: 18px; background: var(--surface); }
html.js .sale-hero > div { animation: rise-in .7s var(--ease-out) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
.filters a[data-sale][aria-pressed="true"] { background: var(--pink); color: #fff; }
.filters a.just-on { animation: pop-on .6s var(--ease-spring); }
@keyframes pop-on { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: none; } }
.fly-tag { position: fixed; z-index: 96; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--pink); color: #fff; box-shadow: var(--float); pointer-events: none; }
.fly-tag .i { width: 20px; height: 20px; }
:root[data-theme="dark"] .sale-hero h1 { color: var(--pink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sale-hero h1 { color: var(--pink); } }
@media (max-width: 760px) { .sale-hero { flex-direction: column; align-items: flex-start; } .sale-hero .sale-all { position: static; } }

/* ---------- Sign-in art: stickers orbit the logo, the scene follows the pointer ---------- */
@property --spin { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.auth-art { --mx: 0; --my: 0; min-height: 560px; }
.auth-art::before { width: 62%; }
.auth-disc { position: absolute; z-index: -1; width: min(88%, 520px); aspect-ratio: 1; background: color-mix(in srgb, var(--caramel) 30%, transparent);
  -webkit-mask: url(/assets/brand/hatch-disc.svg) center / contain no-repeat; mask: url(/assets/brand/hatch-disc.svg) center / contain no-repeat;
  translate: calc(var(--mx) * 12px) calc(var(--my) * 12px); transition: translate .5s var(--ease-out); }
html.js[data-fx="high"] .auth-disc { animation: spin 90s linear infinite; }
.auth-orbit { position: absolute; inset: 0; translate: calc(var(--mx) * -26px) calc(var(--my) * -26px); transition: translate .5s var(--ease-out); }
html.js[data-fx="high"] .auth-orbit { animation: orbit 46s linear infinite; }
@keyframes orbit { to { --spin: 360deg; } }
.orb { --R: clamp(150px, 17vw, 230px); --ang: calc(360deg / var(--n) * var(--k) + var(--spin)); position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(var(--ang)) translateX(var(--R)) rotate(calc(-1 * var(--ang))); }
.orb .sticker { --s: clamp(50px, 5vw, 64px); box-shadow: 0 0 0 4px var(--sticker-edge), 0 12px 22px -10px rgba(var(--shadow-ink), .45); }
html.js[data-fx="high"] .orb .sticker { animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--k) * -.8s); }
html.js .orb { animation: orb-in .8s var(--ease-spring) both; animation-delay: calc(var(--k) * 90ms + 200ms); }
@keyframes orb-in { from { opacity: 0; } }
.auth-logo { position: relative; z-index: 2; width: min(60%, 330px); translate: calc(var(--mx) * 16px) calc(var(--my) * 16px); transition: translate .4s var(--ease-out); }
.auth-logo img.logo { width: 100%; filter: drop-shadow(0 18px 24px rgba(var(--shadow-ink), .18)); }
html.js .auth-logo { animation: logo-in 1s var(--ease-spring) both; }
@keyframes logo-in { from { opacity: 0; transform: scale(.8) rotate(-6deg); } }
html.js[data-fx="high"] .auth-art .doodle { animation: twinkle 3.2s ease-in-out infinite; }
html.js[data-fx="high"] .auth-art .a2 { animation-delay: -1.1s; }
html.js[data-fx="high"] .auth-art .a3 { animation-delay: -2.2s; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(-6deg); opacity: 1; } 50% { transform: scale(1.18) rotate(8deg); opacity: .75; } }
.auth-art blockquote { z-index: 3; }
.auth-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.auth-steps li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink-2); }
.auth-steps span { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--ink); font: 800 .85rem/1 var(--f-body); }
.auth-alt .link .i { width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- Support chat: who said what ---------- */
.thread { gap: 16px; }
.msg-row { display: flex; gap: 10px; align-items: flex-end; max-width: min(86%, 640px); }
.msg-row.me { flex-direction: row-reverse; margin-left: auto; }
.msg-av { width: 38px; height: 38px; font-size: .95rem; flex: none; box-shadow: none; }
.staff-av { background: var(--tint); overflow: hidden; box-shadow: 0 0 0 2px var(--pink-soft); }
.staff-av img { width: 88%; margin-top: 10%; }
.msg-col { display: grid; gap: 4px; min-width: 0; }
.msg-row.me .msg-col { justify-items: end; }
.msg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .78rem; color: var(--ink-3); font-weight: 700; padding: 0 4px; }
.msg-row.me .msg-meta { flex-direction: row-reverse; }
.msg-meta b { color: var(--ink); font-size: .86rem; }
.msg-meta .role { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: var(--pill); background: var(--tint); font-size: .7rem; font-weight: 800; color: var(--ink-2); }
.msg-meta .role.is-staff { background: var(--pink-soft); color: var(--pink-ink); }
.msg-meta .role .i { width: 12px; height: 12px; }
.msg-row .msg { max-width: none; border-radius: 6px 20px 20px 20px; }
.msg-row.me .msg { background: var(--ink); color: var(--bg); border-radius: 20px 6px 20px 20px; }
:root[data-theme="dark"] .msg-row.me .msg { background: #5e3b25; color: #fff4e8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .msg-row.me .msg { background: #5e3b25; color: #fff4e8; } }

/* ---------- Data report (print / save as PDF) ---------- */
.report { max-width: 920px; margin: 0 auto; padding: 28px var(--gut) 60px; }
.report-bar { display: flex; justify-content: space-between; margin-bottom: 26px; }
.report-head { display: flex; align-items: center; gap: 22px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); margin-bottom: 10px; }
.report-head img { width: 140px; }
.report-head h1 { font-size: 1.9rem; }
.report-head p { margin: 4px 0 0; color: var(--ink-2); }
.report section { margin-top: 26px; break-inside: avoid-page; }
.report h2 { font-size: 1.2rem; margin-bottom: 10px; }
.report table { font-size: .86rem; }
.report td, .report th { padding: 8px 10px; }
.report-dl { display: grid; grid-template-columns: 200px 1fr; gap: 6px 16px; margin: 0; }
.report-dl dt { color: var(--ink-3); font-weight: 800; }
.report-dl dd { margin: 0; font-weight: 700; word-break: break-word; }
.report-foot { margin-top: 30px; font-size: .82rem; color: var(--ink-3); }
@media print {
  @page { margin: 14mm; }
  .report { padding: 0; max-width: none; }
  .report-bar, .no-print { display: none !important; }
  .report table th, .report table td { border-top: 1px solid #ddd; }
  :root { --ink: #222; --ink-2: #444; --ink-3: #666; }
}
@media (max-width: 760px) { .report-dl { grid-template-columns: 1fr; } }
.scene-stage::before { width: min(580px, 125%); max-width: 92vw; }
.timeline li.now::after { background: var(--surface); box-shadow: inset 0 0 0 4px var(--warn); }
.timeline li.done.now { color: var(--ink); }
a.link > .i, button.link > .i { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; }

/* ---------- v4: phone layout pass ---------- */
/* Baht-sign deals view: the filter chip stays plain until the flying tag lands on it */
.fly-tag { left: 0; top: 0; will-change: transform; }
.filters a[data-sale].is-pending { background: var(--surface) !important; color: var(--ink-2) !important; box-shadow: inset 0 0 0 1.5px var(--line-2) !important; }

/* Amount presets share one row, however many there are */
.amounts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.amounts button { min-width: 0; padding: 6px 6px; font-size: clamp(.86rem, 3.6vw, 1rem); }

/* Wallet card: a glint sweeps across it when the amount changes, and now and then on its own */
.wcard .wc-glint { position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; overflow: hidden; }
.wcard .wc-glint::before { content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 244, 228, .38), transparent); transform: skewX(-18deg); will-change: transform; }
.wcard.shine .wc-glint::before { animation: glint .9s var(--ease-out); }
html.js[data-fx="high"] .wcard .wc-glint::before { animation: glint 1.1s 1.2s var(--ease-out), glint 1.1s 7s var(--ease-out) infinite; }
html.js[data-fx="high"] .wcard.shine .wc-glint::before { animation: glint .9s var(--ease-out); }
@keyframes glint { from { transform: translateX(0) skewX(-18deg); } to { transform: translateX(480%) skewX(-18deg); } }
.wcard .wc-amt { position: relative; z-index: 2; }

/* Long-press ring on touch stickers */
.board-item { -webkit-touch-callout: none; --s: clamp(52px, min(6vw, 8.6vh), 90px); }
@media (pointer: coarse) { .board-item { touch-action: pan-y; cursor: default; } }
.board-item::after { content: ""; position: absolute; left: 50%; top: calc(4px + var(--s, 70px) / 2); width: calc(var(--s, 70px) + 18px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; opacity: 0;
  background: conic-gradient(var(--pink) calc(var(--hp, 0) * 100%), color-mix(in srgb, var(--pink) 18%, transparent) 0); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(closest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); }
.board-item.is-holding::after { opacity: 1; transition: opacity .15s; }
.board-item.is-holding .sticker { transform: rotate(0deg) scale(.94); transition: transform var(--hold, 700ms) ease-out; }
.board-note .on-touch { display: none; }
@media (pointer: coarse) { .board-note .on-touch { display: inline; } .board-note .on-mouse { display: none; } }
.board-note .on-touch .i { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }

@media (max-width: 760px) {
  /* Sheets (account, prefs, shop) sit above the scrim, whole and undimmed */
  html.sheet-up .page { z-index: auto; isolation: auto; }
  html.sheet-up .top { z-index: 90; transform: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .menu-panel { max-height: min(85vh, calc(100dvh - 40px)); overscroll-behavior: contain; }

  /* Rows that squeezed their text: icon + text on one line, actions underneath */
  .set-row { flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; padding: 16px; }
  .set-row .s-ic { width: 42px; height: 42px; border-radius: 13px; }
  .set-row .grow { flex: 1 1 calc(100% - 60px); min-width: 0; }
  .set-row > :not(.s-ic):not(.grow) { flex: 1 1 100%; width: 100%; }
  .set-row > .row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
  .set-row > .row > *, .set-row > .row form .btn, .set-row > form .btn, .set-row > .btn { width: 100%; justify-content: center; }

  .orow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "s g p" "s b b"; gap: 4px 12px; align-items: start; padding: 12px 8px; }
  .orow > .sticker { grid-area: s; align-self: center; }
  .orow .grow { grid-area: g; min-width: 0; }
  .orow .grow b { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .orow .grow small { display: block; font-size: .78rem; }
  .orow .end { display: contents; }
  .orow .end > .num { grid-area: p; font-weight: 800; }
  .orow .end > .row { grid-area: b; justify-content: flex-start !important; flex-wrap: wrap; }

  /* Wallet section on the home page: the card comes right under the heading so tapping an amount visibly changes it */
  .wallet-sec { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .wallet-sec > div:first-child { display: contents; }
  .wallet-sec > div:last-of-type { order: 2; margin: 22px 4px 0; }
  .wallet-sec .wcalc { order: 3; margin-top: 22px; }
  .wcard { border-radius: 26px; padding: 20px 22px; transform: rotate(-1.5deg); }
  .wcard .wc-top img { width: 52px; }
  .compare { gap: 8px; }
  .compare > div { padding: 14px; }
  .compare b { font-size: 1.3rem; }

  /* Pinned scene: header and tab bar slide away while it plays */
  .top, .tabbar, .chat-fab { transition: transform .35s var(--ease-drawer), opacity .25s ease; }
  html.in-scene .top { transform: translateY(-100%); }
  html.in-scene .tabbar { transform: translateY(110%); }
  html.in-scene .chat-fab { opacity: 0; pointer-events: none; }

  /* Account tab strip: tighter pills, momentum scroll, fades on the edges */
  .side { gap: 6px; padding-block: 2px; scroll-padding-inline: var(--gut); -webkit-mask: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
  .side a { min-height: 42px; padding: 0 14px; }
}
/* Scene frames stack in one cell, so the box is as tall as the tallest frame and nothing is clipped;
   on short screens the whole phone scales down (--fit, measured in JS) instead */
.scene .frames { display: grid; height: auto !important; }
.scene .frame { position: relative; inset: auto; grid-area: 1 / 1; }
.scene .device { scale: var(--fit, 1); }
.scene-stage { min-height: 0; }
@media (min-width: 981px) { .scene-stage { min-height: 520px; } }
.scene .cursor { left: calc(var(--c0x, 18%) + (var(--c1x, 50%) - var(--c0x, 18%)) * var(--a) + (var(--c2x, 50%) - var(--c1x, 50%)) * var(--b) - 11px);
  top: calc(var(--c0y, 88%) + (var(--c1y, 43%) - var(--c0y, 88%)) * var(--a) + (var(--c2y, 63%) - var(--c1y, 43%)) * var(--b) - 11px); }

/* Order timeline, centred: dot over each label, bars run dot to dot */
.timeline { gap: 0; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.timeline li { padding: 32px 4px 0; text-align: center; }
.timeline li::after { left: 50%; translate: -50% 0; width: 18px; height: 18px; top: 1px; }
.timeline li::before { display: block !important; top: 7px; left: calc(50% + 15px); right: calc(-50% + 15px); }
.timeline li:last-child::before { display: none !important; }
.timeline small { margin-top: 2px; }
@media (max-width: 760px) {
  .timeline { row-gap: 0; margin-inline: -8px; }
  .timeline li { font-size: .74rem; line-height: 1.3; padding-inline: 2px; }
  .timeline small { font-size: .66rem; }
}
html.js [data-reveal].reveal-now { transition: none !important; }

@keyframes swap-in-part { from { opacity: .35; transform: translateY(6px); } }
.nav > a.nav-link.is-pending { color: var(--ink-2) !important; background: transparent !important; }
.nav > a.nav-link.is-pending .i { color: var(--ink-3) !important; transform: none !important; }
.nav > a.nav-link.just-on { animation: pop-on .6s var(--ease-spring); }

/* Wallet cards never clip their balance: the amount scales with the card, and narrow cards grow taller instead of
   keeping the bank-card ratio (overflow:hidden would otherwise cut the text off) */
.wcard { container-type: inline-size; }
.wcard .wc-amt { font-size: clamp(1.6rem, 12cqi, 3rem); white-space: nowrap; line-height: 1.05; }
@media (max-width: 980px) {
  .wcard, .wallet-hero .wcard { aspect-ratio: auto; min-height: clamp(190px, 52vw, 260px); gap: 14px; }
}
/* Phones: the "On sale" chip lights up on its own (no header link to fly from) */
a.spot-pop { animation: sale-pop .7s var(--ease-spring); position: relative; overflow: hidden; }
a.spot-pop .i { animation: tag-swing .9s var(--ease-out); transform-origin: 30% 20%; }
a.spot-pop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); animation: chip-shine .8s .15s var(--ease-out) forwards; pointer-events: none; }
@keyframes sale-pop { 0% { transform: scale(.85); } 45% { transform: scale(1.14) rotate(-2deg); } 100% { transform: none; } }
@keyframes tag-swing { 0% { transform: rotate(0); } 25% { transform: rotate(-28deg); } 50% { transform: rotate(18deg); } 75% { transform: rotate(-8deg); } 100% { transform: rotate(0); } }
@keyframes chip-shine { to { transform: translateX(120%); } }

/* New page: header and footer stay still, the page's own sections glide up one after another
   (they start partly visible, so it reads as motion rather than a blank flash) */
html.js[data-fx="high"] body.is-swapped-page main > * { animation: page-in .42s var(--ease-out) backwards; }
html.js[data-fx="high"] body.is-swapped-page main > :nth-child(2) { animation-delay: 50ms; }
html.js[data-fx="high"] body.is-swapped-page main > :nth-child(3) { animation-delay: 100ms; }
html.js[data-fx="high"] body.is-swapped-page main > :nth-child(n+4) { animation-delay: 140ms; }
@keyframes page-in { from { opacity: .25; transform: translateY(18px); } }
html.js[data-fx="high"] body.is-swapped-part :is(.acct, .admin, .legal-wrap) > :last-child > * { animation: page-in .36s var(--ease-out) backwards; }
html.js[data-fx="high"] body.is-swapped-part :is(.acct, .admin, .legal-wrap) > :last-child > :nth-child(2) { animation-delay: 40ms; }
html.js[data-fx="high"] body.is-swapped-part :is(.acct, .admin, .legal-wrap) > :last-child > :nth-child(n+3) { animation-delay: 80ms; }
html.js[data-fx="high"] body.is-swapped-list main :is(.grid-cards, .olist) > * { animation: page-in .34s var(--ease-out) backwards; }
html.js[data-fx="high"] body.is-swapped-list main :is(.grid-cards, .olist) > :nth-child(2) { animation-delay: 30ms; }
html.js[data-fx="high"] body.is-swapped-list main :is(.grid-cards, .olist) > :nth-child(3) { animation-delay: 60ms; }
html.js[data-fx="high"] body.is-swapped-list main :is(.grid-cards, .olist) > :nth-child(n+4) { animation-delay: 90ms; }

/* ---------- Product page on phones: buy first, read after ---------- */
.buybar { display: none; }
@media (max-width: 980px) {
  .pdp { gap: 16px; margin-top: 14px; }
  .pdp > div:first-child { display: contents; }
  .pdp .stage { order: 1; aspect-ratio: 16 / 8; border-radius: var(--r-lg); }
  .pdp .stage .sticker { --s: clamp(104px, 28vw, 150px); }
  .pdp .stage .doodle { width: 40px; }
  .pdp .buybox { order: 2; }
  .pdp .pdp-info { order: 3; margin-top: 18px; }
}
@media (max-width: 760px) {
  .buybox { padding: 18px; border-radius: var(--r-lg); }
  .buybox h1 { font-size: clamp(1.5rem, 6.4vw, 1.9rem); }
  .buy-sec { margin-top: 18px; }
  .pdp .opts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin: 0 -18px; padding: 10px 18px 4px; }
  .pdp .opts::-webkit-scrollbar { display: none; }
  .pdp .opts .opt { scroll-snap-align: start; }
  .crumbs { font-size: .8rem; }
  .buybar {
    display: flex; align-items: center; gap: 10px; position: fixed; z-index: 46; left: 0; right: 0; bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: 0 -1px 0 var(--line), 0 -14px 30px -18px rgba(var(--shadow-ink), .35);
    transform: translateY(110%); transition: transform .35s var(--ease-drawer);
  }
  @supports (backdrop-filter: blur(1px)) { .buybar { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); } }
  .buybar.is-on { transform: none; }
  .buybar .bb-mini .sticker { --s: 40px; box-shadow: 0 0 0 1px var(--line); }
  .buybar .bb-price { flex: 1; min-width: 0; line-height: 1.15; }
  .buybar .bb-price small { display: block; font-size: .74rem; font-weight: 800; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar .bb-price b { font: 600 1.3rem/1.1 var(--f-display); }
  .buybar .btn { flex: none; min-height: 48px; padding: 0 22px; }
  html.buybar-on .tabbar { transform: translateY(110%); }
  html.buybar-on .chat-fab { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .tabbar { transition: transform .35s var(--ease-drawer); }
}

/* Timeline bars: green = done, yellow running stripes = the step being worked on now, plain grey = not reached yet */
.timeline li::before { background: var(--tint-2) !important; animation: none !important; opacity: 1 !important; }
.timeline li.done::before { background: var(--ok) !important; }
.timeline li.now::before { background: repeating-linear-gradient(-45deg, #f2b935 0 6px, color-mix(in srgb, #f2b935 40%, transparent) 6px 12px) !important; background-size: 17px 100% !important; }
html.js[data-fx="high"] .timeline li.now::before { animation: stripes .7s linear infinite !important; }
.timeline li.now::after { box-shadow: inset 0 0 0 4px #f2b935 !important; background: var(--surface) !important; }
/* Switching between options of one product: only the chosen option and the changed figures move */
html.js[data-fx="high"] body.is-swapped-option .opt[aria-current="true"] { animation: opt-pick .45s var(--ease-spring); }
@keyframes opt-pick { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: none; } }

/* No visible scrollbars on dialogs, sheets and dropdown lists (they still scroll by wheel, touch and keyboard) */
.dlg, .menu-panel, .sel-list, .notif-list { scrollbar-width: none; -ms-overflow-style: none; }
.dlg::-webkit-scrollbar, .menu-panel::-webkit-scrollbar, .sel-list::-webkit-scrollbar, .notif-list::-webkit-scrollbar { display: none; }
/* Amount presets: up to 4 share one row; 5 or more become a tidy 3-wide grid (2 rows of 3 for six) */
.amounts:has(> :nth-child(5)) { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.amounts:has(> :nth-child(5)) button { min-height: 60px; padding: 8px 6px; font-size: clamp(.92rem, 3.8vw, 1.05rem); }
.amounts button { white-space: nowrap; }

/* Wallet tab waits plain until the "Top up" badge lands on it */
.side a.is-pending[aria-current] { background: transparent !important; color: var(--ink-2) !important; }
.side a.is-pending[aria-current] .i { color: var(--ink-2) !important; }
@media (max-width: 980px) { .side a.is-pending[aria-current] { background: var(--tint) !important; } }
.side a.just-on { animation: pop-on .6s var(--ease-spring); }

/* Sort control: icon + value on wide screens; on phones an icon-only button at the right end of the filter row */
.sel.has-ic .sel-btn .sel-ic { flex: none; width: 18px; height: 18px; color: var(--ink-3); margin-right: 2px; }
@media (max-width: 760px) {
  .toolbar { margin: 14px 0 20px; padding: 6px 0; gap: 10px; }
  .toolbar form { flex-wrap: nowrap; width: 100%; gap: 8px; }
  .toolbar .filters { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .toolbar .filters::-webkit-scrollbar { display: none; }
  .toolbar .filters a { flex: none; }
  .toolbar .sel.has-ic { flex: none; margin-left: auto; position: relative; }
  .toolbar .sel.has-ic .sel-btn { width: 44px; height: 44px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; }
  .toolbar .sel.has-ic .sel-val, .toolbar .sel.has-ic .sel-chev { display: none; }
  .toolbar .sel.has-ic .sel-ic { width: 20px; height: 20px; margin: 0; color: var(--ink); }
  .toolbar .sel.has-ic.is-set .sel-btn::after { content: ""; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--surface); }
  .toolbar .sel.has-ic .sel-list { left: auto; right: 0; min-width: 210px; }
}
@media (max-width: 760px) {
  .toolbar .sel.has-ic { width: 44px !important; min-width: 0; }
  .toolbar .sel.has-ic .sel-btn { position: relative; }
  .toolbar .sel.has-ic.is-set .sel-btn::after { top: 4px; right: 4px; }
}

/* ---------- Page change: the old content (snapshot) lifts away on top while the new content slides in beneath ---------- */
.swap-ghost { position: fixed; z-index: 38; overflow: hidden; pointer-events: none; background: var(--bg); }
@keyframes page-in { from { opacity: 1; transform: translateY(34px) scale(.975); } }
@keyframes part-in { from { opacity: 1; transform: translateX(22px); } }
html.js[data-fx="high"] body.is-swapped-page main > * { animation: page-in .5s cubic-bezier(.16,1,.3,1) backwards; transform-origin: 50% 0; }
html.js[data-fx="high"] body.is-swapped-part :is(.acct, .admin, .legal-wrap) > :last-child > * { animation: part-in .42s cubic-bezier(.16,1,.3,1) backwards; }
html.js[data-fx="high"] body.is-swapped-list main :is(.grid-cards, .olist) > * { animation: page-in .45s cubic-bezier(.16,1,.3,1) backwards; }

/* Avatar letter: always white on the avatar's own colour (both themes); a soft shadow keeps it crisp on the lighter tints.
   .side-user span used to turn it brown and small. */
.avatar, .side-user .avatar { color: #fff; text-shadow: 0 1px 2px rgba(59, 35, 22, .28); font: 600 1.05rem/1 var(--f-display); }
.side-user .avatar { width: 46px; height: 46px; font-size: 1.15rem; }
.avatar-lg { font-size: 1.6rem; }
.swap-ghost { font: 400 17px/var(--lh, 1.55) var(--f-body); color: var(--ink); -webkit-font-smoothing: antialiased; }
@media (max-width: 760px) { .swap-ghost { font-size: 16px; } }

/* ---------- v5: six-box code entry + distinct auth scenes ---------- */
.otp-field { gap: 10px; }
.otp-box { --w: clamp(42px, 11.5vw, 56px); position: relative; width: max-content; max-width: 100%; }
.step-pane.center .otp-box { margin-inline: auto; }
.otp-slots { display: flex; align-items: center; gap: clamp(6px, 1.6vw, 10px); pointer-events: none; }
.otp-slots i { position: relative; display: grid; place-items: center; width: var(--w); height: calc(var(--w) * 1.18); border-radius: 16px; background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-2), 0 2px 0 var(--line); font: 700 calc(var(--w) * .5)/1 var(--f-display); font-style: normal; color: var(--ink);
  font-variant-numeric: tabular-nums; transition: box-shadow .2s ease, background-color .2s ease, transform .25s var(--ease-spring); }
.otp-slots .otp-dash { width: 10px; height: 3px; border-radius: 3px; background: var(--line-2); flex: none; }
.otp-slots i.is-filled { background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--ink-3), 0 2px 0 var(--line); }
html.js[data-fx="high"] .otp-slots i.is-pop { animation: otp-pop .32s var(--ease-spring); }
@keyframes otp-pop { 0% { transform: translateY(6px) scale(.86); } 60% { transform: translateY(-3px) scale(1.06); } }
.otp-box.is-focus .otp-slots i.is-active { background: var(--surface); box-shadow: inset 0 0 0 2px var(--pink), 0 0 0 4px var(--pink-soft); transform: translateY(-2px); }
.otp-box.is-focus .otp-slots i.is-active::after { content: ""; position: absolute; width: 2px; height: 46%; border-radius: 2px; background: var(--pink); animation: otp-caret 1s steps(1) infinite; }
.otp-box.is-focus .otp-slots i.is-active.is-filled::after { display: none; }
@keyframes otp-caret { 50% { opacity: 0; } }
.otp-real { position: absolute; inset: 0; z-index: 1; width: 100% !important; height: 100% !important; padding: 0 !important; border: 0 !important; background: transparent !important;
  box-shadow: none !important; color: transparent !important; caret-color: transparent; font-size: 16px; letter-spacing: 0; opacity: .01; cursor: text; }
.otp-real::selection { background: transparent; }
.otp-box.is-done .otp-slots i { background: var(--ok-soft); box-shadow: inset 0 0 0 2px var(--ok), 0 2px 0 var(--line); color: var(--ok); }
html.js[data-fx="high"] .otp-box.is-done .otp-slots i { animation: otp-done .45s var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes otp-done { 40% { transform: translateY(-6px); } }
.otp-box.is-bad .otp-slots i { box-shadow: inset 0 0 0 2px var(--bad), 0 2px 0 var(--line); }
html.js .otp-box.is-bad .otp-slots { animation: otp-shake .4s ease; }
@keyframes otp-shake { 20%, 60% { translate: -7px 0; } 40%, 80% { translate: 7px 0; } }

/* Same frame size on every auth page; it stays in view beside a long form. */
.auth { align-content: center; }
.auth-art { align-self: start; position: sticky; top: 96px; height: clamp(520px, calc(100vh - 150px), 660px); min-height: 0; container-type: size; }

/* Join: a wall of stickers drifting past in opposite directions. */
.art-wall::before { display: none; }
.wall { position: absolute; inset: -18% -12%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; rotate: -12deg;
  translate: calc(var(--mx) * -18px) calc(var(--my) * -18px); transition: translate .5s var(--ease-out); }
.wall-col { overflow: hidden; }
.wall-track { display: grid; justify-items: center; gap: 22px; padding-top: 22px; }
.wall .sticker { --s: clamp(64px, 6.4vw, 84px); box-shadow: 0 0 0 4px var(--sticker-edge), 0 14px 24px -12px rgba(var(--shadow-ink), .45); }
.wall-col:nth-child(even) .wall-track { margin-top: -60px; }
html.js[data-fx="high"] .wall-track { animation: wall-up calc(26s + var(--k) * 4s) linear infinite; }
html.js[data-fx="high"] .wall-col:nth-child(even) .wall-track { animation-name: wall-down; }
@keyframes wall-up { to { transform: translateY(-50%); } }
@keyframes wall-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
html.js .wall-col { animation: wall-in .9s var(--ease-spring) both; animation-delay: calc(var(--k) * 110ms + 120ms); }
html.js .wall-col:nth-child(even) { animation-name: wall-in-down; }
@keyframes wall-in { from { opacity: 0; transform: translateY(80px); } }
@keyframes wall-in-down { from { opacity: 0; transform: translateY(-80px); } }
.wall-glow { position: absolute; z-index: 1; width: 92cqmin; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--tint) 55%, color-mix(in srgb, var(--tint) 75%, transparent) 74%, transparent); }
.art-wall .auth-logo { z-index: 2; }
.join-badge { position: absolute; z-index: 3; top: 24%; right: 14%; display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: var(--pink); color: #fff; font: 800 .95rem/1 var(--f-body); box-shadow: 0 0 0 4px var(--surface), 0 10px 20px -8px rgba(var(--shadow-ink), .5); rotate: 8deg; }
.join-badge .i { width: 16px; height: 16px; }
html.js[data-fx="high"] .join-badge { animation: badge-in .7s .7s var(--ease-spring) both, badge-sway 3.6s 1.4s ease-in-out infinite; }
@keyframes badge-in { from { opacity: 0; transform: scale(.3); } }
@keyframes badge-sway { 50% { rotate: -4deg; translate: 0 -4px; } }
.art-wall .doodle { z-index: 3; }
.art-wall .a1 { top: 14%; left: 14%; }
.art-wall .a2 { top: auto; bottom: 30%; right: 12%; }

/* 2FA and password reset: a combination dial turning round the logo. */
.dial { position: absolute; inset: 0; display: grid; place-items: center; }
.ring { position: absolute; aspect-ratio: 1; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--caramel) 50%, transparent); }
.ring.r1 { width: 54cqmin; }
.ring.r2 { width: 76cqmin; border: 12px solid color-mix(in srgb, var(--caramel) 16%, transparent); }
.ring.r3 { width: 96cqmin; border-style: dotted; border-width: 3px; }
.ring i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--pink);
  transform: rotate(calc(var(--a) * 1deg)) translateY(var(--R)); box-shadow: 0 0 0 4px var(--tint); }
.ring.r1 i { --R: -27cqmin; }
.ring.r2 i { --R: -38cqmin; background: #f2b935; }
.ring.r3 i { --R: -48cqmin; background: var(--caramel); width: 10px; height: 10px; margin: -5px; }
.ring i:nth-child(1) { --a: 0; } .ring i:nth-child(2) { --a: 120; } .ring i:nth-child(3) { --a: 240; }
.ring.r2 i:nth-child(2) { --a: 180; } .ring.r3 i:nth-child(2) { --a: 90; } .ring.r3 i:nth-child(3) { --a: 180; } .ring.r3 i:nth-child(4) { --a: 270; }
.dial { translate: calc(var(--mx) * -14px) calc(var(--my) * -14px); transition: translate .5s var(--ease-out); }
html.js[data-fx="high"] .ring.r1 { animation: spin 14s linear infinite; }
html.js[data-fx="high"] .ring.r2 { animation: dial-turn 9s var(--ease-out) infinite; }
html.js[data-fx="high"] .ring.r3 { animation: spin 40s linear infinite reverse; }
@keyframes dial-turn { 0%, 12% { transform: rotate(0); } 30%, 45% { transform: rotate(-110deg); } 63%, 78% { transform: rotate(40deg); } 100% { transform: rotate(0); } }
.art-lock::before { width: 40cqmin; background: var(--surface); box-shadow: 0 20px 40px -24px rgba(var(--shadow-ink), .5); }
.pulse { position: absolute; width: 40cqmin; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--pink); opacity: 0; }
html.js[data-fx="high"] .pulse { animation: pulse-out 3.2s ease-out infinite; }
html.js[data-fx="high"] .pulse.p2 { animation-delay: 1.6s; }
@keyframes pulse-out { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(2.3); } }
.art-lock .auth-logo { width: 34cqmin; }
.lock-badge { position: absolute; z-index: 3; top: calc(50% - 22cqmin); left: calc(50% + 11cqmin); display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px;
  background: var(--ok); color: #fff; box-shadow: 0 0 0 5px var(--surface), 0 14px 24px -10px rgba(var(--shadow-ink), .5); rotate: 10deg; }
.lock-badge .i { width: 28px; height: 28px; }
html.js[data-fx="high"] .lock-badge { animation: badge-in .7s .5s var(--ease-spring) both, lock-tick 4.5s 1.4s ease-in-out infinite; }
@keyframes lock-tick { 0%, 80%, 100% { rotate: 10deg; } 86% { rotate: -6deg; scale: 1.12; } 92% { rotate: 14deg; } }
.art-lock .a1 { top: 10%; left: 10%; } .art-lock .a3 { top: auto; bottom: 30%; left: 8%; }
@media (prefers-reduced-motion: reduce) { .wall-track, .ring, .pulse, .join-badge, .lock-badge, .wall-col { animation: none !important; } }

/* Sign in: greeting bubble, wallet chip and a soft spotlight that follows the mouse. */
.hi-bubble { position: absolute; z-index: 3; top: 26%; left: 54%; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 20px 20px 20px 6px;
  background: var(--surface); color: var(--ink); font: 700 1.05rem/1 var(--f-display); box-shadow: 0 14px 26px -14px rgba(var(--shadow-ink), .55); white-space: nowrap; }
.hi-bubble .wave { display: inline-block; transform-origin: 70% 80%; }
html.js[data-fx="high"] .hi-bubble { animation: bubble-in .7s .9s var(--ease-spring) both, bubble-float 4s 1.6s ease-in-out infinite; }
html.js[data-fx="high"] .hi-bubble .wave { animation: wave 2.4s 1.4s ease-in-out infinite; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(10px) scale(.6); transform-origin: 0 100%; } }
@keyframes bubble-float { 50% { translate: 0 -6px; } }
@keyframes wave { 0%, 60%, 100% { rotate: 0deg; } 10%, 30% { rotate: 18deg; } 20%, 40% { rotate: -10deg; } }
.hi-chip { position: absolute; z-index: 3; bottom: calc(28px + 96px); left: 10%; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font: 800 .86rem/1 var(--f-body); box-shadow: 0 12px 22px -12px rgba(var(--shadow-ink), .6); rotate: -4deg; }
.hi-chip .i { width: 17px; height: 17px; color: var(--honey); }
html.js[data-fx="high"] .hi-chip { animation: badge-in .7s 1.2s var(--ease-spring) both, bubble-float 5s 2s ease-in-out infinite reverse; }
.art-orbit .spot { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(260px circle at calc(50% + var(--mx) * 100%) calc(50% + var(--my) * 100%), color-mix(in srgb, var(--honey) 32%, transparent), transparent 70%); }
.art-orbit:hover .spot { opacity: 1; }
html.js[data-fx="high"] .art-orbit .orb .sticker { transition: scale .3s var(--ease-spring); }

/* Left column extras */
.auth-ic { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; border-radius: 18px; background: var(--pink-soft); color: var(--pink-ink); rotate: -6deg; }
.auth-ic .i { width: 28px; height: 28px; }
html.js[data-fx="high"] .auth-ic { animation: lock-tick 4.5s 1s ease-in-out infinite; }
.auth-steps.flow { position: relative; gap: 0; margin-top: 28px; padding: 18px 20px; border-radius: var(--r-lg, 22px); background: var(--tint); }
.auth-steps.flow li { position: relative; gap: 14px; padding: 9px 0; font-weight: 600; }
.auth-steps.flow li b { font-weight: 700; }
.auth-steps.flow span { width: 38px; height: 38px; background: var(--surface); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-2); position: relative; z-index: 1; }
.auth-steps.flow span .i { width: 18px; height: 18px; }
.auth-steps.flow li:not(:last-child)::before { content: ""; position: absolute; left: 18px; top: calc(50% + 19px); height: calc(100% - 38px); width: 2px; background: var(--line-2); }
.auth-steps.flow li.is-now span { background: var(--pink); color: #fff; box-shadow: 0 0 0 5px var(--pink-soft); }
.auth-steps.flow li.is-now { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .hi-bubble, .hi-bubble .wave, .hi-chip, .auth-ic { animation: none !important; } }
/* Wall: whole columns inside the frame, steady speed whatever the column length. */
.wall { inset: -24% 3%; rotate: -7deg; gap: 14px; }
.wall-track { gap: 18px; padding-top: 18px; }
.wall .sticker { --s: clamp(60px, 5.6vw, 78px); }
html.js[data-fx="high"] .wall-track { animation-duration: calc(34s + var(--k) * 5s); }
.art-orbit .a2 { top: auto; bottom: 36%; right: 6%; }
.hi-bubble { top: 23%; left: 50%; }
.hi-chip { left: 7%; bottom: 150px; }

/* Password reset: a drawn envelope; the letter slides out between its back and its front flaps (7s loop). */
.art-mail::before { width: 84cqmin; }
.env { --T: 7s; position: relative; z-index: 2; width: 66cqmin; aspect-ratio: 400 / 260; margin-top: 12cqmin;
  translate: calc(var(--mx) * 14px) calc(var(--my) * 14px); transition: translate .45s var(--ease-out); }
html.js .env { animation: env-in .9s var(--ease-spring) both; }
html.js[data-fx="high"] .env { animation: env-in .9s var(--ease-spring) both, env-bob 5s 1s ease-in-out infinite; }
@keyframes env-in { from { opacity: 0; transform: translateY(40px) scale(.94); } }
@keyframes env-bob { 50% { transform: translateY(-7px); } }
.env > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.env path, .env rect { stroke-linejoin: round; stroke-width: 22px; }
.e-body { fill: color-mix(in srgb, var(--caramel) 82%, #3b2316); stroke: none; }
.e-flap { fill: color-mix(in srgb, var(--caramel) 74%, #3b2316); stroke: color-mix(in srgb, var(--caramel) 74%, #3b2316); }
.e-inner { fill: color-mix(in srgb, var(--caramel) 66%, #3b2316); stroke: color-mix(in srgb, var(--caramel) 66%, #3b2316); }
.env-back { filter: drop-shadow(0 26px 30px rgba(var(--shadow-ink), .28)); }
.e-side { fill: color-mix(in srgb, var(--caramel) 62%, #fff8f0); stroke: color-mix(in srgb, var(--caramel) 62%, #fff8f0); }
.e-side.r { fill: color-mix(in srgb, var(--caramel) 70%, #fff8f0); stroke: color-mix(in srgb, var(--caramel) 70%, #fff8f0); }
.e-bottom { fill: color-mix(in srgb, var(--caramel) 50%, #fff8f0); stroke: color-mix(in srgb, var(--caramel) 50%, #fff8f0); }
.env-front { z-index: 2; }
.letter { position: absolute; z-index: 1; left: 8%; right: 8%; top: 6%; height: 88%; padding: 3.2cqmin 4cqmin; border-radius: 3cqmin; background: #fffdf9;
  display: grid; align-content: start; justify-items: center; gap: 1.6cqmin; overflow: hidden; transform: translateY(-56%);
  box-shadow: 0 -6px 18px -10px rgba(var(--shadow-ink), .35); }
.letter img.logo { width: 13cqmin; }
.letter img.only-dark { display: none !important; }
.letter img.only-light { display: block !important; }
.letter b { font: 700 4cqmin/1.1 var(--f-display); color: #3b2316; }
.letter i { display: block; width: 86%; height: 1.6cqmin; border-radius: 9px; background: #f1e4d6; }
.letter i.short { width: 58%; }
.lt-btn { display: grid; margin-top: .6cqmin; }
.lt-btn > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 1.2cqmin; padding: 2.2cqmin 3.6cqmin; border-radius: 99px;
  font: 800 2.5cqmin/1 var(--f-body); white-space: nowrap; }
.lt-btn .b1 { background: #3b2316; color: #fff8f0; }
.lt-btn .b2 { background: #2f8a57; color: #fff; opacity: 0; }
.lt-btn .i { width: 2.8cqmin; height: 2.8cqmin; }
.seal { position: absolute; z-index: 3; left: 50%; top: 49%; display: grid; place-items: center; width: 10cqmin; height: 10cqmin; margin: -5cqmin; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f29bb0, var(--pink) 55%, #c9566f); box-shadow: 0 0 0 1.2cqmin color-mix(in srgb, var(--pink) 30%, transparent), 0 6px 12px -4px rgba(var(--shadow-ink), .45); }
.seal svg { width: 52%; fill: #fff; opacity: .92; }
html.js[data-fx="high"] .letter { animation: letter-out var(--T) .6s infinite both; }
html.js[data-fx="high"] .lt-btn .b1 { animation: lt-b1 var(--T) .6s infinite both; }
html.js[data-fx="high"] .lt-btn .b2 { animation: lt-b2 var(--T) .6s infinite both; }
html.js[data-fx="high"] .seal { animation: badge-in .6s .4s var(--ease-spring) both, seal-beat var(--T) .6s infinite; }
@keyframes letter-out {
  0%, 8% { transform: translateY(0); animation-timing-function: cubic-bezier(.2, .9, .3, 1.15); }
  26%, 80% { transform: translateY(-56%); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  94%, 100% { transform: translateY(0); } }
@keyframes lt-b1 { 0%, 46% { opacity: 1; scale: 1; } 48% { scale: .9; } 52% { opacity: 1; scale: 1.04; } 55%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes lt-b2 { 0%, 52% { opacity: 0; scale: .7; } 58% { opacity: 1; scale: 1.06; } 62%, 96% { opacity: 1; scale: 1; } 98%, 100% { opacity: 0; } }
@keyframes seal-beat { 0%, 4%, 100% { scale: 1; } 2% { scale: 1.12; } 54% { scale: 1; } 57% { scale: 1.16; } 60% { scale: 1; } }
.art-mail .m-st { z-index: 3; }
.art-mail .m-st.m0 { top: 8%; right: 9%; rotate: 8deg; } .art-mail .m-st.m1 { top: 34%; left: 5%; rotate: -10deg; } .art-mail .m-st.m2 { top: auto; bottom: 24%; right: 5%; rotate: -6deg; }
.art-mail .a1 { top: 9%; left: 13%; } .art-mail .a2 { top: auto; bottom: 26%; left: 8%; }
@media (prefers-reduced-motion: reduce) { .env, .letter, .lt-btn span, .seal { animation: none !important; } }
.m-st { position: absolute; }
.m-st .sticker { --s: clamp(52px, 5vw, 66px); box-shadow: 0 0 0 4px var(--sticker-edge), 0 12px 22px -10px rgba(var(--shadow-ink), .45); }
html.js[data-fx="high"] .m-st .sticker { animation: bob 5s ease-in-out infinite; }
html.js[data-fx="high"] .m-st.m1 .sticker { animation-delay: -1.6s; } html.js[data-fx="high"] .m-st.m2 .sticker { animation-delay: -3.2s; }

/* ---------- v6: image placeholders, rich toasts, live notifications ---------- */

/* A picture that has not arrived yet shows a drawn stand-in (the brand's monogram, an icon), never a blank box.
   Without JS nothing is hidden; if JS never boots, pictures show anyway after a moment. */
.ph-host { position: relative; }
.ph-host > .ph { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: var(--ink-3); opacity: .45; }
.ph-host > .ph .i { width: 42%; height: 42%; stroke-width: 1.6; }
.ph-host > img { position: relative; transition: opacity .35s ease; }
/* once the picture is there the stand-in is gone completely, so nothing ever shows through a transparent logo */
html:not(.js) .ph-host > .ph, .ph-host.is-loaded > .ph { display: none; }
html.js .ph-host:not(.is-loaded) > img { opacity: 0; }
html.js:not(.booted) .ph-host:not(.is-loaded) > img { animation: ph-show 0s 6s forwards; }
html.js:not(.booted) .ph-host:not(.is-loaded) > .ph { animation: ph-hide 0s 6s forwards; }
@keyframes ph-show { to { opacity: 1; } }
@keyframes ph-hide { to { opacity: 0; } }
html.js[data-fx="high"] .ph-host:not(.is-loaded):not(.is-broken) > .ph { animation: ph-breathe 1.3s ease-in-out infinite; }
@keyframes ph-breathe { 50% { opacity: .2; } }
/* the file is missing or broken: the picture stand-in stays */
.ph-host.is-broken > img { display: none; }
.cat-ic.ph-host > img { z-index: 1; }
/* cover photos fade in over the brand-coloured stage (the sticker already sits on it) */
.ph-cover > img.cover { transition: opacity .45s ease; }

/* ---------- Toasts with a title, an icon per event and a link ---------- */
.toast .t-body { flex: 1; min-width: 0; display: grid; gap: 3px; padding-top: 2px; line-height: 1.4; }
.toast .t-body span { flex: initial; padding: 0; }
.toast .t-title { font: 600 1.05rem/1.25 var(--f-display); letter-spacing: -.005em; }
.toast-rich .t-msg { font-weight: 600; opacity: .86; }
.toast-rich .t-ic, .toast-live .t-ic { width: 36px; height: 36px; border-radius: 12px; }
.toast-rich .t-ic .i, .toast-live .t-ic .i { width: 19px; height: 19px; }
.toast-info .t-ic { background: var(--honey); color: #3b2316; }
.toast .t-link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); color: inherit; font: 800 .85rem/1 var(--f-body); text-decoration: none; transition: background-color .2s ease; }
.toast .t-link:hover { background: rgba(255, 255, 255, .24); }
.toast .t-link .i { width: 14px; height: 14px; }
:root[data-theme="dark"] .toast .t-link { background: rgba(42, 26, 16, .1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast .t-link { background: rgba(42, 26, 16, .1); } }
/* live notifications: the icon is coloured by what happened */
.toast-live .t-ic { background: var(--pink); color: #fff; }
.toast-k-order .t-ic { background: #6fcf97; color: #143222; }
.toast-k-wallet .t-ic, .toast-k-promo .t-ic { background: var(--honey); color: #3b2316; }
.toast-k-security .t-ic, .toast-k-pay .t-ic { background: #f2994a; color: #3b1d06; }
.toast-k-support .t-ic { background: #8c9eea; color: #141a3a; }
.toast-k-admin .t-ic { background: var(--caramel); color: #fff; }
html.js[data-fx="high"] .toast-live .t-ic, html.js[data-fx="high"] .toast[data-party] .t-ic { animation: t-ring .9s .25s var(--ease-spring) both; }
@keyframes t-ring { 0% { transform: scale(.4) rotate(-20deg); } 45% { transform: scale(1.15) rotate(8deg); } 70% { transform: rotate(-6deg); } }

/* numbers that change without a page load (bell count, wallet pill) give a small bump */
.is-bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 30% { transform: scale(1.25); } }
.notif.is-new { animation: notif-in .5s var(--ease-out) both; }
@keyframes notif-in { from { opacity: 0; transform: translateY(-8px); background: var(--pink-soft); } }
.admin-side a[data-bell] .dot-count { position: static; margin-left: auto; box-shadow: none; }

/* ---------- Wallet on phones: top up comes right after the balance, then bonus tiers, then gift codes ---------- */
@media (max-width: 980px) {
  .wallet-hero .w-left { display: contents; }
  .wallet-hero .wcard { order: 1; }
  .wallet-hero .w-topup { order: 2; }
  .wallet-hero .w-bonus { order: 3; }
  .wallet-hero .w-redeem { order: 4; }
}
@media (prefers-reduced-motion: reduce) { .ph-host > .ph, .toast-live .t-ic, .is-bump, .notif.is-new { animation: none !important; } }
.pp-wait { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--honey); color: #3b2316; }
.pp-wait .i { width: 30px; height: 30px; }
html.js[data-fx="high"] .pp-wait .i { animation: spin 6s linear infinite; }

/* Phones: the filter row scrolls sideways, which also clips anything outside it. Room around the chips lets the
   "On sale" pop (it grows ~12%) show in full instead of being cut at the top and bottom. */
@media (max-width: 760px) {
  .toolbar .filters { padding: 8px 10px; margin: -8px -10px; scroll-padding-inline: 10px; }
}

/* ---------- Admin v2: calm, plain, one thing at a time ---------- */
.admin-main { max-width: 1080px; padding-bottom: 120px; }
.admin-side { gap: 1px; }
.admin-side .side-h { margin: 16px 14px 4px; font: 800 .7rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.admin-side .side-h:empty { margin: 10px 14px; border-top: 1px solid var(--line); }
.admin-side a { min-height: 42px; position: relative; }
.adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.adm-head h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.adm-head p { margin: 0; max-width: 62ch; color: var(--ink-2); }
.adm-head-act { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-head-act form { margin: 0; }
.crumb { margin: 0 0 8px; }
.crumb a { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: .9rem; color: var(--ink-2); }
.crumb .i { width: 16px; height: 16px; }
.sub-h { margin: 22px 0 10px; font-size: 1.05rem; }

/* Things that need the shop owner now */
.todo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.todo { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 18px; border-radius: var(--r-lg); background: var(--surface);
  box-shadow: 0 0 0 1px var(--line); color: var(--ink-2); transition: transform .2s var(--ease-out), box-shadow .2s ease; }
.todo:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-2), 0 14px 26px -18px rgba(var(--shadow-ink), .5); }
.todo-ic { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--ink-3); }
.todo-n { font: 600 2rem/1 var(--f-display); color: var(--ink-3); }
.todo-l { grid-column: 1 / -1; font-weight: 800; color: var(--ink); display: grid; gap: 2px; margin-top: 8px; }
.todo-l small { font-weight: 600; color: var(--ink-3); }
.todo-go { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 800; font-size: .88rem; color: var(--pink-ink); }
.todo-go .i { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.todo:hover .todo-go .i { transform: translateX(3px); }
.todo.is-hot { box-shadow: 0 0 0 2px var(--pink), 0 14px 26px -20px rgba(var(--shadow-ink), .5); }
.todo.is-hot .todo-ic { background: var(--pink); color: #fff; }
.todo.is-hot .todo-n { color: var(--ink); }

/* Collapsible sections */
.fold { margin: 0 0 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: clip; }
.fold.is-moving { overflow: hidden; }
.fold > summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; border-radius: var(--r-lg); user-select: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:hover { background: color-mix(in srgb, var(--tint) 60%, transparent); }
.fold > summary:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; }
.fold-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--tint); color: var(--ink-2); }
.fold > summary .cat-ic { width: 38px; height: 38px; border-radius: 12px; }
.fold > summary .cat-ic .i { width: 20px; height: 20px; }
.fold-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fold-t b { font: 600 1.1rem/1.25 var(--f-display); color: var(--ink); }
.fold-t small { color: var(--ink-3); font-weight: 600; font-size: .86rem; }
.fold-chev { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ink-3); transition: transform .26s var(--ease-out), background-color .2s; }
.fold[open] > summary .fold-chev { transform: rotate(180deg); }
.fold-body { display: grid; gap: 18px; padding: 4px 20px 22px; }
.fold-new { box-shadow: 0 0 0 1.5px var(--line-2); background: color-mix(in srgb, var(--surface) 70%, var(--tint)); }
.fold-new > summary .fold-ic { background: var(--pink); color: #fff; }
details.more > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 800; font-size: .88rem; color: var(--ink-2); list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "›"; transition: transform .2s ease; }
details.more[open] > summary::after { transform: rotate(90deg); }
.adm-form { display: block; }

/* One field, every language */
.ml { display: grid; gap: 8px; }
.ml-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ml-label { font-weight: 800; font-size: .92rem; }
.ml-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--tint); }
.ml-tabs button { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px; font: 800 .76rem/1 var(--f-body); color: var(--ink-3); transition: background-color .2s, color .2s; }
.ml-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(var(--shadow-ink), .18); }
.ml-tabs button i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.ml-tabs button.has i { background: var(--ok); }
.ml-pane input, .ml-pane textarea { width: 100%; }
.ml-hint { color: var(--ink-2); font-size: .84rem; }
html.js[data-fx="high"] .ml-pane:not([hidden]) { animation: ml-in .22s var(--ease-out); }
@keyframes ml-in { from { opacity: .3; transform: translateY(3px); } }

/* On/off switch with a label */
.switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tgl { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--tint); cursor: pointer; }
.tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tgl .sw { flex: none; position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); transition: background-color .2s ease; }
.tgl .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease-spring); }
.tgl input:checked + .sw { background: var(--ok); }
.tgl input:checked + .sw::after { transform: translateX(18px); }
.tgl input:focus-visible + .sw { outline: 2px solid var(--pink); outline-offset: 2px; }
.tgl b { display: block; font-weight: 800; }
.tgl small { display: block; color: var(--ink-2); font-size: .84rem; margin-top: 2px; }
.tgl.sm { padding: 0; background: none; align-items: center; gap: 8px; }
.tgl.sm .sw-txt { font-weight: 800; font-size: .84rem; color: var(--ink-2); min-width: 56px; }

/* Delivery choice as two big cards */
.choice-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ccard { cursor: pointer; }
.ccard input { position: absolute; opacity: 0; }
.ccard > span { display: grid; gap: 4px; align-content: start; height: 100%; padding: 16px; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .2s, background-color .2s; }
.ccard .i { color: var(--ink-3); }
.ccard small { color: var(--ink-2); }
.ccard input:checked + span { box-shadow: inset 0 0 0 2px var(--ink); background: var(--tint); }
.ccard input:checked + span .i { color: var(--pink); }
.ccard input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }

.input-group { display: flex; align-items: stretch; }
.input-group > input { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > select { width: auto; border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }
.input-group .ig-pre { display: grid; place-items: center; padding: 0 12px; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--tint); color: var(--ink-3); font-weight: 700; font-size: .9rem; }
.input-group .ig-pre + input { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.upload { display: flex; align-items: center; gap: 14px; }
.upload .sticker img[hidden] { display: none; }
.color-in { padding: 4px !important; height: 48px; max-width: 120px; }
.form-actions { gap: 10px; align-items: center; }
.preset-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-preview span { padding: 8px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 800; }

/* Save bar that follows you down the form */
.savebar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 12px 12px 20px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 0 0 1px var(--line), 0 18px 34px -16px rgba(var(--shadow-ink), .45); }
@supports (backdrop-filter: blur(1px)) { .savebar { backdrop-filter: blur(12px); } }
.savebar-msg { flex: 1; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--ink-3); }
.savebar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.savebar.is-dirty .dot { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.savebar.is-dirty .savebar-msg { color: var(--ink); }
html.js[data-fx="high"] .savebar.is-dirty { animation: bar-nudge .5s var(--ease-spring); }
@keyframes bar-nudge { 40% { transform: translateY(-4px); } }

/* Catalogue list */
.adm-tools { position: sticky; top: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 -6px 16px; padding: 10px 6px; background: var(--bg); }
.adm-search { flex: 1 1 260px; }
.adm-tools .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-tools .chip { padding: 0 14px; }
.adm-tools .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.adm-tools .chip b { margin-left: 4px; opacity: .6; }
.adm-tools .chip .warn-n { color: var(--warn); opacity: 1; }
.plist { display: grid; gap: 4px; }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; align-items: center; gap: 16px; padding: 8px 10px; border-radius: var(--r); transition: background-color .15s, opacity .2s; }
.prow:hover { background: var(--tint); }
.prow.is-off .prow-main { opacity: .55; }
.prow-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.prow-t { display: grid; gap: 2px; min-width: 0; }
.prow-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-t small { color: var(--ink-3); font-weight: 600; }
.prow .pin { display: inline-flex; align-items: center; gap: 3px; color: var(--pink-ink); }
.prow .pin .i { width: 13px; height: 13px; }
.prow form { margin: 0; }
.prow-link { grid-template-columns: minmax(0, 1fr) auto auto; color: inherit; }
.empty-state { display: grid; justify-items: center; gap: 10px; padding: 46px 20px; text-align: center; }
.empty-state > .i { width: 40px; height: 40px; color: var(--ink-3); }

/* Category icon picker */
.icon-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.icon-pick legend { font-weight: 800; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.icon-pick legend small { display: block; font-weight: 600; color: var(--ink-2); font-size: .84rem; margin-top: 2px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.icon-grid label { cursor: pointer; }
.icon-grid input { position: absolute; opacity: 0; }
.icon-grid span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .15s, color .15s, box-shadow .15s, transform .2s var(--ease-spring); }
.icon-grid span .i { width: 24px; height: 24px; }
.icon-grid span.auto { font: 800 .72rem/1 var(--f-body); }
.icon-grid label:hover span { background: var(--tint); color: var(--ink); }
.icon-grid input:checked + span { background: color-mix(in srgb, var(--c) 22%, var(--surface)); color: color-mix(in srgb, var(--c) 70%, var(--ink)); box-shadow: inset 0 0 0 2px var(--c); transform: scale(1.06); }
.icon-grid input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }

/* Reject a payment slip: a small pop-over */
details.reject { position: relative; }
details.reject > summary::after { content: none; }
.reject-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; width: min(380px, 80vw); padding: 14px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--float); }

@media (max-width: 980px) {
  .todo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prow { grid-template-columns: minmax(0, 1fr) auto; }
  .prow-stock, .prow-sold { display: none; }
  .prow > .btn { display: none; }
}
@media (max-width: 640px) {
  .switches, .choice-cards { grid-template-columns: minmax(0, 1fr); }
  .fold > summary { padding: 14px 16px; }
  .fold-body { padding: 4px 16px 18px; }
  .savebar { border-radius: var(--r-lg); padding-left: 14px; }
  .adm-tools { position: static; }
}
@media (prefers-reduced-motion: reduce) { .ml-pane, .savebar { animation: none !important; } }

/* Sales chart: each day is a column with its bar on top of the date */
.bars { height: 180px; align-items: stretch; }
.bars > div { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; background: none; min-height: 0; }
.bars > div:hover { background: none; }
.bars > div i { display: block; max-height: calc(100% - 22px); min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--caramel); transition: background-color .2s; }
.bars > div:hover i { background: var(--pink); }
.bars > div span { font: 700 .72rem/1 var(--f-body); color: var(--ink-3); text-align: center; }
.fold-body .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
@media (max-width: 980px) { .fold-body .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.filter-empty { text-align: center; padding: 30px 10px; color: var(--ink-2); }
.input-group > select { flex: none; width: 104px; }
.input-group > input { width: auto; }
.fold-body > form { display: grid; gap: 18px; }
/* currency picker next to the price (JS swaps the select for a styled .sel) */
.input-group > .sel { flex: none; width: 112px; }
.input-group > .sel .sel-btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > input { flex: 1 1 auto; min-width: 80px; }
.fold-body .kpi b { font-size: clamp(1.25rem, 4.6vw, 1.9rem); overflow-wrap: anywhere; }
@media (max-width: 980px) { .admin-side .side-h { display: none; } }
@media (max-width: 640px) {
  .savebar { bottom: 10px; padding: 8px 8px 8px 14px; }
  .savebar:not(.is-dirty) .savebar-msg [data-dirty-msg] { display: none; }
  .savebar .savebar-msg { font-size: .8rem; }
  .savebar .btn-ghost { display: none; }
}
/* Dropdowns (category, currency) open past the edge of a section; only the fold animation itself clips */
.fold { overflow: visible; }
.fold.is-moving { overflow: hidden; }
.fold[open] { position: relative; }
.fold:has(.sel.is-open) { z-index: 7; }

/* ---------- Admin inbox ---------- */
.inbox { display: grid; gap: 8px; }
.inbox-tabs { position: sticky; top: 0; z-index: 4; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -6px 6px; padding: 10px 6px; background: var(--bg); }
.inbox-tabs::-webkit-scrollbar { display: none; }
.inbox-tabs button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 800; font-size: .9rem; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .2s, color .2s, box-shadow .2s; }
.inbox-tabs button .i { width: 16px; height: 16px; }
.inbox-tabs button b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; background: var(--tint); font-size: .76rem; }
.inbox-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.inbox-tabs button[aria-selected="true"] b { background: rgba(255, 255, 255, .18); }
.inbox-tabs button[data-inbox-tab="todo"] b { background: var(--pink); color: #fff; }
.inbox-day { margin: 14px 4px 2px; font: 800 .74rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.inbox-day:first-of-type { margin-top: 4px; }
.inbox-item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: opacity .25s, box-shadow .2s, background-color .25s; }
.inbox-item:hover { box-shadow: 0 0 0 1px var(--line-2), 0 10px 22px -18px rgba(var(--shadow-ink), .5); }
.ib-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tint); color: var(--ink-2); }
.ib-ic .i { width: 21px; height: 21px; }
.t-order .ib-ic { background: #e3f4e8; color: #2f7a4a; }
.t-payment .ib-ic { background: #fdf0d8; color: #9a6411; }
.t-support .ib-ic { background: #e6ebfb; color: #3f4fa0; }
.t-stock .ib-ic { background: #fde6e3; color: #b0443a; }
.t-review .ib-ic { background: #fbeef3; color: var(--pink-ink); }
.ib-title { margin: 0; color: var(--ink-2); font-weight: 600; line-height: 1.4; }
.is-unread .ib-title { color: var(--ink); font-weight: 800; }
.ib-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 0; font-size: .82rem; color: var(--ink-3); font-weight: 700; }
.ib-state { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.ib-state .i { width: 12px; height: 12px; stroke-width: 2.6; }
.ib-state.wait { background: var(--warn-soft); color: var(--warn); }
.ib-state.ok { background: var(--ok-soft); color: var(--ok); }
.ib-act { display: flex; align-items: center; gap: 6px; }
.ib-act form { margin: 0; }
.ib-act .btn .i { width: 15px; height: 15px; }
.ib-dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.ib-dot span { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); transition: transform .2s; }
.ib-dot:hover { background: var(--tint); }
.ib-dot:hover span { transform: scale(.7); }
/* finished jobs step back so open ones stand out */
.inbox-item.is-done:not(.is-unread) { background: transparent; box-shadow: 0 0 0 1px var(--line); }
.inbox-item.is-done .ib-ic { filter: grayscale(.7); opacity: .7; }
.inbox-item.is-unread::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--pink); }
.inbox-empty { display: grid; justify-items: center; gap: 8px; padding: 50px 20px; text-align: center; border-radius: var(--r-xl); background: var(--tint); }
.inbox-empty h2 { margin: 6px 0 0; }
.inbox-empty p { max-width: 44ch; margin: 0; }
html.js[data-fx="high"] .inbox-item:not([hidden]) { animation: ib-in .3s var(--ease-out) backwards; }
@keyframes ib-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 640px) {
  .inbox-item { grid-template-columns: auto minmax(0, 1fr); padding: 12px; gap: 10px 12px; }
  .ib-act { grid-column: 1 / -1; justify-content: space-between; }
  .ib-act form:first-child { flex: 1; }
  .ib-act form:first-child .btn { width: 100%; justify-content: center; }
  .inbox-tabs { position: static; }
}
/* type colours mixed into the surface so they also sit right in dark mode */
.t-order .ib-ic { background: color-mix(in srgb, #3f9a5f 18%, var(--surface)); color: color-mix(in srgb, #3f9a5f 80%, var(--ink)); }
.t-payment .ib-ic { background: color-mix(in srgb, #d99a2b 20%, var(--surface)); color: color-mix(in srgb, #c7871a 80%, var(--ink)); }
.t-support .ib-ic { background: color-mix(in srgb, #6a7fe0 18%, var(--surface)); color: color-mix(in srgb, #5a6fd0 80%, var(--ink)); }
.t-stock .ib-ic { background: color-mix(in srgb, #e0604f 18%, var(--surface)); color: color-mix(in srgb, #d0503f 80%, var(--ink)); }
.t-review .ib-ic { background: color-mix(in srgb, var(--pink) 18%, var(--surface)); color: var(--pink-ink); }

/* Inbox tabs wrap on wide screens (nothing cut off); phones scroll them sideways */
.inbox-tabs { flex-wrap: wrap; overflow: visible; }
.inbox-tabs button[data-inbox-tab="todo"] b { background: var(--tint); color: var(--ink-3); }
.inbox-tabs button[data-inbox-tab="todo"] b.hot { background: var(--pink); color: #fff; }
@media (max-width: 640px) { .inbox-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 6px 10px; margin: 0 -10px 6px; } }

/* ---------- Checkout choices: wallet part, seller price, questions, pay-method dialog ---------- */
.price-big .seller-tag { background: var(--ok-soft); color: var(--ok); }
.usewallet { background: color-mix(in srgb, var(--ok-soft) 55%, var(--surface)); }
.opt-tag-q { font-style: normal; font-weight: 700; color: var(--ink-3); font-size: .82em; }
.ask-note { display: flex; align-items: center; gap: 6px; margin-top: -4px; font-weight: 700; }
.ask-note .i { width: 15px; height: 15px; flex: none; }
.paypick { width: min(480px, calc(100vw - 32px)); }
.paypick-list { display: grid; gap: 10px; }
.ppk { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border: 0; border-radius: var(--r); background: var(--tint); color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: background-color .2s ease, transform .16s var(--ease-out), box-shadow .2s ease; }
.ppk:hover { background: var(--tint-2); }
.ppk:active { transform: scale(.985); }
.ppk:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.ppk .grow { flex: 1; min-width: 0; }
.ppk b { display: block; font-weight: 900; font-size: 1.05rem; }
.ppk small { display: block; color: var(--ink-2); font-weight: 700; font-size: .86rem; margin-top: 2px; }
.ppk > .i { flex: none; color: var(--ink-3); }
.ppk-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--surface); color: var(--caramel); }
.ppk.is-busy { opacity: .7; pointer-events: none; }

/* Admin settings: each gateway's own fee and VAT */
.gw-fees { display: grid; gap: 12px; margin-top: 6px; padding: 16px; border-radius: var(--r); background: color-mix(in srgb, var(--tint) 55%, var(--surface)); }
.gw-fees-h { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; }
.gw-fees-h .i { width: 18px; height: 18px; color: var(--caramel); }
.gw-fees .fee-example { margin: 0; background: var(--surface); }
.seller-set .seg { max-width: 420px; }
.seller-set small.warn { color: var(--warn); font-weight: 800; }

/* Admin: buyer questions on the product editor */
.asks { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.asks-head b { display: block; font-weight: 900; }
.asks-head small { display: block; color: var(--ink-2); font-size: .88rem; margin-top: 2px; }
[data-ask-list] { display: grid; gap: 12px; }
.ask-row { display: grid; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.ask-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ask-n { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.ask-n .i { width: 18px; height: 18px; color: var(--caramel); }
.ask-opts { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 12px; align-items: end; }
.ask-opts .tgl { padding: 11px 14px; }
@media (max-width: 640px) { .ask-opts { grid-template-columns: 1fr 1fr; } .ask-opts .tgl { grid-column: 1 / -1; } }
.asks > [data-ask-add] { justify-self: start; }
.fee-example { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--tint); font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.fee-example b { color: var(--ink); }

/* Admin categories: drag to reorder */
.cat-sort { display: grid; gap: 12px; }
.cat-sort > .fold { margin: 0; }
.drag-h { flex: none; display: grid; place-items: center; width: 34px; height: 44px; margin: -6px 0 -6px -8px; border: 0; border-radius: 12px; background: none; color: var(--ink-3); cursor: grab; touch-action: none; transition: background-color .2s ease, color .2s ease; }
.drag-h:hover { background: var(--tint); color: var(--ink); }
.drag-h:focus-visible { outline: 3px solid var(--pink); outline-offset: 1px; }
.drag-h .i { width: 22px; height: 22px; stroke-width: 3; }
.cat-sort.is-sorting, .cat-sort.is-sorting * { cursor: grabbing !important; user-select: none; }
.fold.is-dragging { position: relative; z-index: 5; box-shadow: var(--float); scale: 1.015; transition: scale .15s ease, box-shadow .15s ease; }

/* "Nothing here" rows in tables span the whole table (display:grid on a cell breaks its colspan) */
td.empty { display: table-cell; padding: 34px 20px; border-radius: var(--r-lg, 18px); text-align: center; color: var(--ink-2); font-weight: 700; }
/* Admin menu on phones and tablets: one even row, the same height on every page */
@media (max-width: 980px) {
  .admin-side { align-items: center; padding: 10px 12px; }
  .admin-side a { min-height: 44px; height: 44px; align-self: center; }
}

/* Admin ticket: the order it is about, one tap to fix it */
.tk-order { display: grid; gap: 14px; }
.tk-o-main { display: flex; align-items: center; gap: 14px; }
.tk-o-main .grow { display: grid; gap: 2px; min-width: 0; }
.tk-o-main b { font-weight: 900; font-size: 1.05rem; }
.tk-o-act { flex-wrap: wrap; gap: 8px; }
.tk-recent { display: grid; gap: 6px; }
.tk-r { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); color: inherit; text-decoration: none; transition: background-color .2s ease; }
.tk-r:hover { background: var(--tint); }
.tk-r .grow { display: grid; min-width: 0; }
.tk-r small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-r > .i { color: var(--ink-3); flex: none; }
@media (max-width: 640px) { .tk-o-main { flex-wrap: wrap; } }
/* One way to pay: shown as what will be used, not as a choice */
.choices.is-single .choice { cursor: default; box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--surface); }
.choices.is-single .choice .radio { display: none; }
.choices.is-single .choice:active { transform: none; }

/* Product reviews: star breakdown and the all-reviews window */
.review-sum { flex-wrap: wrap; }
.rs-avg { display: flex; align-items: center; gap: 18px; flex: 1 1 220px; }
.rs-bars { display: grid; gap: 4px; flex: 1 1 240px; }
.rs-bar { display: grid; grid-template-columns: 34px 1fr 30px; align-items: center; gap: 10px; padding: 3px 6px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 800 .86rem/1 var(--f-body); cursor: pointer; text-align: left; transition: background-color .2s ease; }
.rs-bar:hover:not(:disabled) { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.rs-bar:disabled { cursor: default; opacity: .55; }
.rs-bar i { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.rs-bar em { display: block; height: 100%; border-radius: inherit; background: var(--honey); }
.rs-bar b { text-align: right; color: var(--ink-2); }
.rev-all { margin-top: 12px; }
.rev-dlg { width: min(720px, calc(100vw - 32px)); }
.rev-filters { display: grid; gap: 12px; margin-bottom: 16px; position: sticky; top: -28px; z-index: 2; padding: 10px 0; background: var(--surface); }
.rev-filters .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rev-filters .chip b, .rv-chips .chip b { margin-left: 4px; color: var(--ink-3); font-weight: 800; }
.rev-filters .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.rev-filters .chip[aria-pressed="true"] b { color: inherit; opacity: .7; }
.rev-dlg .review[hidden] { display: none; }

/* Admin reviews: search, filters, cards */
.rv-tools { display: flex; gap: 8px; margin-bottom: 12px; }
.rv-search { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 999px; background: var(--tint); }
.rv-search .i { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 4px 2px; }
.rv-sel { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rv-sel select { min-width: 190px; }
.rv-list { display: grid; gap: 10px; }
.rv { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.rv.is-hidden { opacity: .6; }
.rv-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.rv-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 800; }
.rv-main p { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .rv { flex-wrap: wrap; } .rv form { width: 100%; } .rv form .btn { width: 100%; } .rv-tools .btn { display: none; } }

/* Stock: formats, preview, shown items */
.stock-fmt { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .stock-fmt { grid-template-columns: 1fr; } }
.stock-preview { padding: 12px 14px; border-radius: var(--r-sm); background: var(--tint); }
.stock-preview b { display: block; font-size: .84rem; color: var(--ink-2); margin-bottom: 6px; }
.stock-preview pre, .stock-shown { margin: 0; font: 700 .88rem/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.stock-shown { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--tint); }
.badge .i { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; }

/* Buyer: an account shown field by field, each with its own Copy */
.vault-fields { flex-direction: column; align-items: stretch; }
.vault-fields dl { margin: 0; display: grid; gap: 8px; }
.vf { display: grid; grid-template-columns: minmax(80px, 140px) minmax(0, 1fr); align-items: center; gap: 12px; }
.vf dt { font-weight: 800; color: var(--ink-2); font-size: .9rem; }
.vf dd { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; }
.vf code { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 10px; background: var(--surface); font: 700 .98rem/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; word-break: break-all; }
.vault-fields .vault-actions { justify-content: flex-end; }
@media (max-width: 560px) { .vf { grid-template-columns: 1fr; gap: 4px; } }

/* Scrollbars in the shop's colours (thin, rounded, caramel on cream; light on dark) */
html { scrollbar-color: color-mix(in srgb, var(--caramel) 70%, transparent) transparent; }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--caramel) 55%, transparent) transparent; }
::-webkit-scrollbar { width: 12px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--caramel) 55%, transparent); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--caramel); }
::-webkit-scrollbar-corner { background: transparent; }
.review-sum .rs-bar b { font: 800 .86rem/1 var(--f-body); color: var(--ink-2); }
.review-sum .rs-avg b { font: 600 3rem/1 var(--f-display); }
/* the search field itself is the pill; the magnifier sits inside it */
.rv-tools .rv-search { position: relative; padding: 0; background: none; box-shadow: none; }
.rv-tools .rv-search .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.rv-tools .rv-search input { width: 100%; padding-left: 46px !important; border-radius: 999px !important; }

/* File picker: drop zone with thumbnail, name and Change (the real input lies invisibly on top) */
.filepick { position: relative; display: block; min-width: 0; }
.filepick input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; font-size: 0; }
.fp-face { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); border: 2px dashed transparent; transition: box-shadow .2s ease, background-color .2s ease; }
.filepick:hover .fp-face { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.filepick:focus-within .fp-face { box-shadow: inset 0 0 0 2px var(--ink); }
.filepick.is-over .fp-face { background: var(--tint); box-shadow: inset 0 0 0 2px var(--pink); }
.filepick.has-file .fp-face { background: color-mix(in srgb, var(--ok-soft) 50%, var(--surface)); }
.fp-ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--caramel); overflow: hidden; }
.fp-ic .i { width: 24px; height: 24px; }
.fp-ic img { width: 100%; height: 100%; object-fit: cover; }
.fp-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fp-txt b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-txt small { color: var(--ink-2); font-weight: 600; font-size: .85rem; }
.fp-btn { flex: none; padding: 9px 16px; border-radius: 999px; background: var(--tint); font-weight: 800; font-size: .9rem; }
.filepick:hover .fp-btn { background: var(--tint-2); }
.upload .filepick { flex: 1; }

/* "Opened / Not opened yet" sits under the order status with a little room */
.badge-seen { margin-top: 6px; }
h2 .badge-seen { margin-top: 0; margin-left: 8px; }

/* Toast stack: the box holds the toasts on top of each other; JS sets each one's place (--y, --s) and the box height */
.toasts { display: block; height: 0; pointer-events: auto; transition: height .35s var(--ease-out); scrollbar-width: none; }
.toasts::-webkit-scrollbar { display: none; }
.toasts { perspective: 900px; }
.toasts > .toast { position: absolute; left: 0; right: 0; top: 0; translate: 0 var(--y, 0); scale: var(--s, 1); rotate: x var(--rx, 0deg); opacity: var(--o, 1); transform-origin: 50% 100%;
  transition: translate .42s cubic-bezier(.2, .9, .25, 1), scale .42s cubic-bezier(.2, .9, .25, 1), rotate .3s cubic-bezier(.2, .9, .25, 1), opacity .3s ease, transform .4s var(--ease-out), box-shadow .3s ease; }
.toasts.is-open > .toast { transform-origin: 50% 50%; }
.toasts > .toast > * { transition: opacity .2s ease; }
.toasts > .toast.is-back > * { opacity: 0; }
.toasts > .toast.is-back::after { opacity: 0; }
.toasts > .toast.is-deep { opacity: 0; pointer-events: none; }
.toasts.has-stack:not(.is-open) { cursor: pointer; }
.toasts.is-open { overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.toasts.is-open::after { content: ""; display: block; height: var(--full, 0); }
.toasts.is-open .toast::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .toasts > .toast { transition: opacity .2s ease; } .toasts { transition: none; } }

/* Items locked after an unopened report */
.lock-note { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r); background: var(--bad-soft); color: var(--ink); flex-wrap: wrap; }
.lock-note > .i { flex: none; width: 24px; height: 24px; color: var(--bad); }
.lock-note > div { flex: 1; min-width: 220px; }
.lock-note p { margin: 2px 0 0; color: var(--ink-2); font-size: .9rem; }
.lock-line { margin: 0; color: var(--bad); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.lock-line .i { width: 16px; height: 16px; flex: none; }

.demo-switch { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.demo-switch .tgl { flex: 1; min-width: 260px; background: var(--warn-soft); }

/* Thai QR page: who the money goes to, and the bank-transfer box when the shop takes transfers instead of a QR */
.pp-to { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; font-size: .92rem; color: var(--ink-2); }
.pp-to img, .bank-head img { border-radius: 8px; flex: none; }
.bank-box { align-items: stretch; text-align: left; }
.bank-head { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; }
.bank-dl { display: grid; gap: 10px; margin: 0; }
.bank-dl > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm, 12px); background: var(--bg-2, rgba(0,0,0,.04)); }
.bank-dl dt { font-size: .78rem; color: var(--ink-3, var(--ink-2)); font-weight: 700; }
.bank-dl dd { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 800; }
.bank-dl dd code { font-size: 1.15rem; background: none; padding: 0; letter-spacing: .02em; }
.bank-dl dd .btn { margin-left: auto; }
.sel-img { width: 22px; height: 22px; border-radius: 6px; flex: none; object-fit: contain; vertical-align: middle; margin-right: 8px; }
.sel-opt .sel-img { margin-right: 0; }
.sel-opt:has(.sel-img) { display: flex; align-items: center; gap: 10px; }
.sel-val:has(.sel-img) { display: inline-flex; align-items: center; min-width: 0; }

.sel-opt .sel-img + span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sel-val:has(.sel-img) { display: flex; align-items: center; }
/* Admin → Settings → Thai QR: the rules in plain words, and the slip try-out */
.slip-rules, .slip-try { display: grid; gap: 10px; padding: 16px; border-radius: var(--r); background: color-mix(in srgb, var(--tint) 55%, var(--surface)); }
.slip-try { margin-top: 14px; }
.slip-rules ul, .slip-try-out { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.slip-rules li, .slip-try-out li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.45; }
.slip-rules li .i, .slip-try-out li .i { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ok); }
.slip-rules li.warn .i, .slip-try-out li.is-unknown .i { color: var(--warn, #c58a1a); }
.slip-try-out li.is-bad .i { color: var(--bad); }
.slip-try-out li.is-info .i { color: var(--ink-2); }
.slip-try-out li.is-bad span { color: var(--bad); font-weight: 700; }
[data-slip-form] .sub-h { margin: 10px 0 -4px; }
[data-slip-form] .field em { font-style: normal; font-weight: 600; }
.bank-box .bank-dl, .bank-box > p { width: 100%; }
.bank-box .bank-head { justify-content: center; }

/* ---------- Sign in with Google / Facebook / LINE ---------- */
.social { display: grid; gap: 10px; }
.soc { --b: var(--surface); --bi: var(--ink); box-shadow: inset 0 0 0 2px var(--line-2); justify-content: center; }
.soc .sm { width: 22px; height: 22px; flex: none; }
.soc-facebook { --b: #1877f2; --bi: #fff; box-shadow: none; }
.soc-line { --b: #06c755; --bi: #fff; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .soc-google:hover { --b: var(--tint); }
  .soc-facebook:hover { --b: #166fe0; }
  .soc-line:hover { --b: #05b34c; }
}
.or-line { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-3); font-weight: 800; font-size: .88rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--line); }
.soc-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--ink); }
.soc-ic .sm { width: 22px; height: 22px; }
.soc-ic.soc-facebook { background: #1877f2; color: #fff; }
.soc-ic.soc-line { background: #06c755; color: #fff; }
.soc-row .soc-last { max-width: 220px; text-align: right; }
.soc-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-bottom: 14px; padding: 6px 14px 6px 8px; border-radius: var(--pill); background: var(--tint); font-weight: 800; font-size: .9rem; overflow-wrap: anywhere; }
.soc-chip .sm { width: 20px; height: 20px; flex: none; }
.soc-chip.soc-facebook .sm { color: #1877f2; }
.soc-chip.soc-line .sm { color: #06c755; }
.soc-chip.soc-line .sm text { fill: #fff; }
.soc-adm { display: grid; gap: 12px; padding: 16px; border-radius: var(--r); background: color-mix(in srgb, var(--tint) 55%, var(--surface)); }
.soc-adm-h { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
@media (max-width: 560px) {
  .soc-row { flex-wrap: wrap; }
  .soc-row .soc-last { max-width: none; text-align: left; flex-basis: 100%; }
}
