:root {
  /* Offset for sticky headers (below top bar); adjust if bar height changes */
  --heatmap-sticky-top: 64px;
  --space-deep: #0b1220;
  --ocean-deep: #001f3f;
  --wave-teal: #39cccc;
  --nebula-purple: #4b0082;
  --star-silver: #c0c0c0;
}
/* Base Styles - Charcoal + Ice Blue + Rose Gold Palette */
body {
  font-family: 'Inter', sans-serif;
  background-color: #111418; /* Charcoal background */
  color: #FFFFFF; /* White text */
}

.content-container {
  height: calc(100vh - 120px);
  overflow: auto;
  position: relative;
}

/* Ensure tooltips can escape container bounds */
#heatmap-content {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
}

/* Heatmap 1.1: let the main scroll container own vertical scrolling.
   The table wrapper used by Heatmap 1.0 adds an inner scroll; for 1.1 we disable that
   so expiration headers can stick to the top of the 1.1 scroll area. */
#heatmap-11-content {
  overflow-y: visible !important; /* Tailwind overflow-x-auto can imply overflow-y hidden */
}
#heatmap-11-content .heatmap-grid-wrapper {
  /* Freeze-panes behavior: the table itself scrolls (both axes) while headers/left cols stick. */
  overflow: auto !important;
  max-height: min(72vh, calc(100vh - 420px));
  border-radius: 12px;
  scrollbar-gutter: stable both-edges;
}

/* Heatmap 1.1: premium "Excel-like freeze panes" styling */
#heatmap-11-content {
  /* JS sets --hm11-strike-col-w dynamically after render; fallback keeps Flow Δ aligned. */
  --hm11-strike-col-w: 96px;
}
#heatmap-11-content .heatmap-grid-table thead th {
  background: rgba(17, 20, 24, 0.80) !important; /* glassy charcoal */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
#heatmap-11-content .heatmap-grid-table th.sticky-date-header {
  top: var(--heatmap-sticky-top, 0px);
  z-index: 30;
}

/* Left frozen panes (Strike + Flow Δ) */
#heatmap-11-content .heatmap-grid-table th.sticky-strike,
#heatmap-11-content .heatmap-grid-table td.sticky-strike {
  left: 0;
  background: rgba(13, 17, 23, 0.82) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 2px 0 10px rgba(0,0,0,0.35);
}
#heatmap-11-content .heatmap-grid-table th.sticky-strike {
  z-index: 60;
}
#heatmap-11-content .heatmap-grid-table td.sticky-strike {
  z-index: 25;
}

#heatmap-11-content .heatmap-grid-table th.sticky-flow,
#heatmap-11-content .heatmap-grid-table td.sticky-flow {
  position: sticky;
  left: var(--hm11-strike-col-w);
  background: rgba(13, 17, 23, 0.78) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 2px 0 10px rgba(0,0,0,0.28);
}
#heatmap-11-content .heatmap-grid-table th.sticky-flow {
  z-index: 58;
}
#heatmap-11-content .heatmap-grid-table td.sticky-flow {
  z-index: 24;
}

/* Slight outline so frozen panes feel "floating" */
#heatmap-11-content .heatmap-grid-table th.sticky-strike,
#heatmap-11-content .heatmap-grid-table th.sticky-flow,
#heatmap-11-content .heatmap-grid-table th.sticky-date-header {
  border-bottom: 1px solid rgba(88, 166, 255, 0.20) !important;
}

/* Heatmap 1.1: pulse highlight for the auto-centered ATM/magnet row */
.hm11-magnet-row td {
  box-shadow: inset 0 0 0 1px rgba(242, 201, 76, 0.22);
}
@media (prefers-reduced-motion: no-preference) {
  .hm11-magnet-row td {
    animation: hm11MagnetPulse 1.1s ease-out 1;
  }
  @keyframes hm11MagnetPulse {
    0%   { box-shadow: inset 0 0 0 1px rgba(242, 201, 76, 0.10), 0 0 0 rgba(242, 201, 76, 0.0); }
    60%  { box-shadow: inset 0 0 0 1px rgba(242, 201, 76, 0.30), 0 0 16px rgba(242, 201, 76, 0.18); }
    100% { box-shadow: inset 0 0 0 1px rgba(242, 201, 76, 0.18), 0 0 0 rgba(242, 201, 76, 0.0); }
  }
}

/* Heatmap 1.1: subtle default "descending" indicator on Strike header */
.hm11-strike-sort-indicator {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  opacity: 0.65;
  transform: translateY(-1px);
}

/* Heatmap 1.1: Gamma/VEX toggle active styling (prevents "wrong pill highlighted" confusion) */
#heatmap-11-view .hm11-map-active {
  background: rgba(88, 166, 255, 0.22) !important;
  border: 1px solid rgba(88, 166, 255, 0.35) !important;
  color: #ffffff !important;
}
#heatmap-11-view .hm11-map-inactive {
  background: transparent !important;
  border: 1px solid rgba(88, 166, 255, 0.18) !important;
  color: rgba(214, 232, 255, 0.92) !important;
}

/* 2NA HQ: "Coming Soon" note card */
.coming-soon-note {
  border-radius: 14px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(75, 0, 130, 0.40); /* nebula purple */
  background:
    radial-gradient(circle at 15% 20%, rgba(88, 166, 255, 0.18), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(75, 0, 130, 0.22), transparent 45%),
    rgba(13, 17, 23, 0.60);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.coming-soon-note__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.coming-soon-note__title {
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  color: rgba(214, 232, 255, 0.98);
  letter-spacing: 0.02em;
}
.coming-soon-note__subtitle {
  font-size: 11px;
  color: rgba(214, 232, 255, 0.72);
}
.coming-soon-note__body {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(214, 232, 255, 0.92);
}

/* Dark Pool Scanner */
.dark-pool-view {
  background: radial-gradient(circle at 20% 20%, rgba(75, 0, 130, 0.14), transparent 35%),
              radial-gradient(circle at 70% 30%, rgba(57, 204, 204, 0.14), transparent 45%),
              #0b1220;
  border-radius: 14px;
  min-height: 100%;
}
.dark-pool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dark-pool-title {
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(214, 232, 255, 0.98);
}
.dark-pool-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.darkpool-input {
  width: 84px;
  background: rgba(31, 41, 55, 0.65);
  border: 1px solid rgba(75, 0, 130, 0.45);
  border-radius: 10px;
  padding: 6px 10px;
  color: rgba(255,255,255,0.95);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.darkpool-input:focus { outline: none; border-color: rgba(88, 166, 255, 0.55); box-shadow: 0 0 0 3px rgba(88,166,255,0.12); }
.darkpool-refresh-btn {
  padding: 7px 12px;
  border-radius: 9999px;
  background: rgba(75, 0, 130, 0.22);
  border: 1px solid rgba(75, 0, 130, 0.45);
  color: rgba(255,255,255,0.95);
  font-weight: 800;
  font-size: 12px;
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
}
.darkpool-refresh-btn:hover { background: rgba(75, 0, 130, 0.30); }
.dark-pool-nav-btn {
  background: rgba(75, 0, 130, 0.20) !important;
  border: 1px solid rgba(75, 0, 130, 0.45) !important;
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
}
.dark-pool-btn {
  /* Alias for future/HTML usage (requested naming). */
  background: rgba(75, 0, 130, 0.20) !important;
  border: 1px solid rgba(75, 0, 130, 0.45) !important;
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
  border-radius: 9999px;
}
.dark-pool-nav-btn:hover {
  background: rgba(75, 0, 130, 0.28) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35), 0 0 0 3px rgba(75,0,130,0.10);
}
.big-block-glow {
  box-shadow: 0 0 18px rgba(57, 204, 204, 0.28), inset 0 0 0 1px rgba(57, 204, 204, 0.22);
}
.darkpool-twinkle {
  animation: darkpoolTwinkle 1.2s ease-in-out infinite alternate;
}
@keyframes darkpoolTwinkle {
  from { opacity: 0.72; filter: drop-shadow(0 0 4px rgba(57,204,204,0.35)); }
  to { opacity: 1; filter: drop-shadow(0 0 8px rgba(75,0,130,0.45)); }
}

/* New-print ping (one-shot) */
.darkpool-new-print {
  animation: darkpoolNewPrint 1.35s ease-out 1;
}
@keyframes darkpoolNewPrint {
  0%   { box-shadow: 0 0 0 rgba(57,204,204,0.0); transform: translateY(0); }
  35%  { box-shadow: 0 0 20px rgba(57,204,204,0.28); transform: translateY(-1px); }
  100% { box-shadow: 0 0 0 rgba(57,204,204,0.0); transform: translateY(0); }
}

/* Dark Pool range pills (small polish) */
#dark-pool-view #darkpool-range-1h,
#dark-pool-view #darkpool-range-1d {
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
}

