:root {
  --bg: #05070d;
  --bg-2: #0a0e18;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-solid: #0e1320;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #eef1f7;
  --muted: #8b93a7;
  --muted-2: #5f6779;
  --accent: #2be38b;
  --accent-ink: #032414;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 40%, transparent);
  --cyan: #38d6f5;
  --warn: #f7c14b;
  --danger: #ff6b7a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

/* ---------- background ---------- */
.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-glow::before, .bg-glow::after {
  content: ''; position: absolute; width: 780px; height: 780px; border-radius: 50%; filter: blur(120px); opacity: 0.22;
}
.bg-glow::before { background: var(--accent); top: -420px; left: -220px; }
.bg-glow::after { background: var(--cyan); top: -300px; right: -360px; opacity: 0.13; }
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 14.5px; background: none;
  transition: transform .15s ease, background .2s, border-color .2s, box-shadow .2s, opacity .2s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px var(--accent); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 14px 40px -10px var(--accent); filter: brightness(1.05); }
.btn-ghost { border-color: var(--border-2); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn-block { width: 100%; padding: 15px 20px; font-size: 15.5px; border-radius: 14px; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn svg { width: 17px; height: 17px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(18px) saturate(1.3); background: rgba(5, 7, 13, 0.62); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; min-width: 0; }
.brand img { width: 36px; height: 36px; object-fit: contain; border-radius: 10px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--cyan)); color: var(--accent-ink); font-weight: 800; font-size: 19px;
}
.brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-links { display: flex; gap: 26px; margin-left: 18px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 14.5px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.country-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--surface); font-weight: 600; font-size: 13.5px;
}
.country-pill:hover { background: var(--surface-2); }
.country-pill svg { width: 14px; height: 14px; color: var(--muted); }
.flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; flex: none; background: var(--surface-2); display: inline-grid; place-items: center; font-size: 11px; }
.flag.round { width: 22px; height: 22px; border-radius: 50%; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 56px; align-items: start; padding: 64px 0 80px; }
.hero-copy { padding-top: 70px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--muted); font-weight: 500;
}
.eyebrow b { color: var(--text); font-weight: 700; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-line); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.04em; margin: 22px 0 18px; font-weight: 800; }
.grad { background: linear-gradient(100deg, var(--accent), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0 0 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0 0 30px; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #c9cfdb; }
.trust svg { width: 18px; height: 18px; color: var(--accent); }
.avail { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.avail-label { font-size: 13px; color: var(--muted); margin-right: 4px; display: flex; align-items: center; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.tag svg { width: 14px; height: 14px; color: var(--accent); }

/* ---------- sell card ---------- */
.sell-card {
  position: relative; scroll-margin-top: 90px; border-radius: 26px; padding: 26px; background: linear-gradient(180deg, rgba(20, 27, 44, 0.86), rgba(11, 15, 25, 0.92));
  border: 1px solid var(--border-2); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(20px);
}
.sell-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, var(--accent-line), transparent 35%, transparent 65%, color-mix(in srgb, var(--cyan) 35%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.stepper { display: flex; gap: 6px; margin-bottom: 22px; }
.stepper div { flex: 1; }
.stepper i { display: block; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; position: relative; }
.stepper i::after { content: ''; position: absolute; inset: 0; width: 0; background: var(--accent); transition: width .4s ease; }
.stepper .done i::after, .stepper .on i::after { width: 100%; }
.stepper span { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--muted-2); }
.stepper .on span, .stepper .done span { color: var(--text); }

.box { background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; transition: border-color .2s; }
.box:focus-within { border-color: var(--accent-line); }
.box-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); font-weight: 500; }
.amount-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.amount-row input, .amount-row .out {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; padding: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.amount-row input::placeholder { color: var(--muted-2); }
.token { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: 14.5px; flex: none; }
.token svg, .token .flag { width: 24px; height: 24px; border-radius: 50%; }
.chips { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.chip { padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--muted); transition: all .15s; }
.chip:hover, .chip.on { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }

.label-sm { font-size: 13px; color: var(--muted); font-weight: 600; margin: 18px 0 9px; display: flex; justify-content: space-between; align-items: center; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.seg-btn {
  display: flex; align-items: center; gap: 10px; text-align: left; padding: 11px 13px; border-radius: 13px; background: rgba(0,0,0,.25);
  border: 1px solid var(--border); transition: all .15s;
}
.seg-btn b { display: block; font-size: 14.5px; }
.seg-btn small { display: block; color: var(--muted); font-size: 12px; }
.seg-btn .ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.seg-btn:hover:not(:disabled) { border-color: var(--border-2); }
.seg-btn.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.seg-btn:disabled { opacity: .4; cursor: not-allowed; }
.seg.mini .seg-btn { justify-content: center; padding: 9px; font-weight: 600; font-size: 14px; }

.swap { display: grid; place-items: center; margin: -8px 0; position: relative; z-index: 1; }
.swap span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-solid); border: 1px solid var(--border-2); color: var(--accent); }
.swap svg { width: 18px; height: 18px; }
.receive { margin-top: 0; }
.receive .out { color: var(--accent); }
.rate-line { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin: 14px 2px 18px; }
.rate-line b { color: var(--text); }

.err { color: var(--danger); font-size: 13.5px; font-weight: 500; min-height: 0; margin: 0 0 12px; }
.err:empty { display: none; }
.back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 13.5px; padding: 0; margin-bottom: 12px; }
.back:hover { color: var(--text); }
.back svg { width: 16px; height: 16px; }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 13px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 14px; }
.summary b { font-weight: 700; }
.summary .arrow { color: var(--accent); }

