/* Bitresel design system */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/figtree/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/figtree/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/figtree/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/figtree/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/figtree/figtree-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/figtree/figtree-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }
/* Palette: deep green ink, signal yellow highlight, cool grey surfaces */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f6f5;
  --surface-3: #e8ecea;
  --ink: #002926;
  --ink-2: #3d5654;
  --ink-3: #61716f;
  --line: #dee3e1;
  --brand: #002926;
  --brand-ink: #ffffff;
  --brand-soft: #e3ecea;
  --mint: #ffeb00;
  --mint-ink: #002926;
  --ok: #0b7350;
  --ok-ink: #ffffff;
  --ok-soft: #dcf6ec;
  --warn: #9a5b00;
  --warn-soft: #fff6cc;
  --bad: #c42b43;
  --bad-soft: #fde6ea;
  --night: #0b1310;
  --footer-bg: #dee3e1;
  --page-grey: #f4f6f5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 41, 38, .05), 0 6px 18px rgba(0, 41, 38, .06);
  --font: "Figtree", "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1310; --footer-bg: #101c19; --page-grey: #0f1a17; --surface: #132420; --surface-2: #101c19; --surface-3: #1b2f2a; --ink: #eef5f3; --ink-2: #b5c6c2; --ink-3: #87a09a;
    --line: #233a35; --brand: #ffeb00; --brand-ink: #002926; --ok-ink: #0b1310; --brand-soft: #2a2e10; --mint: #ffeb00; --ok: #3fd69c; --ok-soft: #123627;
    --warn: #f3b54e; --warn-soft: #3a2b10; --bad: #ff7b8f; --bad-soft: #3d1621;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1310; --footer-bg: #101c19; --page-grey: #0f1a17; --surface: #132420; --surface-2: #101c19; --surface-3: #1b2f2a; --ink: #eef5f3; --ink-2: #b5c6c2; --ink-3: #87a09a;
  --line: #233a35; --brand: #ffeb00; --brand-ink: #002926; --ok-ink: #0b1310; --brand-soft: #2a2e10; --mint: #ffeb00; --ok: #3fd69c; --ok-soft: #123627;
  --warn: #f3b54e; --warn-soft: #3a2b10; --bad: #ff7b8f; --bad-soft: #3d1621;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main { flex: 1; padding-bottom: 72px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- announcement + header ---- */
