/* Rift Scanner — v3.0.0 */
/* Aligned to DriftLogic landing page design system */

/* ── Theme: Midnight (default) — matches landing page exactly ──────────── */
:root, [data-theme="midnight"] {
  --bg-base: #06060b;
  --bg-elevated: #0a0a12;
  --bg-card: #0c0c16;
  --bg-card-hover: #14142a;
  --bg-header: rgba(6, 6, 11, 0.88);
  --bg-row: #0a0a12;
  --bg-row-hover: #12122a;
  --border: #16162a;
  --border-light: #1e1e3a;
  --border-accent: #252550;
  --text-primary: #e8e8f0;
  --text-secondary: #9494b0;
  --text-muted: #5c5c78;
  --green: #00ff88;
  --green-dim: #00cc66;
  --blue: #4a7fff;
  --blue-dim: #3366cc;
  --red: #ff4444;
  --orange: #ff6b00;
  --orange-glow: #ff8c00;
  --purple: #a855f7;
  --cyan: #22d3ee;
  --yellow: #eab308;
  --emerald: #10b981;
  --pink: #f472b6;
  --glow-blue: rgba(74, 127, 255, 0.06);
  --glow-green: rgba(0, 255, 136, 0.04);
  --glow-orange: rgba(255, 107, 0, 0.03);
  --badge-bg: rgba(255, 255, 255, 0.06);
  --card-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 4px 24px rgba(0,0,0,0.2);
  --symbol-color: #7dd3fc;
  --grid-color: rgba(74, 127, 255, 0.04);
  --hero-gradient-1: rgba(74, 127, 255, 0.06);
  --hero-gradient-2: rgba(0, 255, 136, 0.03);
  --hero-gradient-3: rgba(168, 85, 247, 0.04);
  --scanline-opacity: 1;
  --hover-edge: rgba(74, 127, 255, 0.15);
  --zone-divider: rgba(74, 127, 255, 0.06);
  /* compat aliases */
  --accent-cyan: var(--cyan);
  --accent-green: var(--green-dim);
  --accent-red: var(--red);
  --accent-orange: var(--orange);
  --accent-purple: var(--purple);
  --accent-blue: var(--blue);
  --accent-yellow: var(--yellow);
  --accent-emerald: var(--emerald);
  --accent-pink: var(--pink);
  --border-glow: rgba(74, 127, 255, 0.12);
}

/* ── Theme: Slate (light) ──────────────────────────────────────────────── */
[data-theme="slate"] {
  --bg-base: #e2e5ec;
  --bg-elevated: #e8ebf2;
  --bg-card: #eef0f5;
  --bg-card-hover: #dde0e8;
  --bg-header: rgba(232, 235, 242, 0.95);
  --bg-row: #eaecf2;
  --bg-row-hover: #dce0ea;
  --border: #e2e5eb;
  --border-light: #d0d4dc;
  --border-accent: #bcc2ce;
  --text-primary: #1a1f2e;
  --text-secondary: #5c6478;
  --text-muted: #9098a8;
  --green: #16a34a;
  --green-dim: #15803d;
  --blue: #2563eb;
  --blue-dim: #1d4ed8;
  --red: #dc2626;
  --orange: #ea580c;
  --orange-glow: #f97316;
  --purple: #7c3aed;
  --cyan: #0891b2;
  --yellow: #d97706;
  --emerald: #059669;
  --pink: #db2777;
  --glow-blue: rgba(37, 99, 235, 0.04);
  --glow-green: rgba(22, 163, 74, 0.03);
  --glow-orange: rgba(234, 88, 12, 0.02);
  --badge-bg: rgba(0, 0, 0, 0.04);
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --symbol-color: #1d4ed8;
  --grid-color: rgba(37, 99, 235, 0.02);
  --hero-gradient-1: rgba(37, 99, 235, 0.03);
  --hero-gradient-2: rgba(22, 163, 74, 0.02);
  --hero-gradient-3: rgba(124, 58, 237, 0.02);
  --scanline-opacity: 0;
  --hover-edge: rgba(37, 99, 235, 0.15);
  --zone-divider: rgba(0, 0, 0, 0.06);
  --accent-cyan: var(--cyan);
  --accent-green: var(--green);
  --accent-red: var(--red);
  --accent-orange: var(--orange);
  --accent-purple: var(--purple);
  --accent-blue: var(--blue);
  --accent-yellow: var(--yellow);
  --accent-emerald: var(--emerald);
  --accent-pink: var(--pink);
  --border-glow: rgba(0, 0, 0, 0.1);
}

/* ── Theme: Dim (softer dark) ──────────────────────────────────────────── */
[data-theme="dim"] {
  --bg-base: #0f1620;
  --bg-elevated: #151d2c;
  --bg-card: #1a2234;
  --bg-card-hover: #1f2b42;
  --bg-header: rgba(15, 22, 32, 0.88);
  --bg-row: #151d2c;
  --bg-row-hover: #1c2840;
  --border: #253044;
  --border-light: #2f4060;
  --border-accent: #354a6a;
  --text-primary: #c8d4e2;
  --text-secondary: #7488a0;
  --text-muted: #3e5068;
  --green: #00c781;
  --green-dim: #00a86e;
  --blue: #4da6ff;
  --blue-dim: #3388dd;
  --red: #e74c5a;
  --orange: #f59e0b;
  --orange-glow: #d97706;
  --purple: #a78bfa;
  --cyan: #1da1f2;
  --yellow: #eab308;
  --emerald: #10b981;
  --pink: #f472b6;
  --glow-blue: rgba(77, 166, 255, 0.05);
  --glow-green: rgba(0, 199, 129, 0.04);
  --glow-orange: rgba(245, 158, 11, 0.03);
  --badge-bg: rgba(255, 255, 255, 0.05);
  --card-shadow: 0 2px 8px rgba(0,0,0,0.2), 0 4px 20px rgba(0,0,0,0.15);
  --symbol-color: #5bb8f5;
  --grid-color: rgba(77, 166, 255, 0.03);
  --hero-gradient-1: rgba(77, 166, 255, 0.04);
  --hero-gradient-2: rgba(0, 199, 129, 0.02);
  --hero-gradient-3: rgba(167, 139, 250, 0.03);
  --scanline-opacity: 0.6;
  --hover-edge: rgba(77, 166, 255, 0.12);
  --zone-divider: rgba(77, 166, 255, 0.05);
  --accent-cyan: var(--cyan);
  --accent-green: var(--green);
  --accent-red: var(--red);
  --accent-orange: var(--orange);
  --accent-purple: var(--purple);
  --accent-blue: var(--blue);
  --accent-yellow: var(--yellow);
  --accent-emerald: var(--emerald);
  --accent-pink: var(--pink);
  --border-glow: rgba(77, 166, 255, 0.1);
}

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

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

body {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Line grid — matches landing page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient gradient orbs — matches landing page */
body::after {
  content: '';
  position: fixed;
  top: -30%; left: -20%;
  width: 160%; height: 160%;
  background:
    radial-gradient(ellipse at 15% 20%, var(--hero-gradient-1) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 70%, var(--hero-gradient-2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 5%, var(--hero-gradient-3) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: orb-drift 30s ease-in-out infinite alternate;
}

@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 3%) scale(1.02); }
  100% { transform: translate(1%, -2%) scale(0.98); }
}

/* ── Page Load Animation ──────────────────────────────────────────────── */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.header { animation: fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.stats-bar { animation: fade-up 0.5s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both; }
.tables-container { animation: fade-up 0.5s 0.16s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ── Scanline (page-level) ────────────────────────────────────────────── */

/* Scanline — dedicated element, not pseudo (allows dot pseudo) */
.scanline {
  position: fixed;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 10%, rgba(74,127,255,0.35) 50%, transparent 90%);
  box-shadow: 0 0 8px rgba(74,127,255,0.2);
  z-index: 9998;
  pointer-events: none;
  animation: scanline 8s linear infinite;
  opacity: var(--scanline-opacity);
}
.scanline::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(74,127,255,0.9);
  box-shadow: 0 0 12px 3px rgba(74,127,255,0.6), 0 0 24px 6px rgba(74,127,255,0.2);
  animation: scanline-ekg 0.8s ease-in-out infinite;
}

@keyframes scanline {
  0% { top: -2px; }
  100% { top: 100vh; }
}
@keyframes scanline-ekg {
  0%   { left: 5%;  box-shadow: 0 0 12px 3px rgba(74,127,255,0.6), 0 0 24px 6px rgba(74,127,255,0.2); }
  25%  { left: 50%; box-shadow: 0 0 16px 4px rgba(74,127,255,0.8), 0 0 30px 8px rgba(74,127,255,0.3); }
  50%  { left: 95%; box-shadow: 0 0 12px 3px rgba(74,127,255,0.6), 0 0 24px 6px rgba(74,127,255,0.2); }
  75%  { left: 50%; box-shadow: 0 0 16px 4px rgba(74,127,255,0.8), 0 0 30px 8px rgba(74,127,255,0.3); }
  100% { left: 5%;  box-shadow: 0 0 12px 3px rgba(74,127,255,0.6), 0 0 24px 6px rgba(74,127,255,0.2); }
}

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

