/* =========================================================
   GCK Sentinel Pro — Responsive Design System
   Covers: 320px (small phone) → 4K screens
   ========================================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg: #050505;
  --surface: #0a0a0a;
  --surface-1: #0d0d0d;
  --surface-2: #111111;
  --surface-strong: #161616;
  --surface-soft: #0d0d0d;
  --line: #1e293b;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.2);
  --accent-2: #a855f7;
  --accent-3: #f43f5e;
  --danger: #f43f5e;
  --ok: #22c55e;
  --success: #22c55e;
  --loss: #f43f5e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --glass: blur(12px);
  --primary: #6366f1;
  --foreground: #ffffff;

  /* Layout tokens */
  --sidebar-width: 260px;
  --content-padding: 40px;
  --panel-padding: 28px;
  --border-radius: 20px;
  --border-radius-sm: 12px;
  --gap: 24px;
}

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

body {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--line); }

/* ---------- App Shell (Sidebar + Main) ---------- */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 60%);
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-width);
  padding: 28px 16px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

/* Sidebar backdrop (mobile overlay) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
}
.sidebar-overlay.visible { display: block; }

/* ---------- Brand ---------- */
.brand { margin-bottom: 32px; flex-shrink: 0; }
.eyebrow {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 2.5px;
  margin-bottom: 6px;
  display: block;
}
.brand h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Nav ---------- */
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-group { margin-bottom: 16px; }

.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  border: none;
  background: none;
  padding: 11px 14px;
  border-radius: var(--border-radius-sm);
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 13.5px;
  text-align: left;
  margin-bottom: 2px;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
  transform: translateX(3px);
}
.nav-item.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

/* ---------- User Profile Card ---------- */
.user-profile {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  flex-shrink: 0;
}
.user-profile::after {
  content: '';
  position: absolute;
  bottom: -50px; right: -50px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- Mobile Header ---------- */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
  min-height: 60px;
}

.mobile-header .brand h1 {
  font-size: 16px;
  margin: 0;
}
.mobile-header .brand { margin-bottom: 0; }

.menu-toggle {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: 0.2s;
  flex-shrink: 0;
}
.menu-toggle:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Main Content ---------- */
.content {
  padding: var(--content-padding);
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  min-width: 0; /* prevent overflow */
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}
#pageTitle {
  font-size: 34px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -1px;
  line-height: 1.1;
}

/* ---------- Panel ---------- */
.panel {
  background: var(--surface);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  padding: var(--panel-padding);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 100%);
  pointer-events: none;
}
.panel-header h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Grid System ---------- */
.grid { display: grid; gap: var(--gap); min-width: 0; }
.grid.two-up { grid-template-columns: 1fr 1fr; }
.grid.three-up { grid-template-columns: repeat(3, 1fr); }
.grid.four-up { grid-template-columns: repeat(4, 1fr); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

/* ---------- Metric Strip ---------- */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 28px;
}
.metric-card {
  padding: 22px;
  background: var(--surface-2);
  border-radius: 18px;
  border: 1px solid var(--border);
  text-align: left;
  transition: 0.3s;
  min-width: 0;
}
.metric-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.metric-card span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.metric-card strong {
  font-size: 26px;
  color: var(--text);
  font-weight: 800;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  font-size: 13px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}
.button.secondary {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
}
.button.secondary:hover { background: var(--surface-2); }
.button.danger {
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.3);
}
.button.small { padding: 6px 12px; font-size: 11px; }
.button.full { width: 100%; justify-content: center; }

/* ---------- Status Lines ---------- */
.status-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  gap: 12px;
  flex-wrap: wrap;
}
.status-line strong { color: var(--text); flex-shrink: 0; }
.status-line input, .status-line select {
  max-width: 200px;
  padding: 8px 12px;
  font-size: 13px;
}

/* ---------- Form Inputs ---------- */
input, select, textarea {
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border);
  font-size: 13px;
  background: var(--surface-strong);
  color: var(--text);
  width: 100%;
  transition: 0.3s;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ---------- Page Visibility ---------- */
