/* ============================================================
   Voodoo Pay — design system
   Ink + electric violet + hex-lime. Mobile first.
   ============================================================ */
:root {
  --ink: #0B0A14;
  --ink-2: #12101F;
  --ink-3: #1A1730;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);
  --text: #F4F2FF;
  --muted: #A39FBF;
  --faint: #6E6A8A;
  --lime: #D4FF3A;
  --lime-ink: #151A00;
  --violet: #8C6CFF;
  --magenta: #FF4FB8;
  --ok: #4DFFB0;
  --warn: #FFC94D;
  --bad: #FF5C7A;
  --radius: 22px;
  --radius-sm: 14px;
  --dock-h: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--text);
  font: 500 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--lime); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-size: 0.86em; word-break: break-all; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 8px; }

/* ---------- Atmosphere ---------- */
.aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aura i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.aura i:nth-child(1) { width: 380px; height: 380px; left: -120px; top: -140px; background: var(--violet); animation: drift1 18s ease-in-out infinite alternate; }
.aura i:nth-child(2) { width: 300px; height: 300px; right: -120px; top: -40px; background: var(--magenta); opacity: 0.35; animation: drift2 22s ease-in-out infinite alternate; }
.aura i:nth-child(3) { width: 220px; height: 220px; left: 30%; top: 180px; background: var(--lime); opacity: 0.12; animation: drift1 26s ease-in-out infinite alternate-reverse; }
.grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift1 { to { transform: translate(60px, 50px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-50px, 70px) scale(0.9); } }

/* ---------- Layout ---------- */
.app { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + var(--safe-t)) 18px 12px;
  background: linear-gradient(var(--ink) 30%, rgba(11, 10, 20, 0));
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.03em; }
.brand b span { color: var(--lime); }
.logo { display: inline-block; flex: none; }
.ic { flex: none; display: inline-grid; place-items: center; }
.logo svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 18px rgba(140, 108, 255, 0.45)); }
main { overflow-x: clip; padding: 4px 18px calc(var(--dock-h) + 40px + var(--safe-b)); }
.view { animation: rise 0.38s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.row { display: flex; align-items: center; }
.row.gap { gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.stack.tight { gap: 8px; }
.stack.loose { gap: 22px; }
.stack > *, .field > *, .row > *, .sheet-body > *, .actions > * { min-width: 0; }
.center { text-align: center; }
.hr { height: 1px; background: var(--line); margin: 6px 0; }

/* ---------- Dock (bottom navigation) ---------- */
.dock {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + var(--safe-b));
  width: min(492px, calc(100% - 24px)); height: var(--dock-h);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  padding: 0 6px; border-radius: 26px;
  background: rgba(20, 18, 34, 0.78);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.dock a {
  display: grid; justify-items: center; gap: 3px; padding: 8px 0;
  color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  border-radius: 18px; transition: color .2s;
}
.dock a .ic { display: grid; place-items: center; width: 44px; height: 30px; border-radius: 12px; transition: background .25s, color .25s, transform .25s; }
.dock a.on { color: var(--text); }
.dock a.on .ic { background: var(--lime); color: var(--lime-ink); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212, 255, 58, 0.35); }
.dock a:active .ic { transform: scale(0.92); }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 20px; }
.page-head h1 { font-size: 28px; }
.page-head p { margin-top: 6px; font-size: 14.5px; }
.page-head .back { margin-top: 2px; }
.eyebrow { font: 700 11px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); }

