/* ============================================================================
   BTCPay.exchange — design system "Neon Cyber"
   Dark-first, glassmorphism, gradient accents. Fully themed via CSS variables;
   [data-theme="light"] flips the palette for the light mode.
   ========================================================================== */

/* ---------- Tokens (matched to the VoIPClaw design system) ---------- */
:root {
  --bg-deep: #050505;
  --bg-base: #0a0a0a;
  --bg-card: #131009;
  --bg-surface: #1a1206;
  --bg-surface-2: #241b0d;

  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --text-muted: #7a7a7a;

  --brand: #ff6b00;
  --brand-soft: #ff8c00;
  --brand-light: #ffb347;
  --cyan: #00f0ff;
  --neon-green: #10b981;

  --gradient-primary: linear-gradient(135deg, #ff6b00 0%, #ff8c00 55%, #ffb347 100%);
  --gradient-cyan: linear-gradient(135deg, #00f0ff 0%, #00b8ff 100%);
  --gradient-accent: linear-gradient(135deg, #ff3d5e 0%, #ff6b00 100%);
  --gradient-terminal: linear-gradient(135deg, rgba(255,107,0,0.55), rgba(255,179,71,0.4) 55%, rgba(0,240,255,0.45));

  --glow: rgba(255, 107, 0, 0.3);

  --status-success: #10b981;
  --status-warning: #f59e0b;
  --status-error: #ef4444;
  --status-info: #00f0ff;

  --glass-bg: rgba(255, 255, 255, 0.025);
  --glass-bg-strong: rgba(10, 10, 10, 0.78);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-strong: rgba(255, 255, 255, 0.14);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);

  --stroke: rgba(255, 255, 255, 0.08);
  --input-bg: rgba(0, 0, 0, 0.35);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Orbitron', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem; --text-lg: 1.125rem;
  --text-xl: 1.25rem; --text-2xl: 1.5rem; --text-3xl: 1.875rem; --text-4xl: 2.25rem;
  --text-5xl: 3rem; --text-6xl: 3.75rem;

  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-full: 9999px;
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px; --sp-5: 40px; --sp-6: 48px; --sp-8: 64px;

  --nav-h: 64px;
  --ticker-h: 36px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

[data-theme="light"] {
  --bg-deep: #f3f4f6;
  --bg-base: #f8f8f7;
  --bg-card: #ffffff;
  --bg-surface: #f4f2ee;
  --bg-surface-2: #e7e2d8;

  --text-primary: #111111;
  --text-secondary: #4b4b4b;
  --text-muted: #8a8a8a;

  --glass-bg: rgba(17, 17, 17, 0.02);
  --glass-bg-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(17, 17, 17, 0.08);
  --glass-border-strong: rgba(17, 17, 17, 0.16);
  --glass-shadow: 0 8px 32px rgba(17, 17, 17, 0.08);
  --stroke: rgba(17, 17, 17, 0.09);
  --input-bg: rgba(17, 17, 17, 0.04);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(255, 107, 0, 0.25); }

.mono { font-family: var(--font-mono); }
.hidden { display: none !important; }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--bg-surface-2); border-radius: var(--r-full); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Ambient background scene ---------- */
.bg-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(ellipse 80% 55% at 50% -5%, rgba(255, 107, 0, 0.16) 0%, transparent 70%),
  radial-gradient(1000px 700px at -10% 30%, rgba(0, 240, 255, 0.05), transparent 60%),
  var(--bg-deep);
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 40%, transparent 100%);
}
[data-theme="light"] .bg-grid { opacity: 0.5; }
.bg-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.orb-1 { width: 460px; height: 460px; top: -140px; right: 6%; background: radial-gradient(circle, rgba(255,107,0,.22), transparent 70%); animation: drift1 26s ease-in-out infinite alternate; }
.orb-2 { width: 360px; height: 360px; top: 30%; left: -140px; background: radial-gradient(circle, rgba(0,240,255,.10), transparent 70%); animation: drift2 32s ease-in-out infinite alternate; }
.orb-3 { width: 300px; height: 300px; bottom: -80px; right: 30%; background: radial-gradient(circle, rgba(255,140,0,.14), transparent 70%); animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-60px, 80px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(100px, -60px) scale(1.15); } }
@keyframes drift3 { to { transform: translate(-80px, -40px); } }

