/* FinGroww Master Design System — Ultra-Modern SaaS & FinTech UI */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* DARK THEME (DEFAULT) — Ultra Cyber Obsidian */
[data-theme="dark"],
:root:not([data-theme="light"]) {
  --bg-base: #030712;
  --bg-surface: #0a0f1d;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-card-solid: #0f172a;
  --bg-input: rgba(10, 15, 29, 0.7);
  --header-bg: rgba(3, 7, 18, 0.82);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-card-hover: rgba(56, 189, 248, 0.4);
  --border-active: #38bdf8;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-blue: #38bdf8;
  --accent-blue-rgb: 56, 189, 248;
  --accent-blue-dim: rgba(56, 189, 248, 0.12);
  --accent-green: #10b981;
  --accent-green-rgb: 16, 185, 129;
  --accent-green-dim: rgba(16, 185, 129, 0.12);
  --accent-red: #f43f5e;
  --accent-red-dim: rgba(244, 63, 94, 0.12);
  --accent-gold: #f59e0b;
  --accent-gold-dim: rgba(245, 158, 11, 0.12);
  --accent-purple: #a855f7;
  --accent-purple-dim: rgba(168, 85, 247, 0.12);

  --glow-blue: 0 0 35px rgba(56, 189, 248, 0.25);
  --glow-green: 0 0 35px rgba(16, 185, 129, 0.25);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-floating: 0 30px 60px -15px rgba(0, 0, 0, 0.9);

  --bg-hud: rgba(15, 23, 42, 0.65);
  --bg-hud-border: rgba(255, 255, 255, 0.08);
  --bg-banner-closed: rgba(245, 158, 11, 0.1);
  --border-banner-closed: rgba(245, 158, 11, 0.3);
  --text-banner-closed: #fef08a;
  --bg-modal-overlay: rgba(3, 7, 18, 0.85);
  --table-row-hover: rgba(56, 189, 248, 0.04);
  
  --bg-grid-dot: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  --bg-gradient-mesh: 
    radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.18), transparent 45%),
    radial-gradient(circle at 90% 25%, rgba(168, 85, 247, 0.12), transparent 40%),
    radial-gradient(circle at 10% 60%, rgba(16, 185, 129, 0.1), transparent 40%),
    linear-gradient(180deg, #070d1e 0%, var(--bg-base) 600px);
}

/* LIGHT THEME — Swiss FinTech Minimalist Luxury */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-card-solid: #ffffff;
  --bg-input: #f1f5f9;
  --header-bg: rgba(255, 255, 255, 0.92);

  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-card: rgba(15, 23, 42, 0.12);
  --border-card-hover: rgba(2, 132, 199, 0.45);
  --border-active: #0284c7;

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;

  --accent-blue: #0284c7;
  --accent-blue-rgb: 2, 132, 199;
  --accent-blue-dim: rgba(2, 132, 199, 0.1);
  --accent-green: #059669;
  --accent-green-rgb: 5, 150, 105;
  --accent-green-dim: rgba(5, 150, 105, 0.1);
  --accent-red: #e11d48;
  --accent-red-dim: rgba(225, 29, 72, 0.1);
  --accent-gold: #d97706;
  --accent-gold-dim: rgba(217, 119, 6, 0.1);
  --accent-purple: #7c3aed;
  --accent-purple-dim: rgba(124, 58, 237, 0.1);

  --glow-blue: 0 10px 30px rgba(2, 132, 199, 0.14);
  --glow-green: 0 10px 30px rgba(5, 150, 105, 0.14);
  --shadow-card: 0 12px 30px -8px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-floating: 0 25px 50px -12px rgba(15, 23, 42, 0.14);

  --bg-hud: #f1f5f9;
  --bg-hud-border: rgba(15, 23, 42, 0.1);
  --bg-banner-closed: #fffbe6;
  --border-banner-closed: #fde68a;
  --text-banner-closed: #92400e;
  --bg-modal-overlay: rgba(15, 23, 42, 0.65);
  --table-row-hover: rgba(2, 132, 199, 0.05);

  --bg-grid-dot: radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  --bg-gradient-mesh: 
    radial-gradient(circle at 50% -10%, rgba(2, 132, 199, 0.1), transparent 45%),
    radial-gradient(circle at 90% 25%, rgba(124, 58, 237, 0.06), transparent 40%),
    radial-gradient(circle at 10% 60%, rgba(5, 150, 105, 0.06), transparent 40%),
    linear-gradient(180deg, #f1f5f9 0%, var(--bg-base) 600px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: var(--bg-gradient-mesh);
  background-attachment: fixed;
  background-size: cover;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Subtle Animated Background Grid */
.bg-ambient-grid {
  position: fixed;
  inset: 0;
  background-image: var(--bg-grid-dot);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
.mono { font-family: var(--font-mono); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
}
.glass-panel:hover {
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-floating);
}

/* Live Market Ticker */
.global-ticker-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-family: var(--font-mono);
  position: relative;
  z-index: 50;
}
.global-ticker-bar::before,
.global-ticker-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 2;
}
.global-ticker-bar::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-surface), transparent);
}
.global-ticker-bar::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-surface), transparent);
}
.ticker-track {
  display: inline-flex;
  gap: 36px;
  animation: runTicker 36s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.t-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.t-val { color: var(--text-main); font-weight: 700; }
.up { color: var(--accent-green) !important; }
.down { color: var(--accent-red) !important; }

@keyframes runTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Site Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  max-width: 1400px;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  display: grid;
  place-items: center;
  font-size: 19px;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
  color: #fff;
  transition: var(--transition-normal);
}
.brand:hover .brand-icon {
  transform: rotate(-6deg) scale(1.06);
}
.brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.1;
}
.brand-name span {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  font-weight: 700;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 6px;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
}

