/* =============================================
   LA ZONA DEL TRADING — Design System v2.0
   Dark Trading Premium Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ===== TOKENS ===== */
:root {
  /* Backgrounds (Dark Navy / Deep Ocean) */
  --bg-dark:       #0B0E14;
  --bg-darker:     #05070A;
  --bg-card:       #131722;
  --bg-card-alt:   #1C212D;
  --bg-panel:      #0F131C;
  --bg-sidebar:    #0B0E14;
  --bg-header:     rgba(11, 14, 20, 0.92);

  /* Brand colors */
  --primary:       #00E676;       /* Verde Neo Mint / Dopamínico */
  --primary-hover: #00C853;
  --primary-glow:  rgba(0, 230, 118, 0.25);
  --primary-dark:  rgba(0, 230, 118, 0.12);

  --gold:          #FFD54F;       /* Oro premium, menos naranja */
  --gold-dark:     rgba(255, 213, 79, 0.15);
  --gold-glow:     rgba(255, 213, 79, 0.3);

  --red:           #FF3D00;       /* Rojo alerta intenso */
  --red-dark:      rgba(255, 61, 0, 0.15);

  --blue:          #2979FF;       /* Azul eléctrico */
  --blue-dark:     rgba(41, 121, 255, 0.15);

  --purple:        #D500F9;       /* Púrpura neón vibrante */
  --purple-dark:   rgba(213, 0, 249, 0.15);

  /* Text */
  --text-primary:   #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted:     #475569;
  --text-heading:   #FFFFFF;

  /* Borders */
  --border:         rgba(255, 255, 255, 0.06);
  --border-hover:   rgba(0, 230, 118, 0.3);

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.5);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.6);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.7);
  --shadow-green: 0 0 24px rgba(0, 230, 118, 0.2);
  --shadow-gold:  0 0 24px rgba(255, 213, 79, 0.2);

  /* Misc */
  --radius:     14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* Light Theme Tokens */
[data-theme="light"] {
  --bg-dark:       #F8FAFC;
  --bg-darker:     #F1F5F9;
  --bg-card:       #FFFFFF;
  --bg-card-alt:   #F1F5F9;
  --bg-panel:      #FFFFFF;
  --bg-sidebar:    #FFFFFF;
  --bg-header:     rgba(248, 250, 252, 0.92);

  --text-primary:   #1E293B;
  --text-secondary: #64748B;
  --text-muted:     #94A3B8;
  --text-heading:   #0F172A;

  --border:         rgba(0, 0, 0, 0.06);
  --border-hover:   rgba(0, 230, 118, 0.5);
}

/* Trading Mode Tokens */
[data-theme="trading"] {
  --bg-dark:       #05070A;
  --bg-card:       #0B0E14;
  --primary:       #22c55e;
  --border:        rgba(34, 197, 94, 0.1);
}

/* Text Size Tokens */
[data-size="large"] { font-size: 17px; }
[data-size="xlarge"] { font-size: 19px; }

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 15px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
input, select, textarea, button { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
.font-display { font-family: 'Outfit', sans-serif; }

h1,h2,h3,h4,h5 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.2;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { 
  background: rgba(34,197,94,0.2); 
  border-radius: 10px; 
  border: 2px solid var(--bg-darker);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }


/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary), #16a34a);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
  background: linear-gradient(135deg, #16a34a, #15803d);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  background: transparent;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #000;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
}

