/* ============================================================================
   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: Exchange Deck ---------- */
:root { --nav-h: 78px; --ticker-h: 36px; }
.nav { position: sticky; top: 0; z-index: 50; isolation: isolate; }
.nav-blur {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(10,13,19,.97), rgba(8,10,15,.93) 62%, rgba(16,11,9,.96));
  border-bottom: 1px solid rgba(255,255,255,.075);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
[data-theme="light"] .nav-blur { background: rgba(250,251,253,.96); border-color: #e3e7ed; }
.nav-container {
  position: relative; width: min(1480px, calc(100% - 64px)); max-width: none;
  height: var(--nav-h); padding: 0; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--text-primary); text-decoration: none; }
.brand-img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(255,107,0,.23)); }
.brand-copy { display: flex; flex-direction: column; gap: 0; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 19px; font-weight: 850; letter-spacing: -.055em; }
.brand .highlight { color: var(--brand-light); }
.brand .brand-badge { margin-top: 5px; color: #798293; font: 700 8px/1 var(--font-body); letter-spacing: .21em; text-transform: uppercase; }
[data-theme="light"] .brand .brand-badge { color: #697383; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1 1 auto; min-width: 0; margin: 0; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 12px; border: 1px solid transparent; border-radius: 12px;
  color: #9aa4b4; font-size: 12px; font-weight: 650; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; transition: .2s ease;
}
[data-theme="light"] .nav-link { color: #5c6675; }
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,.045); }
[data-theme="light"] .nav-link:hover { background: rgba(15,23,42,.045); }
.nav-link.active { color: #fff; border-color: rgba(255,139,53,.22); background: linear-gradient(135deg,rgba(255,107,0,.16),rgba(255,107,0,.055)); box-shadow: inset 0 1px rgba(255,255,255,.05), 0 5px 16px rgba(0,0,0,.13); }
[data-theme="light"] .nav-link.active { color: #a84400; background: rgba(255,107,0,.09); border-color: rgba(255,107,0,.22); }
.nav-link.active .nav-icon { color: var(--brand-light); }
.nav-icon { display: block; width: 17px; height: 17px; flex: 0 0 auto; }
.nav-right { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; margin-left: 0; }
.nav-hosting {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 5px 13px 5px 6px;
  border: 1px solid rgba(255,150,76,.38); border-radius: 15px;
  color: #fff; text-decoration: none; white-space: nowrap;
  background: linear-gradient(120deg,rgba(255,107,0,.20),rgba(255,107,0,.075));
  box-shadow: 0 7px 24px rgba(255,107,0,.10), inset 0 1px rgba(255,255,255,.07);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nav-hosting:hover { transform: translateY(-1px); border-color: rgba(255,176,115,.75); box-shadow: 0 10px 27px rgba(255,107,0,.20); }
.nav-hosting.active { background: linear-gradient(125deg,rgba(255,107,0,.34),rgba(255,107,0,.12)); }
.nav-host-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #14100d; background: linear-gradient(145deg,#ffd199,#ff8a37); box-shadow: 0 4px 15px rgba(255,107,0,.22); }
.nav-host-icon .nav-icon { width: 19px; height: 19px; }
.nav-host-copy { display: flex; flex-direction: column; gap: 3px; }
.nav-host-copy strong { font-size: 11px; font-weight: 800; letter-spacing: .015em; }
.nav-host-copy small { color: #ffc18a; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.nav-hosting > .nav-icon { width: 14px; height: 14px; color: #ffb773; }
[data-theme="light"] .nav-hosting { color: #332116; }
[data-theme="light"] .nav-host-copy small { color: #a34d0c; }
.nav-docs { display: inline-flex; align-items: center; gap: 7px; padding: 9px 10px; color: #929cab; font-size: 11px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.nav-docs .nav-icon { width: 16px; height: 16px; }
.nav-docs:hover, .nav-docs.active { color: var(--text-primary); }
.nav-tools { display: flex; align-items: center; gap: 5px; padding: 4px; border: 1px solid rgba(255,255,255,.075); border-radius: 14px; background: rgba(255,255,255,.035); }
[data-theme="light"] .nav-tools { border-color: rgba(15,23,42,.10); background: rgba(15,23,42,.035); }
.nav-language { position: relative; }
.nav-tool { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 39px; height: 38px; padding: 0 10px; border: 1px solid transparent; border-radius: 10px; color: #aab4c2; background: transparent; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.nav-tool:hover, .nav-tool[aria-expanded="true"] { color: var(--text-primary); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.07); }
[data-theme="light"] .nav-tool { color: #576274; }
[data-theme="light"] .nav-tool:hover, [data-theme="light"] .nav-tool[aria-expanded="true"] { background: rgba(15,23,42,.06); border-color: rgba(15,23,42,.07); }
.nav-tool .nav-icon { width: 17px; height: 17px; }
.nav-language-toggle { font-size: 11px; font-weight: 800; letter-spacing: .07em; }
.nav-language-toggle .nav-icon:last-child { width: 12px; height: 12px; color: #697587; }
.nav-language-toggle[aria-expanded="true"] .nav-icon:last-child { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 12px); right: 0; z-index: 60; min-width: 205px; padding: 7px; border: 1px solid rgba(255,255,255,.10); border-radius: 16px; background: rgba(13,17,24,.97); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
[data-theme="light"] .lang-menu { background: rgba(255,255,255,.98); border-color: #e1e5ec; }
.lang-menu button { display: flex; width: 100%; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-radius: 10px; color: var(--text-secondary); background: transparent; cursor: pointer; text-align: left; font-size: 13px; font-weight: 550; }
.lang-menu button:hover, .lang-menu button.active { color: var(--text-primary); background: rgba(255,255,255,.065); }
.lang-menu button.active { box-shadow: inset 2px 0 var(--brand); }
.lang-menu .flag { font-size: 17px; }
.lang-menu .lang-name { flex: 1; }
.lang-menu .lang-check { color: var(--brand-light); font-weight: 800; }
.burger { display: none; }
.nav-market-row { height: var(--ticker-h); border-bottom: 1px solid rgba(255,255,255,.055); background: rgba(5,7,11,.52); }
[data-theme="light"] .nav-market-row { border-color: #e9ecf1; background: rgba(246,248,251,.78); }
.nav-market-inner { display: flex; align-items: center; gap: 21px; width: min(1480px, calc(100% - 64px)); max-width: none; height: 100%; margin: 0 auto; padding: 0; }
.nav-market-label { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: #9ba4b2; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.nav-market-name { color: #697586; }
.nav-market-sep { width: 1px; height: 13px; margin: 0 2px; background: rgba(255,255,255,.15); }
.nav-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #35d39a; box-shadow: 0 0 11px rgba(53,211,154,.8); }
.ticker-bar { position: relative; flex: 1 1 auto; min-width: 0; height: 100%; overflow: hidden; }
.ticker-bar::before, .ticker-bar::after { position: absolute; z-index: 1; top: 0; bottom: 0; width: 24px; content: ''; pointer-events: none; }
.ticker-bar::before { left: 0; background: linear-gradient(90deg,rgba(5,7,11,.9),transparent); }
.ticker-bar::after { right: 0; background: linear-gradient(270deg,rgba(5,7,11,.9),transparent); }
[data-theme="light"] .ticker-bar::before { background: linear-gradient(90deg,#f6f8fb,transparent); }
[data-theme="light"] .ticker-bar::after { background: linear-gradient(270deg,#f6f8fb,transparent); }
.ticker-track { display: flex; align-items: center; gap: 0; width: max-content; height: 100%; padding: 0; animation: marquee 72s linear infinite; }
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { display: inline-flex; align-items: center; gap: 7px; padding: 0 17px; color: #8792a2; font-family: var(--font-mono); font-size: 10px; font-weight: 550; white-space: nowrap; }
.ticker-item .sym { color: #d7dce4; font-weight: 800; }
.ticker-item .price { color: #aeb7c4; }
.ticker-item .chg { font-family: var(--font-mono); }
.ticker-item .chg.up { color: #49d7a4; }
.ticker-item .chg.down { color: #fa727e; }
[data-theme="light"] .ticker-item, [data-theme="light"] .nav-market-label { color: #697586; }
[data-theme="light"] .ticker-item .sym { color: #293241; }
[data-theme="light"] .ticker-item .price { color: #485363; }

/* Responsive navigation drawer */
.drawer { position: fixed; inset: 0; z-index: 70; display: flex; justify-content: flex-end; }
.drawer-backdrop { position: absolute; inset: 0; border: 0; background: rgba(2,5,10,.68); backdrop-filter: blur(8px); cursor: pointer; animation: drawerShade .2s ease both; }
.drawer-panel { position: relative; display: flex; flex-direction: column; gap: 17px; width: min(440px, 92vw); height: 100dvh; overflow-y: auto; padding: 26px; border-left: 1px solid rgba(255,255,255,.10); background: radial-gradient(460px 300px at 100% 0%,rgba(255,107,0,.12),transparent 70%), #0b0e14; box-shadow: -30px 0 90px rgba(0,0,0,.44); animation: drawerIn .28s var(--ease) both; }
[data-theme="light"] .drawer-panel { border-color: #e1e5ec; background: radial-gradient(460px 300px at 100% 0%,rgba(255,107,0,.09),transparent 70%), #fbfcfe; }
@keyframes drawerShade { from { opacity: 0; } }
@keyframes drawerIn { from { transform: translateX(36px); opacity: .65; } }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--stroke); }
.drawer-brand .brand-img { width: 36px; height: 36px; }
.drawer-section-label { margin: 1px 0 -8px; color: #778293; font-size: 9px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.drawer-primary-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.drawer-link { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 45px; padding: 10px; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; color: #c7ced8; background: rgba(255,255,255,.025); font-size: 12px; font-weight: 650; text-decoration: none; transition: .18s ease; }
.drawer-link .nav-icon { width: 16px; height: 16px; color: #8591a2; }
.drawer-link:hover, .drawer-link.active { border-color: rgba(255,128,51,.28); color: var(--text-primary); background: rgba(255,107,0,.09); }
.drawer-link.active .nav-icon { color: var(--brand-light); }
.drawer-hosting { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 11px 14px; border: 1px solid rgba(255,145,73,.36); border-radius: 15px; color: #fff; text-decoration: none; background: linear-gradient(115deg,rgba(255,107,0,.23),rgba(255,107,0,.07)); box-shadow: 0 10px 26px rgba(255,107,0,.08); }
.drawer-hosting .drawer-host-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: #180f08; background: linear-gradient(145deg,#ffd199,#ff8a37); }
.drawer-host-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.drawer-host-copy strong { font-size: 13px; font-weight: 800; }
.drawer-host-copy small { color: #ffc18a; font-size: 11px; font-weight: 650; }
.drawer-hosting > .nav-icon { width: 17px; color: #ffc18a; }
.drawer-secondary-label { margin-top: 1px; }
.drawer-secondary-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 16px; }
.drawer-secondary-link { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 2px; color: #8994a4; font-size: 11px; font-weight: 600; text-decoration: none; }
.drawer-secondary-link .nav-icon { width: 14px; height: 14px; color: #697586; }
.drawer-secondary-link:hover, .drawer-secondary-link.active { color: var(--text-primary); }
.drawer-controls { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--stroke); }
.drawer-controls .nav-language { flex: 1; }
.drawer-controls .nav-language-toggle { width: 100%; justify-content: flex-start; border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.035); }
.drawer-controls .nav-language-toggle .nav-icon:last-child { margin-left: auto; }
.drawer-controls .drawer-theme { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.035); }
.nav-drawer-open { overflow: hidden; }

/* ---------- 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: fixed; top: 0; left: 0; width: min(360px, 92vw); display: flex; flex-direction: column; z-index: 90; overflow: hidden; padding: 0; box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.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.3fr 1fr 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); }
}
@media (max-width: 768px) {
  .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%; }
}

/* ============================================================================
   BTCPay Server Hosting — flagship components
   ========================================================================== */

/* Invoice mockup (hero visual) */
.invoice-mock { width: min(400px, 90vw); border-radius: var(--r-lg); background: var(--bg-card); border: 1px solid var(--glass-border-strong); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 60px rgba(255,107,0,.08); overflow: hidden; transform: rotate(2deg); transition: transform .4s var(--ease); }
.invoice-mock:hover { transform: rotate(0deg) translateY(-4px); }
.invoice-mock .im-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--stroke); background: rgba(255,107,0,.05); }
.invoice-mock .im-brand { font-family: var(--font-display); font-weight: 800; letter-spacing: .06em; font-size: var(--text-sm); }
.invoice-mock .im-status { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-xs); font-weight: 800; color: var(--status-success); letter-spacing: .08em; }
.invoice-mock .im-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.invoice-mock .im-amount { font-family: var(--font-mono); font-size: var(--text-3xl); font-weight: 700; }
.invoice-mock .im-amount small { font-size: var(--text-sm); color: var(--text-muted); font-weight: 400; margin-left: 8px; }
.invoice-mock .im-qr { width: 116px; height: 116px; background: #fff; border-radius: var(--r-md); padding: 8px; display: flex; align-items: center; justify-content: center; }
.invoice-mock .im-qr svg { width: 100%; height: 100%; }
.invoice-mock .im-addr { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); word-break: break-all; line-height: 1.5; }
.invoice-mock .im-row { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--text-secondary); padding: 7px 0; border-top: 1px dashed var(--stroke); }
.invoice-mock .im-row b { color: var(--text-primary); font-family: var(--font-mono); }
.invoice-mock .im-paid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.invoice-mock { position: relative; }
.invoice-mock .im-paid span { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 900; letter-spacing: .12em; color: var(--status-success); border: 3px solid var(--status-success); border-radius: var(--r-md); padding: 6px 22px; transform: rotate(-14deg); background: rgba(5, 20, 12, .75); animation: paidStamp 2.4s var(--ease) infinite; }
@keyframes paidStamp { 0%, 100% { opacity: 1; } 50% { opacity: .85; } }
.invoice-mock .im-key { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: rgba(16,185,129,.06); border-top: 1px solid rgba(16,185,129,.25); font-size: var(--text-xs); color: var(--text-secondary); }
.invoice-mock .im-key svg { color: var(--status-success); flex-shrink: 0; }

/* Feature grid (hosting) */
.host-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.host-feature { padding: var(--sp-3); border-radius: var(--r-lg); }
.host-feature .hf-ico { width: 46px; height: 46px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 12px; background: rgba(255,107,0,.09); box-shadow: inset 0 0 0 1px rgba(255,107,0,.25); }
.host-feature h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: 6px; font-family: var(--font-display); letter-spacing: .02em; }
.host-feature p { color: var(--text-secondary); font-size: var(--text-sm); }

/* Integration badges */
.integrations { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.int-badge { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: var(--r-md); border: 1px solid var(--stroke); background: var(--glass-bg); color: var(--text-secondary); font-weight: 700; font-size: var(--text-sm); letter-spacing: .03em; transition: all .25s var(--ease); }
.int-badge:hover { color: var(--text-primary); border-color: rgba(255,107,0,.4); box-shadow: 0 0 18px rgba(255,107,0,.12); }
.int-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }

/* Non-custodial flow diagram */
.custody-flow { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin: var(--sp-3) 0; flex-wrap: wrap; }
.custody-node { flex: 1; min-width: 150px; text-align: center; padding: 18px 12px; border-radius: var(--r-lg); border: 1px solid var(--stroke); background: var(--glass-bg); }
.custody-node .cn-ico { font-size: 1.7rem; margin-bottom: 8px; }
.custody-node .cn-t { font-weight: 700; font-size: var(--text-sm); }
.custody-node .cn-s { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; }
.custody-node.hl { border-color: rgba(16,185,129,.4); background: rgba(16,185,129,.05); }
.custody-arrow { color: var(--brand); font-size: 1.4rem; flex-shrink: 0; }

/* Comparison table */
.compare-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--stroke); }
table.compare { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 680px; }
table.compare th, table.compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--stroke); }
table.compare thead th { font-family: var(--font-display); font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); background: rgba(255,107,0,.05); }
table.compare td:not(:first-child), table.compare th:not(:first-child) { text-align: center; }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare .col-us { background: rgba(255,107,0,.06); }
table.compare thead .col-us { color: var(--brand-light); }
table.compare .yes { color: var(--status-success); font-weight: 700; }
table.compare .no { color: var(--status-error); font-weight: 700; }
table.compare .meh { color: var(--status-warning); font-weight: 700; }

/* Pricing card */
.pricing-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--sp-4); align-items: stretch; }
.price-card { border-radius: var(--r-xl); padding: var(--sp-4); position: relative; overflow: hidden; }
.price-card::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; }
.price-card .pc-label { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-light); }
.price-card .pc-price { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 900; margin: 8px 0 2px; }
.price-card .pc-per { color: var(--text-muted); font-size: var(--text-sm); letter-spacing: .06em; }
.price-card ul.pc-included { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 22px 0; }
.price-card ul.pc-included li { display: flex; gap: 9px; align-items: flex-start; font-size: var(--text-sm); color: var(--text-secondary); }
.price-card ul.pc-included li svg { color: var(--status-success); flex-shrink: 0; margin-top: 3px; }
.price-card .pc-foot { font-size: var(--text-xs); color: var(--text-muted); }
.price-side { display: flex; flex-direction: column; gap: var(--sp-3); justify-content: center; }
.price-side .ps-box { padding: var(--sp-3); border-radius: var(--r-lg); }
.price-side .ps-big { font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); }
.price-side .ps-sub { color: var(--text-secondary); font-size: var(--text-sm); margin-top: 4px; }

/* Audience cards */
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.audience-card { padding: var(--sp-2); border-radius: var(--r-lg); text-align: center; }
.audience-card .a-ico { font-size: 1.8rem; margin-bottom: 8px; }
.audience-card h4 { font-size: var(--text-sm); font-weight: 700; }
.audience-card p { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; }

/* ---------- Documentation site ---------- */
.docs-layout { display: grid; grid-template-columns: 250px 1fr; gap: var(--sp-4); align-items: start; }
.docs-sidebar { position: sticky; top: calc(var(--nav-h) + var(--ticker-h) + 16px); display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r-lg); }
.docs-sidebar .ds-title { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); padding: 6px 10px 10px; }
.docs-sidebar a { display: block; padding: 8px 12px; border-radius: var(--r-sm); color: var(--text-secondary); font-size: var(--text-sm); font-weight: 500; text-decoration: none; border-left: 2px solid transparent; }
.docs-sidebar a:hover { color: var(--text-primary); background: var(--glass-bg); }
.docs-sidebar a.active { color: var(--brand-light); background: rgba(255,107,0,.07); border-left-color: var(--brand); }
.docs-content { min-width: 0; }
.doc-article { padding: var(--sp-4); border-radius: var(--r-xl); }
.doc-article .da-meta { font-size: var(--text-xs); color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.doc-article h1 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.doc-article .doc-body h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; margin: 34px 0 12px; letter-spacing: .02em; color: var(--text-primary); }
.doc-article .doc-body h3 { font-size: var(--text-lg); font-weight: 700; margin: 24px 0 10px; color: var(--text-primary); }
.doc-article .doc-body p { color: var(--text-secondary); font-size: var(--text-base); margin-bottom: 14px; line-height: 1.75; }
.doc-article .doc-body ul, .doc-article .doc-body ol { color: var(--text-secondary); margin: 0 0 14px 22px; display: flex; flex-direction: column; gap: 7px; font-size: var(--text-base); }
.doc-article .doc-body li b, .doc-article .doc-body li strong { color: var(--text-primary); }
.doc-article .doc-body a { color: var(--brand-light); }
.doc-body code.inline { font-family: var(--font-mono); font-size: .85em; background: rgba(255,107,0,.08); border: 1px solid rgba(255,107,0,.2); color: var(--brand-light); padding: 1.5px 7px; border-radius: 6px; }
.doc-body pre { background: #05070c; border: 1px solid var(--stroke); border-radius: var(--r-md); padding: 16px 18px; overflow-x: auto; margin: 0 0 16px; font-size: var(--text-sm); }
[data-theme="light"] .doc-body pre { background: #14110b; }
.doc-body pre code { font-family: var(--font-mono); color: #d8e0ea; line-height: 1.65; }
.doc-body pre .cmt { color: #6b7a8d; }
.doc-callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); margin: 0 0 16px; font-size: var(--text-sm); }
.doc-callout .dc-ico { flex-shrink: 0; }
.doc-callout.info { background: rgba(0,240,255,.05); border: 1px solid rgba(0,240,255,.25); color: var(--text-secondary); }
.doc-callout.warn { background: rgba(245,158,11,.06); border: 1px solid rgba(245,158,11,.3); color: var(--text-secondary); }
.doc-callout.good { background: rgba(16,185,129,.05); border: 1px solid rgba(16,185,129,.3); color: var(--text-secondary); }
.doc-callout b { color: var(--text-primary); }
.doc-body table.doc-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); margin: 0 0 16px; }
.doc-table th, .doc-table td { border: 1px solid var(--stroke); padding: 9px 13px; text-align: left; color: var(--text-secondary); }
.doc-table th { font-weight: 700; color: var(--text-primary); background: rgba(255,107,0,.05); }
.docs-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--stroke); }
.docs-lang-note { margin: 0 0 18px; }

/* Responsive */
@media (max-width: 1024px) {
  .host-features { grid-template-columns: repeat(2, 1fr); }
  .pricing-band { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .host-features { grid-template-columns: 1fr; }
  .custody-flow { flex-direction: column; }
  .custody-arrow { transform: rotate(90deg); }
  .price-card ul.pc-included { grid-template-columns: 1fr; }
}

/* ---------- Brand logo (official artwork) ---------- */
.brand-img { height: 34px; width: auto; display: block; }
.splash-img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(255,107,0,.35)); animation: splashPulse 1.6s var(--ease) infinite; }
.footer-logo { height: 52px; width: auto; margin-bottom: 10px; }
.banner-strip { display: block; width: 100%; border-radius: var(--r-xl); border: 1px solid var(--glass-border-strong); box-shadow: 0 24px 80px rgba(0,0,0,.5), 0 0 60px rgba(255,107,0,.07); }
.hero-bg-banner { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: .38; mask-image: linear-gradient(180deg, black 0%, black 55%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, black 0%, black 55%, transparent 100%); pointer-events: none; }
.feature-icon.neon-orange { background: rgba(255,107,0,.1); box-shadow: inset 0 0 0 1px rgba(255,107,0,.28); }
.nav-hot { color: var(--brand-light) !important; box-shadow: inset 0 0 0 1px rgba(255,107,0,.35); background: rgba(255,107,0,.08); }
.nav-hot:hover { color: #fff !important; }

/* ---------- Fiat on-ramp (Trocador widget) ---------- */
.trocador-embed { height: 100%; border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: hidden; }
@media (max-width: 768px) {
  .trocador-embed, .trocador-embed ~ * { }
}

/* ============================================================================
   Freedom-loop homepage components
   ========================================================================== */

/* The Loop: receive -> pile up -> spend (circular feel) */
.loop-band { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: var(--sp-2); align-items: stretch; }
.loop-card { position: relative; padding: var(--sp-3); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 10px; }
.loop-card .lc-step { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 800; letter-spacing: .18em; color: var(--brand-light); }
.loop-card .lc-ico { font-size: 2rem; }
.loop-card h3 { font-family: var(--font-display); font-size: var(--text-lg); text-transform: uppercase; letter-spacing: .04em; }
.loop-card p { color: var(--text-secondary); font-size: var(--text-sm); }
.loop-card .lc-cta { margin-top: auto; font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-light); text-decoration: none; }
.loop-card .lc-cta:hover { color: #fff; }
.loop-arrow { display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 1.6rem; text-shadow: 0 0 14px rgba(255,107,0,.5); }
.loop-back { margin-top: var(--sp-2); text-align: center; font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.loop-back b { color: var(--brand-light); }

/* Manifesto */
.manifesto { position: relative; padding: var(--sp-8) 0; text-align: center; overflow: hidden; }
.manifesto .m-glow { position: absolute; inset: 0; background: radial-gradient(700px 300px at 50% 50%, rgba(255,107,0,.1), transparent 70%); pointer-events: none; }
.manifesto blockquote { position: relative; font-family: var(--font-display); font-size: clamp(1.4rem, 3.6vw, 2.4rem); font-weight: 800; line-height: 1.4; text-transform: uppercase; letter-spacing: .04em; max-width: 900px; margin: 0 auto; }
.manifesto blockquote .mq-hl { color: var(--brand-light); text-shadow: 0 0 24px rgba(255,107,0,.35); }
.manifesto .m-answer { position: relative; margin-top: 22px; font-size: var(--text-lg); color: var(--text-secondary); }
.manifesto .m-answer b { color: var(--text-primary); }
.manifesto .m-promise { position: relative; display: inline-block; margin-top: 18px; padding: 8px 22px; border: 1px solid rgba(255,107,0,.4); border-radius: var(--r-full); color: var(--brand-light); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: var(--text-xs); background: rgba(255,107,0,.06); }

/* Few-bucks audience + fee math */
.few-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.few-card { padding: var(--sp-2); border-radius: var(--r-lg); text-align: left; }
.few-card .fw-ico { font-size: 1.6rem; margin-bottom: 8px; }
.few-card h4 { font-size: var(--text-sm); font-weight: 800; }
.few-card p { font-size: var(--text-xs); color: var(--text-secondary); margin-top: 4px; }
.few-card .fw-link { display: inline-block; margin-top: 10px; font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-light); }
.feemath { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border-radius: var(--r-lg); margin-top: var(--sp-3); flex-wrap: wrap; border: 1px solid rgba(16,185,129,.3); background: rgba(16,185,129,.05); }
.feemath .fm-big { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 900; color: var(--status-success); white-space: nowrap; }
.feemath .fm-text { color: var(--text-secondary); font-size: var(--text-sm); flex: 1; min-width: 240px; }
.feemath .fm-text b { color: var(--text-primary); }

@media (max-width: 1024px) {
  .loop-band { grid-template-columns: 1fr; }
  .loop-arrow { transform: rotate(90deg); padding: 4px 0; }
  .few-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .few-grid { grid-template-columns: 1fr; }
}

/* Fiat terminal sizing: tall enough for the centered widget form, tighter on mobile */
@media (max-width: 768px) {
  .trocador-embed { height: 860px !important; }
}

/* ---------- Markets table ---------- */
.mk-rows { display: flex; flex-direction: column; }
.mk-head, .mk-row {
  display: grid;
  grid-template-columns: 34px 1.6fr 1fr 92px 130px 84px 84px 150px;
  gap: 10px; align-items: center; padding: 11px 18px;
}
.mk-head { font-size: var(--text-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--stroke); background: rgba(255,107,0,.04); }
.mk-row { border-bottom: 1px solid var(--stroke); transition: background .15s var(--ease); }
.mk-row:last-child { border-bottom: 0; }
.mk-row:hover { background: var(--glass-bg); }
.mk-rank { color: var(--text-muted); font-family: var(--font-mono); font-size: var(--text-xs); }
.mk-coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mk-name { font-weight: 700; font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-sym { font-size: var(--text-xs); color: var(--text-muted); letter-spacing: .06em; }
.mk-num { font-family: var(--font-mono); font-size: var(--text-sm); text-align: right; white-space: nowrap; }
.mk-dim { color: var(--text-secondary); font-size: var(--text-xs); }
.mk-chg { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; text-align: right; white-space: nowrap; }
.mk-chg.up { color: var(--status-success); }
.mk-chg.down { color: var(--status-error); }
.mk-spark { display: flex; justify-content: center; }
.mk-actions { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 900px) {
  .mk-head, .mk-row { grid-template-columns: 24px 1.5fr 1fr 80px; }
  .mk-spark, .mk-num.mk-dim, .mk-actions { display: none; }
}

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.news-card { display: flex; flex-direction: column; gap: 10px; padding: var(--sp-3); border-radius: var(--r-lg); text-decoration: none; color: var(--text-primary); }
.news-card h3 { font-size: var(--text-lg); line-height: 1.35; }
.news-card p { color: var(--text-secondary); font-size: var(--text-sm); }
.nc-top { display: flex; justify-content: space-between; align-items: center; }
.nc-cat { font-size: var(--text-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 3px 10px; border: 1px solid; border-radius: var(--r-full); }
.nc-date { font-size: var(--text-xs); color: var(--text-muted); letter-spacing: .06em; }
.nc-more { margin-top: auto; color: var(--brand-light); font-weight: 800; font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 800px) { .news-grid { grid-template-columns: 1fr; } }

/* Light theme footer logo: dark wordmark for light backgrounds */
[data-theme="light"] .footer-logo { content: url(/assets/img/logo-horizontal-light.png); }

/* ============================================================================
   Exchange Journal — compact newsroom, publisher wire and long-form reads
   ========================================================================== */
.newsroom-page { min-height: 60vh; padding: 0 0 clamp(56px, 8vw, 104px); }
.newsroom-page .container { width: min(calc(100% - 48px), 1240px); }
.newsroom-masthead { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding-top: 38px; padding-bottom: 24px; border-bottom: 1px solid var(--stroke); }
.newsroom-masthead-copy { min-width: 0; }
.news-eyebrow, .news-section-kicker, .news-wire-eyebrow, .news-rail-kicker { display: flex; align-items: center; gap: 9px; color: var(--brand-light); font-size: 10px; font-weight: 850; letter-spacing: .16em; line-height: 1.3; text-transform: uppercase; }
.news-eyebrow { color: var(--text-muted); gap: 11px; }
.news-eyebrow-mark { display: grid; width: 20px; height: 20px; place-items: center; color: #141414; background: var(--brand); border-radius: 6px; font-family: var(--font-display); font-size: 12px; font-weight: 950; }
.news-eyebrow-divider { width: 3px; height: 3px; background: var(--brand); border-radius: 50%; }
.newsroom-masthead h1 { margin-top: 12px; font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 48px); font-weight: 850; line-height: 1; letter-spacing: -.035em; }
.newsroom-intro { max-width: 620px; margin-top: 11px; color: var(--text-secondary); font-size: 14px; }
.newsroom-statline { display: flex; flex: 0 0 auto; gap: 9px; }
.newsroom-stat { min-width: 94px; padding: 11px 13px 10px; border: 1px solid var(--stroke); border-radius: 12px; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.newsroom-stat strong { display: block; color: var(--text-primary); font-family: var(--font-mono); font-size: 19px; font-weight: 700; line-height: 1; }
.newsroom-stat span { display: block; margin-top: 6px; color: var(--text-muted); font-size: 9px; font-weight: 750; letter-spacing: .075em; line-height: 1.25; text-transform: uppercase; }
.news-lead-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(305px, .9fr); gap: 16px; padding-top: 20px; }
.news-lead-story { position: relative; display: grid; min-height: 286px; grid-template-columns: minmax(0, 1fr) minmax(235px, .78fr); overflow: hidden; color: var(--text-primary); border: 1px solid var(--glass-border-strong); border-radius: 18px; background: radial-gradient(600px 240px at 20% 8%, color-mix(in srgb, var(--story-tint) 12%, transparent), transparent 70%), linear-gradient(145deg, var(--bg-card), color-mix(in srgb, var(--bg-card) 86%, #111827)); box-shadow: 0 16px 48px rgba(0,0,0,.16); }
.news-lead-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(20px, 3vw, 30px); }
.news-lead-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--brand-light); font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.news-live-pulse { position: relative; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #39dca5; box-shadow: 0 0 11px rgba(57,220,165,.65); }
.news-live-pulse::after { position: absolute; inset: -4px; border: 1px solid rgba(57,220,165,.45); border-radius: 50%; content: ''; animation: news-pulse 2.1s ease-out infinite; }
@keyframes news-pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.news-lead-category { margin-left: 5px; padding-left: 13px; color: var(--text-muted); border-left: 1px solid var(--stroke); }
.news-lead-copy h2 { max-width: 600px; margin-top: 20px; font-family: var(--font-display); font-size: clamp(23px, 2.5vw, 32px); font-weight: 800; line-height: 1.16; letter-spacing: -.025em; text-wrap: balance; }
.news-lead-copy > p { max-width: 570px; margin-top: 12px; color: var(--text-secondary); font-size: 13px; line-height: 1.65; }
.news-lead-byline { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; color: var(--text-muted); font-size: 10px; font-weight: 650; }
.news-byline-avatar, .news-author-mark { display: grid; place-items: center; color: #15120e; background: linear-gradient(145deg, #ffc46f, #ff7413); border-radius: 50%; font-family: var(--font-display); font-size: 11px; font-weight: 950; }
.news-byline-avatar { width: 23px; height: 23px; }
.news-meta-dot { width: 3px; height: 3px; background: var(--text-muted); border-radius: 50%; }
.news-lead-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--brand-light); font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; transition: gap .18s ease; }
.news-lead-story:hover .news-lead-cta { gap: 13px; }
.news-lead-art { position: relative; align-self: stretch; min-height: 100%; overflow: hidden; background: #0d1217; }
.news-lead-art img { width: 100%; height: 100%; min-height: 286px; object-fit: cover; object-position: 51% center; opacity: .72; transition: transform .5s ease, opacity .4s ease; }
.news-lead-story:hover .news-lead-art img { transform: scale(1.035); opacity: .87; }
.news-lead-art-shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg-card) 0%, rgba(10,12,16,.18) 45%, rgba(4,8,11,.08)), linear-gradient(0deg, rgba(4,7,10,.55), transparent 48%); }
.news-art-overline, .news-art-number { position: absolute; z-index: 1; color: rgba(255,255,255,.78); font-family: var(--font-mono); font-size: 9px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.news-art-overline { right: 17px; bottom: 17px; }
.news-art-number { top: 17px; right: 17px; color: rgba(255,255,255,.65); }
.news-wire-card { display: flex; min-width: 0; flex-direction: column; padding: 18px 19px 13px; border: 1px solid var(--glass-border-strong); border-radius: 18px; background: linear-gradient(150deg, rgba(255,255,255,.04), rgba(255,255,255,.013)); }
.news-wire-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-wire-eyebrow { color: #49d6ac; font-size: 9px; }
.news-wire-eyebrow .news-live-pulse { width: 6px; height: 6px; }
.news-wire-heading h2 { margin-top: 5px; font-family: var(--font-display); font-size: 19px; font-weight: 800; line-height: 1.2; }
.news-wire-count { display: grid; min-width: 36px; height: 34px; place-items: center; color: var(--brand-light); border: 1px solid rgba(255,140,39,.2); border-radius: 9px; background: rgba(255,140,39,.065); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.news-wire-description { margin-top: 7px; color: var(--text-muted); font-size: 11px; }
.news-wire-status { display: flex; align-items: center; gap: 7px; margin-top: 12px; padding-bottom: 8px; color: var(--text-muted); border-bottom: 1px solid var(--stroke); font-size: 9px; font-weight: 650; }
.news-wire-status-dot, .news-source-pip { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #40d6a0; box-shadow: 0 0 9px rgba(64,214,160,.35); }
.news-wire-list { display: flex; min-height: 148px; flex: 1; flex-direction: column; }
.news-wire-item { display: flex; flex-direction: column; gap: 5px; padding: 10px 0 9px; color: var(--text-primary); border-bottom: 1px solid var(--stroke); text-decoration: none; }
.news-wire-item:last-child { border-bottom: 0; }
.news-wire-item-meta { display: flex; align-items: center; justify-content: space-between; gap: 9px; color: var(--text-muted); font-size: 9px; }
.news-wire-item-meta strong { overflow: hidden; color: var(--brand-light); font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.news-wire-item-title { display: -webkit-box; overflow: hidden; font-size: 11px; font-weight: 720; line-height: 1.43; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.news-wire-item-excerpt { display: -webkit-box; overflow: hidden; color: var(--text-muted); font-size: 10px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.news-wire-open { align-self: flex-start; color: var(--text-muted); font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.news-wire-item:hover .news-wire-item-title, .news-wire-item:hover .news-wire-open { color: var(--brand-light); }
.news-wire-skeleton { display: flex; flex-direction: column; gap: 7px; padding: 13px 0; border-bottom: 1px solid var(--stroke); }
.news-wire-skeleton span { height: 7px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.11), rgba(255,255,255,.05)); background-size: 200% 100%; animation: news-shimmer 1.5s linear infinite; }
.news-wire-skeleton span:first-child { width: 34%; height: 5px; }
.news-wire-skeleton span:nth-child(2) { width: 92%; }
.news-wire-skeleton span:last-child { width: 71%; }
@keyframes news-shimmer { to { background-position: -200% 0; } }
.news-wire-empty { display: flex; min-height: 128px; align-items: center; justify-content: center; gap: 10px; color: var(--text-muted); font-size: 10px; }
.news-wire-empty > span { color: var(--brand-light); font-size: 20px; }
.news-wire-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid var(--stroke); }
.news-wire-attribution { color: var(--text-muted); font-size: 8px; }
.news-wire-footer a { color: var(--brand-light); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.newsroom-listing { padding-top: 46px; }
.news-listing-header, .news-source-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.news-section-kicker { color: var(--brand-light); font-size: 9px; }
.news-listing-title h2, .news-source-heading h2 { margin-top: 5px; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 820; letter-spacing: -.025em; line-height: 1.15; }
.news-search { display: flex; width: min(100%, 300px); height: 42px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--stroke); border-radius: 10px; background: var(--glass-bg); }
.news-search:focus-within { border-color: rgba(255,140,39,.5); box-shadow: 0 0 0 3px rgba(255,140,39,.07); }
.news-search-icon { color: var(--text-muted); font-size: 22px; line-height: 1; }
.news-search-input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text-primary); font-size: 11px; }
.news-search-input::placeholder { color: var(--text-muted); }
.news-category-nav { margin-top: 20px; border-bottom: 1px solid var(--stroke); }
.news-category-scroll { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
.news-category-scroll::-webkit-scrollbar { display: none; }
.news-category-tab { position: relative; display: inline-flex; min-height: 42px; flex: 0 0 auto; align-items: center; gap: 7px; padding: 0 12px; color: var(--text-muted); border: 0; background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; transition: color .16s ease; }
.news-category-tab::after { position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; transform: scaleX(0); transform-origin: center; background: var(--brand); content: ''; transition: transform .18s ease; }
.news-category-tab small { min-width: 16px; padding: 2px 4px; color: inherit; border-radius: 5px; background: rgba(255,255,255,.055); font-family: var(--font-mono); font-size: 8px; text-align: center; }
.news-category-tab:hover, .news-category-tab.is-active { color: var(--text-primary); }
.news-category-tab.is-active::after { transform: scaleX(1); }
.news-category-tab.is-active small { color: var(--brand-light); background: rgba(255,140,39,.1); }
.news-results-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 1px 12px; }
.news-result-caption { display: flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 10px; }
.news-result-caption strong { color: var(--text-primary); font-family: var(--font-mono); font-size: 11px; }
.news-caption-separator { margin: 0 4px; color: var(--stroke); }
.news-local-library { display: flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 9px; }
.news-local-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px rgba(255,140,39,.45); }
.newsroom-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.news-story-card { position: relative; display: flex; min-height: 222px; flex-direction: column; overflow: hidden; border: 1px solid var(--stroke); border-radius: 13px; background: linear-gradient(150deg, rgba(255,255,255,.028), rgba(255,255,255,.009)); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.news-story-card::before { position: absolute; top: 0; left: 0; width: 2px; height: 45px; border-radius: 0 0 2px 0; background: var(--story-tint); opacity: .85; content: ''; }
.news-story-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--story-tint) 40%, var(--stroke)); background: linear-gradient(150deg, color-mix(in srgb, var(--story-tint) 6%, var(--bg-card)), rgba(255,255,255,.015)); }
.news-story-link { display: flex; height: 100%; flex: 1; flex-direction: column; padding: 17px 17px 12px; color: var(--text-primary); text-decoration: none; }
.news-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-left: 4px; }
.news-card-category { color: var(--story-tint); font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.news-card-date { color: var(--text-muted); font-family: var(--font-mono); font-size: 8px; }
.news-card-index { position: absolute; top: 39px; right: 15px; color: color-mix(in srgb, var(--story-tint) 55%, transparent); font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
.news-story-link h3 { max-width: calc(100% - 12px); margin-top: 15px; font-size: 15px; font-weight: 760; line-height: 1.35; letter-spacing: -.012em; text-wrap: pretty; }
.news-card-excerpt { display: -webkit-box; overflow: hidden; margin-top: 8px; color: var(--text-secondary); font-size: 10px; line-height: 1.62; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.news-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; color: var(--text-muted); font-size: 8px; font-weight: 650; }
.news-read-time { color: var(--text-muted); font-family: var(--font-mono); white-space: nowrap; }
.news-save { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; min-width: 27px; height: 27px; align-items: center; justify-content: center; gap: 6px; padding: 0 6px; color: var(--text-muted); border: 1px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; font-size: 16px; line-height: 1; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.news-save:hover, .news-save.is-saved { color: var(--brand-light); border-color: rgba(255,140,39,.18); background: rgba(255,140,39,.08); }
.news-save-labeled { position: static; min-height: 34px; padding: 0 10px; border-color: var(--stroke); background: rgba(255,255,255,.025); font-size: 13px; }
.news-save span { font-size: 9px; font-weight: 750; letter-spacing: .02em; }
.news-empty-state { grid-column: 1 / -1; display: grid; min-height: 230px; place-content: center; justify-items: center; padding: 28px; text-align: center; }
.news-empty-mark { display: grid; width: 40px; height: 40px; place-items: center; color: var(--brand-light); border: 1px solid var(--stroke); border-radius: 50%; background: var(--glass-bg); font-size: 22px; }
.news-empty-state h3 { margin-top: 13px; font-size: 17px; }
.news-empty-state p { margin-top: 5px; color: var(--text-muted); font-size: 11px; }
.news-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
.news-page-numbers { display: flex; gap: 5px; }
.news-page-number, .news-page-step { display: inline-flex; min-width: 34px; height: 34px; align-items: center; justify-content: center; gap: 5px; padding: 0 9px; color: var(--text-secondary); border: 1px solid var(--stroke); border-radius: 8px; background: var(--glass-bg); cursor: pointer; font-size: 10px; font-weight: 700; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.news-page-step { font-size: 9px; }
.news-page-number[aria-current="page"] { color: #17100a; border-color: var(--brand); background: var(--brand); }
.news-page-number:hover:not([aria-current="page"]), .news-page-step:hover:not(:disabled) { color: var(--text-primary); border-color: rgba(255,140,39,.4); }
.news-page-step:disabled { opacity: .38; cursor: not-allowed; }
.news-source-section { padding-top: 53px; }
.news-source-heading { align-items: flex-end; }
.news-source-summary { color: var(--text-muted); font-size: 9px; }
.news-source-list { display: flex; overflow-x: auto; gap: 8px; margin-top: 16px; padding: 2px 2px 10px; scrollbar-color: rgba(255,255,255,.15) transparent; scrollbar-width: thin; }
.news-source-pill { display: inline-flex; min-height: 33px; flex: 0 0 auto; align-items: center; gap: 8px; padding: 0 11px; color: var(--text-secondary); border: 1px solid var(--stroke); border-radius: 999px; background: var(--glass-bg); font-size: 9px; font-weight: 700; transition: color .16s ease, border-color .16s ease; }
.news-source-pill:hover { color: var(--text-primary); border-color: rgba(255,140,39,.35); }
.news-source-loading { color: var(--text-muted); font-size: 10px; }
.news-syndication-note { max-width: 800px; margin-top: 8px; color: var(--text-muted); font-size: 9px; line-height: 1.55; }
.news-reading-wrap { padding-top: 27px; }
.news-breadcrumbs { display: flex; align-items: center; gap: 9px; color: var(--text-muted); font-size: 10px; }
.news-breadcrumbs a { color: var(--text-secondary); }
.news-breadcrumbs a:hover { color: var(--brand-light); }
.news-article-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(240px, 300px); align-items: start; justify-content: space-between; gap: clamp(24px, 5vw, 64px); margin: 22px auto 0; }
.news-article-main { min-width: 0; }
.news-longform { --story-tint: var(--brand-light); }
.news-story-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.news-story-category { padding: 5px 9px; color: var(--story-tint); border: 1px solid color-mix(in srgb, var(--story-tint) 35%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--story-tint) 7%, transparent); font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.news-story-label { color: var(--text-muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.news-longform > h1 { max-width: 790px; margin-top: 16px; font-family: var(--font-display); font-size: clamp(31px, 4.4vw, 50px); font-weight: 850; line-height: 1.07; letter-spacing: -.035em; text-wrap: balance; }
.news-story-dek { max-width: 720px; margin-top: 13px; color: var(--text-secondary); font-size: clamp(14px, 1.5vw, 17px); line-height: 1.6; }
.news-byline-row { display: flex; align-items: center; gap: 10px; margin-top: 19px; }
.news-author-mark { width: 35px; height: 35px; flex: 0 0 auto; font-size: 13px; }
.news-author-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.news-author-copy strong { color: var(--text-primary); font-size: 10px; }
.news-author-copy span { color: var(--text-muted); font-family: var(--font-mono); font-size: 8px; }
.news-story-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.news-share { display: inline-flex; height: 34px; align-items: center; gap: 7px; padding: 0 10px; color: var(--text-secondary); border: 1px solid var(--stroke); border-radius: 8px; background: rgba(255,255,255,.025); cursor: pointer; font-size: 9px; font-weight: 750; }
.news-share:hover { color: var(--text-primary); border-color: rgba(255,140,39,.32); }
.news-share svg { width: 13px !important; height: 13px !important; }
.news-story-art { position: relative; display: grid; height: 190px; overflow: hidden; place-items: center; margin-top: 25px; border: 1px solid color-mix(in srgb, var(--story-tint) 25%, var(--stroke)); border-radius: 14px; background: radial-gradient(260px 140px at 50% 53%, color-mix(in srgb, var(--story-tint) 20%, transparent), transparent 74%), linear-gradient(130deg, rgba(255,255,255,.025), rgba(255,255,255,.005)); }
.news-story-art::before, .news-story-art::after { position: absolute; width: 250px; height: 250px; border: 1px solid color-mix(in srgb, var(--story-tint) 16%, transparent); border-radius: 50%; content: ''; }
.news-story-art::after { width: 350px; height: 350px; border-color: color-mix(in srgb, var(--story-tint) 8%, transparent); }
.news-art-orbit { position: absolute; width: 74px; height: 74px; border: 1px solid color-mix(in srgb, var(--story-tint) 34%, transparent); border-radius: 50%; }
.news-art-orbit-a { transform: translate(-138px, 24px); }
.news-art-orbit-b { width: 26px; height: 26px; transform: translate(154px, -43px); background: color-mix(in srgb, var(--story-tint) 18%, transparent); box-shadow: 0 0 28px color-mix(in srgb, var(--story-tint) 30%, transparent); }
.news-art-mark { z-index: 1; color: var(--story-tint); font-family: var(--font-display); font-size: 86px; font-weight: 900; line-height: 1; filter: drop-shadow(0 0 30px color-mix(in srgb, var(--story-tint) 42%, transparent)); }
.news-art-caption { position: absolute; bottom: 17px; left: 18px; color: var(--text-muted); font-size: 8px; font-weight: 800; letter-spacing: .17em; }
.news-art-index { position: absolute; right: 18px; bottom: 17px; color: var(--text-muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; }
.news-story-body { max-width: 740px; padding: 22px 0 0; }
.news-story-body p { margin: 0 0 16px; color: var(--text-secondary); font-size: 14px; line-height: 1.86; }
.news-story-body p:first-child { color: var(--text-primary); font-size: 16px; line-height: 1.75; }
.news-story-body h2 { margin: 30px 0 10px; color: var(--text-primary); font-family: var(--font-display); font-size: 19px; font-weight: 800; line-height: 1.25; }
.news-story-body ul { display: flex; flex-direction: column; gap: 8px; margin: 0 0 17px 20px; color: var(--text-secondary); font-size: 13px; line-height: 1.7; }
.news-story-body strong { color: var(--text-primary); }
.news-editorial-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 25px; padding: 12px 14px; border: 1px solid var(--stroke); border-radius: 10px; background: var(--glass-bg); }
.news-editorial-dot { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 5px; border-radius: 50%; background: var(--brand); }
.news-editorial-note p { color: var(--text-muted); font-size: 10px; line-height: 1.6; }
.news-further-reading { margin-top: 28px; padding-top: 19px; border-top: 1px solid var(--stroke); }
.news-further-reading h2 { font-size: 13px; font-weight: 800; }
.news-reference-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.news-reference-list a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; color: var(--text-secondary); border: 1px solid var(--stroke); border-radius: 8px; background: var(--glass-bg); font-size: 9px; font-weight: 700; }
.news-reference-list a:hover { color: var(--brand-light); border-color: rgba(255,140,39,.3); }
.news-bottom-navigation { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--stroke); }
.news-back-link { display: inline-flex; gap: 7px; color: var(--brand-light); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.news-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 22px; }
.news-related-heading { grid-column: 1 / -1; margin-bottom: 2px; color: var(--text-muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.news-related-story { display: flex; min-height: 98px; flex-direction: column; gap: 6px; padding: 11px; border: 1px solid var(--stroke); border-radius: 9px; background: var(--glass-bg); }
.news-related-story > span { color: var(--brand-light); font-size: 7px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.news-related-story strong { color: var(--text-primary); font-size: 10px; line-height: 1.38; }
.news-related-story small { margin-top: auto; color: var(--text-muted); font-family: var(--font-mono); font-size: 8px; }
.news-related-story:hover { border-color: rgba(255,140,39,.32); }
.news-article-rail { position: sticky; top: 148px; display: flex; flex-direction: column; gap: 11px; }
.news-rail-card { padding: 17px; border: 1px solid var(--stroke); border-radius: 12px; background: linear-gradient(150deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.news-rail-card h2 { margin-top: 9px; font-family: var(--font-display); font-size: 16px; font-weight: 800; line-height: 1.25; }
.news-rail-card p { margin-top: 8px; color: var(--text-secondary); font-size: 10px; line-height: 1.65; }
.news-rail-link { display: inline-flex; gap: 7px; margin-top: 14px; color: var(--brand-light); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.news-article-rail .news-source-card { background: radial-gradient(240px 140px at 100% 0, rgba(255,140,39,.07), transparent 80%), var(--glass-bg); }
.newsroom-404 { padding-top: 70px; padding-bottom: 110px; text-align: center; }
.newsroom-404 .news-eyebrow { justify-content: center; }
.newsroom-404 h1 { margin: 14px 0 20px; font-family: var(--font-display); font-size: clamp(26px, 4vw, 42px); }
[data-theme="light"] .newsroom-stat, [data-theme="light"] .news-wire-card, [data-theme="light"] .news-story-card, [data-theme="light"] .news-rail-card { background-color: rgba(255,255,255,.78); }
[data-theme="light"] .news-wire-skeleton span { background-image: linear-gradient(90deg, rgba(0,0,0,.035), rgba(0,0,0,.09), rgba(0,0,0,.035)); }
@media (max-width: 1050px) {
  .newsroom-stat { min-width: 80px; }
  .newsroom-stat span { max-width: 72px; font-size: 8px; }
  .news-lead-layout { grid-template-columns: minmax(0, 1.35fr) minmax(285px, .9fr); }
  .news-lead-story { grid-template-columns: minmax(0, 1fr) minmax(190px, .7fr); }
  .news-article-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 28px; }
}
@media (max-width: 820px) {
  .newsroom-masthead { align-items: flex-start; flex-direction: column; gap: 18px; padding-top: 28px; }
  .newsroom-statline { width: 100%; }
  .newsroom-stat { flex: 1; }
  .news-lead-layout { grid-template-columns: 1fr; }
  .news-wire-card { min-height: 0; }
  .news-wire-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 15px; }
  .news-wire-item:nth-child(4) { display: none; }
  .newsroom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-article-layout { grid-template-columns: 1fr; }
  .news-article-rail { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .newsroom-page .container { width: min(calc(100% - 30px), 1240px); }
  .newsroom-masthead { padding-top: 22px; padding-bottom: 19px; }
  .news-eyebrow { flex-wrap: wrap; font-size: 8px; }
  .newsroom-masthead h1 { font-size: clamp(28px, 8vw, 38px); }
  .newsroom-intro { max-width: 380px; font-size: 12px; }
  .newsroom-statline { gap: 6px; }
  .newsroom-stat { min-width: 0; padding: 9px 8px; }
  .newsroom-stat strong { font-size: 16px; }
  .newsroom-stat span { font-size: 7px; letter-spacing: .04em; }
  .news-lead-layout { gap: 11px; padding-top: 13px; }
  .news-lead-story { min-height: 0; grid-template-columns: 1fr; }
  .news-lead-copy { min-height: 236px; padding: 19px; }
  .news-lead-copy h2 { margin-top: 15px; font-size: 23px; }
  .news-lead-copy > p { font-size: 11px; }
  .news-lead-art { position: absolute; top: 0; right: 0; width: 45%; height: 115px; opacity: .55; mask-image: linear-gradient(90deg, transparent, black 55%); }
  .news-lead-art img { min-height: 115px; }
  .news-lead-art-shade { background: linear-gradient(90deg, transparent, rgba(4,7,10,.32)); }
  .news-art-overline { display: none; }
  .news-wire-card { padding: 15px; }
  .news-wire-list { display: flex; }
  .news-wire-item:nth-child(4) { display: flex; }
  .newsroom-listing { padding-top: 34px; }
  .news-listing-header { align-items: stretch; flex-direction: column; gap: 12px; }
  .news-search { width: 100%; }
  .news-category-tab { min-height: 38px; padding: 0 9px; font-size: 9px; }
  .news-results-row { align-items: flex-start; flex-direction: column; gap: 6px; padding-top: 11px; }
  .newsroom-grid { grid-template-columns: 1fr; gap: 9px; }
  .news-story-card { min-height: 190px; }
  .news-story-link { padding: 15px; }
  .news-story-link h3 { max-width: calc(100% - 26px); font-size: 15px; }
  .news-card-index { top: 37px; right: 14px; }
  .news-page-step { min-width: 34px; overflow: hidden; padding: 0 7px; }
  .news-page-label { display: none; }
  .news-page-numbers { gap: 3px; }
  .news-page-number { min-width: 30px; height: 32px; }
  .news-source-section { padding-top: 38px; }
  .news-source-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .news-reading-wrap { padding-top: 20px; }
  .news-article-layout { margin-top: 16px; }
  .news-longform > h1 { margin-top: 13px; font-size: clamp(29px, 8vw, 39px); }
  .news-story-dek { font-size: 13px; }
  .news-byline-row { flex-wrap: wrap; }
  .news-story-actions { width: 100%; margin: 7px 0 0 45px; }
  .news-story-art { height: 155px; margin-top: 19px; }
  .news-art-mark { font-size: 68px; }
  .news-story-body { padding-top: 18px; }
  .news-story-body p { font-size: 13px; }
  .news-story-body p:first-child { font-size: 14px; }
  .news-related-grid { grid-template-columns: 1fr; }
  .news-article-rail { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .news-live-pulse::after, .news-wire-skeleton span { animation: none; }
  .news-story-card, .news-lead-art img, .news-lead-cta { transition: none; }
}

/* Exchange Deck header breakpoints */
@media (max-width: 1280px) {
  .nav-container { width: min(calc(100% - 48px), 1480px); }
  .nav-links { display: none; }
  .nav-docs { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 820px) {
  :root { --nav-h: 68px; --ticker-h: 32px; }
  .nav-container, .nav-market-inner { width: calc(100% - 36px); }
  .nav-container { gap: 12px; }
  .nav-right { gap: 7px; }
  .nav-hosting { min-height: 44px; }
  .nav-host-icon { width: 32px; height: 32px; }
  .nav-market-inner { gap: 13px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; --ticker-h: 30px; }
  .nav-container, .nav-market-inner { width: calc(100% - 28px); }
  .brand-img { width: 34px; height: 34px; }
  .brand-name { font-size: 18px; }
  .nav-tools, .nav-docs { display: none; }
  .nav-hosting { width: 42px; min-height: 42px; justify-content: center; padding: 4px; border-radius: 13px; }
  .nav-hosting .nav-host-copy, .nav-hosting > .nav-icon { display: none; }
  .nav-host-icon { width: 32px; height: 32px; }
  .nav-tool.burger { width: 42px; height: 42px; }
  .nav-market-label { gap: 7px; font-size: 8px; letter-spacing: .09em; }
  .nav-market-name, .nav-market-sep { display: none; }
  .nav-market-inner { gap: 10px; }
  .ticker-item { gap: 5px; padding: 0 12px; font-size: 9px; }
  .ticker-bar::before, .ticker-bar::after { width: 12px; }
  .drawer-panel { gap: 15px; padding: 21px; }
}
@media (max-width: 400px) {
  .brand .brand-badge { display: none; }
  .drawer-panel { width: min(390px, 94vw); padding: 18px; }
  .drawer-link { gap: 7px; padding: 9px 8px; font-size: 11px; }
  .drawer-secondary-links { gap: 3px 10px; }
}

/* ---------- Site-wide local AI support concierge ---------- */
.support-widget { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; font-family: var(--font-body); }
.support-launcher { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-width: 174px; height: 58px; padding: 0 19px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff; background: linear-gradient(132deg,#ff8a24 0%,#ff5b0a 54%,#eb3b22 100%); box-shadow: 0 10px 34px rgba(255,83,10,.32), inset 0 1px rgba(255,255,255,.24); cursor: pointer; font: 750 14px var(--font-body); letter-spacing: .01em; transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease); }
.support-launcher::before { position: absolute; inset: 1px; border-radius: inherit; background: linear-gradient(120deg,rgba(255,255,255,.18),transparent 48%); content: ''; pointer-events: none; }
.support-launcher:hover { transform: translateY(-3px); filter: saturate(1.08); box-shadow: 0 14px 42px rgba(255,83,10,.42), inset 0 1px rgba(255,255,255,.3); }
.support-launcher:focus-visible, .support-icon-button:focus-visible, .support-suggestion:focus-visible, .support-send:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.support-launcher-icon { z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; }
.support-launcher-icon svg { width: 24px; height: 24px; }
.support-launcher-label { z-index: 1; white-space: nowrap; }
.support-launcher-pulse { position: absolute; top: 11px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: #baf9d8; box-shadow: 0 0 12px rgba(125,255,190,.9); }
.support-launcher.open { display: none; }
.support-panel { position: absolute; right: 0; bottom: calc(100% + 15px); display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; width: min(408px, calc(100vw - 36px)); height: min(660px, calc(100dvh - 118px)); overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 24px; color: var(--text-primary); background: radial-gradient(ellipse at 0% 0%,rgba(255,106,16,.13),transparent 42%),linear-gradient(160deg,rgba(20,22,28,.985),rgba(9,11,15,.985)); box-shadow: 0 30px 95px rgba(0,0,0,.58),0 0 50px rgba(255,97,14,.09),inset 0 1px rgba(255,255,255,.05); backdrop-filter: blur(28px); animation: supportPanelIn .24s var(--ease) both; }
[data-theme="light"] .support-panel { border-color: rgba(20,25,35,.13); background: radial-gradient(ellipse at 0% 0%,rgba(255,119,31,.11),transparent 45%),linear-gradient(160deg,rgba(255,255,255,.99),rgba(247,248,250,.99)); box-shadow: 0 26px 75px rgba(20,27,38,.22),0 0 35px rgba(255,97,14,.08); }
@keyframes supportPanelIn { from { opacity: 0; transform: translateY(12px) scale(.975); } to { opacity: 1; transform: translateY(0) scale(1); } }
.support-header { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 19px 18px 17px; border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(115deg,rgba(255,255,255,.045),transparent 68%); }
[data-theme="light"] .support-header { border-color: rgba(20,25,35,.08); }
.support-header::after { position: absolute; left: 18px; right: 18px; bottom: -1px; height: 1px; background: linear-gradient(90deg,rgba(255,123,30,.65),rgba(0,240,255,.22),transparent); content: ''; }
.support-header-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.support-mark { display: grid; flex: 0 0 auto; place-items: center; width: 43px; height: 43px; border: 1px solid rgba(255,155,73,.35); border-radius: 14px; background: linear-gradient(145deg,rgba(255,115,25,.2),rgba(255,255,255,.04)); box-shadow: inset 0 1px rgba(255,255,255,.1),0 0 22px rgba(255,105,17,.12); }
.support-mark svg { width: 28px; height: 28px; filter: drop-shadow(0 0 8px rgba(255,127,39,.48)); }
.support-brand-copy { min-width: 0; }
.support-overline, .support-welcome-kicker, .support-suggestions-label { color: #ffac65; font: 750 9px var(--font-mono); letter-spacing: .14em; }
[data-theme="light"] .support-overline, [data-theme="light"] .support-welcome-kicker, [data-theme="light"] .support-suggestions-label { color: #cc570b; }
.support-title { margin-top: 2px; color: var(--text-primary); font-size: 17px; font-weight: 760; line-height: 1.3; letter-spacing: -.025em; }
.support-online { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--text-muted); font-size: 10px; }
.support-online-dot { width: 6px; height: 6px; border-radius: 50%; background: #3de19a; box-shadow: 0 0 9px rgba(61,225,154,.76); }
.support-header-actions { display: flex; gap: 6px; }
.support-icon-button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; color: var(--text-secondary); background: rgba(255,255,255,.035); cursor: pointer; font: 22px/1 var(--font-body); transition: color .16s ease,border-color .16s ease,background .16s ease; }
.support-icon-button:hover { color: var(--text-primary); border-color: rgba(255,145,62,.35); background: rgba(255,126,35,.09); }
.support-icon-button:first-child { font-size: 20px; }
.support-transcript { display: flex; flex-direction: column; gap: 0; overflow-y: auto; overscroll-behavior: contain; padding: 19px 17px 15px; scrollbar-color: rgba(255,255,255,.16) transparent; scrollbar-width: thin; }
.support-welcome { position: relative; margin: 3px 0 20px; padding: 18px 17px 17px; overflow: hidden; border: 1px solid rgba(255,141,61,.19); border-radius: 17px; background: radial-gradient(ellipse at 100% 0%,rgba(255,132,41,.14),transparent 48%),linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.018)); }
[data-theme="light"] .support-welcome { border-color: rgba(210,101,34,.18); background: radial-gradient(ellipse at 100% 0%,rgba(255,132,41,.10),transparent 48%),rgba(18,24,32,.025); }
.support-welcome-kicker { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.support-welcome-kicker span { font-size: 13px; }
.support-welcome h3 { max-width: 280px; color: var(--text-primary); font-size: 21px; font-weight: 770; letter-spacing: -.04em; line-height: 1.15; }
.support-welcome p { margin-top: 9px; color: var(--text-secondary); font-size: 12px; line-height: 1.65; }
.support-suggestions-label { margin: 0 0 9px 2px; color: var(--text-muted); font-size: 8px; }
.support-suggestions { display: flex; flex-direction: column; gap: 8px; }
.support-suggestion { display: grid; grid-template-columns: 27px 1fr 18px; align-items: center; gap: 10px; min-height: 49px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.075); border-radius: 13px; color: var(--text-secondary); background: rgba(255,255,255,.025); text-align: left; cursor: pointer; font: 600 11px var(--font-body); transition: border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease; }
[data-theme="light"] .support-suggestion { border-color: rgba(20,25,35,.1); background: rgba(15,25,35,.025); }
.support-suggestion:hover { transform: translateX(2px); border-color: rgba(255,137,55,.35); color: var(--text-primary); background: rgba(255,128,39,.07); }
.support-suggestion-icon { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(255,148,67,.18); border-radius: 9px; color: #ffac65; background: rgba(255,116,27,.09); font-size: 14px; }
.support-suggestion-arrow { color: var(--text-muted); font-size: 15px; text-align: right; }
.support-message { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 17px; }
.support-message:last-child { margin-bottom: 0; }
.support-message > .support-mark { width: 25px; height: 25px; border-radius: 8px; }
.support-message > .support-mark svg { width: 17px; height: 17px; }
.support-message.user { justify-content: flex-end; }
.support-message-stack { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: 88%; }
.support-message.user .support-message-stack { align-items: flex-end; }
.support-message-meta { margin: 1px 0 5px 2px; color: var(--text-muted); font: 700 8px var(--font-mono); letter-spacing: .1em; }
.support-message.user .support-message-meta { margin-right: 2px; }
.support-message-copy { max-width: 100%; padding: 10px 12px; border: 1px solid rgba(255,255,255,.075); border-radius: 4px 14px 14px 14px; color: var(--text-secondary); background: rgba(255,255,255,.04); font-size: 12px; line-height: 1.66; white-space: pre-wrap; overflow-wrap: anywhere; }
[data-theme="light"] .support-message-copy { border-color: rgba(20,25,35,.08); background: rgba(20,25,35,.035); }
.support-message.user .support-message-copy { border-color: rgba(255,148,67,.22); border-radius: 14px 4px 14px 14px; color: #fff; background: linear-gradient(135deg,rgba(255,127,35,.22),rgba(211,65,21,.14)); }
[data-theme="light"] .support-message.user .support-message-copy { color: #48220c; }
.support-message-copy a { color: #64dcf5; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(100,220,245,.3); text-underline-offset: 2px; }
[data-theme="light"] .support-message-copy a { color: #087c98; }
.support-typing { display: flex; gap: 4px; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 4px 13px 13px 13px; background: rgba(255,255,255,.035); }
.support-typing i { width: 5px; height: 5px; border-radius: 50%; background: #ff9b51; animation: supportTyping 1.1s infinite ease-in-out; }
.support-typing i:nth-child(2) { animation-delay: .14s; }
.support-typing i:nth-child(3) { animation-delay: .28s; }
@keyframes supportTyping { 0%,60%,100% { opacity: .36; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.support-compose { padding: 11px 13px 10px; border-top: 1px solid rgba(255,255,255,.07); }
[data-theme="light"] .support-compose { border-color: rgba(20,25,35,.08); }
.support-input-wrap { padding: 10px 10px 8px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(0,0,0,.17); transition: border-color .16s ease,box-shadow .16s ease; }
[data-theme="light"] .support-input-wrap { border-color: rgba(20,25,35,.12); background: rgba(20,25,35,.025); }
.support-input-wrap:focus-within { border-color: rgba(255,145,63,.5); box-shadow: 0 0 0 3px rgba(255,116,35,.08); }
.support-input { display: block; width: 100%; min-height: 24px; max-height: 108px; resize: none; border: 0; outline: 0; color: var(--text-primary); background: transparent; font: 12px/1.55 var(--font-body); }
.support-input::placeholder { color: var(--text-muted); }
.support-compose-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.support-compose-hint { color: var(--text-muted); font: 7px var(--font-mono); letter-spacing: .07em; }
.support-send { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg,#ff8a24,#ef4c18); box-shadow: 0 5px 14px rgba(255,91,20,.18); cursor: pointer; transition: transform .15s ease,opacity .15s ease,filter .15s ease; }
.support-send svg { width: 17px; height: 17px; }
.support-send:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.12); }
.support-send:disabled { opacity: .38; cursor: default; }
.support-privacy { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 0 10px 12px; color: var(--text-muted); font-size: 9px; text-align: center; }
.support-privacy-icon { color: #ffac65; font-size: 11px; }
@media (max-width: 600px) {
  .support-widget { right: max(13px,env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); gap: 0; }
  .support-launcher { min-width: 156px; height: 54px; padding: 0 16px; }
  .support-panel { position: fixed; right: 10px; bottom: calc(77px + env(safe-area-inset-bottom)); width: auto; height: min(650px,calc(100dvh - 100px - env(safe-area-inset-top))); min-height: 390px; border-radius: 21px; }
  .support-header { padding: 15px 14px 14px; }
  .support-transcript { padding: 15px 13px 12px; }
  .support-welcome { padding: 15px 14px; }
  .support-welcome h3 { font-size: 19px; }
}
@media (max-width: 360px) {
  .support-widget { right: 9px; }
  .support-panel { right: 8px; left: 8px; }
  .support-compose-hint { font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .support-panel, .support-typing i { animation: none; }
  .support-launcher, .support-suggestion, .support-send { transition: none; }
}