.page { display: none; }
.page.active { display: block; animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

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

/* ---------- Loader ---------- */
.loader {
  width: 36px; height: 36px;
  border: 3px solid var(--surface-strong);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 20px auto;
}
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---------- Badges & Tags ---------- */
.badge {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.regime-tag {
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.3);
  white-space: nowrap;
}

/* ---------- Charts ---------- */
#priceChart, #indicatorChart {
  width: 100%;
  border-radius: 10px;
  margin-top: 10px;
  background: rgba(0,0,0,0.2);
  display: block;
}
.chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.3)); }
.chart-line.price { stroke: var(--text); }
.chart-line.cool  { stroke: var(--accent); }
.chart-line.warm  { stroke: var(--danger); }
.chart-line.soft  { stroke: var(--ok); }

/* ---------- Utility ---------- */
.profit { color: var(--ok) !important; }
.loss   { color: var(--danger) !important; }
.muted  { color: var(--muted); }

/* Table responsive wrapper */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 480px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 800; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }

/* Stack form */
.stack-form { display: flex; flex-direction: column; gap: 0; }
.stack-output { color: var(--muted); font-size: 13px; }

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

/* ---------- 1400px — Large Desktop ---------- */
@media (max-width: 1400px) {
  :root { --content-padding: 32px; }
  .grid.four-up { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 1200px — Desktop ---------- */
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 240px;
    --content-padding: 28px;
  }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  #pageTitle { font-size: 28px; }
}

/* ---------- 1024px — Small Desktop / Tablet Landscape ---------- */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 220px;
    --content-padding: 24px;
    --panel-padding: 22px;
    --gap: 20px;
  }
  .grid.three-up { grid-template-columns: repeat(2, 1fr); }
  .brand h1 { font-size: 20px; }
  .nav-item { font-size: 13px; padding: 10px 12px; }
}

/* ---------- 768px — Tablet & Mobile ---------- */
@media (max-width: 768px) {
  :root {
    --content-padding: 18px;
    --panel-padding: 18px;
    --gap: 16px;
  }

  /* Show mobile header */
  .mobile-header { display: flex; }

  /* Hide sidebar, slide in on .open */
  .app-shell {
    grid-template-columns: 1fr;
    display: block; /* stack vertically */
  }

  .sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: 20px 0 60px rgba(0,0,0,0.85);
    padding: 20px 14px;
    z-index: 1000;
  }
  .sidebar.open { transform: translateX(0); }

  /* Collapse grids to single column */
  .grid.two-up,
  .grid.three-up,
  .grid.four-up,
  .metric-strip {
    grid-template-columns: 1fr;
  }
  .span-2, .span-3 { grid-column: span 1; }

  #pageTitle { font-size: 24px; letter-spacing: -0.5px; }

  /* Topbar stacks */
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 14px;
  }
  .topbar > div { width: 100%; }
  .topbar > div:nth-child(2) { max-width: 100% !important; margin: 0 !important; }
  .topbar > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }

  /* Quick probe form full width */
  #globalProbeForm { width: 100%; }

  /* Regime tags smaller */
  .regime-tag { font-size: 10px; padding: 5px 10px; }

  /* Metric cards */
  .metric-card { padding: 16px; }
  .metric-card strong { font-size: 22px; }

  /* Panels */
  .panel { padding: 16px; border-radius: 16px; }
  .panel-header h3 { font-size: 16px; margin-bottom: 14px; }

  /* Buttons — keep manageable size */
  .button { padding: 11px 18px; font-size: 13px; }

  /* Status line: stack on very small */
  .status-line input, .status-line select { max-width: 100%; }

  /* Chart forms wrap */
  #chartForm { flex-wrap: wrap; gap: 6px; }
  #chartForm input { width: 100%; }

  /* Hero card (dashboard) */
  .hero-card { flex-direction: column !important; }
  .hero-card > div:last-child { width: 100% !important; }

  /* Probe form full width */
  #probeForm { width: 100%; }
}