/* ---------- Splash ---------- */
.splash { min-height: 100vh; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; }
.splash-logo { width: 56px; height: 56px; animation: splashPulse 1.6s var(--ease) infinite; }
.splash-text { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.08em; font-size: var(--text-xl); }
.splash-text span { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes splashPulse { 0%, 100% { opacity: 0.6; transform: scale(0.97); } 50% { opacity: 1; transform: scale(1.02); } }

/* ---------- Layout ---------- */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-3); }
main { flex: 1; }
.page { animation: pageEnter 0.45s var(--ease) both; padding-bottom: var(--sp-8); }
@keyframes pageEnter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.section { padding: var(--sp-8) 0 0; }
.section-head { margin-bottom: var(--sp-4); }
.section-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand); padding: 6px 14px; border-radius: var(--r-full);
  border: 1px solid rgba(255, 107, 0, 0.25); background: rgba(255, 107, 0, 0.06);
}
.section-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2.25rem); font-weight: 800; margin-top: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.section-sub { color: var(--text-secondary); margin-top: 8px; max-width: 640px; }
.gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }

/* ---------- Glass card ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
}
.glass-strong { background: var(--glass-bg-strong); }
.card-hover { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.card-hover:hover { transform: translateY(-4px); border-color: rgba(255, 107, 0, 0.25); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45); }
[data-theme="light"] .card-hover:hover { box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12); }

/* ---------- Buttons (VoIPClaw "clip-cyber" language) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  border: 0; border-radius: 0;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm);
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  position: relative; overflow: hidden; white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--gradient-primary); color: #0a0a0a; box-shadow: 0 0 20px var(--glow); }
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-110%); transition: transform 0.6s var(--ease);
}
.btn-primary:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 0 40px var(--glow), 0 0 90px rgba(255, 107, 0, 0.14); filter: brightness(1.08); }
.btn-primary:hover:not([disabled])::before { transform: translateX(110%); }
.btn-secondary { background: var(--glass-bg); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--glass-border-strong); backdrop-filter: blur(12px); }
.btn-secondary:hover:not([disabled]) { box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.5), 0 0 20px rgba(255, 107, 0, 0.12); transform: translateY(-2px); color: var(--brand-light); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--glass-bg); }
.btn-danger { background: var(--gradient-accent); color: #fff; }
.btn-lg { padding: 17px 38px; font-size: var(--text-base); }
.btn-sm { padding: 9px 18px; font-size: var(--text-xs); }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; border-top-color: #0a0a0a; }
.btn-secondary .spinner, [data-theme="light"] .btn .spinner { border-top-color: var(--brand); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); letter-spacing: 0.02em; }
.input, .select, textarea.input {
  width: 100%; padding: 13px 16px; border-radius: var(--r-md);
  background: var(--input-bg); border: 1px solid var(--stroke); color: var(--text-primary);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.input::placeholder { color: var(--text-muted); }
.input:hover, .select:hover { border-color: var(--glass-border-strong); }
.input:focus, .select:focus { outline: none; border-color: rgba(255, 107, 0, 0.55); box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12); }
.input.mono { font-size: 0.95rem; letter-spacing: -0.01em; }
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; cursor: pointer; }
.select option { background: var(--bg-card); color: var(--text-primary); }
.input.invalid { border-color: rgba(239, 68, 68, 0.6); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }
.input.valid { border-color: rgba(16, 185, 129, 0.6); }
.hint { font-size: var(--text-xs); color: var(--text-muted); }
.hint.error { color: var(--status-error); }
.hint.ok { color: var(--status-success); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input { padding-right: 110px; }
.input-suffix { position: absolute; right: 14px; display: flex; gap: 6px; }

/* Segmented control / toggle pills */
.seg { display: inline-flex; background: var(--input-bg); border: 1px solid var(--stroke); border-radius: var(--r-full); padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; color: var(--text-secondary); padding: 8px 18px; border-radius: var(--r-full); cursor: pointer; font-weight: 600; font-size: var(--text-sm); transition: all 0.2s var(--ease); }
.seg button.active { background: var(--gradient-primary); color: #fff; box-shadow: 0 2px 12px rgba(255, 107, 0, 0.25); }

/* Checkbox switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--text-sm); color: var(--text-secondary); }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 40px; height: 22px; border-radius: var(--r-full); background: var(--bg-surface-2); border: 1px solid var(--stroke); position: relative; transition: background 0.2s var(--ease); flex-shrink: 0; }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); }
.switch input:checked + .track { background: var(--gradient-primary); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Badges & pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 700; padding: 4px 10px; border-radius: var(--r-full); letter-spacing: 0.03em; }
.kyc-A { color: var(--status-success); background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); }
.kyc-B { color: var(--status-info); background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3); }
.kyc-C { color: var(--status-warning); background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); }
.kyc-D { color: var(--status-error); background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); }
.badge-plain { color: var(--text-secondary); background: var(--glass-bg); border: 1px solid var(--stroke); }
.badge-brand { color: #fff; background: var(--gradient-primary); }

/* ---------- Status pills ---------- */
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--text-sm); padding: 6px 14px; border-radius: var(--r-full); }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-waiting { color: #fb923c; background: rgba(251,146,60,0.12); }
.st-confirming { color: #facc15; background: rgba(250,204,21,0.1); }
.st-sending { color: #c084fc; background: rgba(192,132,252,0.12); }
.st-finished { color: #34d399; background: rgba(52,211,153,0.12); }
.st-failed, .st-halted { color: #f87171; background: rgba(248,113,113,0.12); }
.st-expired, .st-refunded { color: #94a3b8; background: rgba(148,163,184,0.12); }
.st-new, .st-paid-partially { color: #60a5fa; background: rgba(96,165,250,0.12); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status-success); position: relative; }
.pulse-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--status-success); animation: pulseRing 1.8s var(--ease) infinite; }
@keyframes pulseRing { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; }
.nav-blur { position: absolute; inset: 0; background: var(--glass-bg-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--stroke); }
.nav-container { position: relative; height: var(--nav-h); display: flex; align-items: center; gap: var(--sp-3); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); letter-spacing: 0.04em; color: var(--text-primary); }
.brand svg { width: 32px; height: 32px; }
.brand .highlight { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .brand-badge { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: var(--sp-2); }
.nav-link { position: relative; display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: var(--r-full); color: var(--text-secondary); font-weight: 600; font-size: var(--text-sm); transition: color 0.2s, background 0.2s; }
.nav-link:hover { color: var(--text-primary); background: var(--glass-bg); }
.nav-link.active { color: var(--text-primary); background: rgba(255, 107, 0, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.22); }
.nav-link .ico { font-size: 1rem; line-height: 1; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.live-chip { display: none; align-items: center; gap: 8px; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; color: var(--text-secondary); padding: 6px 12px; border: 1px solid var(--stroke); border-radius: var(--r-full); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 38px; height: 38px; border-radius: var(--r-full); border: 1px solid var(--stroke); background: var(--glass-bg); color: var(--text-secondary); cursor: pointer; transition: all 0.2s var(--ease); font-size: 0.9rem; }
.icon-btn:hover { color: var(--text-primary); border-color: rgba(255, 107, 0, 0.35); }
.icon-btn.wide { width: auto; padding: 0 12px; font-weight: 700; font-size: var(--text-xs); letter-spacing: 0.06em; }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px; padding: 6px; z-index: 60; }
.lang-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; background: transparent; border: 0; border-radius: var(--r-md); color: var(--text-secondary); cursor: pointer; font-size: var(--text-sm); font-weight: 500; }
.lang-menu button:hover { background: var(--glass-bg); color: var(--text-primary); }
.lang-menu button.active { color: var(--text-primary); background: rgba(255, 107, 0, 0.08); }
.lang-menu .flag { font-size: 1.1rem; }
.burger { display: none; }

/* Market ticker */
.ticker-bar { position: relative; border-bottom: 1px solid var(--stroke); background: rgba(0,0,0,0.15); overflow: hidden; height: var(--ticker-h); }
[data-theme="light"] .ticker-bar { background: rgba(15,23,42,0.03); }
.ticker-track { display: flex; gap: var(--sp-5); align-items: center; height: 100%; width: max-content; animation: marquee 45s linear infinite; padding: 0 var(--sp-3); }
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: 8px; font-size: var(--text-xs); font-weight: 600; white-space: nowrap; color: var(--text-secondary); }
.ticker-item .sym { color: var(--text-primary); font-weight: 700; }
.ticker-item .price { font-family: var(--font-mono); color: var(--text-primary); }
.ticker-item .chg.up { color: var(--status-success); }
.ticker-item .chg.down { color: var(--status-error); }
.ticker-item .chg { font-family: var(--font-mono); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 70; display: flex; }
.drawer .backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); }
.drawer .panel { position: relative; margin-left: auto; width: min(320px, 86vw); height: 100%; background: var(--bg-card); border-left: 1px solid var(--stroke); padding: var(--sp-3); display: flex; flex-direction: column; gap: 6px; animation: drawerIn 0.28s var(--ease); }
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } }
.drawer .panel a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); color: var(--text-primary); font-weight: 600; }
.drawer .panel a.active { background: rgba(255, 107, 0, 0.09); }