.header {
  background: var(--bg-header);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo mark — blue gradient square matching landing */
.logo::before {
  content: 'R';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--purple), #7c3aed);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.version-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 500; color: var(--text-muted);
  padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px;
  letter-spacing: 0.5px;
}

.badge-count {
  background: var(--purple);
  color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.category-toggle {
  display: flex; gap: 1px;
  background: var(--badge-bg);
  border-radius: 8px; padding: 2px;
}

.cat-btn {
  background: none; border: none; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 500; padding: 4px 12px;
  border-radius: 6px; cursor: pointer; transition: all 0.2s;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.cat-btn:hover { color: var(--text-secondary); background: var(--badge-bg); }
.cat-btn.active {
  color: #fff;
  background: var(--bg-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.header-right {
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}

.status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  display: inline-block; margin-right: 4px;
}
.status-dot.ok { background: var(--green); box-shadow: 0 0 8px rgba(0,255,136,0.5); }
.status-dot.error { background: var(--red); box-shadow: 0 0 8px rgba(255,68,68,0.5); }
.status-dot.loading { background: var(--orange); box-shadow: 0 0 8px rgba(255,107,0,0.4); animation: pulse-dot 2s infinite; }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 4px rgba(0,255,136,0.3); }
  50% { box-shadow: 0 0 12px rgba(0,255,136,0.6); }
}

.scan-info { display: flex; align-items: center; gap: 8px; }
.countdown { font-variant-numeric: tabular-nums; color: var(--text-muted); font-size: 9px; }

.scan-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); font-size: 9px; font-weight: 500;
  padding: 4px 12px; border-radius: 6px; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; transition: all 0.2s;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.scan-btn:hover { color: var(--text-primary); background: var(--badge-bg); }
.scan-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Volume Control ──────────────────────────────────────────────────────── */
.volume-control { display: flex; align-items: center; gap: 5px; }
.volume-icon { cursor: pointer; font-size: 12px; user-select: none; opacity: 0.5; transition: opacity 0.2s; }
.volume-icon:hover { opacity: 1; }
.volume-slider {
  -webkit-appearance: none; appearance: none;
  width: 44px; height: 2px; border-radius: 1px;
  background: rgba(255,255,255,0.08); outline: none; cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); cursor: pointer; border: none;
  box-shadow: 0 0 6px rgba(74,127,255,0.4);
}
.volume-slider::-moz-range-thumb {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); cursor: pointer; border: none;
}

/* ── Stats Bar ────────────────────────────────────────────────────────────── */

.stats-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 32px;
  border-bottom: 1px solid var(--border);
  font-size: 10px; color: var(--text-muted);
  background: var(--bg-elevated);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.3px;
}

.stat-item { display: flex; align-items: center; gap: 4px; }
.stat-item + .stat-item::before {
  content: ''; display: inline-block;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-muted); opacity: 0.3; margin-right: 6px;
}

.stat-value { color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 10px; }
.stat-value.green { color: var(--green); }
.stat-value.red { color: var(--red); }

/* ── Table Container ──────────────────────────────────────────────────────── */

.tables-container { display: flex; flex-direction: column; position: relative; z-index: 1; }
.table-panel { overflow-x: auto; }

.panel-header {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 7px 32px;
  border-bottom: 1px solid var(--border);
  font-family: 'Outfit', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--bg-elevated);
}

.panel-icon { font-size: 11px; opacity: 0.6; }
.rift-header { color: var(--purple); }
.rift-header .panel-icon { color: var(--purple); }

.panel-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700; padding: 1px 7px; border-radius: 8px;
}
.rift-header .panel-count { background: rgba(168,85,247,0.12); color: var(--purple); }

.table-wrap { overflow-x: auto; }

.table-empty {
  text-align: center; padding: 48px 20px;
  color: var(--text-muted); font-size: 11px;
}

/* ── Table ────────────────────────────────────────────────────────────────── */

.rift-table {
  width: 100%; border-collapse: collapse;
  font-size: 11px; table-layout: fixed;
}

.rift-table thead th {
  background: var(--bg-base);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 8px 4px 7px; text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  user-select: none; overflow: hidden;
  transition: color 0.2s;
}

.rift-table thead th:not(.no-sort):hover {
  color: var(--blue); cursor: pointer;
}

th.sort-asc::after { content: ' \25B2'; font-size: 6px; color: var(--blue); }
th.sort-desc::after { content: ' \25BC'; font-size: 6px; color: var(--blue); }
th.sort-asc, th.sort-desc { color: var(--text-secondary); border-bottom-color: var(--blue); }

.rift-table tbody tr { border-bottom: none; transition: background 0.15s; cursor: pointer; }
.rift-table tbody tr:hover { background: var(--bg-row-hover); }

.rift-table td {
  padding: 4px 4px; white-space: nowrap; vertical-align: middle;
  background: var(--bg-row); height: 31px; line-height: 1;
  overflow: hidden; text-overflow: ellipsis;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.rift-table tbody tr:nth-child(even) td { background: var(--bg-elevated); }
/* Bias rows: td must be transparent so tr gradient shows through */
.rift-table tbody tr.row-bias-bullish td,
.rift-table tbody tr.row-bias-bearish td,
.rift-table tbody tr.row-bias-bullish:nth-child(even) td,
.rift-table tbody tr.row-bias-bearish:nth-child(even) td { background: transparent !important; }

.rift-table tbody tr:hover td { background: var(--bg-row-hover); }
.rift-table tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--hover-edge); }

/* Selected row */
.rift-table tbody tr.row-selected td,
.rift-table tbody tr.row-selected.row-bias-bullish td,
.rift-table tbody tr.row-selected.row-bias-bearish td {
  background:
    linear-gradient(90deg, rgba(74,127,255,0.1) 0%, rgba(74,127,255,0.03) 40%, transparent 100%),
    var(--bg-row-hover) !important;
  box-shadow: inset 0 1px 0 rgba(74,127,255,0.15), inset 0 -1px 0 rgba(74,127,255,0.08);
  border-bottom: 1px solid rgba(74,127,255,0.1) !important;
}
.rift-table tbody tr.row-selected td:first-child {
  box-shadow: inset 3px 0 0 var(--blue), inset 0 1px 0 rgba(74,127,255,0.15), inset 0 -1px 0 rgba(74,127,255,0.08);
}
.rift-table tbody tr.row-selected td:last-child {
  box-shadow: inset -1px 0 0 rgba(74,127,255,0.06), inset 0 1px 0 rgba(74,127,255,0.15), inset 0 -1px 0 rgba(74,127,255,0.08);
}
.rift-table tbody tr.row-selected:hover td {
  background: linear-gradient(90deg, rgba(74,127,255,0.14) 0%, rgba(74,127,255,0.04) 40%, transparent 100%), var(--bg-row-hover) !important;
}

[data-theme="slate"] .rift-table tbody tr.row-selected td,
[data-theme="slate"] .rift-table tbody tr.row-selected.row-bias-bullish td,
[data-theme="slate"] .rift-table tbody tr.row-selected.row-bias-bearish td {
  background: linear-gradient(90deg, rgba(37,99,235,0.08) 0%, rgba(37,99,235,0.02) 40%, transparent 100%), var(--bg-row-hover) !important;
  box-shadow: inset 0 1px 0 rgba(37,99,235,0.1), inset 0 -1px 0 rgba(37,99,235,0.05);
}
[data-theme="slate"] .rift-table tbody tr.row-selected td:first-child {
  box-shadow: inset 3px 0 0 var(--blue), inset 0 1px 0 rgba(37,99,235,0.1), inset 0 -1px 0 rgba(37,99,235,0.05);
}

/* ── Status-driven row colors (matches pulse monitor) ─────────────────── */

@keyframes row-pulse-purple {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}
@keyframes row-pulse-green {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.06); }
}

