:root {
  --bg: #07080c;
  --bg-2: #0c0e14;
  --surface: #11141c;
  --surface-2: #161a24;
  --surface-3: #1c2130;
  --line: #222838;
  --line-2: #2c3347;
  --text: #eef0f6;
  --muted: #9097ab;
  --faint: #636a80;
  --accent: #7c5cff;
  --accent-2: #9d85ff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(124, 92, 255, 0.14);
  --glow: 124, 92, 255;
  --instant: #2ee6c5;
  --instant-soft: rgba(46, 230, 197, 0.12);
  --gold: #f5c451;
  --gold-soft: rgba(245, 196, 81, 0.12);
  --danger: #ff6b7d;
  --warn: #ffb547;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 24px rgba(var(--glow), .35); }
.btn-primary:hover:not(:disabled) { background: var(--accent-2); }
.btn-ghost { background: var(--surface-2); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--line-2); background: var(--surface-3); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #6b77f5; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-danger { background: rgba(255, 107, 125, .12); color: var(--danger); border-color: rgba(255, 107, 125, .3); }

/* ---------- Header ---------- */
.demo-banner {
  background: repeating-linear-gradient(-45deg, #3a2a00, #3a2a00 12px, #2c2000 12px, #2c2000 24px);
  color: var(--gold); text-align: center; font-size: 13px; font-weight: 600; padding: 7px 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 8, 12, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font: 700 18px var(--display); letter-spacing: -.02em; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.header-cta { margin-left: auto; display: flex; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% -10% auto; height: 720px; pointer-events: none;
  background:
    radial-gradient(600px 340px at 20% 30%, rgba(var(--glow), .22), transparent 70%),
    radial-gradient(520px 300px at 85% 20%, rgba(46, 230, 197, .10), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--muted); font-weight: 500;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--instant); box-shadow: 0 0 0 0 rgba(46, 230, 197, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(46, 230, 197, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 230, 197, 0); } }
.hero h1 {
  font: 700 clamp(38px, 5.6vw, 64px)/1.02 var(--display); letter-spacing: -.035em; margin: 20px 0 18px;
}
.hero h1 .grad { background: linear-gradient(100deg, #b6a6ff, var(--accent) 45%, var(--instant)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--instant); flex: none; }

.hero-stack { position: relative; height: 360px; }
.hero-stack .card { position: absolute; width: min(320px, 100%); box-shadow: var(--shadow); }
.hero-stack .card:nth-child(1) { top: 0; right: 8%; transform: rotate(4deg); }
.hero-stack .card:nth-child(2) { top: 110px; left: 0; transform: rotate(-5deg); z-index: 2; }
.hero-stack .card:nth-child(3) { top: 205px; right: 0; transform: rotate(2deg); z-index: 3; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.stat { padding: 20px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 700 26px var(--display); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font: 700 28px/1.15 var(--display); letter-spacing: -.025em; margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.kicker { color: var(--accent-2); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s;
}
.grid .card:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--surface-2); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.card.premium { border-color: rgba(245, 196, 81, .35); background: linear-gradient(180deg, rgba(245, 196, 81, .06), transparent 50%), var(--surface); }
.card.premium:hover { border-color: rgba(245, 196, 81, .6) !important; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.lang { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.card-top .lang { flex: 1 1 auto; overflow: hidden; }
.card-top .cat { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-top .chips { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.lang-badge {
  display: inline-grid; place-items: center; min-width: 24px; height: 20px; padding: 0 5px; border-radius: 5px;
  background: var(--surface-3); border: 1px solid var(--line-2); font: 700 10.5px var(--font); letter-spacing: .03em; color: var(--text);
}
.lang-badge.emoji { background: none; border: 0; font-size: 16px; padding: 0; min-width: 0; }
.lang-badge { flex: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.chip.gold { background: var(--gold-soft); color: var(--gold); }
.chip.instant { background: var(--instant-soft); color: var(--instant); }
.chip.ticket { background: rgba(88, 101, 242, .16); color: #a3abf9; }
.handle { font: 700 22px/1.15 var(--display); letter-spacing: -.02em; word-break: break-all; }
.handle .at { color: var(--accent-2); opacity: .9; }
.meaning { color: var(--muted); font-size: 13.5px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.price { font: 700 22px var(--display); letter-spacing: -.02em; }
.price small { font: 500 12px var(--font); color: var(--faint); margin-left: 3px; }
.card .status-note { font-size: 12px; color: var(--faint); }
/* Narrow cards (phones, tight grids) drop words before anything overflows: first "Premium" becomes ★,
   then the language name goes (the flag stays), then premium cards show icons only. */
.card { container-type: inline-size; }
@container (max-width: 299px) { .card-top .chip.gold .label { display: none; } }
@container (max-width: 169px) { .card-top .cat { display: none; } }
@container (max-width: 139px) { .card.premium .card-top .chip .label { display: none; } }
/* Usernames: full size when they fit, otherwise just small enough for one line (--w is set by app.js). */
@supports (width: 1cqi) {
  .card .handle { --max: 22px; font-size: min(var(--max), calc((100cqi - var(--name-pad, 0px) - 2px) / var(--w, 0.01))); }
}

/* ---------- Premium rail ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail .card { scroll-snap-align: start; }

/* ---------- Market ---------- */
.market { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 22px; padding: 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); max-height: calc(100vh - 100px); overflow: auto; scrollbar-width: thin; }
.filters h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid transparent;
  background: none; cursor: pointer; text-align: left; font-size: 14px; color: var(--muted);
}
.filter-opt:hover { background: var(--surface); color: var(--text); }
.filter-opt.on { background: var(--accent-soft); border-color: rgba(var(--glow), .35); color: var(--text); }
.filter-opt .count { margin-left: auto; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.pill:hover { color: var(--text); border-color: var(--line-2); }
.pill.on { background: var(--accent-soft); border-color: rgba(var(--glow), .45); color: var(--text); }
.range { display: flex; align-items: center; gap: 8px; }
.range input { width: 100%; }
.input {
  height: 40px; width: 100%; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--muted); }
.toggle input { appearance: none; width: 36px; height: 20px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.toggle input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.toggle input:checked { background: var(--instant-soft); border-color: rgba(46, 230, 197, .5); }
.toggle input:checked::after { transform: translateX(16px); background: var(--instant); }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.search { position: relative; flex: 1; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search .input { height: 46px; padding-left: 42px; font-size: 15px; border-radius: 11px; }
.select { height: 46px; padding: 0 36px 0 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%239097ab' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; cursor: pointer; outline: none; }
.select:focus { border-color: var(--accent); }
.result-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; margin-bottom: 14px; min-height: 22px; }
.link-btn { background: none; border: 0; color: var(--accent-2); cursor: pointer; padding: 0; font-size: 13px; font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 16px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.more { display: flex; justify-content: center; margin-top: 22px; }
.filters-toggle { display: none; height: 46px !important; }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 40px; padding: 12px 0; animation: ticker 40s linear infinite; }
.ticker-item { color: var(--muted); font-size: 13.5px; }
.ticker-item b { color: var(--text); font-weight: 600; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Steps / FAQ ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-num { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); font: 700 15px var(--display); margin-bottom: 16px; }
.step h3 { margin: 0 0 6px; font: 600 18px var(--display); }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.faq details { border-radius: 12px; background: var(--surface); border: 1px solid var(--line); padding: 0 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--faint); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }

.cta-band { margin: 24px 0 64px; padding: 44px; border-radius: 20px; text-align: center; border: 1px solid rgba(var(--glow), .35);
  background: radial-gradient(500px 200px at 50% 0%, rgba(var(--glow), .25), transparent 70%), var(--bg-2); }
.cta-band h2 { font: 700 32px var(--display); letter-spacing: -.03em; margin: 0 0 8px; }
.cta-band p { color: var(--muted); margin: 0 0 22px; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(3, 4, 8, .72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
.modal { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); padding: 26px; animation: pop .18s ease; }
.modal.wide { width: min(720px, 100%); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 18px; }
.modal-head h3 { margin: 0; font: 700 22px var(--display); letter-spacing: -.02em; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--muted); flex: none; }
.icon-btn:hover { color: var(--text); }
.buy-summary { padding: 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 18px; }
a.buy-summary { text-decoration: none; margin: 0; }
a.buy-summary:hover { border-color: var(--line-2); }
.buy-summary.row, .buy-summary .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.coins { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.coin { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--surface-3); color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--faint); font-weight: 400; }
.assurances { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.assurances li { display: flex; gap: 8px; align-items: start; }
.assurances svg { color: var(--instant); flex: none; margin-top: 2px; }
.ticket-note svg { color: #a3abf9; }
.ticket-steps { list-style: none; counter-reset: step; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticket-steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 1px 12px; font-size: 14px; }
.ticket-steps li::before { content: counter(step); grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-2); font: 700 13px var(--display); }
.ticket-steps li > * { grid-column: 2; }
.ticket-steps span { color: var(--muted); font-size: 13px; word-break: break-word; }
.ticket-msg { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; margin-bottom: 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px dashed var(--line-2); font-size: 13.5px; }
.ticket-msg span { flex: 1; min-width: 0; word-break: break-word; }
.form-error { color: var(--danger); font-size: 13.5px; margin: 0 0 12px; padding: 10px 12px; border-radius: 9px; background: rgba(255, 107, 125, .08); border: 1px solid rgba(255, 107, 125, .25); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; padding: 12px 18px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px; animation: pop .2s ease; max-width: calc(100% - 32px); }

/* ---------- Order page ---------- */
.order-page { padding: 48px 0 80px; }
.order-card { width: min(640px, 100%); margin-inline: auto; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.order-hero { padding: 28px; border-bottom: 1px solid var(--line); background: radial-gradient(400px 160px at 0% 0%, rgba(var(--glow), .18), transparent 70%); }
.order-hero .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; gap: 12px; }
.order-hero .handle { font-size: 34px; margin: 10px 0 2px; }
.order-body { padding: 28px; }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 26px; }
.stepper div { font-size: 12px; color: var(--faint); padding-top: 10px; border-top: 3px solid var(--line); font-weight: 500; }
.stepper div.done { color: var(--text); border-color: var(--instant); }
.stepper div.active { color: var(--text); border-color: var(--accent); }
.status-box { text-align: center; padding: 8px 0 4px; }
.status-box h2 { font: 700 24px var(--display); margin: 14px 0 6px; letter-spacing: -.02em; }
.status-box p { color: var(--muted); margin: 0 auto 18px; max-width: 440px; }
.spinner { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.big-icon { width: 56px; height: 56px; margin: 0 auto; border-radius: 16px; display: grid; place-items: center; font-size: 28px; }
.big-icon.good { background: var(--instant-soft); color: var(--instant); }
.big-icon.warn { background: rgba(255, 181, 71, .12); color: var(--warn); }
.big-icon.bad { background: rgba(255, 107, 125, .12); color: var(--danger); }
.creds { border-radius: 14px; border: 1px solid rgba(46, 230, 197, .35); background: rgba(46, 230, 197, .04); overflow: hidden; text-align: left; margin: 18px 0; }
.cred-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cred-row:last-child { border-bottom: 0; }
.cred-row .k { width: 110px; flex: none; color: var(--muted); font-size: 13px; }
.cred-row .v { flex: 1; font-family: var(--mono); font-size: 14px; word-break: break-all; }
.creds pre { margin: 0; padding: 14px; font: 14px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.checklist { text-align: left; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-top: 16px; }
.checklist h4 { margin: 0 0 10px; font-size: 14px; }
.checklist ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.vouch { text-align: left; padding: 16px 18px; border-radius: 12px; background: rgba(88, 101, 242, .08); border: 1px solid rgba(88, 101, 242, .35); margin-top: 16px; }
.vouch h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; }
.vouch p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.vouch .ticket-msg { margin-bottom: 12px; }
.vouch p.vouch-join { margin: 10px 0 0; font-size: 13px; text-align: center; }
.vouch-join a { color: var(--accent-2); }
.meaning.support-note { display: block; overflow: visible; min-height: 0; margin: 16px 0 12px; }
.save-link { display: flex; gap: 8px; align-items: center; margin-top: 22px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.save-link span { flex: 1; }

/* ---------- Cart ---------- */
.cart-btn { position: relative; }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.card-actions { display: flex; gap: 6px; align-items: center; }
.cart-toggle { width: 34px; height: 34px; border-radius: 8px; transition: background .15s, border-color .15s, color .15s; }
.cart-toggle:hover { border-color: var(--accent); color: var(--accent-2); }
.cart-toggle.on { background: var(--accent-soft); border-color: rgba(var(--glow), .55); color: var(--accent-2); }
.upsell { margin-top: 10px; font-weight: 500; color: var(--muted); }
.bundle-banner { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 14px; border-radius: 11px; font-size: 14px; color: var(--muted);
  background: linear-gradient(90deg, var(--accent-soft), transparent 80%); border: 1px solid rgba(var(--glow), .3); }
.bundle-banner svg { color: var(--accent-2); flex: none; }
.bundle-banner b { color: var(--text); }

body.has-cart-bar { padding-bottom: 84px; }
body.has-cart-bar .toast { bottom: 96px; }
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(12, 14, 20, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-2); box-shadow: 0 -10px 30px rgba(0, 0, 0, .35); animation: slide-up .2s ease; }
@keyframes slide-up { from { transform: translateY(100%); } }
.cart-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.cart-bar-info { font-size: 14px; min-width: 0; }
.cart-bar-total { font: 700 16px var(--display); }
.cart-bar-total s, .totals s { color: var(--faint); font: 500 13px var(--font); margin-left: 4px; }
.cart-bar-nudge { font-size: 12.5px; color: var(--accent-2); }
.cart-bar-nudge.unlocked { color: var(--instant); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(3, 4, 8, 0); transition: background .2s; }
.drawer-backdrop.open { background: rgba(3, 4, 8, .65); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--bg-2);
  border-left: 1px solid var(--line-2); box-shadow: var(--shadow); transform: translateX(100%); transition: transform .22s ease; }
.drawer-backdrop.open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font: 700 20px var(--display); }
.drawer-body { flex: 1; overflow: auto; padding: 16px 20px; }
.drawer-foot { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--bg); }
.drawer-foot .form-error { margin: 0; }
.drawer-note { display: flex; gap: 8px; margin: 0; font-size: 12.5px; color: var(--faint); }
.drawer-note svg { flex: none; margin-top: 2px; }
.bundle-progress { padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(var(--glow), .3); font-size: 13.5px; }
.bundle-progress.unlocked { background: var(--instant-soft); border-color: rgba(46, 230, 197, .35); }
.bp-track { height: 6px; margin-top: 9px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bp-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s ease; }
.bundle-progress.unlocked .bp-fill { background: var(--instant); }
.cart-items { display: flex; flex-direction: column; gap: 8px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.cart-item.unavailable { opacity: .55; }
.cart-item.unavailable .ci-sub { color: var(--warn); }
.ci-main { flex: 1; min-width: 0; }
.ci-name { font: 700 16px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-name .at { color: var(--accent-2); }
.ci-sub { font-size: 12.5px; color: var(--muted); }
.ci-price { font: 700 15px var(--display); }
.cart-empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.cart-empty b { color: var(--text); font-size: 16px; }
.cart-empty svg { display: inline; vertical-align: -3px; }
.totals { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.totals .row { display: flex; justify-content: space-between; color: var(--muted); }
.totals .discount { color: var(--instant); }
.totals .total { color: var(--text); font: 700 18px var(--display); padding-top: 6px; border-top: 1px dashed var(--line-2); }

/* ---------- Recording notice / account tags ---------- */
.record-note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; margin-bottom: 12px; border-radius: 11px; font-size: 12.5px; line-height: 1.45; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); }
.record-note svg { color: var(--accent-2); flex: none; margin-top: 1px; }
.record-note b { color: var(--text); }
.drawer-foot .record-note { margin: 0; }
.record-reminder { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 13px; color: var(--faint); }
.acct-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12.5px; color: var(--instant); }
.acct-tags span { display: inline-flex; align-items: center; gap: 5px; }
.acct-tags svg { width: 13px; height: 13px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.input-row.single { grid-template-columns: 1fr; }
.support-line b { color: var(--accent-2); font-weight: 600; }

/* ---------- Order items ---------- */
.order-items { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; text-align: left; }
.order-item { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.order-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.order-item-head .handle { font-size: 18px; }
.order-item .creds { margin: 0; border-radius: 0; border-width: 1px 0 0; }
.order-item .item-note { padding: 0 14px 12px; color: var(--muted); font-size: 13.5px; margin: 0; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.promo summary { cursor: pointer; color: var(--accent-2); font-size: 13.5px; font-weight: 500; width: fit-content; list-style: none; }
.promo summary::-webkit-details-marker { display: none; }
.promo-form { display: flex; gap: 8px; margin-top: 8px; }
.promo-form .input { flex: 1; min-width: 0; text-transform: uppercase; }
.promo-form .input::placeholder { text-transform: none; }
.promo-error { color: var(--danger); font-size: 13px; margin-top: 6px; }
.promo-applied { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--instant-soft); color: var(--instant); font-size: 13.5px; }
.promo-applied span { flex: 1; }
.promo-applied .link-btn { color: inherit; opacity: .85; }
[data-modal-promo]:empty, #cart-promo:empty { display: none; }
.buy-summary .price s { color: var(--faint); font: 500 14px var(--font); margin-left: 4px; }
.price-breakdown { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- Admin ---------- */
.stack { display: flex; flex-direction: column; gap: 10px; }
.admin-main { padding: 28px 0 80px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 22px; }
.tab { height: 36px; padding: 0 14px; border-radius: 9px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tab:hover { color: var(--text); }
.tab.on { background: var(--surface-3); color: var(--text); }
.tab .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--warn); color: #1a1200; font-size: 11.5px; display: inline-grid; place-items: center; }
.panel { border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); padding: 20px; }
.panel h3 { margin: 0 0 6px; font: 600 18px var(--display); }
.panel p.help { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.panel code, .help code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-3); padding: 1px 6px; border-radius: 5px; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.admin-toolbar .input, .admin-toolbar .select { height: 40px; width: auto; }
.admin-toolbar .grow { flex: 1; min-width: 200px; }
.summary { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.summary b { color: var(--text); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface); }
table.data .name { font: 600 15px var(--display); }
table.data .muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; }
.st { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--muted); }
.st-available, .st-delivered { background: var(--instant-soft); color: var(--instant); }
.st-reserved, .st-confirming { background: var(--accent-soft); color: var(--accent-2); }
.st-nfs { background: var(--gold-soft); color: var(--gold); }
.st-paid, .st-partially_paid, .st-awaiting { background: rgba(255, 181, 71, .14); color: var(--warn); }
.st-conflict { background: rgba(255, 107, 125, .14); color: var(--danger); }
.yes { color: var(--instant); font-weight: 600; }
.stack-gap { margin-bottom: 16px; }
.uses-input { width: 110px; height: 34px; }
.hook-list { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.no { color: var(--faint); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.modal-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 8px; flex-wrap: wrap; }
.modal-actions .right { display: flex; gap: 10px; margin-left: auto; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 14px; margin-bottom: 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
.events { list-style: none; margin: 0 0 16px; padding: 0; font-size: 12.5px; max-height: 180px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.events li { padding: 7px 12px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.events li:last-child { border-bottom: 0; }
.events time { color: var(--faint); white-space: nowrap; }
.discord-msg { position: relative; margin-bottom: 12px; }
.discord-msg pre { margin: 0; padding: 14px; padding-right: 110px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font: 12.5px/1.5 var(--mono); white-space: pre-wrap; max-height: 220px; overflow: auto; }
.discord-msg .btn { position: absolute; top: 10px; right: 10px; }
.login-box { width: min(380px, 100%); margin: 80px auto; }
.bulk-row { margin: 12px 0 0; }
.bulk-result p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; word-break: break-word; }
.admin-ip { margin: 28px 0 0; font-size: 12.5px; color: var(--faint); }
.admin-ip code { font-family: var(--mono); background: var(--surface-3); padding: 1px 6px; border-radius: 5px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stack { display: none; }
  .market { grid-template-columns: 1fr; }
  .filters { position: static; display: none; max-height: none; }
  .filters.open { display: flex; }
  .filters-toggle { display: inline-flex; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps, .faq { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .input-row { grid-template-columns: 1fr; }
  .nav { display: none; }
  .site-header .wrap { gap: 12px; }
  .logo { font-size: 16px; white-space: nowrap; }
  .header-cta { gap: 8px; }
  .header-cta .btn-primary { display: none; }
  .header-cta .btn-discord span:last-child { display: none; }
  .cart-label { display: none; }
  .card-actions { width: 100%; }
  .card-actions .btn { flex: 1; }
  .cart-bar-inner .btn { padding: 0 14px; }
  .hero-actions .btn { flex: 1; }
  .hero { padding: 44px 0 36px; }
  .hero p.lead { font-size: 16px; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .search { flex-basis: 100%; }
  .toolbar .select { flex: 1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 14px; gap: 10px; }
  .handle { font-size: 18px; }
  .card .handle { --max: 18px; }
  .price { font-size: 18px; }
  .card-bottom { flex-direction: column; align-items: stretch; }
  .card-bottom .btn { width: 100%; }
  .card-top .chip:not(.gold):not(.instant):not(.ticket) { display: none; }
  .cta-band { padding: 28px 18px; }
  .order-hero, .order-body { padding: 20px; }
  .cred-row { flex-wrap: wrap; }
  .cred-row .k { width: 100%; }
}
@media (max-width: 340px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