.btn-gigante {
  padding: 18px 48px;
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.w-100 { width: 100%; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge-green  { background: var(--primary-dark); color: var(--primary); border: 1px solid rgba(34,197,94,0.25); }
.badge-gold   { background: var(--gold-dark); color: var(--gold); border: 1px solid rgba(245,158,11,0.25); }
.badge-red    { background: var(--red-dark); color: var(--red); border: 1px solid rgba(239,68,68,0.25); }
.badge-blue   { background: var(--blue-dark); color: var(--blue); border: 1px solid rgba(59,130,246,0.25); }
.badge-purple { background: var(--purple-dark); color: var(--purple); border: 1px solid rgba(168,85,247,0.25); }
.badge-muted  { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }

/* Level badges */
.badge-novato   { background: rgba(100,116,139,0.2); color: #94a3b8; border: 1px solid rgba(100,116,139,0.3); }
.badge-trader   { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.badge-pro      { background: rgba(168,85,247,0.15); color: #c084fc; border: 1px solid rgba(168,85,247,0.3); }
.badge-tiburon  { background: rgba(245,158,11,0.15); color: var(--gold); border: 1px solid rgba(245,158,11,0.35); }

/* ===== INPUT FIELDS ===== */
.input-field {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}
.input-field::placeholder { color: var(--text-muted); }
.input-field:focus {
  border-color: var(--primary);
  background: rgba(34,197,94,0.05);
  box-shadow: 0 0 0 3px var(--primary-dark);
}
.input-field option { background: var(--bg-card); }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
.card:hover { border-color: var(--border-hover); }

.glass-card {
  background: rgba(15,23,41,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

/* ===== PROGRESS BAR ===== */
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--primary), #16a34a);
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2s infinite;
}

.progress-xp {
  background: linear-gradient(90deg, var(--gold), #f97316);
}

/* ===== TOAST ===== */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.35s ease, fadeOut 0.4s ease 3s forwards;
  max-width: 360px;
}
.toast.toast-success { border-left: 3px solid var(--primary); }
.toast.toast-error   { border-left: 3px solid var(--red); }
.toast.toast-info    { border-left: 3px solid var(--blue); }
.toast.toast-gold    { border-left: 3px solid var(--gold); }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3,5,8,0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; animation: fadeIn 0.2s ease; }

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

/* Legacy modal (for index.html) */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3,5,8,0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.active { display: flex; }
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: scaleIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
  line-height: 1;
}
.close-btn:hover { color: var(--text-primary); }

/* ===== NAV LINK (sidebar) ===== */
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.nav-link:hover {
  background: rgba(34,197,94,0.08);
  color: var(--primary);
}
.nav-link.active {
  background: var(--primary-dark);
  color: var(--primary);
  font-weight: 700;
}
.nav-link svg, .nav-link i { flex-shrink: 0; width: 18px; height: 18px; }

/* ===== VIEW PANEL (SPA) ===== */
.view-panel { display: none; }
.view-panel.active { display: block; }

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 19;
}
.sidebar-overlay.active { display: block; }

/* ===== DIVIDERS ===== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* ===== KICKER / SECTION LABELS ===== */
.kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
}

.text-neon    { color: var(--primary); }
.text-gold    { color: var(--gold); }
.text-red     { color: var(--red); }
.text-muted   { color: var(--text-secondary); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
}

/* ===== LANDING PAGE ===== */

/* ── Ticker Bar ── */
.ticker-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  height: 46px;
  background: rgba(7, 11, 20, 0.96);
  border-bottom: 1px solid rgba(0, 230, 118, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-tape {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 36s linear infinite;
  will-change: transform;
}

.ticker-wrap:hover .ticker-tape {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 0 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.ticker-up   { color: var(--primary); }
.ticker-down { color: var(--red); }

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

/* TradingView widget dentro del ticker */
#tv-ticker-container {
  display: none;
  width: 100%;
  height: 46px;
  overflow: hidden;
  flex-shrink: 0;
}
#tv-ticker-container .tradingview-widget-container {
  width: 100%;
  height: 46px;
  overflow: hidden;
}
#tv-ticker-container .tradingview-widget-container__widget {
  height: 46px;
  overflow: hidden;
}
#tv-ticker-container iframe {
  height: 46px !important;
  width:  100%  !important;
  border: none  !important;
  display: block;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

/* Landing Navbar */
.landing-nav {
  position: fixed;
  top: calc(46px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7,11,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.landing-nav .logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.landing-nav .logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.5px;
}
.landing-nav .logo-text span { color: var(--primary); }

.landing-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.landing-nav .nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
  text-decoration: none;
}
.landing-nav .nav-links a:hover { color: var(--text-primary); }
.landing-nav .hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(34,197,94,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(245,158,11,0.05) 0%, transparent 60%),
    linear-gradient(180deg, #070b14 0%, #0a1020 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,197,94,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 5%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-dark);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 24px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .highlight-gold {
  background: linear-gradient(135deg, var(--gold), #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.hero-stat { text-align: left; }
.hero-stat .num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
}
.hero-stat .label { font-size: 0.82rem; color: var(--text-muted); }

/* Chart decoration (hero right) */
.hero-visual {
  position: relative;
}
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

/* Sections */
section { padding: 100px 5%; }

.container { max-width: 1280px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-top: 12px;
  margin-bottom: 16px;
}
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Feature cards */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-green); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  background: var(--primary-dark);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p  { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* Course cards */
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.course-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-md); }

