/* Estructura y Volumen v2.10 · Rebranding + ajustes visuales */

:root {
    --black: #0A0C0F;
    --surface: #111418;
    --surface2: #181C22;
    --border: #232830;
    --border-light: #2E3540;
    --gold: #C9A84C;
    --gold-dim: #8A6F33;
    --gold-glow: rgba(201,168,76,0.15);
    --green: #2ECC71;
    --green-dim: rgba(46,204,113,0.12);
    --red: #E74C3C;
    --red-dim: rgba(231,76,60,0.12);
    --text: #E8ECF0;
    --text-muted: #7A8494;
    --text-dim: #4A5260;
    --white: #FFFFFF;
    --nav-bg: rgba(10,12,15,0.85);
  }

  /* ── LIGHT MODE ── */
  body.light {
    --black: #F5F6F8;
    --surface: #FFFFFF;
    --surface2: #F0F1F4;
    --border: #E2E4E9;
    --border-light: #CDD0D8;
    --gold: #B8922A;
    --gold-dim: #C9A84C;
    --gold-glow: rgba(185,146,42,0.10);
    --green: #16A34A;
    --green-dim: rgba(22,163,74,0.10);
    --red: #DC2626;
    --red-dim: rgba(220,38,38,0.10);
    --text: #0F1117;
    --text-muted: #5A6070;
    --text-dim: #9AA0AE;
    --white: #0F1117;
    --nav-bg: rgba(245,246,248,0.92);
  }

  /* Theme toggle button */
  .theme-toggle {
    width: 36px; height: 36px; border-radius: 8px;
    background: transparent; border: 1px solid var(--border-light);
    color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; flex-shrink: 0;
  }
  .theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
  .theme-toggle svg { width: 16px; height: 16px; }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { background: var(--black); color: var(--text); font-family: 'Inter', sans-serif; overflow-x: hidden; transition: background 0.3s, color 0.3s; }

  /* Smooth transitions for all themed elements */
  .nav, .sidebar, .auth-card, .module-card, .dash-card, .continue-card,
  .module-item, .lesson-sidebar, .widget, .sw-widget,
  footer, .cta-band, .trade-example, .key-concept, .video-block {
    transition: background 0.3s, border-color 0.3s, color 0.3s;
  }

  /* Light mode: hero grid more subtle */
  body.light .hero-grid { opacity: 0.15; }
  body.light .hero-chart { opacity: 0.3; }

  /* Light mode sidebar */
  body.light .sidebar { background: var(--surface); border-right-color: var(--border); }
  body.light .lesson-sidebar { background: var(--surface); border-right-color: var(--border); }

  /* Light mode nav logo */
  body.light .nav-logo { color: var(--text); }
  body.light .brand-logo .brand-main { color: var(--text); }

  /* Light mode session bar colors */
  body.light .sw-bar-cell[style*="2A6644"] { background: #A8D5B5 !important; }
  body.light .sw-bar-cell[style*="5A4D10"] { background: #E8D8A0 !important; }
  body.light .sw-bar-cell[style*="1A3D6A"] { background: #A8C4E8 !important; }
  body.light .sw-bar-cell[style*="5A1A1A"] { background: #F0A8A8 !important; }

  /* ── SCREENS ── */
  .screen { display: none; min-height: 100vh; }
  .screen.active { display: block; }

  /* ════════════════════════════════════
     LANDING
  ════════════════════════════════════ */
  #landing { background: var(--black); }

  /* NAV */
  .nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 60px;
    background: var(--nav-bg); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, border-color 0.3s;
  }
  .nav-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.18rem; color: var(--white); letter-spacing: -0.02em; cursor: pointer; }
  .brand-logo { display:flex; flex-direction:column; align-items:flex-start; gap:2px; line-height:1.05; }
  .brand-logo .brand-main { display:block; color:var(--white); white-space:nowrap; }
  .brand-logo .brand-main span { color:var(--gold); }
  .brand-logo .brand-sub { display:block; font-family:'Inter',sans-serif; font-size:.56rem; line-height:1; letter-spacing:.16em; text-transform:uppercase; font-weight:700; color:var(--text-dim); margin-top:3px; white-space:nowrap; }
  .nav-links { display: flex; gap: 22px; }
  .nav-links a { color: var(--text-muted); font-size: 0.875rem; text-decoration: none; transition: color 0.2s; cursor: pointer; }
  .nav-links a:hover { color: var(--text); }
  .nav-cta { display: flex; gap: 12px; }
  .btn-ghost { padding: 9px 20px; border: 1px solid var(--border-light); border-radius: 8px; background: transparent; color: var(--text); font-size: 0.875rem; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; }
  .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
  .btn-primary { padding: 9px 20px; border: none; border-radius: 8px; background: var(--gold); color: var(--black); font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; }
  .btn-primary:hover { background: #D4B55C; transform: translateY(-1px); }

  /* HERO */
  .hero {
    padding: 140px 60px 100px;
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px;
  }
  .hero-left { flex: 1; min-width: 0; position: relative; z-index: 1; max-width: 580px; }
  .hero-widgets {
    display: flex; gap: 16px; flex-shrink: 0;
    position: relative; z-index: 1; align-self: flex-start; margin-top: 20px;
  }
  .hero-right { width: 300px; }
  .hero-grid {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(var(--border) 1px, transparent 1px),
      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  }
  .hero-ticker {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    border: 1px solid var(--gold-dim); background: var(--gold-glow);
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--gold);
    margin-bottom: 28px; position: relative;
  }
  .ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

  .hero h1 {
    font-family: 'Syne', sans-serif; font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05;
    letter-spacing: -0.03em; color: var(--white);
    max-width: 600px; position: relative;
  }
  .hero h1 em { font-style: normal; color: var(--gold); }
  .hero-sub {
    margin-top: 24px; max-width: 520px;
    font-size: 1.05rem; line-height: 1.7; color: var(--text-muted);
    position: relative;
  }
  .hero-brand-statement {
    margin-top: 22px;
    max-width: 560px;
    padding: 16px 20px;
    border: 1px solid rgba(201,168,76,.34);
    background: var(--gold-glow);
    border-radius: 18px;
    color: var(--text);
    font-size: .96rem;
    line-height: 1.7;
    font-weight: 600;
    position: relative;
    box-shadow: 0 14px 34px rgba(0,0,0,.10);
  }
  .hero-value-card {
    flex-shrink:0;
    width:min(420px, 38vw);
    align-self:center;
    position:relative;
    z-index:1;
    padding:30px;
    border-radius:22px;
    border:1px solid rgba(201,168,76,.28);
    background:linear-gradient(180deg, rgba(201,168,76,.09), var(--surface));
    box-shadow:0 24px 70px rgba(0,0,0,.22);
  }
  .hero-value-kicker,
  .brand-card-kicker {
    font-family:'JetBrains Mono',monospace;
    color:var(--gold);
    font-size:.72rem;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-weight:700;
    margin-bottom:14px;
  }
  .hero-value-card h3,
  .brand-intro-card h3 {
    font-family:'Syne',sans-serif;
    font-size:1.45rem;
    line-height:1.15;
    letter-spacing:-.02em;
    color:var(--white);
    margin-bottom:14px;
  }
  .hero-value-card p,
  .brand-intro-card p {
    color:var(--text-muted);
    font-size:.92rem;
    line-height:1.75;
  }
  .hero-value-list {
    display:grid;
    gap:10px;
    margin-top:22px;
  }
  .hero-value-list span {
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--text);
    font-size:.86rem;
    line-height:1.45;
  }
  .hero-value-list span::before {
    content:'';
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--gold);
    box-shadow:0 0 0 4px var(--gold-glow);
    flex-shrink:0;
  }
  .hero-actions { display: flex; gap: 16px; margin-top: 44px; position: relative; }
  .btn-large {
    padding: 16px 32px; border-radius: 10px; font-size: 1rem;
    font-weight: 600; cursor: pointer; transition: all 0.2s;
    font-family: 'Inter', sans-serif;
  }
  .btn-large.primary { background: var(--gold); color: var(--black); border: none; }
  .btn-large.primary:hover { background: #D4B55C; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,168,76,0.3); }
  .btn-large.secondary { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
  .btn-large.secondary:hover { border-color: var(--text-muted); }

  /* STATS */
  .hero-stats { display: flex; gap: 48px; margin-top: 64px; position: relative; }
  .stat-item { }
  .stat-num { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--white); }
  .stat-num span { color: var(--gold); }
  .stat-label { font-size: 0.8rem; color: var(--text-dim); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.08em; }

  /* CHART DECO */
  .hero-chart {
    position: absolute; right: 0; top: 100px; width: 520px; opacity: 0.6;
  }

  /* BRAND / POSITIONING SECTIONS */
  .brand-intro-section { padding-top:80px; padding-bottom:70px; }
  .brand-intro-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr); gap:34px; align-items:start; margin-top:34px; }
  .brand-intro-copy { color:var(--text-muted); font-size:.96rem; line-height:1.86; max-width:840px; }
  .brand-intro-copy p { margin:0 0 18px; }
  .brand-intro-copy strong,
  .brand-intro-card strong { color:var(--text); font-weight:800; }
  .brand-intro-card,
  .trading-patience-card { background:var(--surface); border:1px solid var(--border); border-left:3px solid var(--gold); border-radius:18px; padding:28px; box-shadow:0 18px 50px rgba(0,0,0,.16); }
  .trading-patience-section { padding-top:60px; padding-bottom:70px; }
  .trading-patience-copy { max-width:980px; margin-top:32px; color:var(--text-muted); font-size:.98rem; line-height:1.88; }
  .trading-patience-copy p { margin:0 0 20px; }
  .trading-patience-closing {
    margin-top:30px;
    padding:22px 24px;
    border:1px solid rgba(201,168,76,.34);
    background:var(--surface);
    border-radius:18px;
    color:var(--text);
    font-weight:700;
    line-height:1.75;
    box-shadow:0 16px 44px rgba(0,0,0,.14);
  }

  /* MODULES SECTION */
  .section { padding: 100px 60px; }
  .section-tag {
    font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
    color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em;
    margin-bottom: 16px;
  }
  .section-title {
    font-family: 'Syne', sans-serif; font-size: 2.4rem; font-weight: 800;
    color: var(--white); letter-spacing: -0.02em; line-height: 1.1;
    max-width: 560px;
  }
  .section-sub { color: var(--text-muted); margin-top: 16px; max-width: 480px; line-height: 1.7; }

  .modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
  .module-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 28px;
    transition: all 0.25s; cursor: pointer; position: relative; overflow: hidden;
  }
  .module-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0; transition: opacity 0.3s;
  }
  .module-card:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
  .module-card:hover::before { opacity: 1; }
  .module-level {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 16px;
  }
  .level-beginner { background: var(--green-dim); color: var(--green); }
  .level-neutral { background: rgba(52,152,219,0.12); color: #3498DB; }
  .level-intermediate { background: rgba(201,168,76,0.12); color: var(--gold); }
  .level-advanced { background: var(--red-dim); color: var(--red); }
  .module-num { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--text-dim); margin-bottom: 10px; }
  .module-title { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
  .module-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
  .module-meta { display: flex; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
  .meta-item { font-size: 0.78rem; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }

  /* CTA BAND */
  .cta-band {
    margin: 0 60px 80px; padding: 60px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 20px; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between;
  }
  .cta-band::before {
    content: ''; position: absolute; left: -100px; top: -100px;
    width: 300px; height: 300px; border-radius: 50%;
    background: var(--gold-glow); filter: blur(60px);
  }
  .cta-band-text h2 { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--white); }
  .cta-band-text p { color: var(--text-muted); margin-top: 8px; }

  /* FOOTER */
  footer {
    padding: 40px 60px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
  }
  footer p { font-size: 0.8rem; color: var(--text-dim); }

  /* ════════════════════════════════════
     AUTH SCREEN
  ════════════════════════════════════ */
  #auth {
    background: var(--black);
    display: none; align-items: center; justify-content: center;
    min-height: 100vh; padding: 40px;
  }
  #auth.active { display: flex; }

  .auth-card {
    width: 100%; max-width: 420px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 20px; padding: 48px;
  }
  .auth-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.22rem; color: var(--white); margin-bottom: 36px; }
  .auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
  .auth-tab {
    flex: 1; padding: 10px; text-align: center; font-size: 0.9rem;
    color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent;
    transition: all 0.2s; margin-bottom: -1px;
  }
  .auth-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
  .form-group { margin-bottom: 20px; }
  .form-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
  .form-input {
    width: 100%; padding: 13px 16px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text); font-size: 0.925rem;
    font-family: 'Inter', sans-serif; outline: none; transition: border-color 0.2s;
  }
  .form-input:focus { border-color: var(--gold); }
  .form-input::placeholder { color: var(--text-dim); }
  .form-submit {
    width: 100%; padding: 14px; background: var(--gold); border: none;
    border-radius: 10px; color: var(--black); font-weight: 700; font-size: 0.95rem;
    cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s; margin-top: 8px;
  }
  .form-submit:hover { background: #D4B55C; }
  .auth-back { text-align: center; margin-top: 24px; font-size: 0.8rem; color: var(--text-muted); cursor: pointer; }
  .auth-back:hover { color: var(--gold); }
  .auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
  .auth-divider hr { flex: 1; border: none; border-top: 1px solid var(--border); }
  .auth-divider span { font-size: 0.78rem; color: var(--text-dim); }

  .auth-status {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(201,168,76,.22);
    background: rgba(201,168,76,.07);
    color: var(--text-muted);
    font-size: .82rem;
    line-height: 1.45;
    display: none;
  }
  .auth-status.ok { border-color: rgba(46,204,113,.28); background: rgba(46,204,113,.08); color: #9FE2B0; }
  .auth-status.error { border-color: rgba(231,76,60,.32); background: rgba(231,76,60,.08); color: #F0A8A8; }


  /* ════════════════════════════════════
     DASHBOARD
  ════════════════════════════════════ */
  #dashboard { display: none; }
  #dashboard.active { display: flex; min-height: 100vh; }

  .sidebar {
    width: 260px; background: var(--surface); border-right: 1px solid var(--border);
    padding: 32px 20px; display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto;
  }
  .sidebar-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.02rem; color: var(--white); padding: 0 12px; margin-bottom: 40px; }
  .sidebar-section-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); padding: 0 12px; margin-bottom: 8px; margin-top: 24px; }
  .sidebar-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 8px; cursor: pointer;
    font-size: 0.875rem; color: var(--text-muted); transition: all 0.15s;
    margin-bottom: 2px;
  }
  .sidebar-item:hover { background: var(--surface2); color: var(--text); }
  .sidebar-item.active { background: var(--gold-glow); color: var(--gold); border: 1px solid var(--border); }
  .sidebar-item svg { flex-shrink: 0; }
  .sidebar-progress { margin-top: auto; padding: 20px 12px 0; }
  .progress-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
  .progress-bar { height: 4px; background: var(--surface2); border-radius: 999px; overflow: hidden; }
  .progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); border-radius: 999px; width: 18%; }

  .main-content { margin-left: 260px; flex: 1; padding: 40px 48px; }
  .dash-header { margin-bottom: 40px; }
  .dash-greeting { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
  .dash-title { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--white); }

  /* Progress cards */
  .dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
  .dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
  .dash-card-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
  .dash-card-value { font-family: 'Syne', sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--white); }
  .dash-card-sub { font-size: 0.8rem; color: var(--text-dim); margin-top: 4px; }
  .dash-card-accent { border-color: var(--gold-dim); }
  .dash-card-accent .dash-card-value { color: var(--gold); }

  /* Continue learning */
  .section-heading { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 20px; }
  .continue-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 28px;
    display: flex; align-items: center; gap: 24px;
    margin-bottom: 32px; cursor: pointer; transition: all 0.2s;
  }
  .continue-card:hover { border-color: var(--border-light); }
  .continue-thumb {
    width: 80px; height: 60px; border-radius: 8px;
    background: linear-gradient(135deg, var(--gold-dim), #3A2800);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .continue-info { flex: 1; }
  .continue-module { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 4px; font-family: 'JetBrains Mono', monospace; }
  .continue-title { font-weight: 600; color: var(--white); margin-bottom: 10px; }
  .continue-bar { height: 3px; background: var(--surface2); border-radius: 999px; }
  .continue-bar-fill { height: 100%; width: 35%; background: var(--gold); border-radius: 999px; }
  .continue-btn { padding: 10px 20px; background: var(--gold); color: var(--black); border: none; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; white-space: nowrap; }

  /* All modules */
  .modules-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .module-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 22px; cursor: pointer; transition: all 0.2s;
    display: flex; gap: 16px; align-items: flex-start;
  }
  .module-item:hover { border-color: var(--border-light); transform: translateY(-2px); }
  .module-icon {
    width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
  }
  .icon-green { background: var(--green-dim); }
  .icon-gold { background: var(--gold-glow); }
  .icon-red { background: var(--red-dim); }
  .module-item-title { font-weight: 600; color: var(--white); font-size: 0.9rem; margin-bottom: 4px; }
  .module-item-sub { font-size: 0.8rem; color: var(--text-muted); }
  .module-item-badge {
    margin-top: 10px; display: inline-block;
    padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 500;
  }

  /* ════════════════════════════════════
     LESSON SCREEN
  ════════════════════════════════════ */
  #lesson { display: none; }
  #lesson.active { display: flex; min-height: 100vh; }

  .lesson-sidebar {
    width: 300px; background: var(--surface); border-right: 1px solid var(--border);
    position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto;
  }
  .lesson-sidebar-header {
    padding: 24px 20px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
  }
  .back-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.875rem; display: flex; align-items: center; gap: 6px; }
  .back-btn:hover { color: var(--gold); }
  .lesson-module-title { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--white); padding: 20px; font-size: 0.95rem; border-bottom: 1px solid var(--border); }
  .lesson-list { padding: 12px; }
  .lesson-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px; border-radius: 8px; cursor: pointer;
    font-size: 0.85rem; color: var(--text-muted); transition: all 0.15s;
    margin-bottom: 2px;
  }
  .lesson-item:hover { background: var(--surface2); color: var(--text); }
  .lesson-item.active { background: var(--gold-glow); color: var(--gold); border: 1px solid var(--border); }
  .lesson-item.done { color: var(--green); }
  .lesson-check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-light); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; }
  .lesson-check.done { background: var(--green); border-color: var(--green); }
  .lesson-check.active { border-color: var(--gold); }

  .lesson-main { margin-left: 300px; flex: 1; }
  .lesson-topbar {
    padding: 20px 48px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    background: var(--black); position: sticky; top: 0; z-index: 10;
  }
  .lesson-progress-info { font-size: 0.8rem; color: var(--text-muted); }
  .lesson-nav { display: flex; gap: 10px; }
  .nav-btn { padding: 8px 18px; border-radius: 7px; font-size: 0.85rem; cursor: pointer; font-family: 'Inter', sans-serif; }
  .nav-prev { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
  .nav-next { background: var(--gold); border: none; color: var(--black); font-weight: 600; }

  .lesson-content { padding: 48px; max-width: 780px; }
  .lesson-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
  .lesson-h1 { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; margin-bottom: 24px; }
  .lesson-body p { color: var(--text-muted); line-height: 1.8; font-size: 0.95rem; margin-bottom: 16px; }
  .lesson-body strong { color: var(--text); }

  /* Video placeholder */
  .video-block {
    width: 100%; aspect-ratio: 16/9; background: var(--surface2);
    border: 1px solid var(--border); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 32px 0; position: relative; overflow: hidden;
  }
  .video-play { width: 60px; height: 60px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.2s; }
  .video-play:hover { transform: scale(1.1); }
  .video-label { position: absolute; bottom: 16px; left: 16px; font-size: 0.75rem; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }

  /* Trade example */
  .trade-example {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 28px; margin: 32px 0;
  }
  .trade-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
  .trade-title { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--white); }
  .trade-badge { padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
  .badge-long { background: var(--green-dim); color: var(--green); }
  .badge-short { background: var(--red-dim); color: var(--red); }
  .trade-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .trade-stat { }
  .trade-stat-label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
  .trade-stat-value { font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; color: var(--text); }
  .trade-stat-value.green { color: var(--green); }
  .trade-stat-value.red { color: var(--red); }

  /* Key concept */
  .key-concept {
    border-left: 3px solid var(--gold); padding: 20px 24px;
    background: var(--gold-glow); border-radius: 0 10px 10px 0;
    margin: 24px 0;
  }
  .key-concept-label { font-size: 0.72rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
  .key-concept p { color: var(--text); font-size: 0.9rem; line-height: 1.7; }

  /* RESPONSIVE TWEAKS */
  @media (max-width: 900px) {
    .nav { padding: 16px 24px; }
    .hero { padding: 140px 24px 80px; flex-direction:column; align-items:flex-start; }
    .hero-chart { display: none; }
    .hero-value-card { width:100%; max-width:640px; }
    .brand-intro-grid { grid-template-columns:1fr; }
    .trading-patience-copy { max-width:100%; }
    .modules-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 24px; }
    .cta-band { margin: 0 24px 60px; flex-direction: column; gap: 24px; }
  }

  /* ── PROYECTION VIEWER: visor profesional por proyección ── */
  .projection-card-real {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
  }
  .projection-card-real:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  }
  .projection-card-thumb {
    height: 150px;
    background: #0d1117;
    position: relative;
    overflow: hidden;
  }
  .projection-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.92;
    transition: transform 0.28s, opacity 0.28s;
  }
  .projection-card-real:hover .projection-card-thumb img {
    transform: scale(1.035);
    opacity: 1;
  }
  .projection-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
  }
  .projection-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    backdrop-filter: blur(10px);
  }
  .projection-badge.long { background: rgba(46,204,113,0.18); color: var(--green); }
  .projection-badge.short { background: rgba(231,76,60,0.18); color: var(--red); }
  .projection-badge.gold { background: rgba(201,168,76,0.18); color: var(--gold); }
  .home-projection-preview { height:150px; }
  .projection-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,12,15,0.18), rgba(10,12,15,0.74));
    pointer-events: none;
  }
  .projection-card-open {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 0.68rem;
    color: var(--gold);
    background: rgba(10,12,15,0.78);
    border: 1px solid rgba(201,168,76,0.35);
    border-radius: 999px;
    padding: 5px 9px;
    font-family: 'Inter', sans-serif;
    z-index: 2;
  }
  .projection-viewer-wrap {
    min-height: 100vh;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.08), transparent 65%), var(--black);
    padding: 24px 34px 34px;
  }
  .projection-viewer-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
  }
  .projection-viewer-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
  }
  .projection-viewer-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.18rem;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .projection-viewer-meta {
    font-family: 'JetBrains Mono', monospace;
    color: var(--gold);
    font-size: 0.78rem;
    border: 1px solid rgba(201,168,76,0.28);
    background: rgba(201,168,76,0.08);
    border-radius: 999px;
    padding: 7px 12px;
    white-space: nowrap;
  }
  .projection-viewer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .projection-viewer-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 9px 14px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
  }
  .projection-viewer-btn:hover { border-color: var(--gold); color: var(--gold); }
  .projection-viewer-main {
    max-width: 1560px;
    margin: 0 auto;
  }
  .projection-image-stage {
    position: relative;
    background: #050608;
    border: 1px solid var(--border);
    border-radius: 16px;
    min-height: calc(100vh - 210px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  }
  .projection-image-stage:fullscreen {
    background: #050608;
    border-radius: 0;
    border: none;
    padding: 24px;
  }
  .projection-image-stage:fullscreen img {
    max-height: 96vh;
    max-width: 96vw;
  }
  #projection-viewer-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 230px);
    width: auto;
    height: auto;
    object-fit: contain;
  }
  .projection-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(10,12,15,0.70);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all 0.18s;
    backdrop-filter: blur(10px);
  }
  .projection-arrow:hover {
    color: var(--gold);
    border-color: rgba(201,168,76,0.55);
    background: rgba(10,12,15,0.90);
  }
  .projection-arrow.prev { left: 16px; }
  .projection-arrow.next { right: 16px; }
  .projection-description-box {
    margin-top: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
  }
  .projection-description-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-bottom: 8px;
  }
  #projection-viewer-description {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.92rem;
  }
  @media (max-width: 900px) {
    .projection-viewer-wrap { padding: 18px 16px 24px; }
    .projection-viewer-topbar { align-items: flex-start; flex-direction: column; }
    .projection-viewer-actions { width: 100%; justify-content: space-between; }
    .projection-image-stage { min-height: 56vh; border-radius: 12px; }
    #projection-viewer-image { max-height: 58vh; }
    .projection-arrow { width: 42px; height: 42px; font-size: 1.35rem; }
    .projection-arrow.prev { left: 8px; }
    .projection-arrow.next { right: 8px; }
  }

  /* ── PROYECCIONES: control por tipo de usuario ── */
  .projection-member-only { display: none; }
  body.projections-member-view .projection-member-only { display: block; }
  body.projections-member-view #projections-upgrade-cta { display: none; }


  /* ── MÓDULO 06 · Volumen ── */
  .module5-topic-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:18px; margin-top:28px; }
  .module5-topic-card { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:24px; cursor:pointer; transition:transform .2s, border-color .2s, background .2s; min-height:150px; position:relative; overflow:hidden; }
  .module5-topic-card:hover { transform:translateY(-2px); border-color:var(--gold); }
  .module5-topic-card.available { border-color:rgba(201,168,76,.35); background:linear-gradient(180deg, rgba(201,168,76,.055), var(--surface)); }
  .module5-topic-card.available::before { content:''; position:absolute; inset:0 auto 0 0; width:3px; background:var(--gold); opacity:.9; }
  .module5-topic-num { font-family:'JetBrains Mono',monospace; font-size:.72rem; color:var(--gold); font-weight:700; margin-bottom:12px; }
  .module5-topic-title { font-family:'Syne',sans-serif; font-weight:800; color:var(--white); font-size:1.02rem; margin-bottom:10px; }
  .module5-topic-desc { color:var(--text-muted); line-height:1.65; font-size:.86rem; }
  .module5-topic-status { display:inline-flex; margin-top:14px; padding:4px 9px; border-radius:999px; font-size:.68rem; font-family:'JetBrains Mono',monospace; background:var(--gold-glow); color:var(--gold); }
  .module5-topic-status.muted { background:var(--surface2); color:var(--text-dim); }
  .volume-layout { display:flex; min-height:100vh; background:var(--black); }
  .volume-sidebar { width:300px; background:var(--surface); border-right:1px solid var(--border); position:fixed; top:0; bottom:0; left:0; overflow-y:auto; }
  .volume-sidebar-header { padding:24px 20px; border-bottom:1px solid var(--border); }
  .volume-sidebar-title { padding:20px; font-family:'Syne',sans-serif; font-weight:800; color:var(--white); border-bottom:1px solid var(--border); line-height:1.35; }
  .volume-sidebar-topic { display:flex; gap:10px; align-items:flex-start; padding:13px 14px; margin:4px 12px; border-radius:9px; color:var(--text-muted); font-size:.84rem; line-height:1.35; border:1px solid transparent; }
  .volume-sidebar-topic.active { background:var(--gold-glow); color:var(--gold); border-color:rgba(201,168,76,.25); }
  .volume-sidebar-topic.locked { opacity:.55; }
  .volume-main { margin-left:300px; width:calc(100% - 300px); }
  .volume-topbar { position:sticky; top:0; z-index:10; background:rgba(10,12,15,.92); backdrop-filter:blur(16px); border-bottom:1px solid var(--border); padding:18px 44px; display:flex; justify-content:space-between; align-items:center; gap:18px; }
  body.light .volume-topbar { background:rgba(245,246,248,.92); }
  .volume-topbar-meta { font-family:'JetBrains Mono',monospace; font-size:.76rem; color:var(--gold); }
  .volume-content { max-width:980px; padding:46px 48px 80px; }
  .volume-hero-card { background:linear-gradient(180deg, rgba(201,168,76,.055), var(--surface)); border:1px solid var(--border); border-left:3px solid var(--gold); border-radius:18px; padding:34px; margin-bottom:36px; box-shadow:0 18px 48px rgba(0,0,0,.18); position:relative; overflow:hidden; }
  .volume-kicker { font-family:'JetBrains Mono',monospace; color:var(--gold); font-size:.76rem; text-transform:uppercase; letter-spacing:.12em; margin-bottom:12px; }
  .volume-hero-card h1 { font-family:'Syne',sans-serif; font-size:2.3rem; line-height:1.05; color:var(--white); letter-spacing:-.03em; margin-bottom:14px; }
  .volume-hero-card p { color:var(--text); font-size:1rem; line-height:1.75; margin:0; }
  .volume-source-note { margin-top:18px; padding-top:16px; border-top:1px solid var(--border); color:var(--text-muted); font-size:.82rem; line-height:1.65; font-style:italic; }
  body.light .volume-hero-card { background:#FFFFFF; border-color:#E2E4E9; border-left-color:var(--gold); box-shadow:0 16px 42px rgba(15,17,23,.08); }
  body.light .volume-hero-card h1 { color:#0F1117; }
  body.light .volume-hero-card p { color:#2C3140; }
  body.light .volume-source-note { color:#697083; border-top-color:#E2E4E9; }
  .volume-article { color:var(--text); }
  .volume-article p { color:var(--text); font-size:.96rem; line-height:1.85; margin:0 0 18px; }
  .volume-section-title { font-family:'Syne',sans-serif; font-size:1.55rem; line-height:1.18; color:var(--white); letter-spacing:-.02em; margin:42px 0 20px; padding-top:6px; }
  .volume-topic-title { font-family:'Syne',sans-serif; font-size:1.18rem; line-height:1.25; color:var(--gold); margin:30px 0 14px; }
  .volume-part-label { margin:28px 0 12px; font-family:'JetBrains Mono',monospace; color:var(--gold); text-transform:uppercase; letter-spacing:.08em; font-size:.78rem; }
  .volume-emphasis-paragraph { color:var(--text) !important; border-left:2px solid rgba(201,168,76,.5); padding-left:16px; }
  .volume-red-highlight { color:#ff7b7b; font-weight:600; }
  .volume-text-strong { color:var(--text); }
  .volume-clean-underline { color:var(--text); text-decoration:underline; text-decoration-color:rgba(232,236,240,.65); text-underline-offset:4px; }
  .volume-subheading-blue { display:block; font-weight:800; color:#6EA8D7; margin:26px 0 12px; }
  .volume-alpha-list { list-style:none; counter-reset:volumeAlpha; margin:6px 0 24px 28px; padding:0; display:grid; gap:10px; }
  .volume-alpha-list li { counter-increment:volumeAlpha; position:relative; padding-left:38px; color:var(--text); font-size:.96rem; line-height:1.75; }
  .volume-alpha-list li::before { content:counter(volumeAlpha, lower-alpha) ")"; position:absolute; left:0; top:0; font-family:'JetBrains Mono',monospace; color:var(--gold); font-weight:800; }
  .volume-question-list { margin:8px 0 24px 34px; padding-left:20px; display:grid; gap:10px; }
  .volume-question-list li { color:var(--text); font-size:.96rem; line-height:1.75; padding-left:4px; }
  .volume-question-list li::marker { color:var(--gold); font-size:1.15em; }
  body.light .volume-clean-underline { text-decoration-color:rgba(15,17,23,.55); }
  .volume-bullet-list { margin:0 0 24px 0; padding:0; list-style:none; display:grid; gap:8px; }
  .volume-bullet-list li { color:var(--text); line-height:1.72; font-size:.94rem; padding-left:25px; position:relative; }
  .volume-bullet-list li::before { content:'•'; color:var(--gold); position:absolute; left:4px; top:0; font-weight:800; }

  .volume-index-link { color: inherit; text-decoration: none; transition: color .18s, text-decoration-color .18s; }
  .volume-index-link:hover { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(201,168,76,.65); text-underline-offset: 4px; }
  .volume-topic-title[id], .volume-section-title[id] { scroll-margin-top: 96px; }
  .volume-subheading-anchor[id] { scroll-margin-top: 96px; }
  .volume-callout { background:var(--surface); border:1px solid rgba(201,168,76,.28); border-left:3px solid var(--gold); border-radius:0 12px 12px 0; padding:18px 20px; margin:24px 0; }
  .volume-callout-label { font-family:'JetBrains Mono',monospace; font-size:.7rem; color:var(--gold); text-transform:uppercase; letter-spacing:.10em; margin-bottom:8px; font-weight:700; }
  .volume-callout p { margin:0; color:var(--text); }
  .volume-table-wrap { margin:24px 0 30px; overflow-x:auto; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
  .volume-table { width:100%; border-collapse:collapse; min-width:620px; }
  .volume-table th { background:linear-gradient(180deg, rgba(201,168,76,.18), rgba(201,168,76,.10)); color:var(--white); font-size:.78rem; text-align:left; padding:13px 14px; border-bottom:1px solid var(--border); font-weight:700; line-height:1.4; }
  .volume-table td { padding:13px 14px; border-top:1px solid var(--border); color:var(--text); font-size:.84rem; line-height:1.6; vertical-align:top; }
  .volume-table tr:hover td { background:rgba(255,255,255,.015); }
  .volume-figure { margin:30px 0 10px; background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:16px; }
  .volume-figure img { display:block; width:100%; height:auto; border-radius:12px; }
  .volume-caption { color:var(--text-dim); text-align:center; font-size:.82rem; line-height:1.5; font-style:italic; margin:8px 0 28px; }

  /* ── MÓDULO 04 · Gestión del riesgo ── */
  .m4-color-blue { color:#6E9FC6; font-weight:600; }
  .m4-part-prefix { color:#6E9FC6; font-weight:800; }
  .m4-index-prefix { color:#6E9FC6; font-weight:800; }
  .m4-table-wrap { border-radius:0; background:var(--surface); }
  .m4-table { min-width:720px; }
  .m4-table th { color:var(--gold); background:rgba(255,255,255,.025); border-bottom:1px solid var(--border); font-family:'Inter',sans-serif; font-size:.82rem; }
  .m4-table td { color:#88A3C1; background:transparent; border-top:1px solid var(--border); }
  .m4-table tr:hover td { background:rgba(201,168,76,.025); }
  
  /* ── MÓDULO 05 · Psicotrading ── */
  .m5-doc-red { color:#ff7a73; }
  .m5-doc-purple { color:#c08adf; }
  .m5-doc-blue { color:#6E9FC6; font-weight:600; }

  .m5-doc-brown { color:#b69064; }
  .m5-doc-brown.volume-clean-underline { color:#b69064; text-decoration-color:rgba(182,144,100,.72); }
  .m5-doc-bold { font-weight:700; }
  .m5-doc-italic { font-style:italic; }
  .m5-part-prefix { color:#6E9FC6; font-weight:800; }
  .m5-table-wrap { border-radius:14px; background:var(--surface); margin:20px 0 28px; }
  .m5-table th { color:var(--gold); background:rgba(255,255,255,.025); border-bottom:1px solid var(--border); font-family:'Inter',sans-serif; font-size:.82rem; }
  .m5-table td { color:#88A3C1; background:transparent; border-top:1px solid var(--border); }
  .m5-table tr:hover td { background:rgba(201,168,76,.025); }
  .m5-doc-red.volume-clean-underline { color:#ff7a73; text-decoration-color:rgba(255,122,115,.72); }
  .m5-doc-purple.volume-clean-underline { color:#c08adf; text-decoration-color:rgba(192,138,223,.72); }
  .m5-doc-blue.volume-clean-underline { color:#6E9FC6; text-decoration-color:rgba(110,159,198,.72); }
@media (max-width: 1000px) {
    .module5-topic-grid { grid-template-columns:1fr; }
    .volume-sidebar { display:none; }
    .volume-main { margin-left:0; width:100%; }
    .volume-topbar { padding:16px 20px; align-items:flex-start; flex-direction:column; }
    .volume-content { padding:28px 20px 60px; }
    .volume-hero-card { padding:26px 22px; }
    .volume-hero-card h1 { font-size:1.8rem; }
  }


  .m4-doc-red { color:#ff7a73; }
  .m4-doc-purple { color:#c08adf; }
  .m4-doc-blue { color:#6E9FC6; font-weight:600; }
  .m4-doc-bold { font-weight:700; }
  .m4-doc-italic { font-style:italic; }
  .m4-doc-red.volume-clean-underline { color:#ff7a73; text-decoration-color:rgba(255,122,115,.72); }
  .m4-doc-purple.volume-clean-underline { color:#c08adf; text-decoration-color:rgba(192,138,223,.72); }
  .m4-doc-blue.volume-clean-underline { color:#6E9FC6; text-decoration-color:rgba(110,159,198,.72); }




  /* ════════════════════════════════════
     ACCOUNT + MEMBERSHIP SCREENS · v2.2
  ════════════════════════════════════ */
  #account, #membership { display: none; background: var(--black); }
  #account.active, #membership.active { display: flex; min-height: 100vh; }
  .account-main { padding-bottom: 70px; }
  .account-topbar {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    margin-bottom: 26px; padding: 14px 16px;
    border: 1px solid var(--border); border-radius: 16px;
    background: linear-gradient(135deg, rgba(201,168,76,.10), rgba(255,255,255,.025));
  }
  .account-breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: .84rem; }
  .account-secure-dot { width: 8px; height: 8px; border-radius: 999px; background: #2ECC71; box-shadow: 0 0 16px rgba(46,204,113,.55); }
  .account-mode-pill {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px;
    border-radius: 999px; border: 1px solid rgba(46,204,113,.25);
    background: rgba(46,204,113,.10); color: #8ee6a9; font-size: .72rem; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase;
  }
  .account-header {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 22px;
    align-items: stretch; margin-bottom: 24px;
  }
  .account-hero-card, .account-side-card, .account-card, .membership-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
  }
  .account-hero-card { padding: 28px; position: relative; overflow: hidden; }
  .account-hero-card:before {
    content: ''; position: absolute; inset: -120px -120px auto auto; width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(201,168,76,.20), transparent 66%); pointer-events: none;
  }
  .account-kicker { color: var(--gold); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; margin-bottom: 10px; }
  .account-title { font-family: 'Syne', sans-serif; font-size: 2rem; line-height: 1.12; color: var(--white); font-weight: 800; margin-bottom: 10px; }
  .account-subtitle { color: var(--text-muted); max-width: 720px; line-height: 1.65; font-size: .94rem; }
  .account-side-card { padding: 22px; display:flex; flex-direction:column; gap:14px; justify-content:space-between; }
  .account-avatar {
    width: 54px; height: 54px; border-radius: 16px; display:flex; align-items:center; justify-content:center;
    background: linear-gradient(135deg, var(--gold), var(--gold-dim)); color:#111; font-weight:900; font-family:'Syne', sans-serif;
    box-shadow: 0 14px 30px rgba(201,168,76,.18);
  }
  .account-side-name { font-family:'Syne', sans-serif; font-weight:800; color:var(--white); font-size:1.12rem; }
  .account-side-email { color:var(--text-muted); font-size:.82rem; word-break:break-word; }
  .account-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:16px; margin-bottom:22px; }
  .account-card { padding:20px; position:relative; overflow:hidden; }
  .account-card:after {
    content:''; position:absolute; inset:auto -40px -60px auto; width:120px; height:120px;
    background:radial-gradient(circle, rgba(201,168,76,.12), transparent 65%); pointer-events:none;
  }
  .account-card-label { color:var(--text-muted); font-size:.74rem; letter-spacing:.07em; text-transform:uppercase; font-weight:800; margin-bottom:10px; }
  .account-card-value { font-family:'Syne', sans-serif; color:var(--white); font-weight:800; font-size:1.18rem; margin-bottom:6px; word-break:break-word; }
  .account-card-sub { color:var(--text-dim); font-size:.78rem; line-height:1.45; }
  .account-panel-grid { display:grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap:18px; }
  .account-panel-card { background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:22px; margin-bottom:18px; }
  .account-panel-title { font-family:'Syne', sans-serif; color:var(--white); font-size:1.02rem; font-weight:800; margin-bottom:6px; }
  .account-panel-desc { color:var(--text-muted); font-size:.84rem; line-height:1.55; margin-bottom:18px; }
  .account-detail-list { display:grid; gap:12px; }
  .account-detail-row { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:12px 0; border-bottom:1px solid var(--border); }
  .account-detail-row:last-child { border-bottom:none; }
  .account-detail-label { color:var(--text-muted); font-size:.8rem; }
  .account-detail-value { color:var(--text); font-size:.82rem; text-align:right; word-break:break-word; max-width:62%; }
  .account-badge {
    display:inline-flex; align-items:center; gap:6px; padding:6px 9px; border-radius:999px;
    border:1px solid var(--border); background:var(--surface2); color:var(--text-muted); font-size:.72rem; font-weight:800;
  }
  .account-badge.green { color:#77d68f; border-color:rgba(119,214,143,.28); background:rgba(119,214,143,.08); }
  .account-badge.gold { color:var(--gold); border-color:rgba(201,168,76,.28); background:rgba(201,168,76,.08); }
  .account-badge.red { color:#e98282; border-color:rgba(233,130,130,.28); background:rgba(233,130,130,.08); }
  .account-badge.blue { color:#80b7ff; border-color:rgba(128,183,255,.28); background:rgba(128,183,255,.08); }
  .account-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
  .account-btn {
    border:1px solid var(--border); border-radius:11px; padding:10px 13px; background:var(--surface2);
    color:var(--text); cursor:pointer; font-weight:700; font-size:.82rem; transition:.18s ease;
  }
  .account-btn:hover { border-color:rgba(201,168,76,.45); color:var(--gold); transform:translateY(-1px); }
  .account-btn.primary { background:linear-gradient(135deg, var(--gold), var(--gold-dim)); color:#111; border-color:transparent; }
  .account-note {
    margin-top:18px; padding:14px 16px; border-radius:14px;
    border:1px dashed rgba(201,168,76,.34); background:rgba(201,168,76,.07); color:var(--text-muted);
    font-size:.82rem; line-height:1.55;
  }
  .membership-status-card {
    background:linear-gradient(135deg, rgba(201,168,76,.12), rgba(255,255,255,.025));
    border:1px solid rgba(201,168,76,.22); border-radius:20px; padding:28px; margin-bottom:22px; position:relative; overflow:hidden;
  }
  .membership-status-card:before {
    content:''; position:absolute; right:-80px; top:-120px; width:280px; height:280px; border-radius:999px;
    background:radial-gradient(circle, rgba(201,168,76,.20), transparent 66%); pointer-events:none;
  }
  .membership-status-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; position:relative; }
  .membership-status-title { font-family:'Syne', sans-serif; font-size:1.75rem; color:var(--white); font-weight:800; margin-bottom:8px; }
  .membership-status-desc { color:var(--text-muted); line-height:1.6; max-width:680px; }
  .membership-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px; margin-top:20px; }
  .membership-mini { background:rgba(0,0,0,.12); border:1px solid var(--border); border-radius:14px; padding:16px; }
  .membership-mini-label { color:var(--text-muted); font-size:.72rem; letter-spacing:.07em; text-transform:uppercase; font-weight:800; margin-bottom:8px; }
  .membership-mini-value { color:var(--white); font-weight:800; word-break:break-word; }

  .membership-next-list { display:grid; gap:12px; margin-top:2px; }
  .membership-next-item { display:grid; grid-template-columns:32px minmax(0,1fr); gap:12px; align-items:flex-start; padding:10px 0; border-bottom:1px solid var(--border); color:var(--text); font-size:.84rem; line-height:1.55; }
  .membership-next-item:last-child { border-bottom:none; }
  .membership-next-item span { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:999px; border:1px solid rgba(201,168,76,.34); background:rgba(201,168,76,.08); color:var(--gold); font-weight:900; font-size:.72rem; }
  .account-actions.compact { margin-top:16px; }
  body.light #account, body.light #membership { background:#F5F6F8; }
  body.light .account-hero-card, body.light .account-side-card, body.light .account-card, body.light .account-panel-card, body.light .membership-card { background:#FFFFFF; }
  @media (max-width:1100px) {
    .account-header, .account-panel-grid { grid-template-columns:1fr; }
    .account-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .membership-grid { grid-template-columns:1fr; }
  }
  @media (max-width:720px) {
    #account.active, #membership.active { display:block; }
    #account .sidebar, #membership .sidebar { position:relative; width:100%; height:auto; bottom:auto; }
    #account .main-content, #membership .main-content { margin-left:0; padding:28px 20px; }
    .account-grid { grid-template-columns:1fr; }
    .account-title, .membership-status-title { font-size:1.45rem; }
    .account-detail-row { display:block; }
    .account-detail-value { max-width:100%; text-align:left; margin-top:6px; }
  }

  /* ════════════════════════════════════
     ADMIN PANEL · VISUAL MOCKUP ONLY
  ════════════════════════════════════ */
  #admin-panel { display: none; background: var(--black); }
  #admin-panel.active { display: flex; min-height: 100vh; }
  .admin-only-demo { display: none !important; }
  body.admin-visual-mode .admin-only-demo { display: flex !important; }
  .sidebar-item.admin-gold {
    border: 1px solid rgba(201,168,76,.22);
    background: linear-gradient(135deg, rgba(201,168,76,.12), rgba(201,168,76,.035));
    color: var(--gold);
  }
  .admin-main { padding-bottom: 70px; }
  .admin-topbar {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    margin-bottom: 26px; padding: 14px 16px;
    border: 1px solid var(--border); border-radius: 16px;
    background: linear-gradient(135deg, rgba(201,168,76,.10), rgba(255,255,255,.025));
  }
  .admin-breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: .84rem; }
  .admin-secure-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--gold); box-shadow: 0 0 16px rgba(201,168,76,.55); }
  .admin-mode-pill {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px;
    border-radius: 999px; border: 1px solid rgba(201,168,76,.25);
    background: rgba(201,168,76,.10); color: var(--gold); font-size: .72rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
  }
  .admin-header {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 22px;
    align-items: stretch; margin-bottom: 26px;
  }
  .admin-hero-card, .admin-health-card, .admin-card, .admin-panel-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
  }
  .admin-hero-card { padding: 28px; position: relative; overflow: hidden; }
  .admin-hero-card:before {
    content: ''; position: absolute; inset: -120px -120px auto auto; width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(201,168,76,.20), transparent 66%); pointer-events: none;
  }
  .admin-kicker { color: var(--gold); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; margin-bottom: 10px; }
  .admin-title { font-family: 'Syne', sans-serif; font-size: 2rem; line-height: 1.12; color: var(--white); font-weight: 800; margin-bottom: 10px; }
  .admin-subtitle { color: var(--text-muted); max-width: 680px; line-height: 1.65; font-size: .94rem; }
  .admin-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
  .admin-btn {
    border: 1px solid var(--border); border-radius: 11px; padding: 10px 13px; background: var(--surface2);
    color: var(--text); cursor: pointer; font-weight: 650; font-size: .82rem; transition: .18s ease;
  }
  .admin-btn:hover { border-color: rgba(201,168,76,.45); color: var(--gold); transform: translateY(-1px); }
  .admin-btn.primary { background: linear-gradient(135deg, var(--gold), var(--gold-dim)); color: #111; border-color: transparent; }
  .admin-btn.ghost { background: transparent; }
  .admin-health-card { padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
  .admin-health-title { font-family: 'Syne', sans-serif; color: var(--white); font-weight: 750; font-size: 1rem; }
  .admin-health-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .admin-health-row:last-child { border-bottom: none; }
  .admin-health-label { color: var(--text-muted); font-size: .82rem; }
  .admin-health-status { font-size: .78rem; font-weight: 750; color: #77d68f; }
  .admin-health-status.warn { color: #e7c96d; }
  .admin-metrics {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px;
  }
  .admin-card { padding: 20px; position: relative; overflow: hidden; }
  .admin-card:after {
    content: ''; position: absolute; inset: auto -40px -60px auto; width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(201,168,76,.13), transparent 65%); pointer-events: none;
  }
  .admin-card-label { color: var(--text-muted); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 750; margin-bottom: 11px; }
  .admin-card-value { font-family: 'Syne', sans-serif; color: var(--white); font-weight: 800; font-size: 1.7rem; margin-bottom: 6px; }
  .admin-card-sub { color: var(--text-dim); font-size: .8rem; }
  .admin-card-sub.positive { color: #77d68f; }
  .admin-card-sub.warning { color: #e7c96d; }
  .admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 20px; }
  .admin-tab {
    padding: 10px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
    color: var(--text-muted); font-size: .82rem; font-weight: 700; cursor: pointer; transition: .18s ease;
  }
  .admin-tab:hover { color: var(--text); border-color: rgba(201,168,76,.35); }
  .admin-tab.active { color: var(--gold); background: rgba(201,168,76,.10); border-color: rgba(201,168,76,.35); }
  .admin-panel-section { display: none; }
  .admin-panel-section.active { display: block; }
  .admin-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
  .admin-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .admin-panel-card { padding: 22px; margin-bottom: 18px; }
  .admin-panel-title { font-family: 'Syne', sans-serif; color: var(--white); font-size: 1.02rem; font-weight: 750; margin-bottom: 6px; }
  .admin-panel-desc { color: var(--text-muted); font-size: .84rem; line-height: 1.55; margin-bottom: 18px; }
  .admin-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
  .admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
  .admin-table th, .admin-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: .82rem; }
  .admin-table th { color: var(--gold); background: rgba(201,168,76,.07); letter-spacing: .06em; text-transform: uppercase; font-size: .7rem; }
  .admin-table tr:last-child td { border-bottom: none; }
  .admin-table td { color: var(--text-muted); }
  .admin-table strong { color: var(--text); font-weight: 700; }
  .admin-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface2); color: var(--text-muted); font-size: .72rem; font-weight: 750;
  }
  .admin-badge.green { color: #77d68f; border-color: rgba(119,214,143,.28); background: rgba(119,214,143,.08); }
  .admin-badge.gold { color: var(--gold); border-color: rgba(201,168,76,.28); background: rgba(201,168,76,.08); }
  .admin-badge.red { color: #e98282; border-color: rgba(233,130,130,.28); background: rgba(233,130,130,.08); }
  .admin-badge.blue { color: #80b7ff; border-color: rgba(128,183,255,.28); background: rgba(128,183,255,.08); }
  .admin-filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
  .admin-filter {
    background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted);
    border-radius: 10px; padding: 10px 12px; font-size: .8rem; min-width: 150px;
  }
  .admin-action-card {
    background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(201,168,76,.055));
    border: 1px solid var(--border); border-radius: 16px; padding: 18px; min-height: 150px;
    display: flex; flex-direction: column; justify-content: space-between;
  }
  .admin-action-icon { font-size: 1.3rem; margin-bottom: 10px; }
  .admin-action-title { color: var(--white); font-weight: 800; margin-bottom: 6px; }
  .admin-action-desc { color: var(--text-muted); font-size: .8rem; line-height: 1.45; }
  .admin-note {
    margin-top: 18px; padding: 14px 16px; border-radius: 14px;
    border: 1px dashed rgba(201,168,76,.34); background: rgba(201,168,76,.07); color: var(--text-muted);
    font-size: .82rem; line-height: 1.55;
  }
  .admin-sidebar-note {
    margin: 18px 12px 0; padding: 12px; border-radius: 12px; background: rgba(201,168,76,.07);
    border: 1px solid rgba(201,168,76,.18); color: var(--text-dim); font-size: .74rem; line-height: 1.45;
  }
  .admin-progress-line { height: 8px; border-radius: 999px; background: var(--surface2); overflow: hidden; border: 1px solid var(--border); }
  .admin-progress-line span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); }
  .admin-chart-mini { display: flex; align-items: end; gap: 8px; height: 110px; margin-top: 10px; padding-top: 8px; }
  .admin-chart-mini div { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, rgba(201,168,76,.78), rgba(201,168,76,.18)); border: 1px solid rgba(201,168,76,.20); }
  body.light #admin-panel { background: #F5F6F8; }
  body.light .admin-hero-card, body.light .admin-health-card, body.light .admin-card, body.light .admin-panel-card { background: #FFFFFF; }
  @media (max-width: 1100px) {
    .admin-header, .admin-grid-2 { grid-template-columns: 1fr; }
    .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-grid-3 { grid-template-columns: 1fr; }
  }
  @media (max-width: 720px) {
    #admin-panel.active { display: block; }
    #admin-panel .sidebar { position: relative; width: 100%; height: auto; bottom: auto; }
    #admin-panel .main-content { margin-left: 0; padding: 28px 20px; }
    .admin-metrics { grid-template-columns: 1fr; }
    .admin-title { font-size: 1.55rem; }
  }


  /* ════════════════════════════════════
     SESSION STATE MENU
  ════════════════════════════════════ */
  .session-menu-wrap {
    position: relative;
    display: none;
  }
  body.session-active #nav-auth-cta { display: none; }
  body.session-active .session-menu-wrap { display: block; }
  .session-button {
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(46, 204, 113, .22);
    background: linear-gradient(135deg, rgba(46, 204, 113, .10), rgba(201, 168, 76, .08));
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    font-weight: 750;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
  }
  .session-button:hover {
    transform: translateY(-1px);
    border-color: rgba(46, 204, 113, .42);
    background: linear-gradient(135deg, rgba(46, 204, 113, .16), rgba(201, 168, 76, .10));
  }
  .session-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2ecc71;
    box-shadow: 0 0 0 4px rgba(46,204,113,.12), 0 0 12px rgba(46,204,113,.55);
    flex: 0 0 auto;
  }
  .session-text { color: var(--text-muted); font-weight: 650; }
  .session-label { color: var(--white); }
  .session-caret { color: var(--gold); font-size: .72rem; transform: translateY(-1px); }
  .session-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 230px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(18, 21, 26, .98);
    box-shadow: 0 18px 60px rgba(0,0,0,.38);
    backdrop-filter: blur(18px);
    z-index: 1000;
    display: none;
  }
  .session-dropdown.open { display: block; }
  .session-dropdown-head {
    padding: 11px 11px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
  }
  .session-dropdown-head strong {
    display: block;
    color: var(--white);
    font-size: .84rem;
    margin-bottom: 3px;
  }
  .session-dropdown-head span {
    display: block;
    color: var(--text-dim);
    font-size: .72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .session-dropdown button {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 10px 11px;
    border-radius: 9px;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    font-weight: 650;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
  }
  .session-dropdown button:hover {
    background: rgba(201,168,76,.09);
    color: var(--white);
  }
  .session-dropdown button.danger { color: #e98282; }
  .session-dropdown button.danger:hover {
    background: rgba(233,130,130,.10);
    color: #ffb3b3;
  }
  .session-menu-admin { display: none !important; }
  body.session-admin .session-menu-admin { display: block !important; }
  body.session-admin .session-menu-student { display: none !important; }
  .session-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(46,204,113,.28);
    background: rgba(14, 24, 18, .96);
    color: #9FE2B0;
    box-shadow: 0 18px 55px rgba(0,0,0,.34);
    font-size: .84rem;
    font-weight: 650;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .session-toast.show {
    opacity: 1;
    transform: translateY(0);
  }
  body.light .session-dropdown { background: rgba(255,255,255,.98); }
  body.light .session-button { background: #fff; }
  body.light .session-label, body.light .session-dropdown-head strong { color: #111827; }
  @media (max-width: 720px) {
    .session-text { display: none; }
    .session-button { padding: 0 11px; }
    .session-dropdown { right: -54px; width: 220px; }
  }




  /* ════════════════════════════════════
     ACCESS CONTROL · MEMBERSHIP LOCK
  ════════════════════════════════════ */
  #access-locked { background: var(--black); }
  .access-lock-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 70px;
    position: relative;
    overflow: hidden;
  }
  .access-lock-shell::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
      radial-gradient(circle at 25% 20%, rgba(201,168,76,.18), transparent 34%),
      radial-gradient(circle at 75% 70%, rgba(60,110,170,.11), transparent 34%);
    pointer-events: none;
  }
  .access-lock-card {
    position: relative;
    z-index: 1;
    width: min(880px, 100%);
    background: linear-gradient(145deg, rgba(18,21,27,.96), rgba(10,12,15,.98));
    border: 1px solid rgba(201,168,76,.22);
    border-radius: 26px;
    padding: 42px;
    box-shadow: 0 26px 80px rgba(0,0,0,.36);
  }
  body.light .access-lock-card { background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(245,246,248,.98)); }
  .access-lock-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(201,168,76,.28);
    border-radius: 999px;
    background: rgba(201,168,76,.08);
    color: var(--gold);
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 22px;
  }
  .access-lock-card h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.04;
    margin-bottom: 18px;
    color: var(--white);
  }
  body.light .access-lock-card h2 { color: var(--text); }
  .access-lock-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 680px;
    margin-bottom: 26px;
  }
  .access-lock-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 32px;
  }
  .access-lock-mini {
    border: 1px solid var(--border);
    background: rgba(255,255,255,.025);
    border-radius: 16px;
    padding: 16px;
  }
  .access-lock-mini strong { display: block; color: var(--text); font-size: .9rem; margin-bottom: 6px; }
  .access-lock-mini span { display: block; color: var(--text-muted); font-size: .78rem; line-height: 1.45; }
  .access-lock-actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .access-lock-actions button,
  .access-lock-actions a {
    border: none;
    border-radius: 999px;
    padding: 13px 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: transform .16s, border-color .16s, background .16s;
  }
  .access-lock-actions button:hover,
  .access-lock-actions a:hover { transform: translateY(-1px); }
  .access-lock-actions .primary { background: var(--gold); color: #0b0d10; }
  .access-lock-actions .secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
  @media (max-width: 760px) {
    .access-lock-card { padding: 28px 22px; }
    .access-lock-grid { grid-template-columns: 1fr; }
  }

/* ═══════════════════════════════════════════════════
   v2.11 · Pagos manuales · cierre de flujo
═══════════════════════════════════════════════════ */
.payment-prep-card {
  background: linear-gradient(135deg, var(--surface), var(--surface2));
  border: 1px solid rgba(201,168,76,.24);
  border-radius: 22px;
  padding: 24px;
  margin-top: 22px;
  box-shadow: 0 22px 60px rgba(0,0,0,.24);
  color: var(--text);
}
.payment-prep-card .account-panel-title,
.payment-prep-card .payment-provider-title,
.payment-prep-card .admin-table strong {
  color: var(--text);
}
.payment-prep-card .account-panel-desc,
.payment-prep-card .payment-provider-desc,
.payment-prep-card .admin-table td {
  color: var(--text-muted);
}
.payment-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.payment-provider-card {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 18px;
  min-height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.payment-provider-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.payment-provider-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.payment-provider-desc {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: .86rem;
  margin-bottom: 16px;
}
.payment-provider-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-contact-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.payment-contact-card {
  border-radius: 18px;
  border: 1px solid rgba(201,168,76,.20);
  background: rgba(255,255,255,.03);
  padding: 16px;
}
.payment-contact-card-warning {
  border-color: rgba(80,160,230,.26);
  background: rgba(80,160,230,.08);
}
.payment-contact-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}
.payment-contact-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.payment-contact-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: .84rem;
}
.payment-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.payment-contact-list span {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(201,168,76,.24);
  background: rgba(201,168,76,.08);
  color: var(--text);
  padding: 7px 10px;
  font-size: .74rem;
  font-weight: 800;
}
body.light .payment-contact-card {
  background: #fff;
  border-color: rgba(15,17,23,.10);
}
body.light .payment-contact-card-warning {
  background: rgba(80,160,230,.07);
  border-color: rgba(80,160,230,.18);
}
@media (max-width: 900px) {
  .payment-contact-guide { grid-template-columns: 1fr; }
}

.payment-request-status {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: .85rem;
  border: 1px solid rgba(201,168,76,.24);
  background: rgba(201,168,76,.08);
  color: var(--text);
}
.payment-request-status.show { display: block; }
.payment-request-status.ok {
  border-color: rgba(68, 191, 111, .35);
  background: rgba(68, 191, 111, .10);
}
.payment-request-status.error {
  border-color: rgba(231, 76, 60, .35);
  background: rgba(231, 76, 60, .10);
}
.payment-history-wrap { margin-top: 8px; }
body.light .payment-prep-card {
  background: linear-gradient(135deg, #FFFFFF, #F8F6EF);
  border-color: rgba(184,146,42,.24);
  box-shadow: 0 18px 44px rgba(15,17,23,.10);
}
body.light .payment-provider-card {
  background: #FFFFFF;
  border-color: rgba(15,17,23,.10);
  box-shadow: 0 12px 28px rgba(15,17,23,.055);
}
body.light .payment-prep-card .admin-table-wrap {
  background: #FFFFFF;
  border-color: rgba(15,17,23,.12);
}
body.light .payment-prep-card .admin-table th {
  background: rgba(184,146,42,.10);
  color: var(--gold);
}
body.light .payment-prep-card .admin-table td {
  background: #FFFFFF;
  color: var(--text-muted);
}
body.light .payment-prep-card .admin-table strong {
  color: var(--text);
}
@media (max-width: 900px) {
  .payment-provider-grid { grid-template-columns: 1fr; }
}

.proof-flow-guide {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(201,168,76,.24);
  background: rgba(201,168,76,.08);
  color: var(--text);
}
.proof-flow-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.proof-flow-guide ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: .86rem;
}
.proof-user-action {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 260px;
}
.proof-channel-select {
  min-width: 135px;
  border-radius: 999px;
  border: 1px solid rgba(201,168,76,.28);
  background: rgba(255,255,255,.05);
  color: var(--text);
  padding: 10px 12px;
  font-weight: 700;
  font-size: .78rem;
  outline: none;
}
.proof-channel-select option {
  color: #111827;
}
.proof-sent-label {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(80,160,230,.12);
  border: 1px solid rgba(80,160,230,.28);
  color: var(--text);
  font-size: .75rem;
  font-weight: 800;
}
body.light .proof-flow-guide {
  background: rgba(184,146,42,.08);
  border-color: rgba(184,146,42,.22);
}
body.light .proof-channel-select {
  background: #fff;
  color: var(--text);
  border-color: rgba(15,17,23,.14);
}
@media (max-width: 760px) {
  .proof-user-action { min-width: 0; }
  .proof-user-action .account-btn,
  .proof-channel-select { width: 100%; justify-content: center; }
}

/* v2.12 · Recuperación y cambio de contraseña */
.auth-inline-action {
  display:flex;
  justify-content:flex-end;
  margin:-8px 0 16px;
}
.auth-inline-action button {
  border:none;
  background:transparent;
  color:var(--gold);
  font-size:.82rem;
  font-weight:700;
  cursor:pointer;
  padding:0;
  font-family:'Inter', sans-serif;
}
.auth-inline-action button:hover { text-decoration:underline; }
.account-security-card { grid-column:1 / -1; }
.security-form-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px;
  margin-bottom:4px;
}
.account-security-status { max-width:720px; }
body.light .auth-status.ok { color:#18733C; background:rgba(46,204,113,.12); border-color:rgba(24,115,60,.22); }
body.light .auth-status.error { color:#9F2B2B; background:rgba(231,76,60,.10); border-color:rgba(159,43,43,.24); }
@media (max-width:900px) {
  .security-form-grid { grid-template-columns:1fr; }
}

/* v2.12.1 · Confirmación y visualización de contraseña */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}
.password-field .form-input {
  padding-right: 50px;
}
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .2s ease, background .2s ease, opacity .2s ease;
}
.password-toggle:hover,
.password-toggle.active {
  color: var(--gold);
  background: rgba(184,146,42,.10);
}
.password-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
body.light .password-toggle:hover,
body.light .password-toggle.active {
  background: rgba(184,146,42,.12);
}

/* v2.12.2 · Verificación de correo */
#email-verification { display: none; }
#email-verification.active { display: block; min-height: 100vh; }
.verification-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  background:
    radial-gradient(circle at top left, rgba(201,168,76,.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(46,204,113,.08), transparent 30%),
    var(--bg);
}
.verification-card {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow);
  text-align: center;
}
.verification-card .auth-logo { margin-bottom: 18px; }
.verification-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.25);
  font-size: 1.55rem;
  margin-bottom: 18px;
}
.verification-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--white);
  margin: 0 0 12px;
}
.verification-card p {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 10px;
}
.verification-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: .86rem;
  margin: 6px 0 14px;
  word-break: break-all;
}
.verification-note { font-size: .9rem; }
.verification-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
}
.verification-secondary {
  width: 100%;
  justify-content: center;
  padding: 13px 14px;
  border-radius: 10px;
}
body.light .verification-card h2 { color: var(--black); }
body.light .verification-card { background: #fff; }

/* v2.13 · Panel administrador de noticias */
.admin-news-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.admin-news-url { grid-column: span 2; }
.admin-news-summary {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  margin-top: 10px;
  line-height: 1.55;
  font-family: 'Inter', sans-serif;
}
.news-dynamic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.news-dynamic-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.news-dynamic-card-inner { padding: 20px 18px; }
.news-dynamic-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.news-dynamic-chip { font-size: .6rem; font-weight: 800; padding: 3px 8px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; }
.news-dynamic-date { font-size: .65rem; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
.news-dynamic-access-chip {
  font-size: .58rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  background: rgba(201,168,76,.14);
  color: var(--gold);
}

.news-dynamic-title { font-weight: 700; font-size: .9rem; color: var(--white); margin-bottom: 8px; line-height: 1.4; }
.news-dynamic-summary { font-size: .78rem; color: var(--text-muted); line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-dynamic-source { font-size: .68rem; color: var(--gold); margin-top: 12px; font-family: 'JetBrains Mono', monospace; }
.news-empty-state { color: var(--text-muted); font-size: .84rem; line-height: 1.55; padding: 18px; border: 1px dashed var(--border); border-radius: 14px; }
body.light .news-dynamic-title { color: var(--text); }
@media (max-width: 900px) {
  .admin-news-form-grid { grid-template-columns: 1fr; }
  .admin-news-url { grid-column: auto; }
}

/* v2.13.2 · Imágenes de noticias con Firebase Storage */
.admin-news-image-field {
  grid-column: span 2;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.025);
}
.admin-news-image-field label {
  display: block;
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.admin-news-image-field input[type="file"] {
  width: 100%;
  cursor: pointer;
}
.admin-news-image-status {
  margin-top: 8px;
  font-size: .72rem;
  color: var(--text-dim);
  line-height: 1.45;
}
.admin-news-image-preview {
  display: block;
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 8px;
}
.admin-news-thumb {
  width: 70px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}
.news-dynamic-image {
  position: relative;
  height: 135px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--border);
}
.news-dynamic-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}
.news-dynamic-image-fallback {
  display: flex;
  align-items: flex-end;
  padding: 14px;
  isolation: isolate;
}
.news-dynamic-image-glow {
  position: absolute;
  inset: -40% -20%;
  opacity: .35;
  filter: blur(20px);
  z-index: -1;
}
.news-dynamic-image-label {
  position: relative;
  z-index: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(201,168,76,.35);
  background: rgba(0,0,0,.22);
}
body.light .admin-news-image-field { background: rgba(0,0,0,.025); }
body.light .news-dynamic-image-label { background: rgba(255,255,255,.75); color: #8a6b17; }
@media (max-width: 900px) {
  .admin-news-image-field { grid-column: auto; }
  .news-dynamic-image { height: 120px; }
}


/* v2.13.3 · Vista individual de noticias corregida */
body.news-detail-open {
  overflow: hidden;
}

.news-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.news-detail-modal.is-open {
  display: flex;
}

.news-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(10px);
}

.news-detail-dialog {
  position: relative;
  width: min(980px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

body.light .news-detail-dialog {
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
}

.news-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

body.light .news-detail-close {
  background: rgba(255, 255, 255, .88);
  color: #111827;
}

.news-detail-hero-image {
  width: 100%;
  min-height: 260px;
  max-height: 440px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.news-detail-hero-image img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.news-detail-hero-fallback {
  display: block;
  max-height: none;
}

.news-detail-hero-fallback .news-dynamic-image {
  height: 300px;
  border-radius: 0;
  margin: 0;
}

.news-detail-body {
  padding: 30px;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.news-detail-public-chip {
  border: 1px solid rgba(230, 180, 70, .45);
  color: var(--gold);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(230, 180, 70, .09);
}

.news-detail-body h2,
.news-detail-empty h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.08;
  margin: 0 0 12px;
  color: var(--text);
}

.news-detail-source {
  color: var(--text-muted);
  font-size: .88rem;
  margin-bottom: 22px;
}

.news-detail-text {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.78;
}

.news-detail-text p {
  margin: 0 0 16px;
}

.news-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.news-detail-link,
.news-detail-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.news-detail-link {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #111;
  border: 1px solid rgba(230, 180, 70, .65);
}

.news-detail-secondary {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.news-detail-empty {
  padding: 42px 30px;
}

.news-detail-empty p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.news-dynamic-card[role="button"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .news-detail-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .news-detail-dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
  }

  .news-detail-hero-image,
  .news-detail-hero-image img {
    min-height: 190px;
    max-height: 280px;
  }

  .news-detail-body {
    padding: 22px;
  }
}


/* ═══════════════════════════════════════════════════
   v2.14 · Revisión y mejora responsive/mobile
   Ajustes no invasivos sobre v2.13.3 corregida
═══════════════════════════════════════════════════ */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
  transition: transform .18s ease, opacity .18s ease;
}
.mobile-menu-toggle:hover { border-color: var(--gold); color: var(--gold); }
body.mobile-nav-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.mobile-nav-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
body.mobile-nav-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav { padding: 16px 28px; gap: 14px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: .82rem; }
  .brand-logo .brand-main { font-size: 1.02rem; }
  .brand-logo .brand-sub { font-size: .50rem; letter-spacing: .12em; }
  .session-button { height: 38px; padding: 0 11px; }
}

@media (max-width: 1024px) {
  .mobile-menu-toggle { display: inline-flex; }
  .nav { padding: 14px 22px; }
  .nav-logo { min-width: 0; }
  .brand-logo .brand-main { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(17,20,24,.98);
    box-shadow: 0 22px 70px rgba(0,0,0,.38);
    backdrop-filter: blur(20px);
    z-index: 1100;
  }
  body.light .nav-links { background: rgba(255,255,255,.98); box-shadow: 0 20px 60px rgba(15,17,23,.12); }
  body.mobile-nav-open .nav-links { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 12px 13px;
    border-radius: 12px;
    color: var(--text);
  }
  .nav-links a:hover { background: var(--surface2); color: var(--gold); }
  .nav-cta { margin-left: auto; gap: 8px; align-items: center; }
  .hero { padding: 126px 28px 78px; flex-direction: column; align-items: flex-start; }
  .hero-left { max-width: 760px; }
  .hero-actions { flex-wrap: wrap; }
  .modules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modules-list { grid-template-columns: 1fr; }
  .trade-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-provider-grid, .payment-contact-guide { grid-template-columns: 1fr; }
  .admin-news-form-grid { grid-template-columns: 1fr; }
  .admin-news-url, .admin-news-image-field { grid-column: auto; }
}

@media (max-width: 900px) {
  #dashboard.active, #account.active, #membership.active, #admin-panel.active { display: block; }
  #dashboard .sidebar,
  #account .sidebar,
  #membership .sidebar,
  #admin-panel .sidebar {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 18px 16px;
  }
  #dashboard .main-content,
  #account .main-content,
  #membership .main-content,
  #admin-panel .main-content {
    margin-left: 0 !important;
    padding: 30px 22px 56px !important;
  }
  .sidebar-logo { margin-bottom: 18px; padding: 0 8px; }
  .sidebar-section-label { margin-top: 14px; padding: 0 8px; }
  .sidebar-item { padding: 11px 10px; }
  .sidebar-progress { display: none; }
  .admin-table-wrap,
  .payment-history-wrap,
  .account-panel-card,
  .membership-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table { min-width: 760px; }
  .admin-topbar, .membership-status-head, .admin-hero-actions, .account-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-btn, .account-btn, .payment-provider-actions .admin-btn { width: 100%; justify-content: center; text-align: center; }
  .volume-main { margin-left: 0; width: 100%; }
  .volume-sidebar { display: none; }
  .volume-topbar { padding: 15px 18px; flex-direction: column; align-items: flex-start; }
  .volume-content { padding: 30px 20px 62px; max-width: 100%; }
  .volume-hero-card { padding: 24px; border-left-width: 0; border-top: 3px solid var(--gold); border-radius: 18px; }
  .volume-hero-card h1 { font-size: clamp(1.8rem, 7vw, 2.25rem); }
  .module5-topic-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { padding: 12px 15px; }
  .brand-logo .brand-main { max-width: 42vw; font-size: .94rem; }
  .brand-logo .brand-sub { font-size: .46rem; letter-spacing: .10em; }
  .nav-cta { gap: 6px; }
  .theme-toggle, .mobile-menu-toggle { width: 36px; height: 36px; border-radius: 9px; }
  .session-button { height: 36px; padding: 0 9px; }
  .session-label { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .session-dropdown { right: -42px; width: min(230px, calc(100vw - 28px)); }
  .nav-links { left: 14px; right: 14px; }

  .hero { padding: 112px 18px 58px; gap: 24px; }
  .hero-ticker { font-size: .66rem; max-width: 100%; white-space: normal; }
  .hero h1 { font-size: clamp(2.08rem, 10.5vw, 3.05rem); }
  .hero-sub, .hero-brand-statement { font-size: .92rem; line-height: 1.65; }
  .hero-brand-statement { padding: 14px 16px; border-radius: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; gap: 12px; margin-top: 30px; }
  .btn-large { width: 100%; padding: 14px 18px; }

  .section { padding: 56px 18px; }
  .section-title { font-size: clamp(1.72rem, 8.5vw, 2.22rem); max-width: 100%; }
  .section-sub { max-width: 100%; }
  .brand-intro-grid { gap: 22px; }
  .brand-intro-card,
  .trading-patience-closing,
  .module-card,
  .dash-card,
  .account-card,
  .account-panel-card,
  .membership-card,
  .payment-prep-card,
  .access-lock-card {
    border-radius: 16px;
  }
  .brand-intro-card, .trading-patience-closing, .payment-prep-card { padding: 20px; }
  .trading-patience-copy { font-size: .93rem; line-height: 1.78; }
  .modules-grid, .dash-cards, .account-grid, .admin-metrics, .admin-grid-2, .admin-grid-3, .access-lock-grid { grid-template-columns: 1fr !important; }
  .modules-grid { margin-top: 34px; }
  .module-card { padding: 22px; }
  .module-meta { flex-wrap: wrap; gap: 8px 14px; }
  .cta-band { margin: 0 18px 52px; padding: 28px 20px; align-items: flex-start; }
  .cta-band-text h2 { font-size: 1.55rem; }
  footer { padding: 28px 18px; flex-direction: column; align-items: flex-start; gap: 10px; }

  #auth { padding: 22px 16px; align-items: flex-start; padding-top: 86px; }
  .auth-card { padding: 28px 20px; border-radius: 18px; }
  .auth-logo { margin-bottom: 24px; }
  .auth-tabs { margin-bottom: 24px; }
  .form-input { font-size: 16px; }

  .dash-title, .account-title, .membership-status-title, .admin-title { font-size: clamp(1.45rem, 7vw, 1.9rem); }
  .continue-card { display: block; padding: 20px; }
  .continue-thumb { margin-bottom: 14px; }
  .continue-btn { width: 100%; margin-top: 16px; }
  .module-item { padding: 17px; gap: 12px; }
  .module-icon { width: 38px; height: 38px; }
  .account-detail-row { display: block; }
  .account-detail-value { max-width: 100%; text-align: left; margin-top: 6px; }
  .membership-status-card { padding: 22px; }
  .payment-provider-card { min-height: auto; }

  .projection-card-thumb { height: 128px; }
  .projection-viewer-wrap { padding: 14px 12px 22px; }
  .projection-viewer-topbar { gap: 12px; }
  .projection-viewer-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .projection-viewer-btn { width: 100%; }
  .projection-image-stage { min-height: 50vh; }
  .projection-arrow { width: 38px; height: 38px; }

  .news-dynamic-image { height: 126px; }
  .news-detail-dialog { border-radius: 20px 20px 0 0; }
  .news-detail-body { padding: 20px; }
  .news-detail-title { font-size: clamp(1.45rem, 7vw, 2rem); }
  .news-detail-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .news-detail-actions button, .news-detail-actions a { width: 100%; text-align: center; }
}

@media (max-width: 420px) {
  .brand-logo .brand-main { max-width: 38vw; font-size: .84rem; }
  .brand-logo .brand-sub { display: none; }
  .session-label { display: none; }
  .nav { gap: 8px; }
  .hero h1 { font-size: 2rem; }
  .section { padding-left: 14px; padding-right: 14px; }
  #dashboard .main-content,
  #account .main-content,
  #membership .main-content,
  #admin-panel .main-content { padding-left: 14px !important; padding-right: 14px !important; }
}

/* v2.20.5 · Render estable para tablas migradas desde Word */
.ev-course-table-wrap-v2205{
  width:100%;
  overflow-x:auto;
  border:1px solid rgba(201,168,76,.22);
  border-radius:16px;
  background:rgba(255,255,255,.025);
  margin:14px 0 6px;
}
.ev-course-table-v2205{
  width:100%;
  min-width:680px;
  border-collapse:collapse;
  color:var(--ev-rich-intermedio-color, var(--text));
  font-size:.94rem;
  line-height:1.48;
}
.ev-course-table-v2205 th,
.ev-course-table-v2205 td{
  border:1px solid rgba(255,255,255,.10);
  padding:11px 13px;
  vertical-align:top;
  text-align:left;
}
.ev-course-table-v2205 th{
  color:var(--text);
  background:rgba(201,168,76,.16);
  font-weight:850;
}
.ev-course-table-empty-v2205{
  color:var(--text-muted);
  font-weight:750;
  border:1px dashed rgba(201,168,76,.32);
  border-radius:14px;
  padding:14px;
  background:rgba(201,168,76,.06);
}
@media (max-width:760px){
  .ev-course-table-v2205{min-width:620px;font-size:.88rem}
  .ev-course-table-v2205 th,.ev-course-table-v2205 td{padding:9px 10px}
}


/* ════════════════════════════════════
   v2.23.0.1 · Fix logo en sidebar alumno/admin
   Evita que "Estructura y Volumen" quede cortado en pantallas internas,
   manteniendo la bajada y el click hacia inicio desde el HTML.
════════════════════════════════════ */
#dashboard .sidebar-logo.brand-logo,
#account .sidebar-logo.brand-logo,
#membership .sidebar-logo.brand-logo,
#admin-panel .sidebar-logo.brand-logo {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: 8px;
  padding-right: 4px;
  overflow: visible;
}

#dashboard .sidebar-logo.brand-logo .brand-main,
#account .sidebar-logo.brand-logo .brand-main,
#membership .sidebar-logo.brand-logo .brand-main,
#admin-panel .sidebar-logo.brand-logo .brand-main {
  max-width: 100% !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap;
  font-size: .88rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

#dashboard .sidebar-logo.brand-logo .brand-sub,
#account .sidebar-logo.brand-logo .brand-sub,
#membership .sidebar-logo.brand-logo .brand-sub,
#admin-panel .sidebar-logo.brand-logo .brand-sub {
  display: block !important;
  max-width: 100%;
  overflow: visible;
  white-space: nowrap;
  font-size: .46rem;
  letter-spacing: .12em;
}

@media (min-width: 901px) {
  #dashboard .sidebar,
  #account .sidebar,
  #membership .sidebar,
  #admin-panel .sidebar {
    overflow-x: hidden;
  }
}

@media (max-width: 420px) {
  #dashboard .sidebar-logo.brand-logo .brand-main,
  #account .sidebar-logo.brand-logo .brand-main,
  #membership .sidebar-logo.brand-logo .brand-main,
  #admin-panel .sidebar-logo.brand-logo .brand-main {
    font-size: .84rem;
  }
}

/* ════════════════════════════════════
   v2.23.0.2 · Ajuste fino alineación logo sidebar
   Mantiene el tamaño validado en v2.23.0.1, pero compensa el margen
   interno para que el logo quede visualmente más centrado en el sidebar.
════════════════════════════════════ */
#dashboard .sidebar-logo.brand-logo,
#account .sidebar-logo.brand-logo,
#membership .sidebar-logo.brand-logo,
#admin-panel .sidebar-logo.brand-logo {
  padding-left: 0 !important;
  padding-right: 0 !important;
  transform: translateX(-6px);
  width: calc(100% + 6px);
}

#dashboard .sidebar-logo.brand-logo .brand-main,
#account .sidebar-logo.brand-logo .brand-main,
#membership .sidebar-logo.brand-logo .brand-main,
#admin-panel .sidebar-logo.brand-logo .brand-main,
#dashboard .sidebar-logo.brand-logo .brand-sub,
#account .sidebar-logo.brand-logo .brand-sub,
#membership .sidebar-logo.brand-logo .brand-sub,
#admin-panel .sidebar-logo.brand-logo .brand-sub {
  transform: none;
}

/* LEGAL NOTICE · v2.24.4 */
.site-footer {
  gap: 18px;
}
.site-footer-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-link-button {
  appearance: none;
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 9px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.footer-link-button:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-glow);
  transform: translateY(-1px);
}
body.legal-notice-open { overflow: hidden; }
.legal-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.legal-notice-modal.is-open { display: flex; }
.legal-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.74);
  backdrop-filter: blur(10px);
}
.legal-notice-dialog {
  position: relative;
  width: min(980px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--surface), rgba(24,28,34,.96));
  box-shadow: 0 28px 90px rgba(0,0,0,.45);
}
.legal-notice-close {
  position: sticky;
  top: 14px;
  float: right;
  z-index: 2;
  width: 38px;
  height: 38px;
  margin: 14px 14px 0 0;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: rgba(10,12,15,.72);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition: color .2s, border-color .2s, background .2s;
}
.legal-notice-close:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201,168,76,.12);
}
.legal-notice-header {
  padding: 36px 42px 18px;
  border-bottom: 1px solid var(--border);
}
.legal-notice-kicker {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--gold);
  font-size: .74rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.legal-notice-header h2 {
  font-family: 'Syne', sans-serif;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: .98;
  margin-bottom: 14px;
}
.legal-notice-header p {
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.7;
}
.legal-notice-content {
  padding: 28px 42px 42px;
  display: grid;
  gap: 18px;
}
.legal-notice-section {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.018);
  padding: 22px;
}
.legal-notice-section h3 {
  color: var(--gold);
  font-family: 'Syne', sans-serif;
  font-size: 1.08rem;
  margin-bottom: 12px;
}
.legal-notice-section p {
  color: var(--text);
  line-height: 1.78;
  font-size: .94rem;
  margin-top: 12px;
}
.legal-notice-section p:first-of-type { margin-top: 0; }
.legal-notice-note {
  border: 1px dashed rgba(201,168,76,.42);
  border-radius: 16px;
  background: rgba(201,168,76,.06);
  color: var(--text-muted);
  padding: 16px 18px;
  line-height: 1.65;
  font-size: .86rem;
}
.sidebar-item.legal-sidebar-item {
  margin-top: 8px;
}
.legal-sidebar-icon {
  display: inline-flex;
  width: 16px;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}
