/* QuantumFlow — Universal Responsive System & Dark/Light Theme System */
:root {
  --bg-dark: #070B12;
  --bg-surface: #0C1626;
  --bg-card: rgba(15, 30, 51, 0.75);
  --bg-card-hover: rgba(20, 39, 66, 0.85);
  --bg-input: #0B1423;
  --border-color: #1B2B42;
  --border-lit: #3B5B7A;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-sub: #64748B;

  --call-color: #38BDF8;
  --put-color: #FB923C;
  --pos-color: #34D399;
  --neg-color: #FB7185;
  --accent: #7DD3FC;
  --accent-glow: rgba(125, 211, 252, 0.25);
  --warn-color: #FBBF24;
  --purple-accent: #C4B5FD;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-brand: 'Syne', sans-serif;
}

[data-theme="light"] {
  --bg-dark: #F1F5F9;
  --bg-surface: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(241, 245, 249, 0.95);
  --bg-input: #F8FAFC;
  --border-color: #CBD5E1;
  --border-lit: #94A3B8;

  --text-main: #0F172A;
  --text-muted: #475569;
  --text-sub: #64748B;

  --call-color: #0284C7;
  --put-color: #EA580C;
  --pos-color: #059669;
  --neg-color: #E11D48;
  --accent: #0284C7;
  --accent-glow: rgba(2, 132, 199, 0.15);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(900px 600px at 15% 10%, rgba(125, 211, 252, 0.08), transparent 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(52, 211, 153, 0.05), transparent 60%),
    radial-gradient(900px 600px at 70% 90%, rgba(251, 146, 60, 0.04), transparent 60%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono-font {
  font-family: var(--font-mono);
}

.hidden {
  display: none !important;
}

/* Fullscreen Loading Overlay (100% Dynamic Viewport Centering for All Screen Sizes) */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* Dynamic Viewport Height for Mobile Safari/Chrome Address Bars */
  z-index: 9999;
  background: rgba(7, 11, 18, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  box-sizing: border-box;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 0 16px 0;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 24px var(--accent-glow);
}

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

.loader-title {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-main);
  line-height: 1.2;
  margin: 0 0 10px 0;
}

.loader-title em {
  color: var(--accent);
  font-style: normal;
}

.loader-sub {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--accent);
  margin: 0 0 8px 0;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.loader-tag {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* 3D Volatility Surface Loading Overlay */
.volsurf-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 11, 18, 0.85);
  backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: opacity 0.3s ease;
}

.volsurf-loader.hidden {
  display: none !important;
}

.volsurf-loader-text {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: 14px;
  letter-spacing: 0.04em;
}