.course-card-header {
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.course-card-header .course-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}
.course-card-header h3 { font-size: 1.1rem; color: #fff; margin-bottom: 6px; }
.course-card-header p  { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

.course-card-body { padding: 20px 28px; }
.course-card-body .lessons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 16px;
}

/* Level cards */
.level-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.level-card .level-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  display: block;
}
.level-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.level-card p  { font-size: 0.82rem; color: var(--text-muted); }
.level-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(245,158,11,0.15);
}

/* Pricing */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-green);
}
.pricing-card .price {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.pricing-card .period { font-size: 0.85rem; color: var(--text-muted); }
.pricing-card ul { list-style: none; margin: 20px 0; }
.pricing-card ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card ul li .check { color: var(--primary); font-weight: 700; }

/* Testimonial */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card .author-avatar {
  width: 44px; height: 44px;
  background: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.testimonial-card .author-name { font-weight: 700; font-size: 0.9rem; }
.testimonial-card .author-role { font-size: 0.78rem; color: var(--text-muted); }

/* Expert card */
.expert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: var(--transition);
}
.expert-card:hover { border-color: var(--border-hover); }
.expert-avatar-big {
  width: 80px; height: 80px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--bg-card-alt));
  border: 2px solid rgba(34,197,94,0.3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

/* Stats stripe */
.stats-stripe {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 5%;
}
.stats-stripe .grid { display: flex; justify-content: center; gap: 80px; flex-wrap: wrap; }
.stat-big { text-align: center; }
.stat-big .num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-big .label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* Footer */
footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 64px 5% 32px;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer ul li a:hover { color: var(--primary); }

/* Mobile nav menu (landing) */
.mobile-menu {
  display: none;
  position: fixed;
  top: calc(118px + env(safe-area-inset-top, 0px)); left: 0; right: 0;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  padding: 24px 5%;
  z-index: 99;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--bg-card); }

/* Signal card */
.signal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
}
.signal-card:hover { border-color: var(--border-hover); }
.signal-card.buy  { border-left: 3px solid var(--primary); }
.signal-card.sell { border-left: 3px solid var(--red); }
.signal-direction-buy  { color: var(--primary); font-weight: 800; font-size: 0.8rem; }
.signal-direction-sell { color: var(--red); font-weight: 800; font-size: 0.8rem; }

/* Challenge card */
.challenge-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.challenge-card-header {
  padding: 24px;
  background: linear-gradient(135deg, var(--primary-dark), transparent);
  border-bottom: 1px solid var(--border);
}
.challenge-card-body { padding: 24px; }

/* Badge/achievement card */
.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}
.achievement-card.unlocked { border-color: rgba(245,158,11,0.3); }
.achievement-card.locked   { opacity: 0.45; filter: grayscale(1); }
.achievement-card:hover { transform: translateY(-3px); }
.achievement-icon { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.achievement-card h4 { font-size: 0.85rem; margin-bottom: 4px; }
.achievement-card p  { font-size: 0.75rem; color: var(--text-muted); }

/* Dashboard layout */
.dashboard-layout {
  display: flex;
  height: calc(100dvh - 46px - env(safe-area-inset-top, 0px));
  overflow: hidden;
  position: fixed;
  top: calc(46px + env(safe-area-inset-top, 0px)); left: 0; right: 0; bottom: 0;
  padding-bottom: env(safe-area-inset-bottom);
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.sidebar-header {
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #fff;
}
.sidebar-logo span { color: var(--primary); }
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}
.sidebar-nav .nav-group-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 8px 14px 6px;
  margin-top: 8px;
}
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.dash-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dash-header {
  height: 68px;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  padding-top: env(safe-area-inset-top);
  flex-shrink: 0;
  z-index: 10;
}
.dash-header h1 {
  font-size: 1.15rem;
  font-weight: 700;
}
.dash-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  background: var(--bg-dark);
}