.method-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mp { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 13px; text-align: left; background: rgba(0,0,0,.25); border: 1px solid var(--border); transition: all .15s; min-width: 0; }
.mp .mi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); flex: none; }
.mp .mi svg { width: 18px; height: 18px; }
.mp b { display: block; font-size: 13.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.mp small { display: block; font-size: 11.5px; color: var(--muted); }
.mp span { min-width: 0; }
.mp:hover { border-color: var(--border-2); }
.mp.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.mp.on .mi { background: var(--accent); color: var(--accent-ink); }

.fields { display: grid; gap: 10px; margin-top: 14px; }
.fl { display: grid; gap: 6px; }
.fl > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.fl em { font-style: normal; color: var(--muted-2); font-weight: 500; }
.input, .fl input, .fl select, .fl textarea {
  width: 100%; background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.fl textarea { resize: vertical; min-height: 80px; }
.input:focus, .fl input:focus, .fl select:focus, .fl textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fl input.bad { border-color: var(--danger); }
.input-group { display: flex; align-items: stretch; background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-group .prefix { display: flex; align-items: center; padding: 0 12px; color: var(--muted); border-right: 1px solid var(--border); font-weight: 600; font-size: 14px; background: var(--surface); }
.input-group input { border: 0; background: none; box-shadow: none !important; flex: 1; padding: 12px 14px; outline: 0; min-width: 0; }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.hint { font-size: 12.5px; color: var(--muted); margin: 8px 2px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 16px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 1px 0 0; flex: none; }

/* deposit step */
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.order-id { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.order-id b { font-family: var(--mono); color: var(--text); font-size: 13.5px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-wait { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.b-info { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 13%, transparent); }
.b-ok { color: var(--accent); background: var(--accent-soft); }
.b-bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 13%, transparent); }
.b-mute { color: var(--muted); background: var(--surface-2); }

.send-exact { text-align: center; margin-bottom: 16px; }
.send-exact small { color: var(--muted); font-size: 13px; font-weight: 500; }
.send-exact .big { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; display: flex; align-items: center; justify-content: center; gap: 10px; }
.send-exact .net { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); margin-top: 6px; }
.icon-btn { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); flex: none; transition: all .15s; }
.icon-btn:hover { color: var(--text); border-color: var(--border-2); }
.icon-btn svg { width: 15px; height: 15px; }
.qr-wrap { display: grid; place-items: center; margin: 4px 0 16px; }
.qr { position: relative; padding: 12px; background: #fff; border-radius: 20px; box-shadow: 0 0 0 6px var(--accent-soft), 0 20px 50px -20px var(--accent); }
.qr img { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.qr .qr-logo { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; transform: translate(-50%, -50%); border-radius: 50%; border: 4px solid #fff; background: #fff; }
.addr { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 13px; background: rgba(0,0,0,.35); border: 1px solid var(--border); }
.addr code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; word-break: break-all; line-height: 1.45; }
.warn { display: flex; gap: 10px; padding: 11px 13px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; margin: 12px 0; background: color-mix(in srgb, var(--warn) 9%, transparent); color: #f4d58a; border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); }
.warn svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.kv { display: grid; gap: 9px; padding: 14px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--border); font-size: 13.5px; margin: 12px 0; }
.kv div { display: flex; justify-content: space-between; gap: 14px; }
.kv span { color: var(--muted); flex: none; }
.kv b { text-align: right; font-weight: 600; word-break: break-word; }
.kv b.acc { color: var(--accent); font-size: 15px; }
.timer { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--warn); }
.timeline { display: grid; gap: 0; margin: 16px 0 4px; }
.tl { display: grid; grid-template-columns: 24px 1fr; gap: 12px; position: relative; padding-bottom: 14px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ''; position: absolute; left: 11px; top: 22px; bottom: 0; width: 2px; background: var(--border); }
.tl:last-child::before { display: none; }
.tl.done::before { background: var(--accent); }
.tl i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--border-2); z-index: 1; }
.tl.done i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tl.cur i { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl i svg { width: 12px; height: 12px; }
.tl b { display: block; font-size: 13.5px; }
.tl small { color: var(--muted); font-size: 12px; }
.state-hero { text-align: center; padding: 10px 0 6px; }
.state-hero .ring { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--accent-soft); color: var(--accent); }
.state-hero .ring.bad { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.state-hero .ring.info { background: color-mix(in srgb, var(--cyan) 14%, transparent); color: var(--cyan); }
.state-hero .ring svg { width: 34px; height: 34px; }
.state-hero h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -0.02em; }
.state-hero p { margin: 0; color: var(--muted); font-size: 14px; }
.row-actions { display: flex; gap: 8px; margin-top: 14px; }
.row-actions .btn { flex: 1; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { height: 420px; display: grid; place-items: center; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-inline: auto; }
.kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.section h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.035em; line-height: 1.1; margin: 10px 0 12px; }
.section-head p { color: var(--muted); font-size: 16.5px; margin: 0; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.m-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .2s, border-color .2s; }
.m-card:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.m-card .mi { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.m-card .mi svg { width: 22px; height: 22px; }
.m-card h3 { margin: 0 0 4px; font-size: 17px; }
.m-card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.m-card .eta { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; font-size: 12.5px; font-weight: 600; color: #c9cfdb; }
.m-card .eta svg { width: 14px; height: 14px; color: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.step::after { counter-increment: s; content: '0' counter(s); position: absolute; right: 18px; top: 8px; font-size: 64px; font-weight: 800; color: rgba(255,255,255,.04); letter-spacing: -0.04em; }
.step .mi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--cyan)); color: var(--accent-ink); margin-bottom: 18px; }
.step .mi svg { width: 22px; height: 22px; }
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 22px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), transparent); }
.stat { padding: 30px 26px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 34px; letter-spacing: -0.03em; font-weight: 800; }
.stat span { color: var(--muted); font-size: 14px; }

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--border-2); }
.faq summary { list-style: none; cursor: pointer; padding: 19px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--muted); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; }

