/* ═══════════════════════════════════════════════
   HYPRSWARM — Glass Fintech Design System
   Dark space-black + cyan/red accent.
   Custom CSS only for things Tailwind can't do.
   ═══════════════════════════════════════════════ */

/* ─── CSS Variables ──────────────────────────── */

:root {
  --bg-dark:      #0a0a0f;
  --cyan-glow:    #f5c542;
  --bear-red:     #ff3366;
  --muted-gray:   #1e1e26;
  --text-main:    #e0e0e0;
  --text-muted:   rgba(255, 255, 255, 0.40);
  --text-dim:     rgba(255, 255, 255, 0.50);
  --border:       rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.12);
  --amber:        #f59e0b;
  --live-green:   #22c55e;
}

/* ─── Light Theme ────────────────────────────── */

[data-theme="light"] {
  --bg-dark:      #f5f5f7;
  --cyan-glow:    #1a1a2e;  /* near-black instead of gold — readable on white */
  --bear-red:     #cc2244;
  --muted-gray:   #e8e8ec;
  --text-main:    #1a1a2e;
  --text-muted:   rgba(0, 0, 0, 0.50);
  --text-dim:     rgba(0, 0, 0, 0.40);
  --border:       rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --amber:        #d97706;
  --live-green:   #16a34a;
}

[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.70);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero-inner {
  background: #eeeef2;
}

[data-theme="light"] .hero-inner::before {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}

