/* =============================================
   GLOBALUXANCHOR — AGENCY-GRADE DESIGN SYSTEM
   ============================================= */

/* ── DARK MODE (default) ── */
:root {
  --accent: #06d6f5;
  --accent-glow: rgba(6, 214, 245, 0.35);
  --accent2: #7c3aed;
  --accent2-glow: rgba(124, 58, 237, 0.3);
  --gold: #d4a853;
  --gold-light: #f0c674;
  --gold-dark: #b8860b;
  --gold-glow: rgba(212, 168, 83, 0.35);
  --gold-border: rgba(212, 168, 83, 0.28);
  --gold-muted: rgba(212, 168, 83, 0.08);
  --bg: #06060a;
  --bg2: #0d0d16;
  --bg3: #12121f;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(6, 214, 245, 0.3);
  --border-gold: rgba(212, 168, 83, 0.22);
  --text: #f0f0f8;
  --muted: #6b7280;
  --positive: #10b981;
  --negative: #ef4444;
  --gradient-brand: linear-gradient(135deg, var(--accent) 0%, var(--gold) 50%, var(--accent2) 100%);
  --gradient-gold-line: linear-gradient(90deg, transparent, var(--gold), var(--accent), transparent);
}

/* ── LIGHT MODE ── */
html.light {
  color-scheme: light;
  --accent: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.25);
  --accent2: #6d28d9;
  --accent2-glow: rgba(109, 40, 217, 0.2);
  --gold: #b8860b;
  --gold-light: #d97706;
  --gold-glow: rgba(184, 134, 11, 0.25);
  --gold-border: rgba(184, 134, 11, 0.3);
  --gold-muted: rgba(184, 134, 11, 0.06);
  --border-gold: rgba(184, 134, 11, 0.25);
  --gradient-brand: linear-gradient(135deg, var(--accent) 0%, var(--gold) 50%, var(--accent2) 100%);
  --bg: #f1f5fb;
  --bg2: #e8edf8;
  --bg3: #dde3f3;
  --surface: rgba(255,255,255,0.9);
  --surface-hover: rgba(255,255,255,1);
  --border: rgba(15,23,42,0.1);
  --border-accent: rgba(2,132,199,0.3);
  --text: #0f172a;
  --muted: #64748b;
  --positive: #059669;
  --negative: #dc2626;
}

/* Light mode structural overrides */
html.light body,
html.light .site-body { background: var(--bg) !important; color: var(--text) !important; }
html.light body::before { opacity: 0 !important; }

.site-body {
  background: var(--bg);
  color: var(--text);
}

html.light .nav-bar.scrolled {
  background: rgba(241,245,251,0.96) !important;
  border-color: rgba(15,23,42,0.08) !important;
  box-shadow: 0 1px 24px rgba(15,23,42,0.08) !important;
}