.dark-pool-coming {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 18px 16px;
  border: 1px solid rgba(75, 0, 130, 0.45);
  background:
    radial-gradient(circle at 20% 20%, rgba(88, 166, 255, 0.16), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(75, 0, 130, 0.22), transparent 45%),
    rgba(13, 17, 23, 0.55);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.darkpool-logo-twinkle {
  animation: darkpoolTwinkle 1.4s ease-in-out infinite alternate;
}

/* 2NA HQ (home) – clean Mission Control cards */
.hq-shell {
  background: radial-gradient(circle at 20% 20%, rgba(75, 0, 130, 0.10), transparent 35%),
              radial-gradient(circle at 70% 30%, rgba(57, 204, 204, 0.10), transparent 45%),
              transparent;
}

/* Launch Pad 2.0 – Mission Control */
.mission-card {
  border-radius: 16px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(75, 0, 130, 0.40); /* nebula purple */
  background:
    radial-gradient(circle at 15% 20%, rgba(88, 166, 255, 0.14), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(75, 0, 130, 0.18), transparent 45%),
    rgba(13, 17, 23, 0.55);
  box-shadow: 0 14px 40px rgba(0,0,0,0.40);
}
.mission-card__title {
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(214, 232, 255, 0.98);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.mission-card__body {
  color: rgba(214, 232, 255, 0.92);
}

/* Launch Pad 2.0 loading blocks */
.lp20-loading {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(88, 166, 255, 0.18);
  background: rgba(13, 17, 23, 0.45);
}
.tuna-spin {
  animation: tunaSpin 1.1s linear infinite;
  filter: drop-shadow(0 0 10px rgba(75, 0, 130, 0.35));
}
@keyframes tunaSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Mobile polish */
@media (max-width: 768px) {
  #launch-pad-20-view {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  .mission-card {
    padding: 12px 12px 10px;
  }
  .mission-card__title {
    font-size: 14px;
  }
  #launch-pad-20-view .hq-hero .text-2xl,
  #launch-pad-20-view .hq-hero .text-3xl {
    font-size: 18px !important;
    line-height: 1.2;
  }
}

.launch-pad-20-btn {
  background: rgba(57, 204, 204, 0.14) !important;
  border: 1px solid rgba(57, 204, 204, 0.45) !important;
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
  border-radius: 9999px;
}
.launch-pad-20-btn:hover {
  background: rgba(57, 204, 204, 0.20) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35), 0 0 0 3px rgba(57,204,204,0.10);
}
.hq-hero {
  border-radius: 16px;
  padding: 14px 14px;
  border: 1px solid rgba(88, 166, 255, 0.22);
  background: rgba(13, 17, 23, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.hq-title {
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hq-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.hq-logo-glow {
  box-shadow: 0 0 0 transparent;
}
.hq-logo-glow:hover {
  box-shadow: 0 0 16px rgba(75,0,130,0.30);
}

/* Launch Pad (modal + buttons) helpers */
.glow-logo {
  filter: drop-shadow(0 0 10px rgba(75, 0, 130, 0.35));
}
.glow-logo:hover {
  filter: drop-shadow(0 0 14px rgba(75, 0, 130, 0.55)) drop-shadow(0 0 10px rgba(88, 166, 255, 0.18));
}

.hq-card--compact {
  padding: 12px 14px;
}
.hq-card--compact .hq-card__title {
  margin-bottom: 6px;
}

/* Small twinkle on “live-ish” stat labels (respects reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .twinkle-stat {
    animation: twinkle 1.35s ease-in-out infinite alternate;
  }
}

/* Optional: dedicated Launch Pad CTA button (use alongside Tailwind) */
.launch-pad-btn {
  padding: 10px 12px;
  border-radius: 9999px;
  background: rgba(75, 0, 130, 0.24);
  border: 1px solid rgba(75, 0, 130, 0.55);
  color: rgba(255,255,255,0.96);
  font-weight: 900;
  letter-spacing: 0.01em;
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
}
.launch-pad-btn:hover {
  background: rgba(75, 0, 130, 0.32);
  box-shadow: 0 18px 38px rgba(0,0,0,0.45), 0 0 0 3px rgba(75,0,130,0.12);
}

/* Launch Pad full-page layout */
.launchpad-page {
  /* keeps the "full-page" feeling within the main content column */
  background:
    radial-gradient(circle at 15% 15%, rgba(75, 0, 130, 0.18), transparent 35%),
    radial-gradient(circle at 80% 25%, rgba(57, 204, 204, 0.12), transparent 45%),
    rgba(11, 18, 32, 0.35);
}
.launchpad-hero {
  border-radius: 16px;
  padding: 14px 14px;
  border: 1px solid rgba(75, 0, 130, 0.35);
  background: rgba(13, 17, 23, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Left-nav Launch Pad pill override (ensure it reads like the primary CTA) */
#left-nav button.launch-pad-btn {
  background: rgba(75, 0, 130, 0.22) !important;
  border: 1px solid rgba(75, 0, 130, 0.55) !important;
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif !important;
  font-weight: 900 !important;
  border-radius: 9999px !important;
}
#left-nav button.launch-pad-btn:hover {
  background: rgba(75, 0, 130, 0.30) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35), 0 0 0 3px rgba(75,0,130,0.12) !important;
}
.hq-card {
  border-radius: 16px;
  padding: 14px 14px;
  border: 1px solid rgba(75, 0, 130, 0.35);
  background: rgba(13, 17, 23, 0.55);
}
.hq-card__title {
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  color: rgba(214, 232, 255, 0.95);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.hq-card__body {
  color: rgba(214, 232, 255, 0.92);
}
.hq-input {
  background: rgba(31, 41, 55, 0.65);
  border: 1px solid rgba(88, 166, 255, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
  color: rgba(255,255,255,0.95);
  font-size: 12px;
  width: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.hq-input:focus { outline: none; border-color: rgba(88, 166, 255, 0.55); box-shadow: 0 0 0 3px rgba(88,166,255,0.12); }
.hq-btn {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(88, 166, 255, 0.18);
  border: 1px solid rgba(88, 166, 255, 0.30);
  color: rgba(255,255,255,0.95);
  font-size: 12px;
  font-weight: 800;
}
.hq-btn:hover { background: rgba(88,166,255,0.26); }
.hq-big-btn {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(75, 0, 130, 0.22);
  border: 1px solid rgba(75, 0, 130, 0.50);
  color: rgba(255,255,255,0.96);
  font-weight: 900;
  letter-spacing: 0.01em;
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}
.hq-big-btn:hover {
  background: rgba(75, 0, 130, 0.30);
  box-shadow: 0 18px 38px rgba(0,0,0,0.45), 0 0 0 3px rgba(75,0,130,0.12);
}

.glow-hover:hover {
  box-shadow: 0 18px 38px rgba(0,0,0,0.45), 0 0 0 3px rgba(88,166,255,0.10);
}
.hq-twinkle {
  animation: darkpoolTwinkle 1.6s ease-in-out infinite alternate;
}
.hq-tool {
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(31, 41, 55, 0.35);
}
.hq-pill {
  padding: 6px 10px;
  border-radius: 9999px;
  background: rgba(88, 166, 255, 0.12);
  border: 1px solid rgba(88,166,255,0.22);
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.hq-pill:hover { background: rgba(88,166,255,0.20); }

/* HQ Tour modal */
.hq-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(3px);
  z-index: 99996;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.hq-modal__panel {
  width: min(720px, 94vw);
  border-radius: 16px;
  padding: 14px 14px;
  border: 1px solid rgba(75, 0, 130, 0.45);
  background:
    radial-gradient(circle at 20% 20%, rgba(88, 166, 255, 0.16), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(75, 0, 130, 0.22), transparent 45%),
    rgba(13, 17, 23, 0.94);
  box-shadow: 0 22px 60px rgba(0,0,0,0.60);
}
.hq-watch-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(31, 41, 55, 0.40);
  border-radius: 12px;
  padding: 8px 10px;
}
.hq-watch-btn {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}
.hq-watch-x {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(214, 232, 255, 0.85);
}
.hq-watch-x:hover { background: rgba(255,255,255,0.10); }
.hq-stat {
  background: rgba(31, 41, 55, 0.45);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 8px 10px;
}
.hq-stat .label {
  font-size: 11px;
  color: rgba(214, 232, 255, 0.70);
}
.hq-stat .value {
  margin-top: 2px;
  font-weight: 900;
  color: rgba(255,255,255,0.95);
}

/* Left Navigation Styles */
#left-nav {
  min-height: 100vh;
  position: sticky;
  top: 0;
  align-self: flex-start;
  background-color: #0D1117 !important; /* deep charcoal */
  color: #FFFFFF !important;
  transition: width 0.2s ease;
  overflow: hidden;
}

/* Mobile off-canvas nav (safe: only active on small screens) */
.mobile-nav-toggle {
  display: none;
  width: 38px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(88, 166, 255, 0.25);
  background: rgba(31, 36, 40, 0.55);
  color: rgba(214, 232, 255, 0.95);
  font-size: 18px;
  line-height: 1;
}
.mobile-nav-toggle:active { transform: scale(0.98); }
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 55;
}

@media (max-width: 768px) {
  .mobile-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  body.nav-open { overflow: hidden; }

  #left-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(84vw, 320px) !important;
    z-index: 60;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 12px 0 40px rgba(0,0,0,0.55);
  }
  body.nav-open #left-nav { transform: translateX(0); }
  body.nav-open .mobile-nav-overlay { display: block; }

  /* Ensure main content uses full width while nav is off-canvas */
  #app { overflow-x: hidden; }
}

#left-nav.nav-collapsed {
  width: 72px !important;
}

#left-nav.nav-collapsed .nav-label,
#left-nav.nav-collapsed .nav-title,
#left-nav.nav-collapsed .nav-collapse-hide {
  display: none !important;
}

#left-nav.nav-collapsed button,
#left-nav.nav-collapsed a {
  justify-content: center;
}

#left-nav.nav-collapsed .px-4 {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

/* Heatmap sticky controls */
.heatmap-controls-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #111418;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(88, 166, 255, 0.15);
}

.heatmap-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.heatmap-summary-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.heatmap-summary-inline .heatmap-summary-card {
  padding: 6px 8px;
  border-radius: 10px;
  flex: 1 1 180px;
  min-width: 180px;
}

