* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0a0f1e;
  --card: #111827;
  --border: #1e2d45;
  --accent: #38bdf8;
  --green: #4ade80;
  --yellow: #fbbf24;
  --red: #f87171;
  --text: #e2e8f0;
  --muted: #64748b;
}
body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', system-ui, sans-serif; line-height: 1.7; }

/* NAV */
.nav { background: #080d1a; border-bottom: 1px solid var(--border); padding: 0 32px; display: flex; align-items: center; gap: 24px; height: 56px; position: sticky; top: 0; z-index: 100; }
.nav-logo { font-size: 16px; font-weight: 700; color: var(--accent); letter-spacing: 1px; text-decoration: none; margin-right: auto; }
.nav-link { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--text); }

/* HERO */
.hero { padding: 64px 32px 48px; max-width: 900px; margin: 0 auto; }
.hero-badge { display: inline-block; background: #0c1a2e; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; padding: 4px 12px; border-radius: 20px; margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase; }
.hero h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 17px; color: #94a3b8; max-width: 640px; margin-bottom: 32px; }
.hero-result { background: rgba(56,189,248,0.07); border-left: 3px solid var(--accent); padding: 14px 20px; border-radius: 4px; font-size: 16px; color: var(--text); margin-bottom: 32px; max-width: 640px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; transition: opacity .2s; }
.btn-primary { background: var(--accent); color: #0a0f1e; }
.btn-yellow { background: var(--yellow); color: #0a0f1e; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn:hover { opacity: .85; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* MODULES GRID */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; padding: 0 32px 64px; }
.module-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; display: block; }
.module-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.module-card.locked { opacity: .5; pointer-events: none; }
.module-num { font-size: 11px; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.module-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.module-desc { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.module-lessons { display: flex; gap: 8px; flex-wrap: wrap; }
.lesson-tag { font-size: 11px; background: #0c1a2e; border: 1px solid var(--border); color: #94a3b8; padding: 3px 10px; border-radius: 4px; }

/* PRICING */
.pricing { max-width: 900px; margin: 0 auto; padding: 0 32px 64px; }
.pricing h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.pricing-sub { color: var(--muted); margin-bottom: 32px; font-size: 15px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.plan.featured { border-color: var(--accent); position: relative; }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #0a0f1e; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 20px; white-space: nowrap; }
.plan-name { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.plan-price { font-size: 36px; font-weight: 700; color: var(--yellow); margin-bottom: 4px; }
.plan-period { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.plan-features li { font-size: 14px; color: #94a3b8; padding-left: 20px; position: relative; }
.plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* SECTION */
.section { max-width: 1100px; margin: 0 auto; padding: 48px 32px; }
.section-label { font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.section-h2 { font-size: clamp(20px, 3vw, 32px); font-weight: 700; margin-bottom: 32px; }

/* LESSON PAGE */
.lesson-wrap { max-width: 760px; margin: 0 auto; padding: 48px 32px; }
.lesson-header { margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.lesson-module { font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.lesson-title { font-size: clamp(22px, 3vw, 36px); font-weight: 700; margin-bottom: 12px; }
.lesson-meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.lesson-body h2 { font-size: 22px; font-weight: 700; margin: 36px 0 16px; color: var(--text); }
.lesson-body h3 { font-size: 17px; font-weight: 600; margin: 28px 0 12px; color: var(--accent); }
.lesson-body p { font-size: 16px; color: #cbd5e1; margin-bottom: 16px; }
.lesson-body ul, .lesson-body ol { margin: 0 0 16px 24px; }
.lesson-body li { font-size: 16px; color: #cbd5e1; margin-bottom: 8px; }
.lesson-body strong { color: var(--text); }
.code-block { background: #0c1a2e; border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin: 20px 0; font-family: 'Courier New', monospace; font-size: 14px; color: #93c5fd; overflow-x: auto; white-space: pre; line-height: 1.6; }
.code-block .comment { color: var(--muted); }
.code-block .string { color: #86efac; }
.code-block .keyword { color: #f0abfc; }
.tip-box { background: rgba(56,189,248,0.07); border: 1px solid rgba(56,189,248,0.3); border-radius: 8px; padding: 16px 20px; margin: 20px 0; }
.tip-box .tip-label { font-size: 12px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.tip-box p { font-size: 15px; color: #cbd5e1; margin: 0; }
.warn-box { background: rgba(251,191,36,0.07); border: 1px solid rgba(251,191,36,0.3); border-radius: 8px; padding: 16px 20px; margin: 20px 0; }
.warn-box .tip-label { font-size: 12px; color: var(--yellow); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.warn-box p { font-size: 15px; color: #cbd5e1; margin: 0; }
.lesson-img { width: 100%; border-radius: 8px; border: 1px solid var(--border); margin: 20px 0; }
.lesson-nav { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }

/* PROGRESS BAR */
.progress-wrap { background: var(--border); border-radius: 4px; height: 4px; margin-bottom: 6px; }
.progress-bar { height: 4px; border-radius: 4px; background: var(--accent); }

footer { text-align: center; padding: 32px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }

/* GLOBAL DIALOG STYLES (copy button support) */
.dialog-you { position: relative; padding-top: 40px !important; }
