/* TrendSnap — dark, card-first, mobile-first. */
:root {
  --bg: #0a0a11;
  --surface: #13131d;
  --surface-2: #1b1b28;
  --line: #2a2a3d;
  --text: #ececf5;
  --muted: #9b9bb3;
  --dim: #6c6c85;
  --accent: #7cf3ff;
  --accent-ink: #061418;
  --good: #52e3a4;
  --warn: #ffb547;
  --bad: #ff6b81;
  --signal: #48e6ff;
  --rare: #6d95ff;
  --epic: #ec5cff;
  --legendary: #ffc440;
  --radius: 16px;
  --radius-sm: 10px;
  --gutter: 16px;
  --max: 1180px;
  --header-h: 56px;
  --bottom-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Thai", "Leelawadee UI", "Sukhumvit Set", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom));
}
body.has-buybar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a.link, .prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h2 { font-size: clamp(1.2rem, 3.6vw, 1.5rem); }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .85em; word-break: break-all; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.hidden { display: none !important; }

/* ── test banner ─────────────────────────────────────────── */
.test-banner {
  background: repeating-linear-gradient(-45deg, #ffcf3f 0 14px, #ffbf00 14px 28px);
  color: #1a1400;
  font-weight: 700;
  font-size: .8rem;
  text-align: center;
  padding: 6px var(--gutter);
  letter-spacing: .02em;
}
.test-banner span { font-weight: 500; }

/* ── header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 10, 17, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(72,170,255,.35)); }
.logo b { font-weight: 800; background: linear-gradient(90deg, #3fa9ff, #ff9a3c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-logo { width: min(260px, 70vw); height: auto; margin: 0 auto 8px; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.on { color: var(--text); background: var(--surface-2); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { font-weight: 700; font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--muted); min-height: 34px; display: inline-flex; align-items: center; }
.lang:hover { color: var(--text); border-color: var(--muted); }
.cur-form { margin: 0; display: inline-flex; }
.cur-select { background: var(--surface-2); cursor: pointer; padding: 4px 10px; color: var(--text); border-color: var(--line); }
.cur-select option { background: var(--surface); color: var(--text); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--rare), var(--epic)); color: #fff; }
@media (min-width: 860px) { .nav { display: flex; } }

/* ── bottom nav (mobile) ────────────────────────────────── */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(14, 14, 22, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,.07);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .7rem; font-weight: 600; color: var(--dim); }
.bottom-nav a.on { color: var(--accent); }
.bottom-nav svg { width: 22px; height: 22px; }
@media (min-width: 860px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
  body.has-buybar { padding-bottom: 0; }
}

/* ── buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  font-weight: 700; cursor: pointer; transition: transform .08s ease, background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 6px 24px rgba(124,243,255,.25); }
.btn.primary:hover { background: #a6f7ff; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .85rem; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.danger { border-color: rgba(255,107,129,.5); color: var(--bad); background: transparent; }
.btn.on { border-color: var(--accent); color: var(--accent); }
.btn[disabled], .btn.disabled, .checkout form:has(input[name="terms"]:not(:checked)) button[type="submit"] { opacity: .42; pointer-events: none; cursor: not-allowed; box-shadow: none; filter: grayscale(.25); }
.btn svg { width: 18px; height: 18px; }
.icon-btn { width: 46px; padding: 0; }

/* ── chips ──────────────────────────────────────────────── */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .85rem; background: var(--surface); min-height: 38px; display: inline-flex; align-items: center; gap: 6px; }
.chip.on, .chip:hover { color: var(--text); border-color: var(--accent); }
.chip .n { color: var(--dim); font-weight: 500; }

/* ── tier colours ───────────────────────────────────────── */
.tier-signal { --tier: var(--signal); }
.tier-rare { --tier: var(--rare); }
.tier-epic { --tier: var(--epic); }
.tier-legendary { --tier: var(--legendary); }
.tier-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tier, var(--accent)); }
.tier-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tier, var(--accent)); box-shadow: 0 0 10px var(--tier, var(--accent)); }