.heatmap-summary-inline .heatmap-summary-card .value {
  font-size: 14px;
}

.heatmap-summary-card {
  background: #1F2428;
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
}

.heatmap-summary-card .label {
  font-size: 11px;
  color: #8B949E;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.heatmap-summary-card .value {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2px;
}

.heatmap-grid-table th,
.heatmap-grid-table td {
  height: 18px;
}

.heatmap-grid-table {
  width: 100%;
  table-layout: fixed;
}

.heatmap-grid-table thead th {
  position: sticky;
  top: var(--heatmap-sticky-top, 96px);
  z-index: 30;
  background: #1F2428;
}

thead th.sticky-strike {
  top: var(--heatmap-sticky-top, 96px);
  left: 0;
  z-index: 40;
}

.heatmap-grid-table td.heatmap-cell {
  min-width: 52px;
  letter-spacing: 0.02em;
  font-size: 11px;
  padding-left: 2px !important;
  padding-right: 2px !important;
  padding-top: 1px !important;
  padding-bottom: 1px !important;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #F8FAFC !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.heatmap-grid-table th.sticky-date-header {
  min-width: 52px;
  white-space: nowrap;
}

.flow-delta-col {
  width: 110px;
  min-width: 110px;
}

.heatmap-grid-table th.sticky-strike,
.heatmap-grid-table td.sticky-strike {
  min-width: 78px;
}

.heatmap-legend-sticky {
  position: sticky;
  top: 72px;
  z-index: 35;
}

/* Competitor-inspired right inspector panel */
.heatmap-side-panel {
  width: 440px;
  position: sticky;
  top: var(--heatmap-sticky-top, 96px);
  align-self: flex-start;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.heatmap-inspector {
  /* Opaque background (no see-through) for readability */
  background-color: #111418;
  background-image: radial-gradient(120% 120% at 0% 0%, rgba(88, 166, 255, 0.18) 0%, rgba(31, 36, 40, 0.98) 55%, rgba(17, 20, 24, 1) 100%);
  border: 1px solid rgba(88, 166, 255, 0.22);
  border-radius: 12px;
  padding: 12px;
}

/* Floating inspector sheet (used by Heatmap 1.3 on desktop + mobile; also used by other views on mobile) */
#mobile-inspector-sheet {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 440px;
  max-width: calc(100vw - 24px);
  z-index: 70;
  border-radius: 16px;
  border: 1px solid rgba(88, 166, 255, 0.22);
  /* Opaque (no translucent card) */
  background-color: #111418;
  background-image: radial-gradient(120% 120% at 0% 0%, rgba(88, 166, 255, 0.14) 0%, rgba(31, 36, 40, 0.98) 58%, rgba(17, 20, 24, 1) 100%);
  box-shadow: 0 18px 46px rgba(0,0,0,0.55);
  overflow: hidden;
  display: none;
}
body.mobile-inspector-open #mobile-inspector-sheet { display: block; }
body.mobile-inspector-collapsed #mobile-inspector-sheet { max-height: 120px; }
body.mobile-inspector-open:not(.mobile-inspector-collapsed) #mobile-inspector-sheet { max-height: 62vh; }

.mobile-inspector-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  user-select: none;
  -webkit-user-select: none;
}
.mobile-inspector-handle .bar {
  height: 4px;
  width: 44px;
  border-radius: 999px;
  background: rgba(214, 232, 255, 0.35);
  margin: 0 auto;
}
.mobile-inspector-handle .btns {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mobile-inspector-btn {
  width: 34px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(214,232,255,0.92);
  font-size: 16px;
  line-height: 1;
}
.mobile-inspector-body {
  padding: 10px;
  overflow: auto;
  max-height: calc(62vh - 46px);
}
#mobile-inspector-sheet .heatmap-inspector {
  padding: 0;
  border: none;
  background: transparent;
}
#mobile-inspector-sheet #heatmap-tv-chart { display: none !important; }

/* Heatmap 1.3: always use the floating sheet, not the sticky thead inspector row */
#heatmap-13-content .heatmap-grid-table thead tr.hm13-inspector-row {
  display: none !important;
}

/* Mobile: keep the cell inspector compact so it doesn't dominate the heatmap */
@media (max-width: 768px) {
  /* The inline inspector lives inside the sticky controls row for Heatmap 1.0.
     On mobile we render the inspector into a bottom sheet instead. */
  #heatmap-inspector-inline { display: none !important; }

  /* Side panel should behave like normal flow on mobile */
  .heatmap-side-panel {
    width: 100%;
    position: static;
    max-height: none;
    overflow: visible;
  }

  /* IMPORTANT: prevent duplicate inspectors on mobile.
     The side panel renders an inspector + top levels; on mobile we use the bottom sheet inspector.
     Keep Top Levels visible, but hide the side-panel inspector block. */
  .heatmap-side-panel > .heatmap-inspector {
    display: none !important;
  }

  /* Sheet layout on mobile */
  #mobile-inspector-sheet {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-width: none;
  }
  body.mobile-inspector-collapsed #mobile-inspector-sheet { max-height: 108px; }
  body.mobile-inspector-open:not(.mobile-inspector-collapsed) #mobile-inspector-sheet { max-height: 52vh; }

  #mobile-inspector-sheet .heatmap-sparkline { height: 46px; }
}

.heatmap-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.heatmap-sparkline {
  width: 100%;
  height: 64px;
  display: block;
}

/* Ladder view (beginner-friendly) */
.heatmap-ladder {
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

.heatmap-ladder-row {
  display: grid;
  grid-template-columns: 86px 1fr 90px;
  gap: 10px;
  align-items: center;
  padding: 4px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(31, 36, 40, 0.65);
}

.heatmap-ladder-row:first-child {
  border-top: none;
}

.heatmap-ladder-bar {
  height: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0B1020;
}

.heatmap-ladder-meta {
  font-size: 11px;
  color: #8B949E;
}

/* Nav Pane Buttons - Make Readable */
#left-nav button {
  font-size: 16px !important;
  padding: 12px 16px !important;
  color: #FFFFFF !important;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06) !important; /* subtle pill background */
}

#left-nav button:hover {
  color: #FFFFFF !important;
  background: rgba(88, 166, 255, 0.18) !important;
}

/* Ensure text/icon contrast even if Tailwind classes set lighter colors */
#left-nav button span,
#left-nav button i {
  color: inherit !important;
}

/* Left-nav pill badge (e.g., "Coming soon") */
#left-nav .nav-soon-pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  border-radius: 999px;
  color: rgba(214, 232, 255, 0.95) !important;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.45);
  white-space: nowrap;
}

/* Active nav button (Tailwind sets bg-surface-700) */
#left-nav button.bg-surface-700 {
  background: rgba(88, 166, 255, 0.28) !important;
  color: #FFFFFF !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  #left-nav button {
    font-size: 14px;
    padding: 10px 12px;
  }
}

/* Sticky Strike Column */
.sticky-strike {
  position: sticky;
  left: 0;
  z-index: 10;
  background-color: #1F2428; /* Surface */
}

/* Sticky date headers in thead should have higher z-index than strike column */
thead th.sticky-strike {
  z-index: 30; /* Higher than date headers (z-20) and regular strike cells (z-10) */
}

/* Ensure date headers stay visible when scrolling vertically */
/* Stick headers at the very top of the heatmap scroll area */
.sticky-date-header {
  position: sticky;
  top: var(--heatmap-sticky-top);
  z-index: 20; /* Above tbody cells but below strike header */
  background-color: #1F2428; /* Match thead background */
}

thead th.sticky-date-header {
  top: var(--heatmap-sticky-top);
}

thead th.sticky-strike {
  top: var(--heatmap-sticky-top);
}

.heatmap-grid-wrapper {
  position: relative;
  overflow: auto;
  max-height: calc(100vh - 200px);
}

.analysis-card__container {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.analysis-card {
  background: radial-gradient(circle at 20% 20%, rgba(75, 0, 130, 0.12), transparent 45%), #1f2933;
  border: 1px solid rgba(115, 190, 255, 0.3);
  border-radius: 10px;
  padding: 12px;
}

.analysis-card__title {
  font-weight: 700;
  color: #e0f2ff;
  margin-bottom: 8px;
  font-size: 14px;
}

.analysis-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px;
  font-size: 12px;
  color: #b8d7f2;
}

.analysis-card__grid .label {
  color: #94a3b8;
}

.analysis-card__grid .value {
  color: #e0f2ff;
  font-weight: 600;
}

.analysis-card__list {
  list-style: disc;
  padding-left: 18px;
  color: #dbeafe;
  font-size: 12px;
}

.analysis-card__chart {
  height: 180px;
}

.top-box-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.compact-panel {
  background: rgba(17, 20, 24, 0.92);
  border: 1px solid rgba(115, 190, 255, 0.3);
  border-radius: 10px;
  padding: 10px;
}