/* Curriculum (lesson view) */
.curriculum-module { margin-bottom: 12px; }
.module-header {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}
.module-header:hover { border-color: var(--border-hover); }
.module-body { display: none; padding-top: 4px; }
.module-body.open { display: block; }
.class-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 4px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}
.class-item:hover { border-color: var(--border-hover); color: var(--text-primary); }
.class-locked { opacity: 0.45; cursor: not-allowed; }

/* Inline icon style for feather */
.icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }

/* Pulse for live indicators */
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.live-dot::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* Auth switch text */
.auth-switch { font-size: 0.88rem; color: var(--text-muted); margin-top: 12px; }
.auth-switch a { color: var(--primary); font-weight: 600; }

/* Referer badge */
.referer-badge {
  background: var(--primary-dark);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--primary);
}

/* Countdown strip */
.countdown-box {
  background: var(--bg-card);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: var(--radius);
  padding: 10px 18px;
  text-align: center;
}
.countdown-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.countdown-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; margin-top: 2px; }

/* XP bar */
.xp-bar-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.xp-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Table */
.table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg-card-alt); }
thead th {
  padding: 14px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-align: left;
}
tbody tr { border-top: 1px solid var(--border); transition: background 0.15s; }
tbody tr:hover { background: rgba(255,255,255,0.02); }
tbody td { padding: 14px 16px; font-size: 0.9rem; color: var(--text-secondary); }

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-slide-up { animation: slideInUp 0.6s ease both; }
.reveal { animation: slideInUp 0.7s ease both; }
.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }

/* Hidden + scroll reveal */
.hidden-ani { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.show-ani   { opacity: 1; transform: translateY(0); }

/* Ticker tape */
.ticker-wrap {
  overflow: hidden;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  white-space: nowrap;
}
.ticker-tape {
  display: inline-flex;
  gap: 60px;
  animation: ticker 30s linear infinite;
  font-size: 0.82rem;
  font-weight: 600;
}
.ticker-item { display: inline-flex; align-items: center; gap: 8px; }
.ticker-up   { color: var(--primary); }
.ticker-down { color: var(--red); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .sidebar { 
    transform: translateX(-100%); 
    position: fixed; 
    height: 100dvh; 
    top: 0;
    left: 0;
    box-shadow: 20px 0 50px rgba(0,0,0,0.5);
  }
  .sidebar.open { transform: translateX(0); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* Mostrar botón hamburguesa del dashboard en móvil */
  #hamburger-dash { display: flex !important; }

  /* Mostrar botón X para cerrar el sidebar en móvil */
  #sidebar-close-btn { display: flex !important; }
}

@media (max-width: 768px) {
  section { padding: 70px 5%; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn-primary, .hero-cta .btn-outline { width: 100%; justify-content: center; }
  .landing-nav .nav-links { display: none; }
  .landing-nav .hamburger { display: block; }
  .stats-stripe .grid { gap: 40px; }
  .expert-card { flex-direction: column; }
  .dash-viewport { padding: 16px; }
  .dash-header { padding: 0 16px; gap: 8px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  
  /* Fix dash header overlap (Aplica a todos los móviles) */
  .dash-header h1 { font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
  .header-user-info { display: none !important; }
  #header-xp { padding: 4px 8px; font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .modal-content { padding: 28px 20px; }
  .hero h1 { font-size: 2rem; }
  .dash-header h1 { max-width: 100px; }
}

/* Field label helper */
.field-label { display:block; font-size:0.78rem; font-weight:700; color:var(--text-muted); margin-bottom:6px; text-transform:uppercase; letter-spacing:0.5px; }

/* ===== THEME SWITCHER ===== */
/* Light Theme */
:root[data-theme="light"] {
  --bg-dark:       #F3F4F6;     /* Gris súper suave */
  --bg-darker:     #E5E7EB;
  --bg-card:       #FFFFFF;     /* Blancos inmaculados */
  --bg-card-alt:   #F9FAFB;
  --bg-panel:      #FFFFFF;
  --bg-sidebar:    #FFFFFF;
  --bg-header:     rgba(255, 255, 255, 0.95);
  
  --primary:       #10B981;     /* Esmeralda, transmite confianza y calma */
  --primary-hover: #059669;
  --primary-glow:  rgba(16, 185, 129, 0.2);
  --primary-dark:  rgba(16, 185, 129, 0.1);
  
  --gold:          #D97706;     /* Dorado oscuro legible en fondos claros */
  --gold-dark:     rgba(217, 119, 6, 0.1);
  --gold-glow:     rgba(217, 119, 6, 0.2);

  --red:           #EF4444;
  --red-dark:      rgba(239, 68, 68, 0.1);

  --blue:          #3B82F6;
  --blue-dark:     rgba(59, 130, 246, 0.1);

  --purple:        #8B5CF6;
  --purple-dark:   rgba(139, 92, 246, 0.1);

  --text-primary:  #111827;     /* Negro texto suave */
  --text-secondary:#4B5563;
  --text-muted:    #9CA3AF;
  --text-heading:  #030712;
  
  --border:        #E5E7EB;
  --border-hover:  rgba(16, 185, 129, 0.4);

  --shadow-sm:  0 2px 4px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.12);
  --shadow-green: 0 0 24px rgba(16, 185, 129, 0.15);
  --shadow-gold:  0 0 24px rgba(217, 119, 6, 0.15);
}

/* Trading Theme (Bloomberg/Terminal style) */
:root[data-theme="trading"] {
  --bg-dark:       #000000;     /* Negro puro OLED */
  --bg-darker:     #020202;
  --bg-card:       #0A0A0A;
  --bg-card-alt:   #111111;
  --bg-panel:      #050505;
  --bg-sidebar:    #000000;
  --bg-header:     rgba(0, 0, 0, 0.95);
  
  --primary:       #00FF41;     /* Verde hacker intenso (Matrix) */
  --primary-hover: #00CC33;
  --primary-glow:  rgba(0, 255, 65, 0.3);
  --primary-dark:  rgba(0, 255, 65, 0.15);
  
  --gold:          #FFB300;     /* Ámbar neón */
  --gold-dark:     rgba(255, 179, 0, 0.15);
  --gold-glow:     rgba(255, 179, 0, 0.3);

  --red:           #FF003C;     /* Rojo neón puro (Cyberpunk) */
  --red-dark:      rgba(255, 0, 60, 0.15);

  --blue:          #00E5FF;     /* Cian brillante */
  --blue-dark:     rgba(0, 229, 255, 0.15);

  --purple:        #B000FF;     /* Púrpura eléctrico */
  --purple-dark:   rgba(176, 0, 255, 0.15);

  --text-primary:  #E0E0E0;
  --text-secondary:#A0A0A0;
  --text-muted:    #666666;
  --text-heading:  #FFFFFF;
  
  --border:        #222222;
  --border-hover:  #00FF41;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.8);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.9);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.95);
  --shadow-green: 0 0 24px rgba(0, 255, 65, 0.25);
  --shadow-gold:  0 0 24px rgba(255, 179, 0, 0.25);
}

/* TAMAÑOS DE TEXTO */
:root[data-size="large"] { font-size: 17px; }
:root[data-size="xlarge"] { font-size: 19px; }

/* PANEL FLOTANTE DE THEME SWITCHER */
#theme-switcher-wrap {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
}
#theme-toggle-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
#theme-toggle-btn:hover {
  transform: scale(1.1);
  border-color: var(--primary);
}
#theme-panel {
  position: absolute;
  bottom: 60px;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  width: max-content;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}
#theme-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.theme-panel-section {
  margin-bottom: 12px;
}
.theme-panel-section:last-child {
  margin-bottom: 0;
}
.theme-panel-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}
.theme-opts-group {
  display: flex;
  gap: 8px;
}
.opt-btn {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.opt-btn:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}
.opt-btn.active {
  background: var(--primary-dark);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

/* ===== TICKER CONFIG PANEL (ADMIN) ===== */
.ticker-config-panel {
  background: var(--bg-card, #131722);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: 18px;
  padding: 30px;
  margin-top: 40px;
}
.ticker-config-panel h2 {
  font-size: 1.2rem; margin-bottom: 6px;
}
.ticker-config-panel p {
  color: var(--text-muted, #475569); font-size: 0.85rem; margin-bottom: 24px;
}
.ticker-symbols-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.symbol-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s;
  cursor: grab;
}
.symbol-card.enabled {
  border-color: rgba(0,230,118,0.3);
  background: rgba(0,230,118,0.04);
}
.symbol-card:active { cursor: grabbing; }
.symbol-info { flex: 1; min-width: 0; }
.symbol-name { font-weight: 700; font-size: 0.9rem; }
.symbol-code { font-size: 0.73rem; color: var(--text-muted, #475569); font-family: monospace; }

/* Toggle switch */
.toggle-switch {
  position: relative; width: 44px; height: 24px; flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.25s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary, #00E676); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Custom symbol form */
.custom-symbol-form {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 12px;
  margin-bottom: 20px;
}
.custom-symbol-form input {
  flex: 1; min-width: 140px;
}

/* ===== REAL-TIME TICKER ===== */
.ticker-wrap {
  width: 100%;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  height: 46px;
  box-sizing: content-box;
  padding-top: env(safe-area-inset-top, 0px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1002;
}
.tradingview-widget-container {
  width: 100%;
  height: 100%;
}

/* Medium screens nav fix */
@media (max-width: 1100px) {
  .landing-nav .nav-links a:not([class*="btn"]) { display: none; }
}

 / *   = = = = =   T H E M E   S W I T C H E R   U I   = = = = =   * / 
 # t h e m e - s w i t c h e r - w r a p   { 
     p o s i t i o n :   f i x e d ; 
     b o t t o m :   2 4 p x ; 
     l e f t :   2 4 p x ; 
     z - i n d e x :   9 9 9 ; 
 } 
 
 # t h e m e - t o g g l e - b t n   { 
     w i d t h :   4 8 p x ; 
     h e i g h t :   4 8 p x ; 
     b o r d e r - r a d i u s :   5 0 % ; 
     b a c k g r o u n d :   v a r ( - - b g - c a r d ) ; 
     b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r ) ; 
     c o l o r :   v a r ( - - t e x t - p r i m a r y ) ; 
     f o n t - s i z e :   1 . 2 r e m ; 
     c u r s o r :   p o i n t e r ; 
     d i s p l a y :   f l e x ; 
     a l i g n - i t e m s :   c e n t e r ; 
     j u s t i f y - c o n t e n t :   c e n t e r ; 
     b o x - s h a d o w :   v a r ( - - s h a d o w - m d ) ; 
     t r a n s i t i o n :   v a r ( - - t r a n s i t i o n ) ; 
 } 
 
 # t h e m e - t o g g l e - b t n : h o v e r   { 
     t r a n s f o r m :   s c a l e ( 1 . 1 ) ; 
     b o r d e r - c o l o r :   v a r ( - - p r i m a r y ) ; 
     b o x - s h a d o w :   v a r ( - - s h a d o w - g r e e n ) ; 
 } 
 
 # t h e m e - p a n e l   { 
     p o s i t i o n :   a b s o l u t e ; 
     b o t t o m :   6 0 p x ; 
     l e f t :   0 ; 
     w i d t h :   2 4 0 p x ; 
     b a c k g r o u n d :   v a r ( - - b g - c a r d ) ; 
     b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r ) ; 
     b o r d e r - r a d i u s :   v a r ( - - r a d i u s - l g ) ; 
     p a d d i n g :   2 0 p x ; 
     b o x - s h a d o w :   v a r ( - - s h a d o w - l g ) ; 
     d i s p l a y :   n o n e ; 
     f l e x - d i r e c t i o n :   c o l u m n ; 
     g a p :   1 6 p x ; 
     a n i m a t i o n :   s l i d e I n U p   0 . 3 s   e a s e ; 
 } 
 
 # t h e m e - p a n e l . o p e n   { 
     d i s p l a y :   f l e x ; 
 } 
 
 . t h e m e - p a n e l - s e c t i o n   { 
     d i s p l a y :   f l e x ; 
     f l e x - d i r e c t i o n :   c o l u m n ; 
     g a p :   8 p x ; 
 } 
 
 . t h e m e - p a n e l - t i t l e   { 
     f o n t - s i z e :   0 . 7 2 r e m ; 
     f o n t - w e i g h t :   8 0 0 ; 
     t e x t - t r a n s f o r m :   u p p e r c a s e ; 
     c o l o r :   v a r ( - - t e x t - m u t e d ) ; 
     l e t t e r - s p a c i n g :   1 p x ; 
 } 
 
 . t h e m e - o p t s - g r o u p   { 
     d i s p l a y :   f l e x ; 
     g a p :   8 p x ; 
     f l e x - w r a p :   w r a p ; 
 } 
 
 . o p t - b t n   { 
     p a d d i n g :   6 p x   1 2 p x ; 
     f o n t - s i z e :   0 . 7 8 r e m ; 
     f o n t - w e i g h t :   6 0 0 ; 
     b o r d e r - r a d i u s :   8 p x ; 
     b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r ) ; 
     b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 3 ) ; 
     c o l o r :   v a r ( - - t e x t - s e c o n d a r y ) ; 
     c u r s o r :   p o i n t e r ; 
     t r a n s i t i o n :   v a r ( - - t r a n s i t i o n ) ; 
 } 
 
 . o p t - b t n : h o v e r   { 
     b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 6 ) ; 
     c o l o r :   v a r ( - - t e x t - p r i m a r y ) ; 
 } 
 
 . o p t - b t n . a c t i v e   { 
     b a c k g r o u n d :   v a r ( - - p r i m a r y - d a r k ) ; 
     c o l o r :   v a r ( - - p r i m a r y ) ; 
     b o r d e r - c o l o r :   v a r ( - - p r i m a r y ) ; 
 } 
 
 @ k e y f r a m e s   s l i d e I n U p   { 
     f r o m   {   o p a c i t y :   0 ;   t r a n s f o r m :   t r a n s l a t e Y ( 1 0 p x ) ;   } 
     t o   {   o p a c i t y :   1 ;   t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ;   } 
 } 
  
 
 / *   = = = = =   L O A D I N G   S P I N N E R   = = = = =   * / 
 . s p i n n e r   { 
     w i d t h :   4 0 p x ; 
     h e i g h t :   4 0 p x ; 
     b o r d e r :   4 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
     b o r d e r - l e f t - c o l o r :   v a r ( - - p r i m a r y ) ; 
     b o r d e r - r a d i u s :   5 0 % ; 
     a n i m a t i o n :   s p i n   1 s   l i n e a r   i n f i n i t e ; 
     m a r g i n :   2 0 p x   a u t o ; 
 } 
 
 @ k e y f r a m e s   s p i n   { 
     t o   {   t r a n s f o r m :   r o t a t e ( 3 6 0 d e g ) ;   } 
 } 
 
 . l o a d i n g - o v e r l a y   { 
     p o s i t i o n :   a b s o l u t e ; 
     i n s e t :   0 ; 
     b a c k g r o u n d :   v a r ( - - b g - d a r k ) ; 
     d i s p l a y :   f l e x ; 
     a l i g n - i t e m s :   c e n t e r ; 
     j u s t i f y - c o n t e n t :   c e n t e r ; 
     z - i n d e x :   1 0 ; 
     b o r d e r - r a d i u s :   i n h e r i t ; 
 } 
  
 
 / *   = = = = =   S I D E B A R   E N H A N C E M E N T S   = = = = =   * / 
 . s i d e b a r   { 
     t r a n s i t i o n :   t r a n s f o r m   0 . 4 s   c u b i c - b e z i e r ( 0 . 4 ,   0 ,   0 . 2 ,   1 ) ,   b a c k g r o u n d   0 . 3 s   e a s e ; 
     b o x - s h a d o w :   1 0 p x   0   3 0 p x   r g b a ( 0 , 0 , 0 , 0 . 5 ) ; 
 } 
 
 . s i d e b a r . o p e n   { 
     t r a n s f o r m :   t r a n s l a t e X ( 0 )   ! i m p o r t a n t ; 
 } 
 
 . s i d e b a r - o v e r l a y   { 
     b a c k d r o p - f i l t e r :   b l u r ( 4 p x ) ; 
     - w e b k i t - b a c k d r o p - f i l t e r :   b l u r ( 4 p x ) ; 
     t r a n s i t i o n :   o p a c i t y   0 . 4 s   e a s e ; 
 } 
 
 / *   = = = = =   M O D E R N   C A R D   E F F E C T S   = = = = =   * / 
 . c a r d ,   . c o u r s e - c a r d ,   . s i g n a l - c a r d   { 
     p o s i t i o n :   r e l a t i v e ; 
     o v e r f l o w :   h i d d e n ; 
 } 
 
 . c a r d : : a f t e r ,   . c o u r s e - c a r d : : a f t e r ,   . s i g n a l - c a r d : : a f t e r   { 
     c o n t e n t :   ' ' ; 
     p o s i t i o n :   a b s o l u t e ; 
     t o p :   - 5 0 % ; 
     l e f t :   - 5 0 % ; 
     w i d t h :   2 0 0 % ; 
     h e i g h t :   2 0 0 % ; 
     b a c k g r o u n d :   r a d i a l - g r a d i e n t ( c i r c l e ,   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 3 )   0 % ,   t r a n s p a r e n t   7 0 % ) ; 
     p o i n t e r - e v e n t s :   n o n e ; 
     t r a n s i t i o n :   t r a n s f o r m   0 . 6 s   e a s e ; 
     t r a n s f o r m :   s c a l e ( 0 ) ; 
 } 
 
 . c a r d : h o v e r : : a f t e r ,   . c o u r s e - c a r d : h o v e r : : a f t e r ,   . s i g n a l - c a r d : h o v e r : : a f t e r   { 
     t r a n s f o r m :   s c a l e ( 1 ) ; 
 } 
  
 
 / *   = = = = =   N A T I V E   A P P   F E E L   ( F O R   P L A Y   S T O R E   /   T W A )   = = = = =   * / 
 @ m e d i a   ( d i s p l a y - m o d e :   s t a n d a l o n e )   { 
     b o d y   { 
         - w e b k i t - u s e r - s e l e c t :   n o n e ; 
         - m o z - u s e r - s e l e c t :   n o n e ; 
         - m s - u s e r - s e l e c t :   n o n e ; 
         u s e r - s e l e c t :   n o n e ; 
         - w e b k i t - t o u c h - c a l l o u t :   n o n e ;   / *   P r e v e n i r   m e n  s   d e   p u l s a c i  n   l a r g a   e n   i O S / A n d r o i d   * / 
     } 
 
     / *   P e r m i t i r   s e l e c c i  n   e n   i n p u t s   y    r e a s   d e   t e x t o   * / 
     i n p u t ,   t e x t a r e a ,   [ c o n t e n t e d i t a b l e = \  
 t r u e \ ]   { 
         - w e b k i t - u s e r - s e l e c t :   t e x t ; 
         - m o z - u s e r - s e l e c t :   t e x t ; 
         - m s - u s e r - s e l e c t :   t e x t ; 
         u s e r - s e l e c t :   t e x t ; 
     } 
 
     / *   E l i m i n a r   e l   s c r o l l   ' b o u n c e '   e n   m  v i l   s i   e s   n e c e s a r i o   * / 
     h t m l ,   b o d y   { 
         o v e r s c r o l l - b e h a v i o r - y :   c o n t a i n ; 
     } 
 
     / *   P a d d i n g   p a r a   d i s p o s i t i v o s   c o n   N o t c h   ( C  m a r a s   e n   p a n t a l l a )   * / 
     . l a n d i n g - n a v ,   . d a s h - h e a d e r   { 
         p a d d i n g - t o p :   m a x ( 1 6 p x ,   e n v ( s a f e - a r e a - i n s e t - t o p ) ) ; 
     } 
 } 
 
 / *   E f e c t o   d e   p u l s a c i  n   a c t i v a   p a r a   b o t o n e s   ( F e e d a c k   t  c t i l )   * / 
 . b t n - p r i m a r y : a c t i v e ,   . b t n - g o l d : a c t i v e ,   . n a v - l i n k : a c t i v e   { 
     t r a n s f o r m :   s c a l e ( 0 . 9 6 ) ; 
     o p a c i t y :   0 . 9 ; 
 } 
  
 