.announce { background: var(--night); color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding: 8px 16px; }
.announce b { color: #ffeb00; }
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .row { display: flex; align-items: center; gap: 18px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.035em; white-space: nowrap; }
.logo img { width: 36px; height: 36px; }
.logo .cart-word { background: #ffeb00; color: #002926; padding: 0 .14em; border-radius: .14em; margin-left: .04em; }
.search { flex: 1; position: relative; max-width: 560px; }
.search input { width: 100%; height: 44px; border-radius: 999px; border: 1.5px solid transparent; background: var(--surface-2); padding: 0 16px 0 42px; outline: none; transition: border-color .15s, background .15s; }
.search input:focus { border-color: var(--ink); background: var(--surface); }
.search input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.country select { height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 10px; max-width: 170px; cursor: pointer; font-weight: 600; }
.icon-btn { position: relative; height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px; border: 0; background: transparent; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer; font-weight: 700; }
.icon-btn:hover { background: var(--surface-2); }
.badge-count { position: absolute; top: 1px; right: 1px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.catnav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; padding-bottom: 6px; min-height: 40px; }
.catnav::-webkit-scrollbar { display: none; }
.catnav a { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.catnav a:hover { color: var(--ink); background: var(--surface-2); }
.catnav a.active { background: var(--ink); color: var(--bg); }

/* ---- common ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .08s ease, background .15s, border-color .15s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 86%, black); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.small { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 999px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer; }
.chip:hover { border-color: var(--ink-3); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--ink-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--ink); font-size: 14px; }
.notice.info { background: var(--brand-soft); }
.notice.error { background: var(--bad-soft); }
.notice svg { flex: none; margin-top: 2px; }
h1, h2, h3 { letter-spacing: -.03em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
.section { margin-top: 56px; }
.band { background: var(--surface-2); padding: 48px 0 56px; margin-top: 56px; }
.band .section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); white-space: nowrap; }
.cc-tag { display: inline-block; font-size: .5em; vertical-align: .35em; margin-left: 6px; color: var(--ink-3); font-weight: 800; }
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-2); }

/* ---- hero ---- */
/* category icon strip */
.catstrip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 48px; border-top: 1px solid var(--line); padding: 22px 2px 10px; }
.catstrip::-webkit-scrollbar { display: none; }
.catstrip a { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 92px; padding: 10px 8px; border-radius: 12px; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.catstrip a:hover { background: var(--surface-2); color: var(--ink); }
.catstrip a .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); transition: background .15s, color .15s; }
.catstrip a:hover .ico { background: var(--ink); color: var(--bg); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 26px; }
.step .num { width: 44px; height: 44px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 18px; }
.step .num.mint { background: var(--mint); color: var(--mint-ink); }
.step .num.ink { background: var(--ink); color: var(--bg); }
.step p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* ---- product grid ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 18px; }
.grid > * { min-width: 0; }
.pcard { text-decoration: none; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pcard .tile { border-radius: var(--radius); transition: transform .15s ease, box-shadow .15s ease; }
.pcard:hover .tile { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 41, 38, .16); }
.pcard .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-3); margin-top: -6px; }
.tile { aspect-ratio: 1.58; display: flex; align-items: center; justify-content: center; padding: 16px; color: #fff; position: relative; overflow: hidden; border-radius: var(--radius-sm); }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%); }
.tile .mono { font-size: 23px; font-weight: 800; letter-spacing: -.03em; text-align: center; position: relative; z-index: 1; line-height: 1.05; text-shadow: 0 1px 2px rgba(0, 0, 0, .15); overflow-wrap: anywhere; }
.tile .cc { position: absolute; right: 10px; bottom: 10px; font-size: 10px; font-weight: 800; letter-spacing: .04em; background: rgba(0, 41, 38, .78); color: #fff; padding: 3px 7px; border-radius: 6px; z-index: 1; }
.tile .chipdots { position: absolute; left: 12px; top: 12px; display: flex; gap: 3px; z-index: 1; opacity: .85; }
.tile .chipdots i { width: 6px; height: 6px; border-radius: 2px; background: rgba(255, 255, 255, .8); }
.tile .chipdots i:nth-child(2) { background: rgba(255, 255, 255, .45); }
.tile.big { border-radius: 22px; }
.tile.big .mono { font-size: 40px; }

/* ---- browse ---- */
.browse { display: grid; grid-template-columns: 230px 1fr; gap: 32px; margin-top: 28px; }
.browse > *, .two-col > *, .product > * { min-width: 0; }
.filters h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 10px; }
.filters a { display: flex; justify-content: space-between; padding: 7px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; }
.filters a:hover { background: var(--surface-2); }
.filters a.active { background: var(--ink); color: var(--bg); }
.filters a span { color: var(--ink-3); font-weight: 500; }
.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.more { display: flex; justify-content: center; margin-top: 28px; }
.cat-scroll { display: none; }

/* ---- product page ---- */
.crumbs { margin: 26px 0 20px; font-size: 14px; color: var(--ink-3); }
.crumbs a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.product .facts { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.product .perks { margin-top: 22px; display: grid; gap: 10px; }
.product .perks div { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); }
.product .perks svg { color: var(--brand); flex: none; }
.buybox { padding: 26px; }
.buybox h1 { font-size: 32px; text-transform: none; }
.label { font-weight: 700; font-size: 14px; margin: 24px 0 10px; display: block; }
.denoms { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.denom { border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px 8px; cursor: pointer; text-align: center; transition: border-color .12s, background .12s; }
.denom b { display: block; font-size: 16px; }
.denom small { color: var(--ink-3); font-size: 12px; }
.denom:hover { border-color: var(--ink-3); }
.denom[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.amount-input { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.amount-input input { width: 170px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 14px; font-size: 17px; font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; font-size: 18px; font-weight: 700; }
.qty button:hover { background: var(--surface-2); }
.qty span { min-width: 34px; text-align: center; font-weight: 700; }
.total-row { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.total-row b { font-size: 28px; letter-spacing: -.03em; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
details.terms { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
details.terms summary { cursor: pointer; font-weight: 700; }
details.terms pre { white-space: pre-wrap; font: 13px/1.6 var(--font); color: var(--ink-2); max-height: 280px; overflow: auto; }

/* ---- cart / checkout ---- */
.two-col { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; margin-top: 30px; }
.line { display: grid; grid-template-columns: 100px 1fr auto; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .tile { border-radius: 10px; padding: 8px; }
.line .tile .mono { font-size: 14px; }
.line .tile .cc, .line .tile .chipdots { display: none; }
.line .right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.link-btn { background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; }
.summary { padding: 24px; position: sticky; top: 130px; }
.summary .row { display: flex; justify-content: space-between; margin: 8px 0; }
.field { display: block; margin: 16px 0; }
.field span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input { width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 14px; }
.field input:focus, .amount-input input:focus { outline: none; border-color: var(--brand); }

/* ---- order page ---- */
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 30px 0 20px; flex-wrap: wrap; }
.order-item { padding: 22px; margin-bottom: 14px; }
.order-item .top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.code-box { margin-top: 14px; border: 1.5px dashed var(--brand); border-radius: 12px; padding: 14px; background: var(--brand-soft); }
.code-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0; }
.code-row code { font: 700 18px var(--mono); letter-spacing: .05em; word-break: break-all; }
.code-row .k { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.timeline { display: flex; gap: 8px; margin-top: 14px; }
.timeline div { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.timeline div.on { background: var(--brand); }

/* ---- footer ---- */
footer { background: #002926; color: #b9cbc7; padding: 48px 0 28px; font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot .logo { color: #fff; }
.foot .logo .cart-word { color: #002926; }
.foot p { margin: 14px 0 0; max-width: 300px; }
.foot h4 { color: #fff; margin: 4px 0 12px; font-size: 14px; }
.foot a { display: block; color: #b9cbc7; text-decoration: none; margin: 0; padding: 10px 0; min-height: 44px; box-sizing: border-box; }
.foot a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8fa8a3; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; opacity: 0; transition: .2s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .product, .two-col { grid-template-columns: 1fr; }
  .product .tile.big { max-width: 420px; }
  .summary { position: static; }
  .browse { grid-template-columns: 1fr; }
  .filters { display: none; }
  .cat-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar .row { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .topbar .search { order: 3; flex-basis: 100%; max-width: none; }
  .nav .label-text { display: none; }
  .country select { max-width: 120px; }
  .stats { gap: 18px; }
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard .meta { flex-wrap: wrap; row-gap: 2px; }
  .country select { max-width: 104px; }
  .tile .mono { font-size: 17px; }
  .line { grid-template-columns: 64px 1fr; }
  .line .right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .buy-actions { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
}
.section[id] { scroll-margin-top: 140px; }
.foot a.logo { display: flex; margin: 0; }

/* ---- brand artwork tiles ---- */
.tile.art { padding: 12% 14%; }
.tile.art::before { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .14), transparent 55%); }
.tile.art img { position: relative; z-index: 1; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; min-width: 0; }
.tile.art.light { box-shadow: inset 0 0 0 1px var(--line); }
.tile.art.light::before { display: none; }
.tile.art.light .cc { background: #002926; color: #fff; }

/* ---- product page (buy box on the right) ---- */
.pd-title { margin-bottom: 26px; }
.pd-title h1 { font-size: clamp(28px, 4vw, 40px); text-transform: none; }
.pd-bullets { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; color: var(--ink-2); font-size: 15px; }
.pd-bullets li { display: flex; gap: 10px; align-items: center; }
.pd-bullets li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); flex: none; }
.product { grid-template-columns: minmax(0, 1fr) 370px; gap: 40px; }
.pd-main { display: grid; gap: 34px; }
.pd-hero { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 26px; align-items: center; }
.pd-hero .tile.big { max-width: 340px; }
.pd-meta { display: grid; gap: 12px; }
.pd-meta .facts, .pd-meta .perks { margin: 0; }
.pd-h2 { font-size: 20px; margin-bottom: 14px; }
.denoms { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.denom { padding: 18px 10px; border-radius: 14px; }
.denom b { font-size: 20px; letter-spacing: -.02em; }
.denom small { font-size: 14px; color: var(--ink-2); }
.accs { display: grid; gap: 10px; }
.acc { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.acc summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; color: var(--brand); }
.acc[open] summary::after { content: "−"; }
.acc-body { padding: 0 20px 18px; color: var(--ink-2); font-size: 14px; }
.acc-body ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.acc-body .pre { white-space: pre-wrap; margin: 0; max-height: 340px; overflow: auto; }
.buybox { position: sticky; top: 130px; padding: 22px; display: grid; gap: 12px; }
.bb-head { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; }
.bb-logo { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bb-logo img { width: 74%; height: 74%; object-fit: contain; }
.bb-logo.gen { background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 20px; }
.bb-name { font-weight: 700; line-height: 1.2; }
.bb-sel { font-size: 14px; color: var(--ink-2); }
.bb-qty select { height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 8px; font-weight: 700; cursor: pointer; }
.bb-total { padding: 6px 0 4px; }
.bb-price { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.bb-note { margin: 2px 0 0; text-align: center; }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .pd-hero { grid-template-columns: 1fr; }
}

/* ---- utilities & accessibility ---- */
.h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.03em; }
.h3 { font-size: 17px; font-weight: 700; }
main#app { min-height: 100vh; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; font-size: 14px; }
.consent p { margin: 0; flex: 1 1 320px; color: var(--ink-2); }
.consent-actions { display: flex; gap: 8px; }
.about .lead { font-size: 18px; color: var(--ink-2); }
.about .person { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.about .person img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.about .person b { font-size: 18px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
main:focus, h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
.wrap.narrow { max-width: 780px; }
.page-title { margin: 30px 0 16px; }
.sub { margin: 6px 0 0; }
.bad-text { color: var(--bad); }
.pre { white-space: pre-wrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .pcard:hover .tile { transform: none; }
}

/* ---- skeleton loading ---- */
.pcard.skeleton .tile, .sk-line { background: var(--surface-3); border-radius: var(--radius); }
.sk-line { height: 12px; border-radius: 6px; width: 80%; }
.sk-line.short { width: 45%; }
.pcard.skeleton .tile, .pcard.skeleton .sk-line { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* ---- search suggestions ---- */
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 30; }
.suggest li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; }
.suggest li[aria-selected="true"] a, .suggest li a:hover { background: var(--surface-2); }
.suggest .sg-all a { color: var(--brand); }
.inline-search { margin: 18px auto; max-width: 420px; }
.inline-search input { padding-left: 16px; }

/* ---- browse controls ---- */
.filters-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 10px; font-weight: 700; }
.sorters { display: flex; gap: 8px; flex-wrap: wrap; }
.sorters select { height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 10px; font-weight: 600; cursor: pointer; }
.retry { display: grid; gap: 12px; justify-items: center; }
.results-head .muted { font-size: 14px; }

/* ---- trust row ---- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 14px; background: var(--surface-2); }
.trust-item .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.trust-item b { display: block; }
.trust-item span { color: var(--ink-2); font-size: 14px; }

/* ---- product extras ---- */
.pd-warn { margin: -10px 0 22px; }
.pill[href] { text-decoration: none; }
.pill[href]:hover { background: var(--brand-soft); color: var(--brand); }
.bb-note { display: flex; gap: 8px; align-items: flex-start; text-align: left; }
.bb-note span { color: var(--brand); flex: none; }

/* ---- cart & checkout ---- */
.line-name { font-weight: 700; text-decoration: none; }
.line.unavailable { opacity: .65; }
.line .qty { margin-top: 8px; }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.summary .row.total { font-weight: 800; font-size: 20px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.summary .notice { margin: 14px 0; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 14px; cursor: pointer; margin: 4px 0 8px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.check > span { display: inline-flex; gap: 8px; align-items: center; }
.check svg { color: var(--brand); }
.gift-fields { padding: 4px 0 2px; }
.field textarea { width: 100%; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 12px 14px; font: inherit; resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--brand); }
.turnstile { margin: 12px 0; min-height: 0; }
.trust-line { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 12px 0 0; }
.trust-line span { color: var(--brand); display: inline-flex; }
.notice + .notice, .notice + .card { margin-top: 12px; }
.two-col > div > .notice { margin-bottom: 12px; }

/* ---- orders ---- */
.oi-head { display: flex; gap: 14px; align-items: center; }
.oi-head .tile { width: 84px; flex: none; padding: 8px; border-radius: 10px; }
.oi-head .tile .mono { font-size: 12px; }
.oi-head .tile .cc, .oi-head .tile .chipdots { display: none; }
.order-item p.muted { margin: 12px 0 0; }
.oh-total { text-align: right; }
.oh-total b { font-size: 22px; }
.order-link { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); margin-bottom: 16px; font-size: 14px; }
.gift-msg { margin: 0 0 18px; padding: 16px 20px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 12px 12px 0; font-size: 17px; font-weight: 600; }
.order-line { grid-template-columns: 1fr auto; text-decoration: none; }
.find-box { padding: 22px; margin-top: 20px; }
.find-box p { margin: 6px 0 14px; }
.find-form { padding: 22px; }

/* ---- legal pages ---- */
.legal section { margin: 22px 0; }
.legal section h2 { margin-bottom: 8px; }
.legal p { color: var(--ink-2); margin: 6px 0; }

/* ---- footer extras ---- */
.foot-h { color: #fff; margin: 4px 0 12px; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.foot .support { font-size: 13px; color: #8fa8a3; }

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

/* ---- currency ---- */
.country.currency select { max-width: 120px; }
.currency-note { margin-top: 2px; }
.foot-bottom a { color: inherit; }
@media (max-width: 640px) {
  .country.currency select { max-width: 96px; }
}
.custom-amount { margin-top: 14px; padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 14px; }
.custom-amount label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.custom-amount.active { border-style: solid; border-color: var(--brand); background: var(--brand-soft); }

/* ---- phone top-ups ---- */
.phone-field { margin: 4px 0 0; }
.phone-field input { font-size: 16px; letter-spacing: .02em; }
.denom.long b { font-size: 14px; line-height: 1.3; }

/* ---- add-to-cart feedback: header subtotal, badge pop, cart drawer ---- */
.cart-total { font-weight: 700; font-size: 13px; color: var(--ink-2); }
.badge-count.bump { animation: bump .45s ease; }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
.in-cart { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--ok); }
.in-cart a { color: var(--brand); }

.drawer-wrap { position: fixed; inset: 0; z-index: 60; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(11, 19, 16, .35); opacity: 0; transition: opacity .2s ease; }
.drawer {
  position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--surface); color: var(--ink);
  box-shadow: -12px 0 40px rgba(11, 19, 16, .25); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto; transform: translateX(100%); transition: transform .25s ease;
}
.drawer-wrap.open .drawer-scrim { opacity: 1; }
.drawer-wrap.open .drawer { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer-head h2 { display: flex; align-items: center; gap: 8px; outline: none; }
.ok-mark { width: 26px; height: 26px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.drawer-close { width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--surface-2); font-size: 22px; line-height: 1; cursor: pointer; }
.drawer-close:hover { background: var(--surface-3); }
.drawer-item { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.drawer-item .tile { border-radius: 10px; padding: 8px; }
.drawer-item .tile .mono { font-size: 14px; }
.drawer-item .tile .cc, .drawer-item .tile .chipdots { display: none; }
.drawer-line { display: flex; justify-content: space-between; margin-top: 6px; font-size: 14px; }
.drawer-others { margin: 0; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.drawer-total b { font-size: 20px; letter-spacing: -.02em; }
.drawer-actions { display: grid; gap: 10px; margin-top: 4px; }
.drawer-continue { justify-self: center; font-size: 14px; padding: 6px; }
@media (max-width: 640px) {
  .cart-total { display: none; }
  /* bottom sheet on phones */
  .drawer { top: auto; bottom: 0; height: auto; max-height: 88vh; width: 100%; border-radius: 18px 18px 0 0; transform: translateY(100%); box-shadow: 0 -12px 40px rgba(11, 19, 16, .25); }
  .drawer-item { grid-template-columns: 84px 1fr; }
}

/* ---- wallet dialog (Connect & Pay; markup from assets/wallet.js), scoped to .wm ---- */
.wm { --panel: var(--surface); --panel-2: var(--surface-2); --text: var(--ink); --muted: var(--ink-3); --accent: var(--brand); --accent-2: var(--brand); --danger: var(--bad);
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px;
  background: rgba(11, 19, 16, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: wm-fade .15s ease-out; }
@keyframes wm-fade { from { opacity: 0; } }
@keyframes wm-rise { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.wm .modal { width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 22px; padding: 22px 22px 20px; box-shadow: 0 24px 64px -16px rgba(11, 19, 16, .5); animation: wm-rise .18s ease-out; }
.wm :focus { outline: none; }
.wm :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* header + progress */
.wm .modal-head { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 16px; }
.wm .modal-head h2 { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.wm .wiz-title { flex: 1; min-width: 0; }
.wm .wiz-cap { display: block; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.wm .icon-btn { flex: none; width: 34px; height: 34px; min-width: 0; padding: 0; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3); font-size: 16px; background: var(--surface-2); }
.wm .icon-btn:hover { color: var(--ink); background: var(--surface-3); }
.wm .wiz-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 18px; }
.wm .wiz-bar span { font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding-top: 8px; border-top: 3px solid var(--line); text-align: center; border-radius: 2px; }
.wm .wiz-bar span.done { border-color: var(--ok); color: var(--ok); }
.wm .wiz-bar span.on { border-color: var(--brand); color: var(--ink); font-weight: 800; }

/* buttons */
.wm .btn { width: 100%; height: 48px; border-radius: 12px; background: var(--brand); border: 1.5px solid var(--brand); color: var(--brand-ink); font-weight: 800; }
.wm .btn:hover { background: color-mix(in srgb, var(--brand) 86%, black); }
.wm .btn.ghost { background: var(--surface); border-color: var(--line); color: var(--ink); font-weight: 700; }
.wm .btn.ghost:hover { background: var(--surface-2); }
.wm .btn.danger { background: var(--bad); border-color: var(--bad); }
.wm .btn-col { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.wm .muted { color: var(--ink-3); }
.wm .hidden { display: none !important; }
.wm .alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; background: var(--surface-2); }
.wm .alert.err { background: var(--bad-soft); }
.wm .linkish { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.wm .badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--surface-3); color: var(--ink-3); }
.wm .badge.ok { background: var(--ok-soft); color: var(--ok); }

/* wallet grid */
.wm .wallet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wm .wallet-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 112px;
  padding: 26px 8px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit;
  transition: border-color .15s, background .15s, transform .08s; }
.wm .wallet-tile:hover:not([disabled]), .wm .wallet-tile:focus-visible { border-color: var(--brand); background: var(--brand-soft); outline: none; }
.wm .wallet-tile:active:not([disabled]) { transform: translateY(1px); }
.wm .wallet-tile[disabled] { opacity: .45; cursor: not-allowed; }
.wm .wallet-tile b { font-size: 13px; font-weight: 700; line-height: 1.2; text-align: center; }
.wm .wallet-ico { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: var(--brand); color: #fff; overflow: hidden; object-fit: cover; }
.wm .wallet-ico.wc { background: #3b99fc; }
.wm .wallet-tile .wallet-ico { width: 42px; height: 42px; border-radius: 12px; font-size: 18px; box-shadow: 0 0 0 1px rgba(11, 19, 16, .06); }
.wm .tile-badge { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; font-weight: 700; line-height: 16px; padding: 0 7px; border-radius: 999px; background: var(--surface-3); color: var(--ink-3); }
.wm .tile-badge.ok { background: var(--ok-soft); color: var(--ok); }
.wm .wiz-how { margin: 16px 4px 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); text-align: center; }
.wm .wiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.wm .wiz-foot a, .wm .modal-hint a { color: var(--brand); font-weight: 600; }
.wm .wiz-tip { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.wm .wiz-tip summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.wm .wiz-tip p { margin: 8px 0 0; }
.wm .modal-sub { margin: -6px 2px 14px; color: var(--ink-3); font-size: 14px; }
.wm .modal-hint { color: var(--ink-3); font-size: 12.5px; margin: 14px 2px 0; line-height: 1.5; }

/* network list */
.wm .wallet-opt { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); border-radius: 14px; padding: 12px 14px; cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.wm .wallet-opt:hover:not(:disabled), .wm .wallet-opt:focus-visible { border-color: var(--brand); background: var(--brand-soft); outline: none; }
.wm .wallet-opt b { display: block; font-size: 15px; }
.wm .wallet-opt small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.wm .net-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wm .net-grid .net-opt { flex-direction: column; align-items: flex-start; gap: 10px; position: relative; min-height: 104px; padding: 14px; }
.wm .net-grid .net-opt .badge { position: absolute; top: 12px; right: 12px; }
.wm .net-ico { display: inline-block; flex: none; border-radius: 50%; vertical-align: middle; }

/* connecting / signing */
.wm .connect-state { text-align: center; padding: 4px 4px 18px; }
.wm .connect-state p { margin: 16px 0 0; line-height: 1.5; }
.wm .connect-icon { position: relative; width: 88px; height: 88px; margin: 4px auto 0; display: grid; place-items: center; }
.wm .connect-icon .wallet-ico.lg { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(11, 19, 16, .06); }
.wm .spinner { position: absolute; inset: 0; width: auto; height: auto; margin: 0; border-radius: 50%; border: 3px solid var(--brand-soft); border-top-color: var(--brand); animation: spin .9s linear infinite; }
.wm .steps { display: flex; flex-direction: column; gap: 4px; list-style: none; padding: 12px 16px; margin: 18px auto 0; max-width: 300px; text-align: left; background: var(--surface-2); border-radius: 14px; }
.wm .steps li { display: flex; gap: 12px; padding: 6px 0; align-items: center; font-size: 14px; }
.wm .steps .dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--ink-3); background: var(--surface); }
.wm .steps li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.wm .steps li.current { font-weight: 700; }
.wm .steps li.current .dot { border-color: var(--brand); color: var(--brand); }
.wm .confirm-body { font-size: 14.5px; line-height: 1.55; margin-bottom: 18px; }
.wm .confirm-body p { margin: 0 0 10px; }
@media (max-width: 440px) {
  .wm { padding: 10px; align-items: end; }
  .wm .modal { padding: 18px 16px 16px; border-radius: 20px; }
  .wm .wallet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .wm .wallet-tile { min-height: 100px; padding: 24px 4px 10px; }
  .wm .wallet-tile b { font-size: 12px; }
}
@media (max-width: 340px) { .wm .wallet-grid, .wm .net-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.refund-box { margin-top: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--warn-soft); }
.refund-box p { margin: 0 0 8px; }
.refund-box .btn { margin-top: 4px; }

.pcard .pcountry { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-top: -2px; }
.pcard .pcountry.here { color: var(--ok); }
.sg-country { display: block; font-size: 12px; color: var(--ink-3); font-weight: 500; }

/* ---- launch discount ---- */
.pcard { position: relative; }
.promo-badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 9px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.value-line { display: block; color: var(--ink-3); font-weight: 500; font-size: .5em; letter-spacing: 0; margin-top: 4px; }
.right .value-line { font-size: 12px; margin-top: 0; }
.promo-note { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--bad); }
.promo-row { color: var(--ok); font-weight: 700; }
.promo-hint { margin: 8px 0 0; }


/* ---- Connect & Pay panel (cart) ---- */
.cpay { display: grid; gap: 10px; }
.cpay-src { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); font-size: 14px; }
.cpay-src .grow { flex: 1; min-width: 0; }
.cpay-src .grow b { display: block; }
.cpay-src select { width: 100%; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 8px; font: inherit; font-weight: 600; }
.cpay-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.cpay-meta button { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; }
.cpay-note { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.cpay-status { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.cpay-status .spinner { width: 18px; height: 18px; margin: 0; border-width: 2.5px; flex: none; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 12px; margin: 4px 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---- Bitresel Card page ---- */
.card-page { padding-top: 28px; padding-bottom: 40px; }
.cp-head { margin-bottom: 18px; }
.cp-head h1 { margin: 0 0 4px; }
.cp-box { max-width: 560px; display: grid; gap: 10px; }
.cp-box .field { margin: 0; }
.cp-box .field select { width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 12px; font: inherit; }
.cp-box .pill { justify-self: start; }
.cp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px; }
.cp-sub { margin: 22px 0 10px; }
.vcard { position: relative; aspect-ratio: 1.586; border-radius: 20px; padding: 22px 24px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 120% at 100% 0%, #1d6b5f 0%, transparent 55%), linear-gradient(135deg, #0b1310 0%, #002926 60%, #0e4a42 100%);
  box-shadow: 0 20px 40px -18px rgba(0, 41, 38, .6); overflow: hidden; }
.vcard::after { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; bottom: -80px; border-radius: 50%; background: rgba(255, 235, 0, .16); }
.vcard.frozen { filter: grayscale(.85); }
.vc-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; letter-spacing: .08em; }
.vc-top b { font-size: 18px; letter-spacing: -.01em; }
.vc-number { font: 600 clamp(18px, 3.2vw, 24px) var(--mono); letter-spacing: .08em; }
.vc-bottom { display: flex; gap: 24px; position: relative; z-index: 1; }
.vc-bottom small { display: block; font-size: 10.5px; opacity: .7; text-transform: uppercase; letter-spacing: .08em; }
.vc-bottom b { font: 600 14px var(--mono); }
.cp-limit { margin: 10px 0; font-size: 14px; }
.cp-limit .row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.meter { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.cp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cp-table th { text-align: left; font-size: 12px; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.cp-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (max-width: 760px) { .cp-grid { grid-template-columns: 1fr; } .vcard { padding: 18px; } }
.card-page .panel { padding: 20px 22px; }
.fee-check { align-items: flex-start; gap: 10px; font-size: 14px; }
.fee-box { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.fee-list { list-style: none; margin: 6px 0; padding: 0; font-size: 14px; }
.fee-list li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.fee-list li:last-child { border-bottom: 0; }
.card-page .panel h2 { margin: 0 0 8px; }
.card-page .panel .h3.cp-sub { margin-top: 18px; }
.beta-pill { margin-left: 10px; vertical-align: middle; font-size: 12px; background: var(--brand-soft); color: var(--brand); }
.send-fee { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--ok-soft); font-size: 14px; }
.send-fee b { color: var(--ok); }
.row-between { display: flex; justify-content: space-between; align-items: center; }
.cp-box .field input { width: 100%; }
.legal .lead { font-size: 17px; color: var(--ink-2); margin: 10px 0 18px; }
.legal-toc { background: var(--surface-2); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0 8px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.legal-toc li { margin: 4px 0; break-inside: avoid; }
.legal-toc a { color: var(--ink-2); }
.legal section { scroll-margin-top: 90px; }
.legal ul { margin: 6px 0; padding-left: 20px; color: var(--ink-2); }
.legal li { margin: 4px 0; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
/* Server-rendered page content (for search engines); the app replaces it once loaded. */
.ssr { padding: 28px 0 40px; color: var(--ink-2); }
.ssr h1 { font-size: 30px; margin: 0 0 10px; color: var(--ink); }
.ssr h2 { font-size: 18px; margin: 22px 0 8px; color: var(--ink); }
.ssr ul { list-style: none; padding: 0; margin: 0; columns: 3 220px; column-gap: 24px; font-size: 14px; }
.ssr li { margin: 4px 0; break-inside: avoid; }
.ssr a { color: var(--ink-2); }

/* ================================================================
   Reference layout, measured at 1280px: full-width page with 24px gutters,
   ink #002926, grey page #f4f6f5, footer #dee3e1, yellow #ffeb00.
   ================================================================ */
body { font-size: 16px; line-height: 1.5; }
.wrap { max-width: 1488px; padding: 0 24px; }
main { padding-bottom: 0; }

/* announcement */
.announce { background: var(--night); font-size: 16px; font-weight: 500; padding: 8px 24px; line-height: 24px; }
.announce b { font-weight: 500; color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* header: 48px main row + 32px link row */
.topbar { position: relative; background: var(--bg); backdrop-filter: none; border-bottom: 0; }
.topbar .row { height: auto; padding: 8px 0 4px; gap: 24px; }
.logo { font-size: 24px; font-weight: 800; gap: 8px; letter-spacing: -.03em; }
.logo img { width: 30px; height: 30px; }
.search { flex: 0 1 570px; max-width: 570px; }
.search input { height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 44px 0 12px; font-weight: 500; font-size: 16px; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-color: var(--ink); background: var(--surface-2); }
.search svg { left: auto; right: 14px; color: var(--ink); width: 20px; height: 20px; }
.nav { gap: 4px; }
.nav .icon-btn { height: 40px; padding: 0 12px; font-weight: 750; font-weight: 700; font-size: 16px; gap: 8px; }
.country select { height: 40px; border: 0; background-color: transparent; font-weight: 700; padding: 0 8px; }
.country select:hover { background-color: var(--surface-2); }
.subnav { display: flex; align-items: center; gap: 16px; padding: 4px 0 8px; }
.subnav .catnav { flex: 1; min-width: 0; gap: 16px; margin: 0; padding: 0; min-height: 28px; align-items: center; }
.catnav a { padding: 0 0 4px; border-radius: 0; font-weight: 400; font-size: 16px; color: #001a18; background: none; }
.catnav a:hover { background: none; text-decoration: underline; text-underline-offset: 4px; }
.catnav a.active { background: none; color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.quicklinks { display: flex; gap: 12px; flex: none; }
.quicklinks a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--ink); }
.quicklinks a:hover { background: var(--surface-2); }
.quicklinks a.pill-link { background: #eceeed; }
.quicklinks a.pill-link:hover { background: var(--surface-3); }
@media (max-width: 1100px) { .quicklinks a:not(.pill-link) { display: none; } }

/* hero: copy left, 420px "popular" panel right, 48px gap */
.hero { display: flex; gap: 48px; align-items: center; padding: 24px 0; }
.hero-copy { flex: 1; min-width: 0; padding: 0; }
.hero h1 { margin: 0; font-size: 64px; font-weight: 900; line-height: 63px; letter-spacing: -.96px; text-transform: uppercase; }
.hero .count { display: inline-block; background: var(--mint); color: var(--mint-ink); padding: 0; line-height: 64px; }
.stats { display: flex; gap: 48px; margin-top: 48px; }
.stat-item { display: flex; flex-direction: column; }
.stat-item b { display: flex; align-items: center; gap: 8px; font-size: 36.8px; font-weight: 800; line-height: 42px; letter-spacing: -.02em; }
.stat-item .ico svg { width: 26px; height: 26px; }
.stat-item > span { font-size: 16px; font-weight: 500; line-height: 24px; color: var(--ink); max-width: 160px; margin-top: 4px; }
.hero .cta { margin-top: 48px; }
.hero .cta .btn { height: 46px; padding: 0 24px; }
.hero-panel { flex: 0 0 420px; background: var(--page-grey); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.hero-panel-h { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.5; letter-spacing: 0; }
.hero-panel-h .cc-tag { font-size: 11px; vertical-align: 2px; color: var(--ink-3); }
.hero-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hero-panel-grid .pcard .tile { aspect-ratio: 1.4; }
.hero-panel-grid .pcard .meta span:last-child { display: none; }

/* category strip: white band, icon over label */
.catstrip { display: block; margin: 0; padding: 0; border-top: 1px solid var(--line); overflow: visible; background: var(--bg); }
.catstrip .wrap { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-top: 0; padding-bottom: 0; }
.catstrip .wrap::-webkit-scrollbar { display: none; }
.catstrip a { flex: none; min-width: 0; height: 92px; padding: 0 16px; gap: 6px; justify-content: center; font-size: 16px; font-weight: 400; color: var(--ink); border-radius: 0; white-space: nowrap; }
.catstrip a .ico { width: 32px; height: 32px; border-radius: 0; background: none; color: var(--ink); }
.catstrip a .ico svg { width: 28px; height: 28px; stroke-width: 1.8; }
.catstrip a:hover { background: none; text-decoration: underline; text-underline-offset: 4px; }
.catstrip a:hover .ico { background: none; color: var(--ink); }

/* grey page below the strip; sections 56px apart */
.grey-zone { background: var(--page-grey); padding: 0 0 96px; }
.grey-zone .section { margin-top: 0; padding-top: 56px; }
.grey-zone > .wrap.section:first-child { padding-top: 32px; }
.section-head { margin-bottom: 24px; align-items: center; }
.section-head h2, .center-h { font-size: 24px; font-weight: 700; line-height: 42px; letter-spacing: -.01em; }
.section-head .sub { display: none; }
.section-head a { font-size: 16px; font-weight: 400; color: #001a18; text-decoration: underline; text-underline-offset: 3px; }
.big-h { font-size: 40px; font-weight: 700; line-height: 40px; letter-spacing: -.02em; margin-bottom: 32px; }
.center-h { text-align: center; margin-bottom: 32px; }
.why .center-h { font-size: 36.8px; line-height: 42px; }
@media (max-width: 640px) { .why .center-h { font-size: 28px; line-height: 34px; } }

/* product cards: 4 columns, 32px gaps, 1.4 images, radius 12 */
.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.pcard { gap: 0; }
.pcard .tile { border-radius: 12px; aspect-ratio: 1.4; }
.pcard:hover .tile { transform: none; box-shadow: none; filter: brightness(.96); }
.tile::before { display: none; }
.tile.art { padding: 14% 18%; }
.tile.art.light { box-shadow: inset 0 0 0 1px var(--line); }
.pcard .tile .cc, .tile .chipdots { display: none; }
.pcard .name { font-size: 16px; font-weight: 700; line-height: 24px; color: var(--ink); margin-top: 13px; }
.pcard .meta { margin-top: 2px; font-size: 16px; font-weight: 500; line-height: 24px; color: var(--ink); }
.pcard .meta span:last-child { color: var(--ink-3); font-size: 14px; font-weight: 400; }
.pcard .pcountry { font-size: 14px; color: var(--ink-3); }
.pcard.skeleton .tile { border-radius: 12px; }
.pcard.skeleton .sk-line { margin-top: 12px; }
.grey-zone .pcard.skeleton .tile, .grey-zone .sk-line { background: var(--surface-3); }
.promo-badge { top: 10px; left: 10px; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.why-card .ico { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; background: var(--page-grey); color: var(--ink); margin-bottom: 8px; }
.why-card b { font-size: 18px; }
.why-card > span:last-child { color: var(--ink); font-size: 16px; line-height: 24px; }

/* how it works: 3 columns, 2:1 art, square corners */
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.how-card h3 { font-size: 24px; font-weight: 700; line-height: 32px; margin: 24px 0 8px; letter-spacing: -.01em; }
.how-card p { margin: 0; color: var(--ink); font-size: 16px; line-height: 24px; max-width: 330px; }
.how-art { aspect-ratio: 2; border-radius: 0; background: #dee3e1; overflow: hidden; position: relative; }
.how-art.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 14px 10px; align-content: center; }
.logo-dot { aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; }
.logo-dot img { width: 84%; height: auto; }
.how-art.pay { display: flex; align-items: center; justify-content: center; gap: 18px; }
.pay-col { display: flex; flex-direction: column; gap: 10px; }
.pay-pill { background: #fff; color: #002926; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.pay-badge { width: 96px; height: 96px; border-radius: 20px; background: linear-gradient(135deg, #0b1310, #1d4b45); color: #fff; display: grid; place-items: center; flex: none; }
.how-art.phone { display: flex; justify-content: center; align-items: flex-end; }
.phone-body { width: 44%; height: 86%; background: #fff; border: 8px solid #0e4a42; border-bottom: 0; border-radius: 28px 28px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #002926; padding: 10px; text-align: center; }
.phone-body b { font-size: 14px; }
.phone-body code { font: 700 11px var(--mono); background: #f4f6f5; padding: 4px 8px; border-radius: 6px; }
.phone-ok { width: 40px; height: 40px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; }

/* dark banner: art left (395px), copy right */
.grey-zone .section.promo-banner { margin-top: 96px; padding: 0; }
.promo-banner { display: grid; grid-template-columns: 395px minmax(0, 1fr); gap: 32px; align-items: center; background: #002926; color: #fff; border-radius: 12px; min-height: 428px; overflow: hidden; }
.promo-copy { padding: 48px 48px 48px 0; }
.promo-banner h2 { font-size: 48px; font-weight: 900; line-height: 48px; text-transform: uppercase; letter-spacing: -.01em; }
.promo-banner p { font-size: 20px; line-height: 26px; margin: 24px 0 32px; max-width: 560px; color: #fff; }
.promo-art { position: relative; height: 100%; min-height: 300px; }
.gc { position: absolute; width: 230px; aspect-ratio: 1.4; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.gc1 { left: 40px; top: 70px; background: linear-gradient(135deg, #ff5c00, #ffc700); transform: rotate(-12deg); }
.gc2 { left: 90px; top: 120px; background: linear-gradient(135deg, #27447c, #5b8def); transform: rotate(-3deg); }
.gc3 { left: 140px; top: 170px; background: #ffeb00; color: #002926; display: grid; place-items: center; transform: rotate(6deg); }
.gc3 svg { width: 56px; height: 56px; }
.btn.mint { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); height: 46px; }
.btn.mint:hover { background: #f2df00; }

/* faq: heading left, questions right */
.faq { max-width: none; }
.faq-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; align-items: start; }
.faq-h { font-size: 36.8px; font-weight: 700; line-height: 42px; letter-spacing: -.02em; }
.faq-sub { margin: 8px 0 0; font-weight: 500; }
.faq-sub a { color: #001a18; text-underline-offset: 3px; }
.faq details { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq details:first-child { padding-top: 0; }
.faq summary { font-size: 16px; font-weight: 700; line-height: 24px; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin: 4px 6px 0 0; flex: none; }
.faq details[open] summary::after { content: ""; transform: rotate(-135deg); margin-top: 10px; }
.faq details p { color: var(--ink); }

/* footer */
footer { background: var(--footer-bg); color: var(--ink); padding: 48px 0 32px; font-size: 16px; }
.foot { grid-template-columns: 263px repeat(3, minmax(0, 241px)); gap: 0; }
.foot > nav { padding-left: 12px; }
.foot .logo, .foot .logo .cart-word { color: var(--ink); }
.foot .logo .cart-word { color: #002926; }
.foot p { color: var(--ink); max-width: 240px; font-size: 14px; }
.foot-h { color: var(--ink); font-size: 16px; font-weight: 700; margin: 0 0 12px; line-height: 22px; }
.foot a { color: #525755; padding: 4px 0; min-height: 0; line-height: 24px; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .support { color: #525755; font-size: 14px; }
.foot-bottom { border-top: 0; margin-top: 48px; color: var(--ink); font-size: 14px; flex-direction: column; gap: 12px; }
.foot-bottom a { color: var(--ink); }

/* responsive */
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .hero { flex-direction: column; align-items: stretch; }
  .hero-panel { flex-basis: auto; }
  .hero-panel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promo-banner { grid-template-columns: 1fr; text-align: center; }
  .promo-art { display: none; }
  .promo-copy { padding: 56px 24px; }
  .promo-banner p { margin-left: auto; margin-right: auto; }
  .faq-2col { grid-template-columns: 1fr; gap: 24px; }
  .foot { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot > nav { padding-left: 0; }
}
@media (max-width: 900px) { .how-grid { grid-template-columns: minmax(0, 1fr); } .how-card .how-art { max-width: 520px; } }
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar .row { gap: 10px; height: auto; }
  .nav { flex-wrap: wrap; justify-content: flex-end; }
  .quicklinks, .help-link { display: none; }
  .hero h1 { font-size: 40px; line-height: 40px; }
  .hero .count { line-height: 42px; }
  .stats { gap: 32px; margin-top: 32px; }
  .stat-item b { font-size: 28px; line-height: 34px; }
  .hero .cta { margin-top: 32px; }
  .hero-panel { padding: 16px; }
  .hero-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .catstrip a { height: 80px; padding: 0 8px; font-size: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .pcard .meta span:last-child { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .big-h { font-size: 30px; line-height: 34px; }
  .promo-banner h2 { font-size: 34px; line-height: 36px; }
  .faq-h { font-size: 28px; line-height: 34px; }
  .how-art.pay { gap: 10px; }
  .pay-pill { font-size: 12px; padding: 5px 10px; }
  .pay-badge { width: 64px; height: 64px; border-radius: 16px; }
  .pay-badge svg { width: 30px; height: 30px; }
  .foot { grid-template-columns: 1fr; }
}

/* scrolling rows with round arrows (category strip + product sections) */
.rail { position: relative; }
.rail-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 999px; border: 0; background: #eceeed; color: #002926; display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 41, 38, .12); }
.rail-btn:hover { background: #dee3e1; }
.rail-btn.prev { left: -24px; }
.rail-btn.next { right: -24px; }
.rail-grid { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-columns: calc((100% - 96px) / 4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail-grid:not(:has(> :nth-child(5))) { grid-template-rows: auto; }
.rail-grid::-webkit-scrollbar { display: none; }
.rail-grid > * { scroll-snap-align: start; }
.section .rail .rail-btn { top: 100px; }
.catstrip .wrap { display: block; overflow: visible; padding-top: 0; padding-bottom: 0; }
.catstrip-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.catstrip-row::-webkit-scrollbar { display: none; }
.catstrip .rail-btn { top: 22px; transform: none; }

/* payment badges */
.pay-icons { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 16px 0 0; }
.pay-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; line-height: 1; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.pay-icons.foot-pay { margin: 0; gap: 8px; }
.pay-icons.foot-pay .pay-ico { width: 24px; height: 24px; font-size: 12px; }

/* footer top rows + locale button */
.foot-top { padding-bottom: 32px; }
.foot-top:empty { display: none; }
.foot-news { display: flex; align-items: center; gap: 12px; padding-bottom: 32px; color: var(--ink); flex-wrap: wrap; }
.foot-news p { margin: 0; font-size: 20px; line-height: 28px; flex: 0 1 auto; }
.foot-news .foot-cta { margin-left: 12px; height: 40px; background: #fff; border-color: #fff; color: #1d232b; }
.foot-locale { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin: 12px 0 0 -12px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; cursor: pointer; color: var(--ink); }
.foot-locale:hover { background: rgba(0, 41, 38, .06); }

/* buttons: 46px pills, 750-ish weight */
.btn { height: 46px; font-weight: 700; }
.btn.small { height: 36px; }

@media (max-width: 1100px) { .rail-grid { grid-auto-columns: calc((100% - 64px) / 3); } }
@media (max-width: 640px) {
  .rail-btn { display: none; }
  .rail-grid { grid-auto-columns: 44%; gap: 24px 16px; }
  .foot-news p { font-size: 17px; }
  .foot-news .foot-cta { margin-left: 0; }
}

/* product page (reference measurements: grey page, 741px main + 427px buy box, 48px gap) */
.pd-page { background: var(--page-grey); padding: 16px 0 96px; }
.pd-page .crumbs { margin: 0 0 24px; font-size: 16px; font-weight: 500; color: #525755; }
.pd-page .crumbs a { color: #525755; text-decoration: none; }
.pd-page .crumbs a:hover { text-decoration: underline; color: var(--ink); }
.pd-page .product { grid-template-columns: minmax(0, 1fr) 427px; gap: 48px; }
.pd-page .pd-main { gap: 32px; }
.pd-title { margin: 0; }
.pd-title h1 { font-size: 36.8px; font-weight: 700; line-height: 42px; letter-spacing: -.02em; text-transform: none; }
.pd-bullets { margin: 16px 0 0; gap: 4px; color: var(--ink); font-size: 16px; font-weight: 500; }
.pd-bullets li::before { content: "✓"; width: auto; height: auto; background: none; font-weight: 800; font-size: 13px; color: var(--ink); }
.pay-icons.pd-pay { margin-top: 12px; gap: 2px; }
.pay-icons.pd-pay .pay-ico { width: 26px; height: 26px; font-size: 12px; box-shadow: 0 0 0 2px var(--page-grey); }
.pd-page .pd-hero { grid-template-columns: 238px minmax(0, 1fr); gap: 24px; align-items: start; }
.pd-left { display: grid; gap: 16px; }
.pd-page .pd-hero .tile.big { max-width: none; aspect-ratio: 1.72; border-radius: 12px; }
.pd-page .pd-meta { gap: 10px; }
.pd-page .product .perks { gap: 6px; margin: 0; }
.pd-page .product .perks div { font-size: 14px; color: var(--ink); gap: 8px; }
.pd-page .product .perks svg { color: var(--ink); }
.pd-hero .pd-h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pd-page .denoms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pd-page .denom { background: #fff; border: 2px solid #fff; border-radius: 12px; padding: 16px; text-align: left; min-height: 95px; display: flex; flex-direction: column; justify-content: center; }
.pd-page .denom b { font-size: 25.6px; font-weight: 800; line-height: 31px; color: var(--ink); }
.pd-page .denom small { font-size: 16px; font-weight: 500; color: var(--ink); }
.pd-page .denom:hover { border-color: var(--line); }
.pd-page .denom[aria-pressed="true"] { border-color: var(--ink); background: #fff; box-shadow: none; }
.pd-page .custom-amount { margin-top: 12px; }
.pd-page .accs { gap: 8px; }
.pd-page .acc { border: 0; border-radius: 12px; background: #fff; padding: 0 16px; }
.pd-page .acc summary { padding: 24px 0; font-size: 18.7px; font-weight: 700; }
.pd-page .acc summary::after { content: ""; width: 10px; height: 10px; border-radius: 0; background: none; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin-right: 6px; }
.pd-page .acc[open] summary::after { content: ""; transform: rotate(-135deg); }
.pd-page .acc-body { padding: 0 0 24px; color: var(--ink); font-size: 16px; font-weight: 500; }
.pd-page .buybox { top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 16px; gap: 12px; box-shadow: 0 8px 24px rgba(1, 43, 40, .06); }
.pd-page .bb-sel { font-size: 16px; font-weight: 500; color: var(--ink); }
.pd-page .bb-price { font-size: 25.6px; font-weight: 800; }
.pd-page .bb-qty select { height: 35px; border-radius: 999px; border: 1px solid var(--line); padding: 0 12px; font-size: 14px; font-weight: 400; }
.pd-page .buybox .btn { height: 40px; }
.pd-page .buybox .btn:not(.primary) { background: #eceeed; border-color: #eceeed; }
@media (max-width: 900px) {
  .pd-page .product { grid-template-columns: 1fr; }
  .pd-page .buybox { position: static; }
}
@media (max-width: 640px) {
  .pd-page .pd-hero { grid-template-columns: 1fr; }
  .pd-page .pd-hero .tile.big { max-width: 300px; }
  .pd-title h1 { font-size: 28px; line-height: 34px; }
  .pd-page .denom b { font-size: 20px; }
}

/* inner pages sit on the grey page like the reference; the homepage keeps its white hero */
main#app { background: var(--page-grey); }
main#app:has(.grey-zone) { background: var(--bg); }
.pd-page { padding-bottom: 96px; background: transparent; }
.pd-page .tile .cc { display: none; }
main#app > .wrap { padding-top: 8px; padding-bottom: 96px; }
.card { border-radius: 12px; box-shadow: none; border-color: var(--line); background: #fff; }
.summary.card { border-radius: 24px; box-shadow: 0 8px 24px rgba(1, 43, 40, .06); }
.page-title, main#app > .wrap > h1 { font-size: 36.8px; font-weight: 700; line-height: 42px; letter-spacing: -.02em; }
.filters a.active { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.results-head { margin-top: 8px; }
.field input, .amount-input input { border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.field input:focus, .amount-input input:focus { border-color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card, :root:not([data-theme="light"]) .pd-page .denom, :root:not([data-theme="light"]) .pd-page .acc, :root:not([data-theme="light"]) .pd-page .buybox { background: var(--surface); border-color: var(--line); } }

/* cart & checkout — match the reference card styling */
main#app > .wrap > .two-col { margin-top: 0; }
.two-col { grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; }
.two-col .card { padding: 8px 20px; }
.two-col .line { grid-template-columns: 96px 1fr auto; gap: 20px; padding: 20px 0; }
.two-col .line .tile { border-radius: 10px; aspect-ratio: 1.5; }
.line-name { font-size: 17px; font-weight: 700; }
.qty { border-radius: 999px; border-color: var(--line); overflow: hidden; }
.qty button { width: 38px; height: 38px; }
.summary.card { padding: 24px; }
.summary h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.summary .row { font-size: 16px; }
.summary .row.total { font-size: 22px; font-weight: 800; }
.summary .field input, .gift-fields input, .gift-fields textarea { border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.summary .btn.block, .summary .btn.primary { height: 46px; }
.check { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-weight: 600; cursor: pointer; }
.check span { display: inline-flex; align-items: center; gap: 8px; }
.or-line { text-align: center; color: var(--ink-3); font-size: 14px; margin: 10px 0; }
.trust-line { justify-content: flex-start; margin-top: 16px; color: var(--ink-3); }
.trust-line a { color: var(--ink); }
.wrap.empty h1, .wrap.empty .h2 { font-size: 28px; font-weight: 700; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Bitresel wordmark: the logo image used as a mask, so it takes the text colour (light and dark themes). */
.logo .wordmark { display: block; height: 28px; aspect-ratio: 4.63; background: currentColor; -webkit-mask: url(/assets/logo-wordmark.png) center / contain no-repeat; mask: url(/assets/logo-wordmark.png) center / contain no-repeat; }
.logo { color: var(--ink); }