/* Themed buttons */
.btn {
  border-radius: 999px;
}
.btn-primary {
  background: linear-gradient(90deg, #38bdf8, #8b5cf6);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.45);
}
.btn-secondary {
  border: 1px solid rgba(147, 197, 253, 0.35);
  background: rgba(255, 255, 255, 0.04);
}
.btn-danger {
  background: linear-gradient(90deg, #f87171, #f472b6);
}

/* Animations */
.animate-wave {
  animation: waveRipple 0.6s ease-out;
}
@keyframes waveRipple {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5); }
  100% { box-shadow: 0 0 0 14px rgba(56, 189, 248, 0); }
}
.twinkle {
  animation: twinkle 1.2s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.7; filter: drop-shadow(0 0 4px #c0c0c0); }
  to { opacity: 1; filter: drop-shadow(0 0 8px #8b5cf6); }
}

.flash-up {
  animation: flashUp 0.8s ease-out;
}
@keyframes flashUp {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  100% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
}
.flash-down {
  animation: flashDown 0.8s ease-out;
}
@keyframes flashDown {
  0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.45); }
  100% { box-shadow: 0 0 0 12px rgba(248, 113, 113, 0); }
}

.inline-logo {
  height: 1.7em;
  width: auto;
  vertical-align: middle;
  border-radius: 9999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  object-fit: cover;
  box-shadow: 0 0 0 transparent;
}
.inline-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px #4b0082;
}

/* =========================
   Heatmap 1.1 (rebuilt view)
   ========================= */

/* Sidebar button: ice-blue pill treatment */
#left-nav button.heatmap11-nav-btn {
  background: rgba(88, 166, 255, 0.14) !important;
  border: 1px solid rgba(88, 166, 255, 0.35) !important;
}
#left-nav button.heatmap11-nav-btn:hover {
  background: rgba(88, 166, 255, 0.22) !important;
}

/* Heatmap 1.2: wave-teal pill in nav */
#left-nav button.heatmap12-nav-btn {
  background: rgba(57, 204, 204, 0.16) !important;
  border: 1px solid rgba(57, 204, 204, 0.40) !important;
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif !important;
  font-weight: 900 !important;
}
#left-nav button.heatmap12-nav-btn:hover {
  background: rgba(57, 204, 204, 0.24) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35), 0 0 0 3px rgba(57,204,204,0.10) !important;
}

/* Heatmap 1.3: ultimate wave-teal pill in nav */
#left-nav button.heatmap13-nav-btn {
  background: rgba(57, 204, 204, 0.18) !important;
  border: 1px solid rgba(57, 204, 204, 0.46) !important;
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif !important;
  font-weight: 900 !important;
}
#left-nav button.heatmap13-nav-btn:hover {
  background: rgba(57, 204, 204, 0.28) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.38), 0 0 0 3px rgba(57,204,204,0.12) !important;
}

/* Heatmap 1.3 top row + sticky inspector */
.heatmap13-card {
  border-radius: 16px;
}
.hm13-selected-cell {
  outline: 2px solid rgba(57,204,204,0.40);
  box-shadow: 0 0 0 3px rgba(57,204,204,0.12), 0 0 14px rgba(75,0,130,0.18);
}

/* Heatmap 1.3: cell color meaning badge (bull/bear/neutral) */
.hm13-bias-line {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hm13-bias-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.95);
}
.hm13-bias--bull { background: rgba(57,204,204,0.18); border-color: rgba(57,204,204,0.30); }
.hm13-bias--bear { background: rgba(239,68,68,0.16); border-color: rgba(239,68,68,0.28); }
.hm13-bias--neutral { background: rgba(148,163,184,0.14); border-color: rgba(148,163,184,0.24); }

/* Heatmap 1.3: table sticky layering + Vol/OI column + inspector header row (no overlap) */
#heatmap-13-view {
  --hm13-strike-col-w: 90px;
  --hm13-voi-col-w: 110px;
  --hm13-header-h: 40px;
}

/* Heatmap tables: horizontal scroll wrapper (mobile-first) */
.table-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

/* Heatmap 1.3: ensure the table can overflow horizontally (prevents sticky overlap on narrow screens) */
#heatmap-13-content .heatmap-grid-table {
  width: max-content;
  min-width: 100%;
}

/* Heatmap 1.3: compact rows (more strikes on screen) */
#heatmap-13-content .heatmap-grid-table td.heatmap-cell {
  padding-top: 1px !important;
  padding-bottom: 1px !important;
  font-size: 0.80rem !important;
  line-height: 1.10 !important;
}
#heatmap-13-content .heatmap-grid-table td.sticky-strike {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  font-size: 0.85rem !important;
  line-height: 1.15 !important;
}
#heatmap-13-content .heatmap-grid-table td.sticky-flow {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

/* Heatmap 1.3: protect key column widths (Strike / Vol-OI / Flow Δ) */
#heatmap-13-content .heatmap-grid-table th.sticky-strike,
#heatmap-13-content .heatmap-grid-table td.sticky-strike {
  min-width: 90px !important;
}
#heatmap-13-content .heatmap-grid-table th.sticky-voi,
#heatmap-13-content .heatmap-grid-table td.sticky-voi {
  min-width: 110px !important;
}

/* Heatmap 1.3: slimmer Strike column (readable, centered, no-wrap) */
#heatmap-13-content .heatmap-grid-table th.strike-column,
#heatmap-13-content .heatmap-grid-table td.strike-column {
  min-width: 90px !important;
  white-space: nowrap;
  text-align: center !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}
#heatmap-13-content .heatmap-grid-table td.strike-column {
  font-size: 0.85rem !important;
  line-height: 1.1 !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}
#heatmap-13-content .heatmap-grid-table th.flow-delta-col,
#heatmap-13-content .heatmap-grid-table td.flow-delta-col {
  min-width: 100px !important;
  width: 100px !important;
}

@media (max-width: 600px) {
  /* very small screens: keep sticky panes usable without covering Flow Δ */
  #heatmap-13-content .heatmap-grid-table th.sticky-voi,
  #heatmap-13-content .heatmap-grid-table td.sticky-voi {
    min-width: 95px !important;
  }
  .vol-oi-bar__label { font-size: 9px; }
}

/* Heatmap 1.3: ticker search dropdown should sit ABOVE sticky inspector/header rows */
#hm13-ticker-dropdown {
  z-index: 9999 !important;
  background: rgba(17, 20, 24, 0.92) !important; /* darker for contrast */
  color: rgba(165, 216, 255, 0.95) !important; /* ice-blue-200 */
  border: 1px solid rgba(88, 166, 255, 0.28) !important; /* subtle ice-blue */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 16px 34px rgba(0,0,0,0.55), 0 0 0 3px rgba(88,166,255,0.10);
}
#hm13-ticker-dropdown .ticker-item {
  padding: 8px 12px;
  cursor: pointer;
  color: rgba(215, 238, 255, 0.96);
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  outline: 0;
  line-height: 1.4;
}
#hm13-ticker-dropdown .ticker-item__ticker {
  color: rgba(255, 255, 255, 0.98);
  font-weight: 900;
}
#hm13-ticker-dropdown .ticker-item__sep {
  color: rgba(165, 216, 255, 0.75);
}
#hm13-ticker-dropdown .ticker-item__name {
  color: rgba(215, 238, 255, 0.92);
}
#hm13-ticker-dropdown .ticker-item:hover,
#hm13-ticker-dropdown .ticker-item:focus {
  background: rgba(75, 0, 130, 0.80) !important; /* #4b0082cc */
  color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 0 0 2px rgba(75, 0, 130, 0.22), 0 0 12px rgba(75, 0, 130, 0.28);
  outline: none;
}
#hm13-ticker-dropdown .ticker-item:focus-visible {
  outline: 2px solid rgba(88, 166, 255, 0.55);
  outline-offset: -2px;
}

/* Scrollbar styling (WebKit + Firefox) */
#hm13-ticker-dropdown {
  scrollbar-color: rgba(165, 216, 255, 0.55) rgba(0,0,0,0.22);
  scrollbar-width: thin;
}
#hm13-ticker-dropdown::-webkit-scrollbar {
  width: 10px;
}
#hm13-ticker-dropdown::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.22);
}
#hm13-ticker-dropdown::-webkit-scrollbar-thumb {
  background: rgba(165, 216, 255, 0.55);
  border-radius: 9999px;
  border: 2px solid rgba(0,0,0,0.22);
}
#hm13-ticker-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(165, 216, 255, 0.72);
}

/* Make ALL ticker dropdowns match the dark “map button” vibe (fixes white dropdowns). */
#hm11-ticker-dropdown,
#hm12-ticker-dropdown,
#hm13-ticker-dropdown,
#lp20-ticker-dropdown {
  background: rgba(31, 36, 40, 0.92) !important; /* similar to the dark buttons/cards */
  color: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(88, 166, 255, 0.28) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#hm11-ticker-dropdown button,
#hm12-ticker-dropdown button,
#hm13-ticker-dropdown button,
#lp20-ticker-dropdown button,
#hm11-ticker-dropdown [data-ticker],
#lp20-ticker-dropdown [data-ticker] {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.96) !important;
}
#hm11-ticker-dropdown button:hover,
#hm12-ticker-dropdown button:hover,
#hm13-ticker-dropdown button:hover,
#lp20-ticker-dropdown button:hover,
#hm11-ticker-dropdown [data-ticker]:hover,
#lp20-ticker-dropdown [data-ticker]:hover {
  background: rgba(75, 0, 130, 0.80) !important;
  color: rgba(255, 255, 255, 0.98) !important;
}

/* Heatmap 1.3: premium chart layout (price + volume) */
#heatmap-13-view .hm13-chart-stack {
  height: 140px;
  display: flex;
  flex-direction: column;
}
#heatmap-13-view .hm13-chart-price {
  height: 96px;
}
#heatmap-13-view .hm13-chart-vol {
  height: 28px;
}
#heatmap-13-view .hm13-range-btn {
  border-radius: 8px;
  border: 1px solid rgba(165, 216, 255, 0.18);
  background: rgba(17, 20, 24, 1) !important; /* #111418 */
  color: rgba(165, 216, 255, 0.95) !important; /* ice-blue */
  font-weight: 700;
  transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