/* ---------- 480px — Small Phone ---------- */
@media (max-width: 480px) {
  :root {
    --content-padding: 14px;
    --panel-padding: 14px;
    --gap: 12px;
  }

  .mobile-header { padding: 12px 14px; min-height: 54px; }
  .mobile-header .brand h1 { font-size: 15px; }

  #pageTitle { font-size: 20px; }

  .brand h1 { font-size: 18px; }
  .nav-item { font-size: 13px; padding: 10px 12px; }

  .metric-card { padding: 14px; }
  .metric-card strong { font-size: 20px; }
  .metric-card span { font-size: 9px; }

  .button { padding: 10px 16px; font-size: 12px; }
  .button.full { width: 100%; }

  .panel { border-radius: 14px; }
  .panel-header h3 { font-size: 15px; }

  input, select, textarea { padding: 10px 14px; font-size: 13px; }

  /* Stack topbar controls tighter */
  .topbar { gap: 10px; margin-bottom: 18px; }
  .regime-tag { font-size: 9px; padding: 4px 8px; }

  /* Kill switch full width on mobile */
  #emergencyKillBtn { font-size: 12px; padding: 10px; }

  /* Sector scanner button — full width */
  #scanSectorBtn { width: 100%; margin-top: 10px; }
  #sectorSelect { width: 100%; }
}

/* ---------- 360px — Very Small Phone ---------- */
@media (max-width: 360px) {
  :root { --content-padding: 10px; --panel-padding: 12px; }
  #pageTitle { font-size: 18px; }
  .metric-card strong { font-size: 18px; }
  .nav-item { font-size: 12px; padding: 9px 10px; }
}

/* =========================================================
   SPECIFIC COMPONENT OVERRIDES FOR MOBILE
   ========================================================= */

/* Topbar probe form row */
@media (max-width: 768px) {
  .topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .topbar-actions > * { flex: 1 1 auto; }
}

/* Intelligence Hub — probe result on mobile */
@media (max-width: 768px) {
  #probeDecision {
    min-height: 120px !important;
  }
}

/* Sector scan controls stacked on mobile */
@media (max-width: 600px) {
  .sector-controls {
    flex-direction: column !important;
  }
  .sector-controls select,
  .sector-controls button {
    width: 100%;
  }
}

/* Broker hub links */
@media (max-width: 480px) {
  .broker-card {
    flex-direction: column !important;
    gap: 10px;
  }
  .broker-card .button { width: 100%; justify-content: center; }
}

/* Admin table scrollable */
@media (max-width: 768px) {
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 520px; }
}

/* Coupon + payment grid stacked on mobile */
@media (max-width: 600px) {
  .grid.two-up.admin-coupon-grid { grid-template-columns: 1fr; }
}

/* Chart Form — horizontal on desktop, vertical on mobile */
@media (max-width: 600px) {
  #chartForm {
    flex-direction: column;
    gap: 8px;
  }
  #chartForm input[name="symbol"] {
    width: 100% !important;
  }
  #chartForm select {
    width: 100%;
  }
  #chartForm button {
    width: 100%;
  }
}

/* Journal form status-line inputs full width on mobile */
@media (max-width: 480px) {
  .status-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .status-line input,
  .status-line select {
    max-width: 100%;
    width: 100%;
  }
}

/* =========================================================
   HERO CARD (Dashboard)
   ========================================================= */
.hero-card {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: var(--gap);
  background: var(--surface);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  padding: var(--panel-padding);
  box-shadow: var(--shadow);
}
.hero-card > div:first-child { flex: 1; min-width: 200px; }
.hero-card > div:last-child { width: 300px; flex-shrink: 0; }

@media (max-width: 768px) {
  .hero-card > div:last-child { width: 100%; }
}

