/* RadarBandarIDX - Obsidian Black & Electric Sky Blue Glassmorphism UI (v97.0) */

:root {
  --bg-primary: #060911;
  --bg-card: rgba(12, 20, 36, 0.72);
  --bg-card-hover: rgba(17, 29, 53, 0.80);
  --border-subtle: rgba(56, 189, 248, 0.16);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --sky: #38bdf8;
  --emerald: #10b981;
  --amber: #f59e0b;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --crimson: #ef4444;
}

html.light {
  --bg-primary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --border-subtle: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(6, 9, 17, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.45);
}

/* Primary Glassmorphism Panel (Obsidian Black + Midnight Sky Blue Glass) */
.glass-panel {
  background: rgba(12, 20, 36, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(56, 189, 248, 0.16);
  box-shadow: 0 10px 36px -4px rgba(0, 0, 0, 0.65), inset 0 1px 0 0 rgba(56, 189, 248, 0.08);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-subcard {
  background: rgba(17, 29, 53, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.12);
  box-shadow: inset 0 1px 0 0 rgba(56, 189, 248, 0.05);
}

/* KPI Cards with Translucent Gradient & Ambient Sky Blue Hover Glow */
.kpi-card {
  background: linear-gradient(135deg, rgba(17, 29, 53, 0.68) 0%, rgba(12, 20, 36, 0.55) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.16);
  box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.45), inset 0 1px 0 0 rgba(56, 189, 248, 0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.12);
}
.kpi-card.active-filter {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5), 0 8px 28px -4px rgba(56, 189, 248, 0.22);
}

/* Screener Table Rows: Transparent with Silky Sky Blue Hover & Selection */
.stock-row {
  background: transparent;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}
.stock-row:hover {
  background-color: rgba(56, 189, 248, 0.06);
}
.stock-row.selected-row {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.16) 0%, rgba(56, 189, 248, 0.03) 100%);
  border-left: 3px solid #38bdf8;
}

/* Trigger Badges (Refined Glass & Subtle Glow) */
.badge-markup {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.15);
  transition: all 0.2s ease;
}
.badge-markup:hover {
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.3);
}
.badge-big-accum {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.15);
  transition: all 0.2s ease;
}
.badge-big-accum:hover {
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.3);
}
.badge-silent-accum {
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.12);
  transition: all 0.2s ease;
}
.badge-silent-accum:hover {
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.28);
}
.badge-foreign {
  background: rgba(139, 92, 246, 0.14);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.12);
  transition: all 0.2s ease;
}
.badge-foreign:hover {
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.28);
}
.badge-dist {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.14);
  transition: all 0.2s ease;
}
.badge-neutral {
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropzone-active {
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.08) !important;
}

/* Signal Tracker Glass Tabs (Obsidian Black + Sky Blue) */
.tracker-tab {
  padding: 7px 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(12, 20, 36, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.14);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
}
.tracker-tab:hover {
  color: #ffffff;
  background: rgba(17, 29, 53, 0.9);
  border-color: rgba(56, 189, 248, 0.3);
}
.tracker-tab.active {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.18);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(125, 211, 252, 0.25);
}
.tracker-tab .tab-count {
  display: none;
}
.tracker-tab.active .tab-count {
  display: none;
}

/* ========================================================= */
/* BULLETPROOF LIGHT THEME ENGINE (Comprehensive Overrides)  */
/* ========================================================= */
html.light {
  color-scheme: light;
}

html.light body {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

html.light .ambient-bg-orbs {
  opacity: 0.25 !important;
}

/* 1. Semuanya yang bernuansa gelap (slate-950, slate-900) berganti putih bersih */
html.light .glass-panel,
html.light .modal-box,
html.light [class*="bg-slate-950"],
html.light [class*="bg-slate-900"] {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 12px -2px rgba(15, 23, 42, 0.06) !important;
}

html.light .glass-subcard {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.04) !important;
  color: #1e293b !important;
}

html.light [class*="bg-slate-800"] {
  background-color: #f8fafc !important;
}

html.light header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06) !important;
}