#heatmap-13-view .hm13-range-btn:hover {
  border-color: rgba(57, 204, 204, 0.30);
  box-shadow: 0 0 0 2px rgba(57, 204, 204, 0.10);
  transform: translateY(-0.5px);
}
#heatmap-13-view .hm13-range-btn.hm13-range-active {
  background: linear-gradient(135deg, rgba(57, 204, 204, 0.98), rgba(57, 204, 204, 0.72)) !important; /* #39cccc */
  color: rgba(17, 20, 24, 0.98) !important; /* #111418 */
  font-weight: 900;
  border-color: rgba(57, 204, 204, 0.55);
  box-shadow:
    0 0 0 2px rgba(57, 204, 204, 0.14),
    0 0 18px rgba(139, 92, 246, 0.22);
}
#heatmap-13-view .hm13-range-btn.hm13-range-active:hover,
#heatmap-13-view .hm13-range-btn.hm13-range-active:active,
#heatmap-13-view .hm13-range-btn.hm13-range-active:focus-visible {
  box-shadow:
    0 0 0 2px rgba(57, 204, 204, 0.18),
    0 0 26px rgba(139, 92, 246, 0.35);
}

/* Heatmap 1.3: inspector (neater Greeks) */
.hm13-inspector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.hm13-inspector-kv {
  background: rgba(17, 20, 24, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 6px 8px;
}
.hm13-inspector-kv .k {
  font-size: 12px;
  color: rgba(165, 216, 255, 0.75);
}
.hm13-inspector-kv .v {
  font-size: 0.9rem; /* ~14.4px */
  line-height: 1.1;
}
.hm13-greek {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.hm13-greek-symbol {
  font-weight: 900;
  color: rgba(88, 166, 255, 0.95);
}
.hm13-inspector-divider {
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin: 6px 0;
}
.hm13-voi-line {
  margin: 6px 0 8px;
}
.hm13-voi-line__row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.25;
}
.hm13-voi-line__label {
  font-size: 12px;
  font-weight: 800;
  color: rgba(165, 216, 255, 0.85);
}
.hm13-voi-line__value {
  font-size: 0.90rem;
}
.hm13-voi-line__class {
  font-size: 12px;
  font-weight: 600;
}

/* Heatmap 1.3: Significance Score (0–10) */
.hm13-sig-line {
  margin-top: 8px;
}
.hm13-sig-line__row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.25;
}
.hm13-sig-line__label {
  font-size: 12px;
  font-weight: 800;
  color: rgba(165, 216, 255, 0.85);
}
.hm13-sig-line__value {
  font-size: 0.90rem;
}
.hm13-sig-line__class {
  font-size: 12px;
  font-weight: 600;
}
.significance-bar {
  height: 8px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  margin-top: 4px;
}
.significance-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 9999px;
}
.sig-low > span { background: rgba(57, 204, 204, 0.70); }            /* wave-teal */
.sig-medium > span { background: rgba(242, 201, 76, 0.78); }         /* yellow */
.sig-high > span { background: rgba(255, 159, 28, 0.82); }           /* orange */
.sig-critical > span {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.85), rgba(139, 92, 246, 0.80));
}

@media (max-width: 640px) {
  .hm13-sig-line__label { font-size: 11px; }
  .hm13-sig-line__class { font-size: 11px; }
  .significance-bar { height: 7px; }
}
.hm13-inspector-compact {
  max-height: 120px;
  overflow: auto;
}

/* Heatmap 1.2: match Heatmap 1.3 dropdown layering + theme */
#hm12-ticker-dropdown {
  z-index: 9999 !important;
  background: rgba(17, 20, 24, 0.80) !important; /* #111418cc */
  color: rgba(165, 216, 255, 0.95) !important; /* ice-blue */
  border: 1px solid rgba(88, 166, 255, 0.28) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#hm12-ticker-dropdown button {
  color: rgba(165, 216, 255, 0.95) !important;
}
#hm12-ticker-dropdown button:hover,
#hm12-ticker-dropdown button:focus {
  background: rgba(75, 0, 130, 0.78) !important;
  color: rgba(255, 255, 255, 0.98) !important;
}

/* Heatmap 1.3: Gamma/VEX toggle styling */
#heatmap-13-view .hm13-map-btn {
  border-radius: 8px;
  border: 1px solid rgba(165, 216, 255, 0.18);
  transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
#heatmap-13-view .hm13-map-btn.hm13-map-active {
  background: linear-gradient(135deg, rgba(57, 204, 204, 0.98), rgba(57, 204, 204, 0.72)) !important; /* #39cccc */
  color: rgba(17, 20, 24, 0.98) !important; /* #111418 */
  font-weight: 900;
  border-color: rgba(57, 204, 204, 0.55);
  box-shadow:
    0 0 0 2px rgba(57, 204, 204, 0.14),
    0 0 18px rgba(139, 92, 246, 0.22);
}
#heatmap-13-view .hm13-map-btn.hm13-map-inactive {
  background: rgba(17, 20, 24, 1) !important; /* #111418 */
  color: rgba(165, 216, 255, 0.95) !important; /* ice-blue */
  font-weight: 700;
  border-color: rgba(165, 216, 255, 0.18);
}
#heatmap-13-view .hm13-map-btn.hm13-map-inactive:hover {
  border-color: rgba(57, 204, 204, 0.30);
  box-shadow: 0 0 0 2px rgba(57, 204, 204, 0.10);
  transform: translateY(-0.5px);
}
#heatmap-13-view .hm13-map-btn.hm13-map-active:hover,
#heatmap-13-view .hm13-map-btn.hm13-map-active:active,
#heatmap-13-view .hm13-map-btn.hm13-map-active:focus-visible {
  box-shadow:
    0 0 0 2px rgba(57, 204, 204, 0.18),
    0 0 26px rgba(139, 92, 246, 0.35);
}
#heatmap-13-content .heatmap-grid-table thead th {
  background: rgba(17, 20, 24, 0.80) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
#heatmap-13-content .heatmap-grid-table th.sticky-date-header {
  top: var(--heatmap-sticky-top, 0px);
  z-index: 70;
}

/* Left frozen panes (Strike + Vol/OI + Flow Δ) */
#heatmap-13-content .heatmap-grid-table th.sticky-strike,
#heatmap-13-content .heatmap-grid-table td.sticky-strike {
  left: 0;
  background: rgba(13, 17, 23, 0.82) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 2px 0 10px rgba(0,0,0,0.35);
}
#heatmap-13-content .heatmap-grid-table th.sticky-strike { z-index: 90; }
#heatmap-13-content .heatmap-grid-table td.sticky-strike { z-index: 25; }

#heatmap-13-content .heatmap-grid-table th.sticky-voi,
#heatmap-13-content .heatmap-grid-table td.sticky-voi {
  position: sticky;
  left: var(--hm13-strike-col-w);
  background: rgba(13, 17, 23, 0.80) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 2px 0 10px rgba(0,0,0,0.28);
}
#heatmap-13-content .heatmap-grid-table td.sticky-voi {
  font-size: 0.78rem;
  line-height: 1.1;
}
#heatmap-13-content .heatmap-grid-table th.sticky-voi { z-index: 88; }
#heatmap-13-content .heatmap-grid-table td.sticky-voi { z-index: 24; }

#heatmap-13-content .heatmap-grid-table th.sticky-flow,
#heatmap-13-content .heatmap-grid-table td.sticky-flow {
  /* Strike is the only frozen column now; keep Flow Δ flush beside it */
  left: var(--hm13-strike-col-w) !important;
}
#heatmap-13-content .heatmap-grid-table th.sticky-flow { z-index: 86; }
#heatmap-13-content .heatmap-grid-table td.sticky-flow { z-index: 23; }

/* Inspector row (second sticky header row) sits UNDER the main frozen header row */
#heatmap-13-content .heatmap-grid-table thead tr.hm13-inspector-row th {
  position: sticky;
  top: calc(var(--heatmap-sticky-top, 0px) + var(--hm13-header-h, 40px));
  z-index: 60;
  background: rgba(13, 17, 23, 0.72) !important;
  border: 1px solid rgba(75, 0, 130, 0.60) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35), 0 0 0 3px rgba(75,0,130,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 160ms ease, transform 160ms ease;
  padding: 8px 10px !important;
}
#heatmap-13-content .heatmap-grid-table thead tr.hm13-inspector-row th.is-updating {
  opacity: 0.82;
  transform: translateY(-1px);
}
@media (max-width: 640px) {
  #heatmap-13-content .heatmap-grid-table thead tr.hm13-inspector-row th {
    padding: 10px !important;
    font-size: 11px;
  }
}

/* Heatmap 1.3 Vol/OI bars: Quiet/Building/Unusual/Sweep (red/purple sweep) */
.vol-oi-sweep {
  background-color: rgba(239, 68, 68, 0.16); /* red tint */
  border-color: rgba(239, 68, 68, 0.22);
}
.vol-oi-sweep > span {
  background: linear-gradient(90deg, rgba(239,68,68,0.75), rgba(139,92,246,0.75));
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
}

/* Heatmap 1.2: cards + Vol/OI bars */
.heatmap12-card {
  border-radius: 16px;
}