/* ── sections ───────────────────────────────────────────── */
.section { padding: 28px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.section-head a { color: var(--accent); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel + .panel { margin-top: 14px; }
.stat-cards > .panel, .album-grid > .panel, .metrics > .panel, .checkout > .panel { margin-top: 0; }

/* ── card grid & tiles ──────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: 30%; } }
@media (min-width: 1000px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; gap: 20px; } }

.tile { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .2s ease, border-color .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tier) 60%, var(--line)); box-shadow: 0 12px 34px -12px color-mix(in srgb, var(--tier) 45%, transparent); }
.tile-art { position: relative; aspect-ratio: 2 / 3; background: var(--surface-2); overflow: hidden; }
.tile-art img { width: 100%; height: 100%; object-fit: cover; }
.tile.soldout .tile-art img { filter: grayscale(.7) brightness(.7); }
.tile-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.pts-tag { font-size: .68rem; font-weight: 800; color: var(--legendary); background: rgba(255,196,64,.12); border: 1px solid rgba(255,196,64,.3); padding: 1px 6px; border-radius: 99px; }
.tile-body h3 { font-size: .92rem; font-weight: 700; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .8rem; }
.price { font-weight: 800; color: var(--text); }
.badge { position: absolute; top: 8px; left: 8px; font-size: .7rem; font-weight: 800; padding: 4px 8px; border-radius: 999px; letter-spacing: .03em; backdrop-filter: blur(6px); }
.badge.low { background: rgba(255,181,71,.92); color: #231400; }
.badge.sold { background: rgba(20,20,30,.85); color: var(--muted); border: 1px solid var(--line); }
.badge.new { background: rgba(124,243,255,.92); color: var(--accent-ink); }
.badge.first { background: linear-gradient(135deg, #ffc440, #ff8800); color: #1f1100; box-shadow: 0 2px 10px rgba(255,196,64,.45); }
.badge.edition, .badge.edition-next { left: auto; right: 8px; background: rgba(10,10,17,.85); color: var(--legendary); border: 1px solid rgba(255,196,64,.4); }

/* remaining bar: width via class so no inline styles are needed (strict CSP) */
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tier, var(--accent)), color-mix(in srgb, var(--tier, var(--accent)) 55%, white)); transition: width .6s ease; }
.bar.big { height: 10px; }
.w0>span{width:0}.w5>span{width:5%}.w10>span{width:10%}.w15>span{width:15%}.w20>span{width:20%}.w25>span{width:25%}.w30>span{width:30%}.w35>span{width:35%}.w40>span{width:40%}.w45>span{width:45%}.w50>span{width:50%}.w55>span{width:55%}.w60>span{width:60%}.w65>span{width:65%}.w70>span{width:70%}.w75>span{width:75%}.w80>span{width:80%}.w85>span{width:85%}.w90>span{width:90%}.w95>span{width:95%}.w100>span{width:100%}
.bar.low > span { background: linear-gradient(90deg, var(--warn), #ffd88a); }

/* ── holo card ──────────────────────────────────────────── */
.holo {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --glare: 0;
  position: relative; border-radius: 18px; aspect-ratio: 2 / 3;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .25s ease;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06), 0 0 60px -10px color-mix(in srgb, var(--tier) 55%, transparent);
  overflow: hidden; background: var(--surface-2);
  will-change: transform;
}
.holo.active { transition: transform .05s linear; }
.holo img { width: 100%; height: 100%; object-fit: cover; }
.holo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: calc(.25 + var(--glare) * .55);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.55), transparent 42%),
    linear-gradient(115deg, transparent 20%, color-mix(in srgb, var(--tier) 40%, transparent) 40%, rgba(255,255,255,.12) 50%, color-mix(in srgb, var(--epic) 35%, transparent) 60%, transparent 80%);
  background-size: 100% 100%, 220% 220%;
  background-position: center, calc(var(--mx) * 1.2) calc(var(--my) * 1.2);
}
@media (prefers-reduced-motion: reduce) { .holo { transform: none !important; } .holo::after { display: none; } }

