:root {
  --bg: #070b14;
  --bg-terminal: #090d16;
  --surface-base: #070b14;
  --surface-card: #0d1322;
  --surface-elevated: #141c2e;
  --surface-hover: #1a243b;
  --card: #0d1322;
  --card2: #141c2e;
  --border: #1e293b;
  --border-subtle: #162032;
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.42), 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-glow-blue: 0 0 28px rgba(41, 98, 255, 0.22);
  --shadow-glow-emerald: 0 0 28px rgba(14, 203, 129, 0.2);
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --muted: #8492a6;
  --accent: #0ecb81;
  --accent-dark: #059669;
  --fin-up: #0ecb81;
  --fin-down: #f6465d;
  --fin-blue: #2962ff;
  --fin-amber: #f59e0b;
  --warn: #f59e0b;
  --danger: #f6465d;
  --blue: #2962ff;
  --purple: #6366f1;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard", "Noto Sans JP", "Noto Sans KR", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  scroll-padding-top: 155px;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg-terminal);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.num,
.price-num,
.kpi-val,
.stock-table td,
.proof-table td,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   INSTITUTIONAL MARKET TICKER STRIP & TOP NAVIGATION
   ========================================================================== */
.market-ribbon {
  background: #05080f;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 100%;
  overflow-x: hidden;
}

.market-ribbon-inner {
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.market-tape {
  display: flex;
  align-items: center;
  gap: 6px 16px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.tape-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.tape-sym {
  color: var(--text-secondary);
  font-weight: 700;
}

.tape-up {
  color: var(--fin-up);
}

.tape-down {
  color: var(--fin-down);
}

.universe-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  background: rgba(41, 98, 255, 0.12);
  border: 1px solid rgba(41, 98, 255, 0.35);
  border-radius: 3px;
  color: #93c5fd;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.universe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fin-up);
  display: inline-block;
}

.topbar {
  background: rgba(9, 13, 22, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  max-width: 100%;
}

.topbar-inner {
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #131c2e;
  border: 1px solid #2b3b55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fin-up);
}

.brand-badge {
  background: #131b2c;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.66rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Platform Switcher Tabs (RightSideAlpha vs SemiFearGreed) */
.platform-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
  background: #060911;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px;
  gap: 2px;
}

.platform-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 3px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.platform-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.platform-tab.active-rsa {
  background: #162035;
  color: #ffffff;
  border-bottom: 2px solid var(--fin-blue);
}

.platform-tab.active-semi {
  background: #1e1518;
  color: #ffffff;
  border-bottom: 2px solid #dc2626;
}

.platform-tab-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

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

.social-icon-cluster {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.social-btn {
  min-width: 40px;
  min-height: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #090e18;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.social-btn.yt {
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
.social-btn.yt:hover {
  border-color: rgba(239, 68, 68, 0.7);
  background: rgba(239, 68, 68, 0.15);
  color: #ffffff;
}

.social-btn.ig {
  border-color: rgba(236, 72, 153, 0.35);
  color: #f9a8d4;
}
.social-btn.ig:hover {
  border-color: rgba(236, 72, 153, 0.7);
  background: rgba(236, 72, 153, 0.15);
  color: #ffffff;
}

.social-btn.x {
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}
.social-btn.x:hover {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(148, 163, 184, 0.15);
  color: #ffffff;
}

.lang-switch {
  display: inline-flex;
  background: #060911;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  color: var(--muted);
  border: none;
  min-height: 40px;
  min-width: 40px;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
}

.lang-btn.active {
  background: #1e293b;
  color: #ffffff;
}

/* ==========================================================================
   BUTTONS & INSTITUTIONAL CONTROLS (ZERO AI NEON GRADIENTS)
   ========================================================================== */
.btn {
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #283548;
  background: #131b2b;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.btn:hover {
  background: #1c273d;
  border-color: #3b4d68;
}

.btn-primary {
  background: var(--fin-blue);
  color: #ffffff;
  border-color: #3b82f6;
}

.btn-primary:hover {
  background: #1d4ed8;
  border-color: #60a5fa;
}

.btn-emerald {
  background: #0d9462;
  color: #ffffff;
  border-color: #10b981;
}

.btn-emerald:hover {
  background: #057a50;
}

.btn-purple {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #475569;
}

.btn-purple:hover {
  background: #334155;
}

.btn-sm {
  min-height: 40px;
  padding: 6px 10px;
  font-size: 0.74rem;
  border-radius: 4px;
}

.container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 20px;
}

/* ==========================================================================
   RIGHTSIDEALPHA: INSTITUTIONAL HEADER & KPI TERMINAL RIBBON
   ========================================================================== */
.hero {
  background: var(--card);
  border: 1px solid var(--border-card);
  border-top: 2px solid var(--fin-blue);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  padding: 22px 24px;
  margin-bottom: 18px;
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #93c5fd;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--fin-blue);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #ffffff;
}

.hero p {
  color: var(--muted);
  max-width: 920px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.hero-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.hero-cta-card {
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  width: 100%;
}

.hero-cta-card.primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.hero-cta-card.primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-1px);
}

.hero-cta-card.emerald {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.55);
  color: #6ee7b7;
}

.hero-cta-card.emerald:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #ffffff;
}