/* Heatmap 1.2: sticky Vol/OI column (between Strike and Flow Δ) */
#heatmap-12-view {
  --hm12-strike-col-w: 96px;
  --hm12-voi-col-w: 128px;
}
#heatmap-12-view .heatmap-grid-table th.sticky-voi,
#heatmap-12-view .heatmap-grid-table td.sticky-voi {
  position: sticky;
  left: var(--hm12-strike-col-w);
  background: rgba(13, 17, 23, 0.80) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 2px 0 10px rgba(0,0,0,0.28);
}
#heatmap-12-view .heatmap-grid-table th.sticky-voi {
  z-index: 59;
}
#heatmap-12-view .heatmap-grid-table td.sticky-voi {
  z-index: 26;
}
/* Shift Flow Δ to the right to account for Vol/OI column */
#heatmap-12-view .heatmap-grid-table th.sticky-flow,
#heatmap-12-view .heatmap-grid-table td.sticky-flow {
  left: calc(var(--hm12-strike-col-w) + var(--hm12-voi-col-w)) !important;
}

/* Heatmap 1.2: Cell Inspector panel */
.cell-inspector {
  position: sticky;
  top: 10px;
  align-self: start;
  max-height: calc(100vh - 170px);
  overflow: auto;
  border: 1px solid rgba(75, 0, 130, 0.55) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 0 3px rgba(75,0,130,0.10);
}
.cell-inspector--glow {
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 0 3px rgba(75,0,130,0.14), 0 0 14px rgba(139, 92, 246, 0.18);
}
@media (max-width: 768px) {
  .cell-inspector {
    position: static;
    max-height: none;
  }
}
.vol-oi-bar {
  height: 10px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  position: relative;
}
.vol-oi-bar--mini {
  height: 7px;
  border-radius: 9999px;
  margin-top: 2px;
  border-color: rgba(255,255,255,0.08);
}
.vol-oi-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 9999px;
}
.vol-oi-quiet > span { background: rgba(148, 163, 184, 0.55); }      /* slate */
.vol-oi-nebula > span { background: rgba(57, 204, 204, 0.75); }     /* teal */
.vol-oi-thrust > span { background: rgba(242, 201, 76, 0.75); }     /* yellow */
.vol-oi-warp > span { background: rgba(139, 92, 246, 0.75); }       /* purple */
.vol-oi-sweep > span {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.85), rgba(224, 108, 117, 0.80));
}

.vol-oi-bar__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
  pointer-events: none;
}

.vol-oi-column {
  min-width: 110px;
  text-align: center;
}

@media (max-width: 768px) {
  .vol-oi-column { min-width: 105px; }
  .vol-oi-bar { height: 8px; }
  .vol-oi-bar--mini { height: 6px; }
  .vol-oi-bar__label { font-size: 9px; }
}

/* Bullish + high Vol/OI pulse */
@media (prefers-reduced-motion: no-preference) {
  .bullish-voi-pulse {
    animation: bullishVoiPulse 1.3s ease-in-out infinite alternate;
  }
  @keyframes bullishVoiPulse {
    from { box-shadow: 0 0 10px rgba(57, 204, 204, 0.18), inset 0 0 0 1px rgba(57, 204, 204, 0.16); }
    to   { box-shadow: 0 0 14px rgba(139, 92, 246, 0.22), inset 0 0 0 1px rgba(242, 201, 76, 0.12); }
  }
}

/* Compact accordion styling (details/summary) */
.heatmap11-details {
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 12px;
  background: rgba(13, 17, 23, 0.25);
  overflow: hidden;
}
.heatmap11-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  cursor: pointer;
  user-select: none;
}
.heatmap11-summary::-webkit-details-marker { display: none; }
.heatmap11-details[open] .heatmap11-summary {
  background: rgba(88, 166, 255, 0.10);
}
.heatmap11-details-body {
  padding: 8px 10px 10px;
}

.heatmap11-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(57, 204, 204, 0.35);
  background: rgba(57, 204, 204, 0.10);
  color: #e6fffe;
}

/* Bullish glow on standout cells (Heatmap 1.1) */
.bullish-glow {
  box-shadow: 0 0 10px rgba(57, 204, 204, 0.30), inset 0 0 0 1px rgba(57, 204, 204, 0.22);
  transition: box-shadow 0.25s ease;
}
.bullish-glow:hover {
  box-shadow: 0 0 14px rgba(57, 204, 204, 0.42), inset 0 0 0 1px rgba(57, 204, 204, 0.28);
}

@media (prefers-reduced-motion: no-preference) {
  .bullish-glow {
    animation: bullishPulse 1.8s ease-in-out infinite alternate;
  }
  @keyframes bullishPulse {
    from { box-shadow: 0 0 8px rgba(57, 204, 204, 0.22), inset 0 0 0 1px rgba(57, 204, 204, 0.18); }
    to   { box-shadow: 0 0 12px rgba(57, 204, 204, 0.34), inset 0 0 0 1px rgba(57, 204, 204, 0.24); }
  }
}

.starry-bg {
  background: radial-gradient(circle at 20% 20%, rgba(75, 0, 130, 0.18), transparent 35%), radial-gradient(circle at 70% 30%, rgba(57, 204, 204, 0.2), transparent 45%), #0b1220;
}

/* Compact callouts (inspector replacement) */
.callout-card {
  max-width: 320px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(90, 168, 255, 0.35);
  background: rgba(17, 20, 24, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.callout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  color: #e0f2ff;
}
.callout-body {
  margin-top: 6px;
  font-size: 12px;
  color: #cbd5e1;
}
.callout-meta {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(90, 168, 255, 0.2);
  font-size: 11px;
  color: #94a3b8;
}
.callout-toggle {
  color: #8b5cf6;
  cursor: pointer;
  font-size: 11px;
}

/* HQ modal elements */
#hq-overlay .btn {
  border-radius: 999px;
}

/* Loading/error themed */
.compass-loader {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #58A6FF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Sticky subheader just below the top controls (NetGEX + strike filter row) */
.heatmap-table-subheader {
  position: sticky;
  top: 0;
  z-index: 34;
  background: #111418;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* Heatmap Color Wheel - 9 Color Gradient */
/* From most bearish (red) to most bullish (blue) */
/* Softer, eye-friendly palette with a dark neutral center */

/* Red - Most Bearish */
.cell-heatmap-red-bg {
  background-color: rgba(239, 68, 68, 0.30) !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  box-shadow: 0 0 1px rgba(239, 68, 68, 0.25);
  color: #F8FAFC !important;
}
.cell-heatmap-red-text {
  color: #FF0000 !important; /* Pure red */
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 4px rgba(255, 0, 0, 0.6);
}

/* Red Orange - Trending Bearish */
.cell-heatmap-red-orange-bg {
  background-color: rgba(249, 115, 22, 0.28) !important;
  border: 1px solid rgba(249, 115, 22, 0.42) !important;
  box-shadow: 0 0 1px rgba(249, 115, 22, 0.22);
  color: #F8FAFC !important;
}
.cell-heatmap-red-orange-text {
  color: #FF4500 !important; /* Bright red-orange */
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 4px rgba(255, 69, 0, 0.5);
}

/* Orange - Bearish */
.cell-heatmap-orange-bg {
  background-color: rgba(251, 146, 60, 0.26) !important;
  border: 1px solid rgba(251, 146, 60, 0.40) !important;
  box-shadow: 0 0 1px rgba(251, 146, 60, 0.20);
  color: #F8FAFC !important;
}
.cell-heatmap-orange-text {
  color: #FF8C00 !important; /* Bright orange */
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 4px rgba(255, 140, 0, 0.5);
}

/* Yellow Orange - Trending Bearish/Neutral */
.cell-heatmap-yellow-orange-bg {
  background-color: rgba(71, 85, 105, 0.35) !important; /* slate */
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  box-shadow: 0 0 1px rgba(148, 163, 184, 0.12);
  color: #F8FAFC !important;
}
.cell-heatmap-yellow-orange-text {
  color: #FFC800 !important; /* Bright yellow-orange */
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 4px rgba(255, 200, 0, 0.5);
}

/* Neutral (dark) */
.cell-heatmap-yellow-bg {
  background-color: rgba(31, 41, 55, 0.80) !important; /* slate/charcoal */
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow: none;
  color: #E5E7EB !important;
}
.cell-heatmap-yellow-text {
  color: #FFFF00 !important; /* Pure yellow */
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 1), 0 0 6px rgba(255, 255, 0, 0.4);
}

/* Yellow Green - Trending Bullish/Neutral */
.cell-heatmap-yellow-green-bg {
  background-color: rgba(16, 185, 129, 0.24) !important; /* emerald */
  border: 1px solid rgba(16, 185, 129, 0.38) !important;
  box-shadow: 0 0 1px rgba(16, 185, 129, 0.18);
  color: #F8FAFC !important;
}
.cell-heatmap-yellow-green-text {
  color: #ADFF2F !important; /* Bright yellow-green */
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 4px rgba(173, 255, 47, 0.5);
}

/* Green - Bullish */
.cell-heatmap-green-bg {
  background-color: rgba(34, 197, 94, 0.28) !important;
  border: 1px solid rgba(34, 197, 94, 0.42) !important;
  box-shadow: 0 0 1px rgba(34, 197, 94, 0.20);
  color: #F8FAFC !important;
}
.cell-heatmap-green-text {
  color: #00FF00 !important; /* Pure green */
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 4px rgba(0, 255, 0, 0.5);
}

/* Blue Green - Trending Bullish */
.cell-heatmap-blue-green-bg {
  background-color: rgba(20, 184, 166, 0.26) !important; /* teal */
  border: 1px solid rgba(20, 184, 166, 0.40) !important;
  box-shadow: 0 0 1px rgba(20, 184, 166, 0.20);
  color: #F8FAFC !important;
}
.cell-heatmap-blue-green-text {
  color: #00FFFF !important; /* Pure cyan */
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 4px rgba(0, 255, 255, 0.5);
}

/* Blue - Most Bullish */
.cell-heatmap-blue-bg {
  background-color: rgba(56, 189, 248, 0.24) !important; /* sky */
  border: 1px solid rgba(56, 189, 248, 0.38) !important;
  box-shadow: 0 0 1px rgba(56, 189, 248, 0.18);
  color: #F8FAFC !important;
}
.cell-heatmap-blue-text {
  color: #0064FF !important; /* Bright blue */
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 4px rgba(0, 100, 255, 0.5);
}

/* Scrollbar Styles */
.content-container::-webkit-scrollbar {
  width: 8px;
}

.content-container::-webkit-scrollbar-thumb {
  background-color: #58A6FF; /* Ice Blue */
  border-radius: 4px;
}

.content-container::-webkit-scrollbar-track {
  background-color: #111418; /* Charcoal */
}

/* Modal Styles */
.chart-modal-overlay {
  transition: opacity 0.3s ease-out;
  pointer-events: none;
  opacity: 0;
}

.chart-modal-overlay.active {
  pointer-events: auto;
  opacity: 1;
}

.chart-modal-content {
  transform: scale(0.9);
  transition: transform 0.3s ease-out;
}

.chart-modal-overlay.active .chart-modal-content {
  transform: scale(1);
}

/* Community modal (starry bg + nebula-purple accents + ice-blue buttons) */
.community-modal-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 10% 5%, rgba(168, 85, 247, 0.22), transparent 60%),
    radial-gradient(760px 520px at 90% 15%, rgba(88, 166, 255, 0.18), transparent 60%),
    radial-gradient(700px 520px at 40% 110%, rgba(168, 85, 247, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(13, 17, 23, 0.96), rgba(17, 20, 24, 0.98));
  border: 1px solid rgba(168, 85, 247, 0.28);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.7);
}