/* 2. Semua garis border gelap berganti border halus abu-abu terang */
html.light [class*="border-slate-800"],
html.light [class*="border-slate-700"],
html.light [class*="border-white"],
html.light .divide-slate-800 > :not([hidden]) ~ :not([hidden]),
html.light .divide-slate-800\/70 > :not([hidden]) ~ :not([hidden]),
html.light .divide-white\/5 > :not([hidden]) ~ :not([hidden]) {
  border-color: #e2e8f0 !important;
}

/* 3. Teks putih & abu-abu gelap berganti teks tajam kontras tinggi */
html.light .text-white,
html.light [class*="text-slate-100"],
html.light [class*="text-slate-200"],
html.light [class*="text-slate-300"] {
  color: #0f172a !important;
}

html.light [class*="text-slate-400"] {
  color: #475569 !important;
}

html.light [class*="text-slate-500"] {
  color: #64748b !important;
}

html.light [class*="text-slate-600"] {
  color: #94a3b8 !important;
}

/* 4. Tabel Header & Baris */
html.light thead tr,
html.light th {
  background-color: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html.light tbody tr:hover,
html.light .stock-row:hover {
  background-color: #f1f5f9 !important;
}

html.light .stock-row.selected-row {
  background: #ecfdf5 !important;
  border-left: 3px solid #10b981 !important;
}

/* 5. Input, Select, Search Box */
html.light select,
html.light input[type="text"],
html.light input[type="search"] {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html.light select:focus,
html.light input:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

/* 6. Card & KPI Hover */
html.light .kpi-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

html.light .kpi-card:hover {
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.1) !important;
  border-color: #93c5fd !important;
}

html.light .kpi-card.active-filter {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 1px #10b981, 0 8px 20px -4px rgba(16, 185, 129, 0.15) !important;
}

/* 7. Tracker Tabs */
html.light .tracker-tab {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
}

html.light .tracker-tab:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

html.light .tracker-tab.active {
  background: #059669 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

/* 8. Tombol Navbar */
html.light #btnResetSample,
html.light #btnOpenGuideModal,
html.light #btnThemeToggle,
html.light a[href*="template?mode=blank"] {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

html.light #btnResetSample:hover,
html.light #btnOpenGuideModal:hover,
html.light #btnThemeToggle:hover,
html.light a[href*="template?mode=blank"]:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

/* 9. Badge Kontras Terang */
html.light .badge-markup {
  background: #ffedd5 !important;
  color: #c2410c !important;
  border-color: #fdba74 !important;
}
html.light .badge-big-accum {
  background: #d1fae5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}
html.light .badge-silent-accum {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}
html.light .badge-foreign {
  background: #ede9fe !important;
  color: #6d28d9 !important;
  border-color: #ddd6fe !important;
}
html.light .badge-dist {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border-color: #fecaca !important;
}
html.light .badge-neutral {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}

/* 10. LIGHT MODE: UBAH SEMUA TEKS & AKSEN KUNING MENJADI ORANYE BERKONTRAS TINGGI */
html.light .text-amber-300,
html.light .text-amber-400,
html.light .text-amber-500,
html.light .text-yellow-300,
html.light .text-yellow-400,
html.light .text-yellow-500,
html.light [class*="text-amber-"],
html.light [class*="text-yellow-"] {
  color: #ea580c !important; /* Orange 600 - tajam, sangat kontras & terbaca jelas di background putih */
}

html.light [class*="bg-amber-500"],
html.light [class*="bg-yellow-500"] {
  background-color: rgba(234, 88, 12, 0.14) !important;
}

html.light [class*="border-amber-"],
html.light [class*="border-yellow-"] {
  border-color: rgba(234, 88, 12, 0.35) !important;
}

html.light .star-btn.text-amber-400,
html.light .star-btn.text-amber-300 {
  color: #ea580c !important;
  filter: drop-shadow(0 0 6px rgba(234, 88, 12, 0.45)) !important;
}

/* 11. WCAG Kontras Tinggi untuk Light Mode: Teks Emerald, Rose, Blue, Sky */
html.light .text-emerald-300,
html.light .text-emerald-400 {
  color: #047857 !important;
}
html.light .text-rose-300,
html.light .text-rose-400 {
  color: #b91c1c !important;
}
html.light .text-blue-300,
html.light .text-blue-400 {
  color: #1d4ed8 !important;
}
html.light .text-sky-300,
html.light .text-sky-400 {
  color: #0369a1 !important;
}

html.light #mobileBottomNav {
  background: rgba(255, 255, 255, 0.95) !important;
  border-top: 1px solid #e2e8f0 !important;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08) !important;
}

html.light .mobile-nav-btn.text-slate-400 {
  color: #64748b !important;
}


/* =====================================================================
   RESPONSIVE MOBILE ENHANCEMENTS (Fix overlapping & squished tables)
   ===================================================================== */
@media (max-width: 640px) {
  body {
    font-size: 13px;
  }

  table {
    min-width: 680px;
  }

  .tracker-tab {
    padding: 5px 12px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  .kpi-card {
    padding: 0.85rem !important;
  }

  #tsWinRate {
    font-size: 11px;
  }

  header {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
  }
}

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

/* Skeleton Loading Placeholder */
@keyframes shimmer {
  0% { opacity: 0.35; }
  50% { opacity: 0.85; }
  100% { opacity: 0.35; }
}
.skeleton,
.skeleton-shimmer {
  animation: shimmer 1.6s infinite ease-in-out;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

/* Tooltip / Kamus Istilah ⓘ Button */
.tip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  cursor: pointer;
  margin-left: 4px;
  vertical-align: middle;
  transition: all 0.18s ease;
}
.tip-btn:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: rgba(56, 189, 248, 0.6);
  transform: scale(1.12);
}

/* Risk Disclaimer Banner (Statis di bawah konten, tidak menutupi menu navigasi) */
.fixed-risk-banner {
  position: static !important;
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  border-radius: 1rem !important;
  background: rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
  padding: 12px 18px !important;
  text-align: center !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
html.light .fixed-risk-banner {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04) !important;
}

/* =====================================================================
   LIQUID GLASS PILL BUTTON WITH GLOWING NEON ICON BADGE
   ===================================================================== */
.liquid-glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: rgba(12, 20, 36, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: inset 0 1px 1px rgba(125, 211, 252, 0.2), inset 0 -2px 6px rgba(0, 0, 0, 0.65);
  padding: 0.35rem 0.85rem 0.35rem 0.42rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  position: relative;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  text-decoration: none;
  outline: none;
  line-height: 1.2;
}

html.light .liquid-glass-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.06) !important;
}