/* Nav */
html.light .nav-bar {
  background: rgba(241,245,251,0.94) !important;
  border-color: rgba(15,23,42,0.08) !important;
  box-shadow: 0 1px 24px rgba(15,23,42,0.06) !important;
}
html.light .nav-link { color: #334155 !important; }
html.light .nav-link:hover { color: var(--accent) !important; }
html.light .nav-logo { color: #0f172a !important; }
html.light .nav-logo span {
  background: linear-gradient(135deg, var(--gold), var(--accent)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Sidebars */
html.light .app-sidebar {
  background: #fff !important;
  border-right: 1px solid rgba(15,23,42,0.08) !important;
}
html.light .admin-sidebar {
  background: #fff !important;
  border-right-color: rgba(15,23,42,0.08) !important;
}
html.light .app-nav-link { color: #475569 !important; }
html.light .app-nav-link:hover { background: rgba(2,132,199,0.07) !important; color: var(--accent) !important; }
html.light .app-nav-link.active { background: rgba(2,132,199,0.1) !important; color: var(--accent) !important; }
html.light .admin-nav-link { color: #475569 !important; }
html.light .admin-nav-link:hover { background: rgba(2,132,199,0.07) !important; color: var(--accent) !important; }
html.light .admin-nav-label { color: #94a3b8 !important; }

/* Headers */
html.light .app-header {
  background: rgba(241,245,251,0.95) !important;
  border-color: rgba(15,23,42,0.08) !important;
}

/* Cards */
html.light .glass-card {
  background: rgba(255,255,255,0.85) !important;
  border-color: rgba(15,23,42,0.08) !important;
  box-shadow: 0 4px 24px rgba(15,23,42,0.06) !important;
  backdrop-filter: blur(12px);
}
html.light .plan-card { background: #fff !important; border-color: rgba(15,23,42,0.1) !important; }
html.light .plan-card.featured { border-color: var(--accent) !important; box-shadow: 0 0 40px rgba(2,132,199,0.15) !important; }
html.light .trader-card { background: #fff !important; }
html.light .news-card-hero, html.light .news-card-side, html.light .news-card-grid {
  background: #fff !important; border-color: rgba(15,23,42,0.08) !important;
}

/* Platform preview */
html.light .platform-preview-wrap { background: #f8faff !important; border-color: rgba(15,23,42,0.1) !important; box-shadow: 0 20px 60px rgba(15,23,42,0.1) !important; }
html.light .ppw-chrome { background: #eef2f9 !important; border-color: rgba(15,23,42,0.08) !important; }
html.light .ppw-body { background: rgba(248,250,255,0.9) !important; }

/* Data table */
html.light .data-table th { background: rgba(15,23,42,0.03) !important; color: #64748b !important; border-color: rgba(15,23,42,0.06) !important; }
html.light .data-table td { border-color: rgba(15,23,42,0.05) !important; }
html.light .data-table tr:hover td { background: rgba(2,132,199,0.04) !important; }
html.light .market-row:hover { background: rgba(2,132,199,0.04) !important; }

/* Forms */
html.light .form-input,
html.light input:not([type=radio]):not([type=checkbox]),
html.light select, html.light textarea {
  background: #fff !important;
  color: var(--text) !important;
  border-color: rgba(15,23,42,0.12) !important;
}
html.light input::placeholder, html.light textarea::placeholder { color: #94a3b8 !important; }
html.light select option { background: #fff; color: #0f172a; }

/* Text that's hardcoded white */
html.light .section-h2,
html.light .hero-brand { color: #0f172a !important; }
html.light .hero-h1 { color: var(--text) !important; }

/* Ticker */
html.light .ticker-wrap { border-color: rgba(2,132,199,0.15) !important; }

/* Hero orbs — soften in light mode */
html.light .hero-orb-1 { opacity: 0.35 !important; }
html.light .hero-orb-2 { opacity: 0.25 !important; }
html.light .hero-orb-3 { opacity: 0.2 !important; }
html.light .hero-grid-lines { opacity: 0.4 !important; }
html.light .hero-scan { opacity: 0.15 !important; }
html.light .hero-chip { background: rgba(241,245,251,0.92) !important; border-color: rgba(2,132,199,0.2) !important; }

/* Sections */
html.light section { background: var(--bg); }

/* News filter pills */
html.light .news-filter { background: #fff !important; border-color: rgba(15,23,42,0.1) !important; color: #475569 !important; }
html.light .news-filter.active { background: rgba(2,132,199,0.1) !important; color: var(--accent) !important; border-color: rgba(2,132,199,0.3) !important; }

/* Status pills */
html.light .status-pill.status-active { background: rgba(5,150,105,0.1) !important; }
html.light .status-pill.status-rejected { background: rgba(220,38,38,0.1) !important; }
html.light .status-pill.status-pending { background: rgba(217,119,6,0.1) !important; }

/* Theme toggle button */
.theme-toggle {
  position: relative;
  width: 52px; height: 28px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.theme-toggle:hover { border-color: var(--gold-border); }
.theme-toggle-thumb {
  position: absolute;
  left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  font-size: 0.65rem; color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 10px var(--gold-glow);
}
html.light .theme-toggle-thumb { transform: translateX(23px); }
html:not(.light) .theme-toggle-thumb { transform: translateX(0px); }
.theme-toggle-icon-moon { display: inline-flex; }
.theme-toggle-icon-sun  { display: none; }
html.light .theme-toggle-icon-moon { display: none; }
html.light .theme-toggle-icon-sun  { display: inline-flex; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
  max-width: 100%;
  overflow-x: hidden;
}

/* ── Subtle gold ambient glow ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 95% 5%, rgba(212,168,83,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 5% 95%, rgba(212,168,83,0.04) 0%, transparent 50%),
    radial-gradient(ellipse 30% 25% at 50% 50%, rgba(212,168,83,0.02) 0%, transparent 60%);
}

/* ── Noise overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Typography ── */
.font-display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold-light) 45%, var(--gold) 55%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-light) 40%, #fff 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Live Ticker ── */
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.ticker-wrap::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.ticker {
  display: inline-block;
  animation: ticker-scroll 40s linear infinite;
}
.ticker:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Glow effects ── */
.glow-cyan {
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(6,214,245,0.1);
}
.glow-purple {
  box-shadow: 0 0 30px var(--accent2-glow), 0 0 60px rgba(124,58,237,0.1);
}
.glow-text {
  text-shadow: 0 0 40px var(--accent-glow);
}

/* ── Glassmorphism cards ── */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: background 0.3s, border-color 0.3s, transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s;
  position: relative;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), var(--accent), var(--gold-border), transparent);
  border-radius: 0 0 1px 1px;
}
.glass-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.3), 0 0 0 1px var(--border-accent);
}

/* ── Neon borders ── */
.border-neon {
  border: 1px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow), inset 0 0 12px rgba(6,214,245,0.05);
}
.border-neon-purple {
  border: 1px solid var(--accent2);
  box-shadow: 0 0 12px var(--accent2-glow), inset 0 0 12px rgba(124,58,237,0.05);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient-brand);
  background-size: 200% 100%;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  border: 1px solid rgba(212,168,83,0.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
  box-shadow: 0 4px 20px rgba(6,214,245,0.2), 0 0 24px rgba(212,168,83,0.12), inset 0 1px 0 rgba(255,255,255,0.12);
  text-decoration: none;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 8px 40px rgba(6,214,245,0.35), 0 0 28px var(--gold-glow), 0 0 20px rgba(124,58,237,0.25), inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translateY(-2px);
  border-color: rgba(212,168,83,0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: var(--gold-border);
  color: var(--gold-light);
  background: var(--gold-muted);
  box-shadow: 0 0 20px rgba(212,168,83,0.12);
}

/* Small button variant */
.btn-sm {
  padding: 8px 20px !important;
  font-size: 0.8rem !important;
}
.btn-danger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 100px;
  color: #ef4444; font-weight: 600; font-size: 0.8rem;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-danger:hover { background: rgba(239,68,68,0.2); box-shadow: 0 0 16px rgba(239,68,68,0.2); }

/* ── Navigation ── */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.nav-bar.scrolled {
  background: rgba(6,6,10,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(212,168,83,0.12);
  box-shadow: 0 1px 40px rgba(0,0,0,0.4), 0 1px 0 rgba(212,168,83,0.08);
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-link {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── Hero ── */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

/* Photo hero — full-bleed editorial composition */
.hero-section--photo {
  padding: 0;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: 72% center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  animation: hero-ken 28s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-ken {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -0.8%, 0); }
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(5,5,10,0.96) 0%, rgba(5,5,10,0.88) 38%, rgba(5,5,10,0.42) 66%, rgba(5,5,10,0.18) 100%),
    linear-gradient(to top, rgba(5,5,10,0.72) 0%, rgba(5,5,10,0.2) 42%, transparent 70%);
  pointer-events: none;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 18% 48%, rgba(212,168,83,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 20%, rgba(6,214,245,0.05) 0%, transparent 50%);
  animation: hero-glow 10s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}

.hero-mesh--subtle {
  z-index: 2;
  opacity: 0.28;
  animation: none;
  background:
    radial-gradient(ellipse 50% 40% at 15% 50%, rgba(212,168,83,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 85% 30%, rgba(6,214,245,0.05) 0%, transparent 55%);
}

.hero-content-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8.75rem 2rem 3.5rem;
  position: relative;
  z-index: 3;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.hero-brand {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--text);
  margin: 0 0 1.35rem;
}

.hero-brand span {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  margin-top: 1.35rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: rgba(240,240,248,0.72);
  line-height: 1.7;
  max-width: 480px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
  align-items: center;
}

.hero-cta-primary {
  padding: 14px 28px;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.hero-cta-secondary {
  padding: 13px 22px;
  font-size: 0.88rem;
  border-color: rgba(255,255,255,0.16);
  color: rgba(240,240,248,0.88);
  backdrop-filter: blur(8px);
}

.hero-cta-secondary:hover {
  border-color: rgba(212,168,83,0.45);
  color: var(--gold-light);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.5rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 520px;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-meta-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

.hero-meta-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240,240,248,0.45);
}

.hero-meta-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.12);
}

.hero-market-bar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding: 0.85rem 2rem;
  background: rgba(5,5,10,0.55);
  border-top: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Pinned live markets ticker (below fixed nav) */
.live-ticker-bar {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 42px;
  padding: 0 1.5rem 0 1.75rem;
  background: rgba(6,6,12,0.92);
  border-bottom: 1px solid rgba(6,214,245,0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}

.live-ticker-label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,240,248,0.62);
  white-space: nowrap;
  padding-right: 0.75rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.live-ticker-track {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.live-ticker-track::before,
.live-ticker-track::after {
  width: 48px;
  background: linear-gradient(to right, rgba(6,6,12,0.95), transparent);
}
.live-ticker-track::after {
  background: linear-gradient(to left, rgba(6,6,12,0.95), transparent);
}

.live-ticker-strip {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  animation-duration: 55s;
}

html.light .live-ticker-bar {
  background: rgba(255,255,255,0.94);
  border-bottom-color: rgba(2,132,199,0.18);
  box-shadow: 0 6px 20px rgba(15,23,42,0.08);
}

html.light .live-ticker-label {
  color: #64748b;
  border-right-color: rgba(15,23,42,0.1);
}

html.light .live-ticker-track::before {
  background: linear-gradient(to right, rgba(255,255,255,0.98), transparent);
}
html.light .live-ticker-track::after {
  background: linear-gradient(to left, rgba(255,255,255,0.98), transparent);
}

html.light .hero-ticker-item {
  color: #334155;
}

.hero-market-label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,240,248,0.55);
  white-space: nowrap;
}

.hero-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.55);
  animation: hero-live-pulse 2s ease-out infinite;
}

@keyframes hero-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.hero-ticker {
  flex: 1;
  min-width: 0;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.hero-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 1.75rem;
  color: rgba(240,240,248,0.85);
}

.hero-ticker-sym {
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.hero-ticker-item .up { color: var(--positive) !important; }
.hero-ticker-item .dn { color: var(--negative) !important; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.hero-trust-avatars {
  display: flex;
  align-items: center;
}

.hero-trust-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: #000;
}

.hero-trust p {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-trust strong {
  color: var(--text);
}

html.light .hero-photo-overlay {
  background:
    linear-gradient(105deg, rgba(241,245,251,0.96) 0%, rgba(241,245,251,0.88) 40%, rgba(241,245,251,0.5) 68%, rgba(241,245,251,0.28) 100%),
    linear-gradient(to top, rgba(241,245,251,0.7) 0%, transparent 48%);
}

html.light .hero-lead {
  color: #475569;
}

html.light .hero-meta {
  border-top-color: rgba(15,23,42,0.1);
}

html.light .hero-meta-label {
  color: #94a3b8;
}

html.light .hero-cta-secondary {
  border-color: rgba(15,23,42,0.14);
  color: #334155;
  background: rgba(255,255,255,0.55);
}

html.light .hero-market-bar {
  background: rgba(255,255,255,0.72);
  border-top-color: rgba(15,23,42,0.08);
}

html.light .hero-market-label,
html.light .hero-ticker-item {
  color: #334155;
}

html.light .hero-trust strong {
  color: var(--text);
}

@media (max-width: 768px) {
  .hero-photo-bg {
    background-position: 80% center;
  }

  .hero-photo-overlay {
    background:
      linear-gradient(180deg, rgba(5,5,10,0.94) 0%, rgba(5,5,10,0.82) 48%, rgba(5,5,10,0.62) 100%);
  }

  html.light .hero-photo-overlay {
    background:
      linear-gradient(180deg, rgba(241,245,251,0.96) 0%, rgba(241,245,251,0.88) 55%, rgba(241,245,251,0.75) 100%);
  }

  .hero-content-wrap {
    padding: 8rem 1.35rem 2.5rem;
    align-items: flex-end;
  }

  .hero-copy {
    max-width: 100%;
  }

  .live-ticker-bar {
    padding: 0 0.85rem 0 1rem;
    height: 40px;
  }

  .live-ticker-label {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    padding-right: 0.5rem;
  }

  .hero-meta-divider {
    display: none;
  }

  .hero-meta {
    gap: 1.25rem;
  }
}

/* Radial gradient atmosphere */
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(6,214,245,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(124,58,237,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 10% 70%, rgba(212,168,83,0.09) 0%, transparent 50%),
    radial-gradient(ellipse 35% 30% at 90% 20%, rgba(212,168,83,0.06) 0%, transparent 45%);
  animation: mesh-shift 18s ease-in-out infinite alternate;
}
@keyframes mesh-shift {
  0%   { opacity: 1; transform: scale(1) translateY(0); }
  50%  { opacity: .85; transform: scale(1.04) translateY(-12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Grid lines */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 70%);
  animation: grid-drift 25s linear infinite;
}
@keyframes grid-drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 0 80px, 80px 0; }
}

/* Scan beam */
.hero-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(6,214,245,0.025) 48%,
    rgba(6,214,245,0.055) 50%,
    rgba(6,214,245,0.025) 52%,
    transparent 100%
  );
  animation: scan-sweep 8s linear infinite;
  pointer-events: none;
}
@keyframes scan-sweep {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Orbs — animated drift + pulse glow */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 680px; height: 680px;
  top: -250px; left: -220px;
  background: radial-gradient(circle, rgba(6,214,245,0.14) 0%, transparent 70%);
  animation: orb-float-1 18s ease-in-out infinite;
}
.hero-orb-2 {
  width: 540px; height: 540px;
  bottom: -180px; right: -180px;
  background: radial-gradient(circle, rgba(124,58,237,0.14) 0%, transparent 70%);
  animation: orb-float-2 22s ease-in-out infinite;
}
.hero-orb-3 {
  width: 380px; height: 380px;
  top: 40%; left: 38%;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(167,139,250,0.06) 0%, transparent 70%);
  animation: orb-float-3 14s ease-in-out infinite;
}
@keyframes orb-float-1 {
  0%,100% { transform: translate(0,0) scale(1); opacity:.9; }
  33%     { transform: translate(60px,40px) scale(1.08); opacity:1; }
  66%     { transform: translate(-30px,70px) scale(.95); opacity:.8; }
}
@keyframes orb-float-2 {
  0%,100% { transform: translate(0,0) scale(1); opacity:.85; }
  40%     { transform: translate(-70px,-50px) scale(1.1); opacity:1; }
  70%     { transform: translate(40px,-30px) scale(.92); opacity:.75; }
}
@keyframes orb-float-3 {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity:.6; }
  50%     { transform: translate(-50%,-50%) scale(1.3); opacity:.9; }
}

/* Floating data chips */
.hero-chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: rgba(13,13,22,0.75);
  border: 1px solid rgba(6,214,245,0.2);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
  pointer-events: none;
}
.hero-chip-btc {
  top: 18%;
  right: calc(42% + 20px);
  animation: chip-float-a 7s ease-in-out infinite;
}
.hero-chip-eth {
  bottom: 22%;
  right: calc(42% - 10px);
  animation: chip-float-b 9s ease-in-out infinite;
}
.hero-chip-vol {
  top: 30%;
  right: 3%;
  min-width: 130px;
  animation: chip-float-c 11s ease-in-out infinite;
}
@keyframes chip-float-a {
  0%,100% { transform: translateY(0) rotate(-.5deg); }
  50%     { transform: translateY(-14px) rotate(.5deg); }
}
@keyframes chip-float-b {
  0%,100% { transform: translateY(0) rotate(.5deg); }
  50%     { transform: translateY(-10px) rotate(-.5deg); }
}
@keyframes chip-float-c {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-18px); }
}