[data-theme="light"] .site-nav {
  background: rgba(245, 245, 247, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .dashboard-subbar {
  background: rgba(245, 245, 247, 0.80);
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .pos-table-wrap,
[data-theme="light"] .sig-table-wrap {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pos-table thead tr,
[data-theme="light"] .sig-table thead tr {
  background: rgba(0, 0, 0, 0.02);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pos-table tbody tr:hover,
[data-theme="light"] .sig-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .pos-table th,
[data-theme="light"] .sig-table th {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .pos-table tbody tr {
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

/* ── Light Theme: Dashboard Tables & Components ── */

/* Positioning table */
[data-theme="light"] .pos-coin-avatar {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.10);
  color: rgba(0, 0, 0, 0.55);
}
[data-theme="light"] .pos-row:hover .pos-coin-avatar {
  border-color: rgba(0, 0, 0, 0.20);
}
[data-theme="light"] .pos-coin-name {
  color: var(--text-main);
}
[data-theme="light"] .pos-dir-long {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
  border-color: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .pos-dir-short {
  background: rgba(204, 34, 68, 0.06);
  border-color: rgba(204, 34, 68, 0.20);
}
[data-theme="light"] .pos-cell-price {
  color: rgba(0, 0, 0, 0.65);
}
[data-theme="light"] .pos-strength-lean {
  color: rgba(0, 0, 0, 0.40);
}
[data-theme="light"] .pos-consensus-ratio {
  color: rgba(0, 0, 0, 0.40);
}
[data-theme="light"] .pos-consensus-bar {
  background: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .pos-fill-lean {
  background: rgba(0, 0, 0, 0.25);
}
[data-theme="light"] .pos-cell-entry {
  color: rgba(0, 0, 0, 0.40);
}
[data-theme="light"] .pos-cell-duration {
  color: rgba(0, 0, 0, 0.45);
}
[data-theme="light"] .pos-footer-title {
  color: rgba(0, 0, 0, 0.65);
}
[data-theme="light"] .pos-footer-desc {
  color: rgba(0, 0, 0, 0.45);
}

/* Proof Wall cards */
[data-theme="light"] .proof-card-type {
  color: rgba(0, 0, 0, 0.50);
}
[data-theme="light"] .proof-card-count {
  color: rgba(0, 0, 0, 0.40);
  background: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .proof-card-label {
  color: rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .proof-card-detail {
  color: rgba(0, 0, 0, 0.45);
}
[data-theme="light"] .proof-card-detail strong {
  color: rgba(0, 0, 0, 0.70);
}
[data-theme="light"] .proof-card-dot {
  color: rgba(0, 0, 0, 0.20);
}
[data-theme="light"] .rate-null {
  color: rgba(0, 0, 0, 0.25);
}

/* Mini chart trends */
[data-theme="light"] .mini-chart.trend-stable .bar {
  background: rgba(0, 0, 0, 0.20);
}
[data-theme="light"] .trend-stable {
  color: rgba(0, 0, 0, 0.40);
}

/* Formations */
[data-theme="light"] .formation-coin {
  color: rgba(0, 0, 0, 0.80);
}
[data-theme="light"] .formation-dots {
  color: rgba(0, 0, 0, 0.50);
}
[data-theme="light"] .formation-age {
  color: rgba(0, 0, 0, 0.40);
}

/* Coin cards */
[data-theme="light"] .coin-card-new:hover {
  border-color: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .coin-card-new.short-card:hover {
  border-color: rgba(204, 34, 68, 0.30);
}
[data-theme="light"] .coin-card-new.featured-long {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
}
[data-theme="light"] .coin-card-symbol {
  color: rgba(0, 0, 0, 0.50);
}

/* Signals table */
[data-theme="light"] .sig-coin-name {
  color: var(--text-main);
}
[data-theme="light"] .sig-cell-type {
  color: rgba(0, 0, 0, 0.40);
}
[data-theme="light"] .sig-cell-wallets {
  color: rgba(0, 0, 0, 0.55);
}
[data-theme="light"] .sig-cell-entry {
  color: rgba(0, 0, 0, 0.55);
}
[data-theme="light"] .sig-cell-exit {
  color: rgba(0, 0, 0, 0.55);
}
[data-theme="light"] .sig-cell-duration {
  color: rgba(0, 0, 0, 0.45);
}
[data-theme="light"] .sig-cell-time {
  color: rgba(0, 0, 0, 0.40);
}
[data-theme="light"] .sig-badge.hit {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .sig-badge.active {
  color: var(--amber);
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.20);
}
[data-theme="light"] .sig-exit-active {
  color: var(--amber);
  background: rgba(217, 119, 6, 0.06);
  border-color: rgba(217, 119, 6, 0.15);
}

/* SDS bar */
[data-theme="light"] .sds-bar-hero-track {
  background: rgba(0, 0, 0, 0.04);
}

/* Section labels and headers */
[data-theme="light"] .pos-section-label {
  color: rgba(0, 0, 0, 0.50);
}
[data-theme="light"] .pos-label-row .pos-pulse {
  background: var(--text-main);
  box-shadow: none;
}

/* Context bar elements */
[data-theme="light"] .context-consensus-of {
  color: rgba(0, 0, 0, 0.40);
}
[data-theme="light"] .context-consensus-dir {
  color: rgba(0, 0, 0, 0.50);
}

/* Formations column labels */
[data-theme="light"] .formations-col-label {
  color: rgba(0, 0, 0, 0.40);
}

/* ── Light Theme: Remaining white text fixes ── */

/* Hero topbar */
[data-theme="light"] .hero-topbar-sub {
  color: rgba(0, 0, 0, 0.45);
}
[data-theme="light"] .hero-topbar-sep {
  background: rgba(0, 0, 0, 0.10);
}
[data-theme="light"] .hero-topbar-price-label {
  color: rgba(0, 0, 0, 0.40);
}
[data-theme="light"] .hero-topbar-price-value {
  color: var(--text-main);
}

/* Regime */
[data-theme="light"] .regime-hero-name.regime-on {
  text-shadow: none;
}
[data-theme="light"] .regime-hero-name.regime-off {
  text-shadow: none;
}
[data-theme="light"] .regime-hero-name.regime-choppy {
  text-shadow: none;
}
[data-theme="light"] .regime-hero-sub {
  color: rgba(0, 0, 0, 0.50);
}
[data-theme="light"] .regime-arrow {
  color: rgba(0, 0, 0, 0.20);
}
[data-theme="light"] .regime-pill.regime-on {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.10);
  color: var(--text-main);
}
[data-theme="light"] .regime-pill.regime-choppy {
  background: rgba(217, 119, 6, 0.06);
  border-color: rgba(217, 119, 6, 0.15);
}

/* SDS bar */
[data-theme="light"] .sds-gradient-fill {
  background: linear-gradient(to right, var(--bear-red) 0%, rgba(0,0,0,0.12) 50%, var(--cyan-glow) 100%);
}
[data-theme="light"] .sds-bar-marker {
  background: var(--text-main);
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

/* Positioning section */
[data-theme="light"] .pos-legend-sep {
  background: rgba(0, 0, 0, 0.10);
}
[data-theme="light"] .pos-legend-item svg {
  stroke: rgba(0, 0, 0, 0.40);
}
[data-theme="light"] .pos-legend-item:nth-child(1) svg {
  stroke: var(--amber);
}

/* Proof cards */
[data-theme="light"] .proof-card-hero {
  color: var(--text-main);
}

/* Links */
[data-theme="light"] a:hover {
  color: var(--text-main);
}

/* Live indicator */
[data-theme="light"] .live-label {
  color: var(--live-green);
}
[data-theme="light"] .updated-time {
  color: rgba(0, 0, 0, 0.40);
}

/* Nav link active */
[data-theme="light"] .nav-link.active {
  color: var(--text-main);
}

/* Misc remaining elements */
[data-theme="light"] .proof-stat-value {
  color: var(--text-main);
}
[data-theme="light"] .proof-stat-label {
  color: rgba(0, 0, 0, 0.40);
}
[data-theme="light"] .stat-label {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .context-bar {
  background: rgba(255, 255, 255, 0.50);
  border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .proof-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .proof-card:hover {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .formation-row {
  background: rgba(255, 255, 255, 0.70);
  border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .coin-card-new {
  background: rgba(255, 255, 255, 0.70);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .chart-tabs {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .chart-tab {
  color: rgba(0, 0, 0, 0.40);
}

[data-theme="light"] .chart-tab:hover {
  color: rgba(0, 0, 0, 0.65);
}

[data-theme="light"] .chart-tab.active {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-main);
}

[data-theme="light"] .pos-coin-name,
[data-theme="light"] .sig-coin-name,
[data-theme="light"] .pos-title,
[data-theme="light"] .pos-title span {
  color: var(--text-main);
}

[data-theme="light"] .pos-title span {
  color: var(--text-main);
}

[data-theme="light"] .logo-text {
  color: var(--text-main);
}

[data-theme="light"] .logo-text b {
  color: var(--text-main);
}

[data-theme="light"] .btn-primary {
  background: #1a1a2e;
  border-color: #1a1a2e;
  color: #fff;
}

[data-theme="light"] .btn-primary:hover {
  background: #2d2d44;
  border-color: #2d2d44;
}

[data-theme="light"] .mobile-menu {
  background: rgba(245, 245, 247, 0.98);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mobile-menu-link {
  color: var(--text-main);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pos-legend-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .pos-footer-icon {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .context-consensus-count {
  color: var(--text-main);
}

[data-theme="light"] .regime-hero-name {
  color: var(--text-main);
}

[data-theme="light"] .site-footer {
  color: var(--text-muted);
}

[data-theme="light"] .glow-text-cyan {
  text-shadow: none;
  color: var(--text-main);
}

[data-theme="light"] .pos-pulse {
  background: var(--text-main);
  box-shadow: none;
}

/* Landing page light overrides */
[data-theme="light"] .landing-hero-badge {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .landing-stat-value {
  color: var(--text-main);
}

[data-theme="light"] .landing-section-title {
  color: var(--text-muted);
}

[data-theme="light"] .landing-step-number {
  color: var(--text-muted);
}

[data-theme="light"] .landing-article-tag {
  color: var(--text-muted);
}

[data-theme="light"] .landing-cta {
  background: #1a1a2e;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .landing-cta:hover {
  background: #2d2d44;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.20);
  color: #fff;
}

[data-theme="light"] .landing-article-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

/* Show/hide theme icons based on current theme */
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: block; }
.theme-icon-light { display: none; }
.theme-icon-dark { display: block; }

/* ─── Base Reset ─────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--cyan-glow);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: #fff; }

/* ─── Glass Card ─────────────────────────────── */

.glass-card {
  background: rgba(12, 12, 18, 0.70);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease;
}

.glass-card[data-updated] {
  border-color: rgba(245, 197, 66, 0.4);
}

/* ─── Hero Top Bar ───────────────────────────── */

.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px 20px;
  flex-shrink: 0;
  gap: 16px;
}

.hero-topbar-left {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.hero-topbar-left .regime-hero-name {
  font-size: 18px;
  letter-spacing: 2px;
}

.hero-topbar-sub {
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.40);
  margin-left: 10px;
  white-space: nowrap;
}

.hero-topbar-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.10);
  margin: 0 14px;
  flex-shrink: 0;
}

.hero-topbar-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.hero-topbar-price-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.30);
  text-transform: uppercase;
}

.hero-topbar-price-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.90);
}

@media (max-width: 640px) {
  .hero-topbar { flex-direction: column; align-items: flex-start; padding: 10px 14px 8px; gap: 8px; }
  .hero-topbar-left .regime-hero-name { font-size: 15px; }
  .hero-topbar-sep { display: none; }
  .hero-topbar-sub { margin-left: 8px; }
}

/* ─── Hero Inner Background ──────────────────── */

.hero-inner {
  background: #0b0b12;
  position: relative;
}

#hero-chart {
  cursor: crosshair;
}

/* Subtle grid lines as background pattern */
.hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  border-radius: inherit;
}

/* ─── Logo ───────────────────────────────────── */

.logo-container {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.logo-icon {
  width: 12px;
  height: 12px;
  background: var(--cyan-glow);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--cyan-glow);
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Geist', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-main);
}

.logo-text b {
  font-weight: 800;
  color: var(--cyan-glow);
}

/* ─── Header Meta ────────────────────────────── */

.header-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .header-meta { display: none; }
}

/* ─── Typography Patterns ────────────────────── */

.stat-label {
  font-family: 'Geist', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.40);
}

/* ─── Button ─────────────────────────────────── */

.btn-primary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  font-family: 'Geist', sans-serif;
  letter-spacing: 2px;
  padding: 8px 20px;
  border-radius: 4px;
}

.btn-primary:hover {
  background: var(--cyan-glow);
  color: #000;
  border-color: var(--cyan-glow);
  box-shadow: 0 0 20px rgba(245, 197, 66, 0.3);
}

/* ─── Live Indicator ─────────────────────────── */

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.pulse-dot.live {
  background: var(--live-green);
  box-shadow: 0 0 6px var(--live-green);
  animation: live-pulse 2.5s ease-in-out infinite;
}

.pulse-dot.stale-warn { background: var(--amber); }
.pulse-dot.stale-dead { background: var(--bear-red); }

.live-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--live-green);
}
.live-label.stale-warn { color: var(--amber); }
.live-label.stale-dead { color: var(--bear-red); }

.updated-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
}

/* ─── Context Bar (below hero) ───────────────── */

.context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(12, 12, 18, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

.context-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
}

.context-regime-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}

.context-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.context-consensus {
  display: flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
}

.context-consensus-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.context-consensus-of {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.40);
  margin-left: 3px;
}

.context-consensus-dir {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  margin-left: 6px;
  letter-spacing: 1px;
}

.context-sds {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .context-bar { flex-direction: column; align-items: flex-start; }
  .context-right { width: 100%; justify-content: space-between; }
}

/* ─── Hero LIVE badge ────────────────────────── */

.live-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan-glow);
  background: rgba(245, 197, 66, 0.08);
  border: 1px solid rgba(245, 197, 66, 0.20);
  padding: 2px 8px;
  border-radius: 4px;
  animation: live-pulse 2.5s ease-in-out infinite;
}