body.light .legal-notice-dialog {
  background: linear-gradient(135deg, #fff, #f4f6f9);
  box-shadow: 0 26px 80px rgba(15,23,42,.18);
}
body.light .legal-notice-close {
  background: rgba(255,255,255,.86);
}
body.light .legal-notice-section {
  background: rgba(0,0,0,.018);
}
@media (max-width: 780px) {
  .legal-notice-modal { padding: 14px; }
  .legal-notice-header { padding: 30px 22px 16px; }
  .legal-notice-content { padding: 20px 22px 28px; }
  .legal-notice-section { padding: 18px; }
  .site-footer { align-items: flex-start; }
}

/* v2.25.1.1 · Ajuste responsive puntual para sección Objetivos
   Mantiene desktop intacto y evita que las tarjetas de objetivos se corten en mobile. */
#objetivos > div[style*="display:grid"][style*="grid-template-columns:repeat(3,1fr)"]{
  min-width: 0;
}
#objetivos > div[style*="display:grid"][style*="grid-template-columns:repeat(3,1fr)"] > div{
  min-width: 0;
}

@media (max-width: 900px){
  #objetivos > div[style*="display:grid"][style*="grid-template-columns:repeat(3,1fr)"]{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

@media (max-width: 760px){
  #objetivos > div[style*="display:grid"][style*="grid-template-columns:repeat(3,1fr)"]{
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    margin-top: 32px !important;
  }
  #objetivos > div[style*="display:grid"][style*="grid-template-columns:repeat(3,1fr)"] > div{
    width: 100% !important;
    padding: 22px !important;
    overflow: hidden;
  }
  #objetivos > div[style*="display:grid"][style*="grid-template-columns:repeat(3,1fr)"] > div > div{
    max-width: 100%;
  }
}