/* Parabolic — intense magenta/purple, pulsing */
.rift-table tr.row-st-parabolic {
  background: linear-gradient(90deg, rgba(192,60,255,0.55) 0%, rgba(192,60,255,0.32) 25%, rgba(192,60,255,0.14) 55%, transparent 85%) !important;
  animation: row-pulse-purple 1.5s ease-in-out infinite;
}
.rift-table tr.row-st-parabolic td { background: transparent !important; }
.rift-table tr.row-st-parabolic td:first-child { box-shadow: inset 3px 0 0 #c03cff !important; }

/* Pumping — deep purple, pulsing */
.rift-table tr.row-st-pumping {
  background: linear-gradient(90deg, rgba(139,92,246,0.45) 0%, rgba(139,92,246,0.26) 25%, rgba(139,92,246,0.10) 55%, transparent 85%) !important;
  animation: row-pulse-purple 1.8s ease-in-out infinite;
}
.rift-table tr.row-st-pumping td { background: transparent !important; }
.rift-table tr.row-st-pumping td:first-child { box-shadow: inset 3px 0 0 #8b5cf6 !important; }

/* Rallying — bright green, pulsing */
.rift-table tr.row-st-rallying {
  background: linear-gradient(90deg, rgba(0,255,136,0.38) 0%, rgba(0,255,136,0.20) 25%, rgba(0,255,136,0.08) 55%, transparent 85%) !important;
  animation: row-pulse-green 2s ease-in-out infinite;
}
.rift-table tr.row-st-rallying td { background: transparent !important; }
.rift-table tr.row-st-rallying td:first-child { box-shadow: inset 3px 0 0 #00ff88 !important; }

/* Dumping — vivid red */
.rift-table tr.row-st-dumping {
  background: linear-gradient(90deg, rgba(255,68,68,0.38) 0%, rgba(255,68,68,0.20) 25%, rgba(255,68,68,0.08) 55%, transparent 85%) !important;
  opacity: 0.8;
}
.rift-table tr.row-st-dumping td { background: transparent !important; }
.rift-table tr.row-st-dumping td:first-child { box-shadow: inset 3px 0 0 #ff4444 !important; }

/* Momentum surge — vivid purple, pulsing */
.rift-table tr.row-st-momentum_surge {
  background: linear-gradient(90deg, rgba(192,60,255,0.50) 0%, rgba(192,60,255,0.30) 25%, rgba(192,60,255,0.12) 55%, transparent 85%) !important;
  animation: row-pulse-purple 1.5s ease-in-out infinite;
}
.rift-table tr.row-st-momentum_surge td { background: transparent !important; }
.rift-table tr.row-st-momentum_surge td:first-child { box-shadow: inset 3px 0 0 #c03cff !important; }

/* Breaking out — bright green, pulsing */
.rift-table tr.row-st-breaking_out {
  background: linear-gradient(90deg, rgba(0,255,136,0.40) 0%, rgba(0,255,136,0.22) 25%, rgba(0,255,136,0.08) 55%, transparent 85%) !important;
  animation: row-pulse-green 2s ease-in-out infinite;
}
.rift-table tr.row-st-breaking_out td { background: transparent !important; }
.rift-table tr.row-st-breaking_out td:first-child { box-shadow: inset 3px 0 0 #00ff88 !important; }

/* Breaking down — vivid red */
.rift-table tr.row-st-breaking_down {
  background: linear-gradient(90deg, rgba(255,68,68,0.35) 0%, rgba(255,68,68,0.18) 25%, rgba(255,68,68,0.06) 55%, transparent 85%) !important;
}
.rift-table tr.row-st-breaking_down td { background: transparent !important; }
.rift-table tr.row-st-breaking_down td:first-child { box-shadow: inset 3px 0 0 #ff4444 !important; }

/* Expanding (range expansion) — hot orange */
.rift-table tr.row-st-range_expansion {
  background: linear-gradient(90deg, rgba(255,107,0,0.38) 0%, rgba(255,107,0,0.20) 25%, rgba(255,107,0,0.07) 55%, transparent 85%) !important;
}
.rift-table tr.row-st-range_expansion td { background: transparent !important; }
.rift-table tr.row-st-range_expansion td:first-child { box-shadow: inset 3px 0 0 #ff6b00 !important; }

/* Trending up — medium green */
.rift-table tr.row-st-trending_up {
  background: linear-gradient(90deg, rgba(0,255,136,0.28) 0%, rgba(0,255,136,0.14) 25%, rgba(0,255,136,0.05) 55%, transparent 85%) !important;
}
.rift-table tr.row-st-trending_up td { background: transparent !important; }
.rift-table tr.row-st-trending_up td:first-child { box-shadow: inset 3px 0 0 rgba(0,255,136,0.7) !important; }

/* Trending down — medium red */
.rift-table tr.row-st-trending_down {
  background: linear-gradient(90deg, rgba(255,68,68,0.25) 0%, rgba(255,68,68,0.12) 25%, rgba(255,68,68,0.04) 55%, transparent 85%) !important;
}
.rift-table tr.row-st-trending_down td { background: transparent !important; }
.rift-table tr.row-st-trending_down td:first-child { box-shadow: inset 3px 0 0 rgba(255,68,68,0.6) !important; }

/* Bounce — purple tint */
.rift-table tr.row-st-oversold_bounce {
  background: linear-gradient(90deg, rgba(139,92,246,0.30) 0%, rgba(139,92,246,0.15) 25%, rgba(139,92,246,0.05) 55%, transparent 85%) !important;
}
.rift-table tr.row-st-oversold_bounce td { background: transparent !important; }
.rift-table tr.row-st-oversold_bounce td:first-child { box-shadow: inset 3px 0 0 #8b5cf6 !important; }

/* Retest — blue */
.rift-table tr.row-st-breakout_retest {
  background: linear-gradient(90deg, rgba(74,127,255,0.25) 0%, rgba(74,127,255,0.12) 25%, rgba(74,127,255,0.04) 55%, transparent 85%) !important;
}
.rift-table tr.row-st-breakout_retest td { background: transparent !important; }
.rift-table tr.row-st-breakout_retest td:first-child { box-shadow: inset 3px 0 0 rgba(74,127,255,0.7) !important; }

/* Fading — dim red, reduced opacity */
.rift-table tr.row-st-fading {
  background: linear-gradient(90deg, rgba(255,68,68,0.18) 0%, rgba(255,68,68,0.08) 25%, rgba(255,68,68,0.02) 55%, transparent 85%) !important;
  opacity: 0.75;
}
.rift-table tr.row-st-fading td { background: transparent !important; }
.rift-table tr.row-st-fading td:first-child { box-shadow: inset 3px 0 0 rgba(255,68,68,0.5) !important; }

/* Consolidating — flat, muted */
.rift-table tr.row-st-consolidating {
  opacity: 0.65;
}

/* Status rows override bias colors */
.rift-table tr[class*="row-st-"]:hover { filter: brightness(1.12); }

/* New token flash — matches pulse monitor, overrides status row colors */
.rift-table tbody tr.row-new td:first-child { border-left: 2px solid var(--blue) !important; }
.rift-table tbody tr.row-new td,
.rift-table tbody tr.row-new.row-st-momentum_surge td,
.rift-table tbody tr.row-new.row-st-breaking_out td,
.rift-table tbody tr.row-new.row-st-parabolic td,
.rift-table tbody tr.row-new.row-st-pumping td,
.rift-table tbody tr.row-new.row-st-rallying td,
.rift-table tbody tr.row-new.row-st-dumping td,
.rift-table tbody tr.row-new[class*="row-st-"] td {
  animation: flash-new 0.8s ease-in-out 10 !important;
  background: none !important;
}
@keyframes flash-new {
  0%, 100% { background: rgba(74, 127, 255, 0.05) !important; }
  50% { background: rgba(74, 127, 255, 0.28) !important; box-shadow: 0 0 24px rgba(74, 127, 255, 0.35); }
}

/* Stale / Demoted */
tr.row-stale td { opacity: 0.35; filter: saturate(0.15) brightness(0.9); }
tr.row-dimmed td { opacity: 0.5; filter: saturate(0.35); }
tr.row-dimmed:hover td { opacity: 0.75; filter: saturate(0.65); }
tr.row-dimmed td:first-child { box-shadow: inset 2px 0 0 rgba(92,92,120,0.25); }

/* Row bias */
.rift-table tr.row-bias-bullish {
  background: linear-gradient(90deg, rgba(0,255,136,0.35) 0%, rgba(0,255,136,0.18) 25%, rgba(0,255,136,0.06) 55%, transparent 85%), var(--bg-row);
}
.rift-table tr.row-bias-bearish {
  background: linear-gradient(90deg, rgba(255,68,68,0.35) 0%, rgba(255,68,68,0.18) 25%, rgba(255,68,68,0.06) 55%, transparent 85%), var(--bg-row);
}
.rift-table tr.row-bias-bullish td, .rift-table tr.row-bias-bearish td { background: transparent; }
.rift-table tr.row-bias-bullish td:first-child { box-shadow: inset 3px 0 0 rgba(0,255,136,0.7); }
.rift-table tr.row-bias-bearish td:first-child { box-shadow: inset 3px 0 0 rgba(255,68,68,0.7); }

/* ── Row Heat (B/O 100+) — intensifying border glow ──────────────── */

/* ── Row Heat (B/O 100+) — purple/fuchsia/magenta gradient, overrides status bias ── */

/* Molten (100-149): soft purple gradient + left bar */
.rift-table tr.row-heat-molten {
  background: linear-gradient(90deg, rgba(168,85,247,0.22) 0%, rgba(168,85,247,0.10) 25%, rgba(168,85,247,0.03) 55%, transparent 80%), var(--bg-row) !important;
  animation: row-heat-molten 2s ease-in-out infinite;
}
.rift-table tr.row-heat-molten td:first-child { box-shadow: inset 3px 0 0 rgba(168,85,247,0.7) !important; }
.rift-table tr.row-heat-molten td { border-bottom-color: rgba(168,85,247,0.1) !important; }

/* Inferno (150-199): deeper violet/fuchsia gradient */
.rift-table tr.row-heat-inferno {
  background: linear-gradient(90deg, rgba(192,60,200,0.28) 0%, rgba(168,85,247,0.14) 25%, rgba(168,85,247,0.04) 55%, transparent 80%), var(--bg-row) !important;
  animation: row-heat-inferno 1.5s ease-in-out infinite;
}
.rift-table tr.row-heat-inferno td:first-child { box-shadow: inset 3px 0 0 rgba(217,70,239,0.8) !important; }
.rift-table tr.row-heat-inferno td { border-bottom-color: rgba(192,60,200,0.15) !important; }

/* Supernova (200+): electric fuchsia/magenta gradient */
.rift-table tr.row-heat-supernova {
  background: linear-gradient(90deg, rgba(236,72,153,0.32) 0%, rgba(217,70,239,0.18) 25%, rgba(168,85,247,0.06) 55%, transparent 80%), var(--bg-row) !important;
  animation: row-heat-supernova 1s ease-in-out infinite;
}
.rift-table tr.row-heat-supernova td:first-child { box-shadow: inset 3px 0 0 rgba(236,72,153,0.9) !important; }
.rift-table tr.row-heat-supernova td { border-bottom-color: rgba(236,72,153,0.2) !important; }

/* Heat td must be transparent for row gradient to show */
.rift-table tr.row-heat-molten td,
.rift-table tr.row-heat-inferno td,
.rift-table tr.row-heat-supernova td,
.rift-table tr.row-heat-molten:nth-child(even) td,
.rift-table tr.row-heat-inferno:nth-child(even) td,
.rift-table tr.row-heat-supernova:nth-child(even) td { background: transparent !important; }

@keyframes row-heat-molten {
  0%,100% { box-shadow: 0 0 0 transparent; }
  50% { box-shadow: 0 0 10px rgba(168,85,247,0.08); }
}
@keyframes row-heat-inferno {
  0%,100% { box-shadow: 0 0 0 transparent; }
  50% { box-shadow: 0 0 16px rgba(192,60,200,0.12); }
}
@keyframes row-heat-supernova {
  0%,100% { box-shadow: 0 0 0 transparent; }
  50% { box-shadow: 0 0 22px rgba(236,72,153,0.15), 0 0 40px rgba(168,85,247,0.08); }
}
.rift-table tbody tr.row-bias-bullish:hover {
  background: linear-gradient(90deg, rgba(0,255,136,0.42) 0%, rgba(0,255,136,0.22) 25%, rgba(0,255,136,0.08) 55%, transparent 85%), var(--bg-row-hover);
}
.rift-table tbody tr.row-bias-bearish:hover {
  background: linear-gradient(90deg, rgba(255,68,68,0.42) 0%, rgba(255,68,68,0.22) 25%, rgba(255,68,68,0.08) 55%, transparent 85%), var(--bg-row-hover);
}

[data-theme="slate"] tr.row-dimmed td:first-child { box-shadow: inset 2px 0 0 rgba(107,114,128,0.2); }
[data-theme="slate"] .rift-table tr.row-bias-bullish {
  background: linear-gradient(90deg, rgba(22,163,74,0.45) 0%, rgba(22,163,74,0.22) 25%, rgba(22,163,74,0.08) 55%, transparent 85%), var(--bg-row);
}
[data-theme="slate"] .rift-table tr.row-bias-bearish {
  background: linear-gradient(90deg, rgba(220,38,38,0.45) 0%, rgba(220,38,38,0.22) 25%, rgba(220,38,38,0.08) 55%, transparent 85%), var(--bg-row);
}
[data-theme="slate"] .rift-table tr.row-bias-bullish td, [data-theme="slate"] .rift-table tr.row-bias-bearish td { background: transparent; }
[data-theme="slate"] .rift-table tr.row-bias-bullish td:first-child { box-shadow: inset 3px 0 0 rgba(22,163,74,0.4); }
[data-theme="slate"] .rift-table tr.row-bias-bearish td:first-child { box-shadow: inset 3px 0 0 rgba(220,38,38,0.4); }
[data-theme="slate"] .rift-table tbody tr.row-bias-bullish:hover { background: linear-gradient(90deg, rgba(22,163,74,0.52) 0%, rgba(22,163,74,0.28) 25%, rgba(22,163,74,0.10) 55%, transparent 85%), var(--bg-row-hover); }
[data-theme="slate"] .rift-table tbody tr.row-bias-bearish:hover { background: linear-gradient(90deg, rgba(220,38,38,0.52) 0%, rgba(220,38,38,0.28) 25%, rgba(220,38,38,0.10) 55%, transparent 85%), var(--bg-row-hover); }

/* Slate heat rows */
[data-theme="slate"] .rift-table tr.row-heat-molten { background: linear-gradient(90deg, rgba(124,58,237,0.18) 0%, rgba(124,58,237,0.08) 30%, transparent 70%), var(--bg-row) !important; }
[data-theme="slate"] .rift-table tr.row-heat-molten td:first-child { box-shadow: inset 3px 0 0 rgba(124,58,237,0.6) !important; }
[data-theme="slate"] .rift-table tr.row-heat-inferno { background: linear-gradient(90deg, rgba(168,50,180,0.22) 0%, rgba(124,58,237,0.10) 30%, transparent 70%), var(--bg-row) !important; }
[data-theme="slate"] .rift-table tr.row-heat-inferno td:first-child { box-shadow: inset 3px 0 0 rgba(168,50,180,0.7) !important; }
[data-theme="slate"] .rift-table tr.row-heat-supernova { background: linear-gradient(90deg, rgba(219,39,119,0.25) 0%, rgba(168,50,180,0.12) 30%, transparent 70%), var(--bg-row) !important; }
[data-theme="slate"] .rift-table tr.row-heat-supernova td:first-child { box-shadow: inset 3px 0 0 rgba(219,39,119,0.8) !important; }

/* ── Zone Dividers ───────────────────────────────────────────────────────── */
/* Token(1) | Scores(2-4) | Price+Status(5-6) | Deltas(7-10) | Analytics(11-14) | Perf(15-17) */

.rift-table th:nth-child(2), .rift-table td:nth-child(2),
.rift-table th:nth-child(5), .rift-table td:nth-child(5),
.rift-table th:nth-child(7), .rift-table td:nth-child(7),
.rift-table th:nth-child(11), .rift-table td:nth-child(11),
.rift-table th:nth-child(15), .rift-table td:nth-child(15) {
  border-left: 1px solid var(--zone-divider);
}

/* ── Cell Styles ──────────────────────────────────────────────────────────── */

.cell-token { display: inline-flex; align-items: center; gap: 6px; min-width: 200px; }
.token-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.token-info .row-symbol { white-space: nowrap; }
.token-badges { display: flex; flex-wrap: wrap; gap: 3px; line-height: 1; }
@media (max-width: 1200px) { .cell-token { min-width: 210px; } }
@media (max-width: 900px)  { .cell-token { min-width: 220px; } }

.row-logo {
  width: 18px; height: 18px; max-width: 18px; max-height: 18px;
  border-radius: 50%; flex-shrink: 0; object-fit: cover;
  border: 1px solid var(--border);
}

a.row-symbol, .row-symbol {
  font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 700; color: var(--symbol-color); letter-spacing: -0.2px;
  text-decoration: none; cursor: pointer; transition: color 0.15s;
}
a.row-symbol:hover { text-decoration: underline; color: var(--blue); }

.cat-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px; font-weight: 600; padding: 1px 4px; border-radius: 3px;
  letter-spacing: 0.8px; text-transform: uppercase;
  background: var(--badge-bg); border: 1px solid var(--border);
}
.cat-badge.cat-crypto { color: var(--cyan); }
.cat-badge.cat-xyz { color: var(--purple); }

.micro-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px; font-weight: 700; padding: 1px 4px; border-radius: 3px;
  letter-spacing: 0.8px; text-transform: uppercase;
}
.micro-badge.stale-b { background: var(--badge-bg); color: var(--text-muted); }
.micro-badge.vol-b { background: rgba(255,107,0,0.12); color: var(--orange); animation: vlm-pulse 2s infinite; }

@keyframes vlm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.micro-badge.rs-badge { font-size: 7.5px; font-weight: 800; padding: 1px 5px; border-radius: 99px; border: 1px solid transparent; line-height: 1.2; }
.micro-badge.rs-decoupled { background: rgba(74,127,255,0.7); color: #e0e7ff; border-color: rgba(74,127,255,0.5); }
.micro-badge.rs-outperform { background: rgba(0,204,102,0.7); color: #d1fae5; border-color: rgba(0,255,136,0.5); }
.micro-badge.rs-both { background: rgba(234,179,8,0.7); color: #fef3c7; border-color: rgba(234,179,8,0.5); }
.micro-badge.rs-dim { opacity: 0.4; }
.micro-badge.rs-med { opacity: 1; }
.micro-badge.rs-hot { animation: rs-hot-pulse 1.4s ease-in-out infinite; }
@keyframes rs-hot-pulse {
  0%, 100% { box-shadow: 0 0 3px 1px currentColor; transform: scale(1); }
  50% { box-shadow: 0 0 8px 2px currentColor; opacity: 0.85; transform: scale(1.05); }
}

.col-price { font-variant-numeric: tabular-nums; font-weight: 500; font-size: 11px; }
.col-spark { padding: 3px 2px; }
.sparkline { display: block; }

.col-pct { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 10px; text-align: right; padding: 4px 3px !important; }
.c-green { color: var(--green); }
.c-red { color: var(--red); }

.cell-score { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.mini-bar { width: 32px; height: 3px; border-radius: 2px; background: var(--badge-bg); overflow: hidden; flex-shrink: 0; }
.mini-fill { height: 100%; border-radius: 2px; transition: width 0.4s ease; }
.mini-fill.tier-high { background: linear-gradient(90deg, var(--blue), var(--purple)); }
.mini-fill.tier-mid { background: linear-gradient(90deg, var(--green-dim), var(--blue)); }
.mini-fill.tier-low { background: linear-gradient(90deg, var(--orange), var(--green-dim)); }

.score-num { font-weight: 700; font-size: 11px; font-variant-numeric: tabular-nums; }
.score-num.tier-high { color: var(--blue); }
.score-num.tier-mid { color: var(--green); }
.score-num.tier-low { color: var(--orange); }

/* ── Signal Donut ────────────────────────────────────────────────────────── */

.signal-donut { position: relative; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; cursor: default; }
.signal-donut svg { position: absolute; top: 0; left: 0; }
.signal-donut .signal-num { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 800; font-variant-numeric: tabular-nums; position: relative; z-index: 1; line-height: 1; }

/* Signal donut tiers — matches B/O taxonomy */
.signal-num.sig-cold { color: var(--text-muted); }
.signal-num.sig-warming { color: #c8d54a; }
.signal-num.sig-good { color: var(--green); text-shadow: 0 0 5px rgba(0,255,136,0.2); }
.signal-num.sig-elite { color: var(--purple); text-shadow: 0 0 6px rgba(168,85,247,0.5); animation: bo-elite-pulse 1.5s ease-in-out infinite; }
/* Legacy tier names kept for compat */
.signal-num.sig-inferno { color: var(--red); }
.signal-num.sig-blazing { color: var(--orange); }
.signal-num.sig-hot { color: var(--blue); }
.signal-num.sig-warm { color: var(--green-dim); }

.signal-ring { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.signal-ring-bg { fill: none; stroke: var(--badge-bg); stroke-width: 2.5; }
/* Signal ring — matches B/O taxonomy */
.signal-ring.sig-cold { stroke: var(--text-muted); opacity: 0.4; }
.signal-ring.sig-warming { stroke: #c8d54a; }
.signal-ring.sig-good { stroke: var(--green-dim); filter: drop-shadow(0 0 2px rgba(0,204,102,0.3)); }
.signal-ring.sig-elite { stroke: var(--purple); filter: drop-shadow(0 0 3px rgba(168,85,247,0.4)); animation: bo-elite-ring 1.5s ease-in-out infinite; }
.signal-donut.sig-good { filter: drop-shadow(0 0 2px rgba(0,204,102,0.15)); }
.signal-donut.sig-elite { filter: drop-shadow(0 0 3px rgba(168,85,247,0.2)); }
/* Legacy signal tier rings (kept for compat) */
.signal-ring.sig-inferno { stroke: url(#infernoGrad); }
.signal-ring.sig-blazing { stroke: var(--orange); }
.signal-ring.sig-hot { stroke: var(--blue); }
.signal-ring.sig-warm { stroke: var(--green-dim); opacity: 0.6; }
.signal-donut.sig-inferno { animation: sig-pulse 2s infinite; }
@keyframes sig-pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.2); } }
.signal-donut.sig-blazing { filter: drop-shadow(0 0 3px rgba(255,107,0,0.2)); }

/* ── Breakout Score Donut ───────────────────────────────────────────────── */
.bo-score-donut { position: relative; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; cursor: default; }
.bo-score-donut svg { position: absolute; top: 0; left: 0; }
.bo-score-num { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 800; font-variant-numeric: tabular-nums; position: relative; z-index: 1; line-height: 1; }
.bo-ring { fill: none; stroke-width: 2.5; stroke-linecap: round; transition: stroke-dasharray 0.4s ease; }
.bo-ring-bg { fill: none; stroke: var(--badge-bg); stroke-width: 2.5; }

/* ── B/O Score Tiers (uncapped) ──────────────────────────────────────── */

/* Cold (0-39): muted, static */
.bo-sc-cold .bo-score-num { color: var(--text-muted); }
.bo-ring.bo-sc-cold { stroke: var(--text-muted); opacity: 0.4; }

/* Warming (40-59): yellow, static */
.bo-sc-warming .bo-score-num { color: #c8d54a; }
.bo-ring.bo-sc-warming { stroke: #c8d54a; }

/* Good (60-79): green, subtle glow */
.bo-sc-good .bo-score-num { color: var(--green); text-shadow: 0 0 5px rgba(0,255,136,0.2); }
.bo-ring.bo-sc-good { stroke: var(--green-dim); filter: drop-shadow(0 0 2px rgba(0,204,102,0.3)); }

/* Elite (80-99): purple, breathing pulse */
.bo-sc-elite .bo-score-num { color: var(--purple); text-shadow: 0 0 6px rgba(168,85,247,0.5); animation: bo-elite-pulse 1.5s ease-in-out infinite; }
.bo-ring.bo-sc-elite { stroke: var(--purple); filter: drop-shadow(0 0 3px rgba(168,85,247,0.4)); animation: bo-elite-ring 1.5s ease-in-out infinite; }

/* Molten (100-149): orange glow, breathing */
.bo-sc-molten .bo-score-num { color: #ff8c00; text-shadow: 0 0 8px rgba(255,140,0,0.6), 0 0 16px rgba(255,107,0,0.3); animation: bo-molten-pulse 1.2s ease-in-out infinite; }
.bo-ring.bo-sc-molten { stroke: var(--orange); filter: drop-shadow(0 0 5px rgba(255,107,0,0.5)); animation: bo-molten-ring 1.2s ease-in-out infinite; }
.bo-score-donut.bo-sc-molten { filter: drop-shadow(0 0 6px rgba(255,140,0,0.3)); }

/* Inferno (150-199): red/orange, intense pulse, radiating glow */
.bo-sc-inferno .bo-score-num { color: #ff3333; text-shadow: 0 0 12px rgba(255,50,50,0.8), 0 0 28px rgba(255,80,0,0.5), 0 0 4px rgba(255,200,50,0.3); animation: bo-inferno-pulse 0.9s ease-in-out infinite; }
.bo-ring.bo-sc-inferno { stroke: #ff2222; filter: drop-shadow(0 0 8px rgba(255,50,50,0.7)); animation: bo-inferno-ring 0.9s ease-in-out infinite; }
.bo-score-donut.bo-sc-inferno { filter: drop-shadow(0 0 14px rgba(255,50,50,0.4)) drop-shadow(0 0 4px rgba(255,140,0,0.2)); }

/* Supernova (200+): animated flame gradient, intense multi-layer glow */
.bo-sc-supernova .bo-score-num { color: #fff; text-shadow: 0 0 8px rgba(255,200,50,0.9), 0 0 18px rgba(255,107,0,0.7), 0 0 32px rgba(255,68,68,0.5); animation: bo-nova-text 0.7s ease-in-out infinite; }
.bo-ring.bo-sc-supernova { stroke: #ffaa00; filter: drop-shadow(0 0 8px rgba(255,170,0,0.7)); animation: bo-nova-ring 0.7s ease-in-out infinite; }
.bo-score-donut.bo-sc-supernova { animation: bo-nova-glow 1.4s ease-in-out infinite; }

/* ── B/O Animations ─────────────────────────────────────────────────── */

@keyframes bo-elite-pulse { 0%,100% { opacity:1; } 50% { opacity:0.65; } }
@keyframes bo-elite-ring { 0%,100% { filter: drop-shadow(0 0 3px rgba(168,85,247,0.4)); } 50% { filter: drop-shadow(0 0 7px rgba(168,85,247,0.7)); } }

@keyframes bo-molten-pulse {
  0%,100% { opacity:1; text-shadow: 0 0 8px rgba(255,140,0,0.6), 0 0 16px rgba(255,107,0,0.3); }
  50% { opacity:0.85; text-shadow: 0 0 12px rgba(255,140,0,0.8), 0 0 24px rgba(255,107,0,0.5); }
}
@keyframes bo-molten-ring {
  0%,100% { filter: drop-shadow(0 0 5px rgba(255,107,0,0.5)); stroke: var(--orange); }
  50% { filter: drop-shadow(0 0 10px rgba(255,140,0,0.7)); stroke: #ff8c00; }
}

@keyframes bo-inferno-pulse {
  0%,100% { opacity:1; text-shadow: 0 0 12px rgba(255,50,50,0.8), 0 0 28px rgba(255,80,0,0.5), 0 0 4px rgba(255,200,50,0.3); }
  50% { opacity:0.9; text-shadow: 0 0 18px rgba(255,50,50,1), 0 0 36px rgba(255,80,0,0.7), 0 0 6px rgba(255,220,80,0.5); }
}
@keyframes bo-inferno-ring {
  0%,100% { filter: drop-shadow(0 0 8px rgba(255,50,50,0.7)); stroke: #ff2222; }
  50% { filter: drop-shadow(0 0 16px rgba(255,50,50,0.9)); stroke: #ff5500; }
}

@keyframes bo-nova-text {
  0%,100% { text-shadow: 0 0 8px rgba(255,200,50,0.9), 0 0 18px rgba(255,107,0,0.7), 0 0 32px rgba(255,68,68,0.5); }
  50% { text-shadow: 0 0 12px rgba(255,255,150,1), 0 0 24px rgba(255,170,0,0.9), 0 0 40px rgba(255,68,68,0.7); }
}
@keyframes bo-nova-ring {
  0% { stroke: #ffaa00; filter: drop-shadow(0 0 8px rgba(255,170,0,0.7)); }
  33% { stroke: #ff6b00; filter: drop-shadow(0 0 10px rgba(255,107,0,0.8)); }
  66% { stroke: #ff4444; filter: drop-shadow(0 0 12px rgba(255,68,68,0.8)); }
  100% { stroke: #ffaa00; filter: drop-shadow(0 0 8px rgba(255,170,0,0.7)); }
}
@keyframes bo-nova-glow {
  0%,100% { filter: drop-shadow(0 0 12px rgba(255,170,0,0.4)) drop-shadow(0 0 24px rgba(255,68,68,0.2)); }
  50% { filter: drop-shadow(0 0 18px rgba(255,200,50,0.6)) drop-shadow(0 0 36px rgba(255,68,68,0.35)); }
}

/* Signal tooltip */
.signal-tip {
  position: fixed; background: rgba(6,6,11,0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light); border-radius: 8px; padding: 8px 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--text-primary);
  z-index: 300; pointer-events: none; display: none; white-space: nowrap;
  box-shadow: var(--card-shadow); line-height: 1.6;
}
.signal-tip .tip-row { display: flex; justify-content: space-between; gap: 12px; }
.signal-tip .tip-label { color: var(--text-muted); }
.signal-tip .tip-val { font-weight: 700; font-variant-numeric: tabular-nums; }

[data-theme="slate"] .signal-ring-bg, [data-theme="slate"] .bo-ring-bg { stroke: rgba(0,0,0,0.05); }
[data-theme="slate"] .signal-tip { background: rgba(255,255,255,0.94); border-color: var(--border); color: var(--text-primary); box-shadow: var(--card-shadow); }
[data-theme="slate"] .signal-tip .tip-label { color: var(--text-secondary); }

/* Column types */
.col-atr { text-align: right !important; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 11px; }
.atr-arrow { font-size: 8px; margin-left: 2px; }
.atr-expand { color: var(--blue); }
.atr-contract { color: var(--orange); }
.atr-flat { color: var(--text-muted); }

.col-rsi { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 11px; text-align: right; }
.col-rsi.rsi-ob { color: var(--red); }
.col-rsi.rsi-warm { color: var(--orange); }
.col-rsi.rsi-os { color: var(--blue); }
.col-rsi.rsi-cool { color: var(--blue-dim); }

.col-vol1h { text-align: center; padding: 2px 4px; vertical-align: middle; }
.col-vol1h svg { display: block; margin: 0 auto 1px; }
.vol-usd { font-family: 'JetBrains Mono', monospace; font-size: 8px; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }

.col-liq { text-align: center; padding: 4px 2px !important; font-size: 11px; }
.col-pnl { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 10px; text-align: right; padding: 4px 3px !important; }
.col-pnl.pnl-bold { font-weight: 800; font-size: 11px; }
.col-momo { text-align: center; padding: 4px 2px !important; }
.col-mfe { font-variant-numeric: tabular-nums; font-size: 10px; padding: 4px 3px !important; }
.col-age { font-variant-numeric: tabular-nums; color: var(--text-secondary); font-size: 10px; padding: 4px 3px !important; }
.no-data { color: var(--text-muted); }

/* ── Status Pills — bold directional hierarchy ────────────────────────────── */

.status-pill {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 2px 6px; border-radius: 3px; white-space: nowrap;
  border: 1px solid transparent; transition: transform 0.1s;
}
.status-pill:hover { transform: scale(1.04); }

/* Parabolic — vivid magenta/purple, pulsing */
.st-parabolic {
  background: linear-gradient(135deg, rgba(192,60,255,0.3), rgba(168,85,247,0.2));
  color: #d8a0ff; border-color: rgba(192,60,255,0.45);
  box-shadow: 0 0 14px rgba(192,60,255,0.2); text-shadow: 0 0 8px rgba(192,60,255,0.4);
  animation: glow-surge 1.5s infinite;
}

/* Pumping — deep purple */
.st-pumping {
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(124,58,237,0.18));
  color: #c4b5fd; border-color: rgba(139,92,246,0.4);
  box-shadow: 0 0 12px rgba(139,92,246,0.18); text-shadow: 0 0 6px rgba(139,92,246,0.35);
  animation: glow-surge 1.8s infinite;
}

/* Rallying — bright green */
.st-rallying {
  background: linear-gradient(135deg, rgba(0,255,136,0.22), rgba(0,204,102,0.15));
  color: #66ffaa; border-color: rgba(0,255,136,0.35);
  box-shadow: 0 0 10px rgba(0,255,136,0.12); text-shadow: 0 0 5px rgba(0,255,136,0.3);
}

/* Dumping — vivid red */
.st-dumping {
  background: linear-gradient(135deg, rgba(255,68,68,0.25), rgba(220,38,38,0.18));
  color: #ff8888; border-color: rgba(255,68,68,0.4);
  box-shadow: 0 0 10px rgba(255,68,68,0.15); text-shadow: 0 0 5px rgba(255,68,68,0.35);
}

.st-momentum-surge {
  background: linear-gradient(135deg, rgba(74,127,255,0.2), rgba(168,85,247,0.15));
  color: #93b4ff; border-color: rgba(74,127,255,0.35);
  box-shadow: 0 0 12px rgba(74,127,255,0.15); text-shadow: 0 0 6px rgba(74,127,255,0.3);
  animation: glow-surge 2s infinite;
}
.st-breaking-out {
  background: linear-gradient(135deg, rgba(34,211,238,0.18), rgba(6,182,212,0.1));
  color: #67e8f9; border-color: rgba(34,211,238,0.4);
  box-shadow: 0 0 12px rgba(34,211,238,0.18); text-shadow: 0 0 6px rgba(34,211,238,0.4);
  animation: glow-breakout 1.8s ease-in-out infinite;
}
@keyframes glow-breakout {
  0%,100% { box-shadow: 0 0 12px rgba(34,211,238,0.18); }
  50% { box-shadow: 0 0 18px rgba(34,211,238,0.3); }
}
.st-breaking-down {
  background: linear-gradient(135deg, rgba(255,68,68,0.15), rgba(220,38,38,0.1));
  color: #ff8888; border-color: rgba(255,68,68,0.3);
  box-shadow: 0 0 10px rgba(255,68,68,0.12); text-shadow: 0 0 5px rgba(255,68,68,0.3);
}
.st-retest { background: rgba(74,127,255,0.08); color: #93b4ff; border-color: rgba(74,127,255,0.18); }
.st-trending-up {
  background: linear-gradient(135deg, rgba(0,255,136,0.1), rgba(0,204,102,0.06));
  color: #66ffaa; border-color: rgba(0,255,136,0.2); text-shadow: 0 0 3px rgba(0,255,136,0.15);
}
.st-trending-down {
  background: linear-gradient(135deg, rgba(255,68,68,0.1), rgba(220,38,38,0.06));
  color: #ff8888; border-color: rgba(255,68,68,0.2); text-shadow: 0 0 3px rgba(255,68,68,0.15);
}
.st-expanding {
  background: linear-gradient(135deg, rgba(255,107,0,0.14), rgba(255,140,0,0.08));
  color: #ffaa55; border-color: rgba(255,107,0,0.25); text-shadow: 0 0 3px rgba(255,107,0,0.2);
}
.st-consolidating { background: var(--badge-bg); color: var(--text-secondary); border-color: var(--border); }
.st-fading {
  background: linear-gradient(135deg, rgba(255,68,68,0.08), rgba(220,38,38,0.04));
  color: #ff8888; border-color: rgba(255,68,68,0.15); text-shadow: 0 0 3px rgba(255,68,68,0.12);
}
.st-bounce {
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(124,58,237,0.08));
  color: #c4b5fd; border-color: rgba(168,85,247,0.22); text-shadow: 0 0 3px rgba(168,85,247,0.2);
}

@keyframes glow-surge {
  0%, 100% { box-shadow: 0 0 10px rgba(74,127,255,0.12); }
  50% { box-shadow: 0 0 20px rgba(74,127,255,0.25); }
}

/* ── Breakout Phase Badges ────────────────────────────────────────────────── */

.col-status .bo-badge { margin-left: 3px; vertical-align: middle; }
.bo-badge {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 7px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 1px 5px; border-radius: 3px; white-space: nowrap; line-height: 1.4;
  border: 1px solid var(--border);
}

.bo-pop { background: rgba(74,127,255,0.1); color: #93b4ff; border-color: rgba(74,127,255,0.2); animation: bo-pulse 1.5s infinite; }
.bo-drive { background: rgba(0,204,102,0.08); color: #66ffaa; border-color: rgba(0,255,136,0.15); }
.bo-thrust { background: rgba(0,204,102,0.1); color: var(--green); border-color: rgba(0,255,136,0.2); }
.bo-surge { background: rgba(0,255,136,0.12); color: #66ffaa; border-color: rgba(0,255,136,0.25); animation: bo-pulse 1.5s infinite; }
.bo-rip { background: rgba(255,107,0,0.12); color: #ffaa55; border-color: rgba(255,107,0,0.22); }
.bo-escape { background: linear-gradient(135deg, rgba(74,127,255,0.1), rgba(168,85,247,0.06)); color: #93b4ff; border-color: rgba(74,127,255,0.22); }
.bo-fade { background: rgba(255,68,68,0.06); color: #ff8888; border-color: rgba(255,68,68,0.12); }
.bo-retest { background: rgba(74,127,255,0.06); color: #93b4ff; border-color: rgba(74,127,255,0.14); }
.bo-held { background: rgba(0,204,102,0.08); color: #66ffaa; border-color: rgba(0,255,136,0.15); }
.bo-lost { background: rgba(255,68,68,0.06); color: var(--red); border-color: rgba(255,68,68,0.14); }

@keyframes bo-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.bo-bos-bull { background: rgba(0,204,102,0.06); color: #66ffaa; border-color: rgba(0,255,136,0.14); }
.bo-bos-bear { background: rgba(255,68,68,0.06); color: #ff8888; border-color: rgba(255,68,68,0.14); }
.bo-choch-bull { background: rgba(0,204,102,0.1); color: #66ffaa; border-color: rgba(0,255,136,0.22); animation: bo-pulse 1.5s infinite; }
.bo-choch-bear { background: rgba(255,68,68,0.1); color: #ff8888; border-color: rgba(255,68,68,0.22); animation: bo-pulse 1.5s infinite; }
.bo-sqz-active { background: rgba(255,107,0,0.06); color: var(--orange); border-color: rgba(255,107,0,0.14); }
.bo-sqz-fire { background: rgba(0,255,136,0.1); color: #66ffaa; border-color: rgba(0,255,136,0.22); animation: bo-pulse 1.5s infinite; }
.bo-macd-bull { background: rgba(0,204,102,0.05); color: #66ffaa; border-color: rgba(0,255,136,0.12); }
.bo-macd-bear { background: rgba(255,68,68,0.05); color: #ff8888; border-color: rgba(255,68,68,0.12); }

/* ── Status Overflow Hover ────────────────────────────────────────────────── */

.status-badges {
  display: flex; align-items: center; gap: 3px; overflow: hidden; white-space: nowrap; position: relative;
  mask-image: linear-gradient(to right, #000 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 75%, transparent 100%);
}
.col-status:hover { overflow: visible !important; z-index: 30; }
.col-status:hover .status-badges {
  overflow: visible; position: absolute; top: 50%; left: 0; transform: translateY(-50%); z-index: 50;
  background: var(--bg-card); padding: 4px 8px; border-radius: 8px;
  border: 1px solid var(--border-light); box-shadow: var(--card-shadow); width: max-content;
  mask-image: none; -webkit-mask-image: none;
}
.col-status { white-space: nowrap; position: relative; }

/* ── Empty State ──────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px 80px; color: var(--text-muted); grid-column: 1 / -1; }
.empty-state h2 { font-family: 'Outfit', sans-serif; font-size: 16px; color: var(--text-secondary); margin-bottom: 8px; font-weight: 600; letter-spacing: 1px; }
.empty-state p { font-size: 11px; max-width: 380px; margin: 0 auto; line-height: 1.7; }
.empty-radar { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; border: 1px solid rgba(74,127,255,0.15); position: relative; display: flex; align-items: center; justify-content: center; }
.empty-radar::before, .empty-radar::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid var(--blue); animation: radar-ping 3s ease-out infinite; }
.empty-radar::before { width: 30px; height: 30px; }
.empty-radar::after { width: 30px; height: 30px; animation-delay: 1.5s; }
.empty-radar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
@keyframes radar-ping { 0% { width: 20px; height: 20px; opacity: 0.6; } 100% { width: 80px; height: 80px; opacity: 0; } }

/* ── Tick Flash ───────────────────────────────────────────────────────────── */
.col-1m { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 10px; text-align: right; transition: color 0.2s; }
.col-price { transition: background 0.2s; }
@keyframes tick-flash-up { 0% { background: rgba(0,255,136,0.15); } 100% { background: transparent; } }
@keyframes tick-flash-down { 0% { background: rgba(255,68,68,0.15); } 100% { background: transparent; } }
.tick-up { animation: tick-flash-up 0.4s ease-out forwards; }
.tick-down { animation: tick-flash-down 0.4s ease-out forwards; }

/* ── TV Hover Chart ──────────────────────────────────────────────────────── */
.tv-hover { cursor: pointer; text-decoration-style: dotted; text-decoration-line: underline; text-decoration-color: rgba(125,211,252,0.2); text-underline-offset: 2px; }
.tv-hover:hover { text-decoration-color: var(--blue); filter: brightness(1.12); }

.tv-drop {
  display: none; position: fixed; z-index: 1999; width: 520px; height: 360px;
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6); overflow: hidden;
}
.tv-drop.open { display: block; }
.tv-chart-inner { width: 100%; height: 100%; }

/* ── Theme Toggle — matches landing page ──────────────────────────────── */
.theme-toggle { display: flex; gap: 1px; background: var(--badge-bg); border-radius: 8px; padding: 2px; }
.theme-btn {
  background: none; border: none; color: var(--text-muted); font-size: 11px;
  padding: 4px 10px; border-radius: 6px; cursor: pointer; transition: all 0.2s; line-height: 1;
}
.theme-btn:hover { color: var(--text-secondary); }
.theme-btn.active { color: #fff; background: var(--bg-card); box-shadow: 0 1px 3px rgba(0,0,0,0.3); }

/* ── Slate Theme Overrides ───────────────────────────────────────────────── */
[data-theme="slate"] .header {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  border-bottom: 1px solid var(--border);
}
[data-theme="slate"] .cat-btn.active { background: var(--blue); color: #fff; box-shadow: 0 1px 3px rgba(37,99,235,0.3); }
[data-theme="slate"] .scan-btn { border-color: var(--border-light); color: var(--text-secondary); }
[data-theme="slate"] .scan-btn:hover { background: rgba(37,99,235,0.06); color: var(--blue); border-color: var(--blue); }
[data-theme="slate"] .stats-bar { background: #dadde6; border-bottom: 1px solid #c0c5d0; }
[data-theme="slate"] .panel-header { background: #dadde6; }
[data-theme="slate"] .rift-header { color: var(--purple); }

/* Table */
[data-theme="slate"] .rift-table thead th { background: #d5d9e2; color: #363d4d; border-bottom: 2px solid #b8bdc8; font-weight: 700; }
[data-theme="slate"] .rift-table td { background: var(--bg-row); border-bottom: 1px solid #ccd0da; }
[data-theme="slate"] .rift-table tbody tr:nth-child(even) td { background: #e2e5ed; }
[data-theme="slate"] .rift-table tbody tr:hover td { background: #d2d7e4; }
[data-theme="slate"] .rift-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 rgba(37,99,235,0.4); }
[data-theme="slate"] .tv-drop { box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px var(--border); }

/* Status pills — punchy solid fills */
[data-theme="slate"] .status-pill { text-shadow: none !important; font-weight: 800; }
[data-theme="slate"] .st-parabolic { background: #f3e8ff; color: #6b21a8; border: 1px solid #c4b5fd; box-shadow: none; }
[data-theme="slate"] .st-pumping { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; box-shadow: none; }
[data-theme="slate"] .st-rallying { background: #dcfce7; color: #166534; border: 1px solid #86efac; box-shadow: none; }
[data-theme="slate"] .st-dumping { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; box-shadow: none; }
[data-theme="slate"] .st-momentum-surge { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
[data-theme="slate"] .st-breaking-out { background: #cffafe; color: #155e75; border: 1px solid #67e8f9; }
[data-theme="slate"] .st-breaking-down { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
[data-theme="slate"] .st-trending-up { background: #dcfce7; color: #166534; border: 1px solid #a7f3d0; }
[data-theme="slate"] .st-trending-down { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
[data-theme="slate"] .st-expanding { background: #ffedd5; color: #9a3412; border: 1px solid #fdba74; }
[data-theme="slate"] .st-consolidating { background: #f3f4f6; color: #4b5563; border: 1px solid #d1d5db; }
[data-theme="slate"] .st-bounce { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; }
[data-theme="slate"] .st-fading { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
[data-theme="slate"] .st-retest { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* Breakout badges — solid fills */
[data-theme="slate"] .bo-badge { font-weight: 800; }
[data-theme="slate"] .bo-pop { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
[data-theme="slate"] .bo-drive, [data-theme="slate"] .bo-held { background: #dcfce7; color: #166534; border-color: #a7f3d0; }
[data-theme="slate"] .bo-thrust, [data-theme="slate"] .bo-surge { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
[data-theme="slate"] .bo-rip { background: #ffedd5; color: #9a3412; border-color: #fdba74; }
[data-theme="slate"] .bo-escape, [data-theme="slate"] .bo-retest { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
[data-theme="slate"] .bo-fade, [data-theme="slate"] .bo-lost { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

[data-theme="slate"] .col-status:hover .status-badges { background: #fff; border-color: var(--border-light); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
[data-theme="slate"] .mini-bar { background: rgba(0,0,0,0.06); }
[data-theme="slate"] .micro-badge.stale-b { background: rgba(0,0,0,0.05); color: var(--text-secondary); }
[data-theme="slate"] .micro-badge.vol-b { background: rgba(234,88,12,0.1); color: #c2410c; }
[data-theme="slate"] .badge-count { background: var(--purple); color: #fff; box-shadow: 0 1px 3px rgba(124,58,237,0.3); }
[data-theme="slate"] .logo::before { background: linear-gradient(135deg, var(--purple), #6d28d9); box-shadow: 0 0 12px rgba(124,58,237,0.2); }

/* Text colors — darker for light bg readability */
[data-theme="slate"] .c-green { color: #15803d; }
[data-theme="slate"] .c-red { color: #b91c1c; }
[data-theme="slate"] .col-pnl.c-green { color: #15803d; }
[data-theme="slate"] .col-pnl.c-red { color: #b91c1c; }
[data-theme="slate"] .vol-usd { color: #1d4ed8; }

/* Donut rings — darker strokes */
[data-theme="slate"] .signal-num.sig-hot { color: #1d4ed8; }
[data-theme="slate"] .signal-ring.sig-hot { stroke: #2563eb; }
[data-theme="slate"] .signal-num.sig-warm { color: #15803d; }
[data-theme="slate"] .signal-ring.sig-warm { stroke: #16a34a; opacity: 0.8; }
[data-theme="slate"] .signal-num.sig-blazing { color: #c2410c; }
[data-theme="slate"] .signal-num.sig-inferno { color: #b91c1c; }
[data-theme="slate"] .bo-sc-good .bo-score-num { color: #15803d; text-shadow: none; }
[data-theme="slate"] .bo-ring.bo-sc-good { stroke: #16a34a; filter: none; }
[data-theme="slate"] .bo-sc-elite .bo-score-num { color: #6d28d9; text-shadow: none; }
[data-theme="slate"] .bo-ring.bo-sc-elite { stroke: #7c3aed; filter: none; }
[data-theme="slate"] .bo-sc-molten .bo-score-num { color: #c2410c; }
[data-theme="slate"] .bo-ring.bo-sc-molten { stroke: #ea580c; }
[data-theme="slate"] .bo-sc-inferno .bo-score-num { color: #b91c1c; }
[data-theme="slate"] .bo-ring.bo-sc-inferno { stroke: #dc2626; }
[data-theme="slate"] .bo-sc-supernova .bo-score-num { color: #92400e; text-shadow: 0 0 6px rgba(234,88,12,0.4); }
[data-theme="slate"] .bo-ring.bo-sc-supernova { stroke: #f97316; }

/* RS badges */
[data-theme="slate"] .micro-badge.rs-decoupled { background: rgba(37,99,235,0.8); }
[data-theme="slate"] .micro-badge.rs-outperform { background: rgba(22,163,74,0.8); }
[data-theme="slate"] .micro-badge.rs-both { background: rgba(217,119,6,0.8); }

/* Row bias — bold left bar */
[data-theme="slate"] .rift-table tr.row-bias-bullish td:first-child { box-shadow: inset 3px 0 0 rgba(22,163,74,0.8); }
[data-theme="slate"] .rift-table tr.row-bias-bearish td:first-child { box-shadow: inset 3px 0 0 rgba(220,38,38,0.8); }

/* Theme toggle */
[data-theme="slate"] .theme-toggle { background: rgba(0,0,0,0.04); border: 1px solid var(--border); }
[data-theme="slate"] .theme-btn.active { background: var(--bg-card); color: var(--text-primary); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* ── Event Drawer ────────────────────────────────────────────────────────── */
.event-drawer {
  position: fixed; top: 0; right: 0; width: 350px; height: 100vh;
  background: var(--bg-header); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-left: 1px solid var(--border); z-index: 150;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.4);
}
.event-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.drawer-header h3 { font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 700; color: var(--text-primary); letter-spacing: 1px; text-transform: uppercase; }
.event-filter {
  flex: 1; background: var(--badge-bg); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-primary); font-family: 'JetBrains Mono', monospace; font-size: 9px; padding: 4px 8px; outline: none;
}
.event-filter:focus { border-color: var(--blue); }
.event-filter::placeholder { color: var(--text-muted); }
.drawer-close { background: none; border: none; color: var(--text-muted); font-size: 16px; cursor: pointer; padding: 0 4px; line-height: 1; transition: color 0.15s; }
.drawer-close:hover { color: var(--red); }
.event-list { flex: 1; overflow-y: auto; padding: 4px 0; }
.event-row {
  display: flex; align-items: baseline; gap: 6px; padding: 6px 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  border-left: 2px solid var(--border); border-bottom: 1px solid var(--border);
  flex-wrap: wrap; transition: background 0.12s, border-color 0.12s;
}
.event-row:hover { background: var(--bg-row-hover); border-left-color: var(--blue); }
.event-icon { font-size: 10px; flex-shrink: 0; }
.event-symbol { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--symbol-color); font-size: 10px; flex-shrink: 0; }
.event-message { color: var(--text-primary); font-size: 9px; }
.event-reason { color: var(--text-muted); font-size: 8px; }
.event-time { color: var(--text-muted); font-size: 8px; margin-left: auto; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.event-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 10px; }

[data-theme="slate"] .event-drawer { box-shadow: -10px 0 40px rgba(0,0,0,0.06); }
[data-theme="slate"] .event-filter { background: rgba(0,0,0,0.02); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .header { flex-wrap: wrap; gap: 8px; padding: 0 16px; height: auto; min-height: 56px; padding-top: 10px; padding-bottom: 10px; }
  .header-spacer { display: none; }
  .header-left { flex: 1; min-width: 0; }
  .header-center { flex: 0 0 auto; }
  .header-right { flex: 1 1 100%; order: 3; justify-content: flex-start; gap: 12px; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 2px; }
  .volume-control .volume-slider { width: 36px; }
  .scan-info .countdown { display: none; }
  .stats-bar { padding: 6px 16px; }
  .panel-header { padding: 7px 16px; }
}
@media (max-width: 900px) {
  .header { padding: 8px 12px; }
  .header-left { gap: 10px; }
  .header-right { gap: 8px; font-size: 9px; }
  .volume-control { display: none; }
  .theme-toggle { display: none; }
  .stats-bar { flex-wrap: wrap; gap: 8px; padding: 6px 12px; font-size: 9px; }
}
@media (max-width: 768px) {
  .header { flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
  .header-center { flex: 1 1 100%; order: 2; justify-content: center; }
  .btc-dom { display: none; }
  .stats-bar { gap: 6px; padding: 5px 10px; }
  .logo { font-size: 14px; }
}

/* ── Scrollbars ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }
[data-theme="slate"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); }
[data-theme="slate"] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.15); }
