/* ===== CSS Variables ===== */
:root {
  --bg-primary: #0b0e14;
  --bg-secondary: #111620;
  --bg-card: #151c28;
  --bg-hover: #1a2332;
  --bg-active: #1e2a3d;
  --surface-glass: rgba(18, 25, 38, 0.78);
  --surface-glass-strong: rgba(22, 31, 47, 0.9);
  --gradient-panel: linear-gradient(135deg, rgba(28, 38, 57, 0.96), rgba(14, 20, 31, 0.98));
  --gradient-edge: linear-gradient(90deg, rgba(75, 139, 255, 0.85), rgba(6, 182, 212, 0.52), rgba(34, 197, 94, 0.18));
  --border: #1e2a3d;
  --border-color: #1e2a3d;
  --border-light: #2a3a52;

  --text-primary: #e8edf5;
  --text-secondary: #8892a8;
  --text-muted: #5a6480;

  --accent: #4b8bff;
  --accent-blue: #4b8bff;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --accent-yellow: #eab308;
  --accent-purple: #a855f7;
  --accent-cyan: #06b6d4;
  --accent-orange: #f97316;
  --accent-pink: #ec4899;

  --sol-color: #9945ff;
  --base-color: #0052ff;
  --bsc-color: #f0b90b;
  --eth-color: #627eea;
  --robinhood-color: #00c805;

  --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Cascadia Code', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-glow-blue: 0 0 20px rgba(75, 139, 255, 0.15);
  --shadow-glow-green: 0 0 15px rgba(34, 197, 94, 0.1);
  --shadow-glow-red: 0 0 15px rgba(239, 68, 68, 0.15);
  --shadow-glow-yellow: 0 0 15px rgba(234, 179, 8, 0.1);

  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 14px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(75, 139, 255, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(168, 85, 247, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: #6ba3ff;
  text-decoration: underline;
}

/* ===== Page Navigation ===== */
.page-nav {
  display: flex;
  gap: 4px;
  margin: 0 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3px;
}

.page-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 9px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.page-tab:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.page-tab.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.page-tab .page-tab-icon {
  font-size: 15px;
  line-height: 1;
}

/* Hide decorative icon shells when empty (emoji icons removed) */
.page-tab-icon:empty,
.stat-icon:empty,
.section-icon:empty,
.btc-card-icon:empty,
.empty-icon:empty,
.error-icon:empty,
.monitor-empty-icon:empty,
.signals-empty-icon:empty {
  display: none !important;
}

.page-content {
  display: none;
}

.page-content.active {
  display: block;
}

/* ===== Bitcoin Dashboard ===== */
.btc-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* BTC Hero Card */
.btc-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}

.btc-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(247, 147, 26, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.btc-hero-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 12px;
  color: var(--text-muted);
}

.btc-hero-content {
  animation: fadeIn 0.4s ease;
}

.btc-hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btc-hero-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #f7931a, #f9b24a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(247, 147, 26, 0.3);
}

.btc-hero-title-group {
  flex: 1;
  min-width: 100px;
}

.btc-hero-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.btc-hero-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.btc-hero-price-group {
  text-align: right;
}

.btc-hero-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.btc-hero-change {
  font-size: 16px;
  font-weight: 600;
  margin-top: 4px;
}

.btc-hero-change.positive { color: var(--accent-green); }
.btc-hero-change.negative { color: var(--accent-red); }

/* Composite market bias strip */
.btc-bias-strip {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 12, 20, 0.45);
}

.btc-bias-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.btc-bias-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  font-weight: 700;
}

.btc-bias-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-secondary);
}

.btc-bias-value.tone-bull,
.btc-bias-value.tone-bull-soft { color: var(--accent-green); }
.btc-bias-value.tone-bear,
.btc-bias-value.tone-bear-soft { color: var(--accent-red); }
.btc-bias-value.tone-neutral { color: var(--accent-yellow); }

.btc-bias-score {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.btc-bias-bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

.btc-bias-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent-yellow);
  transition: width 0.35s ease, background 0.25s ease;
  min-width: 4%;
}

.btc-bias-bar-fill.tone-bull,
.btc-bias-bar-fill.tone-bull-soft {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.5), var(--accent-green));
}
.btc-bias-bar-fill.tone-bear,
.btc-bias-bar-fill.tone-bear-soft {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.45), var(--accent-red));
}
.btc-bias-bar-fill.tone-neutral {
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.4), var(--accent-yellow));
}

.btc-bias-summary {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
}

.btc-funding-venues {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0 2px;
}

.btc-funding-venues-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.35px;
  margin-right: 4px;
}

.btc-fund-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
}

.btc-fund-chip.pos {
  color: var(--accent-green);
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.1);
}

.btc-fund-chip.neg {
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.1);
}

/* 自信号源状态条 */
.btc-self-source-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0 6px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(6, 182, 212, 0.25);
  background: rgba(6, 182, 212, 0.08);
}

.btc-self-source-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent-cyan);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.12);
}

.btc-self-source-meta {
  flex: 1;
  min-width: 140px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Period venue board */
.btc-card-wide {
  grid-column: 1 / -1;
}

.btc-tf-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.btc-tf-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.5);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btc-tf-btn:hover {
  border-color: rgba(75, 139, 255, 0.35);
  color: var(--text-secondary);
}

.btc-tf-btn.active {
  border-color: rgba(75, 139, 255, 0.55);
  background: rgba(75, 139, 255, 0.16);
  color: var(--accent-blue);
}

.btc-avg-banner {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(75, 139, 255, 0.22);
  background: linear-gradient(135deg, rgba(75, 139, 255, 0.1), rgba(6, 182, 212, 0.06));
}

.btc-avg-banner-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.btc-avg-banner-title span {
  color: var(--accent-blue);
  margin-left: 6px;
}

.btc-period-agg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 0;
}

/* 资金费率异常节点特别提醒 */
.btc-fund-outlier-alert {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(234, 179, 8, 0.35);
  background: rgba(234, 179, 8, 0.08);
}

.btc-fund-outlier-title {
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.btc-fund-outlier-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btc-fund-outlier-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(8, 12, 20, 0.45);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.btc-fund-outlier-chip b {
  font-family: var(--font-sans);
  font-weight: 800;
  color: #fde68a;
}

.btc-fund-outlier-chip em {
  font-style: normal;
  font-size: 10px;
  color: var(--text-muted);
}

.btc-fund-outlier-chip.pos { border-color: rgba(34, 197, 94, 0.35); }
.btc-fund-outlier-chip.neg { border-color: rgba(239, 68, 68, 0.35); }

.btc-fund-outlier-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.btc-fund-outlier-row td {
  background: rgba(234, 179, 8, 0.06) !important;
  font-size: 11px;
}

.btc-fund-outlier-row .outlier-tag {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fbbf24;
  white-space: nowrap;
}

.btc-fund-outlier-row .outlier-explain {
  color: var(--text-muted);
  font-size: 11px;
}

.btc-stage-strip {
  margin-bottom: 12px;
}

.btc-stage-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.btc-stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.btc-stage-card {
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 12, 20, 0.45);
}

.btc-stage-card.active-stage {
  border-color: rgba(75, 139, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(75, 139, 255, 0.12);
}

.btc-stage-card.empty-stage {
  opacity: 0.55;
}

.btc-stage-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.btc-stage-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 4px;
}

.btc-stage-row span {
  color: var(--text-muted);
}

.btc-stage-row strong {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.btc-stage-row strong.pos { color: var(--accent-green); }
.btc-stage-row strong.neg { color: var(--accent-red); }

.btc-venue-avg-row {
  background: rgba(75, 139, 255, 0.08);
}

.btc-venue-avg-row td {
  font-weight: 800 !important;
  border-bottom: none !important;
}

/* 自信号源三量图 · TradingView 式干净主图 */
.btc-tri-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.btc-tri-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tri-leg-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.45);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  opacity: 0.55;
}