/* Spinning ring accent */
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(212,168,83,0.1), rgba(6,214,245,0.07));
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 2rem;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--gold-glow);
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.6rem, 6.5vw, 4.85rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0;
}

/* ── Stat counter ── */
.stat-counter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* ── Plan cards ── */
.plan-card {
  border-radius: 24px;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.plan-card.featured {
  background: linear-gradient(160deg, rgba(212,168,83,0.08) 0%, rgba(6,214,245,0.08) 50%, rgba(124,58,237,0.08) 100%);
  border-color: var(--gold-border);
  box-shadow: 0 0 40px rgba(212,168,83,0.12), 0 0 60px rgba(6,214,245,0.08), 0 40px 80px rgba(0,0,0,0.4);
}
.plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6,214,245,0.25);
  box-shadow: 0 20px 60px rgba(6,214,245,0.1);
}
.plan-rate {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ── Market table ── */
.market-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1fr 1.2fr;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.2s;
}
.market-row:hover { background: var(--surface); }
.price-flash-up { animation: flash-up 0.6s ease; }
.price-flash-dn { animation: flash-dn 0.6s ease; }
@keyframes flash-up { 0%, 100% { color: inherit; } 40% { color: var(--positive); } }
@keyframes flash-dn { 0%, 100% { color: inherit; } 40% { color: var(--negative); } }

/* ── Trader cards ── */
.trader-card {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.35s;
}
.trader-card:hover {
  border-color: rgba(6,214,245,0.25);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(6,214,245,0.08);
}
.trader-card .card-header {
  background: linear-gradient(135deg, rgba(6,214,245,0.07) 0%, rgba(124,58,237,0.07) 100%);
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
.trader-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #000;
  box-shadow: 0 0 16px var(--gold-glow);
}
.return-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  color: #10b981;
  font-size: 0.875rem;
  font-weight: 700;
}
.risk-low    { background: rgba(16,185,129,0.1); color: #10b981; border: 1px solid rgba(16,185,129,0.2); }
.risk-medium { background: rgba(245,158,11,0.1); color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }
.risk-high   { background: rgba(239,68,68,0.1);  color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }

/* ── Scroll animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-left.visible, .reveal-right.visible { transform: translateX(0); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ── Section labels ── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 10px;
  background: linear-gradient(135deg, rgba(212,168,83,0.1), rgba(6,214,245,0.08), rgba(124,58,237,0.06));
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

.section-h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
}
.section-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  line-height: 1.65;
  max-width: 52ch;
}

/* ── Homepage: platform phrases & video ── */
.home-phrases-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  margin-bottom: 3rem;
}
.home-phrases-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: home-phrases-scroll 45s linear infinite;
}
.home-phrases-track:hover { animation-play-state: paused; }
@keyframes home-phrases-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.home-phrase-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.home-phrase-pill i {
  color: var(--accent);
  font-size: 0.8rem;
}
.home-phrases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.home-phrase-card {
  position: relative;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.home-phrase-card:hover {
  border-color: rgba(6,214,245,0.25);
  transform: translateY(-3px);
}
.home-phrase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--phrase-color, var(--accent)), transparent);
  opacity: 0.6;
}
.home-phrase-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.home-phrase-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.35;
}
.home-phrase-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}
.home-video-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}
.home-video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(6,214,245,0.2);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(6,214,245,0.08);
  background: #000;
}
.home-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.home-video-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.home-learn-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-learn-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}
.home-learn-list li i {
  color: var(--positive);
  margin-top: 3px;
  flex-shrink: 0;
}
.home-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: home-step;
}
.home-step-card {
  position: relative;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.home-step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html.light .home-phrase-pill { background: rgba(15,23,42,0.04); color: var(--text); border-color: rgba(15,23,42,0.08); }
html.light .home-phrase-card { background: #fff; }
html.light .home-phrase-card h3 { color: var(--text); }
html.light .home-learn-list li { color: var(--text); }
@media (max-width: 1024px) {
  .home-phrases-grid { grid-template-columns: repeat(2, 1fr); }
  .home-video-grid { grid-template-columns: 1fr; }
  .home-steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .home-phrases-grid { grid-template-columns: 1fr; }
  .home-steps-grid { grid-template-columns: 1fr; }
}

/* ── Feature strip ── */
.feature-item {
  padding: 2rem;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: var(--surface); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212,168,83,0.12), rgba(6,214,245,0.12), rgba(124,58,237,0.12));
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

/* ── News cards ── */
.news-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.3s;
  display: block;
  text-decoration: none;
  color: inherit;
}
.news-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(6,214,245,0.07);
}