html.light .liquid-glass-btn:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px 0 rgba(15, 23, 42, 0.08) !important;
}

html.light .liquid-glass-btn.neon-emerald.active {
  background: #ecfdf5 !important;
  border-color: #6ee7b7 !important;
  color: #047857 !important;
  box-shadow: 0 1px 3px 0 rgba(16, 185, 129, 0.15) !important;
}

html.light .liquid-glass-btn.neon-cyan.active {
  background: #ecfeff !important;
  border-color: #67e8f9 !important;
  color: #0e7490 !important;
  box-shadow: 0 1px 3px 0 rgba(6, 182, 212, 0.15) !important;
}

html.light .liquid-glass-btn.neon-amber.active {
  background: #fffbeb !important;
  border-color: #fcd34d !important;
  color: #b45309 !important;
  box-shadow: 0 1px 3px 0 rgba(245, 158, 11, 0.15) !important;
}

html.light .liquid-glass-btn.neon-blue,
html.light .liquid-glass-btn.neon-blue.active {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #1d4ed8 !important;
  box-shadow: 0 1px 3px 0 rgba(37, 99, 235, 0.15) !important;
}

html.light .liquid-glass-btn.neon-purple.active {
  background: #faf5ff !important;
  border-color: #d8b4fe !important;
  color: #7e22ce !important;
  box-shadow: 0 1px 3px 0 rgba(168, 85, 247, 0.15) !important;
}

html.light .liquid-glass-btn.neon-rose.active {
  background: #ffe4e6 !important;
  border-color: #fecdd3 !important;
  color: #be123c !important;
  box-shadow: 0 1px 3px 0 rgba(244, 63, 94, 0.15) !important;
}

html.light .liquid-glass-btn .neon-icon-badge {
  box-shadow: none !important;
}