/* ─── Hero Consensus Direction ───────────────── */

.hero-consensus-dir {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan-glow);
}

/* ─── Animations ─────────────────────────────── */

@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--live-green); }
  50%       { opacity: 0.4; box-shadow: none; }
}

@keyframes swarm-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(0.8); opacity: 0.5; }
}

.swarm-pulse {
  animation: swarm-pulse 3s ease-in-out infinite;
}

@keyframes pending-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

@keyframes value-flash {
  0%   { color: var(--cyan-glow); }
  100% { color: var(--text-main); }
}

.value-updated {
  animation: value-flash 0.6s ease-out forwards;
}

/* ─── Glow Text ──────────────────────────────── */

.glow-text-cyan { text-shadow: 0 0 20px rgba(245, 197, 66, 0.5); }
.glow-text-red  { text-shadow: 0 0 20px rgba(255, 51, 102, 0.5); }

/* ─── Hero Regime Name ───────────────────────── */

.regime-hero-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1;
  color: var(--cyan-glow);
}

.regime-hero-name.regime-off    { color: var(--bear-red); text-shadow: 0 0 20px rgba(255, 51, 102, 0.5); }
.regime-hero-name.regime-on     { color: var(--cyan-glow); text-shadow: 0 0 20px rgba(245, 197, 66, 0.5); }
.regime-hero-name.regime-choppy { color: var(--amber); text-shadow: 0 0 20px rgba(245, 158, 11, 0.4); }