.tri-leg-btn i {
  display: inline-block;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.tri-leg-btn i.leg-price { background: #e2e8f0; height: 3px; width: 14px; }
.tri-leg-btn i.leg-vol {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(52, 211, 153, 0.85);
}
.tri-leg-btn i.leg-fund {
  background: linear-gradient(90deg, #10b981 50%, #ef4444 50%);
  height: 8px;
  width: 12px;
  border-radius: 2px;
}
.tri-leg-btn i.leg-oi { background: #fbbf24; }

.tri-leg-btn:hover {
  border-color: rgba(148, 163, 184, 0.35);
  color: var(--text-secondary);
  opacity: 0.85;
}

.tri-leg-btn.active {
  opacity: 1;
  color: var(--text-primary);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}

.tri-leg-btn[data-series="price"].active {
  border-color: rgba(226, 232, 240, 0.28);
  background: rgba(226, 232, 240, 0.06);
}

.btc-unit-bar {
  display: flex;
  gap: 6px;
}

.btc-unit-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  width: 36px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

.btc-unit-btn:hover {
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--text-secondary);
}

.btc-unit-btn.active {
  border-color: rgba(6, 182, 212, 0.55);
  background: rgba(6, 182, 212, 0.16);
  color: var(--accent-cyan);
}

.btc-tri-chart-shell {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(8, 12, 20, 0.72));
  overflow: hidden;
}

.tri-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.tri-hud-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  min-width: 0;
}

.tri-hud-k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.tri-hud-price {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: #f1f5f9;
  line-height: 1;
}

.tri-hud-date {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.tri-hud-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tri-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(8, 12, 20, 0.45);
  font-size: 12px;
}

.tri-chip em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.tri-chip b {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.tri-chip b.pos { color: #34d399; }
.tri-chip b.neg { color: #f87171; }

.btc-tri-chart-wrap {
  position: relative;
  width: 100%;
  height: 440px;
  background: transparent;
}

.btc-tri-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

.tri-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 148px;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(8, 12, 20, 0.92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  font-size: 12px;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tri-tooltip[hidden] { display: none !important; }

.tri-tooltip .tt-date {
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.tri-tooltip .tt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.tri-tooltip .tt-row span { color: var(--text-muted); }
.tri-tooltip .tt-row b {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #e2e8f0;
}
.tri-tooltip .tt-row b.pos { color: #34d399; }
.tri-tooltip .tt-row b.neg { color: #f87171; }
.tri-tooltip .tt-row.price b { color: #f8fafc; font-size: 13px; }

.btc-tri-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 720px) {
  .btc-tri-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .btc-tri-chart-wrap {
    height: 380px;
  }
  .tri-hud {
    padding: 10px 12px 8px;
  }
  .tri-hud-price {
    font-size: 22px;
  }
}

.btc-period-agg-item {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 12, 20, 0.4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btc-period-agg-item em {
  font-style: normal;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.btc-period-agg-item strong {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.btc-period-agg-item strong.pos { color: var(--accent-green); }
.btc-period-agg-item strong.neg { color: var(--accent-red); }

.btc-venue-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.btc-venue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.btc-venue-table th,
.btc-venue-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.btc-venue-table th {
  background: rgba(148, 163, 184, 0.06);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.btc-venue-table td {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
}

.btc-venue-table td.venue-name {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text-primary);
}

.btc-venue-table td.venue-name small {
  margin-left: 3px;
  color: var(--accent-yellow);
  cursor: help;
}

.btc-venue-table td.pos { color: var(--accent-green); }
.btc-venue-table td.neg { color: var(--accent-red); }

.btc-venue-empty {
  text-align: center;
  color: var(--text-muted) !important;
  font-family: var(--font-sans) !important;
  padding: 18px 10px !important;
}

.btc-period-hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 720px) {
  .btc-period-agg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .btc-stage-grid {
    grid-template-columns: 1fr;
  }
}

.btc-hero-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.btc-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btc-detail-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btc-detail-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* BTC Source Selector */
.btc-source-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  flex-wrap: wrap;
}

.btc-source-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  white-space: nowrap;
}

.btc-source-btns {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.btc-source-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
  white-space: nowrap;
}

.btc-source-btn:hover {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border-color: var(--border-light);
}

.btc-source-btn.active {
  background: rgba(247, 147, 26, 0.12);
  border-color: rgba(247, 147, 26, 0.4);
  color: #f7931a;
}

.btc-source-btn .source-btn-icon {
  font-size: 13px;
  line-height: 1;
}

.btc-source-btn .source-btn-label {
  font-size: 12px;
  font-weight: 500;
}

.btc-source-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  font-size: 11px;
}

.source-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.source-status-dot.healthy {
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.source-status-dot.warning {
  background: var(--accent-yellow);
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.4);
  animation: blink 1s ease-in-out infinite;
}

.source-status-dot.error {
  background: var(--accent-red);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.source-status-text {
  color: var(--text-secondary);
  font-weight: 500;
}

.source-status-text span.fallback {
  color: var(--accent-yellow);
}

.source-status-text .source-name {
  color: var(--text-primary);
  font-weight: 600;
}

/* BTC Chart */
.btc-hero-chart {
  margin-top: 20px;
}

.btc-chart-container {
  width: 100%;
  height: 60px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  overflow: hidden;
}

.btc-chart-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* BTC Grid Cards */
.btc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.btc-card:hover {
  border-color: var(--accent);
}

.btc-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.btc-card-icon {
  font-size: 18px;
  line-height: 1;
}

.btc-card-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.btc-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  font-weight: 500;
}

.btc-card-body {
  padding: 16px 20px;
}

.btc-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.btc-metric:last-child {
  border-bottom: none;
}

.btc-metric-label {
  font-size: 13px;
  color: var(--text-muted);
}

.btc-metric-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.btc-metric-value.positive { color: var(--accent-green); }
.btc-metric-value.negative { color: var(--accent-red); }

/* ===== Funding History Card ===== */
.funding-history-chart {
  width: 100%;
  height: 72px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 4px;
}

.funding-history-chart canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.funding-history-stats {
  margin-top: 8px;
}

/* ===== 田字清算图：左多/右空 · 上下 OI ===== */
.tian-frame,
.tian-frame-map {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(30, 41, 59, 0.35), transparent 55%),
    #070b12;
  overflow: hidden;
  min-height: 420px;
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.06);
}

.tian-canvas {
  display: block;
  width: 100%;
  height: 420px;
  cursor: crosshair;
}

.tian-click-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  background: rgba(8, 12, 20, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  transform: translate(-50%, -120%);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.tian-click-tip.show {
  opacity: 1;
}

/* 田字正下方浮窗：现价 / 清算量 / OI */
.tian-float {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tian-float-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 108px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.tian-float-chip strong {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.tian-float-chip.long strong { color: #4ade80; }
.tian-float-chip.short strong { color: #f87171; }

.tian-float-ico {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  flex-shrink: 0;
  position: relative;
}

/* 现价图标 */
.tian-ico-px {
  background: linear-gradient(145deg, rgba(126, 182, 255, 0.25), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(126, 182, 255, 0.4);
}
.tian-ico-px::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2px solid #7eb6ff;
  box-shadow: 0 0 0 1px rgba(126, 182, 255, 0.2);
}

/* 多头清算 */
.tian-ico-long {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.tian-ico-long::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 5px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: #22c55e;
}

/* 空头清算 */
.tian-ico-short {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.tian-ico-short::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 5px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: #ef4444;
}

/* OI */
.tian-ico-oi {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.tian-ico-oi::before,
.tian-ico-oi::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1.5px;
  background: #94a3b8;
}
.tian-ico-oi::before { top: 7px; }
.tian-ico-oi::after { bottom: 7px; }
.tian-ico-oi {
  background-image: linear-gradient(#94a3b8, #94a3b8);
  background-size: 1.5px 100%;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 720px) {
  .tian-canvas { height: 320px; }
  .tian-frame-map { min-height: 320px; }
  .tian-float-chip { min-width: calc(50% - 10px); flex: 1 1 40%; }
}

/* ===== Long/Short Ratio Card (legacy) ===== */
.ls-grid,
.ls-agg-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ls-agg-ratio-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.ls-agg-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ls-agg-ratio {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1.1;
}

.ls-agg-ratio.bullish { color: var(--accent-green); }
.ls-agg-ratio.bearish { color: var(--accent-red); }
.ls-agg-ratio.neutral { color: var(--accent-yellow); }

.ls-agg-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.ls-agg-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 48px;
  font-size: 11px;
  color: var(--text-muted);
}

.ls-agg-side.long strong { color: var(--accent-green); }
.ls-agg-side.short { text-align: right; }
.ls-agg-side.short strong { color: var(--accent-red); }

.ls-agg-side strong {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.ls-agg-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: rgba(148, 163, 184, 0.12);
}

.liq-long-amt .liq-summary-value { color: var(--accent-green); }
.liq-short-amt .liq-summary-value { color: var(--accent-red); }

.ls-source-card {
  display: none; /* 已取消分源卡片/图标 */
}

.ls-source-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ls-source-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.ls-ratio-value {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.ls-bar-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ls-bar-label {
  font-size: 10px;
  color: var(--text-muted);
  min-width: 50px;
  white-space: nowrap;
}

.ls-bar-label.right {
  text-align: right;
}

.ls-bar-track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.15);
  display: flex;
  overflow: hidden;
}

.ls-bar-fill {
  height: 100%;
  transition: width 0.6s ease;
}

.ls-bar-fill.long {
  background: var(--accent-green);
  border-radius: 4px 0 0 4px;
}

.ls-bar-fill.short {
  background: var(--accent-red);
  border-radius: 0 4px 4px 0;
}

.ls-signal-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}

.ls-signal-tag.bullish {
  color: var(--accent-green);
  background: rgba(34, 197, 94, 0.1);
}

.ls-signal-tag.bearish {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
}

.ls-signal-tag.neutral {
  color: var(--accent-yellow);
  background: rgba(234, 179, 8, 0.1);
}

.ls-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.ls-summary-label {
  font-size: 12px;
  color: var(--text-muted);
}

.ls-summary-value {
  font-size: 13px;
  font-weight: 600;
}

.ls-summary-value.bullish {
  color: var(--accent-green);
}

.ls-summary-value.bearish {
  color: var(--accent-red);
}

.ls-summary-value.neutral {
  color: var(--accent-yellow);
}

/* ===== Liquidations Card ===== */
.liq-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.liq-summary-item {
  text-align: center;
  padding: 10px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
}

.liq-summary-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.liq-summary-value {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.liq-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.liq-bar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.liq-bar-label {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 55px;
}

.liq-bar-track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}

.liq-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.liq-bar-fill.long {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.liq-bar-fill.short {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.liq-bar-pct {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
  min-width: 40px;
  text-align: right;
}

.liq-sources {
  margin-top: 10px;
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
}

/* ===== HyperLiquid Card ===== */
.hl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

@media (max-width: 640px) {
  .hl-grid {
    grid-template-columns: 1fr;
  }
  .liq-summary-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .btc-grid {
    grid-template-columns: 1fr;
  }
  .btc-hero-details {
    grid-template-columns: repeat(2, 1fr);
  }
  .btc-hero-price {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .btc-hero {
    padding: 20px 16px;
  }
  .btc-hero-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .btc-hero-price-group {
    text-align: left;
    width: 100%;
  }
  .btc-detail-value {
    font-size: 13px;
  }
  .page-nav {
    margin: 0 4px;
    overflow-x: auto;
  }
  .page-tab {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* ===== dream studio brand mark（专用字标资产，无 SHAWEEEN 叠字） ===== */
.dream-studio {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  line-height: 0;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.22s ease;
  animation: ds-logo-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dream-studio:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.dream-studio:active {
  transform: scale(0.98);
}

.dream-studio:focus-visible {
  outline: 2px solid rgba(126, 182, 255, 0.75);
  outline-offset: 3px;
}

.dream-studio-img {
  display: block;
  width: 118px;
  height: auto;
  max-height: 74px;
  border-radius: 14px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.dream-studio-img--lg {
  width: 148px;
  max-height: 92px;
  border-radius: 16px;
}

@keyframes ds-logo-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dream-studio {
    animation: none;
  }
}

.logo-icon {
  font-size: 28px;
  line-height: 1;
}

.logo-text h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.logo-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 1px;
}

/* Header X handle signature */
.sig-handle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #94a3b8;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.sig-handle:hover {
  color: #e2e8f0;
  border-color: rgba(75, 139, 255, 0.45);
  background: rgba(30, 41, 59, 0.85);
  box-shadow: 0 0 0 1px rgba(75, 139, 255, 0.12), 0 0 18px rgba(75, 139, 255, 0.12);
}

.sig-handle:focus-visible {
  outline: 2px solid rgba(75, 139, 255, 0.7);
  outline-offset: 2px;
}

.sig-x-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Status Indicator — lights only (green / yellow), no descriptive 说明 text */
.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px 12px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  min-width: 28px;
}

.status-text,
.status-text-hidden {
  display: none !important;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.45);
  transition: all var(--transition-normal);
}

/* Map legacy error class to yellow (user: only green + yellow) */
.status-dot.error,
.status-dot.loading {
  background: var(--accent-yellow);
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.45);
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Toggle Switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-hover);
  border-radius: 11px;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-light);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.toggle input:checked + .toggle-slider {
  background: rgba(75, 139, 255, 0.3);
  border-color: var(--accent-blue);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(18px);
  background: var(--accent-blue);
}

.toggle-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Refresh Button */
.refresh-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.refresh-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--accent-blue);
}

.refresh-btn:active {
  transform: scale(0.97);
}

.refresh-btn svg {
  transition: transform 0.5s ease;
}

.refresh-btn.spinning svg {
  animation: spin 0.8s linear;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Chain Tabs ===== */
.chain-tabs {
  display: flex;
  gap: 4px;
  padding: 0 24px 12px;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chain-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
  white-space: nowrap;
}

.chain-tab:hover {
  background: var(--bg-card);
  color: var(--text-secondary);
}

.chain-tab.active {
  background: var(--bg-active);
  border-color: var(--border-light);
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
}

.chain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.chain-dot.sol { background: var(--sol-color); }
.chain-dot.base { background: var(--base-color); }
.chain-dot.bsc { background: var(--bsc-color); }
.chain-dot.eth { background: var(--eth-color); }
.chain-dot.robinhood { background: var(--robinhood-color); }
.chain-dot.all {
  background: linear-gradient(135deg, var(--sol-color), var(--base-color), var(--bsc-color), var(--robinhood-color));
}

/* ===== Stats Bar ===== */
.stats-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stats-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.3s ease;
}

.stats-item:hover {
  border-color: var(--accent);
}

.stats-item .stat-icon {
  font-size: 22px;
  line-height: 1;
}

.stats-item .stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stats-item .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-item .stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 12px;
    gap: 8px;
  }
  .stats-item {
    padding: 10px 12px;
  }
  .stats-item .stat-value {
    font-size: 14px;
  }
}

/* ===== Dashboard Layout ===== */
.dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-normal);
}

.dashboard-section:hover {
  border-color: var(--border-light);
}

/* ===== Section Header ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(11, 14, 20, 0.4);
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  font-size: 16px;
  line-height: 1;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.section-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--bg-active);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  min-width: 20px;
  text-align: center;
}

.section-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.section-action-btn:hover {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border-color: var(--border-light);
}

.section-hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* Section Filter */
.section-filter {
  display: flex;
  gap: 2px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.filter-btn {
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.filter-btn:hover {
  color: var(--text-secondary);
}

.filter-btn.active {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* ===== Signals Section ===== */
.signals-container {
  min-height: 60px;
}

.signals-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  color: var(--text-muted);
}

.signals-empty-icon {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.signals-empty-text {
  font-size: 13px;
  color: var(--text-muted);
}

.signals-list {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

/* ===== Signal section compact (cards replaced by fixed ticker) ===== */
.signal-section-compact {
  padding-bottom: 8px;
}
.signals-container-hidden {
  display: none !important;
}

/* Fixed signal frame — bottom right, compact width (border transparent) */
.signal-ticker {
  position: fixed;
  right: 14px;
  bottom: 14px;
  /* Proportionally narrower than 390×350 — single-line rows read better */
  width: 248px;
  height: 220px;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 20px);
  z-index: 10050;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: linear-gradient(160deg, rgba(18, 26, 40, 0.9), rgba(10, 14, 22, 0.92));
  border: none; /* 边框透明 / 无描边 */
  outline: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38); /* 仅轻阴影，无边框色 */
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-sans);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
/* React Bits–style: frame enters with soft fade + lift (not flashy) */
.signal-ticker.is-entering {
  animation: signalTickerEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.signal-ticker.is-hiding {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
}
.signal-ticker[hidden] {
  display: none !important;
}
@keyframes signalTickerEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.signal-ticker-header {
  flex-shrink: 0;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}
.signal-ticker-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.signal-ticker-count {
  margin-left: auto;
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  border-radius: 8px;
  background: rgba(75, 139, 255, 0.18);
  color: var(--accent-blue);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.signal-ticker-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px;
  scroll-behavior: smooth;
}
.signal-ticker-item {
  width: 100%;
  min-height: 28px;
  margin: 0 0 3px;
  padding: 4px 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  /* Animated List–style stagger (delay set via --i) */
  animation: tickerItemIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes tickerItemIn {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.signal-ticker-item:last-child {
  margin-bottom: 0;
}
.signal-ticker-item:hover {
  background: rgba(75, 139, 255, 0.12);
  border-color: transparent;
}
.signal-ticker-item.is-active {
  background: rgba(34, 197, 94, 0.14);
  border-color: transparent;
  box-shadow: inset 3px 0 0 rgba(34, 197, 94, 0.75);
}
.signal-ticker-item:active {
  transform: scale(0.98);
}
.signal-ticker-item-text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 7.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.signal-ticker-item-pct {
  flex: 0 0 auto;
  max-width: 4.2em;
  color: var(--accent-green);
  font-weight: 700;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.signal-ticker-item-pct.down {
  color: var(--accent-red);
}
.signal-ticker-item-tag {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 700;
  padding: 0 4px;
  height: 15px;
  line-height: 15px;
  border-radius: 3px;
  background: rgba(75, 139, 255, 0.16);
  color: var(--accent-cyan);
}
.signal-ticker-item-tag.kol {
  background: rgba(168, 85, 247, 0.18);
  color: var(--accent-purple);
}
.signal-ticker-body {
  display: none;
}
.signal-ticker-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.65);
  animation: signalTickerPulse 1.4s ease-in-out infinite;
}
.signal-ticker-clear {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.signal-ticker-clear:hover {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.12);
}
@keyframes signalTickerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Token list flash when jumping from signal ticker (1s) */
.token-row.token-row-signal-flash {
  outline: 2px solid var(--accent-yellow) !important;
  outline-offset: -2px;
  background: rgba(234, 179, 8, 0.14) !important;
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.35), 0 0 24px rgba(234, 179, 8, 0.2);
  animation: tokenRowFlash 1s ease both;
}
@keyframes tokenRowFlash {
  0% { filter: brightness(1.15); }
  40% { filter: brightness(1.08); }
  100% { filter: brightness(1); }
}

/* ===== Signal Card (legacy, unused in UI) ===== */
.signal-card {
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: 260px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  scroll-snap-align: start;
  transition: all var(--transition-fast);
  position: relative;
  animation: signalSlideIn 0.4s ease;
}

.signal-card:hover {
  border-color: var(--border-light);
  background: var(--bg-hover);
}

.signal-card.signal-price-surge {
  border-left: 3px solid var(--accent-orange);
}

.signal-card.signal-volume-spike {
  border-left: 3px solid var(--accent-purple);
}

.signal-card.signal-buy-pressure {
  border-left: 3px solid var(--accent-green);
}

@keyframes signalSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.signal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.signal-type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
}

.signal-price-surge .signal-type {
  color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.15);
}

.signal-volume-spike .signal-type {
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.15);
}

.signal-buy-pressure .signal-type {
  color: var(--accent-green);
  background: rgba(34, 197, 94, 0.15);
}

.signal-time {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.signal-body {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.signal-token-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.signal-token-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signal-token-info {
  min-width: 0;
  flex: 1;
}

.signal-token-symbol {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-token-name {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-message {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.signal-dismiss-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  opacity: 0;
}

.signal-card:hover .signal-dismiss-btn {
  opacity: 1;
}

.signal-dismiss-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
}

/* Signal glow for new signals */
.signal-card.signal-new {
  animation: signalGlow 2s ease;
}

@keyframes signalGlow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 20px rgba(249, 115, 22, 0.2); }
}

/* ===== Stats Bar ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.stat-card {
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-card);
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Table ===== */
.table-container {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(75, 139, 255, 0.38) rgba(15, 23, 42, 0.72);
}

.table-container::-webkit-scrollbar {
  height: 10px;
}

.table-container::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.72);
}

.table-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(75, 139, 255, 0.5), rgba(6, 182, 212, 0.35));
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.72);
}