.liquid-glass-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Lingkaran Ikon Neon Menyala (Glowing Circular Icon Badge) */
.neon-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.neon-icon-badge svg {
  width: 0.85rem;
  height: 0.85rem;
  stroke: #090d16;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 1. Electric Sky Blue (Hari Ini - Primary Brand Accent in Dark Mode) */
.liquid-glass-btn.neon-emerald .neon-icon-badge {
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.85), 0 0 20px rgba(56, 189, 248, 0.4);
}
html.light .liquid-glass-btn.neon-emerald .neon-icon-badge {
  background: #10b981;
}
.liquid-glass-btn.neon-emerald:hover {
  box-shadow: inset 0 1px 1px rgba(125, 211, 252, 0.3), inset 0 -2px 6px rgba(0, 0, 0, 0.65), 0 6px 16px -2px rgba(56, 189, 248, 0.45);
}
.liquid-glass-btn.neon-emerald.active {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.6);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.28) 0%, rgba(2, 132, 199, 0.14) 100%);
  box-shadow: inset 0 1px 2px rgba(125, 211, 252, 0.35), inset 0 -2px 6px rgba(0, 0, 0, 0.65), 0 8px 24px -2px rgba(56, 189, 248, 0.5);
}

/* 2. Cyan (Jelajah) */
.liquid-glass-btn.neon-cyan .neon-icon-badge {
  background: #06b6d4;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.85), 0 0 20px rgba(6, 182, 212, 0.4);
}
.liquid-glass-btn.neon-cyan:hover {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), inset 0 -2px 6px rgba(0, 0, 0, 0.6), 0 6px 16px -2px rgba(6, 182, 212, 0.45);
}
.liquid-glass-btn.neon-cyan.active {
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.55);
  background: rgba(6, 182, 212, 0.12);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), inset 0 -2px 6px rgba(0, 0, 0, 0.6), 0 8px 24px -2px rgba(6, 182, 212, 0.65);
}

/* 3. Amber (Pantauan) */
.liquid-glass-btn.neon-amber .neon-icon-badge {
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.85), 0 0 20px rgba(245, 158, 11, 0.4);
}
.liquid-glass-btn.neon-amber:hover {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), inset 0 -2px 6px rgba(0, 0, 0, 0.6), 0 6px 16px -2px rgba(245, 158, 11, 0.45);
}
.liquid-glass-btn.neon-amber.active {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), inset 0 -2px 6px rgba(0, 0, 0, 0.6), 0 8px 24px -2px rgba(245, 158, 11, 0.65);
}

/* 4. Purple (Alat / Sync) */
.liquid-glass-btn.neon-purple .neon-icon-badge {
  background: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.85), 0 0 20px rgba(168, 85, 247, 0.4);
}
.liquid-glass-btn.neon-purple:hover {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), inset 0 -2px 6px rgba(0, 0, 0, 0.6), 0 6px 16px -2px rgba(168, 85, 247, 0.45);
}
.liquid-glass-btn.neon-purple.active {
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(168, 85, 247, 0.12);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), inset 0 -2px 6px rgba(0, 0, 0, 0.6), 0 8px 24px -2px rgba(168, 85, 247, 0.65);
}

/* 5. Blue (Action / Watchlist) */
.liquid-glass-btn.neon-blue .neon-icon-badge {
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.85), 0 0 20px rgba(56, 189, 248, 0.4);
}
.liquid-glass-btn.neon-blue:hover {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), inset 0 -2px 6px rgba(0, 0, 0, 0.6), 0 6px 16px -2px rgba(56, 189, 248, 0.45);
}
.liquid-glass-btn.neon-blue.active {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), inset 0 -2px 6px rgba(0, 0, 0, 0.6), 0 8px 24px -2px rgba(56, 189, 248, 0.65);
}

/* 6. Rose (Loss) */
.liquid-glass-btn.neon-rose .neon-icon-badge {
  background: #f43f5e;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.85), 0 0 20px rgba(244, 63, 94, 0.4);
}
.liquid-glass-btn.neon-rose:hover {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), inset 0 -2px 6px rgba(0, 0, 0, 0.6), 0 6px 16px -2px rgba(244, 63, 94, 0.45);
}
.liquid-glass-btn.neon-rose.active {
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.55);
  background: rgba(244, 63, 94, 0.12);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), inset 0 -2px 6px rgba(0, 0, 0, 0.6), 0 8px 24px -2px rgba(244, 63, 94, 0.65);
}