.regime-hero-sub {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.50);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* ─── Regime Pills ───────────────────────────── */

.regime-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
}

.regime-pill.regime-on {
  color: var(--cyan-glow);
  background: rgba(245, 197, 66, 0.08);
  border-color: rgba(245, 197, 66, 0.20);
}

.regime-pill.regime-off {
  color: var(--bear-red);
  background: rgba(255, 51, 102, 0.08);
  border-color: rgba(255, 51, 102, 0.20);
}

.regime-pill.regime-choppy {
  color: var(--amber);
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.20);
}

.regime-pill.regime-current {
  font-size: 11px;
  padding: 4px 10px;
  font-weight: 800;
}

.regime-arrow {
  color: rgba(255,255,255,0.20);
  font-size: 12px;
}

/* ─── SDS Hero Bar ───────────────────────────── */

.sds-bar-hero-track {
  position: relative;
  width: 288px;
  height: 6px;
  border-radius: 999px;
  overflow: visible;
  background: rgba(255,255,255,0.06);
}

.sds-gradient-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(to right, var(--bear-red) 0%, rgba(255,255,255,0.15) 50%, var(--cyan-glow) 100%);
}

.sds-bar-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,0.9), 0 0 4px rgba(255,255,255,0.5);
  transition: left 0.6s ease;
  left: 50%;
  z-index: 2;
}

/* ─── Chart Tabs ────────────────────────────── */

.chart-tabs {
  display: inline-flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px;
}

.chart-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 14px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-tab:hover {
  color: rgba(255, 255, 255, 0.60);
}

.chart-tab.active {
  background: rgba(245, 197, 66, 0.10);
  color: var(--cyan-glow);
}

/* ── POSITIONING TABLE ── */

/* Header section */
.pos-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  gap: 16px;
}
.pos-header-left .pos-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.pos-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-glow);
  animation: pulse-dot 2s infinite;
  box-shadow: 0 0 8px rgba(245, 197, 66, 0.8);
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(245, 197, 66, 0.8); }
  50%       { opacity: 0.4; box-shadow: none; }
}