/* ---------- Hero ---------- */
.hero { padding: var(--sp-8) 0 var(--sp-6); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-6); align-items: center; }
.hero-badge { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-3); }
.hero-badge .badge { backdrop-filter: blur(8px); }
.badge-glow { box-shadow: 0 0 18px rgba(255, 107, 0, 0.18); }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.14; text-transform: uppercase; letter-spacing: 0.04em; }
.hero .subtitle { margin-top: var(--sp-2); font-size: var(--text-lg); color: var(--text-secondary); max-width: 540px; }
.hero .subtitle .hl { color: var(--brand); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.hero-stats { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.stat-label { font-size: var(--text-xs); color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.stat-divider { width: 1px; height: 40px; background: var(--stroke); }
.trust-badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: var(--text-xs); font-weight: 600; color: var(--text-secondary); letter-spacing: 0.04em; }
.trust-item svg { width: 16px; height: 16px; color: var(--status-success); }

/* ---------- Terminal (exchange widget) ---------- */
.terminal { position: relative; border-radius: var(--r-xl); padding: 0; overflow: hidden; }
.terminal::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--gradient-terminal); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.terminal-header { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--stroke); background: rgba(0,0,0,0.12); }
[data-theme="light"] .terminal-header { background: rgba(15,23,42,0.03); }
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #f87171; } .dot-yellow { background: #fbbf24; } .dot-green { background: #34d399; }
.terminal-title { font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); }
.terminal-status { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: var(--text-xs); font-weight: 700; color: var(--status-success); letter-spacing: 0.06em; }
.terminal-body { padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); background: var(--glass-bg-strong); }