.cta { position: relative; overflow: hidden; border-radius: 28px; padding: 56px; text-align: center; border: 1px solid var(--accent-line); background: radial-gradient(ellipse at top, var(--accent-soft), transparent 70%), var(--surface); }
.cta h2 { margin-top: 0; }
.cta p { color: var(--muted); margin: 0 auto 26px; max-width: 520px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 60px 0 30px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 380px; margin: 14px 0 0; }
.footer h4 { margin: 0 0 14px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.footer ul a:hover { color: var(--accent); }
.footer li { display: flex; gap: 9px; align-items: flex-start; color: #c9cfdb; }
.footer li svg { width: 16px; height: 16px; color: var(--muted); flex: none; margin-top: 3px; }
.license { margin-top: 40px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); padding: 22px 24px; }
.license-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.license-head svg { width: 20px; height: 20px; color: var(--accent); }
.license-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 28px; }
.license-grid div span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 700; margin-bottom: 3px; }
.license-grid div b { font-weight: 600; font-size: 14px; word-break: break-word; }
.disclaimer { color: var(--muted-2); font-size: 12.5px; line-height: 1.6; margin: 22px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 13px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(2, 4, 8, 0.72); backdrop-filter: blur(8px); animation: fade .2s ease; }
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal-card { width: min(460px, 100%); max-height: min(640px, 90vh); display: flex; flex-direction: column; background: var(--surface-solid); border: 1px solid var(--border-2); border-radius: 22px; box-shadow: var(--shadow); animation: pop .22s ease; overflow: hidden; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 12px; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-body { padding: 4px 20px 20px; overflow: auto; }
.country-list { display: grid; gap: 2px; margin-top: 10px; }
.country-list button { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border: 0; border-radius: 11px; background: none; text-align: left; font-weight: 500; }
.country-list button:hover, .country-list button.on { background: var(--surface-2); }
.country-list small { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.recent-orders { display: grid; gap: 6px; margin-top: 16px; }
.recent-orders button { display: flex; justify-content: space-between; align-items: center; padding: 11px 13px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); text-align: left; }
.recent-orders button:hover { border-color: var(--border-2); }
.recent-orders code { font-family: var(--mono); font-size: 13px; }
.recent-orders small { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 100; padding: 11px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; transition: all .25s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; }
  .hero-copy { text-align: center; padding-top: 0; }
  .lead { margin-inline: auto; }
  .trust, .avail { justify-content: center; }
  .sell-card { max-width: 520px; margin-inline: auto; width: 100%; }
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .nav-inner { height: 62px; gap: 10px; }
  .brand { font-size: 16px; }
  #trackBtn .lbl { display: none; }
  .sell-card { padding: 18px; border-radius: 22px; }
  .amount-row input, .amount-row .out { font-size: 26px; }
  .method-pick { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta { padding: 36px 22px; }
  .footer-top { grid-template-columns: 1fr; }
  .stat { padding: 22px 18px; }
  .stat b { font-size: 26px; }
}

.wallet-pay { margin: 4px 0 6px; }
.wallet-pay .btn svg { width: 19px; height: 19px; }
.wallet-pay .hint { margin-top: 8px; }

.deep-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.deep-btn { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); transition: transform .15s, background .15s; }
.deep-btn:active { transform: scale(.98); }
.deep-btn:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.deep-btn .wl { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.deep-btn .wl svg { width: 18px; height: 18px; }
.deep-btn b { display: block; font-size: 14px; }
.deep-btn small { display: block; font-size: 11.5px; color: var(--muted); }

.demo-bar { position: relative; z-index: 50; text-align: center; padding: 9px 16px; font-size: 13.5px; background: var(--warn); color: #241a00; font-weight: 500; }
.demo-bar a { text-decoration: underline; font-weight: 700; margin-left: 6px; }

.auth-area { display: flex; gap: 8px; align-items: center; }
.auth-area .btn svg { width: 16px; height: 16px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--cyan)); color: var(--accent-ink); font-weight: 800; font-size: 12.5px; flex: none; }
.avatar.lg { width: 44px; height: 44px; font-size: 18px; }
.acct-btn { padding-left: 6px; }
.acct-who, .signed-in { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.signed-in { margin-top: 2px; border-color: var(--accent-line); background: var(--accent-soft); }
.acct-who b, .signed-in b { display: block; font-size: 14.5px; }
.acct-who small, .signed-in small { display: block; color: var(--muted); font-size: 12.5px; word-break: break-all; }
.recent-orders button .badge { flex: none; }
@media (max-width: 760px) { .signup-btn { display: none; } .acct-btn .lbl { display: none; } }
@media (max-width: 420px) { #loginBtn span { display: none; } #loginBtn { padding: 7px 10px; } }
