/* SpreadIQ - Real-Time Options Analytics & Live Excel Grid CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-primary: #070a11;
  --bg-surface: #0e1424;
  --bg-surface-hover: #151d34;
  --bg-card: #12192c;
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-grid-header: #172138;
  --bg-grid-row-alt: #0a0f1d;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-green: #00e676;
  --accent-green-bg: rgba(0, 230, 118, 0.12);
  --accent-green-border: rgba(0, 230, 118, 0.3);
  
  --accent-red: #ff1744;
  --accent-red-bg: rgba(255, 23, 68, 0.12);
  --accent-red-border: rgba(255, 23, 68, 0.3);
  
  --accent-gold: #ffb300;
  --accent-gold-bg: rgba(255, 179, 0, 0.15);
  
  --accent-cyan: #00e5ff;
  --accent-cyan-bg: rgba(0, 229, 255, 0.15);
  
  --accent-purple: #b388ff;
  --accent-purple-bg: rgba(179, 136, 255, 0.15);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --glass-backdrop: blur(12px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  overflow-x: hidden;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }

#app {
  display: flex !important;
  flex-direction: row !important;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #06090e;
}

.top-header {
  display: none !important;
}

.brand-section { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 16px; color: #ffffff; text-decoration: none;
}
.brand-logo svg { color: var(--accent-cyan); }

.badge-live {
  padding: 3px 10px; border-radius: 12px;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.badge-live.badge-connected {
  background: rgba(0, 230, 118, 0.15) !important;
  color: #00e676 !important;
  border: 1px solid rgba(0, 230, 118, 0.4) !important;
}

.badge-live.badge-disconnected {
  background: rgba(255, 82, 82, 0.15) !important;
  color: #ff5252 !important;
  border: 1px solid rgba(255, 82, 82, 0.4) !important;
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

.pulse-dot.dot-green {
  background-color: #00e676;
  box-shadow: 0 0 8px #00e676;
}

.pulse-dot.dot-red {
  background-color: #ff5252;
  box-shadow: 0 0 8px #ff5252;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Static Live Ticker Strip (No Marquee Motion) */
.static-ticker-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  padding: 2px 4px;
  flex: 1;
  justify-content: center;
}
.static-ticker-bar::-webkit-scrollbar {
  display: none;
}

.static-ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.static-ticker-pill:hover, .static-ticker-pill.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

.static-ticker-pill .st-sym {
  font-weight: 800;
  color: #f1f5f9;
  font-size: 13px;
}

.static-ticker-pill .st-price {
  font-weight: 800;
  font-size: 13px;
}

.static-ticker-pill .st-chg {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
}

.ticker-ribbon {
  display: none !important;
}

.ticker-track {
  display: none !important;
  animation: none !important;
}

@keyframes tickerMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--bg-card-border);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  user-select: none;
}

.ticker-item:hover, .ticker-item.active {
  border-color: var(--accent-cyan);
  background: var(--bg-surface-hover);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

.ticker-item .ticker-symbol {
  font-weight: 700;
  color: var(--text-bright);
}

.ticker-item .ticker-price {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.ticker-item .ticker-change {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}

.price-up { color: var(--accent-green); }
.price-down { color: var(--accent-red); }
.bg-price-up { background: var(--accent-green-bg); color: var(--accent-green); }
.bg-price-down { background: var(--accent-red-bg); color: var(--accent-red); }

.header-controls { display: flex; align-items: center; gap: 10px; }
.control-btn {
  background: var(--bg-card); border: 1px solid var(--bg-card-border);
  color: var(--text-muted); padding: 6px 12px; border-radius: 6px;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; transition: all 0.2s ease;
}

.control-btn:hover { background: var(--bg-surface-hover); color: var(--text-main); }
.control-btn.active { background: var(--accent-cyan-bg); color: var(--accent-cyan); border-color: var(--accent-cyan); }
.btn-accent {
  background: linear-gradient(135deg, #00c853, #00e676);
  color: #000; font-weight: 600; border: none;
}

.nav-bar {
  background: var(--bg-surface); border-bottom: 1px solid var(--bg-card-border);
  padding: 0 16px; display: flex; align-items: center; justify-content: space-between; min-height: 46px;
}

.nav-tabs { display: flex; align-items: center; gap: 4px; height: 100%; }
.tab-item {
  padding: 0 16px; height: 100%; display: flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent;
}
.tab-item.active { color: var(--accent-cyan); border-bottom-color: var(--accent-cyan); background: rgba(0, 229, 255, 0.05); }

/* Clean Two-Line Straddles, Diff & VIX Metric Strip (Matching User Image) */
.nav-metrics-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 14px;
  border-left: 1px solid #cbd5e1;
  padding-left: 14px;
  flex-wrap: wrap;
}

.nav-stat-pill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 4px !important;
  border-radius: 0 !important;
}

.nav-stat-lbl {
  color: #64748b;
  font-weight: 600;
  font-size: 11px;
  font-family: var(--font-sans);
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.nav-stat-val-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.nav-stat-val {
  color: #0f172a;
  font-weight: 800;
  font-size: 15px;
  font-family: var(--font-mono);
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.nav-stat-pill.diff-pill .nav-stat-lbl {
  color: #b45309;
}

.nav-stat-pill.diff-pill .nav-stat-val {
  color: #b45309;
}

.nav-stat-pill.vix-pill .nav-stat-lbl {
  color: #7c3aed;
}

.nav-stat-pill.vix-pill .nav-stat-val {
  color: #0f172a;
}

/* FYERS LIVE Feed Status Badge (Positioned directly after India VIX) */
.strat-top-banner .badge-live,
#liveFeedStatusBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: default;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-left: 6px;
  height: 26px;
  box-sizing: border-box;
}

.strat-top-banner .badge-live.badge-connected,
#liveFeedStatusBadge.badge-connected {
  background: rgba(22, 163, 74, 0.12) !important;
  color: #15803d !important;
  border: 1px solid rgba(22, 163, 74, 0.35) !important;
}

.strat-top-banner .badge-live.badge-disconnected,
#liveFeedStatusBadge.badge-disconnected {
  background: rgba(220, 38, 38, 0.12) !important;
  color: #dc2626 !important;
  border: 1px solid rgba(220, 38, 38, 0.35) !important;
}