/* =====================================================================
   STANDARD FLAT RECTANGULAR MOBILE BOTTOM NAVIGATION (NATIVE APP STYLE)
   ===================================================================== */
#mobileBottomNav {
  background: rgba(6, 9, 17, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(56, 189, 248, 0.18) !important;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.65) !important;
  padding: 0 !important;
}

html.light #mobileBottomNav {
  background: rgba(255, 255, 255, 0.97) !important;
  border-top: 1px solid #e2e8f0 !important;
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.08) !important;
}

.mobile-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important; /* Kotak datar tanpa rounded pill */
  padding: 4px 0 !important;
  cursor: pointer !important;
  color: #94a3b8 !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  position: relative !important;
}

.mobile-nav-item:active {
  transform: scale(0.94) !important;
}

.mobile-nav-item .mobile-nav-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 9999px !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #94a3b8 !important;
}

html.light .mobile-nav-item .mobile-nav-icon {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #64748b !important;
}

.mobile-nav-item .mobile-nav-text {
  font-size: 10px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  transition: all 0.2s ease !important;
}

html.light .mobile-nav-item .mobile-nav-text {
  color: #64748b !important;
}

/* Tab Aktif di Mobile: Ikon Neon Menyala & Teks Berwarna Terang */
.mobile-nav-item.active .mobile-nav-icon.neon-emerald {
  background: #38bdf8 !important;
  color: #060911 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.85), 0 0 24px rgba(56, 189, 248, 0.4) !important;
}
.mobile-nav-item.active .mobile-nav-icon.neon-emerald svg {
  stroke: #060911 !important;
}
.mobile-nav-item.active .mobile-nav-icon.neon-emerald + .mobile-nav-text {
  color: #7dd3fc !important;
  font-weight: 700 !important;
}
html.light .mobile-nav-item.active .mobile-nav-icon.neon-emerald {
  background: #10b981 !important;
  color: #090d16 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45) !important;
}
html.light .mobile-nav-item.active .mobile-nav-icon.neon-emerald + .mobile-nav-text {
  color: #047857 !important;
}

.mobile-nav-item.active .mobile-nav-icon.neon-cyan {
  background: #06b6d4 !important;
  color: #090d16 !important;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.85), 0 0 24px rgba(6, 182, 212, 0.4) !important;
}
.mobile-nav-item.active .mobile-nav-icon.neon-cyan svg {
  stroke: #090d16 !important;
}
.mobile-nav-item.active .mobile-nav-icon.neon-cyan + .mobile-nav-text {
  color: #22d3ee !important;
  font-weight: 700 !important;
}

.mobile-nav-item.active .mobile-nav-icon.neon-amber {
  background: #f59e0b !important;
  color: #090d16 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.85), 0 0 24px rgba(245, 158, 11, 0.4) !important;
}
.mobile-nav-item.active .mobile-nav-icon.neon-amber svg {
  stroke: #090d16 !important;
}
.mobile-nav-item.active .mobile-nav-icon.neon-amber + .mobile-nav-text {
  color: #fbbf24 !important;
  font-weight: 700 !important;
}

.mobile-nav-item.active .mobile-nav-icon.neon-purple {
  background: #a855f7 !important;
  color: #090d16 !important;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.85), 0 0 24px rgba(168, 85, 247, 0.4) !important;
}
.mobile-nav-item.active .mobile-nav-icon.neon-purple svg {
  stroke: #090d16 !important;
}
.mobile-nav-item.active .mobile-nav-icon.neon-purple + .mobile-nav-text {
  color: #c084fc !important;
  font-weight: 700 !important;
}

/* =====================================================================
   THEME PRESETS: OBSIDIAN GOLD, MIDNIGHT BLUE, CLEAN SLATE, CLEAN PAPER
   ===================================================================== */