.hero-cta-card.semi {
  background: rgba(220, 38, 38, 0.16);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

.hero-cta-card.semi:hover {
  background: rgba(220, 38, 38, 0.28);
  color: #ffffff;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.kpi-card {
  background: #0a0f1a;
  border: 1px solid var(--border);
  border-left: 3px solid var(--fin-blue);
  border-radius: 4px;
  padding: 14px 16px;
}

.kpi-card.kpi-emerald {
  border-left-color: var(--fin-up);
}

.kpi-card.kpi-amber {
  border-left-color: var(--fin-amber);
}

.kpi-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.kpi-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0;
  letter-spacing: -0.02em;
}

.kpi-sub {
  font-size: 0.74rem;
  color: var(--muted);
}

/* ==========================================================================
   BENCHMARK PROOF MATRIX
   ========================================================================== */
.proof-card {
  background: var(--card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  margin-bottom: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.proof-card:hover {
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-md);
}

.proof-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.table-responsive-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.proof-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.proof-table th,
.proof-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.proof-table th.col-num,
.proof-table td.col-num {
  text-align: right;
}

.proof-table th {
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #0a0e18;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-highlight {
  background: rgba(14, 203, 129, 0.07);
  font-weight: 700;
}

.proof-highlight td:first-child {
  border-left: 3px solid var(--fin-up);
  color: #ffffff;
}

/* ==========================================================================
   INSTITUTIONAL SCREENER CONTROLS & HIGH-DENSITY STOCK TABLE
   ========================================================================== */
.screener-panel {
  background: var(--card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  overflow: hidden;
}

.screener-header-bar {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #0b101b;
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.search-wrap {
  position: relative;
  flex: 1 1 200px;
  min-width: min(100%, 200px);
  max-width: 420px;
}

.search-box {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px 8px 32px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #060911;
  color: var(--text);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  transition: border-color 0.15s;
}

.search-box:focus {
  outline: none;
  border-color: var(--fin-blue);
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap !important;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
}

.filter-tab {
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #080c15;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.filter-tab:hover {
  color: var(--text);
  border-color: #334155;
}

.filter-tab.active {
  background: #162238;
  color: #ffffff;
  border-color: var(--fin-blue);
}

.tab-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

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

.stock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.stock-table th,
.stock-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}

.stock-table th {
  position: sticky;
  top: 57px;
  z-index: 10;
  background: #0d121f;
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
  transition: color 0.15s ease, background 0.15s ease;
}

.stock-table th:hover {
  color: #ffffff;
  background: #141c2e;
}

.stock-table th.sort-active {
  color: #60a5fa;
  border-bottom: 2px solid var(--fin-blue);
  background: #111a2e;
}

.sort-chevron {
  display: inline-block;
  font-size: 0.72rem;
  margin-left: 3px;
  color: #60a5fa;
}

.sort-chevron.muted {
  color: var(--muted);
  opacity: 0.45;
}

.stock-table th.col-num,
.stock-table td.col-num {
  text-align: right;
}

.stock-table tbody tr {
  transition: background 0.1s ease;
}

.stock-table tbody tr:hover {
  background: var(--surface-hover);
}

/* Institutional Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.badge-ignition {
  background: rgba(14, 203, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(14, 203, 129, 0.4);
  box-shadow: 0 0 10px rgba(14, 203, 129, 0.35);
}
.badge-ignition::before {
  background: #0ecb81;
  box-shadow: 0 0 6px #0ecb81;
}

.badge-watch {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}
.badge-watch::before {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.badge-knife {
  background: rgba(246, 70, 93, 0.12);
  color: #f87171;
  border: 1px solid rgba(246, 70, 93, 0.35);
}
.badge-knife::before {
  background: #f6465d;
}

.badge-trap {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 0 8px rgba(148, 163, 184, 0.25);
}
.badge-trap::before {
  background: #64748b;
  box-shadow: 0 0 4px #64748b;
}

/* Soft Paywall Glassmorphism Styles (Tickers 6–72) */
.soft-paywall-row {
  position: relative;
  transition: background 0.2s ease;
}

.soft-paywall-row td.blurred-cell {
  filter: blur(4px);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
}

.soft-paywall-barrier {
  position: relative;
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(41, 98, 255, 0.35);
  border-radius: 8px;
  padding: 22px 20px;
  margin: 16px auto;
  text-align: center;
  max-width: 800px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 24px rgba(41, 98, 255, 0.2);
}

.soft-paywall-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
  text-decoration: none;
}

.soft-paywall-btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
  transform: translateY(-1px);
}