/* ── home hero ──────────────────────────────────────────── */
.hero { position: relative; padding: 22px 0 10px; overflow: hidden; }
.hero-bg { position: absolute; inset: -40% -20% auto; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tier) 30%, transparent), transparent 70%); filter: blur(30px); opacity: .7; pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 22px; align-items: center; }
.hero-card { width: min(78vw, 340px); margin: 0 auto; }
.eyebrow-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.edition-callout { font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: rgba(255,196,64,.14); color: var(--legendary); border: 1px solid rgba(255,196,64,.4); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 0 rgba(255,107,129,.7); animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,107,129,.6); } 70% { box-shadow: 0 0 0 10px rgba(255,107,129,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,129,0); } }
.hero-copy h1 { margin-bottom: 8px; }
.hero-copy .tagline { color: var(--muted); font-size: 1.02rem; }
.stat-row { display: flex; gap: 18px; margin: 14px 0; flex-wrap: wrap; }
.stat b { display: block; font-size: 1.3rem; font-weight: 800; }
.stat span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn { flex: 1 1 140px; }
@media (min-width: 860px) {
  .hero { padding: 48px 0 20px; }
  .hero-grid { grid-template-columns: 380px 1fr; gap: 56px; }
  .hero-card { width: 100%; }
}

.countdown { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(124,243,255,.1), rgba(236,92,255,.1)); border: 1px solid rgba(124,243,255,.25); border-radius: var(--radius); padding: 14px 16px; margin-top: 18px; }
.countdown .clock { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.5rem; letter-spacing: .04em; }
.countdown .label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

/* ── ticker ─────────────────────────────────────────────── */
.ticker { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticker li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: .88rem; }
.ticker li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker .ed { font-weight: 800; color: var(--tier, var(--accent)); white-space: nowrap; }
.ticker time { color: var(--dim); font-size: .78rem; white-space: nowrap; }
.ticker-empty { color: var(--muted); font-size: .9rem; }