.volsurf-loader-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Glassmorphism Card Utilities */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.glass-card:hover {
  border-color: var(--border-lit);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

/* Top Live Strip */
.top-strip {
  background: rgba(12, 22, 38, 0.95);
  border-bottom: 1px solid var(--border-color);
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ts-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ts-badge {
  background: rgba(52, 211, 153, 0.15);
  color: var(--pos-color);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.ts-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Badges */
.badge {
  padding: 3px 9px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-open {
  background: rgba(52, 211, 153, 0.15);
  color: var(--pos-color);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-bull {
  background: rgba(52, 211, 153, 0.15);
  color: var(--pos-color);
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.badge-bear {
  background: rgba(251, 113, 133, 0.15);
  color: var(--neg-color);
  border: 1px solid rgba(251, 113, 133, 0.4);
}

.badge-high {
  background: rgba(125, 211, 252, 0.15);
  color: var(--accent);
  border: 1px solid rgba(125, 211, 252, 0.4);
}

/* Pre-Market Opening Bell Intelligence Card Styling */
.premarket-gap-card {
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(11, 19, 43, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 100%;
}

.pg-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.pg-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg-icon {
  font-size: 1.2rem;
}

.pg-title {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: #F8FAFC;
}

.pg-sub-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
}

.pg-window-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--pos-color);
  background: rgba(52, 211, 153, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pg-pulse {
  animation: pulsePulse 1.5s infinite;
}

@keyframes pulsePulse {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

.pg-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 900px) {
  .pg-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .premarket-gap-card {
    padding: 14px 14px;
  }

  .pg-hdr {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pg-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .pg-stat-box {
    padding: 8px 6px;
  }

  .pg-stat-lbl {
    font-size: 0.6rem;
  }

  .pg-stat-val {
    font-size: 0.88rem;
  }

  .pg-stat-sub {
    font-size: 0.65rem;
  }

  .pg-narrative-box {
    padding: 10px 12px;
    gap: 10px;
  }

  .pg-narrative-icon {
    font-size: 1.4rem;
  }

  .pg-narrative-text {
    font-size: 0.78rem;
    line-height: 1.4;
  }
}

.pg-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pg-stat-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.pg-stat-lbl {
  font-size: 0.68rem;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.pg-stat-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #F8FAFC;
}

.pg-stat-sub {
  font-size: 0.72rem;
  margin-top: 2px;
}

.pg-narrative-box {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  gap: 14px;
}

.pg-narrative-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.pg-narrative-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-main);
}

/* Header */
#app-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

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

.brand-logo {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #0284C7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px var(--accent-glow);
}

.logo-icon {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.25rem;
  color: #070B12;
}

.pulse-ring {
  position: absolute;
  inset: -3px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  opacity: 0.4;
  animation: pulse-ring 2.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 0.2; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.brand-text h1,
.brand-text .logo-title {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-main);
  line-height: 1;
}

.brand-text h1 em,
.brand-text .logo-title em {
  color: var(--accent);
  font-style: normal;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  display: block;
  margin-top: 2px;
}

/* Spot Tickers */
.spot-tickers {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
}

.ticker-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  min-width: 140px;
}

.ticker-box.active {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.1);
}

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

.tb-symbol {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-muted);
}

.tb-tag {
  font-size: 0.58rem;
  color: var(--text-sub);
  background: var(--border-color);
  padding: 1px 4px;
  border-radius: 3px;
}

.tb-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.tb-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.tb-change {
  font-size: 0.68rem;
  font-weight: 600;
}

.pos { color: var(--pos-color); }
.neg { color: var(--neg-color); }

/* Header Controls & Heartbeat Indicator */
.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.heartbeat-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
}

.hb-pulse {
  display: inline-block;
  animation: heartbeat 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.ctrl-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.ctrl-btn:hover {
  color: var(--text-main);
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

/* Filter & Expiry Control Bar */
.filter-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

.filter-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.06em;
}

.custom-select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.range-segmented {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.seg-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-btn:hover {
  color: var(--text-main);
}

.seg-btn.active {
  background: #0284C7;
  color: #FFFFFF !important;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
}

.filter-summary {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Tabs with Navigation Arrows */
.nav-tabs {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 63px;
  z-index: 900;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.nav-scroll-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--accent);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: all 0.15s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-scroll-btn:hover {
  background: #0284C7;
  color: #FFFFFF !important;
  border-color: #0284C7;
  transform: scale(1.08);
}

.tabs-container {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 10px;
  scroll-behavior: smooth;
  flex: 1;
}

.tabs-container::-webkit-scrollbar { display: none; }

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 12px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.tab-btn.active {
  color: #FFFFFF !important;
  border-bottom: 3px solid #38BDF8;
  background: rgba(56, 189, 248, 0.18);
  font-weight: 800;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

/* Main Body & Panes */
#app-main {
  flex: 1;
  padding: 24px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

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

/* Cards & Layouts */
.card {
  margin-bottom: 24px;
}

.card-hdr {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-hdr h3 {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(125, 211, 252, 0.1);
  border: 1px solid rgba(125, 211, 252, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
}

.card-body {
  padding: 20px;
}

/* Synopsis Metrics Grid - Equal 3-Column Width & Responsive Fit */
.synopsis-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .synopsis-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.mc-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  min-width: 0;
  gap: 8px;
}

.mc-title {
  font-family: var(--font-mono);
  font-size: clamp(0.60rem, 0.72vw, 0.72rem);
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-sub {
  font-size: clamp(0.60rem, 0.72vw, 0.72rem);
  color: var(--text-muted);
  white-space: nowrap;
}

/* Gauge Component */
.gauge-container {
  text-align: center;
  padding: 6px 0;
  min-width: 0;
}

.gauge-meter {
  position: relative;
  height: 65px;
  background: linear-gradient(90deg, var(--neg-color) 0%, var(--warn-color) 50%, var(--pos-color) 100%);
  border-radius: 40px 40px 0 0;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

.gauge-meter::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 46px;
  background: var(--bg-surface);
  border-radius: 40px 40px 0 0;
}

.gauge-needle {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: 55px;
  background: #FFFFFF;
  transform-origin: bottom center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
  z-index: 10;
}

.gauge-labels {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: clamp(0.60rem, 0.70vw, 0.68rem);
  font-weight: 800;
  padding: 0 2px;
  gap: 4px;
}

.gl-short {
  color: #FB7185 !important;
  text-shadow: 0 0 8px rgba(251, 113, 133, 0.5);
  text-align: left;
  line-height: 1.2;
  white-space: nowrap;
}

.gl-neutral {
  color: #FDE047 !important;
  text-shadow: 0 0 8px rgba(253, 224, 71, 0.5);
  text-align: center;
  white-space: nowrap;
}

.gl-long {
  color: #34D399 !important;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
  text-align: right;
  line-height: 1.2;
  white-space: nowrap;
}

.gl-short small, .gl-long small {
  font-size: clamp(0.52rem, 0.62vw, 0.60rem);
  opacity: 0.95;
  font-weight: 700;
  display: block;
  white-space: nowrap;
}

.gauge-value-box {
  margin-top: 10px;
  font-size: clamp(0.72rem, 0.8vw, 0.82rem);
  color: var(--text-muted);
  white-space: nowrap;
}

.gv-val {
  font-size: clamp(0.88rem, 1.0vw, 1.10rem);
  font-weight: 700;
  margin-left: 4px;
  white-space: nowrap;
}

/* Levels List */
.levels-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.level-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  min-width: 0;
  gap: 6px;
}

.li-label {
  font-size: clamp(0.65rem, 0.72vw, 0.76rem);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.li-val {
  font-size: clamp(0.85rem, 0.95vw, 1.05rem);
  font-weight: 800;
  font-family: var(--font-mono);
  white-space: nowrap;
  flex-shrink: 0;
}

.highlight-val { color: #FDE047 !important; text-shadow: 0 0 8px rgba(253, 224, 71, 0.4); }
.accent-val { color: #38BDF8 !important; text-shadow: 0 0 8px rgba(56, 189, 248, 0.4); }

/* Sentiment Verdict Box */
.verdict-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  min-width: 0;
}

.verdict-banner.bull {
  background: rgba(52, 211, 153, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #34D399;
}

.verdict-banner.bear {
  background: rgba(251, 113, 133, 0.18);
  border: 1px solid rgba(251, 113, 133, 0.5);
  color: #FB7185;
}

.verdict-icon { font-size: 1.4rem; flex-shrink: 0; }
.verdict-text { min-width: 0; flex: 1; }
.vt-main { font-family: var(--font-brand); font-size: clamp(0.64rem, 0.76vw, 0.82rem); font-weight: 800; color: #FFFFFF !important; display: block; white-space: nowrap; overflow: visible; letter-spacing: -0.01em; }
.vt-sub { font-size: clamp(0.56rem, 0.64vw, 0.70rem); color: #F1F5F9 !important; font-weight: 600; display: block; margin-top: 2px; white-space: nowrap; overflow: visible; }

.range-projection {
  background: var(--bg-input);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: clamp(0.62rem, 0.70vw, 0.74rem);
  flex-wrap: nowrap;
  min-width: 0;
}

.rp-lbl {
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: clamp(0.62rem, 0.70vw, 0.74rem);
}

.rp-val {
  font-size: clamp(0.72rem, 0.80vw, 0.84rem);
  font-weight: 800;
  color: #E0E7FF !important;
  text-shadow: 0 0 8px rgba(224, 231, 255, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Deep Dive Synopsis Grid */
.synopsis-detail-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 20px;
}

@media (max-width: 1024px) {
  .synopsis-detail-grid { grid-template-columns: 1fr; }
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.quantum-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.quantum-table th {
  background: var(--bg-input);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-color);
}

.quantum-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
}

.quantum-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.quantum-table tr.atm-row {
  background: rgba(125, 211, 252, 0.1);
  font-weight: 700;
}

/* Charts */
.chart-container {
  position: relative;
  height: 440px;
  width: 100%;
}

.chart-container-sm {
  position: relative;
  height: 220px;
  width: 100%;
  margin-top: 14px;
}

.legend-pills {
  display: flex;
  gap: 8px;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.pill-call { background: rgba(56, 189, 248, 0.15); color: var(--call-color); border: 1px solid rgba(56, 189, 248, 0.3); }
.pill-put { background: rgba(251, 146, 60, 0.15); color: var(--put-color); border: 1px solid rgba(251, 146, 60, 0.3); }
.pill-spot { background: rgba(52, 211, 153, 0.15); color: var(--pos-color); border: 1px solid rgba(52, 211, 153, 0.3); }
.pill-pos { background: rgba(52, 211, 153, 0.15); color: var(--pos-color); border: 1px solid rgba(52, 211, 153, 0.3); }
.pill-neg { background: rgba(251, 113, 133, 0.15); color: var(--neg-color); border: 1px solid rgba(251, 113, 133, 0.3); }

/* Heatmap Grid */
.heatmap-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.hm-cell {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  transition: transform 0.15s ease;
}

.hm-cell:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.hm-strike {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.hm-metric {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
}

/* PCR Cards */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pcr-display-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.pcr-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}

.pcr-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-sub);
  letter-spacing: 0.08em;
  display: block;
}

.pcr-val {
  font-size: 1.6rem;
  font-weight: 800;
  display: block;
  margin: 4px 0;
}

.pcr-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Educational Card */
.edu-card {
  background: rgba(12, 22, 38, 0.9);
  border-left: 4px solid var(--accent);
}

.edu-body p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.edu-body strong {
  color: var(--accent);
}

/* Footer */
#app-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
  font-size: 0.75rem;
  color: var(--text-sub);
}

.footer-content {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.foot-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-lit);
  border-radius: 3px;
}

/* ==================== UNIVERSAL RESPONSIVE BREAKPOINTS ==================== */

/* 1. Mobile Devices (Portrait & Small Screens: < 600px) */
@media (max-width: 600px) {
  .top-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 12px;
  }

  .ts-right {
    width: 100%;
    justify-content: space-between;
  }

  #app-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
    position: relative;
  }

  .header-brand {
    justify-content: center;
  }

  .spot-tickers {
    flex-direction: row;
    width: 100%;
  }

  .ticker-box {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
  }

  .tb-price {
    font-size: 0.95rem;
  }

  .tb-change {
    font-size: 0.65rem;
  }

  .header-controls {
    justify-content: space-between;
    width: 100%;
  }

  .filter-bar {
    padding: 10px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .range-segmented {
    justify-content: space-between;
    width: 100%;
  }

  .seg-btn {
    flex: 1;
    text-align: center;
    padding: 5px 6px;
    font-size: 0.68rem;
  }

  .filter-summary {
    margin-left: 0;
    text-align: center;
    font-size: 0.72rem;
  }

  .nav-tabs {
    top: 0;
    padding: 0 4px;
  }

  .nav-scroll-btn {
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
  }

  .tab-btn {
    padding: 10px 12px;
    font-size: 0.72rem;
  }

  #app-main {
    padding: 12px;
  }

  .card-hdr {
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .card-body {
    padding: 14px;
  }

  .synopsis-metrics-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .chart-container {
    height: 300px;
  }

  .chart-container-sm {
    height: 180px;
  }

  .heatmap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .hm-cell {
    padding: 8px 6px;
  }

  .hm-strike {
    font-size: 0.8rem;
  }

  .grid-2col {
    grid-template-columns: 1fr;
  }

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

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .foot-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

/* 2. Tablets & Medium Screens (601px - 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
  #app-header {
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .spot-tickers {
    gap: 10px;
  }

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

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

  .chart-container {
    height: 360px;
  }

  .heatmap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 3. Large Laptops & Desktops (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .synopsis-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .chart-container {
    height: 420px;
  }
}

/* 4. Ultra-Wide & 4K Displays (> 1441px) */
@media (min-width: 1441px) {
  #app-main {
    max-width: 1800px;
  }

  .chart-container {
    height: 480px;
  }
}

/* Google Auth Components & Modal */
.user-auth-container {
  display: flex;
  align-items: center;
}

.g-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.g-btn:hover {
  border-color: #4285F4;
  background: rgba(66, 133, 244, 0.12);
  color: #FFFFFF;
}

.g-icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.g-icon-lg {
  width: 32px;
  height: 32px;
}

.user-profile-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.user-profile-box.hidden {
  display: none !important;
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  object-fit: cover;
}

.user-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
}

.signout-btn {
  background: rgba(251, 113, 133, 0.15);
  border: 1px solid rgba(251, 113, 133, 0.3);
  color: #FB7185;
  font-size: 0.68rem;
  padding: 3px 8px;
}

.signout-btn:hover {
  background: #FB7185;
  color: #FFFFFF;
}

/* Industry Standard Mobile Fixed Body Lock */
body.modal-open-lock {
  position: fixed !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  overflow: hidden !important;
}

/* Modal Overlay & Compact Bounded Box (Zero-Scroll Overlay, 100% Fixed Screen Center Alignment) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 10000;
  background: rgba(7, 11, 18, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  overflow: hidden !important;
  overscroll-behavior: contain !important;
  box-sizing: border-box;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-box, .modal-card {
  width: 94vw;
  max-width: 620px;
  max-height: 86vh;
  max-height: 86dvh;
  margin: auto !important;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border-lit);
  background: var(--bg-card);
  box-sizing: border-box;
  flex-shrink: 0;
}

.modal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.95);
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
}

.modal-title-box h3 {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.modal-close {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: rgba(251, 113, 133, 0.25);
  color: #FB7185;
  border-color: rgba(251, 113, 133, 0.5);
  transform: scale(1.05);
}

#sv-modal-body, .modal-body {
  padding: 14px 16px;
  overflow-y: auto;
  max-height: calc(88vh - 60px);
  -webkit-overflow-scrolling: touch;
}

.modal-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.auth-input-group {
  margin-bottom: 14px;
}

.auth-lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-sub);
  display: block;
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
}

.auth-input:focus {
  border-color: #4285F4;
  box-shadow: 0 0 10px rgba(66, 133, 244, 0.25);
}

.btn-g-auth-submit {
  width: 100%;
  background: linear-gradient(135deg, #4285F4, #2563EB);
  color: #FFFFFF;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease;
}

.btn-g-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

/* Responsive Header Controls & Zero Sign Out Clipping */
.top-strip.hidden,
.spot-tickers.hidden,
.heartbeat-box.hidden {
  display: none !important;
}

.heartbeat-box {
  display: flex;
}

@media (max-width: 1550px) {
  .brand-tag {
    display: none !important;
  }
  .ticker-box {
    min-width: 110px;
    padding: 3px 6px;
  }
  .tb-price {
    font-size: 0.85rem;
  }
}

@media (max-width: 1380px) {
  #app-header {
    padding: 6px 8px;
    gap: 6px;
  }
  .header-controls {
    gap: 4px;
  }
  .user-profile-box {
    padding: 2px 5px;
    gap: 4px;
  }
  .user-name {
    font-size: 0.70rem;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .signout-btn, .admin-shortcut-btn {
    padding: 2px 5px;
    font-size: 0.62rem;
  }
}

/* ==================== ULTRA-ATTRACTIVE LANDING PAGE STYLES ==================== */
.landing-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 24px 60px;
}

.landing-hero {
  position: relative;
  text-align: center;
  padding: 60px 20px 50px;
  border-radius: var(--radius-lg);
  background: radial-gradient(1000px 500px at 50% 0%, rgba(125, 211, 252, 0.12), transparent 70%),
              linear-gradient(180deg, var(--bg-surface), var(--bg-dark));
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin-bottom: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.3);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.banknifty-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.25)) !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  color: #FBBF24 !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  animation: pulseBankNifty 2.5s infinite ease-in-out;
}

@keyframes pulseBankNifty {
  0%, 100% {
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.5);
  }
  50% {
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.65);
    border-color: rgba(253, 224, 71, 0.8);
  }
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FBBF24;
  box-shadow: 0 0 8px #FBBF24;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-brand);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-gradient-text {
  background: linear-gradient(135deg, var(--accent), #38BDF8, #34D399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-cta-box {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.btn-hero-signin {
  background: linear-gradient(135deg, #0284C7, #0369A1);
  color: #FFFFFF;
  border: 1px solid rgba(125, 211, 252, 0.4);
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
  transition: all 0.2s ease;
}

.btn-hero-signin:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(2, 132, 199, 0.55);
  border-color: var(--accent);
}

.g-icon-hero {
  width: 22px;
  height: 22px;
}

.cta-arrow {
  transition: transform 0.2s ease;
}

.btn-hero-signin:hover .cta-arrow {
  transform: translateX(4px);
}

.hero-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-sub);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Features Grid */
.landing-features {
  margin-bottom: 50px;
}

