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

/* ── Theme Tokens ── */
html[data-theme="dark"] {
  --bg: #0a0c10; --surface: #12151c; --surface-raised: #181c26;
  --border: #1e2330; --border-accent: #2a3040;
  --text: #e2e4e9; --text-dim: #7a8194; --text-faint: #4a5168;
  --sidebar-bg: #0e1117; --hover: #1c2030; --input-bg: #181c26;
}
html[data-theme="light"] {
  --bg: #f4f5f7; --surface: #ffffff; --surface-raised: #ecedf1;
  --border: #dde0e6; --border-accent: #c8ccd4;
  --text: #1a1d24; --text-dim: #5e6478; --text-faint: #8a90a2;
  --sidebar-bg: #ffffff; --hover: #ecedf1; --input-bg: #f0f1f4;
}
:root {
  --green: #22c55e; --green-dim: rgba(34,197,94,0.12);
  --red: #ef4444; --red-dim: rgba(239,68,68,0.12);
  --amber: #f59e0b; --amber-dim: rgba(245,158,11,0.12);
  --blue: #3b82f6; --blue-dim: rgba(59,130,246,0.12);
  --purple: #a855f7; --purple-dim: rgba(168,85,247,0.12);
  --cyan: #06b6d4; --cyan-dim: rgba(6,182,212,0.12);
  --font: 'DM Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 12px; --radius-sm: 8px;
}

body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.5; min-height: 100vh; -webkit-font-smoothing: antialiased;
  display: flex; transition: background .3s, color .3s;
}

/* ── Sidebar ── */
.sidebar {
  width: 232px; min-height: 100vh; background: var(--sidebar-bg);
  border-right: 1px solid var(--border); padding: 24px 0;
  display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; z-index: 100;
  transition: background .3s, border-color .3s;
}
.sidebar-brand { padding: 0 20px; margin-bottom: 36px; }
.sidebar-brand h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; font-weight: 400; letter-spacing: 0.1em;
}
.sidebar-brand .sub {
  font-size: 10px; font-family: var(--mono); color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px;
}
.sidebar-section { padding: 0 12px; margin-bottom: 24px; }
.sidebar-label {
  font-size: 10px; font-family: var(--mono); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint);
  padding: 0 8px; margin-bottom: 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--radius-sm); cursor: pointer; font-size: 13px;
  font-weight: 500; color: var(--text-dim); transition: all .15s;
  border: none; background: none; width: 100%; text-align: left;
  font-family: var(--font); user-select: none;
}
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item.active { background: var(--blue-dim); color: var(--blue); }
.nav-icon {
  width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
  opacity: .6; flex-shrink: 0;
}
.nav-item.active .nav-icon { opacity: 1; }

.sidebar-footer { margin-top: auto; padding: 0 12px; }
.footer-btn {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--radius-sm); cursor: pointer; font-size: 13px;
  font-weight: 500; color: var(--text-dim); transition: all .15s;
  border: none; background: none; width: 100%; text-align: left;
  font-family: var(--font);
}
.footer-btn:hover { background: var(--hover); color: var(--text); }

/* ── Main Area ── */
.main { margin-left: 232px; flex: 1; min-width: 0; }
.shell { max-width: 1280px; margin: 0 auto; padding: 36px 32px 80px; }

/* ── Pages ── */
.page { display: none; }
.page.active { display: block; }

/* ── Page Header ── */
.page-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.page-header .eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px;
}
.page-header .meta {
  font-size: 12px; color: var(--text-dim); font-family: var(--mono); text-align: right; white-space: nowrap;
}
.page-header .meta span { color: var(--text-faint); }