/* =========================================================
   ACCENT / STACK NOTE
   ========================================================= */
.accent-note {
  padding: 14px 18px;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 13px;
}

/* =========================================================
   LARGE SCREEN ENHANCEMENTS (1440px+)
   ========================================================= */
@media (min-width: 1440px) {
  :root {
    --sidebar-width: 280px;
    --content-padding: 48px;
    --panel-padding: 32px;
  }
  #pageTitle { font-size: 40px; }
  .metric-strip { grid-template-columns: repeat(4, 1fr); }
  .metric-card strong { font-size: 30px; }
}

@media (min-width: 1920px) {
  :root { --content-padding: 56px; }
  .metric-strip { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Ribbon for Discounts ---------- */
.ribbon-wrapper {
  width: 100px;
  height: 100px;
  overflow: hidden;
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
}
.ribbon {
  font-weight: 800;
  font-size: 10px;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  line-height: 20px;
  transform: rotate(45deg);
  position: relative;
  padding: 4px 0;
  left: -5px;
  top: 15px;
  width: 150px;
  background: linear-gradient(135deg, var(--danger), #ff4d4d);
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.4);
  letter-spacing: 1px;
}

.panel {
  position: relative;
}

/* =========================================================
   OPTIONS TRADING DESK — Complete Design System
   ========================================================= */

:root {
  --options-accent: #f59e0b;
  --options-call: #10b981;
  --options-put: #f43f5e;
  --options-atm: #f59e0b;
  --options-glow: rgba(245, 158, 11, 0.18);
  --options-call-bg: rgba(16, 185, 129, 0.08);
  --options-put-bg: rgba(244, 63, 94, 0.08);
  --options-atm-bg: rgba(245, 158, 11, 0.12);
}

/* --- Hero Bar --- */
.options-hero {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.options-hero-left { flex: 1; min-width: 300px; }
.options-chain-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: var(--border-radius);
  align-items: center;
}
.options-chain-form input,
.options-chain-form select {
  flex: 1;
  min-width: 100px;
  max-width: 170px;
  padding: 9px 12px;
  font-size: 12px;
}
.options-chain-form .button { white-space: nowrap; }

.options-hero-metrics {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.opt-hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 20px;
  min-width: 110px;
  text-align: center;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}
.opt-hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--options-glow), transparent 70%);
  pointer-events: none;
}
.opt-hero-card:hover { border-color: var(--options-accent); transform: translateY(-2px); }
.opt-hero-card span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.opt-hero-card strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--options-accent);
  display: block;
}

/* --- Greeks Bar --- */
.greeks-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.greek-pill {
  flex: 1;
  min-width: 90px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  transition: 0.2s;
  cursor: default;
}
.greek-pill:hover { border-color: var(--accent); }
.greek-pill span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 5px;
}
.greek-pill strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

/* --- Main Grid Layout --- */
.options-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 20px;
  align-items: start;
}

/* --- Options Chain --- */
.options-chain-panel { overflow: hidden; }
.options-chain-scroll {
  max-height: 520px;
  overflow-y: auto;
  overflow-x: auto;
}
.options-chain-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  min-width: 560px;
}
.options-chain-table th {
  padding: 8px 10px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.options-chain-table th.call-header { color: var(--options-call); }
.options-chain-table th.put-header  { color: var(--options-put); }
.options-chain-table th.strike-header { color: var(--options-atm); text-align: center; }

.options-chain-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  white-space: nowrap;
  transition: 0.15s;
}
.options-chain-table tr:hover td { background: rgba(255,255,255,0.03); }

.chain-row-call td { background: var(--options-call-bg); }
.chain-row-put  td { background: var(--options-put-bg); }
.chain-row-atm  td { background: var(--options-atm-bg) !important; font-weight: 700; }
.chain-row-atm .td-strike { color: var(--options-atm) !important; font-weight: 800; }