/* 4-Condition Micro Tags */
.cond-strip {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}

.cond-chip {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 600;
  background: #090d16;
  color: #94a3b8;
  border: 1px solid #1e293b;
}

.cond-chip.pass {
  background: rgba(14, 203, 129, 0.12);
  color: #34d399;
  border-color: rgba(14, 203, 129, 0.3);
}

/* 52-Week Range Visual Slider inside Table */
.range-52w-wrap {
  width: 115px;
  margin-top: 4px;
  margin-left: auto;
}

.range-52w-track {
  position: relative;
  height: 4px;
  background: #1b2438;
  border-radius: 2px;
}

.range-52w-pin {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #38bdf8;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.85);
}

.range-52w-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 2px;
  font-family: var(--font-mono);
}

.range-52w-curr {
  color: #93c5fd;
  font-weight: 700;
}

.score-bar {
  width: 64px;
  height: 4px;
  background: #1e293b;
  border-radius: 2px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}

.score-fill {
  height: 100%;
  background: var(--fin-up);
}

.blur-locked {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.pro-lock-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(41, 98, 255, 0.1);
  border: 1px solid rgba(41, 98, 255, 0.3);
  border-radius: 3px;
  color: #93c5fd;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.pro-lock-cell:hover {
  background: rgba(41, 98, 255, 0.2);
}

/* ==========================================================================
   PRO VAULT & POSITION DOCTOR
   ========================================================================== */
.doctor-inputs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  gap: 20px;
  margin: 20px auto;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.price-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-lg);
}

.price-card.featured {
  border: 1px solid rgba(41, 98, 255, 0.45);
  border-top: 3px solid var(--fin-blue);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
  background: #0e1525;
}

.price-card.best-value {
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-top: 3px solid var(--fin-up);
  box-shadow: var(--shadow-lg), var(--shadow-glow-emerald);
}

.price-badge-popular {
  background: rgba(41, 98, 255, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(41, 98, 255, 0.4);
}

.price-badge-lifetime {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.price-subtext {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 4px;
}

.price-savings-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 4px;
  padding: 4px 8px;
  margin-top: 6px;
}

.price-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}