/* Exchange form boxes */
.xbox { background: var(--input-bg); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: var(--sp-2); transition: border-color 0.2s var(--ease); }
.xbox:focus-within { border-color: rgba(255, 107, 0, 0.35); }
.xbox-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.xbox-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.xbox-balance { font-size: var(--text-xs); color: var(--text-muted); }
.xbox-main { display: flex; align-items: center; gap: var(--sp-2); }
.amount-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-family: var(--font-mono); font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 600; color: var(--text-primary); }
.amount-input::placeholder { color: var(--text-muted); }
.xbox-foot { margin-top: 8px; font-size: var(--text-xs); color: var(--text-muted); display: flex; justify-content: space-between; gap: 8px; }
.xbox-foot .fiat-toggle { background: none; border: 0; color: var(--brand); cursor: pointer; font-size: var(--text-xs); font-weight: 600; padding: 0; }
.xbox-foot .fiat-toggle:hover { text-decoration: underline; }

/* Coin select */
.coin-select { position: relative; flex-shrink: 0; }
.coin-select-btn { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; background: var(--bg-surface); border: 1px solid var(--glass-border-strong); border-radius: var(--r-full); cursor: pointer; transition: border-color 0.2s, background 0.2s; white-space: nowrap; }
.coin-select-btn:hover { border-color: rgba(255, 107, 0, 0.4); }
.coin-select-btn .ticker { font-weight: 700; font-size: var(--text-sm); }
.coin-select-btn .network { font-size: 10px; color: var(--text-muted); font-weight: 600; }
.coin-select-btn .chev { color: var(--text-muted); font-size: 0.7rem; margin-left: 2px; }
.coin-menu { position: absolute; top: calc(100% + 8px); right: 0; width: min(360px, 88vw); max-height: 380px; display: flex; flex-direction: column; z-index: 40; overflow: hidden; padding: 0; }
.coin-menu .coin-search { padding: 12px; border-bottom: 1px solid var(--stroke); }
.coin-menu .coin-list { overflow-y: auto; padding: 6px; }
.coin-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; background: transparent; border: 0; border-radius: var(--r-md); cursor: pointer; text-align: left; }
.coin-option:hover, .coin-option.highlighted { background: var(--glass-bg); }
.coin-option .meta { display: flex; flex-direction: column; min-width: 0; }
.coin-option .meta .name { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-option .meta .net { font-size: 11px; color: var(--text-muted); }
.coin-option .minmax { margin-left: auto; font-size: 10px; color: var(--text-muted); font-family: var(--font-mono); text-align: right; }
.coin-empty { padding: 20px; text-align: center; color: var(--text-muted); font-size: var(--text-sm); }

/* Coin icon */
.coin-icon { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; background: var(--bg-surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.coin-icon img { width: 100%; height: 100%; object-fit: contain; }
.coin-icon .letter { font-size: 0.8rem; font-weight: 800; color: #fff; }
.coin-icon.lg { width: 38px; height: 38px; }
.coin-icon.sm { width: 22px; height: 22px; }
.coin-icon.sm .letter { font-size: 0.6rem; }

.swap-dir { align-self: center; display: flex; justify-content: center; margin: -6px 0; z-index: 2; }
.swap-dir button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-border-strong); background: var(--bg-surface); color: var(--brand); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.25s var(--ease); box-shadow: 0 4px 16px rgba(0,0,0,0.35); }
.swap-dir button:hover { transform: rotate(180deg); border-color: var(--brand); box-shadow: 0 0 24px rgba(255, 107, 0, 0.3); }

/* ---------- Rate table ---------- */
.rates-box { overflow: hidden; }
.rates-head { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; justify-content: space-between; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--stroke); }
.rates-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.rates-filters .select { padding: 8px 36px 8px 12px; font-size: var(--text-xs); border-radius: var(--r-full); }
.rate-rows { display: flex; flex-direction: column; }
.rate-row { display: grid; grid-template-columns: minmax(150px, 1.4fr) 1fr auto auto auto; gap: var(--sp-2); align-items: center; padding: 13px var(--sp-3); border-bottom: 1px solid var(--stroke); transition: background 0.15s var(--ease); }
.rate-row:last-child { border-bottom: 0; }
.rate-row:hover { background: var(--glass-bg); }
.rate-row.best { background: linear-gradient(90deg, rgba(255,107,0,0.07), transparent 65%); border-left: 2px solid var(--brand); }
.rate-provider { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rate-provider img { width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.rate-provider .p-name { font-weight: 700; font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rate-provider .p-tags { display: flex; gap: 5px; margin-top: 3px; flex-wrap: wrap; }
.rate-amount { text-align: right; font-family: var(--font-mono); font-weight: 600; }
.rate-amount .fiat { display: block; font-size: 10px; color: var(--text-muted); font-family: var(--font-body); }
.rate-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 10px; color: var(--text-muted); }
.rates-empty { padding: var(--sp-5); text-align: center; color: var(--text-muted); }
.rate-cached { font-size: var(--text-xs); color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Progress stepper ---------- */
.stepper { display: flex; align-items: flex-start; margin: var(--sp-3) 0; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; text-align: center; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 16px; left: calc(50% + 22px); width: calc(100% - 44px); height: 2px; background: var(--stroke); }
.step.done:not(:last-child)::after, .step.active:not(:last-child)::after { background: var(--gradient-primary); }
.step .s-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: 800; background: var(--bg-surface); border: 1px solid var(--stroke); color: var(--text-muted); z-index: 1; transition: all 0.3s var(--ease); }
.step.active .s-dot { background: var(--gradient-primary); color: #fff; border-color: transparent; box-shadow: 0 0 18px rgba(255, 107, 0, 0.4); }
.step.done .s-dot { background: rgba(16,185,129,0.15); color: var(--status-success); border-color: rgba(16,185,129,0.4); }
.step .s-label { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.step.active .s-label { color: var(--text-primary); }
.step.done .s-label { color: var(--status-success); }

/* ---------- Order card / track ---------- */
.order-card { border-radius: var(--r-xl); padding: var(--sp-3); }
.order-head { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: space-between; align-items: center; }
.order-id { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-secondary); }
.order-id b { color: var(--text-primary); }
.detail-rows { margin-top: var(--sp-3); border: 1px solid var(--stroke); border-radius: var(--r-lg); overflow: hidden; }
.detail-row { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); padding: 12px var(--sp-2); border-bottom: 1px solid var(--stroke); font-size: var(--text-sm); }
.detail-row:last-child { border-bottom: 0; }
.detail-row .k { color: var(--text-secondary); font-weight: 500; flex-shrink: 0; }
.detail-row .v { font-family: var(--font-mono); text-align: right; word-break: break-all; }
.detail-row.highlight .v { color: var(--brand); font-weight: 700; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 10px; background: var(--bg-surface); border: 1px solid var(--stroke); border-radius: var(--r-sm); color: var(--text-secondary); cursor: pointer; font-size: var(--text-xs); font-weight: 600; transition: all 0.2s; flex-shrink: 0; margin-left: 10px; }
.copy-btn:hover { color: var(--brand); border-color: rgba(255,107,0,0.4); }
.copy-btn.copied { color: var(--status-success); border-color: rgba(16,185,129,0.4); }
.addr-line { display: flex; align-items: center; justify-content: flex-end; }
.addr-line code { font-family: var(--font-mono); font-size: 0.78rem; word-break: break-all; }
.deposit-grid { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); margin-top: var(--sp-3); align-items: start; }
.qr-box { background: #fff; border-radius: var(--r-md); padding: 10px; width: 180px; height: 180px; }
.qr-box img { width: 100%; height: 100%; }
.countdown { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-full); background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--status-warning); font-family: var(--font-mono); font-weight: 700; font-size: var(--text-sm); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: var(--sp-3); right: var(--sp-3); z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(400px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-card); border: 1px solid var(--glass-border-strong); box-shadow: 0 12px 40px rgba(0,0,0,0.5); animation: toastIn 0.3s var(--ease); font-size: var(--text-sm); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.toast.out { opacity: 0; transform: translateY(6px); transition: all 0.25s var(--ease); }
.toast .t-icon { font-size: 1.05rem; line-height: 1.4; }
.toast.success .t-icon { color: var(--status-success); }
.toast.error .t-icon { color: var(--status-error); }
.toast.info .t-icon { color: var(--status-info); }
.toast .t-msg { color: var(--text-primary); }
.toast .t-title { font-weight: 700; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(4, 7, 14, 0.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: var(--sp-3); animation: fadeIn 0.2s var(--ease); overflow-y: auto; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: 100%; max-width: 560px; max-height: min(86vh, 800px); overflow-y: auto; background: var(--bg-card); border: 1px solid var(--glass-border-strong); border-radius: var(--r-xl); box-shadow: 0 24px 80px rgba(0,0,0,0.6); animation: modalIn 0.28s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--stroke); position: sticky; top: 0; background: var(--bg-card); z-index: 2; }
.modal-title { font-weight: 800; font-family: var(--font-display); font-size: var(--text-base); letter-spacing: 0.02em; }
.modal-body { padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); }
.modal-close { background: var(--glass-bg); border: 1px solid var(--stroke); width: 34px; height: 34px; border-radius: 50%; color: var(--text-secondary); cursor: pointer; font-size: 1rem; }
.modal-close:hover { color: var(--text-primary); }

/* ---------- Skeletons & spinners ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--bg-surface); border-radius: var(--r-md); }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent); animation: skeletonLoading 1.5s infinite; }
[data-theme="light"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(15,23,42,0.06), transparent); }
@keyframes skeletonLoading { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.spinner { width: 22px; height: 22px; border: 2.5px solid rgba(255,255,255,0.15); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.7s linear infinite; }
[data-theme="light"] .spinner { border-color: rgba(17,17,17,0.12); border-top-color: var(--brand-soft); }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-inline { display: inline-flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: var(--text-sm); }
.center-loading { display: flex; justify-content: center; padding: var(--sp-5); }

/* ---------- Home sections ---------- */
.steps-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.step-card { position: relative; padding: var(--sp-3); border-radius: var(--r-lg); }
.step-number { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(255, 107, 0, 0.4); position: absolute; top: 18px; right: 22px; opacity: 0.9; }
.step-icon { font-size: 1.9rem; margin-bottom: 12px; }
.step-card h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: 6px; }
.step-card p { color: var(--text-secondary); font-size: var(--text-sm); }