.table-header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(11, 14, 20, 0.5);
}

.table-header-row {
  display: grid;
  grid-template-columns: 40px 2.5fr 1fr 1fr 1fr 1.2fr 1fr 1fr 1fr 0.8fr 0.8fr;
  gap: 8px;
  padding: 10px 16px;
  align-items: center;
}

.th {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-fast);
}

.th:hover {
  color: var(--text-secondary);
}

/* ===== Token Rows ===== */
.table-body {
  min-height: 200px;
}

.token-row {
  display: grid;
  grid-template-columns: 40px 2.5fr 1fr 1fr 1fr 1.2fr 1fr 1fr 1fr 0.8fr 0.8fr;
  gap: 8px;
  padding: 12px 16px;
  align-items: center;
  border-bottom: 1px solid rgba(30, 42, 58, 0.4);
  transition: background var(--transition-fast);
  cursor: default;
  /* Fade Content–style list stagger (delay from inline style) */
  animation: tokenRowIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.token-row:last-child {
  border-bottom: none;
}

.token-row:hover {
  background: var(--bg-hover);
}

/* Cap stagger so long lists stay snappy (only first ~20 rows feel staggered) */
.token-row:nth-child(n + 21) {
  animation-delay: 0.6s !important;
}

.token-row .td {
  font-size: 13px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Rank */
.rank-cell {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
}

.rank-cell.top-3 {
  font-size: 14px;
}

/* Token Info */
.token-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.token-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-active);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.token-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-info {
  min-width: 0;
  overflow: hidden;
}

.token-symbol {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-name {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-links {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.token-link {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bg-active);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.token-link:hover {
  background: rgba(75, 139, 255, 0.2);
  color: var(--accent-blue);
  text-decoration: none;
}

.token-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.token-copy-btn:hover {
  background: rgba(75, 139, 255, 0.15);
  color: var(--accent-blue);
}

.token-copy-btn.copied {
  color: var(--accent-green);
  animation: copyPop 0.3s ease;
}

@keyframes copyPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Price */
.price-cell {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

/* Price Change */
.change-cell {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  text-align: center;
  min-width: 60px;
}

.change-cell.positive {
  color: var(--accent-green);
  background: rgba(34, 197, 94, 0.1);
}

.change-cell.negative {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
}

.change-cell.neutral {
  color: var(--text-muted);
  background: rgba(90, 100, 128, 0.1);
}

/* Volume / Liquidity / FDV */
.volume-cell,
.liquidity-cell,
.fdv-cell {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Transactions */
.txns-cell {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* Buy/Sell Ratio */
.trades-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.buy-sell-bar {
  display: flex;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(239, 68, 68, 0.2);
  min-width: 40px;
}

.buy-sell-bar .buys {
  background: var(--accent-green);
  transition: width var(--transition-normal);
}

.buy-sell-ratio {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* Actions */
.actions-cell {
  display: flex;
  gap: 6px;
}

.action-btn {
  padding: 4px 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.action-btn:hover {
  background: var(--bg-active);
  border-color: var(--border-light);
  color: var(--text-primary);
  text-decoration: none;
}

.action-btn.primary {
  border-color: rgba(75, 139, 255, 0.3);
  color: var(--accent-blue);
}

.action-btn.primary:hover {
  background: rgba(75, 139, 255, 0.15);
  border-color: var(--accent-blue);
}

/* ===== 24H AI outcome stats (win rate from buy-point) ===== */
.signal-outcome-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 10px 18px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.outcome-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 72px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.outcome-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.outcome-stat-value {
  font-size: 15px;
  font-weight: 650;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.outcome-stat-value.good {
  color: var(--accent-green);
}

.outcome-stat-value.danger {
  color: var(--accent-red);
}

.outcome-stat-value.positive {
  color: var(--accent-green);
}

.outcome-stat-value.negative {
  color: var(--accent-red);
}

.outcome-stat em {
  font-size: 10px;
  font-style: normal;
  color: var(--text-muted);
}

.archive-token-row.outcome-row {
  opacity: 0.92;
}

.archive-token-row.outcome-row small {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Monitoring Grid ===== */
.monitor-grid {
  min-height: 100px;
}

.monitor-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  color: var(--text-muted);
}

.monitor-empty-icon {
  font-size: 32px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.monitor-empty-text {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.monitor-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 14px 18px;
}

/* ===== Monitor Card ===== */
.monitor-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  animation: fadeInUp 0.3s ease both;
}

.monitor-card:hover {
  border-color: var(--border-light);
  background: var(--bg-hover);
}

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

.monitor-token-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.monitor-token-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.monitor-token-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.monitor-token-symbol {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.monitor-chain-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.monitor-chain-dot.sol { background: var(--sol-color); }
.monitor-chain-dot.base { background: var(--base-color); }
.monitor-chain-dot.bsc { background: var(--bsc-color); }
.monitor-chain-dot.eth { background: var(--eth-color); }
.monitor-chain-dot.robinhood { background: var(--robinhood-color); }
.monitor-chain-dot.multi { background: var(--text-muted); }

.chain-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
.chain-badge.sol { background: rgba(153, 69, 255, 0.18); color: var(--sol-color); }
.chain-badge.eth { background: rgba(98, 126, 234, 0.18); color: var(--eth-color); }
.chain-badge.base { background: rgba(0, 82, 255, 0.18); color: #6ea0ff; }
.chain-badge.bsc { background: rgba(240, 185, 11, 0.18); color: var(--bsc-color); }
.chain-badge.robinhood { background: rgba(0, 200, 5, 0.16); color: var(--robinhood-color); }
.chain-badge.multi { background: rgba(136, 146, 168, 0.18); color: var(--text-secondary); }

.monitor-signal-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.monitor-signal-badge.surge {
  color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.15);
}

.monitor-signal-badge.volume {
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.15);
}

.monitor-signal-badge.buy,
.monitor-signal-badge.buy-pressure {
  color: var(--accent-green);
  background: rgba(34, 197, 94, 0.15);
}

.monitor-signal-badge.price-surge {
  color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.15);
}

.monitor-signal-badge.volume-spike {
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.15);
}

.monitor-status-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.monitor-status-badge.active {
  color: var(--accent-green);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.monitor-status-badge.history {
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.monitor-card:has(.monitor-status-badge.history) {
  opacity: 0.92;
}

.monitor-chart-area {
  width: 100%;
  height: 48px;
  margin: 4px 0;
  border-radius: var(--radius-sm);
  background: rgba(11, 14, 20, 0.5);
  overflow: hidden;
}

.monitor-chart-area canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 48px;
}

.monitor-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.monitor-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.monitor-stat-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.monitor-stat-value {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.monitor-stat-value.positive {
  color: var(--accent-green);
}

.monitor-stat-value.negative {
  color: var(--accent-red);
}

.monitor-stat-value.neutral {
  color: var(--text-muted);
}

.monitor-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.monitor-action-btn {
  padding: 4px 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
  text-decoration: none;
}

.monitor-action-btn:hover {
  background: var(--bg-active);
  color: var(--text-secondary);
  text-decoration: none;
}

.monitor-action-btn.primary {
  border-color: rgba(75, 139, 255, 0.3);
  color: var(--accent-blue);
}

.monitor-action-btn.primary:hover {
  background: rgba(75, 139, 255, 0.15);
}

/* ===== 8h Historical Archive ===== */
.monitor-archive-card {
  grid-column: 1 / -1;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-md);
  background: rgba(11, 14, 20, 0.42);
  overflow: hidden;
}

.archive-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
}

.archive-toggle:hover {
  background: rgba(148, 163, 184, 0.08);
}

.archive-toggle span {
  font-size: 12px;
  font-weight: 600;
}

.archive-toggle strong {
  min-width: 22px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.13);
  color: var(--text-primary);
  font-size: 11px;
}

.archive-toggle em {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  color: var(--text-muted);
}

.archive-token-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 6px;
  padding: 0 10px 10px;
}

.archive-token-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.42);
}

.archive-token-id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.archive-token-id strong {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-token-id em,
.archive-address-copy {
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-blue);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-address-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  padding: 2px 5px;
  border: 1px solid rgba(75, 139, 255, 0.18);
  border-radius: 5px;
  background: rgba(75, 139, 255, 0.08);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.archive-address-copy:hover {
  color: var(--text-primary);
  border-color: rgba(75, 139, 255, 0.42);
  background: rgba(75, 139, 255, 0.18);
}

.archive-address-copy.copied {
  color: var(--accent-green);
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.12);
}

.archive-copy-hint {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.82;
}

.archive-empty-row {
  padding: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 11px;
}

.archive-return {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.archive-return.positive { color: var(--accent-green); }
.archive-return.negative { color: var(--accent-red); }
.archive-return.neutral { color: var(--text-muted); }

/* ===== Moonshot (>500%) tracking highlights ===== */
.monitor-card.moonshot-card {
  border-color: rgba(234, 179, 8, 0.55);
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.12), rgba(15, 23, 42, 0.72) 38%, rgba(168, 85, 247, 0.10));
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.08), 0 12px 34px rgba(234, 179, 8, 0.08);
}

.monitor-card.moonshot-alert-card {
  border-color: rgba(239, 68, 68, 0.62);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.16), 0 12px 34px rgba(239, 68, 68, 0.10);
}

.ai-chip.moonshot,
.archive-return.moonshot {
  color: #fde68a;
  background: rgba(234, 179, 8, 0.14);
  border-color: rgba(234, 179, 8, 0.35);
}

.archive-token-row.moonshot-row {
  border-color: rgba(234, 179, 8, 0.45);
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.13), rgba(15, 23, 42, 0.5));
}