.pricing-trust-ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 12px 18px;
  background: #070b14;
  border: 1px solid var(--border-card);
  border-radius: 6px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--muted);
}

.price-num {
  font-size: 2rem;
  font-weight: 800;
  margin: 8px 0;
  color: #ffffff;
}

.price-list {
  list-style: none;
  margin: 12px 0 18px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.price-list li {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.cross-banner {
  background: #0e1525;
  border: 1px solid #263554;
  border-left: 4px solid #dc2626;
  border-radius: 6px;
  padding: 20px 24px;
  margin: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   SEMIFEARGREED: CNN BUSINESS FEAR & GREED INDEX AUTHENTIC UI/UX
   ========================================================================== */
.cnn-page-wrapper {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border-card);
  border-top: 3px solid #dc2626;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}

.cnn-editorial-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

.cnn-red-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ef4444;
  margin-bottom: 6px;
}

.cnn-red-tag::before {
  content: "";
  width: 12px;
  height: 12px;
  background: #dc2626;
  display: inline-block;
  border-radius: 2px;
}

.cnn-main-title {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cnn-main-subtitle {
  font-size: 1.02rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}

.cnn-top-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.cnn-card {
  background: #090e18;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

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

.cnn-view-tabs {
  display: inline-flex;
  background: #060911;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px;
}

.cnn-view-tab {
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 18px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
}

.cnn-view-tab.active {
  background: #141c2e;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* CNN Historical Comparison 4-Row Stack */
.cnn-history-list {
  display: flex;
  flex-direction: column;
}

.cnn-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

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

.cnn-hist-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.cnn-hist-regime {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.cnn-score-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  border: 2px solid var(--border);
  background: #141c2e;
  color: #ffffff;
}

/* CNN Regime Colors */
.cnn-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cnn-pill-EXTREME_FEAR {
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.45);
}

.cnn-pill-FEAR {
  background: rgba(234, 88, 12, 0.2);
  color: #fdba74;
  border: 1px solid rgba(234, 88, 12, 0.45);
}

.cnn-pill-NEUTRAL {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.cnn-pill-GREED {
  background: rgba(22, 163, 74, 0.2);
  color: #86efac;
  border: 1px solid rgba(22, 163, 74, 0.45);
}

.cnn-pill-EXTREME_GREED {
  background: rgba(5, 150, 105, 0.22);
  color: #6ee7b7;
  border: 1px solid rgba(5, 150, 105, 0.45);
}

/* CNN 7 Indicators Breakdown List */
.cnn-indicators-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cnn-indicator-item {
  background: #090e18;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.cnn-indicator-item:hover {
  border-color: var(--border-card-hover);
}

.cnn-ind-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.cnn-ind-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
}

.cnn-ind-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.core-etf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

/* Modals & Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--fin-blue);
  border-radius: 6px;
  max-width: 520px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.65);
}

.modal input {
  width: 100%;
  padding: 9px 12px;
  margin: 6px 0 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #060911;
  color: #ffffff;
  font-size: 0.84rem;
  font-family: var(--font-mono);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  color: #ffffff;
  border: 1px solid var(--fin-up);
  border-left: 4px solid var(--fin-up);
  padding: 12px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.82rem;
  display: none;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.semi-calc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.semi-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 1024px) {
  .stock-table th:first-child,
  .stock-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 5;
    background: #0a0e1a;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.45);
  }
  .stock-table th:first-child {
    z-index: 15;
    background: #0d121f;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cnn-top-grid {
    grid-template-columns: 1fr;
  }
  .cnn-indicator-item {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
  }
  .semi-calc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .market-ribbon,
  .universe-pill,
  .ribbon-date-note,
  #proStatusBadge {
    display: none !important;
  }
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 5px 10px;
    gap: 5px;
  }
  .brand-cluster {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }
  .platform-switcher {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .platform-tab {
    width: 100%;
    padding: 5px 8px;
    font-size: 0.72rem;
  }
  .nav-actions {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }
  /* Collapse non-essential external social links from sticky mobile header */
  .social-icon-cluster {
    display: none !important;
  }
  .container {
    padding: 6px 10px;
  }
  .hero {
    padding: 8px 10px;
    margin-bottom: 8px;
  }
  .hero-top-row {
    margin-bottom: 4px;
  }
  .hero h1 {
    font-size: 1.15rem;
    line-height: 1.22;
    margin-bottom: 4px;
  }
  .hero p {
    font-size: 0.76rem;
    line-height: 1.3;
    margin-bottom: 0;
  }
  .hero-action-grid {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 6px;
  }
  .hero-cta-card {
    min-height: 48px;
    font-size: 0.81rem;
    padding: 8px 12px;
  }
  .kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin-top: 6px;
  }
  #position-doctor-card {
    padding: 8px 10px !important;
    gap: 5px !important;
  }
  .kpi-card {
    padding: 6px 6px !important;
  }
  .kpi-label {
    font-size: 0.56rem !important;
    line-height: 1.15 !important;
  }
  .kpi-val {
    font-size: 0.92rem !important;
    margin: 2px 0 0 !important;
  }
  .kpi-sub {
    display: none !important;
  }
  .screener-header-bar {
    padding: 8px 10px;
  }
  .controls {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .search-wrap {
    min-width: 110px !important;
    max-width: 100% !important;
  }
  .filter-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    padding-bottom: 0;
    gap: 6px;
    width: 100%;
  }
  .filter-tab {
    min-height: 40px;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 5px 8px;
    font-size: 0.71rem;
  }
  .stock-table th,
  .stock-table th:first-child,
  .stock-table td:first-child {
    position: static !important;
    box-shadow: none !important;
  }
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .doctor-inputs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .semi-form-grid-2 {
    grid-template-columns: 1fr;
  }
  .cnn-page-wrapper {
    padding: 14px 12px;
  }
  .cnn-card {
    padding: 14px 12px;
  }
  .cnn-indicator-item {
    padding: 14px 12px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 12px;
  }
  .kpi-val {
    font-size: 1.08rem !important;
  }
  .brand-badge {
    display: none;
  }
  .platform-tab {
    padding: 6px 6px;
    font-size: 0.71rem;
  }
  .core-etf-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .timeline-mid-date {
    display: none;
  }
}

/* ==========================================================================
   POSITION DOCTOR VIP CONVERSION FUNNEL & TOP 3 BLUR PREVIEW
   ========================================================================== */
.doc-vip-preview-card {
  position: relative;
  background: #070b14;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 4px;
  padding: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.doc-blur-lock,
.blurred-cell,
.doc-blur-lock.blurred-cell {
  filter: blur(5px);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.65;
  display: inline-block;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.doc-vip-pick-row {
  transition: background 0.15s ease, border-color 0.15s ease;
}

.doc-vip-pick-row:hover {
  background: rgba(14, 28, 50, 0.6);
  border-color: rgba(245, 158, 11, 0.2);
}

.mobile-stock-card-summary {
  display: none;
}

@media (max-width: 768px) {
  .mobile-stock-card-summary {
    display: flex !important;
  }
  .table-wrap {
    overflow-x: hidden;
  }
  .stock-table,
  .stock-table thead,
  .stock-table tbody,
  .stock-table tbody tr,
  .stock-table tbody td:first-child {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .stock-table tbody tr {
    border-bottom: 1px solid var(--border);
  }
  .stock-table tbody td:first-child {
    padding: 11px 12px !important;
    position: static !important;
  }
  .stock-table tbody td:not(:first-child) {
    display: none !important;
  }
  .stock-table thead tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 8px 10px;
    background: #080d19;
    border-bottom: 1px solid var(--border);
  }
  .stock-table thead th {
    min-width: 0 !important;
    min-height: 38px;
    padding: 6px 8px !important;
    border: 1px solid var(--border) !important;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem !important;
    position: static !important;
    text-align: left !important;
  }
  .stock-table thead th:nth-child(n + 5) {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .doc-vip-pick-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .doc-vip-action-bar {
    flex-direction: column;
  }
  .doc-vip-action-bar .btn {
    width: 100%;
  }
}

/* ==========================================================================
   50-70s US INVESTOR SENIOR READABILITY, DAYLIGHT MODE & 1-FIELD MORNING BRIEF
   ========================================================================== */
html {
  font-size: 16.5px;
}
html[data-tom-font="large"] {
  font-size: 18.8px;
}

html[data-tom-theme="light"] {
  --bg: #f1f5f9;
  --bg-terminal: #f4f7fb;
  --surface-base: #f8fafc;
  --surface-card: #ffffff;
  --surface-elevated: #f8fafc;
  --surface-hover: #eff6ff;
  --card: #ffffff;
  --card2: #f8fafc;
  --border: #cbd5e1;
  --border-subtle: #e2e8f0;
  --border-card: #cbd5e1;
  --border-card-hover: #94a3b8;
  --text: #0b1f3a;
  --text-secondary: #1e293b;
  --muted: #475569;
  --fin-up: #047857;
  --fin-down: #be123c;
  --fin-blue: #1d4ed8;
  --fin-amber: #b45309;
}

html[data-tom-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #cbd5e1;
}
html[data-tom-theme="light"] .market-ribbon {
  background: #e2e8f0;
  color: #1e293b;
}
html[data-tom-theme="light"] .hero,
html[data-tom-theme="light"] #position-doctor-card,
html[data-tom-theme="light"] .screener-panel,
html[data-tom-theme="light"] .price-card,
html[data-tom-theme="light"] #easyProfitPlaybookSection {
  background: #ffffff !important;
  color: #0b1f3a !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07) !important;
}
html[data-tom-theme="light"] h1,
html[data-tom-theme="light"] h2,
html[data-tom-theme="light"] h3,
html[data-tom-theme="light"] .stock-table td,
html[data-tom-theme="light"] .stock-table th {
  color: #0b1f3a !important;
}
html[data-tom-theme="light"] #docTicker,
html[data-tom-theme="light"] #docEntry,
html[data-tom-theme="light"] #docDays,
html[data-tom-theme="light"] .search-box {
  background: #f8fafc !important;
  color: #0b1f3a !important;
  border-color: #94a3b8 !important;
}

.tom-traffic-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}
.tom-traffic-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
html[data-tom-theme="light"] .tom-traffic-card {
  background: #f8fafc;
}
.tom-traffic-card:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
}
.tom-traffic-card.t-green { border-top: 4px solid #10b981; }
.tom-traffic-card.t-yellow { border-top: 4px solid #f59e0b; }
.tom-traffic-card.t-red { border-top: 4px solid #ef4444; }

.tom-morning-box {
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.22), rgba(30, 58, 138, 0.22));
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 14px;
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.14);
}
html[data-tom-theme="light"] .tom-morning-box {
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
  border-color: #059669;
}
.tom-morning-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.tom-morning-input {
  flex: 1 1 260px;
  min-height: 60px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid rgba(148, 163, 184, 0.45);
  background: #05080f;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
}
html[data-tom-theme="light"] .tom-morning-input {
  background: #ffffff;
  color: #0b1f3a;
  border-color: #64748b;
}
.tom-morning-input:focus {
  outline: 3px solid rgba(16, 185, 129, 0.4);
  border-color: #10b981;
}
.tom-morning-btn {
  flex: 0 0 auto;
  min-height: 60px;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff !important;
  font-size: 1.04rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.32);
  white-space: nowrap;
}
@media (max-width: 768px) {
  .tom-traffic-strip {
    grid-template-columns: 1fr;
  }
  .tom-morning-btn {
    width: 100%;
    white-space: normal;
  }
}