.section-hdr {
  text-align: center;
  margin-bottom: 32px;
}

.section-hdr h2 {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.section-hdr p {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-top: 4px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.fc-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Preview Card Section */
.landing-preview-section {
  margin-bottom: 50px;
}

.preview-card {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.pc-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.pc-hdr h3 {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.pc-hdr p {
  font-size: 0.8rem;
  color: var(--text-sub);
}

.pc-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.prev-stat {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
}

.prev-stat .lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-sub);
  letter-spacing: 0.06em;
}

.prev-stat .val {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 6px 0 2px;
}

.prev-stat .sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Bottom CTA Card */
.landing-bottom-cta {
  text-align: center;
}

.b-cta-card {
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(12, 22, 38, 0.95), rgba(7, 11, 18, 0.98));
}

.b-cta-card h2 {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.b-cta-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* Subscription Expired Modal Styles */
.sub-modal-card {
  max-width: 480px;
  text-align: center;
  padding: 30px;
}

.sub-hdr {
  margin-bottom: 20px;
}

.sub-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--warn-color);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.sub-hdr h3 {
  font-family: var(--font-brand);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.sub-tagline {
  font-size: 0.84rem;
  color: var(--warn-color);
  margin-top: 4px;
  font-weight: 600;
}

.sub-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sub-contact-card {
  background: var(--bg-input);
  border: 1px dashed var(--accent);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.scc-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.06em;
}

.scc-phone {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 6px 0;
  letter-spacing: 0.04em;
}

.scc-note {
  font-size: 0.74rem;
  color: var(--pos-color);
}

.sub-plan-details {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.spd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 4px 0;
  color: var(--text-muted);
}

/* Landing Page Image Wrappers & Graphic Assets */
.hero-image-wrapper {
  margin-top: 36px;
  position: relative;
  border-radius: 16px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.2), rgba(52, 211, 153, 0.1));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  contain: layout paint;
  min-height: 250px;
}