.archive-token-row.moonshot-alert-row {
  border-color: rgba(239, 68, 68, 0.55);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.14), rgba(234, 179, 8, 0.08), rgba(15, 23, 42, 0.5));
}

.archive-token-id small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.35;
  color: var(--accent-red);
  font-weight: 700;
}

.ai-suggestion.danger {
  color: var(--accent-red);
}

/* ===== Design demo controls ===== */
.design-demo-btn {
  appearance: none;
  border: 1px solid rgba(6, 182, 212, 0.35);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(75, 139, 255, 0.1));
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.design-demo-btn:hover {
  border-color: rgba(6, 182, 212, 0.55);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(75, 139, 255, 0.16));
}

.design-demo-btn:active {
  transform: scale(0.98);
}

.design-demo-btn-lg {
  margin-top: 14px;
  padding: 8px 16px;
  font-size: 12px;
}

.section-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== Memecoin AI panels (cockpit density) ===== */
.ai-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 6px;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.ai-chip.good,
.ai-mini-main.good {
  color: var(--accent-green);
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.1);
}

.ai-chip.warn,
.ai-mini-main.warn {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.1);
}

.ai-chip.danger,
.ai-mini-main.danger {
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(239, 68, 68, 0.1);
}

.ai-detail-panel {
  margin-top: 8px;
  padding: 10px 12px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(75, 139, 255, 0.14);
  background:
    linear-gradient(160deg, rgba(22, 32, 48, 0.94), rgba(11, 16, 26, 0.97)),
    radial-gradient(120% 80% at 0% 0%, rgba(6, 182, 212, 0.07), transparent 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Compact AI: summary first, details on demand */
.ai-detail-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-summary-item {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 56px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 12, 20, 0.5);
}

.ai-summary-item em {
  font-style: normal;
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.ai-summary-item strong {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  line-height: 1.2;
}

.ai-summary-item.good strong { color: var(--accent-green); }
.ai-summary-item.warn strong { color: var(--accent-yellow); }
.ai-summary-item.danger strong { color: var(--accent-red); }

.ai-summary-one-liner {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.ai-reason-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ai-reason-chip {
  display: inline-flex;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-reason-chip.muted {
  opacity: 0.75;
}

.ai-detail-grid,
.ai-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ai-metric-grid {
  gap: 8px;
}

.ai-mini-card {
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(8, 12, 20, 0.48);
  min-width: 0;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.ai-mini-card:hover {
  border-color: rgba(75, 139, 255, 0.2);
  background: rgba(12, 18, 28, 0.55);
}

.ai-mini-card.ai-wide {
  grid-column: 1 / -1;
}

.ai-mini-title {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 700;
}

.ai-source-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15px;
  text-transform: none;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.22);
  font-family: var(--font-mono);
}

.ai-mini-main {
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.ai-mini-card p,
.ai-line-clamp {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ai-fold {
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(8, 12, 20, 0.35);
  overflow: hidden;
}

.ai-fold > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ai-fold > summary::-webkit-details-marker {
  display: none;
}

.ai-fold > summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 600;
}

.ai-fold[open] > summary::after {
  content: '−';
}

.ai-fold-meta {
  margin-left: auto;
  margin-right: 8px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
}

.ai-fold-body {
  padding: 0 10px 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  padding-top: 8px;
}

.ai-fold-body p {
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
}

.ai-fold-body p:last-child {
  margin-bottom: 0;
}

.strategy-preview-compact {
  margin-top: 0;
  padding: 8px 10px;
}

.strategy-preview-compact strong {
  font-size: 11px;
}

.strategy-preview-compact span {
  font-size: 10px;
}

@media (max-width: 720px) {
  .ai-detail-grid,
  .ai-metric-grid {
    grid-template-columns: 1fr;
  }

  .ai-summary-item {
    min-width: calc(33.33% - 6px);
    flex: 1 1 28%;
  }
}

/* --- Wallet profile (AI panel) --- */
.wallet-profile-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.wallet-profile-row {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.wallet-profile-main {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  text-align: left;
}

.wallet-profile-main:hover {
  background: rgba(34, 211, 238, 0.06);
}

.wallet-role-badge {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.wallet-role-sm {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.wallet-role-kol {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.wallet-profile-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text-primary, #e2e8f0);
}

.wallet-side {
  flex-shrink: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.wallet-side.good { color: var(--accent-green, #4ade80); }
.wallet-side.warn { color: #fbbf24; }
.wallet-side.danger { color: #f87171; }

.wallet-profile-meta {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 10px;
}

.wallet-profile-stats {
  padding: 0 10px 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.wallet-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  padding-top: 8px;
}

.wallet-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wallet-stat.wide {
  grid-column: 1 / -1;
}

.wallet-stat em {
  font-style: normal;
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.wallet-stat strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.wallet-stat strong.good { color: var(--accent-green, #4ade80); }
.wallet-stat strong.warn { color: #fbbf24; }
.wallet-stat strong.danger { color: #f87171; }

.wallet-stats-loading,
.wallet-stats-error {
  display: block;
  padding-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.wallet-stats-error {
  color: #f87171;
}

.wallet-gmgn-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--accent-cyan, #67e8f9);
  text-decoration: none;
}

.wallet-gmgn-link:hover {
  text-decoration: underline;
}

.wallet-profile-hint {
  margin-top: 8px !important;
  font-size: 10px !important;
}

.ai-mini-main {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.16);
  margin-bottom: 6px;
}

.ai-mini-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-muted);
}

.ai-mini-card .ai-suggestion {
  margin-top: 6px;
  color: var(--text-secondary);
}

.strategy-preview-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px dashed rgba(75, 139, 255, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(75, 139, 255, 0.08);
}

.strategy-preview-box.blocked {
  border-color: rgba(239, 68, 68, 0.26);
  background: rgba(239, 68, 68, 0.08);
}

/* --- Strategy quote modal --- */
body.strategy-modal-open {
  overflow: hidden;
}

.strategy-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.strategy-modal[hidden] {
  display: none !important;
}

.strategy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.strategy-modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  padding: 16px 18px 14px;
}

.strategy-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.strategy-modal-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text-primary, #f1f5f9);
}

.strategy-modal-sub {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}

.strategy-modal-close {
  border: 0;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.strategy-modal-close:hover {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}

.strategy-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.strategy-exec-badge {
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 999px;
  padding: 3px 8px;
}

.strategy-quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.strategy-quote-head strong {
  font-size: 18px;
  color: var(--text-primary, #f8fafc);
}

.strategy-chain {
  margin-left: 8px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.strategy-quote-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.strategy-quote-meta strong {
  color: var(--text-secondary);
  font-weight: 700;
}

.strategy-quote-meta em {
  font-style: normal;
  opacity: 0.75;
}

.strategy-template {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--accent-cyan, #67e8f9);
}

.strategy-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.strategy-legs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.strategy-legs-table th,
.strategy-legs-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.strategy-legs-table th {
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(148, 163, 184, 0.06);
}

.strategy-legs-table td {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.strategy-legs-table td.muted {
  color: var(--text-muted);
  font-size: 10px;
}

.strategy-leg-side.buy { color: #4ade80; font-weight: 700; }
.strategy-leg-side.sell { color: #fbbf24; font-weight: 700; }

.strategy-risk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.strategy-risk-row strong {
  color: var(--text-secondary);
}

.strategy-risk-row .danger { color: #f87171; }
.strategy-risk-row .good { color: #4ade80; }

.strategy-disclaimer {
  margin: 12px 0 6px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
}

.strategy-no-exec {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: #fca5a5;
}

.strategy-quote-blocked {
  padding: 8px 0;
}

.strategy-quote-error {
  color: #f87171;
}

.strategy-preview-box strong {
  display: block;
  font-size: 11px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.strategy-preview-box span {
  font-size: 10px;
  color: var(--text-muted);
}

.monitor-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .ai-detail-grid {
    grid-template-columns: 1fr;
  }
  .strategy-preview-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ===== Loading State ===== */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

.loading-state p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== Error State ===== */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.error-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.error-state p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 400px;
}

.retry-btn {
  padding: 10px 24px;
  border: 1px solid var(--accent-blue);
  border-radius: var(--radius-md);
  background: rgba(75, 139, 255, 0.1);
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.retry-btn:hover {
  background: rgba(75, 139, 255, 0.2);
  box-shadow: var(--shadow-glow-blue);
}

/* ===== Othercoin Signal Table ===== */
.other-table-header,
.othercoin-token-row {
  grid-template-columns: 36px 2fr 1fr 1fr 1fr 0.8fr 1.2fr 0.7fr !important;
}

.signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.signal-badge.funding {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.signal-badge.price {
  color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.12);
}

.signal-badge.volume {
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.12);
}

.signal-badge.oi {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
}

.signal-badge.multi {
  color: var(--accent-pink);
  background: rgba(236, 72, 153, 0.12);
}

.signal-detail-text {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-score-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.signal-score-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--bg-active);
  overflow: hidden;
  flex: 1;
  min-width: 30px;
}

.signal-score-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

.signal-score-fill.high { background: var(--accent-green); }
.signal-score-fill.med { background: var(--accent-yellow); }
.signal-score-fill.low { background: var(--accent-orange); }

.signal-score-label {
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
  min-width: 22px;
  text-align: right;
}

.signal-badge-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* ===== Empty State (reused) ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 28px 20px 32px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-note {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Footer signature card → https://x.com/shaweeenx */
.sig-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  margin: 0 auto 6px;
  padding: 14px 18px 14px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  text-align: left;
  border: 1px solid rgba(106, 168, 255, 0.22);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(75, 139, 255, 0.14), transparent 55%),
    radial-gradient(100% 120% at 100% 100%, rgba(32, 247, 138, 0.08), transparent 50%),
    linear-gradient(165deg, rgba(15, 23, 42, 0.95), rgba(8, 12, 20, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 12px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sig-card:hover {
  transform: translateY(-1px);
  border-color: rgba(75, 139, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(75, 139, 255, 0.12) inset,
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(75, 139, 255, 0.12);
}

.sig-card:focus-visible {
  outline: 2px solid rgba(75, 139, 255, 0.75);
  outline-offset: 3px;
}

.sig-card-mark {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  line-height: 0;
}

.sig-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sig-card-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.sig-card-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f4f8ff 8%, #77b7ff 42%, #35d3ff 72%, #20f78a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sig-card-handle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono, ui-monospace, monospace);
  color: #94a3b8;
}

.sig-card:hover .sig-card-handle {
  color: #cbd5e1;
}

.sig-card-cta {
  margin-left: 8px;
  font-size: 14px;
  color: #64748b;
  transition: color 0.18s ease, transform 0.18s ease;
}

.sig-card:hover .sig-card-cta {
  color: #77b7ff;
  transform: translate(1px, -1px);
}

@media (prefers-reduced-motion: reduce) {
  .sig-card { transition: none; }
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: slideIn 0.3s ease;
  max-width: 380px;
}

.toast.success { border-left: 3px solid var(--accent-green); }
.toast.error { border-left: 3px solid var(--accent-red); }
.toast.info { border-left: 3px solid var(--accent-blue); }
.toast.warning { border-left: 3px solid var(--accent-yellow); }

.toast-icon { font-size: 16px; }
.toast-message { font-size: 13px; color: var(--text-primary); flex: 1; }
.toast-close {
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  padding: 0 4px;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .monitor-cards {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 1024px) {
  .table-header-row,
  .token-row {
    grid-template-columns: 36px 2fr 1fr 1fr 1fr 1fr 0 0 0 0 0.6fr;
  }

  .liquidity-cell,
  .fdv-cell,
  .txns-cell,
  .trades-cell {
    display: none;
  }

  .header-content {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .header-controls {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .monitor-cards {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  html { font-size: 13px; }

  .table-header-row,
  .token-row {
    grid-template-columns: 30px 2fr 1fr 0.8fr 0.8fr 0 0 0 0 0 0.6fr;
  }

  .change24h-cell { display: none; }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .chain-tabs {
    padding: 0 16px 10px;
  }

  .dashboard {
    padding: 0 16px 24px;
    gap: 12px;
  }

  .chain-tab {
    padding: 6px 12px;
    font-size: 12px;
  }

  .token-row {
    padding: 10px 12px;
  }

  .section-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .signals-list {
    padding: 10px 14px;
  }

  .signal-card {
    min-width: 180px;
    max-width: 220px;
  }

  .monitor-cards {
    grid-template-columns: 1fr;
    padding: 10px 14px;
  }
}

@media (max-width: 480px) {
  .table-header-row,
  .token-row {
    grid-template-columns: 28px 2fr 0.8fr 0.7fr 0 0 0 0 0 0 0.5fr;
  }

  .change1h-cell { display: none; }
  .other-table-header,
  .othercoin-token-row { grid-template-columns: 28px 2fr 0.8fr 0.7fr 0.8fr 0.6fr 0 0.5fr !important; }
  .signal-detail { display: none; }
  .actions-cell { display: none; }

  .logo-text h1 { font-size: 16px; }
  .status-indicator { display: none; }

  .signal-card {
    min-width: 160px;
    max-width: 200px;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a4a62;
}

/* ===== Animations ===== */
.token-row {
  animation: fadeInUp 0.3s ease both;
}

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

.token-row:nth-child(1) { animation-delay: 0.02s; }
.token-row:nth-child(2) { animation-delay: 0.04s; }
.token-row:nth-child(3) { animation-delay: 0.06s; }
.token-row:nth-child(4) { animation-delay: 0.08s; }
.token-row:nth-child(5) { animation-delay: 0.10s; }
.token-row:nth-child(6) { animation-delay: 0.12s; }
.token-row:nth-child(7) { animation-delay: 0.14s; }
.token-row:nth-child(8) { animation-delay: 0.16s; }
.token-row:nth-child(9) { animation-delay: 0.18s; }
.token-row:nth-child(10) { animation-delay: 0.20s; }

/* ===== Taste Skill Visual Polish Layer v2: terminal-grade dark glass ===== */
:root {
  --terminal-green: #20f78a;
  --terminal-cyan: #35d3ff;
  --terminal-blue: #6aa8ff;
  --terminal-amber: #ffb84d;
  --terminal-red: #ff5c7a;
  --surface-0: rgba(7, 11, 18, 0.92);
  --surface-1: rgba(12, 18, 29, 0.92);
  --surface-2: rgba(18, 27, 43, 0.9);
  --hairline: rgba(127, 167, 225, 0.18);
  --hairline-strong: rgba(114, 169, 255, 0.36);
}

html {
  background: #070a10;
}

body {
  background:
    radial-gradient(circle at 12% -10%, rgba(53, 211, 255, 0.16), transparent 30rem),
    radial-gradient(circle at 92% 0%, rgba(32, 247, 138, 0.08), transparent 27rem),
    radial-gradient(circle at 48% 42%, rgba(75, 139, 255, 0.055), transparent 42rem),
    linear-gradient(180deg, #070a10 0%, #0a0f18 42%, #070a10 100%);
  letter-spacing: -0.01em;
}

body::before {
  opacity: 0.58;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(53, 211, 255, 0.09) 0%, transparent 38%),
    radial-gradient(ellipse at 85% 24%, rgba(32, 247, 138, 0.045) 0%, transparent 36%),
    radial-gradient(ellipse at 50% 100%, rgba(75, 139, 255, 0.055) 0%, transparent 42%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.032) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.028), rgba(255,255,255,0));
  background-size: 44px 44px, 44px 44px, 100% 3px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.4) 54%, transparent 92%);
}

.header {
  background: rgba(5, 8, 13, 0.82);
  border-bottom-color: rgba(101, 143, 204, 0.2);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255,255,255,0.035);
}

.logo-icon {
  filter: drop-shadow(0 0 14px rgba(249, 115, 22, 0.4));
}

.logo-text h1 {
  background: linear-gradient(135deg, #f4f8ff 8%, #77b7ff 42%, #35d3ff 72%, #20f78a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 28px rgba(75, 139, 255, 0.2);
}

@media (max-width: 760px) {
  .dream-studio-img {
    width: 96px;
    max-height: 60px;
  }
  .dream-studio-img--lg {
    width: 120px;
    max-height: 74px;
  }
}

.logo-subtitle,
.th,
.stat-label,
.section-hint,
.token-name,
.monitor-stat-label {
  color: #68758d;
}

.page-nav,
.status-indicator,
.refresh-btn,
.chain-tab.active {
  background: linear-gradient(180deg, rgba(18, 27, 43, 0.82), rgba(9, 14, 23, 0.84));
  border-color: var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055), 0 12px 34px rgba(0,0,0,0.26);
}

.page-tab,
.chain-tab,
.refresh-btn,
.action-btn,
.monitor-action-btn,
.section-action-btn,
.filter-btn,
.archive-toggle {
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.page-tab.active {
  background: linear-gradient(135deg, rgba(70, 147, 255, 0.34), rgba(53, 211, 255, 0.16));
  border: 1px solid rgba(120, 181, 255, 0.36);
  color: #f7fbff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.13), 0 0 0 1px rgba(75,139,255,0.08), 0 10px 30px rgba(75,139,255,0.22);
}

.page-tab:hover,
.chain-tab:hover,
.refresh-btn:hover {
  transform: translateY(-1px);
}

.status-dot {
  background: var(--terminal-green);
  box-shadow: 0 0 12px rgba(32, 247, 138, 0.55);
}

.stats-bar {
  gap: 14px;
  padding-top: 2px;
}

.stats-item {
  position: relative;
  overflow: hidden;
  min-height: 78px;
  background:
    linear-gradient(135deg, rgba(23, 34, 54, 0.92), rgba(10, 16, 27, 0.96)),
    radial-gradient(circle at 92% 12%, rgba(53, 211, 255, 0.16), transparent 42%);
  border-color: rgba(106, 168, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055), 0 14px 36px rgba(0,0,0,0.28);
}

.stats-item::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--terminal-cyan), var(--terminal-green));
  box-shadow: 0 0 16px rgba(53, 211, 255, 0.45);
}

.stats-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.055) 45%, transparent 58%);
  transform: translateX(-120%);
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stats-item:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 211, 255, 0.42);
}

.stats-item:hover::after {
  transform: translateX(120%);
}

.stats-item .stat-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.stats-item .stat-value,
.stat-value,
.price-cell,
.volume-cell,
.liquidity-cell,
.fdv-cell,
.txns-cell,
.buy-sell-ratio {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.dashboard {
  gap: 18px;
}

.dashboard-section {
  position: relative;
  background:
    linear-gradient(180deg, rgba(15, 23, 37, 0.94), rgba(9, 14, 23, 0.98)),
    radial-gradient(circle at 90% 0%, rgba(75, 139, 255, 0.08), transparent 28rem);
  border-color: rgba(106, 168, 255, 0.22);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055), 0 22px 60px rgba(0,0,0,0.3);
}

.dashboard-section::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 211, 255, 0.68), rgba(32, 247, 138, 0.34), transparent);
  pointer-events: none;
}

.dashboard-section:hover {
  border-color: rgba(106, 168, 255, 0.32);
}

.section-header {
  background: linear-gradient(180deg, rgba(6, 10, 17, 0.76), rgba(10, 16, 26, 0.5));
  border-bottom-color: rgba(106, 168, 255, 0.16);
}

.section-icon {
  filter: drop-shadow(0 0 10px rgba(53, 211, 255, 0.24));
}

.section-title {
  letter-spacing: -0.48px;
  font-size: 16px;
}

.section-badge,
.filter-btn.active {
  background: rgba(75, 139, 255, 0.15);
  color: #cae2ff;
  border: 1px solid rgba(75, 139, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.signal-card,
.monitor-card,
.archive-token-row,
.ai-mini-card,
.monitor-archive-card {
  background:
    linear-gradient(180deg, rgba(18, 27, 43, 0.94), rgba(9, 15, 25, 0.96));
  border-color: rgba(106, 168, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 10px 26px rgba(0,0,0,0.18);
}

.signal-card {
  min-width: 246px;
  border-radius: 13px;
}

.signal-card.signal-price-surge,
.signal-card.signal-volume-spike,
.signal-card.signal-buy-pressure {
  border-left-width: 4px;
}

.signal-card:hover,
.monitor-card:hover,
.archive-token-row:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 211, 255, 0.4);
  background:
    linear-gradient(180deg, rgba(23, 36, 58, 0.98), rgba(10, 17, 29, 0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.065), 0 18px 40px rgba(0,0,0,0.26), 0 0 0 1px rgba(53,211,255,0.06);
}

.monitor-cards {
  gap: 14px;
}

.monitor-card {
  border-radius: 14px;
}

.monitor-chart-area {
  background: linear-gradient(180deg, rgba(3, 7, 12, 0.78), rgba(8, 13, 22, 0.78));
  border: 1px solid rgba(106, 168, 255, 0.11);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.34);
}

.table-container {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(53, 211, 255, 0.5) rgba(5, 10, 17, 0.9);
}

.table-container::-webkit-scrollbar {
  height: 10px;
}

.table-container::-webkit-scrollbar-track {
  background: rgba(5, 10, 17, 0.9);
}

.table-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(75, 139, 255, 0.68), rgba(53, 211, 255, 0.48), rgba(32, 247, 138, 0.36));
  border-radius: 999px;
  border: 2px solid rgba(5, 10, 17, 0.9);
}

.table-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(6, 10, 17, 0.82);
  backdrop-filter: blur(12px);
}

.table-header-row,
.token-row {
  min-width: 1120px;
}

.token-row {
  border-bottom-color: rgba(106, 168, 255, 0.075);
}

.token-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.014);
}

.token-row:nth-child(odd) {
  background: rgba(0, 0, 0, 0.035);
}

.token-row:hover {
  background: linear-gradient(90deg, rgba(53, 211, 255, 0.105), rgba(32, 247, 138, 0.035), transparent 72%);
  box-shadow: inset 3px 0 0 rgba(53, 211, 255, 0.78);
}

.token-symbol,
.monitor-token-symbol,
.signal-token-symbol {
  letter-spacing: -0.025em;
}

.token-icon,
.signal-token-icon,
.monitor-token-icon {
  background: radial-gradient(circle at 35% 26%, rgba(53,211,255,0.28), rgba(30,42,61,0.92));
  border-color: rgba(106, 168, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 16px rgba(53,211,255,0.06);
}

.change-cell.positive,
.ai-chip.good,
.monitor-status-badge.active {
  color: var(--terminal-green);
  background: rgba(32, 247, 138, 0.1);
  border-color: rgba(32, 247, 138, 0.22);
  box-shadow: inset 0 0 0 1px rgba(32, 247, 138, 0.05);
}

.change-cell.negative,
.ai-chip.danger {
  color: var(--terminal-red);
  background: rgba(255, 92, 122, 0.1);
}

.action-btn.primary,
.monitor-action-btn.primary,
.token-link:hover,
.archive-address-copy {
  color: #80bdff;
  border-color: rgba(75, 139, 255, 0.32);
  background: rgba(75, 139, 255, 0.08);
}

.action-btn:hover,
.monitor-action-btn:hover,
.section-action-btn:hover,
.archive-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(53, 211, 255, 0.32);
  color: #d8eaff;
}

.action-btn:active,
.monitor-action-btn:active,
.section-action-btn:active,
.filter-btn:active,
.archive-toggle:active,
.refresh-btn:active,
.page-tab:active,
.chain-tab:active {
  transform: scale(0.98);
}

.buy-sell-bar {
  background: rgba(255, 92, 122, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.buy-sell-bar .buys {
  background: linear-gradient(90deg, var(--terminal-green), #55ffb1);
  box-shadow: 0 0 10px rgba(32, 247, 138, 0.35);
}

.archive-toggle {
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(75,139,255,0.035));
}

.footer {
  background: rgba(5, 8, 13, 0.78);
  border-top-color: rgba(106, 168, 255, 0.16);
}

@media (max-width: 760px) {
  .header-content {
    gap: 12px;
  }

  .stats-item {
    min-height: 68px;
  }

  .signal-card {
    min-width: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .signal-ticker.is-entering,
  .signal-ticker.is-hiding,
  .token-row,
  .signal-ticker-item,
  .token-row.token-row-signal-flash {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