.community-modal-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  opacity: 0.65;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.50) 0, transparent 55%),
    radial-gradient(1px 1px at 90px 110px, rgba(255, 255, 255, 0.35) 0, transparent 55%),
    radial-gradient(1px 1px at 160px 70px, rgba(88, 166, 255, 0.28) 0, transparent 60%),
    radial-gradient(2px 2px at 210px 180px, rgba(255, 255, 255, 0.28) 0, transparent 60%),
    radial-gradient(1px 1px at 260px 40px, rgba(255, 255, 255, 0.30) 0, transparent 55%),
    radial-gradient(1px 1px at 320px 140px, rgba(168, 85, 247, 0.22) 0, transparent 60%);
  background-size: 380px 220px;
  mix-blend-mode: screen;
}

.community-modal-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(88, 166, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  flex: 0 0 auto;
}

.community-modal-close {
  border-radius: 12px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.community-modal-close:hover {
  background: rgba(88, 166, 255, 0.14);
  border-color: rgba(88, 166, 255, 0.35);
}

.community-modal-copy {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.community-link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px) {
  .community-link-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.community-x-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.65), rgba(88, 166, 255, 0.25));
  border: 1px solid rgba(88, 166, 255, 0.55);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
}
.community-x-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.78), rgba(168, 85, 247, 0.18));
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.community-x-btn:active {
  transform: translateY(0px) scale(0.99);
}

.community-x-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-weight: 900;
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.65), rgba(88, 166, 255, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Pricing cards */
.pricing-card {
  background: rgba(31, 36, 40, 0.72);
  border: 1px solid rgba(168, 85, 247, 0.35); /* nebula-purple */
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.pricing-card--featured {
  border-width: 2px;
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.62), 0 0 0 3px rgba(168, 85, 247, 0.12);
}
.pricing-title {
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
  letter-spacing: 0.02em;
  font-weight: 800;
}
.pricing-btn {
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.85), rgba(88, 166, 255, 0.35));
  border: 1px solid rgba(88, 166, 255, 0.55);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}
.pricing-btn:hover {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.95), rgba(168, 85, 247, 0.22));
  border-color: rgba(168, 85, 247, 0.45);
}

/* Ask Big Tuna (floating chat) */
.big-tuna-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99998;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: radial-gradient(circle at 30% 30%, rgba(88, 166, 255, 0.55), rgba(88, 166, 255, 0.18));
  border: 1px solid rgba(88, 166, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.big-tuna-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.62);
}
.big-tuna-fab:active {
  transform: translateY(0px) scale(0.98);
}
.big-tuna-fab svg {
  width: 28px;
  height: 28px;
  opacity: 0.95;
}
.big-tuna-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  background: rgba(242, 201, 76, 0.95);
  color: #0b1220;
  font-size: 11px;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}
.big-tuna-badge.show { display: inline-flex; }
.big-tuna-overlay {
  position: fixed;
  inset: 0;
  z-index: 99997;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.big-tuna-drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: min(420px, 92vw);
  z-index: 99999;
  background: rgba(17, 24, 39, 0.98);
  border-left: 1px solid rgba(88, 166, 255, 0.25);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
}

/* Big Tuna Groq onboarding panel */
.big-tuna-groq-panel {
  margin: 12px 12px 0;
  border-radius: 14px;
  border: 1px solid rgba(88, 166, 255, 0.25);
  background:
    radial-gradient(circle at 20% 20%, rgba(75, 0, 130, 0.20), transparent 45%),
    rgba(13, 17, 23, 0.55);
  padding: 12px;
}
.big-tuna-groq-title {
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
  font-weight: 900;
  color: rgba(214, 232, 255, 0.98);
  letter-spacing: 0.02em;
}
.big-tuna-groq-body {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(214, 232, 255, 0.88);
}
.big-tuna-groq-actions { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.big-tuna-groq-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 9999px;
  background: rgba(88, 166, 255, 0.28);
  border: 1px solid rgba(88, 166, 255, 0.42);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 12px;
  text-decoration: none;
}
.big-tuna-groq-cta:hover {
  background: rgba(88, 166, 255, 0.36);
  box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}
.big-tuna-groq-subtitle {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(214, 232, 255, 0.78);
}
.big-tuna-groq-inputrow {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
.big-tuna-groq-inputrow input {
  flex: 1;
  background: rgba(31, 41, 55, 0.65);
  border: 1px solid rgba(88, 166, 255, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  color: rgba(255,255,255,0.95);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.big-tuna-groq-inputrow input:focus { outline: none; border-color: rgba(88, 166, 255, 0.55); box-shadow: 0 0 0 3px rgba(88,166,255,0.12); }
.big-tuna-groq-save {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(75, 0, 130, 0.22);
  border: 1px solid rgba(75, 0, 130, 0.45);
  color: rgba(255,255,255,0.95);
  font-weight: 900;
  font-size: 12px;
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
}
.big-tuna-groq-save:hover { background: rgba(75, 0, 130, 0.30); }
.big-tuna-groq-status {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(214, 232, 255, 0.78);
}
.big-tuna-drawer-header {
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.big-tuna-drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.big-tuna-drawer-title .title {
  font-weight: 800;
  color: #FFFFFF;
  font-size: 14px;
  letter-spacing: 0.2px;
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
}
.big-tuna-drawer-title .subtitle {
  color: rgba(200, 220, 255, 0.7);
  font-size: 11px;
}
.big-tuna-groq-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(214, 232, 255, 0.85);
}
.big-tuna-groq-badge.connected {
  border-color: rgba(88, 166, 255, 0.35);
  background: rgba(88, 166, 255, 0.14);
  color: rgba(214, 232, 255, 0.95);
}
.big-tuna-groq-badge.disconnected {
  border-color: rgba(75, 0, 130, 0.35);
  background: rgba(75, 0, 130, 0.12);
  color: rgba(214, 232, 255, 0.88);
}
.big-tuna-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.big-tuna-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(214, 232, 255, 0.85);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 6px 10px;
  border-radius: 10px;
  user-select: none;
}
.big-tuna-toggle input {
  width: 14px;
  height: 14px;
  accent-color: #58A6FF;
}
.big-tuna-close {
  color: rgba(200, 220, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 6px 10px;
  border-radius: 10px;
}
.big-tuna-close:hover {
  background: rgba(255, 255, 255, 0.10);
}
.big-tuna-messages {
  padding: 12px 14px;
  overflow: auto;
  flex: 1;
}
.big-tuna-msg {
  margin: 10px 0;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.big-tuna-msg.user {
  justify-content: flex-end;
}
.big-tuna-avatar {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  border: 1px solid rgba(88, 166, 255, 0.35);
  background: rgba(13, 17, 23, 0.8);
  flex: 0 0 auto;
}
.big-tuna-avatar.bot {
  width: 28px;
  height: 28px;
  border-color: rgba(75,0,130,0.45);
}
.big-tuna-msg.user .big-tuna-avatar { display: none; }
.big-tuna-bubble {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(31, 41, 55, 0.78);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
}
.big-tuna-msg.user .big-tuna-bubble {
  background: rgba(88, 166, 255, 0.18);
  border-color: rgba(88, 166, 255, 0.35);
}
.big-tuna-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(214, 232, 255, 0.85);
  font-size: 12px;
}
.big-tuna-dots {
  display: inline-flex;
  gap: 4px;
}
.big-tuna-dots span {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(88, 166, 255, 0.75);
  animation: bigTunaDot 1.1s infinite ease-in-out;
}
.big-tuna-dots span:nth-child(2) { animation-delay: 0.12s; }
.big-tuna-dots span:nth-child(3) { animation-delay: 0.24s; }
@keyframes bigTunaDot {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-3px); opacity: 1; }
}
.big-tuna-inputbar {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
}
.big-tuna-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(214, 232, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.big-tuna-icon-btn:hover { background: rgba(255,255,255,0.10); }
.big-tuna-icon-btn.listening {
  border-color: rgba(242, 201, 76, 0.55);
  box-shadow: 0 0 0 4px rgba(242, 201, 76, 0.10);
}
.big-tuna-inputbar input {
  flex: 1;
  background: rgba(31, 41, 55, 0.75);
  border: 1px solid rgba(88, 166, 255, 0.25);
  border-radius: 10px;
  padding: 10px 10px;
  color: #FFFFFF;
  font-size: 12px;
}
.big-tuna-inputbar input::placeholder {
  color: rgba(200, 220, 255, 0.55);
}
.big-tuna-send {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(88, 166, 255, 0.22);
  border: 1px solid rgba(88, 166, 255, 0.35);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12px;
}
.big-tuna-send:hover {
  background: rgba(88, 166, 255, 0.30);
}
.big-tuna-hint {
  padding: 0 14px 12px;
  font-size: 11px;
  color: rgba(200, 220, 255, 0.65);
}

/* Text truncation utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ticker Search Dropdown */
#ticker-dropdown {
  scrollbar-width: thin;
  scrollbar-color: #58A6FF #111418;
}

#ticker-dropdown::-webkit-scrollbar {
  width: 6px;
}