.feature-card { padding: var(--sp-3); border-radius: var(--r-lg); }
.feature-icon { width: 52px; height: 52px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: var(--sp-2); }
.feature-icon.neon-blue { background: rgba(255,107,0,0.1); box-shadow: inset 0 0 0 1px rgba(255,107,0,0.25); }
.feature-icon.neon-purple { background: rgba(124,58,237,0.12); box-shadow: inset 0 0 0 1px rgba(124,58,237,0.3); }
.feature-icon.neon-pink { background: rgba(236,72,153,0.1); box-shadow: inset 0 0 0 1px rgba(236,72,153,0.25); }
.feature-icon.neon-green { background: rgba(16,185,129,0.1); box-shadow: inset 0 0 0 1px rgba(16,185,129,0.25); }
.feature-card h3 { font-size: var(--text-lg); margin-bottom: 6px; }
.feature-card p { color: var(--text-secondary); font-size: var(--text-sm); }

.recent-trades { display: flex; flex-direction: column; gap: 8px; }
.trade-chip { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-full); font-size: var(--text-sm); }
.trade-chip .mono { color: var(--text-primary); }
.trade-chip .ago { margin-left: auto; color: var(--text-muted); font-size: var(--text-xs); }

/* Gift card teaser + card grid */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.giftcard-card { display: flex; flex-direction: column; overflow: hidden; }
.gc-image { height: 120px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
[data-theme="light"] .gc-image { background: #f1f5f9; }
.gc-image img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.gc-content { padding: var(--sp-2); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gc-content h4 { font-size: var(--text-sm); font-weight: 700; line-height: 1.35; min-height: 2.6em; }
.gc-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.gc-meta .badge { font-weight: 600; }
.gc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gc-range { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }

/* Prepaid */
.prepaid-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); align-items: start; }
.prepaid-visual { border-radius: var(--r-lg); padding: var(--sp-3); min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, #1e293b, #0f172a); border: 1px solid var(--glass-border-strong); box-shadow: 0 20px 60px rgba(0,0,0,0.45); position: relative; overflow: hidden; }
.prepaid-visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 200px at 90% -20%, rgba(255,107,0,0.2), transparent), radial-gradient(400px 200px at -10% 120%, rgba(124,58,237,0.25), transparent); }
.prepaid-visual .pv-brand { position: relative; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.1em; font-size: var(--text-lg); }
.prepaid-visual .pv-chip { position: relative; width: 46px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #f7d774, #d4a937); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2); }
.prepaid-visual .pv-amount { position: relative; font-family: var(--font-mono); font-size: var(--text-3xl); font-weight: 700; }
.prepaid-visual .pv-label { position: relative; font-size: var(--text-xs); color: var(--text-secondary); letter-spacing: 0.1em; text-transform: uppercase; }
.denomination-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 9px 18px; border-radius: var(--r-full); border: 1px solid var(--stroke); background: var(--input-bg); color: var(--text-secondary); cursor: pointer; font-weight: 700; font-family: var(--font-mono); font-size: var(--text-sm); transition: all 0.2s var(--ease); }
.pill:hover { border-color: rgba(255,107,0,0.4); color: var(--text-primary); }
.pill.active { background: var(--gradient-primary); color: #fff; border-color: transparent; box-shadow: 0 0 16px rgba(255,107,0,0.3); }
.crypto-options { display: flex; flex-wrap: wrap; gap: 8px; }
.crypto-option { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-full); border: 1px solid var(--stroke); background: var(--input-bg); cursor: pointer; font-weight: 700; font-size: var(--text-sm); color: var(--text-secondary); transition: all 0.2s var(--ease); }
.crypto-option:hover { border-color: rgba(255,107,0,0.4); }
.crypto-option.active { border-color: rgba(255,107,0,0.5); color: var(--text-primary); background: rgba(255,107,0,0.08); box-shadow: inset 0 0 0 1px rgba(255,107,0,0.2); }