@media (max-width: 1140px) {
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 12.5px; padding: 4px 2px; }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: grid;
  place-items: center;
  font-size: 17px;
  transition: var(--transition-normal);
  cursor: pointer;
}
.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: rotate(18deg) scale(1.08);
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 30%
  );
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.6s ease;
}
.btn:hover::after {
  transform: rotate(25deg) translateY(100%);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.55);
}
.btn-launch {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
  animation: pulseNeon 3s infinite;
}
.btn-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.55);
}
.btn-outline {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(12px);
}
.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-2px);
}
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius-md); }

@keyframes pulseNeon {
  0%, 100% { box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35); }
  50% { box-shadow: 0 6px 28px rgba(16, 185, 129, 0.65); }
}

/* Floating WhatsApp Quick Action Desk */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 990;
  transition: var(--transition-normal);
}
.floating-whatsapp-btn:hover {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
}

/* Mobile Drawer */
.mobile-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  color: var(--text-main);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.mobile-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
}
.mobile-drawer {
  display: none;
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-card);
  padding: 20px 24px 28px;
  z-index: 99999;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  max-height: calc(100vh - 74px);
  overflow-y: auto;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.mobile-drawer.open {
  display: block;
  animation: slideDrawerDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDrawerDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.mobile-nav-list a {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}
.mobile-nav-list a:hover,
.mobile-nav-list a.active {
  background: var(--accent-blue-dim);
  color: var(--accent-blue) !important;
}

/* Global Footer */
footer.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 35px;
  color: var(--text-muted);
  font-size: 13px;
  position: relative;
  z-index: 10;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 45px;
}
.footer-brand p {
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}
.footer-col h5 {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  color: var(--text-muted);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul a:hover {
  color: var(--accent-blue);
}

.sebi-disclaimer-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 35px;
  font-size: 12px;
  line-height: 1.6;
}
.sebi-disclaimer-box strong { color: var(--text-main); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Global Toast */
.global-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent-green);
  color: var(--text-main);
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  opacity: 0;
  transition: var(--transition-normal);
  font-weight: 600;
  font-size: 14px;
}
.global-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast-check {
  color: var(--accent-green);
  font-size: 18px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .nav-links { display: none !important; }
  .mobile-toggle { display: inline-flex !important; }
}
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .floating-whatsapp-btn { bottom: 20px; right: 20px; width: 48px; height: 48px; font-size: 22px; }
}
@media (max-width: 480px) {
  .brand-badge { display: none; }
  .nav-wrap { height: 64px; }
  .mobile-drawer { top: 64px; max-height: calc(100vh - 64px); }
  .btn-launch span { display: none; }
}