.td-strike {
  text-align: center;
  font-weight: 800;
  color: var(--text);
  font-size: 12px;
  background: var(--surface-2);
  padding: 7px 14px !important;
}
.td-call { color: var(--options-call); }
.td-put  { color: var(--options-put); }
.td-num  { text-align: right; font-family: monospace; }
.td-oi-bar {
  width: 50px;
  height: 5px;
  background: var(--surface-strong);
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}
.td-oi-bar-fill { height: 100%; border-radius: 3px; }

/* --- Strategy Tabs --- */
.strategy-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.strat-tab {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.strat-tab:hover { color: var(--text); border-color: var(--options-accent); }
.strat-tab.active {
  background: linear-gradient(135deg, var(--options-accent), #d97706);
  color: #000;
  border-color: var(--options-accent);
}

.strategy-result {
  font-size: 12px;
  min-height: 80px;
}
.strategy-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.strategy-card h4 {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.strategy-confidence {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--options-glow);
  color: var(--options-accent);
  border: 1px solid rgba(245,158,11,0.3);
}
.strategy-legs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 8px 0;
}
.strategy-leg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  background: var(--surface-1);
  border-radius: 6px;
  font-size: 11px;
}
.leg-action-buy  { color: var(--options-call); font-weight: 800; }
.leg-action-sell { color: var(--options-put); font-weight: 800; }

.strategy-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.strat-metric {
  text-align: center;
  padding: 6px;
  background: var(--surface-1);
  border-radius: 6px;
}
.strat-metric span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.strat-metric strong { font-size: 13px; }

/* --- BS Pricer --- */
.bs-form { }
.bs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bs-field { display: flex; flex-direction: column; gap: 4px; }
.bs-field label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.bs-field input, .bs-field select { padding: 8px 10px; font-size: 12px; }
.bs-result {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.bs-result-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  transition: 0.2s;
}
.bs-result-card:hover { border-color: var(--options-accent); }
.bs-result-card span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.bs-result-card strong { font-size: 15px; font-weight: 800; }
.bs-price-big {
  grid-column: span 3;
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(245,158,11,0.04));
  border-color: rgba(245,158,11,0.3);
}
.bs-price-big strong { font-size: 26px; color: var(--options-accent); }

/* --- SVG Charts --- */
.options-svg {
  width: 100%;
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
  display: block;
}
.chart-legend {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* --- Options Feed --- */
.options-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.opt-alert {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  border-left: 3px solid var(--options-accent);
  transition: 0.2s;
  animation: slideInOpt 0.4s ease;
}
@keyframes slideInOpt {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.opt-alert.bullish { border-left-color: var(--options-call); }
.opt-alert.bearish { border-left-color: var(--options-put); }
.opt-alert.neutral { border-left-color: var(--muted); }
.opt-alert-title {
  font-weight: 800;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.opt-alert-body { color: var(--muted); line-height: 1.5; }

/* --- Payoff Stats --- */
.payoff-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.payoff-stat {
  text-align: center;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 8px;
}
.payoff-stat span { display: block; font-size: 9px; color: var(--muted); text-transform: uppercase; }
.payoff-stat strong { font-size: 13px; font-weight: 800; }

/* --- Responsive --- */
@media (max-width: 1200px) {
  .options-main-grid { grid-template-columns: 1fr 1fr; }
  .options-main-grid > div:first-child { grid-column: span 2; }
}
@media (max-width: 768px) {
  .options-main-grid { grid-template-columns: 1fr; }
  .options-main-grid > div:first-child { grid-column: span 1; }
  .options-chain-form input, .options-chain-form select { max-width: 100%; }
  .options-hero { flex-direction: column; }
  .bs-result { grid-template-columns: 1fr 1fr; }
  .bs-price-big { grid-column: span 2; }
  .greeks-bar { gap: 6px; }
  .greek-pill { min-width: 70px; padding: 8px 10px; }
  .greek-pill strong { font-size: 13px; }
  .options-feed { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .opt-hero-card { min-width: calc(50% - 6px); }
  .options-hero-metrics { width: 100%; }
  .strategy-tabs { gap: 3px; }
  .strat-tab { padding: 5px 8px; font-size: 10px; }
}

/* --- AI Options Cockpit Panel --- */
.opt-trade-setup {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.45), rgba(15, 23, 42, 0.75));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin: 20px 0;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.opt-trade-setup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--options-put), var(--options-accent), var(--options-call));
}