/* ── Testimonials ── */
.testimonials-section {
  padding: 7rem 0;
  background: var(--bg2);
  overflow: hidden;
}
.testimonial-card {
  padding: 2rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px; right: 20px;
  font-size: 8rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  color: rgba(6,214,245,0.06);
  line-height: 1;
  pointer-events: none;
}
.testimonial-quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: rgba(6,214,245,0.12);
  font-family: Georgia, serif;
  margin-bottom: 0.5rem;
}
.testimonial-body {
  font-size: 0.975rem;
  color: var(--text);
  opacity: 0.88;
  line-height: 1.75;
  margin-bottom: 1.75rem;
  font-style: italic;
  flex: 1;
}
.testimonial-author-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.testimonial-author-title {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}
html.light .testimonial-card {
  background: #fff !important;
  border-color: rgba(15,23,42,0.08) !important;
  box-shadow: 0 8px 32px rgba(15,23,42,0.06) !important;
}
html.light .testimonial-card::before {
  color: rgba(2,132,199,0.07);
}
html.light .testimonial-quote-mark {
  color: rgba(2,132,199,0.18);
}
html.light .testimonial-body {
  color: #334155 !important;
  opacity: 1;
}
html.light .testimonial-author-name {
  color: #0f172a !important;
}
html.light .testimonial-author-title {
  color: var(--muted) !important;
}
html.light .testimonials-section {
  background: var(--bg2) !important;
}

/* ── Footer ── */
.footer-main {
  background: var(--bg2);
  border-top: 1px solid var(--gold-border);
  padding: 5rem 0 2rem;
  position: relative;
}
.footer-main::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-gold-line);
  pointer-events: none;
}

/* ── Positive / Negative ── */
.positive { color: var(--positive); }
.negative { color: var(--negative); }

/* ── Status pills ── */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-pending  { background: rgba(245,158,11,0.15); color: #f59e0b; }
.status-approved, .status-completed, .status-active  { background: rgba(16,185,129,0.15); color: #10b981; }
.status-rejected, .status-cancelled, .status-stopped { background: rgba(239,68,68,0.15);  color: #ef4444; }

/* ── App sidebar ── */
.app-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--bg2) 0%, rgba(6,6,10,0.98) 100%);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 50;
}
.app-sidebar-logo {
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.app-sidebar-logo-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #fff;
}
.app-sidebar-logo-link span {
  background: linear-gradient(135deg, var(--gold-light, var(--accent)), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.app-sidebar-wallet {
  margin: 1rem 1rem 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(6,214,245,0.08), rgba(124,58,237,0.08));
  border: 1px solid var(--border);
}
.app-sidebar-wallet-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.app-sidebar-wallet-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  background: linear-gradient(90deg, #fff, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.app-nav-group-label {
  padding: 14px 22px 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-brand-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.04em;
}
.auth-brand-link span { color: var(--accent); }
.auth-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.gradient-stat-num,
.gradient-rate-num,
.brand-gradient-text {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.app-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.855rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.22s;
  margin: 1px 8px;
  position: relative;
}
.app-nav-link::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, var(--gold), var(--accent));
  opacity: 0;
  transition: opacity 0.2s;
}
.app-nav-link:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}
.app-nav-link.active {
  background: linear-gradient(135deg, rgba(212,168,83,0.08), rgba(6,214,245,0.1), rgba(124,58,237,0.08));
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-weight: 600;
}
.app-nav-link.active::before { opacity: 1; }
.app-nav-link .icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: background 0.2s;
}
.app-nav-link:hover .icon { background: rgba(255,255,255,0.07); }
.app-nav-link.active .icon {
  background: rgba(6,214,245,0.15);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(6,214,245,0.2);
}

/* ── App header ── */
.app-header {
  height: 64px;
  background: rgba(6,6,10,0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 20px rgba(0,0,0,0.25);
}

/* ── KPI Cards ── */
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.kpi-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.kpi-card:hover::before { opacity: 1; }
.kpi-icon-wrap {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  background: linear-gradient(135deg, rgba(6,214,245,0.12), rgba(124,58,237,0.12));
  border: 1px solid rgba(6,214,245,0.15);
  margin-bottom: 1rem;
}
.kpi-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}
.kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* Account tier indicator */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tier-badge-1 {
  background: rgba(148,163,184,0.12);
  border: 1px solid rgba(148,163,184,0.28);
  color: #94a3b8;
}
.tier-badge-2 {
  background: linear-gradient(135deg, rgba(212,168,83,0.15), rgba(6,214,245,0.1));
  border: 1px solid rgba(212,168,83,0.35);
  color: var(--gold-light);
}
.tier-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.tier-banner-1 {
  background: linear-gradient(135deg, rgba(148,163,184,0.08), rgba(255,255,255,0.02));
  border-color: rgba(148,163,184,0.22);
}
.tier-banner-2 {
  background: linear-gradient(135deg, rgba(212,168,83,0.1), rgba(6,214,245,0.06));
  border-color: rgba(212,168,83,0.28);
}
.tier-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
}
.tier-banner-1 .tier-banner-icon {
  background: rgba(148,163,184,0.12);
  color: #94a3b8;
  border: 1px solid rgba(148,163,184,0.25);
}
.tier-banner-2 .tier-banner-icon {
  background: rgba(212,168,83,0.14);
  color: var(--gold-light);
  border: 1px solid rgba(212,168,83,0.3);
}
.tier-banner-copy {
  flex: 1;
  min-width: 200px;
}
.tier-banner-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 2px;
}
.tier-banner-sub {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.tier-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
html.light .tier-badge-1 {
  background: rgba(100,116,139,0.1);
  border-color: rgba(100,116,139,0.25);
  color: #64748b;
}
html.light .tier-badge-2 {
  color: #b45309;
}
html.light .tier-banner {
  background: #fff;
}

/* ── Investor notice board (admin message) ── */
.investor-notice-board {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(245,158,11,0.35);
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(6,214,245,0.05));
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.investor-notice-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  color: #f59e0b;
  font-size: 1.05rem;
}
.investor-notice-body {
  flex: 1;
  min-width: 0;
}
.investor-notice-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 0.35rem;
}
.investor-notice-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}
html.light .investor-notice-board {
  background: linear-gradient(135deg, rgba(245,158,11,0.1), #fff);
  border-color: rgba(217,119,6,0.28);
  box-shadow: 0 6px 20px rgba(15,23,42,0.06);
}
html.light .investor-notice-label {
  color: #b45309;
}
html.light .investor-notice-icon {
  background: rgba(245,158,11,0.12);
  color: #b45309;
}
@media (max-width: 640px) {
  .investor-notice-board {
    padding: 1rem;
    gap: 0.85rem;
  }
}

/* ── Forms ── */
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  outline: none;
}
.form-input::placeholder { color: var(--muted); opacity: 0.6; }
.form-input:focus {
  border-color: var(--gold-border);
  background: var(--gold-muted);
  box-shadow: 0 0 0 3px rgba(212,168,83,0.12), 0 4px 16px rgba(0,0,0,0.12);
}

/* Select dropdowns — high contrast for readability */
.form-select,
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-color: #14141f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2306d6f5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  color: #f0f0f8;
  cursor: pointer;
}
.form-select option,
select.form-input option {
  background: #1a1a28;
  color: #f0f0f8;
  padding: 10px 12px;
  font-size: 0.95rem;
}
.form-select option:checked,
select.form-input option:checked {
  background: #0e7490;
  color: #fff;
}
.form-select option:hover,
select.form-input option:hover {
  background: rgba(6,214,245,0.2);
}
html.light .form-select,
html.light select.form-input {
  background-color: #fff;
  color: #0f172a;
}
html.light .form-select option,
html.light select.form-input option {
  background: #fff;
  color: #0f172a;
}