.pos-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  font-family: 'Geist', sans-serif;
}
.pos-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  font-family: 'Geist', sans-serif;
}
.pos-title span {
  color: var(--cyan-glow);
}

.pos-legend-box {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  text-transform: uppercase;
  font-family: 'Geist', sans-serif;
  background: rgba(15, 20, 30, 0.4);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.pos-legend-sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
}
.pos-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pos-legend-item svg {
  flex-shrink: 0;
}

/* Table container */
.pos-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 13, 20, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.pos-table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  table-layout: auto;
}

.pos-table thead tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.pos-table th {
  padding: 16px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Geist', sans-serif;
  white-space: nowrap;
}

.pos-table th:first-child,
.pos-table td:first-child { padding-left: 24px; }
.pos-table th:last-child,
.pos-table td:last-child  { padding-right: 24px; }

.pos-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.2s;
}
.pos-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.pos-table tbody tr:last-child {
  border-bottom: none;
}

.pos-cell {
  padding: 14px 16px;
  font-size: 13px;
  vertical-align: middle;
  white-space: nowrap;
}

/* Coin */
.pos-coin-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pos-coin-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(30, 35, 50, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}
.pos-row:hover .pos-coin-avatar {
  border-color: rgba(255, 255, 255, 0.2);
}
.pos-coin-name {
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  font-family: 'Geist', sans-serif;
}

/* Direction badge */
.pos-dir-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.pos-dir-long {
  background: rgba(245, 197, 66, 0.08);
  color: var(--cyan-glow);
  border-color: rgba(245, 197, 66, 0.2);
}
.pos-dir-short {
  background: rgba(255, 51, 102, 0.08);
  color: var(--bear-red);
  border-color: rgba(255, 51, 102, 0.2);
}

/* Price */
.pos-cell-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* Consensus */
.pos-cell-consensus { min-width: 180px; }
.pos-consensus-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pos-consensus-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.pos-strength {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
}
.pos-strength-strong   { color: var(--cyan-glow); }
.pos-strength-moderate { color: var(--amber); }
.pos-strength-lean     { color: rgba(255, 255, 255, 0.4); }
.pos-strength-split    { color: var(--bear-red); }

.pos-consensus-ratio {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}
.pos-consensus-bar {
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
}
.pos-consensus-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1s ease;
}
.pos-fill-strong   { background: var(--cyan-glow); }
.pos-fill-moderate { background: var(--amber); }
.pos-fill-lean     { background: rgba(255, 255, 255, 0.3); }
.pos-fill-split    { background: var(--bear-red); }