/* ── how it works ───────────────────────────────────────── */
.steps { display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); color: var(--accent); font-weight: 800; margin-bottom: 10px; }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ── card page ──────────────────────────────────────────── */
.card-page { display: grid; gap: 24px; padding: 16px 0 24px; }
.card-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.card-visual .holo { width: min(86vw, 420px); margin: 0 auto; cursor: zoom-in; }
.zoom-btn { align-self: center; }
@media (min-width: 900px) {
  .card-page { grid-template-columns: minmax(340px, 440px) 1fr; gap: 48px; padding-top: 32px; align-items: start; }
  .card-visual { position: sticky; top: calc(var(--header-h) + 20px); }
  .card-visual .holo { width: 100%; }
}
.card-info h1 { font-size: clamp(1.45rem, 4.5vw, 2.1rem); }
.card-info .tagline { color: var(--muted); font-size: 1.02rem; }
.meta-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; font-size: .82rem; color: var(--muted); }
.live-proof { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px; margin-bottom: 6px; }
.owned-panel { margin: 14px 0; border-color: rgba(82,227,164,.55); background: linear-gradient(145deg, rgba(82,227,164,.1), rgba(19,19,29,.95)); box-shadow: 0 12px 32px -12px rgba(82,227,164,.25); display: grid; gap: 12px; }
.owned-title { font-weight: 800; color: var(--good); font-size: .95rem; }
.owned-edition-box { background: rgba(10,10,17,.65); border: 1px solid rgba(255,196,64,.35); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.owned-ed-num { font-size: 1.5rem; font-weight: 900; color: var(--legendary); letter-spacing: .02em; }
.owned-meta-right { text-align: right; display: grid; gap: 4px; justify-items: end; }
.owned-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.owned-actions .btn { flex: 1 1 160px; }
.scarcity { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.edition-banner { padding: 8px 12px; border-radius: 10px; font-size: .85rem; font-weight: 800; margin-bottom: 12px; background: linear-gradient(90deg, rgba(255,196,64,.16), rgba(236,92,255,.12)); border: 1px solid rgba(255,196,64,.4); color: var(--legendary); }
.edition-pill { background: rgba(255,196,64,.15); color: var(--legendary); border: 1px solid rgba(255,196,64,.35); }
.points-pill { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: rgba(82,227,164,.14); color: var(--good); border: 1px solid rgba(82,227,164,.35); }
.verified-strip { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--good); background: rgba(82,227,164,.08); border: 1px solid rgba(82,227,164,.25); border-radius: 10px; padding: 8px 12px; }
.tier-guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tier-guide-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--surface-2); border-radius: 10px; font-size: .85rem; }
.scarcity .big { font-size: 1.5rem; font-weight: 800; }
.scarcity .big small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.scarcity .row { margin-bottom: 10px; }
.buy-box { display: grid; gap: 10px; margin-bottom: 16px; }
.buy-box .price-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.buy-box .price-line .price { font-size: 1.8rem; }
.buy-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; }
.facts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--surface-2); border-radius: 12px; font-size: .9rem; }
.facts li::before { content: "▲"; color: var(--good); font-size: .7rem; margin-top: 4px; }
.disclosures { border: 1px dashed rgba(255,181,71,.45); background: rgba(255,181,71,.06); border-radius: 12px; padding: 12px 14px; font-size: .85rem; color: #f3d9a8; margin-top: 10px; }
.disclosures ul { margin: 0; padding-left: 18px; }
.disclosures li + li { margin-top: 4px; }
.reactions { display: flex; gap: 8px; flex-wrap: wrap; }
.reactions form { margin: 0; }
.react { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-size: 1rem; }
.react .n { font-size: .8rem; color: var(--muted); font-weight: 700; }
.react.mine { border-color: var(--accent); background: rgba(124,243,255,.08); }
.notice { padding: 12px 14px; border-radius: 12px; background: rgba(255,181,71,.1); border: 1px solid rgba(255,181,71,.4); color: #ffd99a; margin: 12px 0; font-size: .92rem; }
.notice.ok { background: rgba(82,227,164,.08); border-color: rgba(82,227,164,.4); color: #b6f5d9; }
.notice.err { background: rgba(255,107,129,.08); border-color: rgba(255,107,129,.45); color: #ffc2cc; }

.share-sheet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.share-sheet a, .share-sheet button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .75rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.share-sheet svg { width: 22px; height: 22px; color: var(--text); }
.share-sheet a:hover, .share-sheet button:hover { border-color: var(--muted); color: var(--text); }

details.fold { border-top: 1px solid var(--line); padding: 14px 0; }
details.fold summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; }
details.fold[open] summary::after { content: "–"; }
details.fold > div { padding-top: 10px; color: var(--muted); font-size: .94rem; }

/* ── 3D card lightbox ───────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none !important; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(6,6,12,.88); backdrop-filter: blur(12px); }
.lightbox-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(90vw, 460px); }
.lightbox-holo { width: 100%; }
.lightbox-close { align-self: flex-end; }

/* sticky buy bar on mobile */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(14,14,22,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center;
}
.buybar .p { display: flex; flex-direction: column; line-height: 1.15; padding-right: 4px; }
.buybar .p b { font-size: 1.1rem; }
.buybar .p span { font-size: .72rem; color: var(--warn); font-weight: 700; }
@media (min-width: 860px) { .buybar { display: none; } }
body.has-buybar .bottom-nav { display: none; }

/* ── forms ──────────────────────────────────────────────── */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 700; font-size: .9rem; }
.input, select.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-size: 16px;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,243,255,.18); }
.input.code { font-size: 1.8rem; letter-spacing: .5em; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); padding: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.methods { display: grid; gap: 10px; }
.method { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; min-height: 62px; }
.method input { position: absolute; opacity: 0; }
.method .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); font-weight: 900; font-size: .75rem; flex: none; }
.method .ico.pp { background: #0f3d6e; color: #fff; }
.method .ico.cc { background: linear-gradient(135deg, #3b3b56, #22222f); }
.method .ico.tm { background: #ff7a00; color: #fff; }
.method b { display: block; }
.method small { color: var(--muted); }
.method:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,243,255,.15); }
.method:has(input:focus-visible) { outline: 2px solid var(--accent); }
.method .tick { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.method:has(input:checked) .tick { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 50%); }

.checkout { display: grid; gap: 20px; padding: 20px 0 32px; }
@media (min-width: 900px) { .checkout { grid-template-columns: 1fr 380px; align-items: start; gap: 36px; } }
.summary { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.summary .thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 2/3; }
.lines { display: grid; gap: 8px; margin: 14px 0; }
.lines div { display: flex; justify-content: space-between; align-items: center; font-size: .92rem; color: var(--muted); }
.lines .total { color: var(--text); font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 10px; }

.auth-box { max-width: 440px; margin: 0 auto; padding: 36px 0 48px; }

/* ── order status & pack reveal ─────────────────────────── */
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
.progress .ps { text-align: center; font-size: .8rem; font-weight: 700; color: var(--dim); }
.progress .ps i { display: block; height: 6px; border-radius: 99px; background: var(--surface-2); margin-bottom: 8px; overflow: hidden; position: relative; }
.progress .ps.done { color: var(--text); }
.progress .ps.done i { background: var(--good); }
.progress .ps.now { color: var(--accent); }
.progress .ps.now i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: slide 1.2s linear infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.order-hero { text-align: center; padding: 24px 0 8px; }
.order-hero .holo { width: min(62vw, 280px); margin: 0 auto 12px; }
.pack-stage { display: flex; flex-direction: column; align-items: center; margin-bottom: 14px; }
.pack-stage.pop .holo { animation: packPop .75s cubic-bezier(.22,1,.36,1); }
@keyframes packPop {
  0% { transform: perspective(900px) scale(.82) rotateY(180deg); filter: brightness(2.2); }
  60% { transform: perspective(900px) scale(1.06) rotateY(-8deg); filter: brightness(1.3); }
  100% { transform: perspective(900px) scale(1) rotateY(0deg); filter: brightness(1); }
}
.edition-big { font-size: clamp(2rem, 9vw, 3rem); font-weight: 900; letter-spacing: .02em; background: linear-gradient(90deg, var(--legendary), var(--epic), var(--signal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--accent); animation: spin 1s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .88rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; word-break: break-all; }

/* ── testpay sandbox ────────────────────────────────────── */
.sandbox { max-width: 460px; margin: 20px auto 40px; background: #f6f7fb; color: #15151f; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.sandbox header { background: #15151f; color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.sandbox header span { font-size: .7rem; background: #ffcf3f; color: #1a1400; padding: 3px 8px; border-radius: 99px; }
.sandbox .body { padding: 20px 18px 22px; display: grid; gap: 14px; }
.sandbox .amount { font-size: 2rem; font-weight: 900; text-align: center; }
.sandbox .qr { background: #fff; border-radius: 14px; padding: 12px; width: 240px; margin: 0 auto; border: 1px solid #e3e5ee; }
.sandbox .qr svg { width: 100%; height: auto; display: block; }
.sandbox .pp-head { background: #0f3d6e; color: #fff; text-align: center; padding: 8px; border-radius: 10px; font-weight: 800; letter-spacing: .04em; }
.sandbox .btn { background: #fff; color: #15151f; border-color: #d6d8e2; }
.sandbox .btn.primary { background: #15151f; color: #fff; box-shadow: none; }
.sandbox .muted { color: #5b5d70; }
.sandbox .fake-card { display: grid; gap: 8px; }
.sandbox .fake-card .input { background: #fff; border-color: #d6d8e2; color: #15151f; min-height: 46px; }

/* ── me & showcase page ─────────────────────────────────── */
.profile { display: flex; gap: 14px; align-items: center; padding: 24px 0 10px; }
.profile .avatar { width: 58px; height: 58px; font-size: 1.4rem; }
.profile h1 { font-size: 1.25rem; margin: 0; word-break: break-all; }
.tabs { position: sticky; top: var(--header-h); z-index: 20; background: rgba(10,10,17,.92); backdrop-filter: blur(10px); padding: 8px 0; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
.stat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 10px 0 12px; align-items: stretch; }
.stat-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .stat-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-cards .panel { padding: 14px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 84px; height: 100%; }
.stat-cards b { display: block; font-size: 1.35rem; line-height: 1.2; }
.stat-cards span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; line-height: 1.2; }
.perks-panel { margin-bottom: 12px; display: grid; gap: 10px; }
.album-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
@media (min-width: 640px) { .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.album-card { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 88px; height: 100%; transition: border-color .2s, transform .2s; }
.album-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.album-card.complete { border-color: rgba(82,227,164,.5); }
.copy-field { display: flex; gap: 8px; }
.copy-field .input { min-height: 46px; font-size: .9rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.list li:last-child { border-bottom: 0; }
.pill { font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.pill.good { background: rgba(82,227,164,.12); color: var(--good); }
.pill.warn { background: rgba(255,181,71,.12); color: var(--warn); }
.pill.bad { background: rgba(255,107,129,.12); color: var(--bad); }
.pill.info { background: rgba(124,243,255,.1); color: var(--accent); }
.empty { text-align: center; padding: 32px 12px; color: var(--muted); }
.empty .btn { margin-top: 12px; }

/* ── explore filters ────────────────────────────────────── */
.filters { display: grid; gap: 10px; margin: 8px 0 18px; }
.search-row { display: flex; gap: 8px; }
.search-row .search-input { flex: 1; min-height: 44px; padding: 8px 14px; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 760px) { .filter-row { grid-template-columns: repeat(4, 1fr); } }
.filter-row select { min-height: 44px; padding: 8px 12px; font-size: .9rem; }

/* ── prose (about / legal) ──────────────────────────────── */
.prose { max-width: 720px; padding: 24px 0 40px; }
.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { color: #cfcfe0; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }

/* ── footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 32px; color: var(--muted); font-size: .85rem; }
.site-footer .row { gap: 16px 22px; }
.site-footer a:hover { color: var(--text); }
.site-footer .fine { margin-top: 14px; color: var(--dim); font-size: .78rem; max-width: 760px; }

/* ── admin ──────────────────────────────────────────────── */
.admin-nav { display: flex; gap: 8px; padding: 16px 0; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 720px; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.data th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: 0; }
table.data .input { min-height: 36px; padding: 6px 8px; font-size: .85rem; border-radius: 8px; }
table.data input.num { width: 84px; }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 760px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metrics .panel b { display: block; font-size: 1.4rem; }
.metrics .panel span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* ── toast ──────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: calc(var(--bottom-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: .9rem; opacity: 0; transition: .25s; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body.has-buybar .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.error-page { padding-top: 64px; }
.row.center { justify-content: center; }
.narrow { max-width: 640px; }
.eyebrow-ok { color: var(--good); font-weight: 800; margin-bottom: 4px; }
.h2 { font-size: clamp(1.2rem, 3.6vw, 1.5rem); }
.h3 { font-size: 1rem; }
.center-text { text-align: center; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.half { flex: 1; min-width: 0; }
.disabled-method { opacity: .45; cursor: not-allowed; }
.sandbox .tm-head { background: #ff7a00; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: .8rem; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lead { font-size: 1.1rem; color: var(--muted); }
.warn-text { color: var(--warn); }
.bad-text { color: var(--bad); }
.prose .steps { margin: 20px 0; }
@media (max-width: 899px) { .checkout aside { order: -1; } }

/* wallet list: inline remove button */
form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font: inherit; }
button.link:hover { color: var(--text, inherit); }