/* Light & Dark Mode Universal High-Contrast & Typography Fixes */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] .hero-title,
[data-theme="light"] .sig-strike-title,
[data-theme="light"] .op-symbol-title {
  color: #0f172a !important;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background-color: var(--bg-input) !important;
  color: var(--text-main) !important;
  border-color: var(--border-card) !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: var(--text-dim) !important;
}

/* Form Controls & Select Dropdowns Theme Override */
input, select, textarea {
  color: var(--text-main);
}
select option {
  background-color: var(--bg-surface);
  color: var(--text-main);
}

/* Universal Rule Chip Styling */
.rule-chip {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-hud, rgba(15, 23, 42, 0.6));
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Light Mode Overrides for Hardcoded Dark Elements */
[data-theme="light"] .greek-stat,
[data-theme="light"] .ts-card,
[data-theme="light"] .hud-item,
[data-theme="light"] .price-hud-box {
  background: var(--bg-hud, #f1f5f9) !important;
  border-color: var(--border-card, rgba(15, 23, 42, 0.1)) !important;
  color: var(--text-main) !important;
}

[data-theme="light"] .chain-table-wrap,
[data-theme="light"] table.chain-table {
  background: var(--bg-surface) !important;
  color: var(--text-main) !important;
}

[data-theme="light"] table.chain-table th {
  background: var(--bg-input) !important;
  color: var(--text-muted) !important;
}

[data-theme="light"] table.chain-table td {
  color: var(--text-main) !important;
}

[data-theme="light"] .strike-row-atm {
  background: rgba(217, 119, 6, 0.12) !important;
  border-color: var(--accent-gold) !important;
}

/* ==========================================================================
   FinGroww Live Signal Notification & Audio Alert System
   ========================================================================== */
.nav-alert-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;
}
.nav-alert-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: scale(1.05);
}
.nav-alert-btn.active-pulse::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulsePing 1.8s infinite;
}

/* Floating Signal Alert Banner */
.signal-alert-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 400px;
  width: calc(100vw - 32px);
}
.signal-alert-banner {
  pointer-events: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  position: relative;
  overflow: hidden;
}
.signal-alert-banner.show {
  transform: translateX(0);
  opacity: 1;
}
.signal-alert-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-blue);
}
.signal-alert-banner.sab-buy::before { background: var(--accent-green); }
.signal-alert-banner.sab-sell::before { background: var(--accent-red); }

.sab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sab-sym {
  font-weight: 800;
  font-size: 15px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sab-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sab-badge.badge-buy {
  background: var(--accent-green-dim);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.sab-badge.badge-sell {
  background: var(--accent-red-dim);
  color: var(--accent-red);
  border: 1px solid rgba(244, 63, 94, 0.4);
}
.sab-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  line-height: 1;
  transition: var(--transition-fast);
}
.sab-close:hover { color: var(--text-main); }

.sab-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
}
.sab-lvl-lbl { font-size: 9px; color: var(--text-dim); text-transform: uppercase; font-family: var(--font-sans); }
.sab-lvl-val { font-weight: 800; margin-top: 1px; }

.sab-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}
.sab-time { display: flex; align-items: center; gap: 4px; }
.sab-action-btn {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-blue);
  background: var(--accent-blue-dim);
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition-fast);
}
.sab-action-btn:hover {
  background: var(--accent-blue);
  color: #fff;
}

/* Alert Settings Modal */
.alert-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.alert-modal-overlay.open { display: flex; }
.alert-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.alert-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.alert-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  gap: 12px;
}
.alert-row-text h5 { font-size: 13.5px; font-weight: 700; color: var(--text-main); margin-bottom: 2px; }
.alert-row-text p { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }

/* Custom Switch Toggle */
.switch-ui {
  position: relative;
  width: 46px;
  height: 24px;
  background: var(--border-card);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease;
  flex-shrink: 0;
}
.switch-ui.active { background: var(--accent-green); }
.switch-handle {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.switch-ui.active .switch-handle { transform: translateX(22px); }

/* Watchlist Selection Chips */
.watchlist-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.wl-chip {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}
.wl-chip:hover {
  border-color: var(--accent-blue);
  color: var(--text-main);
}
.wl-chip.active {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}



/* MongoDB Atlas Live Signal Indicator & Card Enhancements */
.db-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-green);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.db-live-pill i {
  font-size: 9px;
  animation: pulseNeon 2s infinite;
}

/* Universal Smooth Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-active);
}

/* Light Mode Card & Panel Polish */
[data-theme="light"] .trade-card,
[data-theme="light"] .price-card,
[data-theme="light"] .stat-box,
[data-theme="light"] .lmp-box,
[data-theme="light"] .m-card,
[data-theme="light"] .calc-wrapper,
[data-theme="light"] .hero-card,
[data-theme="light"] .chart-container-box {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .stat-num,
[data-theme="light"] .page-title,
[data-theme="light"] .section-title,
[data-theme="light"] .brand-name {
  color: #0f172a !important;
}

[data-theme="light"] .footer-brand p,
[data-theme="light"] .hero-desc,
[data-theme="light"] .page-desc {
  color: #475569 !important;
}

/* ==========================================================================
   MASTER GLOBAL RESPONSIVE & USER-EXPERIENCE (UX) SYSTEM
   ========================================================================== */

/* 1. Prevent Horizontal Page Blowout / Side-Scrolling on Any Device */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* 2. Universal Table Responsive Container */
.table-responsive,
.table-wrap,
.tablewrap,
.chain-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.table-responsive::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.tablewrap::-webkit-scrollbar,
.chain-table-wrap::-webkit-scrollbar {
  height: 6px;
}

/* 3. Universal Mobile Container & Touch Optimization (<= 640px) */
@media (max-width: 640px) {
  .container {
    padding: 0 16px !important;
  }

  /* Compact Header & Brand on Mobile */
  .nav-wrap {
    height: 62px !important;
  }
  .brand-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
    border-radius: 10px !important;
  }
  .brand-name {
    font-size: 1.15rem !important;
  }
  .brand-badge {
    display: none !important;
  }

  /* Universal Card Padding Normalization on Mobile */
  .glass-panel,
  .hero-card,
  .calc-wrapper,
  .pillar-card,
  .trade-card,
  .price-card,
  .story-card,
  .val-card,
  .form-box,
  .methods-card,
  .audit-box,
  .legal-card,
  .guarantee-box,
  .chain-container,
  .calc-card,
  .radar-controls-deck {
    padding: 18px 16px !important;
    border-radius: var(--radius-md) !important;
  }

  /* Universal Typography Clamp for Mobile */
  .hero-title,
  .page-title,
  h1 {
    font-size: clamp(1.75rem, 7vw, 2.3rem) !important;
    line-height: 1.18 !important;
  }
  .hero-desc,
  .page-desc {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }
  .section-head h2,
  h2 {
    font-size: clamp(1.4rem, 5.5vw, 1.85rem) !important;
  }

  /* Full Width Mobile CTA Buttons */
  .hero-cta-group,
  .card-actions-grid {
    flex-direction: column !important;
    width: 100% !important;
  }
  .hero-cta-group .btn,
  .card-actions-grid button {
    width: 100% !important;
    min-height: 44px !important;
  }

  /* Modal Optimization for Mobile */
  .modal-card {
    width: 95% !important;
    max-width: 95% !important;
    padding: 18px 16px !important;
    max-height: 88vh !important;
  }

  /* Global Ticker Optimization */
  .global-ticker-bar {
    font-size: 11.5px !important;
    padding: 6px 0 !important;
  }
  .ticker-track {
    gap: 22px !important;
  }

  /* Sticky Footer on Small Screens */
  footer.site-footer {
    padding: 40px 0 24px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

/* 4. Tablet & Mid-Screen Optimization (641px to 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  .container {
    padding: 0 20px !important;
  }
  .hero-title,
  .page-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem) !important;
  }
}
