/* VoodooPay Wallet: same design tokens as voodoopay.online (ink + electric violet + hex-lime). */
: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; --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, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--lime); text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 8px; }
.mono { font-family: var(--font-mono); font-size: 0.86em; word-break: break-all; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .lime { color: var(--lime); } .center { text-align: center; }
.ic { flex: none; display: inline-grid; place-items: center; }

.aura { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aura i { position: absolute; border-radius: 50%; filter: blur(70px); }
.aura i:nth-child(1) { width: 380px; height: 380px; left: -120px; top: -140px; background: var(--violet); opacity: .5; }
.aura i:nth-child(2) { width: 300px; height: 300px; right: -120px; top: -40px; background: var(--magenta); opacity: .32; }
.aura i:nth-child(3) { width: 220px; height: 220px; left: 30%; top: 260px; background: var(--lime); opacity: .07; }
.app { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; min-height: 100dvh; }
main { padding: calc(14px + var(--safe-t)) 18px calc(var(--dock-h) + 36px + var(--safe-b)); }
main.nodock { padding-bottom: calc(110px + var(--safe-b)); }
.view { animation: rise .35s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.stack { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; }
.stack.tight { gap: 8px; } .stack.loose { gap: 22px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 11px; display: block; }
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.03em; }
.brand b span { color: var(--lime); }
.tag { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--glass-2); border: 1px solid var(--line); padding: 5px 9px; border-radius: 999px; }
.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(.94); }
.page-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 20px; }
.page-head h1 { font-size: 24px; }
.eyebrow { font: 700 11px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }

.card { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card.glow { border-color: var(--line-2); background: linear-gradient(135deg, rgba(140,108,255,.28), rgba(255,79,184,.10) 70%, rgba(255,255,255,.03)); }
.card.flush { padding: 4px 18px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 24px 2px 10px; }
.section-title h2 { font-size: 15px; }
.big { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; }

.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, box-shadow .2s, opacity .2s; user-select: none; text-align: center; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 30px rgba(212,255,58,.22), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn.ghost { background: var(--glass-2); border-color: var(--line-2); color: var(--text); }
.btn.danger { background: rgba(255,92,122,.14); border-color: rgba(255,92,122,.4); color: #FFB3C1; }
.btn.block { width: 100%; } .btn.sm { min-height: 40px; padding: 0 14px; border-radius: 13px; font-size: 14px; }
.btn.loading { opacity: .7; }
.bar { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; padding: 14px 18px calc(18px + var(--safe-b)); background: linear-gradient(rgba(11,10,20,0), var(--ink) 40%); }
.bar .in { max-width: 484px; margin: 0 auto; display: grid; gap: 10px; }

.field { display: grid; gap: 7px; }
.field-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field-hint { font-size: 12.5px; color: var(--faint); }
.input, textarea.input { width: 100%; min-height: 54px; padding: 0 16px; background: rgba(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; -webkit-appearance: none; appearance: none; }
textarea.input { padding: 14px 16px; min-height: 96px; resize: none; font-family: var(--font-mono); font-size: 13px; font-weight: 500; line-height: 1.5; }
.input.mono-in { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.input::placeholder, textarea.input::placeholder { color: var(--faint); font-weight: 500; }
.input:focus, textarea.input:focus, .amount-field:focus-within, .wrapin:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(140,108,255,.2); }
.wrapin { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.28); border: 1px solid var(--line-2); border-radius: 16px; padding: 0 6px 0 16px; min-height: 54px; }
.wrapin input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-weight: 500; font-size: 14px; font-family: var(--font-mono); padding: 0; }
.amount-field { 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 .cur { font: 600 28px var(--font-display); color: var(--faint); }
.amount-field input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: none; font: 600 34px/1.1 var(--font-display); letter-spacing: -0.03em; padding: 0; }
.amount-field input::placeholder { color: var(--faint); }
.chip { padding: 8px 14px; border-radius: 999px; background: rgba(212,255,58,.12); border: 1px solid rgba(212,255,58,.5); color: var(--lime); font-size: 13.5px; font-weight: 800; }
.chip.plain { background: var(--glass-2); border-color: var(--line); color: var(--muted); font-weight: 700; padding: 6px 12px; font-size: 12.5px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 18px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.seg button { 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); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.tile { border-radius: 22px; border: 1px solid var(--line); background: var(--glass); color: var(--text); padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; }
.tile.hot { border-color: rgba(212,255,58,.5); background: rgba(212,255,58,.12); }
.promo .sq { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.tile .sq { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text); }
.item + .item { border-top: 1px solid var(--line); }
.item .sq { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--glass-2); color: var(--muted); }
.item b { font-weight: 800; font-size: 15px; } .item small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.item .amt { text-align: right; font-weight: 800; font-size: 15px; } .item .amt small { font-family: var(--font-mono); color: var(--faint); font-size: 11px; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv span:first-child { font-size: 14px; color: var(--muted); } .kv span:last-child { font-size: 14px; font-weight: 800; text-align: right; min-width: 0; }
.alert { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius); padding: 14px 16px; font-size: 13.5px; line-height: 1.5; border: 1px solid var(--line); background: var(--glass); }
.alert.warn { background: rgba(255,201,77,.08); border-color: rgba(255,201,77,.3); } .alert.warn .ic { color: var(--warn); }
.alert.error { background: rgba(255,92,122,.1); border-color: rgba(255,92,122,.35); } .alert.error .ic { color: var(--bad); }
.alert.ok { background: rgba(77,255,176,.08); border-color: rgba(77,255,176,.3); } .alert.ok .ic { color: var(--ok); }
.alert .ic { margin-top: 1px; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: var(--glass-2); color: var(--muted); }
.pill.ok { background: rgba(77,255,176,.14); color: var(--ok); } .pill.pending { background: rgba(255,201,77,.14); color: var(--warn); } .pill.bad { background: rgba(255,92,122,.14); color: var(--bad); }

.hero { padding-top: 40px; display: grid; gap: 18px; }
.hero img { width: 76px; height: 76px; border-radius: 24px; box-shadow: 0 14px 44px rgba(140,108,255,.5); }
.hero h1 { font-size: 36px; } .hero p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.qr { width: 232px; height: 232px; margin: 0 auto; background: #fff; border-radius: 26px; padding: 14px; box-shadow: 0 0 60px rgba(140,108,255,.45); }
.qr svg { width: 100%; height: 100%; display: block; }
.seed { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.word { display: flex; align-items: baseline; gap: 6px; padding: 10px 10px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--line); font-weight: 800; font-size: 14.5px; }
.word i { font-style: normal; font-size: 11px; color: var(--faint); font-weight: 700; min-width: 15px; }
.steps { display: grid; }
.step { display: flex; gap: 14px; }
.step .rail { display: flex; flex-direction: column; align-items: center; }
.step .dot { width: 24px; height: 24px; border-radius: 9px; display: grid; place-items: center; border: 2px solid var(--line-2); color: var(--ink); flex: none; }
.step.done .dot { background: var(--ok); border-color: var(--ok); }
.step.now .dot { border-color: var(--lime); }
.step .line { width: 2px; flex: 1; min-height: 22px; background: var(--line-2); } .step.done .line { background: var(--ok); }
.step .txt { padding-bottom: 16px; } .step .txt b { font-size: 15px; font-weight: 800; display: block; } .step .txt small { color: var(--muted); font-size: 13px; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--lime); border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.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(4, 1fr); align-items: center; padding: 0 6px; border-radius: 26px; background: rgba(20,18,34,.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,.55); }
.dock a { display: grid; justify-items: center; gap: 3px; padding: 8px 0; color: var(--faint); font-size: 11px; font-weight: 700; border-radius: 18px; }
.dock a .sq { display: grid; place-items: center; width: 44px; height: 30px; border-radius: 12px; transition: background .25s, transform .25s; }
.dock a.on { color: var(--text); }
.dock a.on .sq { background: var(--lime); color: var(--lime-ink); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,255,58,.35); }
#toast { position: fixed; z-index: 60; left: 50%; bottom: calc(110px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #1d1a33; border: 1px solid var(--line-2); padding: 10px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; transition: .25s; max-width: 86vw; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