/* Avg Entry */
.pos-cell-entry {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* P&L */
.pos-cell-pnl {
  text-align: right;
  font-weight: 700;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
}
.pos-pnl-pos { color: var(--cyan-glow); }
.pos-pnl-neg { color: var(--bear-red); }

/* Funding */
.pos-cell-funding {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.pos-funding-pos { color: var(--cyan-glow); }
.pos-funding-neg { color: var(--bear-red); }

/* Duration */
.pos-cell-duration {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

/* Change */
.pos-cell-chg {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.pos-chg-pos { color: var(--cyan-glow); }
.pos-chg-neg { color: var(--bear-red); }

/* Footer */
.pos-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  padding: 0 8px;
}
.pos-footer-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.pos-footer-icon {
  margin-top: 2px;
  padding: 6px;
  border-radius: 6px;
  background: rgba(15, 20, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  line-height: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pos-footer-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
  font-family: 'Geist', sans-serif;
}
.pos-footer-desc {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
  font-family: 'Geist', sans-serif;
  max-width: 360px;
}

@media (max-width: 768px) {
  .pos-cell-entry,
  .pos-cell-pnl,
  .pos-cell-funding,
  .pos-cell-duration { display: none; }
  .pos-table th:nth-child(5),
  .pos-table th:nth-child(6),
  .pos-table th:nth-child(7),
  .pos-table th:nth-child(8) { display: none; }
  .pos-legend-box { display: none; }
  .pos-footer { flex-direction: column; }
}

/* ─── Formations ────────────────────────────── */

.formation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(12, 12, 18, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.formation-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.formation-coin {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.85);
  width: 44px;
}

.formation-mid {
  display: flex;
  align-items: center;
  gap: 12px;
}

.formation-dots {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.50);
}

.formation-age {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  width: 48px;
  text-align: right;
}

.formation-trend {
  font-family: 'Geist', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  width: 72px;
  text-align: right;
}

/* ─── Coin Watchlist Cards ───────────────────── */

.coin-card-new {
  background: rgba(12, 12, 18, 0.70);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 110px;
}

.coin-card-new:hover {
  border-color: rgba(245, 197, 66, 0.40);
}

.coin-card-new.short-card:hover {
  border-color: rgba(255, 51, 102, 0.40);
}

/* Strongest coin: highlighted */
.coin-card-new.featured-long {
  border-color: rgba(245, 197, 66, 0.30);
  background: rgba(245, 197, 66, 0.04);
}

.coin-card-new.featured-short {
  border-color: rgba(255, 51, 102, 0.30);
  background: rgba(255, 51, 102, 0.04);
}

.coin-card-symbol {
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: 12px;
}

.coin-card-pct {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
}

.coin-card-dir {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 12px;
}

.coin-card-change {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 1px;
}

/* ─── Accuracy Flex Rows ─────────────────────── */

/* ── Proof Wall Cards ── */

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}

.proof-card {
  background: rgba(10, 13, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, background 0.2s;
}
.proof-card:hover {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.02);
}

.proof-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.proof-card-type {
  font-family: 'Geist', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.proof-card-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 7px;
  border-radius: 4px;
}

.proof-card-hero {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}

.proof-card-label {
  font-family: 'Geist', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.proof-card-details {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.proof-card-detail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}

.proof-card-detail strong {
  color: rgba(255, 255, 255, 0.70);
  font-weight: 700;
}

.proof-card-dot {
  color: rgba(255, 255, 255, 0.15);
  margin: 0 6px;
  font-size: 10px;
}

.proof-card-trend {
  margin-top: auto;
}

/* Hit rate color coding */
.rate-high { color: var(--cyan-glow); }
.rate-mid  { color: var(--amber); }
.rate-low  { color: var(--bear-red); }
.rate-null { color: rgba(255,255,255,0.25); }

/* CSS mini bar chart */
.mini-chart {
  display: inline-flex;
  align-items: flex-end;
  height: 16px;
  gap: 2px;
  vertical-align: middle;
  flex-shrink: 0;
}

.mini-chart .bar {
  display: inline-block;
  width: 4px;
  border-radius: 1px;
  flex-shrink: 0;
}

.mini-chart.trend-strong    .bar,
.mini-chart.trend-improving .bar { background: var(--cyan-glow); }
.mini-chart.trend-building  .bar { background: var(--amber); }
.mini-chart.trend-stable    .bar { background: rgba(255,255,255,0.25); }
.mini-chart.trend-declining .bar { background: var(--bear-red); }

.trend-label {
  font-family: 'Geist', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.trend-strong,
.trend-improving { color: var(--cyan-glow); }
.trend-building  { color: var(--amber); }
.trend-stable    { color: rgba(255,255,255,0.35); }
.trend-declining { color: var(--bear-red); }

/* ── SIGNALS TABLE ── */

/* Header section */
.sig-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  gap: 16px;
}
.sig-header-left .pos-label-row {
  margin-bottom: 4px;
}

/* Table container */
.sig-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 13, 20, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.sig-table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  table-layout: auto;
}

.sig-table thead tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.sig-table th {
  padding: 16px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Geist', sans-serif;
  white-space: nowrap;
}

.sig-table th:first-child,
.sig-table td:first-child { padding-left: 24px; }
.sig-table th:last-child,
.sig-table td:last-child  { padding-right: 24px; }

.sig-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.2s;
}
.sig-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.sig-table tbody tr:last-child {
  border-bottom: none;
}

.sig-cell {
  padding: 14px 16px;
  font-size: 13px;
  vertical-align: middle;
  white-space: nowrap;
}

/* Signal column: badge + coin name */
.sig-signal-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sig-coin-name {
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  font-family: 'Geist', sans-serif;
}

/* Type */
.sig-cell-type {
  font-family: 'Geist', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.30);
  white-space: nowrap;
}

/* Wallets */
.sig-cell-wallets {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* Entry */
.sig-cell-entry {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.50);
  white-space: nowrap;
}

/* Exit */
.sig-cell-exit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.50);
  white-space: nowrap;
}

.sig-exit-active {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 4px;
  padding: 2px 6px;
}

/* P&L */
.sig-cell-pnl {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
}
.sig-pnl-pos { color: var(--cyan-glow); }
.sig-pnl-neg { color: var(--bear-red); }

/* Duration */
.sig-cell-duration {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* Time */
.sig-cell-time {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

/* Result */
.sig-cell-result {
  text-align: right;
  white-space: nowrap;
}

/* Signal outcome badges (shared) */
.sig-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.sig-badge.hit {
  color: var(--cyan-glow);
  background: rgba(245, 197, 66, 0.10);
  border: 1px solid rgba(245, 197, 66, 0.25);
}

.sig-badge.miss {
  color: var(--bear-red);
  background: rgba(255, 51, 102, 0.10);
  border: 1px solid rgba(255, 51, 102, 0.25);
}

.sig-badge.active {
  color: var(--amber);
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.25);
  animation: pending-pulse 2s ease-in-out infinite;
}

@media (max-width: 768px) {
  /* Mobile: hide wallets, exit, duration */
  .sig-cell-wallets,
  .sig-cell-exit,
  .sig-cell-duration { display: none; }
  .sig-table th:nth-child(3),
  .sig-table th:nth-child(5),
  .sig-table th:nth-child(7) { display: none; }
}

/* ─── Proof Summary Bar ─────────────────────── */

.proof-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proof-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
}