/* ---------- Surfaces ---------- */
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.card.pad-lg { padding: 22px; }
.card h3 { font-size: 17px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 2px 12px; }
.section-title h2 { font-size: 16px; }
.section-title a, .link-btn { color: var(--muted); font-size: 13.5px; font-weight: 700; background: none; border: 0; padding: 6px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 22px; border-radius: 18px; border: 1px solid transparent;
  font-weight: 800; font-size: 16px; letter-spacing: -0.01em;
  transition: transform .15s, background .2s, box-shadow .2s, opacity .2s;
  user-select: none; white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.loading:disabled { opacity: 1; }
.btn.primary { background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 30px rgba(212, 255, 58, 0.22), inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.btn.primary:hover { box-shadow: 0 14px 38px rgba(212, 255, 58, 0.34); }
.btn.violet { background: linear-gradient(135deg, var(--violet), var(--magenta)); color: #fff; }
.btn.ghost { background: var(--glass-2); border-color: var(--line-2); color: var(--text); }
.btn.danger { background: rgba(255, 92, 122, 0.14); border-color: rgba(255, 92, 122, 0.4); color: #FFB3C1; }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 0 14px; border-radius: 13px; font-size: 14px; }
.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 14px;
  background: var(--glass-2); border: 1px solid var(--line); color: var(--text);
}
.icon-btn:active { transform: scale(0.94); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; }
.field-label { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.01em; }
.field-hint { font-size: 12.5px; color: var(--faint); }
.field-error { font-size: 12.5px; color: var(--bad); }
.input {
  width: 100%; min-height: 54px; padding: 0 16px;
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line-2); border-radius: 16px;
  font-size: 16px; font-weight: 600; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--faint); font-weight: 500; }
.input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(140, 108, 255, 0.2); background: rgba(0, 0, 0, 0.38); }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23A39FBF' stroke-width='2'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
select.input option { background: var(--ink-2); }
textarea.input { padding: 14px 16px; min-height: 96px; resize: vertical; font-family: var(--font-mono); font-size: 13px; }
.input.mono-in { font-family: var(--font-mono); font-size: 14px; }