/* ── KPI Row ── */
.kpi-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 36px; }
.kpi-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; position: relative; overflow: hidden; transition: background .3s, border-color .3s;
}
.kpi::before { content:''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.kpi.green::before { background: var(--green); }
.kpi.red::before { background: var(--red); }
.kpi.blue::before { background: var(--blue); }
.kpi.amber::before { background: var(--amber); }
.kpi.purple::before { background: var(--purple); }
.kpi.cyan::before { background: var(--cyan); }
.kpi-label {
  font-size: 10px; font-family: var(--mono); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 8px;
}
.kpi-value { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 11px; color: var(--text-faint); margin-top: 3px; font-family: var(--mono); }

/* ── Section Title ── */
.section-title {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-dim); margin-bottom: 18px; margin-top: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Grid Layouts ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.full-width { margin-bottom: 18px; }

/* ── Card ── */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: background .3s, border-color .3s;
}
.card-title {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-dim); margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--green); } .dot.blue { background: var(--blue); }
.dot.amber { background: var(--amber); } .dot.purple { background: var(--purple); }
.dot.red { background: var(--red); } .dot.cyan { background: var(--cyan); }

/* ── Info Icon Button ── */
.info-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; border: none;
  background: none; cursor: pointer; color: var(--text-faint);
  transition: color .15s, background .15s; padding: 0; margin-left: auto;
  flex-shrink: 0;
}
.info-icon-btn:hover { color: #4ade80; background: rgba(74,222,128,0.1); }

/* ── Timeline Table ── */
.timeline-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.timeline-table th {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint);
  text-align: left; padding: 0 12px 12px; border-bottom: 1px solid var(--border);
}
.timeline-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums; vertical-align: middle;
}
.timeline-table tr:last-child td { border-bottom: none; }
.mono { font-family: var(--mono); font-size: 12px; }

.badge {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600; font-family: var(--mono); letter-spacing: 0.02em; gap: 4px;
}
.badge.bullish { background: var(--green-dim); color: var(--green); }
.badge.bearish { background: var(--red-dim); color: var(--red); }
.badge.neutral { background: var(--amber-dim); color: var(--amber); }

.result-icon {
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.result-icon.correct { background: var(--green-dim); color: var(--green); }
.result-icon.wrong { background: var(--red-dim); color: var(--red); }
.change-positive { color: var(--green); }
.change-negative { color: var(--red); }
.change-flat { color: var(--text-faint); }

/* ── Source Bars ── */
.source-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.source-row:last-child { margin-bottom: 0; }
.source-name {
  font-family: var(--mono); font-size: 11px; color: var(--text-dim);
  width: 150px; flex-shrink: 0; text-align: right; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; direction: rtl;
}
.source-bar-track {
  flex: 1; height: 20px; background: var(--surface-raised); border-radius: 4px; overflow: hidden;
}
.source-bar-fill { height: 100%; border-radius: 4px; transition: width .6s ease; }
.source-accuracy {
  font-family: var(--mono); font-size: 12px; font-weight: 600; width: 44px;
  text-align: right; flex-shrink: 0;
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed; top: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1);
  font-size: 13px; font-weight: 500; color: var(--text);
  transform: translateX(120%); opacity: 0;
  animation: toastIn .35s cubic-bezier(.21,1.02,.73,1) forwards;
  min-width: 280px; max-width: 400px;
}
.toast.out { animation: toastOut .3s cubic-bezier(.55,.06,.68,.19) forwards; }
.toast-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 14px; font-weight: 700;
}
.toast-icon.add { background: var(--green-dim); color: var(--green); }
.toast-icon.remove { background: var(--red-dim); color: var(--red); }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-weight: 600; font-size: 13px; margin-bottom: 1px; }
.toast-msg { font-size: 12px; color: var(--text-dim); font-family: var(--mono); }
.toast-close {
  background: none; border: none; color: var(--text-faint); cursor: pointer;
  padding: 4px; border-radius: 6px; transition: all .15s; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.toast-close:hover { background: var(--hover); color: var(--text); }
@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(120%); opacity: 0; }
}

/* ── Watchlist Page ── */
.watchlist-add {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  max-width: 340px;
}
  