.proof-stat-label {
  font-family: 'Geist', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── Responsive ─────────────────────────────── */

@media (max-width: 640px) {
  .sds-bar-hero-track { width: 220px; }

  .logo-text { font-size: 0.95rem; }
}

/* ─── Layout (replaces Tailwind utilities) ───── */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(10,10,15,0.9);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-main {
  flex-grow: 1;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  padding: 32px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-card {
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.site-footer {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 48px;
}

.sm-only { display: none; }
@media (min-width: 640px) { .sm-only { display: inline-block; } }

.logo-container.centered {
  justify-content: center;
  margin-bottom: 16px;
}

/* ─── Formations Section ─────────────────────── */

.formations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.formations-col-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .formations-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   SHARED NAVIGATION
   ═══════════════════════════════════════════════ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.site-nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.50);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link.active {
  color: #fff;
  font-weight: 600;
}

[data-theme="light"] .nav-link {
  color: rgba(0,0,0,0.45);
}
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: var(--text-main);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 6px;
}

/* ─── Nav Live Indicator ───────────────────── */

.nav-live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
}

[data-theme="light"] .nav-live-indicator {
  border-color: rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.02);
}

@media (max-width: 640px) {
  .nav-live-indicator { display: none; }
}

/* ─── Theme Toggle ──────────────────────────── */

.theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
  line-height: 0;
}

.theme-toggle:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.20);
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(0,0,0,0.10);
  color: rgba(0,0,0,0.45);
}

[data-theme="light"] .theme-toggle:hover {
  color: var(--text-main);
  border-color: rgba(0,0,0,0.25);
}

/* ─── Hamburger ─────────────────────────────── */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
  width: 28px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.55);
  border-radius: 1px;
  transition: all 0.25s ease;
}

[data-theme="light"] .hamburger span {
  background: rgba(0,0,0,0.50);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ─── Mobile Menu ───────────────────────────── */

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(10,10,15,0.98);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 8px 24px 16px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-link {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s ease;
}

.mobile-menu-link:last-child {
  border-bottom: none;
}

.mobile-menu-link:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* ─── Dashboard Subbar ──────────────────────── */

.dashboard-subbar {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 10px 24px;
  background: rgba(10,10,15,0.7);
}

.dashboard-subbar-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.subbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.subbar-right {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .subbar-right { display: none; }
}

/* ═══════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════ */

.landing-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.landing-hero {
  text-align: center;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

/* Hero animated background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,197,66,0.30), transparent 70%);
  top: -100px;
  left: 10%;
  animation: orb-drift-1 12s ease-in-out infinite;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245,197,66,0.20), transparent 70%);
  bottom: -60px;
  right: 15%;
  animation: orb-drift-2 15s ease-in-out infinite;
}

.hero-orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(200,160,40,0.15), transparent 70%);
  top: 40%;
  left: 55%;
  animation: orb-drift-3 18s ease-in-out infinite;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 20px) scale(1.1); }
  66% { transform: translate(-20px, -10px) scale(0.95); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -30px) scale(1.15); }
}

@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(20px, -25px); }
  80% { transform: translate(-15px, 15px); }
}

[data-theme="light"] .hero-orb { opacity: 0.18; }

.hero-chart-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  opacity: 0.6;
}

.hero-chart-line {
  stroke-dasharray: 3200;
  stroke-dashoffset: 3200;
  animation: chart-draw 3s ease-out 0.5s forwards;
}

.hero-chart-fill {
  opacity: 0;
  animation: chart-fill-in 1.5s ease-out 2s forwards;
}

@keyframes chart-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes chart-fill-in {
  to { opacity: 1; }
}

[data-theme="light"] .hero-chart-svg { opacity: 0.4; }

/* Hero content above background */
.landing-hero-content {
  position: relative;
  z-index: 1;
}

/* Hero badge */
.landing-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan-glow);
  background: rgba(245, 197, 66, 0.06);
  border: 1px solid rgba(245, 197, 66, 0.15);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

/* Hero actions */
.landing-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.landing-cta-secondary {
  display: inline-block;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.landing-cta-secondary:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.20);
}

[data-theme="light"] .landing-cta-secondary:hover {
  color: var(--text-main);
  border-color: rgba(0,0,0,0.20);
}

/* Step icon wrapper */
.landing-step-icon-wrap {
  margin-bottom: 12px;
  line-height: 0;
}

.landing-hero-title {
  font-family: 'Geist', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

[data-theme="light"] .landing-hero-title {
  color: var(--text-main);
}

.landing-hero-tagline {
  font-family: 'Geist', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.50);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 32px;
}