/* CONTACTO INICIAL · v3.3.0 */
.contact-section {
  border-top: 1px solid var(--border);
  background: radial-gradient(circle at 50% 0%, rgba(201,168,76,.08), transparent 38%);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 18px;
  max-width: 980px;
  margin: 38px auto 0;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
}
.contact-card-main { border-color: rgba(201,168,76,.38); }
.contact-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.contact-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  margin: 0 0 10px;
}
.contact-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: .9rem;
  margin: 0 0 16px;
}
.contact-email-link,
.account-contact-link {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-email-link:hover,
.account-contact-link:hover { text-decoration: underline; }
.contact-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.contact-mail-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.contact-note {
  color: var(--text-muted);
  border: 1px solid rgba(80,160,230,.24);
  background: rgba(80,160,230,.07);
  border-radius: 14px;
  padding: 12px;
  font-size: .82rem;
  line-height: 1.55;
}
body.light .contact-card { background: #fff; border-color: rgba(15,17,23,.10); }
body.light .contact-card-main { border-color: rgba(201,168,76,.35); }
body.light .contact-card h3 { color: var(--black); }
.footer-link-button { text-decoration: none; display: inline-flex; align-items: center; }
#access-locked .access-lock-actions a.secondary { text-decoration: none; }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 22px; }
}

/* CONTACTO Y COPIA DE EMAIL · v3.3.1 */
.contact-email-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.contact-email-row .contact-email-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(201,168,76,.24);
  background: rgba(201,168,76,.07);
  padding: 10px 14px;
  color: var(--gold);
  font-size: .92rem;
}
.copy-email-btn,
.mini-copy-email-btn {
  appearance: none;
  border: 1px solid rgba(201,168,76,.42);
  background: linear-gradient(135deg, var(--gold), #e1c56d);
  color: #080a0f;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease, background .18s ease;
}
.copy-email-btn {
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: .84rem;
}
.mini-copy-email-btn {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .72rem;
}
.copy-email-btn:hover,
.mini-copy-email-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.copy-email-btn.copied,
.mini-copy-email-btn.copied {
  background: rgba(68, 191, 111, .16);
  border-color: rgba(68, 191, 111, .42);
  color: #9ff0bd;
}
.contact-copy-help {
  margin: 12px 0 0 !important;
  color: var(--text-dim) !important;
  font-size: .82rem !important;
  max-width: 560px;
}
.account-email-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.payment-contact-list .mini-copy-email-btn {
  margin-left: 2px;
}
.contact-copy-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 13000;
  max-width: min(420px, calc(100vw - 44px));
  border-radius: 16px;
  border: 1px solid rgba(201,168,76,.32);
  background: rgba(12,15,21,.94);
  color: var(--text);
  padding: 13px 15px;
  box-shadow: 0 18px 50px rgba(0,0,0,.32);
  font-size: .84rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.contact-copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.contact-copy-toast.ok {
  border-color: rgba(68, 191, 111, .35);
}
.contact-copy-toast.warn {
  border-color: rgba(231, 178, 69, .38);
}
body.light .contact-email-row .contact-email-link {
  background: rgba(201,168,76,.10);
  border-color: rgba(201,168,76,.30);
}
body.light .contact-copy-toast {
  background: rgba(255,255,255,.96);
  color: var(--black);
  border-color: rgba(15,17,23,.12);
}
@media (max-width: 640px) {
  .contact-email-row {
    align-items: stretch;
  }
  .contact-email-row .contact-email-link,
  .copy-email-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .account-email-tools {
    justify-content: flex-start;
  }
  .contact-copy-toast {
    right: 14px;
    bottom: 14px;
    max-width: calc(100vw - 28px);
  }
}