.watchlist-add input {
  flex: 1;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.watchlist-add input:focus {
    outline: none;
    border-color: var(--blue);
}
  
.watchlist-add button {
    padding: 8px 16px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.watchlist-add button:hover {
    opacity: 0.85;
}
  
.watchlist-remove-btn {
    background: none;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.watchlist-remove-btn:hover {
    color: var(--red);
    background: rgba(239, 68, 68, 0.1);
}

.watchlist-count {
  font-family: var(--mono); font-size: 12px; color: var(--text-faint);
  margin-left: auto; white-space: nowrap;
}

.watchlist-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}
.watchlist-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transition: all .2s; position: relative; overflow: hidden;
}
.watchlist-card:hover { border-color: var(--border-accent); }
.watchlist-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.watchlist-card:nth-child(6n+1)::before { background: var(--green); }
.watchlist-card:nth-child(6n+2)::before { background: var(--blue); }
.watchlist-card:nth-child(6n+3)::before { background: var(--purple); }
.watchlist-card:nth-child(6n+4)::before { background: var(--amber); }
.watchlist-card:nth-child(6n+5)::before { background: var(--red); }
.watchlist-card:nth-child(6n+6)::before { background: var(--cyan); }

.ticker-symbol {
  font-family: var(--mono); font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1;
}
.ticker-name {
  font-size: 12px; color: var(--text-dim); margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ticker-tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ticker-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  padding: 3px 8px; border-radius: 100px; letter-spacing: 0.04em;
  background: var(--blue-dim); color: var(--blue);
}
.ticker-tag:nth-child(2) { background: var(--purple-dim); color: var(--purple); }
.ticker-tag:nth-child(3) { background: var(--green-dim); color: var(--green); }

.watchlist-card-info { flex: 1; min-width: 0; }

.watchlist-remove-btn {
  background: none; border: none; color: var(--text-faint); cursor: pointer;
  padding: 6px; border-radius: 6px; transition: all .2s;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  opacity: 0; transform: scale(0.8);
}
.watchlist-card:hover .watchlist-remove-btn { opacity: 1; transform: scale(1); }
.watchlist-remove-btn:hover { background: var(--red-dim); color: var(--red); }

.watchlist-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 20px; text-align: center;
}
.watchlist-empty .icon-wrap {
  width: 56px; height: 56px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--text-faint);
}
.watchlist-empty h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text-dim); }
.watchlist-empty p { font-size: 13px; color: var(--text-faint); max-width: 320px; }