/* Prices grid (rates page) */
.prices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
.price-card { padding: var(--sp-2); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 6px; }
.price-card .p-sym { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.price-card .p-usd { font-family: var(--font-mono); font-size: var(--text-xl); font-weight: 700; }
.price-card .p-chg { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600; }
.price-card .p-chg.up { color: var(--status-success); }
.price-card .p-chg.down { color: var(--status-error); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq-item { border-radius: var(--r-lg); overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); width: 100%; padding: 18px var(--sp-2); background: transparent; border: 0; cursor: pointer; font-weight: 700; font-size: var(--text-base); text-align: left; color: var(--text-primary); }
.faq-q .chev { transition: transform 0.25s var(--ease); color: var(--text-muted); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); color: var(--text-secondary); font-size: var(--text-sm); }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a .inner { padding: 0 var(--sp-2) 18px; }

/* Legal / static pages */
.prose { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-2); color: var(--text-secondary); }
.prose h2 { color: var(--text-primary); font-size: var(--text-xl); margin-top: var(--sp-2); }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Footer ---------- */
.footer { position: relative; margin-top: var(--sp-8); border-top: 1px solid var(--stroke); background: rgba(0,0,0,0.2); }
[data-theme="light"] .footer { background: rgba(15,23,42,0.03); }
.footer-glow { position: absolute; top: -1px; left: 20%; right: 20%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,107,0,0.6), rgba(0,240,255,0.4), transparent); }
.footer-container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-4); padding: var(--sp-6) 0 var(--sp-4); }
.footer-tagline { color: var(--text-secondary); font-size: var(--text-sm); margin-top: 10px; max-width: 280px; }
.footer h5 { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-secondary); font-size: var(--text-sm); transition: color 0.2s; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: space-between; align-items: center; padding: var(--sp-2) 0 var(--sp-3); border-top: 1px solid var(--stroke); color: var(--text-muted); font-size: var(--text-xs); }
.footer-status { display: flex; align-items: center; gap: 8px; }