.amount-field { position: relative; display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-radius: 22px; background: rgba(0,0,0,.28); border: 1px solid var(--line-2); }
.amount-field:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(140, 108, 255, 0.2); }
.amount-field input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: none; font: 700 40px/1.1 var(--font-display); letter-spacing: -0.03em; padding: 0; }
.amount-field input::placeholder { color: var(--faint); }
.amount-field select { flex: none; width: auto; min-height: 42px; border-radius: 12px; font-weight: 800; padding-left: 12px; background-color: var(--glass-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--muted); }
.chip.on, .chip:active { background: rgba(212, 255, 58, 0.12); border-color: rgba(212, 255, 58, 0.5); color: var(--lime); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 18px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.seg button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); font-weight: 800; font-size: 14px; }
.seg button.on { background: var(--glass-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 22px; height: 22px; accent-color: var(--lime); flex: none; margin-top: 1px; }

/* ---------- Alerts / pills ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; border: 1px solid; }
.alert .ic { margin-top: 1px; }
.alert.info { background: rgba(140, 108, 255, 0.1); border-color: rgba(140, 108, 255, 0.3); color: #D5CCFF; }
.alert.warn { background: rgba(255, 201, 77, 0.08); border-color: rgba(255, 201, 77, 0.35); color: #FFE3A3; }
.alert.error { background: rgba(255, 92, 122, 0.1); border-color: rgba(255, 92, 122, 0.4); color: #FFC2CD; }
.alert.ok { background: rgba(77, 255, 176, 0.08); border-color: rgba(77, 255, 176, 0.35); color: #BFFFE2; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: rgba(77, 255, 176, 0.1); }
.pill.wait { color: var(--warn); background: rgba(255, 201, 77, 0.1); }
.pill.wait::before { animation: blink 1.4s infinite; }
.pill.bad { color: var(--bad); background: rgba(255, 92, 122, 0.1); }
.pill.off { color: var(--faint); background: var(--glass-2); }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 100; left: 50%; top: calc(14px + var(--safe-t));
  transform: translate(-50%, -140%); transition: transform .35s cubic-bezier(.2, .9, .2, 1.1);
  display: flex; gap: 8px; align-items: center; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 16px; font-weight: 700; font-size: 14px;
  background: #1D1A33; border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.toast.show { transform: translate(-50%, 0); }
.toast.ok .ic { color: var(--lime); }
.toast.error .ic { color: var(--bad); }

/* ---------- Sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(5, 4, 12, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .25s; }
.sheet-wrap.open { background: rgba(5, 4, 12, 0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet {
  width: 100%; max-width: 520px; max-height: 92dvh; overflow: auto;
  background: linear-gradient(180deg, #1A1730, #12101F);
  border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 28px 28px 0 0; padding: 8px 20px calc(24px + var(--safe-b));
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .9, .2, 1);
}
.sheet-wrap.open .sheet { transform: translateY(0); }
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 4px auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.sheet-head h3 { font-size: 20px; }
.sheet-body { display: grid; gap: 16px; }
@media (min-width: 700px) {
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 28px; border-bottom: 1px solid var(--line-2); }
}

/* ---------- Home ---------- */
.hero { position: relative; padding: 18px 0 8px; }
.hero h1 { font-size: clamp(36px, 11vw, 50px); line-height: 1.02; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; background: linear-gradient(95deg, var(--lime), #9BFFCF 45%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .eyebrow { padding-right: 96px; }
.hero p { margin-top: 14px; font-size: 16px; color: var(--muted); max-width: 34ch; }
.sigil { position: absolute; right: -14px; top: 0; width: 132px; height: 132px; opacity: .95; pointer-events: none; }
.sigil svg { width: 100%; height: 100%; overflow: visible; }
.sigil .orbit { transform-origin: 60px 60px; animation: spin 16s linear infinite; }
.sigil .orbit.r { animation-duration: 26s; animation-direction: reverse; }
.hero-cta { display: flex; gap: 10px; margin-top: 22px; }
.hero-cta .btn { flex: 1; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.action {
  position: relative; overflow: hidden; display: grid; align-content: space-between; gap: 22px;
  min-height: 150px; padding: 16px; border-radius: 24px; color: var(--text);
  background: var(--glass); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s; text-align: left;
}
.action:active { transform: scale(0.98); }
.action:hover { border-color: var(--line-2); }
.action .a-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.action h3 { font-size: 16px; }
.action p { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.action::after { content: ''; position: absolute; width: 120px; height: 120px; right: -40px; top: -40px; border-radius: 50%; filter: blur(30px); opacity: .35; }
.action.lime .a-ic { background: var(--lime); color: var(--lime-ink); }
.action.lime::after { background: var(--lime); opacity: .18; }
.action.violet .a-ic { background: var(--violet); color: #fff; }
.action.violet::after { background: var(--violet); }
.action.pink .a-ic { background: var(--magenta); color: #fff; }
.action.pink::after { background: var(--magenta); }
.action.mint .a-ic { background: #4DFFB0; color: #002615; }
.action.mint::after { background: #4DFFB0; opacity: .2; }
.action.wide { grid-column: span 2; min-height: 0; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }

.ticker { display: flex; gap: 26px; overflow: hidden; white-space: nowrap; margin: 26px -18px 0; padding: 12px 0; border-block: 1px solid var(--line); color: var(--faint); font: 700 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker div { display: flex; gap: 26px; animation: marquee 30s linear infinite; }
.ticker span::before { content: '✦'; color: var(--lime); margin-right: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.install { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 22px; background: linear-gradient(120deg, rgba(140, 108, 255, .22), rgba(255, 79, 184, .14)); border: 1px solid rgba(140, 108, 255, .35); }
.install .grow p { font-size: 13px; color: var(--muted); }

/* ---------- Lists ---------- */
.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: transparent; border: 0; width: 100%; text-align: left; color: var(--text); }
.item + .item { border-top: 1px solid var(--line); }
.item .i-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--glass-2); flex: none; }
.item .i-main { flex: 1; min-width: 0; }
.item .i-main b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .i-main small { display: block; color: var(--faint); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .i-end { flex: none; text-align: right; display: grid; gap: 4px; justify-items: end; }
.item .amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.amt.in { color: var(--ok); }

.empty { text-align: center; padding: 36px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty-ic { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--glass-2); color: var(--lime); }
.empty h3 { font-size: 17px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* ---------- Copy rows, QR, results ---------- */
.copy-row { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.copy-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.copy-label { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.qr-wrap { margin: 0; display: grid; justify-items: center; gap: 10px; }
.qr { width: min(240px, 70vw); aspect-ratio: 1; padding: 12px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 6px rgba(212, 255, 58, .16), 0 20px 50px rgba(0, 0, 0, .45); }
.qr svg, .qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.qr-wrap figcaption { font-size: 13px; color: var(--muted); }

.success-burst { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 6px 0 4px; }
.success-burst .tick { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--lime-ink); box-shadow: 0 0 0 10px rgba(212, 255, 58, .12), 0 0 0 22px rgba(212, 255, 58, .05); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.big-amount { font: 700 40px/1 var(--font-display); letter-spacing: -0.04em; }
.big-amount small { font-size: 16px; color: var(--muted); font-family: var(--font-body); letter-spacing: 0; margin-left: 6px; }

.kv { display: grid; gap: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.kv dt, .kv span:first-child { color: var(--muted); }
.kv b { text-align: right; overflow-wrap: anywhere; }

.countdown { display: inline-block; padding: 4px 10px; border-radius: 10px; background: var(--glass-2); font-weight: 700; font-size: 14px; }
.countdown.low { color: var(--bad); background: rgba(255, 92, 122, .12); }

.steps { counter-reset: s; display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 12px; font-size: 14px; color: var(--muted); }
.steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--glass-2); color: var(--lime); font-weight: 800; font-size: 12px; }

/* ---------- Tier information cards ---------- */
.tier-info { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tier-info[open] { border-color: var(--line-2); }
.tier-info summary { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; padding: 14px; cursor: pointer; list-style: none; }
.tier-info summary::-webkit-details-marker { display: none; }
.tier-info summary .vcard { padding: 9px 10px; border-radius: 12px; box-shadow: none; aspect-ratio: 1.586; }
.tier-info summary .vcard .vc-brand { display: none; }
.tier-info summary .vcard .vc-mark { width: 9px; height: 9px; }
.tier-info summary .vcard .vc-tier { font-size: 7px; }
.tier-info summary .vcard .vc-net { font-size: 10px; }
.tier-info summary .vcard .vc-chip { width: 18px; height: 13px; border-radius: 3px; }
.tier-info summary .vcard .vc-num { font-size: 8px; letter-spacing: .06em; }
.tier-info-head { min-width: 0; }
.tier-info-head b { font-family: var(--font-display); font-size: 17px; }
.tier-info-head p { font-size: 12.5px; color: var(--muted); margin: 2px 0 8px; }
.tier-info-head .chips { gap: 6px; }
.tier-info-head .chip { padding: 5px 10px; font-size: 11.5px; }
.tier-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 12.5px; font-weight: 800; color: var(--lime); }
.tier-info[open] .tier-more { opacity: .5; }
.tier-lines { padding: 0 16px 18px; margin: 0; }
.tier-lines div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.tier-lines dt { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.tier-lines b { font-weight: 600; font-size: 13.5px; text-align: left; color: var(--muted); }

/* ---------- Fees ---------- */
.fee-card { display: grid; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.fee-breakdown { display: grid; gap: 6px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.fee-breakdown > div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.fee-breakdown > div b { color: var(--text); }
.fee-breakdown > div.strong { color: var(--text); font-weight: 800; }
.fee-breakdown > div.strong b { color: var(--lime); font-size: 16px; }

/* ---------- Tracking tools ---------- */
.track-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.track-tools .btn { padding: 0 12px; font-size: 14.5px; min-width: 0; white-space: normal; line-height: 1.15; }
.track-tools .btn.on-state { border-color: rgba(212, 255, 58, .5); color: var(--lime); background: rgba(212, 255, 58, .08); }
@media (max-width: 350px) { .track-tools { grid-template-columns: 1fr; } }

/* ---------- Provider / coin pickers ---------- */
.pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); text-align: left; color: var(--text); min-height: 60px; }
.pick img { width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--glass-2); }
.pick b { display: block; font-size: 14px; line-height: 1.2; }
.pick small { display: block; font-size: 11.5px; color: var(--faint); }
.pick.on { border-color: var(--lime); background: rgba(212, 255, 58, .08); box-shadow: inset 0 0 0 1px var(--lime); }
.pick:disabled { opacity: .4; }
.coin-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--violet), var(--magenta)); font-size: 10px; font-weight: 800; flex: none; }
.search { position: sticky; top: 0; z-index: 2; }

/* provider list: one per row so the status badge always fits */
.pick-list { display: grid; gap: 8px; }
.pick-list .pick { width: 100%; }
.pick-list .pick > span:first-child { flex: 1; min-width: 0; }
.pick-list .pill { flex: none; }

/* ---------- Virtual card art ---------- */
.vcard {
  position: relative; overflow: hidden; aspect-ratio: 1.586; border-radius: 22px; padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; isolation: isolate; border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .2);
  text-align: left; width: 100%;
}
.vcard::before { content: ''; position: absolute; inset: 0; z-index: -1; }
.vcard::after { content: ''; position: absolute; inset: -40%; z-index: -1; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .16) 50%, transparent 60%); transform: translateX(-30%); animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 50% { transform: translateX(30%); } }
.vcard.aurora::before { background: radial-gradient(120% 90% at 0% 0%, #B39BFF, transparent 55%), radial-gradient(90% 90% at 100% 100%, #FF4FB8, transparent 55%), linear-gradient(135deg, #5B3BFF, #2A1670); }
.vcard.shadow::before { background: radial-gradient(90% 70% at 100% 0%, rgba(212, 255, 58, .22), transparent 60%), linear-gradient(145deg, #23222C, #07070B); }
.vcard.eclipse::before { background: radial-gradient(circle at 78% 30%, #07060C 22%, #FF7A2E 23%, #FFB35C 25%, transparent 38%), linear-gradient(150deg, #1B0F22, #090610 70%); }
.vcard.gift::before { background: radial-gradient(100% 80% at 100% 0%, rgba(212, 255, 58, .5), transparent 55%), linear-gradient(135deg, #1E7A5B, #0C2A28); }
.vcard .vc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.vcard .vc-tier { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 10px; font: 700 13px/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; opacity: .92; }
.vcard .vc-id { display: grid; gap: 5px; min-width: 0; }
.vcard .vc-brand { display: inline-flex; align-items: center; gap: 5px; font: 600 13px/1 var(--font-display); letter-spacing: -0.03em; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.vcard .vc-brand b { font-weight: 700; color: var(--lime); }
.vcard.shadow .vc-brand b, .vcard.eclipse .vc-brand b { color: var(--lime); }
.vcard.aurora .vc-brand b { color: #F2FFB8; }
.vcard .vc-mark { width: 16px; height: 16px; display: inline-block; color: #fff; }
.vcard .vc-mark svg { width: 100%; height: 100%; display: block; }
.vcard .vc-id .vc-tier { font-size: 10.5px; opacity: .78; }
.vcard .vc-net { font: 800 italic 20px/1 var(--font-body); letter-spacing: -.02em; }
.vcard .vc-chip { width: 38px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #F5E3A8, #B79A4E); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.vcard .vc-num { font: 600 19px/1 var(--font-mono); letter-spacing: .12em; }
.vcard .vc-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.vcard .vc-bal { font: 700 24px/1 var(--font-display); letter-spacing: -.03em; }
.vcard .vc-sub { font-size: 11px; opacity: .75; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 4px 18px 18px; scrollbar-width: none; }
.card-rail::-webkit-scrollbar { display: none; }
.card-rail > * { scroll-snap-align: center; }
.vcard.add { background: var(--glass); border: 1.5px dashed var(--line-2); box-shadow: none; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-weight: 800; }
.vcard.add::after { display: none; }

.balance-hero { padding: 22px; border-radius: 26px; background: linear-gradient(135deg, rgba(140, 108, 255, .28), rgba(255, 79, 184, .12) 60%, rgba(212, 255, 58, .08)); border: 1px solid rgba(140, 108, 255, .35); }
.balance-hero .big-amount { font-size: 44px; margin: 8px 0 18px; }
.tier-opt { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); text-align: left; color: var(--text); width: 100%; }
.tier-opt .vcard { padding: 8px 10px; border-radius: 12px; box-shadow: none; }
.tier-opt .vcard .vc-tier { font-size: 8px; }
.tier-opt.on { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.tier-opt:disabled { opacity: .45; }
.tier-opt b { font-family: var(--font-display); font-size: 16px; }
.tier-opt p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tier-opt .price { font-weight: 800; color: var(--lime); margin-top: 6px; font-size: 14px; }

.secret { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); }
.secret .mono { font-size: 15px; letter-spacing: .06em; }
.code-display { font: 700 44px/1 var(--font-mono); letter-spacing: .18em; text-align: center; color: var(--lime); padding: 18px 0; }
.otp { font: 700 28px/1 var(--font-mono) !important; letter-spacing: .5em; text-align: center; padding-left: .5em !important; }

/* ---------- Merchant promise ---------- */
.promise { margin-top: 16px; padding: 18px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(212,255,58,.10), rgba(140,108,255,.10)); border: 1px solid rgba(212,255,58,.25); display: grid; gap: 12px; }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.promise-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; }
.promise-list li .ic { color: var(--lime); margin-top: 1px; }
.promise-list b { color: var(--text); }

/* ---------- Platform & wallet marks ---------- */
.plat { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; object-fit: contain; background: color-mix(in srgb, var(--tint, #8C6CFF) 18%, transparent); border: 1px solid color-mix(in srgb, var(--tint, #8C6CFF) 45%, transparent); }
.plat b { font: 800 15px/1 var(--font-display); color: var(--tint, #8C6CFF); letter-spacing: -0.02em; }
img.plat { padding: 8px; background: rgba(255,255,255,.92); border-color: var(--line); }
.paymark { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--glass-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--text); }
.paymark img { height: 18px; width: auto; display: block; }

/* ---------- Content pages & footer ---------- */
.prose { margin-bottom: 30px; }
.prose h2 { font-size: 18px; letter-spacing: -0.02em; }
.prose > p:first-child { margin-top: 0; }
.bullets { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.bullets li::marker { color: var(--lime); }
.site-footer { margin-top: 30px; padding: 26px 0 8px; border-top: 1px solid var(--line); display: grid; gap: 24px; }
.site-footer h3 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-family: var(--font-body); font-weight: 800; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--text); font-size: 15px; font-weight: 600; }
.site-footer a:hover { color: var(--lime); }
.site-footer > p { font-size: 12px; }
@media (min-width: 420px) { .site-footer { grid-template-columns: 1fr 1fr; } .site-footer > p { grid-column: 1 / -1; } }

/* ---------- Wide screens: brand rail ---------- */
.side { display: none; }
@media (min-width: 1000px) {
  .shell { display: grid; grid-template-columns: 1fr 520px 1fr; }
  .side { display: flex; flex-direction: column; justify-content: center; position: sticky; top: 0; height: 100dvh; padding: 40px; z-index: 1; }
  .side h2 { font-size: 44px; line-height: 1.02; letter-spacing: -.045em; max-width: 11ch; }
  .side p { color: var(--muted); max-width: 32ch; margin-top: 16px; }
  .side.right { align-items: flex-start; }
  .app { border-inline: 1px solid var(--line); background: rgba(11, 10, 20, .55); width: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Closed merchant categories */
.mcc-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.mcc-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 13.5px; color: var(--muted); }
.mcc-list code { font-family: var(--mono, 'JetBrains Mono', monospace); font-size: 12px; font-weight: 700; color: var(--lime); background: rgba(212, 255, 58, 0.08); border-radius: 6px; padding: 2px 6px; text-align: center; }

/* Get paid — card / crypto chooser */
.choose-card { width: 100%; text-align: left; cursor: pointer; border: 1px solid var(--line); transition: border-color .18s ease, transform .18s ease; }
.choose-card:active { transform: scale(.99); }
.choose-card:hover { border-color: rgba(212, 255, 58, .45); }
.choose-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--line); color: var(--lime); }

/* Exchange widget */
.exchange-wrap { position: relative; min-height: 560px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--glass); }
.exchange-wrap.ready { min-height: 0; border: 0; background: none; }
.exchange-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.exchange-wrap.ready .exchange-loading { display: none; }
.exchange-frame { display: block; width: 100%; min-height: 620px; border: 0; border-radius: 22px; background: #fff; }
@media (min-width: 700px) { .exchange-frame { min-height: 700px; } }

/* Exchange / swap */
.amount-unit { flex: none; font: 800 15px/1 var(--font-body); color: var(--muted); letter-spacing: .04em; padding-right: 4px; }
.swap-flip-row { display: flex; justify-content: center; margin: -6px 0; position: relative; z-index: 1; }
.swap-flip { width: 44px; height: 44px; border-radius: 50%; background: var(--ink-3); border: 1px solid var(--line-2); color: var(--lime); }
.swap-flip:active { transform: rotate(180deg); transition: transform .25s ease; }
.stage-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.stage-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 12px; color: var(--faint); font-size: 14.5px; font-weight: 600; }
.stage-list .stage-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line-2); color: var(--ink); }
.stage-list li.done { color: var(--muted); }
.stage-list li.done .stage-dot { background: var(--ok); border-color: var(--ok); }
.stage-list li.now { color: var(--text); }
.stage-list li.now .stage-dot { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 0 5px rgba(212, 255, 58, .14); animation: blink 1.6s ease-in-out infinite; }