/* Searchable country picker */
.country-picker { position: relative; }
.country-picker-search-wrap { position: relative; }
.country-picker-search-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 0.85rem;
  pointer-events: none;
}
.country-picker-search {
  padding-left: 42px !important;
  font-size: 0.95rem !important;
  color: #f0f0f8 !important;
  background: #14141f !important;
}
.country-picker-selected {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(6,214,245,0.08);
  border: 1px solid rgba(6,214,245,0.25);
  font-size: 0.85rem;
  color: var(--accent);
  display: none;
  align-items: center;
  gap: 8px;
}
.country-picker-selected.visible { display: flex; }
.country-picker-list {
  margin-top: 8px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(6,214,245,0.2);
  border-radius: 14px;
  background: #12121f;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.country-picker-list::-webkit-scrollbar { width: 6px; }
.country-picker-list::-webkit-scrollbar-thumb {
  background: rgba(6,214,245,0.35);
  border-radius: 3px;
}
.country-picker-item {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: transparent;
  color: #f0f0f8;
  font-size: 0.92rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.country-picker-item:last-child { border-bottom: none; }
.country-picker-item:hover,
.country-picker-item:focus {
  background: rgba(6,214,245,0.12);
  color: #fff;
  outline: none;
}
.country-picker-item.is-selected {
  background: rgba(6,214,245,0.18);
  color: var(--accent);
  font-weight: 600;
}
.country-picker-empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}
html.light .country-picker-search { background: #fff !important; color: #0f172a !important; }
html.light .country-picker-list { background: #fff; border-color: rgba(15,23,42,0.12); }
html.light .country-picker-item { color: #0f172a; border-bottom-color: rgba(15,23,42,0.06); }
html.light .country-picker-item:hover { background: rgba(2,132,199,0.08); color: #0284c7; }
.form-group { position: relative; margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 5px;
  opacity: 0.8;
}

/* ── Tables ── */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.data-table thead tr {
  background: rgba(255,255,255,0.025);
}
.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table th:first-child { border-radius: 8px 0 0 8px; }
.data-table th:last-child  { border-radius: 0 8px 8px 0; }
.data-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.035);
  vertical-align: middle;
  transition: background 0.15s;
}
.data-table tbody tr:hover td { background: var(--surface); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ── Dividers ── */
.divider-glow {
  height: 1px;
  background: var(--gradient-gold-line);
  border: none;
  margin: 0;
}

/* ── Admin sidebar ── */
.admin-sidebar {
  width: 240px;
  background: linear-gradient(180deg, var(--bg2) 0%, rgba(6,6,10,0.98) 100%);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 50;
}
.admin-nav-section {
  padding: 1.25rem 0.875rem 0.5rem;
}
.admin-nav-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 8px;
  margin-bottom: 4px;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
  margin: 1px 0;
}
.admin-nav-link:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}
.admin-nav-link.active {
  background: linear-gradient(135deg, rgba(6,214,245,0.1), rgba(124,58,237,0.1));
  border: 1px solid rgba(6,214,245,0.18);
  color: var(--accent);
  font-weight: 600;
}

/* ── Admin shared UI ── */
.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.admin-panel-head {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-panel-head h2,
.admin-panel-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.admin-panel-meta {
  font-size: 0.75rem;
  color: var(--muted);
}
.admin-empty {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}
.admin-empty i {
  font-size: 2rem;
  opacity: 0.35;
  margin-bottom: 0.75rem;
  display: block;
}
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.admin-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
}
.admin-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  margin: 0 0 4px;
}
.admin-card-sub {
  font-size: 0.75rem;
  color: var(--muted);
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.admin-btn-approve {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.25);
  color: #10b981;
}
.admin-btn-approve:hover { background: rgba(16,185,129,0.18); }
.admin-btn-reject {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.25);
  color: #ef4444;
}
.admin-btn-reject:hover { background: rgba(239,68,68,0.18); }
.admin-btn-warn {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.25);
  color: #f59e0b;
}
.admin-btn-warn:hover { background: rgba(245,158,11,0.18); }
.admin-btn-ghost {
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
  color: var(--text);
}
html.light .admin-btn-ghost {
  background: rgba(15,23,42,0.04);
}
.status-open, .status-under_review, .status-more_info_needed { background: rgba(245,158,11,0.15); color: #f59e0b; }
.status-filled, .status-completed { background: rgba(16,185,129,0.15); color: #10b981; }
.status-partial, .status-paused, .status-in_progress { background: rgba(6,214,245,0.12); color: var(--accent); }
.status-expired, .status-banned, .status-suspended, .status-frozen { background: rgba(239,68,68,0.15); color: #ef4444; }
.status-high, .status-urgent { background: rgba(239,68,68,0.15); color: #ef4444; }
.status-medium { background: rgba(245,158,11,0.15); color: #f59e0b; }
.status-low { background: rgba(16,185,129,0.15); color: #10b981; }
html.light .admin-card { background: rgba(15,23,42,0.02); }
html.light .admin-panel-head h2,
html.light .admin-panel-head h3,
html.light .admin-card-title { color: var(--text) !important; }

/* ── Misc ── */
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: linear-gradient(135deg, rgba(212,168,83,0.1), rgba(6,214,245,0.08));
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-featured {
  display: inline-flex;
  padding: 3px 10px;
  background: var(--gold-muted);
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Premium section separator ── */
.section-line {
  display: block;
  width: 48px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--accent2));
  margin-bottom: 1.5rem;
}

/* ── Premium page header ── */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-header p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ── Inner card glow (premium detail) ── */
.inner-glow-cyan {
  box-shadow: inset 0 0 40px rgba(6,214,245,0.05), 0 0 0 1px rgba(6,214,245,0.1);
}
.inner-glow-purple {
  box-shadow: inset 0 0 40px rgba(124,58,237,0.06), 0 0 0 1px rgba(124,58,237,0.12);
}

/* ── Gradient separator line ── */
.gradient-hr {
  border: none;
  height: 1px;
  background: var(--gradient-gold-line);
  margin: 2rem 0;
}

/* ── Pill chips ── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.chip-accent { background: rgba(212,168,83,0.08); border-color: var(--gold-border); color: var(--gold-light); }
.chip-purple { background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.2); color: #a78bfa; }
.chip-gold   { background: var(--gold-muted); border-color: var(--gold-border); color: var(--gold-light); }
.chip-green  { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.2); color: var(--positive); }
.chip-red    { background: rgba(239,68,68,0.08);  border-color: rgba(239,68,68,0.2);  color: var(--negative); }

/* ── Empty states ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}
.empty-state i { font-size: 2.5rem; opacity: 0.3; margin-bottom: 1rem; display: block; }
.empty-state p { font-size: 0.9rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .app-sidebar, .admin-sidebar { display: none; }
  .app-header + div, .admin-main { margin-left: 0 !important; }
}
@media (max-width: 768px) {
  .hero-h1 { font-size: clamp(2.35rem, 9vw, 3.4rem); }
  .section-h2 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .nav-bar { padding: 0 1.25rem; }
  .btn-primary, .btn-ghost { padding: 12px 24px; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(212,168,83,0.35), rgba(6,214,245,0.25)); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(212,168,83,0.5), rgba(6,214,245,0.4)); }

/* ── Selection ── */
::selection { background: rgba(212,168,83,0.3); color: var(--text); }
html.light ::selection { background: rgba(2,132,199,0.22); color: #0f172a; }

/* ── Focus visible ── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ── Light mode brand / sidebar text ── */
html.light .app-sidebar-logo-link {
  background: linear-gradient(90deg, #0f172a, #334155) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: #0f172a !important;
}
html.light .app-sidebar-logo-link span {
  background: linear-gradient(135deg, var(--gold), var(--accent)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
html.light .app-sidebar-wallet {
  background: linear-gradient(135deg, rgba(2,132,199,0.06), rgba(109,40,217,0.05)) !important;
  border-color: rgba(15,23,42,0.08) !important;
}
html.light .app-sidebar-wallet-value {
  background: none !important;
  -webkit-text-fill-color: #0f172a !important;
  color: #0f172a !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}
html.light .app-nav-group-label { color: #94a3b8 !important; }
html.light .text-gradient-gold {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--accent) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
html.light .gradient-stat-num,
html.light .gradient-rate-num,
html.light .brand-gradient-text {
  background: none !important;
  -webkit-text-fill-color: #0f172a !important;
  color: #0f172a !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}
html.light .gradient-rate-num { color: var(--accent) !important; -webkit-text-fill-color: var(--accent) !important; }
html.light .brand-gradient-text span {
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
  background: none !important;
}
html.light body::after { opacity: 0.35; }

/* ── Global gold accent utilities ── */
.dash-chart-symbol,
.dash-chart-range {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.dash-chart-symbol:hover,
.dash-chart-range:hover {
  border-color: var(--gold-border);
  color: var(--gold-light);
}
.dash-chart-symbol.active {
  background: var(--gold-muted);
  border-color: var(--gold-border);
  color: var(--gold-light);
  box-shadow: 0 0 12px rgba(212,168,83,0.15);
}
.dash-chart-range.active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 16px var(--gold-glow);
}
.app-header {
  border-bottom-color: rgba(212,168,83,0.1) !important;
  box-shadow: 0 1px 20px rgba(0,0,0,0.25), 0 1px 0 rgba(212,168,83,0.06) !important;
}

/* Live Support Widget */
.glx-support {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}
.glx-support-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid rgba(6,214,245,0.35);
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(6,214,245,0.18), rgba(124,58,237,0.18));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35), 0 0 24px rgba(6,214,245,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.glx-support-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(0,0,0,0.4), 0 0 30px rgba(6,214,245,0.25);
}
.glx-support-launcher.is-open {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}
.glx-support-launcher-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,214,245,0.15);
  color: var(--accent);
}
.glx-support-launcher-text {
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}
.glx-support-launcher-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16,185,129,0.8);
}
.glx-support-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 40px));
  background: #0d0d16;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.glx-support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  background: linear-gradient(135deg, rgba(6,214,245,0.1), rgba(124,58,237,0.1));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.glx-support-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}
.glx-support-subtitle {
  font-size: 0.72rem;
  color: var(--accent);
  margin-top: 2px;
  font-weight: 600;
}
.glx-support-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #fff;
  cursor: pointer;
}
.glx-support-body {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.glx-support-intro {
  text-align: center;
  padding: 10px 6px 0;
}
.glx-support-intro-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,214,245,0.1);
  color: var(--accent);
  font-size: 1.2rem;
}
.glx-support-intro p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.glx-support-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}
.glx-support-meta span i {
  color: var(--accent);
  margin-right: 6px;
}
.glx-support-form,
.glx-support-compose {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.glx-support-compose {
  flex-direction: row;
  align-items: center;
}
.glx-support-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.glx-support-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 0.88rem;
}
.glx-support-textarea {
  resize: vertical;
  min-height: 84px;
}
.glx-support-submit {
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(6,214,245,0.2), rgba(124,58,237,0.2));
  border: 1px solid rgba(6,214,245,0.25);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.glx-support-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}