.hero-mockup-img {
  width: 100%;
  aspect-ratio: 1000 / 525;
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  display: block;
  transition: transform 0.3s ease;
}

.hero-mockup-img:hover {
  transform: scale(1.01);
}

.fc-img-wrapper {
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  aspect-ratio: 600 / 320;
}

.fc-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.feature-card:hover .fc-img {
  transform: scale(1.04);
}

.pc-feature-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pc-feature-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Footer FAQ Section Styles */
.footer-faq-section {
  max-width: 1200px;
  margin: 30px auto 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.faq-section-title {
  font-family: var(--font-brand);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.faq-section-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.faq-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.faq-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.faq-question {
  font-family: var(--font-brand);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.faq-question span {
  flex-shrink: 0;
}

.faq-answer {
  font-size: 0.80rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-disclaimer-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== ULTRA-RESPONSIVE MOBILE & TABLET MEDIA QUERIES ==================== */

/* Tablet & Medium Screen Optimizations (max-width: 1024px) */
@media (max-width: 1024px) {
  .landing-container {
    padding: 20px 16px 40px;
  }
  
  .landing-hero {
    padding: 40px 16px 36px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .pc-split-view {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Small Tablet & Mobile Landscape Optimizations (max-width: 768px) */
@media (max-width: 768px) {
  /* Header & Top Bar */
  .top-strip {
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px;
    text-align: center;
  }

  .ts-left, .ts-right {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  #app-header {
    flex-direction: column;
    padding: 10px 12px;
    gap: 10px;
  }

  .brand-title {
    font-size: 1.25rem;
  }

  .spot-tickers {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .ticker-box {
    min-width: 95px;
    padding: 3px 6px;
    flex: 1 1 auto;
    text-align: center;
  }

  .tb-price {
    font-size: 0.82rem;
  }

  .header-controls {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Navigation Tabs Touch Scroll */
  .tab-navigation {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 8px;
    gap: 6px;
    scrollbar-width: none;
  }

  .tab-navigation::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  /* Landing Page Hero & Features (Ultra-Responsive Mobile Zoom-Out Scale) */
  .landing-container {
    padding: 10px 10px 24px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .landing-hero {
    padding: 24px 12px 20px;
    margin-bottom: 20px;
  }

  .hero-badge-group {
    gap: 6px !important;
    margin-bottom: 14px !important;
  }

  .hero-badge {
    font-size: 0.62rem;
    padding: 4px 10px;
  }

  .hero-title {
    font-size: 1.35rem;
    line-height: 1.22;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    line-height: 1.45;
    margin-bottom: 16px;
  }

  .hero-cta-box {
    margin-bottom: 18px;
  }

  .btn-hero-signin {
    width: 100%;
    padding: 11px 16px;
    font-size: 0.84rem;
    justify-content: center;
  }

  .hero-trust-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    font-size: 0.68rem;
  }

  .trust-item {
    font-size: 0.68rem;
    padding: 5px 8px;
    justify-content: center;
  }

  .hero-image-wrapper {
    margin-top: 18px;
    padding: 2px;
    border-radius: 8px;
  }

  .hero-mockup-img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    border-radius: 6px;
  }

  .section-hdr h2 {
    font-size: 1.15rem;
  }

  .section-hdr p {
    font-size: 0.78rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 14px;
  }

  .feature-card h3 {
    font-size: 0.98rem;
  }

  .feature-card p {
    font-size: 0.78rem;
  }

  .fc-img {
    max-height: 160px;
    object-fit: contain;
  }

  .landing-preview-section {
    margin-bottom: 30px;
  }

  .preview-card {
    padding: 16px;
  }

  .pc-hdr h3 {
    font-size: 1.05rem;
  }

  .pc-split-view {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .pc-preview-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .prev-stat {
    padding: 10px 8px;
  }

  .prev-stat .val {
    font-size: 1.1rem;
  }

  .b-cta-card {
    padding: 24px 14px;
  }

  .b-cta-card h2 {
    font-size: 1.25rem;
  }

  .b-cta-card p {
    font-size: 0.8rem;
  }
  }

  .fc-img {
    height: 140px;
  }

  .pc-split-view {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .pc-preview-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Dashboard Metrics & Layout */
  .metrics-grid, .grid-4, .grid-3, .grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .metric-card {
    padding: 10px 12px;
  }

  .mc-title {
    font-size: 0.65rem;
  }

  .mc-value {
    font-size: 1.25rem;
  }

  /* Lens Grid (Trader Playbook) */
  .lens-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Touch Table Horizontal Scrolling & Scoped Mobile Card Scrollbar */
  .card-body, table {
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 600px;
  }

  /* CSS Grid Card Lock: Prevents grid cards from expanding beyond mobile viewport */
  .synopsis-detail-grid,
  .synopsis-detail-grid > div,
  .grid-2col,
  .grid-2col > div,
  #pane-synopsis .card,
  #pane-pcr .card {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  #pane-synopsis .table-responsive,
  #pane-pcr .table-responsive {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 8px !important;
    border-radius: 8px;
  }

  #pane-synopsis .quantum-table {
    min-width: 760px !important;
    white-space: nowrap !important;
  }

  #pane-pcr .quantum-table {
    min-width: 580px !important;
    white-space: nowrap !important;
  }

  #pane-synopsis .quantum-table th,
  #pane-synopsis .quantum-table td,
  #pane-pcr .quantum-table th,
  #pane-pcr .quantum-table td {
    white-space: nowrap !important;
    padding: 10px 12px !important;
  }

  #pane-synopsis .table-responsive::-webkit-scrollbar,
  #pane-pcr .table-responsive::-webkit-scrollbar {
    height: 6px !important;
    display: block !important;
  }

  #pane-synopsis .table-responsive::-webkit-scrollbar-track,
  #pane-pcr .table-responsive::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.8) !important;
    border-radius: 4px !important;
  }

  #pane-synopsis .table-responsive::-webkit-scrollbar-thumb,
  #pane-pcr .table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #F59E0B, #38BDF8) !important;
    border-radius: 4px !important;
  }

  /* Modals */
  .modal-box {
    width: 94vw !important;
    max-width: 440px !important;
    padding: 16px 14px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  #strategic-view-modal .modal-box {
    width: 94vw !important;
    max-width: 620px !important;
    max-height: 85vh !important;
    max-height: 85dvh !important;
    margin: auto !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }

  #sv-modal-body {
    max-height: calc(85vh - 65px) !important;
    max-height: calc(85dvh - 65px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 14px 12px !important;
    box-sizing: border-box !important;
  }
}

/* Strategic Advisory Rec Box Mobile Scaling */
.sv-rec-box {
  padding: 14px 12px !important;
  margin-bottom: 12px !important;
  box-sizing: border-box !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

@media (max-width: 480px) {
  #strategic-view-modal .modal-box {
    width: 95vw !important;
    max-width: 95vw !important;
  }
  .sv-rec-box {
    padding: 10px 8px !important;
  }
  .sv-rec-box h4 {
    font-size: 0.84rem !important;
  }
  .sv-rec-box ul {
    padding-left: 14px !important;
  }
}

/* Mobile Portrait Optimizations (max-width: 480px) */
@media (max-width: 480px) {
  .landing-container {
    padding: 8px 8px 20px;
  }

  .landing-hero {
    padding: 18px 10px 14px;
    border-radius: 12px;
  }

  .hero-title {
    font-size: 1.22rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .hero-trust-strip {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero-mockup-img {
    max-height: 175px;
  }

  .fc-img {
    max-height: 140px;
  }

  .metrics-grid, .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr !important;
  }

  .pc-preview-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .scc-phone {
    font-size: 1.2rem;
  }

  .footer-disclaimer-box {
    font-size: 0.68rem;
    padding: 10px 8px;
  }
}

/* Animated Strategic View CTA Button Below Expected 1σ Session Range */
.btn-strategic-cta {
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.35));
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #FDE047;
  font-family: var(--font-brand);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  animation: glowingAmberPulse 2.2s infinite ease-in-out;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-strategic-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.48));
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.65);
  color: #FFFFFF;
}