/* ── Ticker Selector ── */
.ticker-selector-bar {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  padding: 16px 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: background .3s, border-color .3s;
}
.ticker-selector-label {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint);
  white-space: nowrap;
}
.ticker-select-wrap {
  position: relative; flex: 1; max-width: 320px;
}
.ticker-select {
  width: 100%; padding: 10px 40px 10px 14px; border-radius: var(--radius-sm);
  background: var(--input-bg); border: 1px solid var(--border);
  color: var(--text); font-family: var(--mono); font-size: 13px;
  font-weight: 600; letter-spacing: 0.02em;
  outline: none; transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.ticker-select:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim);
}
.ticker-select-arrow {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--text-faint);
}
.ticker-selected-info {
  display: flex; align-items: center; gap: 12px; margin-left: auto;
}
.ticker-selected-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 100px; font-family: var(--mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
.ticker-selected-badge.sector { background: var(--blue-dim); color: var(--blue); }
.ticker-selected-badge.exchange { background: var(--purple-dim); color: var(--purple); }
.ticker-empty-watchlist {
  font-size: 12px; color: var(--text-faint); font-style: italic;
}

/* ── Date Range Picker ── */
.date-range-bar {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  padding: 16px 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: background .3s, border-color .3s;
  flex-wrap: wrap;
}
.date-range-label {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint);
  white-space: nowrap;
}
.date-presets {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.date-preset-btn {
  padding: 6px 12px; border-radius: 100px;
  background: var(--surface-raised); border: 1px solid var(--border);
  color: var(--text-dim); font-family: var(--mono); font-size: 11px;
  font-weight: 500; cursor: pointer; transition: all .2s;
  white-space: nowrap; letter-spacing: 0.02em;
}
.date-preset-btn:hover { border-color: var(--blue); color: var(--text); }
.date-preset-btn.active {
  background: var(--blue-dim); border-color: var(--blue); color: var(--blue); font-weight: 600;
}
.date-range-divider {
  width: 1px; height: 28px; background: var(--border); flex-shrink: 0;
}
.date-custom-group {
  display: flex; align-items: center; gap: 8px;
}
.date-custom-group label {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em;
}
.date-input {
  padding: 7px 10px; border-radius: var(--radius-sm);
  background: var(--input-bg); border: 1px solid var(--border);
  color: var(--text); font-family: var(--mono); font-size: 12px;
  font-weight: 500; outline: none; transition: border-color .2s, box-shadow .2s;
  width: 140px;
}
.date-input:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim);
}
.date-input::-webkit-calendar-picker-indicator {
  filter: invert(0.5); cursor: pointer;
}
html[data-theme="dark"] .date-input::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
}
#date-range-display, #dash-date-range-display { display: flex !important; }
.date-range-display {
  font-family: var(--mono); font-size: 11px; color: var(--text-dim);
  margin-left: auto; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.date-range-display .date-range-icon {
  color: var(--blue); display: flex; align-items: center;
}
.date-range-days {
  font-weight: 600; color: var(--text);
}
@media (max-width: 900px) {
  .date-range-bar { gap: 10px; }
  .date-range-divider { display: none; }
  .date-range-display { margin-left: 0; width: 100%; justify-content: flex-end; }
}

/* ── Skeleton / Shimmer Loading ── */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
@keyframes spinRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.skeleton-block {
  background: linear-gradient(90deg, var(--surface-raised) 25%, var(--border) 50%, var(--surface-raised) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.8s infinite ease-in-out;
  border-radius: 6px;
}

.kpi.skeleton .kpi-value,
.kpi.skeleton .kpi-sub {
  color: transparent; position: relative;
}
.kpi.skeleton .kpi-value::after {
  content: ''; position: absolute; inset: 4px 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--surface-raised) 25%, var(--border) 50%, var(--surface-raised) 75%);
  background-size: 800px 100%; animation: shimmer 1.8s infinite ease-in-out;
}
.kpi.skeleton .kpi-sub::after {
  content: ''; position: absolute; inset: 2px 20% 2px 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--surface-raised) 25%, var(--border) 50%, var(--surface-raised) 75%);
  background-size: 800px 100%; animation: shimmer 1.8s infinite ease-in-out;
}
.kpi.skeleton::before { background: var(--border) !important; }

.card-loading-overlay {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 220px; gap: 14px;
}
.card-spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--blue); border-radius: 50%;
  animation: spinRotate 0.8s linear infinite;
}
.card-loading-text {
  font-family: var(--mono); font-size: 11px; color: var(--text-faint);
  letter-spacing: 0.04em; animation: pulseGlow 2s infinite ease-in-out;
}

/* Ticker stats empty / no-selection state */
.ticker-stats-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; text-align: center;
}
.ticker-stats-empty .icon-wrap {
  width: 56px; height: 56px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--text-faint);
}
.ticker-stats-empty h3 {
  font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text-dim);
}
.ticker-stats-empty p {
  font-size: 13px; color: var(--text-faint); max-width: 360px; line-height: 1.6;
}

/* Fade-in for loaded content */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ticker-stats-loaded { animation: fadeInUp 0.35s ease forwards; }

/* ── Splash / Auth Layer ── */
.auth-layer {
  position: fixed; inset: 0; z-index: 9000;
  background: #070a12;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
  overflow: hidden;
}
.auth-layer.hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
}

.auth-container {
  position: relative; z-index: 10;
  width: 100%; max-width: 640px; padding: 0 24px;
}

/* ── Splash Screen ── */
.splash-screen { text-align: center; position: relative; z-index: 2; }