/* 1. Theme: Obsidian Gold */
html.theme-gold:not(.light) {
  --bg-primary: #07070a;
  --bg-card: rgba(18, 18, 25, 0.6);
  --bg-card-hover: rgba(28, 28, 38, 0.7);
  --border-subtle: rgba(234, 179, 8, 0.14);
}
html.theme-gold:not(.light) body {
  background-color: #07070a;
}
html.theme-gold:not(.light) .ambient-bg-orbs > div:nth-child(1) {
  background: rgba(234, 179, 8, 0.12) !important;
}
html.theme-gold:not(.light) .ambient-bg-orbs > div:nth-child(2) {
  background: rgba(202, 138, 4, 0.10) !important;
}
html.theme-gold:not(.light) .liquid-glass-btn.neon-emerald.active {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.3) 0%, rgba(202, 138, 4, 0.15) 100%) !important;
  border-color: rgba(234, 179, 8, 0.5) !important;
  color: #fef08a !important;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.25) !important;
}
html.theme-gold:not(.light) .liquid-glass-btn.neon-emerald .neon-icon-badge {
  background: #eab308 !important;
}
html.theme-gold:not(.light) .stock-row.selected-row {
  border-left-color: #eab308 !important;
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.15) 0%, rgba(234, 179, 8, 0.02) 100%) !important;
}
html.theme-gold:not(.light) #btnMarketRegime span#regimeDot,
html.theme-gold:not(.light) #marketLivePill span#marketStatusDot {
  background-color: #eab308 !important;
}

/* 2. Theme: Midnight Blue */
html.theme-midnight:not(.light) {
  --bg-primary: #060b18;
  --bg-card: rgba(14, 23, 47, 0.6);
  --bg-card-hover: rgba(21, 34, 68, 0.7);
  --border-subtle: rgba(56, 189, 248, 0.14);
}
html.theme-midnight:not(.light) body {
  background-color: #060b18;
}
html.theme-midnight:not(.light) .ambient-bg-orbs > div:nth-child(1) {
  background: rgba(14, 165, 233, 0.15) !important;
}
html.theme-midnight:not(.light) .ambient-bg-orbs > div:nth-child(2) {
  background: rgba(59, 130, 246, 0.15) !important;
}
html.theme-midnight:not(.light) .liquid-glass-btn.neon-emerald.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3) 0%, rgba(2, 132, 199, 0.15) 100%) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: #e0f2fe !important;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.25) !important;
}
html.theme-midnight:not(.light) .liquid-glass-btn.neon-emerald .neon-icon-badge {
  background: #38bdf8 !important;
}
html.theme-midnight:not(.light) .stock-row.selected-row {
  border-left-color: #38bdf8 !important;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.15) 0%, rgba(56, 189, 248, 0.02) 100%) !important;
}
html.theme-midnight:not(.light) #btnMarketRegime span#regimeDot,
html.theme-midnight:not(.light) #marketLivePill span#marketStatusDot {
  background-color: #38bdf8 !important;
}

/* 3. Theme: Clean Slate */
html.theme-slate:not(.light) {
  --bg-primary: #0e121a;
  --bg-card: rgba(22, 28, 39, 0.6);
  --bg-card-hover: rgba(30, 38, 52, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
}
html.theme-slate:not(.light) body {
  background-color: #0e121a;
}
html.theme-slate:not(.light) .ambient-bg-orbs > div {
  opacity: 0.1 !important;
}
html.theme-slate:not(.light) .liquid-glass-btn.neon-emerald.active {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.35) 0%, rgba(71, 85, 105, 0.2) 100%) !important;
  border-color: rgba(148, 163, 184, 0.4) !important;
  color: #f1f5f9 !important;
  box-shadow: 0 0 15px rgba(148, 163, 184, 0.15) !important;
}
html.theme-slate:not(.light) .liquid-glass-btn.neon-emerald .neon-icon-badge {
  background: #94a3b8 !important;
}
html.theme-slate:not(.light) .stock-row.selected-row {
  border-left-color: #94a3b8 !important;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.15) 0%, rgba(148, 163, 184, 0.02) 100%) !important;
}

/* Theme selector card in settings */
.theme-select-btn {
  background: rgba(15, 23, 42, 0.6);
}
html.light .theme-select-btn {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html.light .theme-select-btn.active-theme {
  border-color: #0f172a !important;
  background: #f1f5f9 !important;
  box-shadow: 0 0 10px rgba(15, 23, 42, 0.15) !important;
}
html.light .theme-select-btn .theme-btn-title {
  color: #0f172a !important;
}
html.light .theme-select-btn .theme-btn-sub {
  color: #64748b !important;
}