.opt-setup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.opt-setup-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.opt-setup-icon {
  font-size: 22px;
  background: rgba(245, 158, 11, 0.08);
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.opt-setup-title h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #f8fafc;
}

.opt-sentiment-gauge-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 6px 12px;
  border-radius: 10px;
}

.opt-sentiment-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.opt-verdict-label {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.opt-verdict-conf {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  font-family: monospace;
}

/* Dashboard Grid Layout */
.opt-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 15px;
  width: 100%;
}

.opt-dash-card {
  background: rgba(30, 41, 59, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.opt-dash-card:hover {
  border-color: rgba(255,255,255,0.08);
}

.card-eyebrow {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 1.5px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 8px;
}

/* Sentiment Radial Gauge */
.radial-gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 5px 0 15px 0;
  width: 100%;
}

.radial-gauge {
  width: 100%;
  max-width: 140px;
}

#gaugeNeedle {
  transform-origin: 50px 50px;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gauge-ticks {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 140px;
  font-size: 8px;
  font-weight: 800;
  margin-top: -3px;
  letter-spacing: 0.5px;
}

.sentiment-metrics-box {
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.sent-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.sent-metric-row span {
  color: var(--muted);
}

.sent-metric-row strong {
  font-family: monospace;
  font-weight: 700;
}

/* Strategy Pipeling Setups */
.strategy-setup-block {
  width: 100%;
}

.setup-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.setup-badge {
  font-size: 8.5px;
  font-weight: 800;
  padding: 2.5px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--options-call);
  border: 1px solid rgba(16, 185, 129, 0.2);
  letter-spacing: 0.5px;
}

.setup-badge-weekly {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.2);
}

.setup-contract-target {
  font-size: 12px;
  font-weight: 800;
  font-family: monospace;
}

.pipeline-container {
  position: relative;
  width: 100%;
  height: 60px;
  margin-top: 5px;
}

.pipeline-bar-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.pipeline-track {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.pipeline-zone {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 3px;
  opacity: 0.18;
}

.zone-risk {
  background: linear-gradient(90deg, var(--options-put), transparent);
}

.zone-profit {
  background: linear-gradient(90deg, transparent, var(--options-call));
}

.pipeline-tick {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 12px;
  background: rgba(255, 255, 255, 0.35);
  transform: translateX(-50%);
  border-radius: 1px;
  cursor: pointer;
}

.pipeline-tick::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 16px;
  transform: translateX(-50%);
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 8px;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.pipeline-tick:hover::after {
  opacity: 1;
}

.pipeline-ltp-marker {
  position: absolute;
  top: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 0 8px rgba(0,0,0,0.6);
  border: 2px solid #0f172a;
  transition: left 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.ltp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: ltp-pulse-anim 2s infinite;
}

@keyframes ltp-pulse-anim {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.pipeline-labels {
  display: none; /* Hidden to prevent absolute positioning collisions on small screens */
}

/* Responsive Grid for Prediction Text Fields */
.strategy-level-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 15px;
}

.level-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.2s ease;
}

.level-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.level-item span {
  font-size: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.level-item strong {
  font-size: 11px;
  font-family: monospace;
  color: var(--text);
}

.level-item strong.profit {
  color: var(--options-call);
}

.level-item strong.loss {
  color: var(--options-put);
}

/* Risk Sentinel & Allocation */
.risk-circle-gauge-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 5px 0 15px 0;
  gap: 10px;
}