/* FSS Logo – 2x size, Syne 800 for geometric distinction */
.splash-fss {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: 240px; line-height: 0.85; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #5b8def 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent;
  margin-bottom: 16px; position: relative;
  filter: drop-shadow(0 0 80px rgba(59,130,246,0.18));
  animation: fssEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fssEntrance {
  from { opacity: 0; transform: translateY(40px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.splash-fss::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 160px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(91,141,239,0.4), transparent);
}

/* App name – narrow Bebas Neue */
.splash-appname {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(160,185,230,0.55); margin-bottom: 10px;
  animation: fadeSlideUp 0.6s ease 0.25s both;
}
.splash-tagline {
  font-family: var(--mono); font-size: 14px; color: rgba(120,150,200,0.35);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 56px;
  animation: fadeSlideUp 0.6s ease 0.4s both;
}
.splash-desc-new {
  font-size: 18px; color: rgba(190,205,230,0.50); line-height: 1.7;
  max-width: 440px; margin: 0 auto 52px;
  animation: fadeSlideUp 0.6s ease 0.5s both;
}
.splash-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: fadeSlideUp 0.6s ease 0.6s both;
}
.splash-bottom-line {
  margin-top: 56px; font-family: var(--mono); font-size: 12px;
  color: rgba(110,140,190,0.22); letter-spacing: 0.06em;
  animation: fadeSlideUp 0.6s ease 0.75s both;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stat pills on splash */
.splash-stats-row {
  display: flex; gap: 20px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap;
  animation: fadeSlideUp 0.6s ease 0.45s both;
}
.splash-stat {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 100px;
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.1);
}
.splash-stat-val {
  font-family: var(--mono); font-size: 18px; font-weight: 700;
  color: rgba(91,141,239,0.85);
}
.splash-stat-label {
  font-family: var(--mono); font-size: 12px; color: rgba(130,160,220,0.4);
  letter-spacing: 0.04em;
}

/* Force dark theme inside auth layer regardless of global theme */
.auth-layer .auth-card {
  background: #12151c; border-color: #1e2330; color: #e2e4e9;
}
.auth-layer .auth-input {
  background: #181c26; border-color: #1e2330; color: #e2e4e9;
}
.auth-layer .auth-input::placeholder { color: #4a5168; }
.auth-layer .auth-input:focus {
  border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.auth-layer .auth-card-title { color: #e2e4e9; }
.auth-layer .auth-card-subtitle { color: #7a8194; }
.auth-layer .auth-label { color: #7a8194; }
.auth-layer .auth-footer { color: #7a8194; }
.auth-layer .auth-footer-sub { color: #4a5168; }
.auth-layer .auth-link { color: #3b82f6; }
.auth-layer .auth-divider { color: #4a5168; }
.auth-layer .auth-divider::before,
.auth-layer .auth-divider::after { background: #1e2330; }
.auth-layer .toggle-password { color: #4a5168; }
.auth-layer .toggle-password:hover { color: #7a8194; }
.auth-layer .password-strength-bar { background: #1e2330; }
.auth-layer .btn-secondary {
  background: rgba(255,255,255,0.03); border-color: #1e2330; color: #e2e4e9;
}
.auth-layer .btn-secondary:hover {
  background: rgba(255,255,255,0.06); border-color: #2a3040;
}

/* Auth Buttons */
.btn-primary {
  padding: 12px 32px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff; border: none; font-family: var(--font); font-size: 14px;
  font-weight: 600; cursor: pointer; transition: all .2s;
  box-shadow: 0 4px 16px rgba(59,130,246,0.25), 0 1px 3px rgba(0,0,0,0.1);
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  min-width: 140px; position: relative; overflow: hidden;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(59,130,246,0.35); filter: brightness(1.08); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
  padding: 12px 32px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s; min-width: 140px;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn-secondary:hover { background: var(--hover); border-color: var(--border-accent); transform: translateY(-1px); }
.btn-secondary:active { transform: translateY(0); }

/* Auth Forms */
.auth-screen { display: none; }
.auth-screen.active { display: block; }

.auth-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px 36px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  transition: background .3s, border-color .3s;
}
html[data-theme="dark"] .auth-card {
  box-shadow: 0 12px 48px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.15);
}

.auth-card-header { text-align: center; margin-bottom: 32px; }
.auth-card-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(59,130,246,0.2);
  font-family: 'Bebas Neue', sans-serif; font-size: 20px;
  color: #fff; letter-spacing: 0.08em; line-height: 1;
}
.auth-card-title {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px;
}
.auth-card-subtitle {
  font-size: 13px; color: var(--text-dim); line-height: 1.5;
}

.auth-field { margin-bottom: 20px; }
.auth-label {
  display: block; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-dim); margin-bottom: 8px; font-family: var(--mono);
}
.auth-input {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--input-bg); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font); font-size: 14px;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.auth-input:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim);
}
.auth-input::placeholder { color: var(--text-faint); }
.auth-input.error { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-dim); }

.auth-input-hint {
  font-size: 11px; color: var(--text-faint); margin-top: 6px; font-family: var(--mono);
}

.auth-error {
  background: var(--red-dim); color: var(--red); padding: 10px 14px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  margin-bottom: 20px; display: none; align-items: center; gap: 8px;
  border: 1px solid rgba(239,68,68,0.15);
}
.auth-error.visible { display: flex; }

.auth-success {
  background: var(--green-dim); color: var(--green); padding: 10px 14px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  margin-bottom: 20px; display: none; align-items: center; gap: 8px;
  border: 1px solid rgba(34,197,94,0.15);
}
.auth-success.visible { display: flex; }

.auth-form-btn {
  width: 100%; padding: 13px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff; border: none; font-family: var(--font); font-size: 14px;
  font-weight: 600; cursor: pointer; transition: all .2s;
  box-shadow: 0 4px 16px rgba(59,130,246,0.2);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-form-btn:hover { filter: brightness(1.08); box-shadow: 0 6px 24px rgba(59,130,246,0.3); }
.auth-form-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-form-btn.loading .btn-text { opacity: 0; }
.auth-form-btn .btn-spinner {
  display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%; animation: spinRotate 0.7s linear infinite;
  position: absolute;
}
.auth-form-btn.loading .btn-spinner { display: block; }

.auth-divider {
  display: flex; align-items: center; gap: 14px; margin: 24px 0;
  font-size: 11px; color: var(--text-faint); font-family: var(--mono);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.auth-link {
  color: var(--blue); cursor: pointer; font-weight: 600; font-size: 13px;
  background: none; border: none; font-family: var(--font);
  transition: opacity .15s; padding: 0;
}
.auth-link:hover { opacity: 0.8; text-decoration: underline; }

.auth-footer {
  text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-dim);
}
.auth-footer-sub {
  text-align: center; margin-top: 14px; font-size: 12px; color: var(--text-faint);
  font-family: var(--mono);
}

/* Password strength meter */
.password-strength-bar {
  height: 3px; border-radius: 2px; background: var(--border);
  margin-top: 8px; overflow: hidden;
}
.password-strength-fill {
  height: 100%; border-radius: 2px; transition: width .3s, background .3s;
  width: 0;
}
.password-strength-text {
  font-size: 10px; font-family: var(--mono); margin-top: 4px;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Password visibility toggle */
.input-wrap {
  position: relative;
}
.input-wrap .auth-input { padding-right: 44px; }
.toggle-password {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-faint); cursor: pointer;
  padding: 4px; display: flex; align-items: center; justify-content: center;
  border-radius: 4px; transition: color .15s;
}
.toggle-password:hover { color: var(--text-dim); }

/* Profile Page */
.profile-section {
  max-width: 600px;
}
.profile-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 20px;
  transition: background .3s, border-color .3s;
}
.profile-card-title {
  font-size: 14px; font-weight: 600; margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.profile-card-desc {
  font-size: 13px; color: var(--text-dim); margin-bottom: 24px; line-height: 1.5;
}
.profile-info-row {
  display: flex; align-items: center; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.profile-info-row:last-child { border-bottom: none; }
.profile-info-label {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint);
  width: 120px; flex-shrink: 0;
}
.profile-info-value {
  font-size: 14px; color: var(--text);
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, #3b82f6, #a855f7);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(59,130,246,0.2);
}

/* ── Settings Tabs ── */
.settings-tabs {
  display: flex; gap: 4px; margin-bottom: 28px;
  border-bottom: 1px solid var(--border); padding-bottom: 0;
}
.settings-tab {
  display: flex; align-items: center; gap: 6px; padding: 10px 16px;
  font-size: 13px; font-weight: 500; color: var(--text-dim);
  background: none; border: none; border-bottom: 2px solid transparent;
  cursor: pointer; font-family: var(--font); transition: all .15s;
  margin-bottom: -1px;
}
.settings-tab:hover { color: var(--text); }
.settings-tab.active {
  color: var(--text); border-bottom-color: var(--accent, #3b82f6);
}
.settings-panel { display: none; }
.settings-panel.active { display: block; }

/* ── Theme Options ── */
.theme-options {
  display: flex; gap: 12px;
}
.theme-option {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 28px; border-radius: var(--radius); cursor: pointer;
  border: 2px solid var(--border); background: var(--bg);
  font-family: var(--font); transition: all .15s; min-width: 100px;
}
.theme-option:hover { border-color: var(--text-dim); }
.theme-option.active { border-color: var(--accent, #3b82f6); background: var(--surface); }
.theme-option-icon { color: var(--text-dim); }
.theme-option.active .theme-option-icon { color: var(--accent, #3b82f6); }
.theme-option-label { font-size: 13px; font-weight: 500; color: var(--text); }

/* Splash / Auth entrance animations */
@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-screen.active .auth-card { animation: authFadeIn .4s ease forwards; }

/* User menu in sidebar */
.sidebar-user {
  padding: 0 12px; margin-bottom: 16px;
}
.user-info-static {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  width: 100%; font-family: var(--font); text-align: left; color: var(--text);
}
.user-avatar-sm {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #a855f7);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-name-text {
  font-size: 13px; font-weight: 600; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; flex: 1;
}

/* ── Info Modal ── */
.info-modal-overlay {
  position: fixed; inset: 0; z-index: 9999; display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
  animation: infoFadeIn .15s ease;
}
.info-modal-overlay.visible { display: flex; }
@keyframes infoFadeIn { from { opacity: 0; } to { opacity: 1; } }
.info-modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0; width: 90%; max-width: 520px;
  max-height: 80vh; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: infoSlideUp .2s ease;
}
@keyframes infoSlideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.info-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px; border-bottom: 1px solid var(--border);
}
.info-modal-title {
  font-size: 15px; font-weight: 600; margin: 0; color: var(--text);
}
.info-modal-close {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px; border: none;
  background: none; cursor: pointer; color: var(--text-dim);
  transition: color .15s, background .15s;
}
.info-modal-close:hover { background: var(--hover); color: var(--text); }
.info-modal-body {
  padding: 20px 24px 24px; overflow-y: auto; font-size: 13.5px;
  line-height: 1.7; color: var(--text-dim);
}
.info-modal-body strong { color: var(--text); font-weight: 600; }
.info-modal-body p { margin: 0 0 12px; }
.info-modal-body p:last-child { margin-bottom: 0; }
.info-modal-body .info-qa { margin: 16px 0 0; }
.info-modal-body .info-qa dt {
  font-weight: 600; color: var(--text); font-size: 13px; margin-bottom: 2px;
}
.info-modal-body .info-qa dd {
  margin: 0 0 14px 0; padding-left: 0;
}
.info-modal-body .info-qa dd:last-child { margin-bottom: 0; }

/* ── Placeholder Pages ── */
.placeholder-page {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh; text-align: center;
}
.placeholder-page .icon-wrap {
  width: 64px; height: 64px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--text-faint);
}
.placeholder-page h2 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.placeholder-page p { font-size: 14px; color: var(--text-dim); max-width: 380px; }

/* ── Compare Page ── */
.compare-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.compare-ticker-selector { flex: 1; min-width: 0; }
.compare-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.compare-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-dim); cursor: pointer; transition: all .15s;
  user-select: none;
}
.compare-pill:hover { border-color: var(--text-faint); color: var(--text); }
.compare-pill.selected { color: #fff; border-color: transparent; }
.compare-pill.selected.color-0 { background: #3b82f6; }
.compare-pill.selected.color-1 { background: #f59e0b; }
.compare-pill.selected.color-2 { background: #22c55e; }
.compare-pill.selected.color-3 { background: #a855f7; }
.compare-pill.selected.color-4 { background: #ef4444; }
.compare-pill.selected.color-5 { background: #06b6d4; }
.compare-pill.selected.color-6 { background: #f97316; }
.compare-pill.selected.color-7 { background: #ec4899; }
.compare-pill .pill-name {
  font-size: 11px; font-weight: 400; font-family: var(--font);
  color: var(--text-faint); margin-left: 2px;
}
.compare-pill.selected .pill-name { color: rgba(255,255,255,0.7); }
.compare-pill.disabled {
  opacity: 0.4; cursor: not-allowed; pointer-events: none;
}
.compare-sort {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.compare-sort-label {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; color: var(--text-dim); white-space: nowrap;
}
.compare-sort-select {
  font-family: var(--font); font-size: 12px; padding: 6px 10px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text); cursor: pointer;
  outline: none; transition: border-color .15s;
}
.compare-sort-select:focus { border-color: var(--accent, #3b82f6); }
.compare-tabs { margin-top: 0; }
.compare-empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px; color: var(--text-faint);
  font-size: 14px; text-align: center; gap: 12px;
}
.compare-empty-state .icon-wrap {
  width: 48px; height: 48px; display: flex; align-items: center;
  justify-content: center; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
}
.compare-legend {
  display: flex; gap: 16px; margin-bottom: 14px; flex-wrap: wrap;
}
.compare-legend-item {
  display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500;
}
.compare-legend-swatch {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.compare-legend-ticker {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600;
}
.compare-legend-name { color: var(--text-dim); font-size: 11px; }
.compare-legend-acc { color: var(--text-faint); font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.compare-summary-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.compare-stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  border-top: 3px solid var(--border); transition: background .3s, border-color .3s;
}
.compare-stat-card.color-0 { border-top-color: #3b82f6; }
.compare-stat-card.color-1 { border-top-color: #f59e0b; }
.compare-stat-card.color-2 { border-top-color: #22c55e; }
.compare-stat-card.color-3 { border-top-color: #a855f7; }
.compare-stat-card.color-4 { border-top-color: #ef4444; }
.compare-stat-card.color-5 { border-top-color: #06b6d4; }
.compare-stat-card.color-6 { border-top-color: #f97316; }
.compare-stat-card.color-7 { border-top-color: #ec4899; }
.compare-stat-card h3 {
  font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700;
  margin: 0 0 4px 0;
}
.compare-stat-card .stat-name { color: var(--text-dim); font-size: 12px; margin-bottom: 16px; }
.compare-stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.compare-stat-row:last-child { border-bottom: none; }
.compare-stat-label { color: var(--text-dim); }
.compare-stat-value { font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.compare-cal-insight {
  margin-top: 14px; padding: 14px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-dim); line-height: 1.6;
}
.compare-cal-insight strong { color: var(--text); font-weight: 600; }

/* Returns by Signal */
.returns-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 10px;
}
.returns-detail-table th {
  text-align: left;
  padding: 6px 8px;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
}
.returns-detail-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
.returns-detail-table td.positive { color: #22c55e; }
.returns-detail-table td.negative { color: #ef4444; }
.compare-returns-table { margin-top: 4px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .splash-fss { font-size: 180px; }
}
@media (max-width: 900px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi-row.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .splash-fss { font-size: 120px; }
  .splash-appname { font-size: 20px; letter-spacing: 0.2em; }
  .splash-stats-row { gap: 10px; }
  .splash-stat { padding: 8px 14px; }
  .compare-controls { flex-direction: column; align-items: stretch; }
  .compare-sort { justify-content: flex-end; }
  .compare-summary-grid { grid-template-columns: 1fr; }
}