[data-theme="light"] .landing-hero-tagline {
  color: rgba(0,0,0,0.45);
}

.landing-cta {
  display: inline-block;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 14px 32px;
  border-radius: 8px;
  background: var(--cyan-glow);
  color: #000;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 0 30px rgba(245, 197, 66, 0.2);
}

.landing-cta:hover {
  box-shadow: 0 0 40px rgba(245, 197, 66, 0.35);
  transform: translateY(-1px);
  color: #000;
}

/* Proof Stats */
.landing-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 640px;
  margin: 0 auto 80px;
}

.landing-stat {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(12, 12, 18, 0.50);
}

[data-theme="light"] .landing-stat {
  background: rgba(255, 255, 255, 0.50);
}

.landing-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 800;
  color: var(--cyan-glow);
  line-height: 1;
  margin-bottom: 6px;
}

.landing-stat-label {
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .landing-stats { grid-template-columns: 1fr; max-width: 320px; }
  .landing-hero { padding: 48px 0 40px; }
}

/* How It Works */
.landing-section {
  margin-bottom: 80px;
}

.landing-section-title {
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan-glow);
  text-align: center;
  margin-bottom: 32px;
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.landing-step {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(12, 12, 18, 0.40);
}

[data-theme="light"] .landing-step {
  background: rgba(255, 255, 255, 0.50);
}

.landing-step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan-glow);
  margin-bottom: 12px;
}

.landing-step-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.landing-step-title {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

[data-theme="light"] .landing-step-title {
  color: var(--text-main);
}

.landing-step-desc {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .landing-steps { grid-template-columns: 1fr; }
}

/* Featured Articles */
.landing-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.landing-article-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(12, 12, 18, 0.40);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

[data-theme="light"] .landing-article-card {
  background: rgba(255, 255, 255, 0.50);
}

.landing-article-card:hover {
  border-color: rgba(245, 197, 66, 0.30);
  transform: translateY(-2px);
  color: inherit;
}

/* Article card accent bar */
.landing-article-accent {
  height: 3px;
  border-radius: 2px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.landing-article-card[data-accent="cyan"] .landing-article-accent { background: #f5c542; }
.landing-article-card[data-accent="blue"] .landing-article-accent { background: #c8960a; }
.landing-article-card[data-accent="purple"] .landing-article-accent { background: #a855f7; }
.landing-article-card[data-accent="amber"] .landing-article-accent { background: #f59e0b; }
.landing-article-card[data-accent="green"] .landing-article-accent { background: #22c55e; }
.landing-article-card[data-accent="red"] .landing-article-accent { background: #ff3366; }

.landing-article-card[data-accent="cyan"]:hover  { border-color: rgba(245, 197, 66, 0.30); }
.landing-article-card[data-accent="blue"]:hover   { border-color: rgba(200, 150, 10, 0.30); }
.landing-article-card[data-accent="purple"]:hover  { border-color: rgba(168, 85, 247, 0.30); }
.landing-article-card[data-accent="amber"]:hover   { border-color: rgba(245, 158, 11, 0.30); }
.landing-article-card[data-accent="green"]:hover   { border-color: rgba(34, 197, 94, 0.30); }
.landing-article-card[data-accent="red"]:hover     { border-color: rgba(255, 51, 102, 0.30); }

.landing-article-body {
  display: flex;
  flex-direction: column;
}

.landing-article-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan-glow);
  margin-bottom: 10px;
}

.landing-article-title {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}

[data-theme="light"] .landing-article-title {
  color: var(--text-main);
}

.landing-article-desc {
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .landing-articles { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .landing-articles { grid-template-columns: 1fr; }
}

/* Final CTA */
.landing-final-cta {
  text-align: center;
  padding: 64px 0 80px;
}

.landing-final-title {
  font-family: 'Geist', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

[data-theme="light"] .landing-final-title {
  color: var(--text-main);
}

/* ─── Shared Footer ─────────────────────────── */

.shared-footer {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}

.shared-footer-slogan {
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-style: italic;
}

.shared-footer-disclaimer {
  font-family: 'Geist', sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  margin-bottom: 16px;
}

[data-theme="light"] .shared-footer-disclaimer {
  color: rgba(0,0,0,0.30);
}

.shared-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.shared-footer-link {
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  text-decoration: none;
  transition: color 0.2s ease;
}

.shared-footer-link:hover {
  color: rgba(255,255,255,0.70);
}

[data-theme="light"] .shared-footer-link {
  color: rgba(0,0,0,0.30);
}
[data-theme="light"] .shared-footer-link:hover {
  color: rgba(0,0,0,0.70);
}

.shared-footer-sep {
  color: rgba(255,255,255,0.15);
  font-size: 11px;
}

[data-theme="light"] .shared-footer-sep {
  color: rgba(0,0,0,0.15);
}