.win-circle-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circular-progress {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-bg {
  stroke: rgba(255,255,255,0.03);
}

.circle-fill {
  transition: stroke-dasharray 0.8s ease-in-out;
}

.circle-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.circle-text span {
  font-size: 15px;
  font-weight: 800;
  font-family: monospace;
  color: #f8fafc;
}

.circle-text small {
  font-size: 7px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.3px;
  margin-top: -2px;
}

.rr-indicator-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 8px 12px;
  border-radius: 8px;
  min-width: 80px;
}

.rr-val-box {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rr-val-box span {
  font-size: 12px;
}

.rr-val-box strong {
  font-size: 14px;
  font-weight: 800;
  font-family: monospace;
  color: var(--options-accent);
}

.risk-sentinel-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.sentinel-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.03);
  font-size: 11px;
}

.sentinel-stat-row span {
  color: var(--muted);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sentinel-stat-row strong {
  font-weight: 700;
  font-family: monospace;
  color: #cbd5e1;
}

/* Responsive Overrides & Breakpoints */
@media (max-width: 1200px) {
  .opt-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .opt-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .strategy-level-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .options-control-form {
    grid-template-columns: 1fr;
  }
  .header-action-block {
    width: 100%;
  }
  .header-action-block select,
  .header-action-block button {
    flex: 1;
  }
}

@media (max-width: 540px) {
  .options-control-form {
    padding: 16px;
    gap: 12px;
  }
  .table-control-header,
  .header-action-block {
    flex-direction: column;
    align-items: stretch;
  }
  .header-action-block select,
  .header-action-block button {
    width: 100%;
  }
  .strategy-level-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
  .level-item strong {
    font-size: 10px;
  }
}

/* =========================================================
   REDESIGNED OPTIONS DESK - PREMIUM UX & GLASSMORPHISM
   ========================================================= */

.options-control-deck {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.options-control-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  align-items: flex-end;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.45), rgba(15, 23, 42, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.control-input-group label {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.control-input-group select,
.control-input-group input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.25s ease;
  width: 100%;
}

.control-input-group select:focus,
.control-input-group input:focus {
  border-color: var(--options-accent);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
  outline: none;
  background: rgba(15, 23, 42, 0.9);
}

.options-control-form button.action-btn {
  background: linear-gradient(135deg, var(--options-accent), #d97706);
  color: #020617;
  font-weight: 800;
  border-radius: 10px;
  padding: 11px 20px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  margin-top: auto;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  width: 100%;
}

.options-control-form button.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  filter: brightness(1.1);
}

/* Glass Panels */
.glass-panel {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.35), rgba(15, 23, 42, 0.65));
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Cockpit Redesign Details */
.sentiment-risk-card {
  padding: 20px !important;
}

.cockpit-gauges-row {
  display: flex;
  gap: 20px;
  justify-content: space-around;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.gauge-block {
  flex: 1;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-title {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-align: center;
}

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

.stat-pill {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
}

.stat-pill span {
  display: block;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-pill strong {
  font-size: 13px;
  color: var(--text);
  font-family: monospace;
}

.cockpit-allocation-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alloc-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text);
}

.alloc-row span {
  color: var(--muted);
}

.alloc-row strong {
  font-family: monospace;
  font-size: 12px;
}

/* Tactical setups block & grid update */
.gameplan-layouts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.strategy-setup-block {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 14px;
}

.options-analytics-deck {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.table-control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.header-title-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-bullet {
  width: 6px;
  height: 6px;
  background-color: var(--options-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--options-accent);
}

.header-action-block {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-action-block select {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text);
  padding: 6px 10px;
  font-size: 11px;
  width: auto;
}

/* Analytics Row Chart Styling */
.chart-box {
  padding: 20px !important;
}

.analytics-charts-row {
  gap: 20px !important;
}

.options-svg {
  border: 1px solid rgba(255, 255, 255, 0.03) !important;
  background: rgba(15, 23, 42, 0.4) !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.options-chain-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.options-chain-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.options-chain-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.options-chain-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}