.pulse-amber-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FDE047;
  box-shadow: 0 0 8px #FDE047;
  display: inline-block;
  animation: pulseDot 1.5s infinite ease-in-out;
}

@keyframes glowingAmberPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.5);
  }
  50% {
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.75);
    border-color: rgba(253, 224, 71, 0.95);
  }
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* AUD-001 Fix: Scale down ticker change text size on ultra-small mobile screens (<340px) */
@media (max-width: 340px) {
  .tb-change {
    font-size: 0.66rem !important;
  }
  .tb-price {
    font-size: 0.82rem !important;
  }
  .ticker-box {
    padding: 4px 6px !important;
  }
}

/* AUD-002 Fix: Make 3rd metric card span 2 columns on 481px–600px mobile-landscape */
@media (min-width: 481px) and (max-width: 600px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .metrics-grid .metric-card:last-child {
    grid-column: span 2 !important;
  }
}

/* Price Flash Animation for 3-second Polling Updates */
.price-flash {
  animation: priceFlash 0.8s ease-out;
}

@keyframes priceFlash {
  0% { text-shadow: 0 0 12px #38BDF8; color: #38BDF8; }
  50% { text-shadow: 0 0 18px #34D399; color: #34D399; }
  100% { text-shadow: none; color: var(--text-main); }
}