.glx-support-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
  max-height: 360px;
  padding-right: 4px;
}
.glx-support-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
}
.glx-support-msg-user {
  align-self: flex-end;
  background: rgba(6,214,245,0.12);
  border: 1px solid rgba(6,214,245,0.18);
}
.glx-support-msg-staff {
  align-self: flex-start;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.18);
}
.glx-support-msg-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}
.glx-support-send {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(6,214,245,0.25);
  background: rgba(6,214,245,0.12);
  color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.glx-support-footer {
  padding: 10px 16px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
html.light .glx-support-panel {
  background: #fff;
  border-color: rgba(15,23,42,0.08);
}
html.light .glx-support-title,
html.light .glx-support-close,
html.light .glx-support-input {
  color: #0f172a;
}
html.light .glx-support-input {
  background: #f8fafc;
  border-color: rgba(15,23,42,0.08);
}
html.light .glx-support-intro p,
html.light .glx-support-footer,
html.light .glx-support-meta {
  color: #64748b;
}
@media (max-width: 640px) {
  .glx-support-launcher-text { display: none; }
  .glx-support { right: 14px; bottom: 14px; }
}

/* =============================================
   LIGHT MODE — INLINE & COMPONENT OVERRIDES
   Fixes hardcoded white text / dark surfaces
   ============================================= */

/* Universal catch for inline white text */
html.light [style*="color:#fff"]:not(.btn-primary):not(.status-pill):not(.glx-support-launcher):not(.glx-support-submit):not(.glx-support-send):not(.theme-toggle-thumb):not(.home-video-badge):not(.dash-chart-range.active),
html.light [style*="color: #fff"]:not(.btn-primary):not(.status-pill):not(.glx-support-launcher):not(.glx-support-submit):not(.glx-support-send):not(.theme-toggle-thumb):not(.home-video-badge):not(.dash-chart-range.active),
html.light [style*="color:#ffffff"]:not(.btn-primary):not(.status-pill),
html.light [style*="color: #ffffff"]:not(.btn-primary):not(.status-pill),
html.light [style*="color:white"]:not(.btn-primary):not(.status-pill),
html.light [style*="color: white"]:not(.btn-primary):not(.status-pill) {
  color: var(--text) !important;
}

/* Panels & cards */
html.light .admin-panel,
html.light .kpi-card,
html.light .glass-card,
html.light .home-step-card,
html.light .feature-item,
html.light .admin-card {
  background: #fff !important;
  border-color: rgba(15,23,42,0.08) !important;
  box-shadow: 0 4px 24px rgba(15,23,42,0.05) !important;
}

html.light .plan-card.featured {
  background: linear-gradient(160deg, rgba(2,132,199,0.06) 0%, rgba(109,40,217,0.05) 100%) !important;
}

html.light .footer-main {
  background: var(--bg2) !important;
  border-top-color: rgba(15,23,42,0.08) !important;
}

html.light .data-table td {
  color: var(--text) !important;
}

html.light .data-table thead tr {
  background: rgba(15,23,42,0.03) !important;
}

/* Sidebar / header inline labels */
html.light .app-sidebar [style*="color:rgba(255,255,255,0.18)"],
html.light .app-sidebar [style*="color:rgba(255,255,255,0.4)"],
html.light .admin-sidebar [style*="color:rgba(255,255,255,0.25)"] {
  color: var(--muted) !important;
}

html.light header h1[style*="color"],
html.light main h1[style*="color:#fff"],
html.light main h2[style*="color:#fff"],
html.light main h3[style*="color:#fff"],
html.light section h3[style*="color:#fff"],
html.light .admin-panel h2[style*="color:#fff"],
html.light .admin-panel h3[style*="color:#fff"],
html.light .glass-card h2[style*="color:#fff"],
html.light .kpi-card [style*="color:#fff"],
html.light td[style*="color:#fff"],
html.light div[style*="color:#fff"]:not(.btn-primary):not(.status-pill),
html.light span[style*="color:#fff"]:not(.status-pill),
html.light a[style*="color:#fff"]:not(.btn-primary),
html.light strong[style*="color:#fff"],
html.light label[style*="color:#fff"],
html.light p[style*="color:#fff"] {
  color: var(--text) !important;
}

/* Muted copy stored as semi-transparent white */
html.light [style*="color:rgba(255,255,255,0.15)"],
html.light [style*="color:rgba(255,255,255,0.18)"],
html.light [style*="color:rgba(255,255,255,0.2)"],
html.light [style*="color:rgba(255,255,255,0.22)"],
html.light [style*="color:rgba(255,255,255,0.25)"],
html.light [style*="color:rgba(255,255,255,0.3)"],
html.light [style*="color:rgba(255,255,255,0.35)"],
html.light [style*="color:rgba(255,255,255,0.4)"],
html.light [style*="color:rgba(255,255,255,0.45)"],
html.light [style*="color:rgba(255,255,255,0.5)"],
html.light [style*="color:rgba(255,255,255,0.55)"],
html.light [style*="color:rgba(255,255,255,0.6)"],
html.light [style*="color:rgba(255,255,255,0.65)"],
html.light [style*="color:rgba(255,255,255,0.7)"],
html.light [style*="color:rgba(255,255,255,0.75)"],
html.light [style*="color:rgba(255,255,255,0.8)"],
html.light [style*="color:rgba(255,255,255,0.85)"],
html.light [style*="color:rgba(255,255,255,0.9)"] {
  color: var(--muted) !important;
}

/* Dark inline panel backgrounds → light surfaces */
html.light div[style*="background:#0d0d16"],
html.light div[style*="background: #0d0d16"] {
  background: #fff !important;
  border-color: rgba(15,23,42,0.08) !important;
}

html.light div[style*="background:linear-gradient(160deg,#0d0d1a"] {
  background: linear-gradient(160deg, #dce8f5 0%, #f1f5fb 100%) !important;
}

html.light div[style*="background:#12121f"],
html.light div[style*="background: #12121f"] {
  background: var(--bg2) !important;
}

html.light [style*="background:var(--surface)"],
html.light [style*="background: var(--surface)"] {
  background: #fff !important;
}

/* Keep white text on intentional accent controls */
html.light .btn-primary,
html.light .btn-primary *,
html.light .glx-support-launcher,
html.light .glx-support-launcher *,
html.light .glx-support-submit,
html.light .glx-support-send,
html.light .dash-chart-range.active,
html.light .theme-toggle-thumb,
html.light .home-video-badge,
html.light .status-pill,
html.light button[style*="linear-gradient"][style*="color:#fff"],
html.light a.btn-primary[style*="color"],
html.light [style*="border-radius:50%"][style*="color:#fff"],
html.light [style*="border-radius:50%"][style*="color: #fff"] {
  color: #fff !important;
}

/*
 * Inline white/clipped gradient text is invisible on light surfaces.
 * Convert to solid readable text (keep class-based accent gradients).
 */
html.light [style*="-webkit-text-fill-color:transparent"]:not(.text-gradient):not(.text-gradient-gold),
html.light [style*="-webkit-text-fill-color: transparent"]:not(.text-gradient):not(.text-gradient-gold) {
  background: none !important;
  background-image: none !important;
  -webkit-text-fill-color: var(--text) !important;
  color: var(--text) !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}
html.light .brand-gradient-text span {
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
  background: none !important;
}

html.light .home-step-card h3,
html.light .feature-item h3,
html.light .feature-item p,
html.light .plan-card h3,
html.light .plan-card .plan-rate,
html.light .trader-card h3,
html.light .trader-card .card-body,
html.light .news-card h3,
html.light .testimonial-card strong,
html.light .footer-main h4,
html.light .footer-main a,
html.light .footer-main p,
html.light .market-row,
html.light .page-header h1 {
  color: var(--text);
}

html.light .chip-accent { color: var(--gold); }
html.light .chip-purple { color: var(--accent2); }
html.light .chip-gold   { color: var(--gold); }
html.light .badge-verified,
html.light .badge-featured { color: var(--gold); }

html.light .app-nav-link.active {
  color: var(--accent) !important;
}

html.light .app-header h1 {
  color: var(--text) !important;
}

html.light .admin-panel-head h2,
html.light .admin-panel-head h3,
html.light .admin-card-title,
html.light .kpi-value {
  color: var(--text) !important;
}

html.light .glx-support-header {
  background: linear-gradient(135deg, rgba(2,132,199,0.08), rgba(109,40,217,0.06)) !important;
}

html.light .glx-support-msg-user {
  background: rgba(2,132,199,0.08) !important;
  border-color: rgba(2,132,199,0.15) !important;
}

html.light .glx-support-msg-staff {
  background: rgba(109,40,217,0.08) !important;
  border-color: rgba(109,40,217,0.12) !important;
}

html.light .glx-support-msg-body,
html.light .glx-support-msg-meta {
  color: var(--text) !important;
}

html.light body[style*="background:#06060a"],
html.light body[style*="background:var(--bg)"] {
  background: var(--bg) !important;
  color: var(--text) !important;
}

html.light .home-video-frame {
  box-shadow: 0 20px 50px rgba(15,23,42,0.12) !important;
  border-color: rgba(2,132,199,0.2) !important;
}

html.light .ticker-wrap + div,
html.light div[style*="margin-top:72px"][style*="rgba(6,214,245,0.05)"] {
  background: rgba(2,132,199,0.06) !important;
  border-bottom-color: rgba(2,132,199,0.12) !important;
}

/* Premium Debit Card */
.debit-card-page { display: flex; flex-direction: column; gap: 1.5rem; }
.debit-card-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(212,168,83,0.08), rgba(6,214,245,0.04), rgba(124,58,237,0.05));
}
.debit-card-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.debit-card-lead {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 0 1.25rem;
}
.debit-card-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.debit-card-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}
.debit-card-perk i { color: var(--gold); }
.debit-card-visual-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.debit-card-visual {
  width: min(100%, 380px);
  aspect-ratio: 1.586 / 1;
  border-radius: 22px;
  padding: 1.4rem 1.5rem;
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
  background: linear-gradient(145deg, #1a1a22 0%, #0c0c12 55%, #1c1a14 100%);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.debit-card-visual[data-color="gold"] {
  background: linear-gradient(145deg, #d4a853 0%, #8a6a1e 45%, #3a2a0a 100%);
  box-shadow: 0 24px 60px rgba(212,168,83,0.25), 0 0 0 1px rgba(255,255,255,0.12);
}
.debit-card-visual[data-color="midnight"] {
  background: linear-gradient(145deg, #1e3a8a 0%, #0f172a 55%, #062a44 100%);
}
.debit-card-visual[data-color="platinum"] {
  background: linear-gradient(145deg, #cbd5e1 0%, #64748b 45%, #334155 100%);
  color: #0f172a;
}
.debit-card-visual::before {
  content: '';
  position: absolute;
  inset: -40% auto auto -20%;
  width: 70%;
  height: 90%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 65%);
  pointer-events: none;
}
.debit-card-chip {
  width: 42px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0c674, #b8860b, #f5e6a8);
  margin-bottom: 1.4rem;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}
.debit-card-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.debit-card-brand span { opacity: 0.75; }
.debit-card-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.debit-card-footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.debit-card-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.65;
  margin-bottom: 2px;
}
.debit-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.debit-card-network {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: 0.85;
}
.debit-card-visual-note {
  font-size: 0.75rem;
  color: var(--muted);
}
.debit-card-status-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(6,214,245,0.2);
  background: rgba(6,214,245,0.06);
}
.debit-card-status-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.debit-card-status-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.debit-card-status-address {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.55;
  white-space: pre-line;
}
.debit-card-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.debit-card-form-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.1rem;
}
.debit-card-fields { display: flex; flex-direction: column; gap: 0.9rem; }
.debit-card-color-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.debit-card-color-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text);
}
.debit-card-color-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(6,214,245,0.08);
}
.debit-card-color-option input { accent-color: var(--accent); }
.debit-card-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.debit-card-swatch-obsidian { background: #12121a; }
.debit-card-swatch-gold { background: linear-gradient(135deg, #d4a853, #8a6a1e); }
.debit-card-swatch-midnight { background: #1e3a8a; }
.debit-card-swatch-platinum { background: linear-gradient(135deg, #cbd5e1, #64748b); }
.debit-card-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.debit-card-submit-note {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.55;
}
html.light .debit-card-hero,
html.light .debit-card-status-panel,
html.light .debit-card-submit-row,
html.light .debit-card-perk,
html.light .debit-card-color-option {
  background: #fff;
}
html.light .debit-card-hero {
  background: linear-gradient(145deg, rgba(184,134,11,0.08), rgba(2,132,199,0.04), #fff);
}
@media (max-width: 960px) {
  .debit-card-hero,
  .debit-card-form-grid { grid-template-columns: 1fr; }
  .debit-card-perks { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────
   SITE-WIDE MOBILE SYSTEM
   Shared navigation, portals, tables, forms and inline grids
   ────────────────────────────────────────────────────────────── */
.marketing-menu-toggle,
.portal-menu-toggle,
.portal-sidebar-close,
.portal-sidebar-backdrop {
  display: none;
}

.marketing-mobile-menu {
  display: none;
}

.portal-main {
  min-width: 0;
}

.portal-content,
.portal-content > * {
  min-width: 0;
  max-width: 100%;
}

.auth-page {
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
  color: var(--text);
}
.auth-container {
  min-width: 0;
}
.auth-card {
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
}

@media (max-width: 1024px) {
  /* Replace hidden desktop sidebars with accessible off-canvas drawers. */
  .app-sidebar,
  .admin-sidebar {
    display: flex;
    width: min(86vw, 290px);
    transform: translateX(-105%);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    z-index: 1002;
    box-shadow: none;
  }
  .admin-sidebar {
    flex-direction: column;
  }
  .app-sidebar.is-open,
  .admin-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 18px 0 60px rgba(0,0,0,0.45);
  }
  .portal-main {
    margin-left: 0 !important;
    width: 100%;
  }
  .portal-menu-toggle,
  .portal-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
  }
  .portal-sidebar-close {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .portal-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1001;
    border: 0;
    background: rgba(2,6,23,0.68);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    cursor: pointer;
  }
  .portal-nav-open .portal-sidebar-backdrop {
    display: block;
  }
  body.portal-nav-open {
    overflow: hidden;
  }

  /* Any tabular report remains reachable instead of clipping columns. */
  .portal-content table,
  .portal-content .data-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .portal-content table > thead,
  .portal-content table > tbody,
  .portal-content table > tfoot {
    display: table;
    width: max-content;
    min-width: 100%;
    table-layout: auto;
  }
  .portal-content .data-table th,
  .portal-content .data-table td {
    white-space: nowrap;
  }

  /* Common desktop two-column panels stack on tablet/mobile. */
  .portal-content [style*="grid-template-columns:380px 1fr"],
  .portal-content [style*="grid-template-columns:1.1fr 0.9fr"],
  .portal-content [style*="grid-template-columns:0.9fr 1.1fr"],
  .portal-content [style*="grid-template-columns:1fr 2fr"],
  .portal-content [style*="grid-template-columns:2fr 1fr"],
  .portal-content [style*="grid-template-columns:320px 1fr"],
  .portal-content [style*="grid-template-columns:300px 1fr"],
  .portal-content [style*="grid-template-columns:340px 1fr"],
  .portal-content [style*="grid-template-columns:1fr 280px"],
  .portal-content [style*="grid-template-columns:1.2fr 0.8fr"],
  .portal-content [style*="grid-template-columns:1.2fr 1fr"],
  .portal-content [style*="grid-template-columns:1fr 1.2fr"] {
    grid-template-columns: 1fr !important;
  }
  .portal-content [style*="position:sticky"] {
    position: static !important;
    top: auto !important;
  }
}

@media (max-width: 767px) {
  .auth-page {
    padding: 1.25rem;
    align-items: flex-start;
  }
  .auth-login-page {
    align-items: stretch;
    padding: 0;
  }
  .auth-form-panel {
    max-width: none !important;
    min-height: 100vh;
    padding: 2rem 1.25rem !important;
    border-left: 0 !important;
  }
  .auth-card {
    padding: 1.5rem !important;
    border-radius: 18px !important;
  }
  .auth-name-grid {
    grid-template-columns: 1fr !important;
  }
  .auth-benefits {
    flex-direction: column;
    gap: 0.65rem !important;
  }
  .auth-heading {
    font-size: 1.6rem;
  }
  #managePanel > div {
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
  }
  #managePanel [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Marketing navigation */
  .nav-bar {
    height: 62px;
    padding: 0 1rem;
    gap: 0.75rem;
  }
  .live-ticker-bar {
    top: 62px;
  }
  .nav-logo {
    font-size: clamp(1rem, 5vw, 1.2rem);
    white-space: nowrap;
  }
  .marketing-nav-actions {
    gap: 8px !important;
  }
  .marketing-nav-actions > .nav-link,
  .marketing-nav-actions > .btn-primary {
    display: none !important;
  }
  .marketing-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
  }
  .marketing-mobile-menu {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 0.75rem 1rem 1rem;
    background: rgba(6,6,10,0.96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 22px 50px rgba(0,0,0,0.35);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateY(-115%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  html.light .marketing-mobile-menu {
    background: rgba(255,255,255,0.97);
  }
  .marketing-mobile-menu.is-open {
    display: block;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .marketing-mobile-menu-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
  }
  .marketing-mobile-menu .nav-link,
  .marketing-mobile-menu .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    text-align: center;
  }
  body.mobile-menu-open {
    overflow: hidden;
  }
  .site-body section > div[style*="max-width:1280px"],
  .site-body footer > div[style*="max-width:1280px"] {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .site-body section[style*="padding:7rem 0"],
  .site-body section[style*="padding:6rem 0"] {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }
  .home-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .home-stats-grid .stats-cell {
    border-right: 0 !important;
    border-bottom: 1px solid var(--border);
  }
  .home-stats-grid .gradient-stat-num {
    font-size: clamp(1.65rem, 8vw, 2.2rem) !important;
  }
  .market-table-head {
    grid-template-columns: 2fr 1.4fr 0.9fr 1fr !important;
  }
  .market-table-head > :nth-child(n+4) {
    display: none;
  }
  .market-row {
    padding: 12px 14px !important;
    grid-template-columns: minmax(0, 1.6fr) 1fr auto !important;
    gap: 8px;
  }
  .market-row > :nth-child(n+4) {
    display: none !important;
  }
  .footer-grid {
    gap: 2rem !important;
    margin-bottom: 2.5rem !important;
  }

  /* Portal shell/header */
  .app-header {
    min-height: 60px;
    height: auto !important;
    padding: 10px 14px !important;
    gap: 10px;
  }
  .app-header h1 {
    max-width: 34vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .portal-header-actions {
    gap: 6px !important;
  }
  .portal-tier-badge,
  .portal-kyc-badge {
    display: none !important;
  }
  .portal-user-pill {
    padding-right: 5px !important;
  }
  .portal-user-pill > div:last-child {
    display: none;
  }
  .portal-content {
    padding: 16px !important;
  }
  .portal-flashes {
    padding: 0 16px !important;
  }
  .portal-notice-wrap {
    padding: 12px 16px 0 !important;
  }
  #dashTvChart {
    height: 330px !important;
  }
  #marketsTvChart {
    min-height: 400px !important;
  }
  .investor-notice-board {
    border-radius: 14px;
  }
  .investor-notice-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  /* Inline desktop grids used throughout investor and admin views. */
  .portal-content [style*="display:grid"] {
    min-width: 0;
  }
  .portal-content [style*="grid-template-columns:repeat(4"],
  .portal-content [style*="grid-template-columns:repeat(3"],
  .portal-content [style*="grid-template-columns:repeat(auto-fit"],
  .portal-content [style*="grid-template-columns:repeat(auto-fill"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .portal-content [style*="grid-template-columns:1fr 1fr"],
  .portal-content [style*="grid-template-columns:1.4fr 1fr 1fr"],
  .portal-content [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .kpi-card,
  .admin-panel {
    padding: 1rem !important;
    border-radius: 16px;
  }
  .form-input {
    min-height: 44px;
    font-size: 16px; /* prevents iOS zoom */
  }
  textarea.form-input {
    min-height: 96px;
  }
  .btn-primary,
  .btn-secondary,
  .btn-ghost,
  .btn-danger {
    min-height: 44px;
  }
  .page-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }
  .page-header h1 {
    font-size: 1.3rem;
  }
  .empty-state {
    padding: 2.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .marketing-mobile-menu-links {
    grid-template-columns: 1fr;
  }
  .home-stats-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .home-stats-grid .stats-cell {
    padding: 1.25rem !important;
  }
  .market-table-head {
    display: none !important;
  }
  .market-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  .market-row > :nth-child(3) {
    display: none !important;
  }
  .portal-content [style*="grid-template-columns:repeat(4"],
  .portal-content [style*="grid-template-columns:repeat(3"],
  .portal-content [style*="grid-template-columns:repeat(2"],
  .portal-content [style*="grid-template-columns:repeat(auto-fit"],
  .portal-content [style*="grid-template-columns:repeat(auto-fill"] {
    grid-template-columns: 1fr !important;
  }
  .app-header h1 {
    max-width: 29vw;
    font-size: 0.9rem !important;
  }
  .app-header [style*="text-transform:uppercase"][style*="color:#ef4444"] {
    display: none !important;
  }
  .portal-content {
    padding: 12px !important;
  }
  .portal-flashes {
    padding: 0 12px !important;
  }
  .portal-notice-wrap {
    padding: 10px 12px 0 !important;
  }
  .investor-notice-board {
    padding: 0.9rem;
  }
}