.strat-top-banner .badge-live .pulse-dot.dot-green,
#liveFeedStatusBadge .pulse-dot.dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #16a34a;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
  animation: pulseDot 1.5s infinite;
}

.strat-top-banner .badge-live .pulse-dot.dot-red,
#liveFeedStatusBadge .pulse-dot.dot-red {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #dc2626;
  box-shadow: 0 0 8px #ef4444;
  display: inline-block;
  animation: pulseDot 1.5s infinite;
}

.nav-stat-chg {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.2;
}

.nav-stat-chg.price-up {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.12);
}

.nav-stat-chg.price-down {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.12);
}

.select-box {
  background: var(--bg-card); border: 1px solid var(--bg-card-border);
  color: var(--text-main); padding: 4px 10px; border-radius: 4px; font-size: 12px; outline: none; cursor: pointer;
}

.main-content {
  flex: 1;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 8px 8px !important;
  display: flex;
  flex-direction: column;
  gap: 10px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.tab-content { display: none; flex-direction: column; gap: 16px; width: 100%; }
.tab-content.active { display: flex; }

.hero-cards-grid { display: none !important; }
.hero-card {
  background: var(--bg-card); border: 1px solid var(--bg-card-border);
  border-radius: 8px; padding: 14px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}

.hero-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
}

.hero-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.hero-price { font-family: var(--font-mono); font-size: 26px; font-weight: 700; }
.hero-change { font-family: var(--font-mono); font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }

.hero-side-stats {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 6px 12px;
  min-width: 148px;
  flex-shrink: 0;
}

.side-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}

.side-stat-item .stat-label {
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
}

.side-stat-item .stat-value {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-bright);
  white-space: nowrap;
  text-align: right;
}

.hero-stats-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 10px; font-size: 11px; }

