/* ============================================================
   DDLM-69 · styles.css  v0.8.2
   UNIFIED DESIGN SYSTEM — hedge-fund terminal aesthetic
   Font: Inter | Accent: #4f74f9 | Live: #f97316 | BG: #07080e
   ============================================================ */

:root {
  --bg: #0b0e14;
  --surface: #141820;
  --surface-2: #10132199;
  --surface-solid: #101321;
  --border: rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.13);
  --border-hover: rgba(79,116,249,0.35);
  --accent: #4f74f9;
  --accent-dim: rgba(79,116,249,0.14);
  --accent-glow: rgba(79,116,249,0.28);
  --live: #f97316;
  --live-dim: rgba(249,115,22,0.15);
  --live-glow: rgba(249,115,22,0.3);
  --text: #f1f5f9;
  --muted: rgba(255,255,255,0.45);
  --muted-2: rgba(237,240,251,0.25);
  --green: #4ade80;
  --red: #f87171;
  --yellow: #facc15;
  --success: #34d399;
  --success-dim: rgba(52,211,153,0.14);
  --warning: #f59e0b;
  --danger: #f87171;
  --danger-dim: rgba(248,113,113,0.14);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(79,116,249,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(249,115,22,0.04) 0%, transparent 60%);
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: rgba(8,9,15,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

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

.logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--accent) 0%, #6c8fff 100%);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(79,116,249,0.4);
}

.logo-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.main-nav {
  display: flex;
  gap: 2px;
}

.nav-link {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  border-radius: 7px;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.header-tag {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  font-family: 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
}

.header-version {
  font-size: 11px;
  color: rgba(255,255,255,0.15);
  font-family: 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-sm {
  padding: 7px 16px;
  background: linear-gradient(135deg, var(--accent) 0%, #6c8fff 100%);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(79,116,249,0.3);
}

.btn-primary-sm:hover { opacity: 0.88; box-shadow: 0 4px 18px rgba(79,116,249,0.45); }

.btn-primary {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, #6c8fff 100%);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(79,116,249,0.35);
}

.btn-primary:hover { opacity: 0.88; box-shadow: 0 6px 28px rgba(79,116,249,0.5); }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  padding: 12px 20px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.2);
}

.btn-secondary-sm {
  padding: 6px 14px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary-sm:hover {
  color: #fff;
  background: rgba(255,255,255,0.09);
}

/* ============================================================
   PAGE SHELL
   ============================================================ */
.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  padding: 56px 0 32px;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(249,115,22,0.35);
  background: rgba(249,115,22,0.1);
  font-size: 11px;
  color: #fdba74;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 0 16px rgba(249,115,22,0.12);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

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

.hero-h1 {
  font-size: clamp(34px,4.5vw,60px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -2px;
  color: #f0f2ff;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 260px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  opacity: 0.4;
}

.stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(79,116,249,0.1);
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.stat-meta {
  font-size: 11px;
  color: var(--muted);
}

.live-dot::before {
  content: '● ';
  color: var(--success);
  font-size: 0.6em;
}

/* ============================================================
   STATUS BAR
   ============================================================ */
.status-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-wrap: wrap;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-key {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted-2);
  text-transform: uppercase;
}

.status-val {
  font-size: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-input {
  width: 52px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 12px;
  font-family: inherit;
}

.scope-row {
  display: flex;
  gap: 6px;
}

/* ============================================================
   CHIPS
   ============================================================ */
.chip {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover {
  color: var(--text);
  border-color: var(--border-2);
  background: rgba(255,255,255,0.04);
}

.chip.active {
  background: var(--accent-dim);
  border-color: rgba(79,116,249,0.4);
  color: #93b4ff;
}

/* ============================================================
   CONTROLS PANEL
   ============================================================ */
.controls-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.controls-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ctrl-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-2);
}

.ctrl-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  font-family: inherit;
  min-width: 120px;
}

.ctrl-select-sm {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-family: inherit;
}

.ctrl-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  font-family: inherit;
  width: 120px;
}

.ctrl-search-group .ctrl-input { width: 180px; }