#ticker-dropdown::-webkit-scrollbar-thumb {
  background-color: #58A6FF; /* Ice Blue */
  border-radius: 3px;
}

#ticker-dropdown::-webkit-scrollbar-track {
  background-color: #111418; /* Charcoal */
}

/* Notification Styles */
.notification {
  background: linear-gradient(135deg, #1F2428 0%, #111418 100%); /* Surface to Charcoal gradient */
  border: 1px solid #58A6FF; /* Ice Blue border */
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: slideInRight 0.3s ease-out;
  min-width: 300px;
  max-width: 400px;
  color: #58A6FF; /* Ice Blue text */
}

.notification.green {
  border-left: 4px solid #F2C94C; /* Rose Gold accent */
}

.notification.red {
  border-left: 4px solid #E06C75; /* Muted Rose accent */
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.notification.exit {
  animation: slideOutRight 0.3s ease-out forwards;
}

/* Ticker Scroller Styles */
#ticker-scroller {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

#ticker-scroller::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.scrollbar-hide {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.ticker-item {
  min-width: fit-content;
}

/* Chart Range Button Active State */
.chart-range-btn.active {
  background-color: #58A6FF !important;
  color: #FFFFFF !important;
  border-color: #58A6FF !important;
}

/* Heatmap Tooltip Styles - Ensure tooltips appear above all content */
.relative.group {
  position: relative;
}

.group:hover > [style*="z-index: 9999"] {
  z-index: 9999 !important;
  position: absolute;
}

/* Help Tooltip - Must appear above everything including ticker header */
#heatmap-help-tooltip {
  z-index: 99999 !important;
  position: fixed !important;
}

/* Heatmap cell tooltips - ensure they appear above all content */
td.group > div[style*="z-index: 999999"] {
  z-index: 999999 !important;
  position: absolute !important;
}

/* Force opaque hovers - fix translucent tooltip issue */
.group:hover > div[style*="z-index: 999999"],
.group:hover > div[style*="z-index: 9999"] {
  opacity: 1 !important;
  background-color: rgba(17, 24, 39, 0.98) !important; /* Charcoal semi-opaque for visibility */
  transition: opacity 0.2s ease-in-out !important;
}

/* If greyed-out affects hovers */
.greyed-out:hover .tooltip,
.greyed-out:hover > div[style*="z-index: 999999"],
.greyed-out:hover > div[style*="z-index: 9999"] {
  opacity: 1 !important;
  background-color: rgba(17, 24, 39, 0.98) !important;
}

/* General tooltip boost - force full opacity on all tooltips when visible */
div[style*="z-index: 999999"]:not(.opacity-0),
div[style*="z-index: 9999"]:not(.opacity-0) {
  opacity: 1 !important;
}

/* Ensure group-hover tooltips are fully opaque */
.group:hover > div.group-hover\:opacity-100 {
  opacity: 1 !important;
  background-color: rgba(17, 24, 39, 0.98) !important;
}

/* Ensure containers allow tooltip overflow */
#heatmap-content {
  overflow-x: auto;
  overflow-y: visible;
  position: relative;
}

/* Filter and Screener Styles */
.greyed-out {
  opacity: 0.3 !important;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, filter 0.3s ease;
  pointer-events: none;
}

.highlight-gamma {
  border: 2px solid #F2C94C !important;
  box-shadow: 0 0 8px #F2C94C, inset 0 0 4px rgba(242, 201, 76, 0.3) !important;
  animation: pulse-gamma 2s infinite;
}

@keyframes pulse-gamma {
  0%, 100% {
    box-shadow: 0 0 8px #F2C94C, inset 0 0 4px rgba(242, 201, 76, 0.3);
  }
  50% {
    box-shadow: 0 0 12px #F2C94C, inset 0 0 6px rgba(242, 201, 76, 0.5);
  }
}

.screener-highlight {
  background-color: rgba(34, 197, 94, 0.3) !important;
  border-color: #22C55E !important;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5) !important;
}

#options-screener {
  transition: height 0.3s ease, opacity 0.3s ease;
}

button.active-filter {
  background-color: #58A6FF !important;
  color: #FFFFFF !important;
  font-weight: 600;
}

#heatmap-filters-bar {
  transition: opacity 0.3s ease;
}

.advanced-greek {
  /* Beginner Mode Styles */
  .beginner-only {
    display: none; /* Hidden by default */
  }
  
  .beginner-mode-enabled .beginner-only {
    display: block; /* Show when beginner mode is enabled */
  }
  
  .beginner-mode-enabled .beginner-only.inline {
    display: inline;
  }
  
  .beginner-mode-enabled .beginner-only.flex {
    display: flex;
  }
  
  /* Hidden in beginner mode - display is controlled by .beginner-mode class */
  display: block;
}

.beginner-mode .advanced-greek {
  display: none !important;
}

/* Dynamic Heatmap Tooltip - Always on top, opaque */
#heatmap-tooltip {
  pointer-events: none; /* Doesn't block mouse */
  transition: opacity 0.2s ease-in-out;
}

#heatmap-tooltip.visible {
  opacity: 1 !important;
}

/* Solid background, readable text - no translucency */
#heatmap-tooltip .bg-surface-800 {
  background-color: rgba(31, 36, 40, 0.98) !important; /* Near-black, fully opaque */
  backdrop-filter: none !important;
}

/* Prevent any inherited opacity */
#heatmap-tooltip.visible * {
  opacity: 1 !important;
}

/* Arrow pointer */
#heatmap-tooltip .border-t-surface-800 {
  border-top-color: rgba(31, 36, 40, 0.98) !important;
}

/* Shepherd.js Custom Theme */
.shepherd-element {
  background-color: #1F2428 !important;
  border: 2px solid #58A6FF !important;
  border-radius: 8px !important;
}

.shepherd-title {
  color: #FFFFFF !important;
}

.shepherd-text {
  color: #58A6FF !important;
}

.shepherd-button {
  background-color: #58A6FF !important;
  color: #FFFFFF !important;
  border-radius: 4px !important;
}

.shepherd-button:hover {
  background-color: #4A9EFF !important;
}

/* Mobile-friendly inputs */
@media (max-width: 768px) {
  #screener-min-oi,
  #screener-min-vol,
  #screener-iv-rank,
  #screener-delta-min,
  #screener-delta-max {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px;
  }
  
  #heatmap-filters-bar button {
    padding: 8px 12px;
    font-size: 11px;
  }
}

/* === Unified button system for a more polished look === */
:root {
  --btn-radius: 10px;
  --btn-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.btn {
  font-family: var(--btn-font);
  font-weight: 600;
  border-radius: var(--btn-radius);
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  transition: all 160ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  line-height: 1.1;
  text-decoration: none;
  min-height: 40px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn:focus-visible {
  outline: 2px solid #58A6FF;
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #58A6FF, #3b82f6);
  color: #0b0e10;
  border-color: rgba(255,255,255,0.08);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.03); transform: translateY(-1px); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-secondary {
  background: rgba(255,255,255,0.03);
  color: #e5e7eb;
  border-color: rgba(255,255,255,0.12);
}
.btn-secondary:hover:not(:disabled) { background: rgba(255,255,255,0.05); transform: translateY(-1px); }
.btn-secondary:active:not(:disabled) { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: #9ca3af;
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) { color: #e5e7eb; background: rgba(255,255,255,0.04); }

.btn-tonal {
  background: rgba(88,166,255,0.12);
  color: #e5f2ff;
  border-color: rgba(88,166,255,0.35);
}
.btn-tonal:hover:not(:disabled) { background: rgba(88,166,255,0.18); transform: translateY(-1px); }

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border-color: rgba(255,255,255,0.08);
}
.btn-danger:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }

.btn-sm { padding: 0.5rem 0.75rem; min-height: 36px; font-size: 0.9rem; }
.btn-lg { padding: 0.85rem 1.25rem; min-height: 46px; font-size: 1rem; }
.btn-full { width: 100%; }

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0.5rem;
  border-radius: 50%;
  justify-content: center;
}

.btn i, .btn svg {
  width: 18px;
  height: 18px;
}

.btn-pill { border-radius: 999px; }

.btn-group {
  display: inline-flex;
  gap: 0.35rem;
}