.range-bar-track { height: 4px; background: #1e293b; border-radius: 2px; position: relative; overflow: hidden; }
.range-bar-fill { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--accent-red), var(--accent-gold), var(--accent-green)); }
.range-indicator { position: absolute; top: -2px; width: 8px; height: 8px; background: #ffffff; border-radius: 50%; transform: translateX(-50%); }

.excel-container { background: var(--bg-card); border: 1px solid var(--bg-card-border); border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; }
.excel-toolbar { background: var(--bg-surface); border-bottom: 1px solid var(--bg-card-border); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.excel-toolbar-title { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; color: var(--accent-green); }

.excel-grid-wrapper { overflow: auto; max-height: 620px; position: relative; }
.excel-table { width: 100%; border-collapse: separate; border-spacing: 0; font-family: var(--font-mono); font-size: 12px; }
.excel-table th { background: var(--bg-grid-header); color: var(--text-muted); font-weight: 600; padding: 8px 12px; text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.12); position: sticky; top: 0; z-index: 10; white-space: nowrap; }
.excel-table th.col-letter { background: #111827; color: var(--text-dim); font-size: 10px; padding: 4px; }
.excel-table td { padding: 7px 10px; text-align: right; border-right: 1px solid rgba(255, 255, 255, 0.04); border-bottom: 1px solid rgba(255, 255, 255, 0.04); white-space: nowrap; cursor: pointer; }
.excel-table tr:nth-child(even) { background: var(--bg-grid-row-alt); }
.excel-table td.sticky-strike { position: sticky; left: 0; z-index: 5; background: #0f172a; font-weight: 700; text-align: center; color: var(--accent-gold); border-right: 2px solid rgba(255, 179, 0, 0.3); }

@keyframes flashGreenCell { 0% { background-color: rgba(0, 230, 118, 0.6); color: #fff; } 100% { background-color: transparent; } }
@keyframes flashRedCell { 0% { background-color: rgba(255, 23, 68, 0.6); color: #fff; } 100% { background-color: transparent; } }
.flash-up { animation: flashGreenCell 0.7s ease-out; }
.flash-down { animation: flashRedCell 0.7s ease-out; }

.badge-fly { background: rgba(0, 229, 255, 0.15); color: var(--accent-cyan); padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; }
.badge-ratio { background: rgba(179, 136, 255, 0.15); color: var(--accent-purple); padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; }

.oc-table-wrapper { overflow: auto; max-height: 580px; border-radius: 8px; border: 1px solid var(--bg-card-border); background: var(--bg-card); }
.oc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-family: var(--font-mono); font-size: 12px; }
.oc-table th { background: var(--bg-grid-header); color: var(--text-muted); padding: 8px; text-align: center; font-weight: 600; border-bottom: 1px solid var(--bg-card-border); border-right: 1px solid rgba(255, 255, 255, 0.05); position: sticky; top: 0; z-index: 10; }
.oc-table td { padding: 6px 10px; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, 0.03); border-right: 1px solid rgba(255, 255, 255, 0.03); }

.oi-bar-container { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.oi-bar { height: 6px; border-radius: 3px; }
.oi-bar-call { background: var(--accent-green); }
.oi-bar-put { background: var(--accent-red); }

.chart-card { background: var(--bg-card); border: 1px solid var(--bg-card-border); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chart-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.chart-canvas-container { position: relative; width: 100%; height: 420px; background: #090d16; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.05); overflow: hidden; }
canvas#mainChartCanvas { width: 100%; height: 100%; display: block; }

/* Sector Scope Landscape Treemap Styling */
.sector-scope-wrapper {
  display: flex;
  flex-direction: column;
  background: #080c14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  font-family: var(--font-sans);
}

.sector-scope-header {
  background: #0d1322;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.sector-scope-title { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.sector-scope-subtitle { font-size: 16px; color: #fff; font-weight: 700; font-family: var(--font-display); }

.pill-how-to { background: rgba(255, 255, 255, 0.08); color: #e2e8f0; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; cursor: pointer; }
.pill-live-badge { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 12px; display: inline-flex; align-items: center; gap: 4px; }
.pill-active { background: rgba(0, 229, 255, 0.2); color: var(--accent-cyan); border: 1px solid var(--accent-cyan); font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }

.sector-treemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 8px;
  padding: 10px;
  background: #080c14;
}

.sector-box {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 140px;
}

.sector-box-title {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sector-tiles-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

.sector-tile {
  border-radius: 4px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 55px;
  text-align: center;
  transition: transform 0.15s ease, filter 0.15s ease;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.sector-tile:hover {
  transform: scale(1.03);
  filter: brightness(1.15);
  z-index: 2;
}

.tile-sym { font-weight: 800; font-size: 12px; color: #ffffff; letter-spacing: 0.3px; line-height: 1.2; word-break: break-all; }
.tile-chg { font-weight: 700; font-size: 11px; margin-top: 2px; opacity: 0.9; }

.hm-bg-up-strong { background: #15803d; color: #ffffff; }
.hm-bg-up-mild { background: #166534; color: #f0fdf4; }
.hm-bg-flat { background: #334155; color: #f8fafc; }
.hm-bg-dn-mild { background: #7f1d1d; color: #fef2f2; }
.hm-bg-dn-strong { background: #b91c1c; color: #ffffff; }

.sector-scope-footer {
  background: #0d1322;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: var(--glass-backdrop); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-card { background: var(--bg-surface); border: 1px solid var(--bg-card-border); border-radius: 12px; width: 100%; max-width: 600px; overflow: hidden; }
.modal-header { background: var(--bg-card); padding: 14px 20px; border-bottom: 1px solid var(--bg-card-border); display: flex; align-items: center; justify-content: space-between; }

.leg-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 12px; }
.leg-table th, .leg-table td { padding: 8px 12px; border-bottom: 1px solid var(--bg-card-border); text-align: left; }

/* Fullscreen Interactive Chart Styling */
.chart-card:fullscreen,
.chart-card:-webkit-full-screen,
.chart-card:-moz-full-screen,
.chart-card:-ms-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  background-color: #070a11 !important;
  padding: 20px !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.chart-card:fullscreen .chart-canvas-container,
.chart-card:-webkit-full-screen .chart-canvas-container,
.chart-card:-moz-full-screen .chart-canvas-container,
.chart-card:-ms-fullscreen .chart-canvas-container {
  flex: 1 !important;
  height: calc(100vh - 85px) !important;
}

/* Strategy Matrix (Ratio & Custom Butterfly) Styling */
.strat-matrix-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.strat-matrix-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.strat-column-box {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.strat-ctrl-header {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 10px !important;
  margin-left: 0 !important;
}
.strat-ctrl-header::-webkit-scrollbar {
  display: none;
}

.strat-title-group {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.strat-accent-bar {
  width: 4px;
  height: 16px;
  border-radius: 2px;
  margin-left: 0 !important;
}

.strat-main-title {
  font-weight: 800;
  font-size: 13px;
  color: #ffffff !important;
  letter-spacing: 0.5px;
}


.strat-range-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.strat-ctrl-group {
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  gap: 6px;
  flex-shrink: 0;
}

.strat-select {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #00e5ff;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.strat-pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.strat-pill-btn.active, .strat-pill-btn:hover {
  background: rgba(0, 229, 255, 0.2);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.strat-tables-flex {
  display: flex;
  gap: 10px;
  width: 100%;
}

.strat-table-card {
  flex: 1;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.strat-table-header {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 5px 8px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.5px;
  font-family: var(--font-sans);
  min-height: 32px;
  box-sizing: border-box;
}

.strat-shift-btns {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.strat-shift-btn {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: all 0.15s ease;
  user-select: none;
}

.strat-shift-btn:hover {
  background: #f8fafc;
  border-color: #64748b;
  color: #000000;
  transform: translateY(-1px);
}

.strat-shift-btn:active {
  background: #e2e8f0;
  transform: translateY(0);
}

.strat-table-header-title {
  flex: none !important;
  text-align: left !important;
  font-weight: 800;
}

.strat-shift-spacer {
  display: none !important;
}

.strat-table-header.call-hdr {
  background: #dcfce7;
  color: #15803d;
  border-bottom: 2px solid #86efac;
}

.strat-table-header.put-hdr {
  background: #ffe4e6;
  color: #b91c1c;
  border-bottom: 2px solid #fca5a5;
}

.strat-table-scroll {
  overflow-x: auto;
  max-height: 520px;
  overflow-y: auto;
}

.strat-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #0f172a;
  text-align: center;
}

.strat-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 5px;
  border: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 5;
}

.strat-table th.th-strike {
  background: #fef08a;
  color: #854d0e;
  width: 60px;
  font-size: 12px;
  font-weight: 800;
}

.strat-table td {
  padding: 4px 5px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}

.strat-table td.td-strike {
  background: #fef08a;
  color: #713f12;
  font-weight: 800;
  font-size: 12px;
}

.strat-table td.td-strike.atm-badge {
  background: #eab308 !important;
  color: #000000 !important;
  font-weight: 900 !important;
  font-size: 12px !important;
  box-shadow: inset 0 0 0 1px #a16207;
}

.strat-table th.th-ltp {
  background: #f1f5f9;
  color: #1e293b;
  width: 54px;
  font-size: 12px;
  font-weight: 800;
  border-right: 2px solid #cbd5e1;
}

.strat-table td.td-ltp {
  background: #f8fafc;
  color: #0f172a;
  font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  padding: 4px 5px;
  border-right: 2px solid #cbd5e1;
  white-space: nowrap;
}

.strat-table td.td-ltp.td-ltp-call {
  color: #15803d;
}

.strat-table td.td-ltp.td-ltp-put {
  color: #b91c1c;
}

.strat-table tr.row-atm td.td-ltp {
  background: #fef9c3;
  font-weight: 800;
}

.strat-table tr.row-atm {
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.4);
}

.cell-light-green {
  background: #ecfdf5;
  color: #065f46;
}

.cell-dark-green {
  background: #84a98c;
  color: #0f172a;
  font-weight: 700;
}

.cell-light-pink {
  background: #fff1f2;
  color: #881337;
}

.cell-dark-bf {
  background: #a3b18a;
  color: #0f172a;
  font-weight: 700;
}

.cell-white {
  background: #ffffff;
  color: #1e293b;
}

.strat-btn-step {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #00e5ff;
  font-weight: 800;
  font-size: 11px;
  width: 16px;
  height: 16px;
  line-height: 14px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 2px;
  transition: background 0.15s ease;
}

.strat-btn-step:hover {
  background: var(--accent-cyan);
  color: #000;
}

.atm-tag {
  background: #000000;
  color: #eab308;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 3px;
  margin-left: 2px;
  vertical-align: middle;
}

/* Cell Selection & Popover Pop-up Card Styling */
.strat-table td.cell-selected {
  outline: 2px solid #16a34a !important;
  outline-offset: -2px;
  box-shadow: inset 0 0 6px rgba(22, 163, 74, 0.6) !important;
  z-index: 10;
  position: relative;
}

.strat-popover-card {
  position: absolute;
  z-index: 1000;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  gap: 8px;
  width: 230px;
  font-family: var(--font-sans);
  animation: popoverFadeIn 0.15s ease-out;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.popover-close {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}

.popover-close:hover {
  color: #0f172a;
}

.popover-legs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.popover-leg-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.badge-buy {
  background: #dcfce7;
  color: #15803d;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.badge-sell {
  background: #ffe4e6;
  color: #b91c1c;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.leg-qty {
  color: #475569;
  font-weight: 700;
  width: 20px;
}

.leg-desc {
  color: #0f172a;
  font-weight: 700;
}

.popover-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 2px 0;
}

.popover-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-sans);
}

.pop-label {
  color: #64748b;
  font-weight: 600;
}

.pop-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #0f172a;
}

.popover-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.pop-btn {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.pop-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.pop-btn.btn-chart {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.pop-btn.btn-chart:hover {
  background: #dcfce7;
  color: #15803d;
}


/* Hero CAS (Closing Auction Session) Indicator Styling */
.hero-cas-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 5px;
  padding: 3px 8px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-cas-row .cas-label {
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 10px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.hero-cas-row .cas-val {
  font-weight: 700;
  color: #ffffff;
  font-size: 12.5px;
  white-space: nowrap;
}

.hero-cas-row .cas-diff {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
}

.hero-cas-row .cas-tag {
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 215, 0, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.stat-cas-highlight {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 4px;
  padding: 3px 6px;
  margin: -1px -3px 2px -3px;
}

.stat-cas-highlight .stat-label {
  color: var(--accent-cyan) !important;
  font-weight: 700 !important;
}

.stat-cas-highlight .stat-value {
  color: #38bdf8 !important;
  font-weight: 700 !important;
}

.text-green { color: #00e676 !important; }
.text-red { color: #ff5252 !important; }


/* Market Data Source Styling in Navbar */
.index-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

#dataSourceLabel {
  white-space: nowrap;
  font-size: 11px;
}

.index-bar .badge-live {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 6px;
}


/* Header ATM Straddle ("STD-Value") Pill Styling - Straddle Gold Color Matching */
.btn-straddle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(255, 179, 0, 0.12);
  border: 1px solid rgba(255, 179, 0, 0.45);
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(255, 179, 0, 0.18);
}

.btn-straddle:hover {
  background: rgba(255, 179, 0, 0.22);
  border-color: #ffd54f;
  color: #fff8e1;
  box-shadow: 0 0 16px rgba(255, 179, 0, 0.4);
  transform: translateY(-1px);
}

.btn-straddle span, #headerAtmStraddleText {
  color: var(--accent-gold) !important;
  font-weight: 700;
}

/* =====================================================================
   SPREADIQ AI COPILOT WORKSTATION & FLOATING DRAWER STYLING
   ===================================================================== */

.ai-agent-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100vh - 170px);
  gap: 12px;
  padding: 4px;
}

.ai-agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 10px 16px;
}

.ai-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-badge-pro {
  background: rgba(179, 136, 255, 0.15);
  border: 1px solid rgba(179, 136, 255, 0.4);
  color: var(--accent-purple);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.ai-header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.regime-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.regime-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.2s ease;
}

.regime-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.regime-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.6px;
}

.regime-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.regime-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.ai-main-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.ai-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 14px;
  overflow-y: auto;
}

.ai-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ai-prompt-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-prompt-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-prompt-btn:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateX(2px);
}

.ai-chat-window {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  overflow: hidden;
  min-height: 0;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-msg {
  display: flex;
  gap: 12px;
  max-width: 90%;
  animation: fadeIn 0.2s ease-out;
}

.ai-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-msg-assistant {
  align-self: flex-start;
  max-width: 95%;
}

.ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  flex-shrink: 0;
}

.ai-msg-user .ai-avatar {
  background: rgba(0, 230, 118, 0.15);
  border-color: var(--accent-green);
}

.ai-msg-assistant .ai-avatar {
  background: rgba(179, 136, 255, 0.15);
  border-color: var(--accent-purple);
}

.ai-msg-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.ai-sender {
  font-weight: 600;
  color: var(--text-main);
}

.ai-source-tag {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-family: var(--font-mono);
}

.ai-time {
  color: var(--text-dim);
}

.ai-msg-content {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-main);
}

.ai-msg-user .ai-msg-content {
  background: rgba(0, 230, 118, 0.08);
  border-color: rgba(0, 230, 118, 0.3);
}

.ai-h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.ai-h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 8px 0 4px 0;
}

.ai-table-wrapper {
  overflow-x: auto;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 11px;
}

.ai-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.ai-alert {
  padding: 8px 12px;
  border-radius: 6px;
  margin: 6px 0;
  font-size: 12px;
}

.ai-alert-TIP {
  background: rgba(0, 230, 118, 0.1);
  border-left: 3px solid var(--accent-green);
  color: #c8e6c9;
}

.ai-alert-WARNING {
  background: rgba(255, 179, 0, 0.1);
  border-left: 3px solid var(--accent-gold);
  color: #fff9c4;
}

.inline-code {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}

.ai-action-bar {
  margin-top: 6px;
}

.ai-action-btn {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-action-btn:hover {
  background: var(--accent-green);
  color: #000;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

.ai-chat-input-area {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-card);
  border-top: 1px solid var(--bg-card-border);
}

.ai-input-field {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.ai-input-field:focus {
  border-color: var(--accent-cyan);
}

.ai-send-btn {
  background: var(--accent-cyan);
  color: #000;
  border: none;
  font-weight: 700;
  padding: 0 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-send-btn:hover {
  background: #26c6da;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

/* Floating AI Button & Slide-Out Drawer */
.floating-ai-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 26px;
  background: linear-gradient(135deg, #7c4dff, #00e5ff);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124, 77, 255, 0.4);
  z-index: 9999;
  transition: all 0.2s ease;
}

.floating-ai-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 25px rgba(0, 229, 255, 0.6);
}

.ai-pulse-indicator {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: var(--accent-green);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  animation: pulse 1.8s infinite;
}

.ai-copilot-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--bg-card-border);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-copilot-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bg-card-border);
  background: var(--bg-card);
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
}

.drawer-close-btn:hover {
  color: var(--text-main);
}

/* Calendar & Diagonal Strategy Styling */
.cal-subnav-group {
  display: inline-flex;
  align-items: center;
  background: #0b1120;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  gap: 4px;
}

.cal-subnav-btn {
  background: transparent;
  color: var(--text-dim, #94a3b8);
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cal-subnav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.cal-subnav-btn.active {
  background: var(--accent-cyan, #00e5ff);
  color: #000000;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.cal-expiry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  color: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cal-expiry-select {
  background: #0f172a;
  color: var(--accent-gold, #f59e0b);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 6px;
  outline: none;
  cursor: pointer;
}

.strat-table th.th-spread {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 800;
  font-size: 12px;
  width: 66px;
}

.strat-table td.td-spread {
  font-weight: 700;
  font-size: 12px;
  color: #0f172a;
  background: #ffffff;
}

.strat-table td.td-spread-credit {
  background: #ecfdf5;
  color: #15803d;
  font-weight: 800;
}

.strat-table td.td-spread-debit {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

/* ========================================================================== */
/* QUINTAL MIND EXCEL FORMAT & LEFT INDICES SIDEBAR (HIDE & OPEN)            */
/* ========================================================================== */

.left-indices-sidebar {
  width: 270px;
  min-width: 270px;
  background: #0b0f19;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 12px 10px;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.25s, padding 0.25s, opacity 0.2s;
  flex-shrink: 0;
  z-index: 50;
  box-sizing: border-box;
}

.left-indices-sidebar.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0;
  border: none !important;
  pointer-events: none;
}

.sidebar-reopen-btn {
  position: fixed;
  left: 0;
  top: 100px;
  z-index: 999;
  background: #0d9488;
  color: #ffffff;
  border: none;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.4);
  display: none;
  transition: background 0.2s;
}
.sidebar-reopen-btn:hover {
  background: #14b8a6;
}

.sidebar-top-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 10px 4px;
}
.sidebar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-brand-icon {
  color: #00e5ff;
}
.sidebar-brand-name {
  font-weight: 800;
  font-size: 15px;
  color: #ffffff;
  letter-spacing: 0.3px;
}
.sidebar-brand-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.sidebar-collapse-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #00e5ff;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: all 0.2s;
}
.sidebar-collapse-btn:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: #00e5ff;
}

/* Sidebar Strategy Navigation Tabs (Current Week, Next Week, Option Chain) */
.sidebar-strategy-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 2px 10px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-tab-row {
  display: flex;
  gap: 6px;
  width: 100%;
}

.tab-item.sidebar-tab-pill {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px !important;
  height: auto !important;
  min-height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.tab-item.sidebar-tab-pill:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.tab-item.sidebar-tab-pill.active {
  background: #0d9488 !important;
  color: #ffffff !important;
  border-color: #0d9488 !important;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.4) !important;
}

.tab-item.sidebar-tab-pill .tab-txt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.tab-item.sidebar-tab-pill .tab-badge {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.tab-item.sidebar-tab-pill.full-width {
  width: 100%;
}

/* Sidebar Indices Table */
.indices-table-container {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}
.indices-table-hdr {
  display: grid;
  grid-template-columns: 1.15fr 0.55fr 0.95fr 0.85fr;
  padding: 8px 6px 6px 6px;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.indices-rows-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.idx-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.idx-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
.idx-row.active {
  background: rgba(13, 148, 136, 0.14);
  border-color: #0d9488;
  box-shadow: 0 0 10px rgba(13, 148, 136, 0.2);
}
.idx-row-main {
  display: grid;
  grid-template-columns: 1.15fr 0.55fr 0.95fr 0.85fr;
  align-items: center;
  font-family: var(--font-mono);
}
.idx-name {
  font-weight: 800;
  font-size: 12px;
  color: #f8fafc;
}
.idx-dte-badge {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  max-width: fit-content;
}
.idx-spot {
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  text-align: right;
}
.idx-straddle {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  text-align: right;
}
.idx-expiries-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.idx-exp-pill {
  flex: 1;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.idx-exp-pill:hover {
  border-color: #0d9488;
  color: #ffffff;
}
.idx-exp-pill.active {
  background: rgba(13, 148, 136, 0.3);
  color: #2dd4bf;
  border-color: #0d9488;
}

/* MAIN WORKSPACE AREA */
.main-workspace-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: #f1f5f9;
  min-width: 0;
}

/* STRATEGY TOP LIVE BANNER (QUINTAL MIND STYLE) */
.strat-top-banner {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 40;
  gap: 12px;
}
.strat-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.strat-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
}
.strat-top-sym {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.3px;
}
.strat-top-ltp {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  font-family: var(--font-mono);
}
.strat-top-chg {
  font-size: 13px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}
.strat-top-chg.price-up {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
}
.strat-top-chg.price-down {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

.strat-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.strat-top-straddle-pill {
  font-size: 13px;
  color: #475569;
  font-weight: 700;
  font-family: var(--font-mono);
}
.strat-top-straddle-pill strong {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  margin-left: 4px;
}
.strat-top-clock-pill {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  font-family: var(--font-mono);
}
.strat-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.strat-act-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.strat-act-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.strat-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0d9488;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* EXCEL-LIKE SPREADSHEET TABLE FORMAT */
.strat-matrix-wrapper {
  background: transparent;
  padding: 2px 0px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}
.strat-matrix-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.strat-column-box {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  padding: 6px 6px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.strat-main-title {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}

.strat-ctrl-header {
  padding: 5px 8px !important;
  gap: 8px !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
}

.strat-range-pill {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 1px 5px !important;
}
.strat-btn-step {
  background: #e2e8f0 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  padding: 0 4px !important;
  font-size: 11px !important;
}
.strat-bwb-select {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  font-family: var(--font-mono);
  font-size: 11px !important;
  font-weight: 800;
  color: #0f172a !important;
  cursor: pointer;
  padding: 0px 2px;
}
.strat-bwb-select option {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
}
.strat-pill-btn {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 2px 7px !important;
}
.strat-pill-btn.active, .strat-pill-btn:hover {
  background: #0d9488 !important;
  color: #ffffff !important;
  border-color: #0d9488 !important;
}

.strat-tables-flex {
  display: flex !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.strat-table-card {
  flex: 1 1 0% !important;
  width: 50% !important;
  max-width: 50% !important;
  min-width: 0 !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.strat-table-header {
  min-height: 26px !important;
  padding: 3px 6px !important;
  gap: 4px !important;
}
.strat-table-header-title {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.strat-shift-btns button {
  padding: 0px 4px !important;
  font-size: 10.5px !important;
  min-width: 18px !important;
  height: 20px !important;
  line-height: 20px !important;
}

.strat-table-header.call-hdr {
  background: #dcfce7 !important;
  color: #15803d !important;
  border-bottom: 2px solid #86efac !important;
}
.strat-table-header.put-hdr {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border-bottom: 2px solid #fca5a5 !important;
}
.strat-table-scroll {
  width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  max-height: 440px !important;
  box-sizing: border-box !important;
}
.strat-table {
  width: 100% !important;
  table-layout: fixed !important;
  background: #ffffff !important;
  border-collapse: collapse !important;
  box-sizing: border-box !important;
}
.strat-table th {
  background: #f8fafc !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 800 !important;
  font-size: 11.5px !important;
  padding: 4px 1px !important;
  text-align: center !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}
.strat-table th.th-strike {
  width: 18% !important;
  min-width: 0 !important;
  background: #fef08a !important;
  color: #713f12 !important;
  font-size: 11.5px !important;
  letter-spacing: -0.3px !important;
}
.strat-table th.th-ltp {
  width: 14% !important;
  min-width: 0 !important;
  font-size: 11.5px !important;
}
.strat-table th:not(.th-strike):not(.th-ltp) {
  width: 13.6% !important;
  min-width: 0 !important;
  font-size: 11.5px !important;
}
.strat-table td {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 3.5px 1px !important;
  text-align: center !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  line-height: 1.25 !important;
}
.strat-table td.td-strike {
  width: 18% !important;
  min-width: 0 !important;
  background: #fde68a !important;
  color: #713f12 !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: -0.3px !important;
}
.strat-table td.td-strike.atm-badge {
  background: #eab308 !important;
  color: #000000 !important;
  font-weight: 900 !important;
}
.strat-table td.td-ltp {
  width: 14% !important;
  min-width: 0 !important;
  font-weight: 800 !important;
}
.strat-table td.td-ltp.td-ltp-call {
  color: #15803d !important;
}
.strat-table td.td-ltp.td-ltp-put {
  color: #b91c1c !important;
}
.strat-table td:not(.td-strike):not(.td-ltp) {
  width: 13.6% !important;
  min-width: 0 !important;
}

.atm-tag {
  background: #000000 !important;
  color: #eab308 !important;
  font-size: 8px !important;
  font-weight: 900 !important;
  padding: 0.5px 2px !important;
  border-radius: 2px !important;
  margin-left: 1px !important;
  display: inline-block !important;
  line-height: 1.1 !important;
  vertical-align: middle !important;
}

/* ENTIRE ATM ROW HIGHLIGHT (Full Horizontal Yellow Strip in Quintal Mind) */
.strat-table tr.row-atm td {
  background-color: #fef08a !important;
  color: #000000 !important;
  font-weight: 900 !important;
}
.strat-table tr.row-atm td.td-strike {
  background-color: #fde047 !important;
  color: #713f12 !important;
}
.strat-table tr.row-atm td.atm-badge {
  background-color: #eab308 !important;
  color: #000000 !important;
  font-weight: 900 !important;
}

/* Green Credit Zone / Profit */
.cell-dark-green, .cell-dark-bf {
  background: #84a98c !important;
  color: #000000 !important;
  font-weight: 800 !important;
}
.cell-white {
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 800 !important;
}

/* Payoff Sparkline & Modal Styles */
.strat-table th.th-payoff {
  width: 14% !important;
  min-width: 0 !important;
  font-size: 11.5px !important;
}
.strat-table td.td-payoff {
  text-align: center !important;
  padding: 1px 1px !important;
  vertical-align: middle !important;
  width: 14% !important;
  min-width: 0 !important;
  height: 22px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}
.strat-table tr.row-atm td.td-payoff {
  background-color: #fef08a !important;
}
.mini-payoff-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.mini-payoff-wrapper:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 4px rgba(124, 58, 237, 0.6));
}
@keyframes payoffModalPop {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* Double Diagonal Cards (SpreadIQ Format - 7 Cards Layout) */
.dd-cards-horizontal-wrapper {
  display: flex;
  gap: 8px;
  width: 100% !important;
  box-sizing: border-box;
  overflow-x: auto;
  align-items: stretch;
}
.dd-mini-card {
  flex: 1 1 0 !important;
  min-width: 150px !important;
  max-width: none !important;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dd-mini-card .strat-table {
  width: 100% !important;
  table-layout: fixed !important;
}
.dd-mini-card .strat-table th {
  padding: 5px 2px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-align: center !important;
  white-space: nowrap !important;
  letter-spacing: -0.2px !important;
}
.dd-mini-card .strat-table td {
  padding: 4px 2px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  line-height: 1.25 !important;
}
.dd-mini-card .strat-table th.th-strike,
.dd-mini-card .strat-table td.td-strike {
  width: 28% !important;
  min-width: 28% !important;
  max-width: 28% !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
}
.dd-mini-card .strat-table td.td-strike.atm-badge {
  font-size: 12.5px !important;
  font-weight: 900 !important;
}
.dd-mini-card .strat-table th.th-ltp,
.dd-mini-card .strat-table td.td-ltp {
  width: 22% !important;
  min-width: 22% !important;
  max-width: 22% !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace !important;
}
.dd-mini-card .strat-table th.th-spread,
.dd-mini-card .strat-table td.td-spread-cell {
  width: 28% !important;
  min-width: 28% !important;
  max-width: 28% !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace !important;
}