.ctrl-toggles {
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

.toggle-label input {
  accent-color: var(--accent);
}

.view-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ctrl-meta {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s;
}

.content-section:hover {
  border-color: rgba(255,255,255,0.1);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-sub {
  font-size: 12px;
  color: var(--muted);
}

.content-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge-accent {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent-dim);
  color: #93b4ff;
  border: 1px solid rgba(79,116,249,0.25);
  letter-spacing: 0.5px;
}

.badge-live {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  background: var(--live-dim);
  color: #fdba74;
  border: 1px solid rgba(249,115,22,0.3);
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(249,115,22,0.15);
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
}

.data-table tbody tr:last-child td { border-bottom: none; }

.data-table tbody tr:hover td {
  background: rgba(255,255,255,0.025);
}

.loading-cell {
  text-align: center;
  color: var(--muted);
  padding: 24px !important;
}

.mini-table th { font-size: 9px; }
.mini-table td { font-size: 12px; }

/* ============================================================
   METRICS CARDS
   ============================================================ */
.metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.metrics-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

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

.mc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.mc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.mc-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px;
  transition: border-color 0.15s;
}

.mc-item:hover {
  border-color: rgba(79,116,249,0.2);
}

.mc-key {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.mc-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.mc-sub {
  font-size: 10px;
  color: var(--muted);
}

.mc-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

.lopez-inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.lopez-item {
  background: rgba(255,255,255,0.025);
  border-radius: 8px;
  padding: 10px;
}

.lopez-key {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.lopez-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   SCORE BARS
   ============================================================ */
.score-bars-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.score-bars {
  min-height: 60px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
}

/* ============================================================
   ML TOOLS GRID
   ============================================================ */
.ml-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.tool-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.tool-title {
  font-size: 13px;
  font-weight: 700;
}

.tool-subtitle {
  font-size: 11px;
  color: var(--muted);
}

.tool-status {
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  text-transform: uppercase;
}

.tool-status.active {
  background: rgba(52,211,153,0.12);
  color: #34d399;
}

.tool-offline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
}

.tool-offline-reason {
  font-size: 11px;
  color: rgba(248,113,113,0.7);
}

.tool-retry-btn {
  padding: 3px 10px;
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: 6px;
  color: #f87171;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.tool-retry-btn:hover {
  background: rgba(248,113,113,0.18);
}

.tool-metrics { display: flex; flex-direction: column; gap: 4px; }

.metric-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.metric-item .metric-value { font-weight: 600; }

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tool-tag {
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ============================================================
   WATCHLIST
   ============================================================ */
.detail-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.detail-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-score {
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(79,116,249,0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 800;
  color: #93b4ff;
  box-shadow: 0 0 12px rgba(79,116,249,0.15);
  font-variant-numeric: tabular-nums;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.detail-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.detail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.detail-value {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.detail-meta {
  font-size: 11px;
  color: var(--muted);
}

.weight-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 6px;
}

.detail-weights, .engine-grid, .scenario-card {
  min-height: 60px;
}

.chart-stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.chart-block {}

.chart-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.chart-wrap {
  border-radius: 8px;
  border: 1px solid var(--border);
  min-height: 130px;
  background: rgba(255,255,255,0.015);
}

.chart-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.projection-targets { min-height: 60px; }

.watchlist-grid, .watchlist-table { margin-top: 16px; }

/* ============================================================
   WALK-FORWARD GRID
   ============================================================ */
.wf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.wf-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.wf-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.wf-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.wf-small {
  font-size: 11px;
  color: var(--muted);
}

.engine-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ============================================================
   NEWS GRID
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.news-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.news-card:hover {
  border-color: rgba(79,116,249,0.28);
  box-shadow: 0 4px 20px rgba(79,116,249,0.1);
  transform: translateY(-1px);
}

.news-card.focus { border-color: rgba(79,116,249,0.5); background: rgba(79,116,249,0.06); }
.news-card.clickable .news-card-title { color: #93b4ff; }

.news-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.45;
}

.news-card-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.news-card-tag {
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--accent-dim);
  color: #93b4ff;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid rgba(79,116,249,0.2);
}

.news-open-link {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--live);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.news-open-link:hover { opacity: 1; }

.news-sentiment-pos { color: var(--success); font-weight: 700; font-size: 11px; }
.news-sentiment-neg { color: var(--danger); font-weight: 700; font-size: 11px; }
.news-sentiment-neu { color: var(--muted); font-weight: 600; font-size: 11px; }

.news-meta { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-link:hover { color: var(--text); }

.footer-copy {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--muted-2);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ============================================================
   MODAL
   ============================================================ */
#symbolModal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  padding: 20px;
  z-index: 1000;
}

#symbolModal.open { display: flex; }

.symbol-modal {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 720px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-right: 32px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-panel {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--border);
}

/* ============================================================
   UTILITY
   ============================================================ */
.hidden-mobile { display: flex; }

/* ============================================================
   RESPONSIVE — 900px
   ============================================================ */
@media (max-width: 900px) {
  .header-inner { padding: 0 16px; gap: 8px; }
  .header-tag, .header-version { display: none; }

  .hero-section {
    grid-template-columns: 1fr;
    padding: 32px 0 24px;
    gap: 28px;
  }

  .hero-h1 { font-size: clamp(28px,7vw,44px); }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    min-width: 0;
  }

  .metrics-row { grid-template-columns: 1fr; }

  .mc-grid { grid-template-columns: repeat(2, 1fr); }
  .lopez-inline { grid-template-columns: repeat(2, 1fr); }

  .modal-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

/* ============================================================
   RESPONSIVE — 768px (tablet / standard mobile breakpoint)
   ============================================================ */
@media (max-width: 768px) {
  .hidden-mobile { display: none !important; }
  #mobileMenuBtn { display: flex !important; }

  .page-shell { padding: 24px 16px 60px; gap: 16px; }

  .hero-h1 { font-size: clamp(24px,6vw,36px); }
  .hero-sub { font-size: 14px; }
  .hero-actions { gap: 8px; }

  .controls-panel { padding: 14px; }
  .controls-grid { flex-wrap: wrap; gap: 8px; }

  .content-section { padding: 16px; border-radius: 12px; }
  .section-header { flex-wrap: wrap; gap: 6px; }

  .ml-grid { grid-template-columns: repeat(2,1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .wf-grid { grid-template-columns: repeat(2,1fr); }

  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ============================================================
   RESPONSIVE — 600px
   ============================================================ */
@media (max-width: 600px) {
  /* duplicates removed — covered by 768px block above */

  .page-shell { padding: 20px 12px 60px; gap: 12px; }

  .hero-section { padding: 20px 0 12px; }
  .hero-h1 { font-size: 26px; letter-spacing: -1px; }
  .hero-sub { font-size: 13px; }

  .hero-actions { gap: 8px; }
  .btn-primary, .btn-ghost { padding: 10px 16px; font-size: 13px; }

  .hero-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 12px; }
  .stat-value { font-size: 1.1rem; }

  .status-bar { gap: 12px; padding: 10px 14px; }

  .controls-panel { padding: 14px; }
  .controls-grid { gap: 8px; }
  .ctrl-select, .ctrl-input { min-width: 90px; width: auto; }
  .ctrl-search-group .ctrl-input { width: 100%; }

  .content-section { padding: 18px; border-radius: 12px; }

  .mc-grid { grid-template-columns: repeat(2, 1fr); }
  .lopez-inline { grid-template-columns: repeat(2, 1fr); }

  .detail-grid { grid-template-columns: 1fr; }
  .chart-stack { grid-template-columns: 1fr; }

  .ml-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .wf-grid { grid-template-columns: repeat(2, 1fr); }

  #symbolModal { padding: 0; align-items: flex-end; }
  .symbol-modal { border-radius: 16px 16px 0 0; max-height: 85vh; }
}

/* ============================================================
   RESPONSIVE — 400px
   ============================================================ */
@media (max-width: 400px) {
  .hero-stats { grid-template-columns: 1fr; }
  .wf-grid { grid-template-columns: 1fr; }
  .mc-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   APP.JS GENERATED CLASSES
   ============================================================ */

/* Watchlist cards */
.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.watchlist-grid.dense {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.watch-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.1s;
  position: relative;
  overflow: hidden;
}

.watch-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.watch-card:hover {
  border-color: rgba(79,116,249,0.35);
  background: rgba(79,116,249,0.06);
  box-shadow: 0 4px 24px rgba(79,116,249,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.watch-card:hover::after {
  opacity: 1;
}

.watch-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.watch-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 3px 0;
  color: var(--muted);
}

.watch-meta span:last-child {
  color: var(--text);
  font-weight: 500;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-buy { background: rgba(52,211,153,0.15); color: #34d399; }
.badge-sell { background: rgba(248,113,113,0.15); color: #f87171; }
.badge-hold { background: rgba(245,158,11,0.15); color: #f59e0b; }
.badge-pass { background: rgba(255,255,255,0.06); color: var(--muted); }
.badge-tf { background: var(--accent-dim); color: #93b4ff; }
.badge-day { background: rgba(167,139,250,0.12); color: #a78bfa; }
.badge-swing { background: rgba(79,116,249,0.12); color: #93b4ff; }
.badge-long { background: rgba(52,211,153,0.1); color: #34d399; }
.badge-strong { background: rgba(52,211,153,0.2); color: #34d399; }

/* Watch weights */
.weight-list { margin-top: 8px; }
.weight-item {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 2px 0;
  color: var(--muted);
}
.weight-item span:last-child { color: var(--text); }

/* Score bar (bar chart) */
.score-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
  margin: 4px 0;
}
.score-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #6c8fff 100%);
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* Prob chip */
.prob-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}

.prob-meter {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.prob-bar {
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  overflow: hidden;
  margin: 5px 0 3px;
}

.prob-bar span {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent) 0%, #34d399 100%);
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* loading-placeholder (old name compat) */
.loading-placeholder {
  text-align: center;
  color: var(--muted);
  padding: 24px !important;
}

/* small-note */
.small-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

/* Mini block stats */
.mini-block {
  background: rgba(255,255,255,0.025);
  border-radius: 8px;
  padding: 8px 10px;
}
.mini-label { font-size: 10px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.5px; }
.mini-meta { font-size: 11px; color: var(--muted); }
.mini-weights { margin-top: 6px; }

/* Scenario card */
.scenario-card { color: var(--text); }
.scenario-head { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.scenario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scenario-levels { display: flex; flex-direction: column; gap: 3px; }
.scenario-meta { font-size: 11px; color: var(--muted); }
.scenario-prob { font-size: 13px; font-weight: 700; }
.scenario-foot { font-size: 11px; color: var(--muted); margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--border); }
.level-pill { display: inline-block; padding: 2px 8px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.level-pill.tp { background: rgba(52,211,153,0.12); color: #34d399; }
.level-pill.sl { background: rgba(248,113,113,0.12); color: #f87171; }

/* Detail flex */
.detail-flex { display: flex; align-items: center; gap: 8px; }
.detail-row { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.detail-row.hidden { display: none; }
.detail-value.gauge { font-size: 2rem; font-weight: 900; }

/* Prob stack */
.prob-stack { display: flex; flex-direction: column; gap: 4px; }

/* Main/summary rows */
.main-row { cursor: pointer; }
.main-row:hover td { background: rgba(255,255,255,0.03); }
.summary-row td { background: rgba(79,116,249,0.05); }
.stat-row { font-size: 12px; }

/* Importance bar */
.imp-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 100px; overflow: hidden; margin-top: 3px; }
.imp-bar .bar { height: 100%; background: linear-gradient(90deg, var(--accent) 0%, #6c8fff 100%); border-radius: 100px; transition: width 0.5s cubic-bezier(0.4,0,0.2,1); }

/* Table sort */
.sortable { cursor: pointer; user-select: none; }
.sortable:hover { color: var(--text); }
.caret { font-size: 0.8em; opacity: 0.5; }

/* row-detail (expandable rows) */
.row-detail td { background: rgba(0,0,0,0.2); font-size: 12px; }

/* Watchlist table mode */
.watchlist-table table { border-collapse: collapse; width: 100%; font-size: 12px; }
.watchlist-table th { 
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted-2); padding: 8px 10px; border-bottom: 1px solid var(--border); 
}
.watchlist-table td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.watchlist-table tr:hover td { background: rgba(255,255,255,0.025); cursor: pointer; }

/* Tool icon */
.tool-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent-dim); display: flex; align-items: center;
  justify-content: center; font-size: 12px;
}

/* News card additional */
.news-card { cursor: pointer; transition: border-color 0.15s; }
.news-card:hover { border-color: rgba(79,116,249,0.25); }
.news-card.focus { border-color: rgba(79,116,249,0.5); background: rgba(79,116,249,0.05); }
.news-card.clickable .news-card-title { color: #93b4ff; }
.news-meta { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* Model name */
.model-name { font-size: 13px; font-weight: 600; }

@media (max-width: 600px) {
  .watchlist-grid { grid-template-columns: repeat(2, 1fr); }
  .watchlist-grid.dense { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .watchlist-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE-FIRST OVERHAUL v2 — Premium terminal aesthetic
   ============================================================ */

/* ---- Hamburger button ---- */
.mobile-menu-btn {
  display: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 10px;
  color: rgba(255,255,255,0.7);
  line-height: 1;
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.09); }

/* ---- Mobile nav overlay + drawer ---- */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 998;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 72vw;
  max-width: 300px;
  background: #0c0e1b;
  border-right: 1px solid rgba(255,255,255,0.1);
  z-index: 999;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-nav-drawer.open { transform: translateX(0); }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}
.mobile-nav-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 12px 12px;
  gap: 2px;
  flex: 1;
}
.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: all 0.15s;
}
.mobile-nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}
.mobile-nav-links a.accent {
  color: #93b4ff;
  background: rgba(79,116,249,0.1);
  border: 1px solid rgba(79,116,249,0.2);
}

/* ---- Hero upgrade ---- */
.hero-section {
  position: relative;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: -40px -40px 0;
  background: radial-gradient(ellipse 60% 40% at 20% 50%, rgba(79,116,249,0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-content, .hero-stats {
  position: relative;
  z-index: 1;
}

/* ---- Controls grid: proper 2-col on mobile ---- */
@media (max-width: 640px) {
  .mobile-menu-btn { display: flex; }

  .page-shell { padding: 16px 14px 80px; gap: 14px; }

  .hero-section {
    padding: 20px 0 16px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-h1 { font-size: clamp(26px, 8vw, 40px); letter-spacing: -1.5px; }
  .hero-sub { font-size: 13px; margin-bottom: 20px; }
  .hero-actions { gap: 8px; }
  .btn-primary { padding: 11px 18px; font-size: 13px; }
  .btn-ghost { padding: 11px 14px; font-size: 13px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 8px; min-width: 0; }
  .stat-card { padding: 12px 14px; border-radius: 12px; }
  .stat-value { font-size: 1.15rem; }

  .status-bar {
    gap: 10px;
    padding: 10px 12px;
    flex-wrap: wrap;
  }
  .status-item { min-width: calc(50% - 5px); }
  .scope-row { width: 100%; }

  .controls-panel { padding: 14px; border-radius: 12px; }
  .controls-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }
  .control-group { gap: 4px; }
  .ctrl-select, .ctrl-input {
    min-width: unset !important;
    width: 100% !important;
    font-size: 14px;
    padding: 9px 10px;
    border-radius: 9px;
  }
  .ctrl-search-group { grid-column: 1 / -1; }
  .ctrl-toggles { grid-column: 1 / -1; flex-direction: row; gap: 16px; }
  .control-group:last-of-type { flex-direction: row; gap: 8px; }
  .btn-secondary-sm { flex: 1; padding: 9px 10px; font-size: 13px; text-align: center; }

  .view-toggle-row { gap: 6px; }
  .ctrl-meta { margin-left: 0; width: 100%; font-size: 11px; }

  .content-section { padding: 16px 14px; border-radius: 12px; }
  .section-title { font-size: 14px; }

  /* Tables: horizontal scroll, sticky first col */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 560px; }
  .data-table th, .data-table td { padding: 9px 10px; font-size: 12px; white-space: nowrap; }

  /* Watchlist cards: full width or 2-col */
  .watchlist-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
  }
  .watch-card { padding: 12px; border-radius: 11px; }

  /* ML tools: single col */
  .ml-grid { grid-template-columns: 1fr; gap: 10px; }
  .tool-card { padding: 14px; }

  /* Score bars section */
  .score-bars-wrap { border-radius: 10px; }
  .score-bars { padding: 12px 14px; gap: 7px; }

  /* Monte Carlo + Lopez */
  .metrics-row { grid-template-columns: 1fr; gap: 12px; }
  .mc-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .metrics-card { padding: 16px; }

  /* Modal sheet from bottom */
  #symbolModal { padding: 0; align-items: flex-end; }
  .symbol-modal {
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .modal-header { padding: 16px 18px 12px; }
  .modal-body { padding: 0 18px 24px; }

  /* Chips bigger touch targets */
  .chip { padding: 7px 14px; font-size: 13px; }

  /* News */
  .news-grid { grid-template-columns: 1fr; }
  .news-card { padding: 14px; }
}

/* ---- Very small screens ---- */
@media (max-width: 380px) {
  .watchlist-grid { grid-template-columns: 1fr !important; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .mc-grid { grid-template-columns: repeat(2, 1fr); }
  .controls-grid { grid-template-columns: 1fr; }
  .ctrl-search-group { grid-column: unset; }
  .ctrl-toggles { grid-column: unset; }
}

/* ---- Stat cards glow on hover ---- */
.stat-card:hover {
  border-color: rgba(79,116,249,0.3) !important;
  box-shadow: 0 0 24px rgba(79,116,249,0.12), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}

/* ---- Section title accent ---- */
.section-title::before {
  background: linear-gradient(180deg, var(--accent) 0%, rgba(79,116,249,0.3) 100%) !important;
  height: 18px !important;
  opacity: 1;
}

/* ---- Content section glow on hover ---- */
.content-section:hover {
  border-color: rgba(79,116,249,0.14) !important;
  box-shadow: 0 0 32px rgba(79,116,249,0.05) !important;
}

/* ---- Score bar section title ---- */
#scoreBars > div {
  min-height: 18px;
}

/* ---- Better table styles ---- */
.data-table th {
  background: rgba(79,116,249,0.06) !important;
  color: rgba(237,240,251,0.5) !important;
  font-size: 10px !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
}
.data-table tbody tr:hover td {
  background: rgba(79,116,249,0.06) !important;
}

/* ---- Watch card prob bar fix ---- */
.prob-bar-wrap {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  margin-top: 6px;
  overflow: hidden;
}
.prob-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Footer spacing on mobile ---- */
@media (max-width: 640px) {
  .site-footer { padding: 32px 16px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   PREMIUM REDESIGN v3 — World-class terminal aesthetic
   ============================================================ */

/* ---- Dot grid background ---- */
body {
  background-color: #0b0e14 !important;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -5%, rgba(79,116,249,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 85%, rgba(108,143,255,0.07) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E") !important;
  background-size: auto, auto, 32px 32px !important;
}

/* ---- Animated gradient headline text ---- */
.hero-h1 {
  background: linear-gradient(135deg, #ffffff 0%, #c8d8ff 40%, #93b4ff 70%, #6c8fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(79,116,249,0.25));
}

/* ---- Eyebrow badge upgrade ---- */
.eyebrow-badge {
  background: linear-gradient(135deg, rgba(249,115,22,0.12) 0%, rgba(79,116,249,0.08) 100%) !important;
  border: 1px solid rgba(249,115,22,0.4) !important;
  box-shadow: 0 0 24px rgba(249,115,22,0.15), inset 0 1px 0 rgba(255,255,255,0.06) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---- Hero animated orbs ---- */
.hero-orb-1, .hero-orb-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(79,116,249,0.12) 0%, transparent 70%);
  top: -80px; left: -60px;
}
.hero-orb-2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(108,143,255,0.09) 0%, transparent 70%);
  bottom: -40px; right: 80px;
  animation-delay: -4s;
  animation-duration: 11s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.04); }
}

/* ---- Stat cards premium upgrade ---- */
.stat-card {
  background: linear-gradient(145deg, rgba(16,19,33,0.95) 0%, rgba(12,14,27,0.95) 100%) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease !important;
  overflow: hidden;
  position: relative;
}
.stat-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0; left: 0; right: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%) !important;
  opacity: 0.5 !important;
}
.stat-card:hover {
  border-color: rgba(79,116,249,0.35) !important;
  box-shadow: 0 8px 32px rgba(79,116,249,0.18), 0 0 0 1px rgba(79,116,249,0.1), inset 0 1px 0 rgba(255,255,255,0.07) !important;
  transform: translateY(-2px) !important;
}
.stat-value {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Premium header ---- */
.site-header {
  background: rgba(7,8,14,0.85) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 24px rgba(0,0,0,0.4) !important;
}
.logo-mark {
  background: linear-gradient(135deg, #4f74f9 0%, #7c9fff 50%, #6c8fff 100%) !important;
  box-shadow: 0 0 16px rgba(79,116,249,0.5), inset 0 1px 0 rgba(255,255,255,0.2) !important;
}

/* ---- Premium buttons ---- */
.btn-primary {
  background: linear-gradient(135deg, #4f74f9 0%, #6c8fff 100%) !important;
  box-shadow: 0 4px 24px rgba(79,116,249,0.45), inset 0 1px 0 rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(79,116,249,0.6), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  transform: translateY(-1px) !important;
}
.btn-ghost {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,255,255,0.18) !important;
  transform: translateY(-1px);
}

/* ---- Content sections glass upgrade ---- */
.content-section {
  background: linear-gradient(145deg, rgba(12,14,27,0.9) 0%, rgba(10,12,22,0.9) 100%) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease !important;
  position: relative;
  overflow: hidden;
}
.content-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(79,116,249,0.4) 30%, rgba(108,143,255,0.4) 70%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s;
}
.content-section:hover::before { opacity: 1; }
.content-section:hover {
  border-color: rgba(79,116,249,0.18) !important;
  box-shadow: 0 8px 48px rgba(79,116,249,0.08) !important;
}

/* ---- Controls glass upgrade ---- */
.controls-panel {
  background: linear-gradient(145deg, rgba(12,14,27,0.92) 0%, rgba(10,12,22,0.92) 100%) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
.ctrl-select, .ctrl-input {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ctrl-select:focus, .ctrl-input:focus {
  outline: none;
  border-color: rgba(79,116,249,0.5) !important;
  box-shadow: 0 0 0 3px rgba(79,116,249,0.12) !important;
}

/* ---- Status bar glass ---- */
.status-bar {
  background: linear-gradient(135deg, rgba(12,14,27,0.85) 0%, rgba(10,12,22,0.85) 100%) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* ---- Chips premium ---- */
.chip.active {
  background: linear-gradient(135deg, rgba(79,116,249,0.2) 0%, rgba(108,143,255,0.15) 100%) !important;
  border-color: rgba(79,116,249,0.5) !important;
  color: #b3c8ff !important;
  box-shadow: 0 0 12px rgba(79,116,249,0.2) !important;
}

/* ---- Section titles ---- */
.section-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: -0.4px !important;
}
.section-title::before {
  width: 3px !important;
  height: 20px !important;
  background: linear-gradient(180deg, #4f74f9 0%, rgba(79,116,249,0.2) 100%) !important;
  box-shadow: 0 0 8px rgba(79,116,249,0.6) !important;
  opacity: 1 !important;
}

/* ---- Watch cards premium ---- */
.watch-card {
  background: linear-gradient(145deg, rgba(14,17,30,0.95) 0%, rgba(11,13,24,0.95) 100%) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  transition: all 0.2s ease !important;
}
.watch-card:hover {
  border-color: rgba(79,116,249,0.4) !important;
  box-shadow: 0 8px 32px rgba(79,116,249,0.15), inset 0 1px 0 rgba(255,255,255,0.06) !important;
  transform: translateY(-2px) !important;
}

/* ---- Live dot pulse ---- */
.live-dot::before {
  animation: livePulse 1.8s ease-in-out infinite !important;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 8px currentColor; }
  50% { opacity: 0.5; text-shadow: none; }
}

/* ---- Table premium ---- */
.data-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
.data-table thead th {
  background: rgba(79,116,249,0.06) !important;
  border-bottom: 1px solid rgba(79,116,249,0.15) !important;
  font-size: 10px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: rgba(147,180,255,0.7) !important;
  font-weight: 700 !important;
}
.data-table tbody tr {
  transition: background 0.15s;
}
.data-table tbody tr:hover td {
  background: rgba(79,116,249,0.07) !important;
}

/* ---- Score bars upgrade ---- */
.score-bars-wrap {
  background: linear-gradient(145deg, rgba(12,14,27,0.95) 0%, rgba(10,12,22,0.95) 100%);
  border: 1px solid rgba(255,255,255,0.07) !important;
}

/* ---- Footer upgrade ---- */
.site-footer {
  background: transparent !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
}
