  :root {
    --bg: #0a0c10;
    --surface: #111419;
    --surface2: #181c24;
    --border: #1f2633;
    --accent: #00e5a0;
    --accent2: #3b82f6;
    --accent3: #f59e0b;
    --danger: #ef4444;
    --text: #e8eaf0;
    --muted: #6b7280;
    --muted2: #374151;
  }

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

  body {
    font-family: 'Syne', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* ─── NOISE OVERLAY ─── */
  body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0;
    opacity: 0.6;
  }

  /* ─── NAV ─── */
  nav {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2.5rem;
    height: 64px;
    background: rgba(10,12,16,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--accent);
    letter-spacing: -0.02em;
  }
  .logo span { color: var(--text); }
  .nav-links { display: flex; gap: 2rem; }
  .nav-links a {
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--muted);
    text-decoration: none; transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--accent); }
  .nav-cta {
    display: flex; gap: 0.75rem; align-items: center;
  }
  .btn-ghost {
    padding: 0.5rem 1rem; border: 1px solid var(--border);
    background: transparent; color: var(--text); font-family: 'Syne', sans-serif;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
    cursor: pointer; border-radius: 6px; transition: all 0.2s; text-decoration: none;
  }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
  .btn-accent {
    padding: 0.5rem 1.25rem; background: var(--accent);
    color: #0a0c10; font-family: 'Syne', sans-serif;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em;
    cursor: pointer; border-radius: 6px; border: none; transition: all 0.2s;
    text-decoration: none;
  }
  .btn-accent:hover { background: #00c98a; transform: translateY(-1px); }

  /* ─── HERO ─── */
  .hero {
    position: relative; padding: 7rem 2.5rem 5rem;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center; max-width: 1280px; margin: 0 auto;
  }
  .hero-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: 'DM Mono', monospace; font-size: 0.72rem;
    color: var(--accent); background: rgba(0,229,160,0.08);
    border: 1px solid rgba(0,229,160,0.2);
    padding: 0.3rem 0.75rem; border-radius: 100px; margin-bottom: 1.5rem;
  }
  .hero-tag .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
  @keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }
  h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.05; letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
  }
  h1 em { font-style: italic; color: var(--accent); }
  .hero-sub {
    font-size: 1rem; color: var(--muted); line-height: 1.7;
    max-width: 440px; margin-bottom: 2.5rem;
  }
  .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
  .btn-large {
    padding: 0.9rem 2rem; font-size: 0.9rem; font-weight: 700;
    letter-spacing: 0.04em; border-radius: 8px; cursor: pointer; transition: all 0.2s;
    font-family: 'Syne', sans-serif; text-decoration: none; border: none;
  }
  .btn-large.accent { background: var(--accent); color: #0a0c10; }
  .btn-large.accent:hover { background: #00c98a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,229,160,0.3); }
  .btn-large.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
  .btn-large.ghost:hover { border-color: var(--accent); color: var(--accent); }

  /* ─── HERO STATS ─── */
  .hero-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    background: var(--border); border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border);
  }
  .stat-card {
    background: var(--surface); padding: 1.5rem;
    animation: fadeUp 0.6s ease both;
  }
  .stat-card:nth-child(1) { animation-delay: 0.1s; }
  .stat-card:nth-child(2) { animation-delay: 0.2s; }
  .stat-card:nth-child(3) { animation-delay: 0.3s; }
  .stat-card:nth-child(4) { animation-delay: 0.4s; }
  @keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
  .stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem; color: var(--accent); line-height: 1; margin-bottom: 0.4rem;
  }
  .stat-label { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }

  /* ─── MINI CHART ─── */
  .mini-chart {
    width: 100%; height: 180px;
    background: var(--surface2); border-radius: 12px;
    border: 1px solid var(--border); overflow: hidden; margin-bottom: 1px;
    position: relative; display: flex; align-items: flex-end; padding: 0 0 0 0;
  }
  .chart-svg { width: 100%; height: 100%; }

  /* ─── SECTION ─── */
  section { padding: 5rem 2.5rem; max-width: 1280px; margin: 0 auto; }
  .section-label {
    font-family: 'DM Mono', monospace; font-size: 0.7rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 0.75rem;
  }
  h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 1rem;
  }
  .section-desc { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 600px; margin-bottom: 3rem; }

  /* ─── FEATURES GRID ─── */
  .features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--border); border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border);
  }
  .feature-card {
    background: var(--surface); padding: 2rem;
    transition: background 0.3s;
    position: relative; overflow: hidden;
  }
  .feature-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,229,160,0.04), transparent);
    opacity: 0; transition: opacity 0.3s;
  }
  .feature-card:hover { background: var(--surface2); }
  .feature-card:hover::after { opacity: 1; }
  .feature-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 1.25rem;
  }
  .feature-icon.green { background: rgba(0,229,160,0.1); }
  .feature-icon.blue { background: rgba(59,130,246,0.1); }
  .feature-icon.amber { background: rgba(245,158,11,0.1); }
  .feature-icon.purple { background: rgba(168,85,247,0.1); }
  .feature-icon.red { background: rgba(239,68,68,0.1); }
  .feature-icon.teal { background: rgba(20,184,166,0.1); }
  .feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
  .feature-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
  .feature-tag {
    display: inline-block; margin-top: 1rem;
    font-family: 'DM Mono', monospace; font-size: 0.65rem;
    padding: 0.2rem 0.5rem; border-radius: 4px; letter-spacing: 0.08em;
  }
  .feature-tag.research { background: rgba(0,229,160,0.1); color: var(--accent); }
  .feature-tag.portfolio { background: rgba(59,130,246,0.1); color: var(--accent2); }
  .feature-tag.both { background: rgba(245,158,11,0.1); color: var(--accent3); }

  /* ─── LIVE DASHBOARD ─── */
  .dashboard-demo {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden; margin-top: 3rem;
  }
  .dash-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
    background: var(--surface2);
  }
  .dash-title { font-size: 0.85rem; font-weight: 700; }
  .dash-actions { display: flex; gap: 0.5rem; }
  .dash-btn {
    padding: 0.3rem 0.75rem; font-size: 0.72rem; font-weight: 600;
    border-radius: 5px; cursor: pointer; border: 1px solid var(--border);
    background: transparent; color: var(--muted); font-family: 'Syne', sans-serif;
    transition: all 0.2s;
  }
  .dash-btn.active, .dash-btn:hover { background: var(--accent); color: #0a0c10; border-color: var(--accent); }

  /* ─── LIVE STATUS BAR ─── */
  .live-bar {
    display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
    padding: 0.5rem 1.5rem; border-bottom: 1px solid var(--border);
    background: var(--surface2); font-family: 'DM Mono', monospace;
    font-size: 0.7rem; color: var(--muted);
  }
  .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; flex-shrink: 0; }
  .live-dot.stale { background: var(--accent3); animation: none; }
  .live-dot.off { background: var(--muted); animation: none; }
  .live-bar .lv-pill { padding: 0.1rem 0.45rem; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); }
  .live-bar .lv-sep { opacity: 0.4; }
  .px-day { font-size: 0.66rem; }
  .live-tick { color: var(--accent); font-size: 0.6rem; vertical-align: middle; }

  .dash-body { display: grid; grid-template-columns: 280px 1fr; }
  .dash-sidebar { border-right: 1px solid var(--border); padding: 1.5rem; }
  .portfolio-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem; border-radius: 8px; cursor: pointer;
    transition: background 0.2s; margin-bottom: 0.25rem;
  }
  .portfolio-item:hover, .portfolio-item.active { background: var(--surface2); }
  .portfolio-item .p-name { font-size: 0.82rem; font-weight: 600; }
  .portfolio-item .p-val { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--muted); }
  .portfolio-item .p-change { font-family: 'DM Mono', monospace; font-size: 0.72rem; }
  .positive { color: var(--accent); }
  .negative { color: var(--danger); }

  .dash-main { padding: 1.5rem; }
  .kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
  .kpi {
    background: var(--surface2); border-radius: 10px; padding: 1rem;
    border: 1px solid var(--border);
  }
  .kpi-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.4rem; }
  .kpi-value { font-family: 'DM Mono', monospace; font-size: 1.2rem; font-weight: 500; }
  .kpi-sub { font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; }

  .holdings-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
  .holdings-table th {
    text-align: left; font-size: 0.65rem; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border);
  }
  .holdings-table td { padding: 0.7rem 0.75rem; border-bottom: 1px solid rgba(31,38,51,0.6); }
  .holdings-table tr:hover td { background: rgba(255,255,255,0.02); }
  .ticker-badge {
    display: inline-block; padding: 0.15rem 0.45rem;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 4px; font-family: 'DM Mono', monospace; font-size: 0.72rem; font-weight: 500;
  }
  .score-bar-wrap { display: flex; align-items: center; gap: 0.75rem; }
  .score-bar {
    flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden;
  }
  .score-bar-fill { height: 100%; border-radius: 2px; transition: width 1s ease; }
  .score-val { font-family: 'DM Mono', monospace; font-size: 0.72rem; font-weight: 500; width: 28px; text-align: right; }

  /* ─── SCREENER ─── */
  .screener-demo {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
  }
  .screener-filters {
    display: flex; gap: 0.75rem; padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border); background: var(--surface2);
    flex-wrap: wrap;
  }
  .filter-chip {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.75rem; border-radius: 100px;
    border: 1px solid var(--border); background: var(--surface);
    font-size: 0.73rem; cursor: pointer; transition: all 0.2s; color: var(--text);
  }
  .filter-chip.active { border-color: var(--accent); color: var(--accent); background: rgba(0,229,160,0.06); }
  .filter-chip:hover { border-color: var(--muted); }

  .screener-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
  .screener-table th {
    text-align: left; padding: 0.6rem 1rem; font-size: 0.63rem;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border); white-space: nowrap;
  }
  .screener-table td { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(31,38,51,0.5); }
  .screener-table tr:hover td { background: rgba(255,255,255,0.02); }
  .score-pill {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 22px; border-radius: 4px;
    font-family: 'DM Mono', monospace; font-size: 0.72rem; font-weight: 600;
  }
  .score-pill.high { background: rgba(0,229,160,0.15); color: var(--accent); }
  .score-pill.mid { background: rgba(245,158,11,0.15); color: var(--accent3); }
  .score-pill.low { background: rgba(239,68,68,0.15); color: var(--danger); }
  .flag { font-size: 0.9rem; }

  /* ─── STRATEGIES ─── */
  .strategies-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .strategy-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.5rem; transition: all 0.3s; cursor: pointer;
  }
  .strategy-card:hover { border-color: var(--accent2); transform: translateY(-2px); }
  .strategy-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
  .strategy-name { font-size: 0.95rem; font-weight: 700; }
  .strategy-badge {
    font-family: 'DM Mono', monospace; font-size: 0.65rem;
    padding: 0.2rem 0.5rem; border-radius: 4px; letter-spacing: 0.06em;
  }
  .strategy-badge.trend { background: rgba(59,130,246,0.1); color: var(--accent2); }
  .strategy-badge.momentum { background: rgba(168,85,247,0.1); color: #a855f7; }
  .strategy-badge.value { background: rgba(0,229,160,0.1); color: var(--accent); }
  .strategy-badge.mixed { background: rgba(245,158,11,0.1); color: var(--accent3); }
  .strategy-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
  .strategy-stats { display: flex; gap: 1.5rem; }
  .s-stat-num { font-family: 'DM Mono', monospace; font-size: 1rem; font-weight: 500; }
  .s-stat-label { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

  /* ─── TAX ─── */
  .tax-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 2rem; display: grid;
    grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
  }
  .tax-form { display: flex; flex-direction: column; gap: 1rem; }
  .form-group label { display: block; font-size: 0.73rem; color: var(--muted); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.07em; }
  .form-group input, .form-group select {
    width: 100%; padding: 0.6rem 0.9rem;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 7px; color: var(--text); font-family: 'DM Mono', monospace;
    font-size: 0.85rem; transition: border 0.2s; outline: none;
  }
  .form-group input:focus, .form-group select:focus { border-color: var(--accent); }
  .form-group select option { background: var(--surface2); }
  .tax-result {
    background: var(--surface2); border-radius: 12px; padding: 1.5rem;
    border: 1px solid var(--border);
  }
  .tax-result-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
  .tax-result-row:last-child { border-bottom: none; font-weight: 700; }
  .tax-result-row .label { font-size: 0.8rem; color: var(--muted); }
  .tax-result-row .value { font-family: 'DM Mono', monospace; font-size: 0.85rem; }

  /* ─── TESTIMONIALS ─── */
  .testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .testimonial {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.5rem;
  }
  .testimonial-text { font-size: 0.85rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
  .testimonial-author { font-size: 0.8rem; font-weight: 700; }
  .stars { color: var(--accent3); font-size: 0.75rem; margin-bottom: 0.75rem; }

  /* ─── PRICING ─── */
  .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
  .pricing-card { background: var(--surface); padding: 2rem; }
  .pricing-card.featured { background: #0f1e17; }
  .plan-name { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
  .plan-price {
    font-family: 'DM Serif Display', serif; font-size: 2.5rem;
    color: var(--text); line-height: 1; margin-bottom: 0.25rem;
  }
  .plan-price span { font-family: 'Syne', sans-serif; font-size: 1rem; color: var(--muted); }
  .plan-desc { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.5; }
  .plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
  .plan-features li { font-size: 0.8rem; display: flex; align-items: flex-start; gap: 0.5rem; color: var(--muted); }
  .plan-features li .check { color: var(--accent); flex-shrink: 0; }
  .plan-features li.dim { opacity: 0.4; }

  /* ─── CTA ─── */
  .cta-section {
    margin: 0 2.5rem 5rem;
    background: linear-gradient(135deg, rgba(0,229,160,0.08) 0%, rgba(59,130,246,0.08) 100%);
    border: 1px solid rgba(0,229,160,0.15);
    border-radius: 20px; padding: 4rem; text-align: center;
  }
  .cta-section h2 { margin-bottom: 1rem; }
  .cta-section p { color: var(--muted); margin-bottom: 2rem; }
  .cta-actions { display: flex; justify-content: center; gap: 1rem; }

  /* ─── FOOTER ─── */
  footer {
    border-top: 1px solid var(--border); padding: 2rem 2.5rem;
    display: flex; align-items: center; justify-content: space-between;
    color: var(--muted); font-size: 0.75rem;
  }
  .footer-links { display: flex; gap: 1.5rem; }
  .footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
  .footer-links a:hover { color: var(--text); }

  /* ─── DIVIDER ─── */
  .section-sep {
    width: 100%; height: 1px; background: var(--border); margin: 0 2.5rem;
    max-width: calc(1280px); align-self: center;
  }

  /* ─── RESPONSIVE ─── */
  /* Keep wide tables/dashboard from breaking the page: constrain grid items
     (min-width:0) and let oversized tables scroll INSIDE their own container. */
  .dash-main, .dash-sidebar { min-width: 0; }
  .dash-main { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .screener-demo { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  @media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .dash-body { grid-template-columns: 1fr; }
    .dash-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
    .kpi-row { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .strategies-grid { grid-template-columns: 1fr; }
    .tax-card { grid-template-columns: 1fr; }
  }
  @media (max-width: 600px) {
    nav { padding: 0 1rem; }
    .nav-links { display: none; }
    .nav-cta .btn-ghost { display: none; }      /* keep only the primary CTA on phones */
    .hero { padding: 5rem 1rem 3rem; }
    .hero h1 { font-size: 2rem; line-height: 1.15; }
    .hero-sub { font-size: 0.95rem; }
    section { padding: 3rem 1rem; }
    h2 { font-size: 1.65rem; }
    .features-grid { grid-template-columns: 1fr; }
    .cta-section { padding: 2.5rem 1.5rem; margin: 0 1rem 3rem; }
    /* dashboard tabs: stack + allow horizontal scroll if needed */
    .dash-header { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .dash-actions { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .dash-btn { white-space: nowrap; flex: 0 0 auto; }
    .kpi-row { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .kpi { padding: 0.85rem; }
    /* readable, swipeable tables */
    .holdings-table { min-width: 480px; }
    .screener-table { min-width: 600px; }
    .holdings-table th, .holdings-table td,
    .screener-table th, .screener-table td { padding: 0.55rem 0.7rem; font-size: 0.8rem; }
    .strategy-stats { gap: 1.25rem; }
    .tax-card { padding: 1.25rem; }
    .filter-chip { font-size: 0.78rem; }
  }

  /* ─── ANIMATE ─── */
  .animate-in {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .animate-in.visible { opacity: 1; transform: translateY(0); }

  /* ─── NAV MOBILE MENU ─── */
  nav { position: relative; }
  .nav-toggle {
    display: none; background: none; border: 1px solid var(--border); color: var(--text);
    width: 42px; height: 38px; border-radius: 8px; font-size: 1.2rem; cursor: pointer;
  }
  @media (max-width: 600px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-links {
      display: none; position: absolute; top: 100%; left: 0; right: 0;
      flex-direction: column; gap: 0; background: var(--surface);
      border-bottom: 1px solid var(--border); padding: 0.5rem 1.25rem 1rem; z-index: 60;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
  }

  /* ─── MODAL ─── */
  .modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(3px);
    display: none; align-items: center; justify-content: center; z-index: 100; padding: 1.25rem;
  }
  .modal-overlay.open { display: flex; }
  .modal {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 1.75rem; width: 100%; max-width: 400px; position: relative;
  }
  .modal h3 { font-family: 'Syne', sans-serif; font-size: 1.4rem; margin-bottom: 0.4rem; }
  .modal p.sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.25rem; line-height: 1.5; }
  .modal label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.35rem; }
  .modal input {
    width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
    border-radius: 8px; padding: 0.7rem 0.85rem; font-size: 0.95rem; margin-bottom: 1rem; font-family: inherit;
  }
  .modal input:focus { outline: none; border-color: var(--accent); }
  .modal .modal-close {
    position: absolute; top: 0.85rem; right: 1rem; background: none; border: none;
    color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1;
  }
  .modal .err { color: var(--accent2); font-size: 0.78rem; margin: -0.6rem 0 0.85rem; display: none; }
  .modal .ok { text-align: center; }
  .modal .ok .big { font-size: 2.6rem; color: var(--accent); }

  /* ─── TOAST ─── */
  .toast {
    position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--surface2); border: 1px solid var(--border); color: var(--text);
    padding: 0.7rem 1.1rem; border-radius: 999px; font-size: 0.85rem; z-index: 120;
    opacity: 0; transition: all 0.25s; pointer-events: none; max-width: 90vw; text-align: center;
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