/* ---------- Errors / empty ---------- */
.error-box { text-align: center; padding: var(--sp-6) var(--sp-3); }
.error-box .big { font-family: var(--font-display); font-size: var(--text-5xl); font-weight: 900; }
.error-box p { color: var(--text-secondary); margin: 10px 0 20px; }

/* ---------- VoIPClaw signature effects ---------- */
.scanlines { position: relative; }
.scanlines::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: repeating-linear-gradient(180deg, hsla(0, 0%, 100%, .02) 0, hsla(0, 0%, 100%, .02) 1px, transparent 0, transparent 3px);
}
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; width: 100%;
  overflow: hidden; opacity: 0; pointer-events: none;
}
.glitch::before { color: var(--cyan); z-index: -1; }
.glitch::after { color: var(--brand); z-index: -2; }
.glitch--live::before { opacity: .7; animation: glitchShift1 3.4s linear infinite alternate-reverse; }
.glitch--live::after { opacity: .7; animation: glitchShift2 2.8s linear infinite alternate-reverse; }
.glitch:hover::before, .glitch:hover::after { opacity: .8; animation-duration: .5s; }
@keyframes glitchShift1 {
  0% { clip-path: inset(12% 0 74% 0); transform: translate(-2px, -1px); }
  25% { clip-path: inset(58% 0 22% 0); transform: translate(2px, 1px); }
  50% { clip-path: inset(30% 0 48% 0); transform: translate(-2px, 0); }
  75% { clip-path: inset(80% 0 4% 0); transform: translate(1px, 1px); }
  100% { clip-path: inset(42% 0 40% 0); transform: translate(-1px, 0); }
}
@keyframes glitchShift2 {
  0% { clip-path: inset(64% 0 18% 0); transform: translate(2px, 1px); }
  30% { clip-path: inset(8% 0 78% 0); transform: translate(-2px, -1px); }
  60% { clip-path: inset(38% 0 44% 0); transform: translate(2px, 0); }
  100% { clip-path: inset(76% 0 8% 0); transform: translate(-1px, 1px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .prices-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .live-chip { display: none; }
}
@media (max-width: 768px) {
  :root { --nav-h: 58px; }
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .live-chip { display: none; }
  .grid-3, .steps-container { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .prices-grid { grid-template-columns: repeat(2, 1fr); }
  .rate-row { grid-template-columns: 1fr auto; grid-template-areas: "provider amount" "provider meta" "provider action"; row-gap: 6px; }
  .rate-row > .rate-provider { grid-area: provider; }
  .rate-row > .rate-amount { grid-area: amount; }
  .rate-row > .rate-meta { grid-area: meta; }
  .rate-row > .rate-action { grid-area: action; justify-self: end; }
  .deposit-grid { grid-template-columns: 1fr; }
  .qr-box { margin: 0 auto; }
  .prepaid-grid { grid-template-columns: 1fr; }
  .stepper { flex-wrap: wrap; gap: 12px 0; }
  .step { flex-basis: 33%; }
  .step .s-label { font-size: 9px; }
  .detail-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .detail-row .v { text-align: left; }
  .addr-line { justify-content: flex-start; }
  .footer-container { grid-template-columns: 1fr; gap: var(--sp-3); }
  .hero-cta .btn { flex: 1; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .stat-divider { display: none; }
  .hero-stats { gap: var(--sp-3); }
  .step { flex-basis: 50%; }
}
