:root {
  --bg: #ffffff;
  --surface: #f8f9fc;
  --surface2: #f0f2f8;
  --border: #e2e6f0;
  --border-dark: #cdd3e0;
  --accent: #e53935;
  --accent-hover: #c62828;
  --accent2: #1565c0;
  --accent2-hover: #0d47a1;
  --accent3: #2e7d32;
  --text: #0d1117;
  --text-body: #2d3748;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --danger: #e53935;
  --hero-bg: #0a0f1e;
  --hero-text: #ffffff;
  --hero-muted: #94a3b8;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== NAV ========== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: #fff;
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
  cursor: pointer;
}
.nav-links a:hover { color: var(--accent2); }
.nav-links a.active { color: var(--accent); }

.nav-auth-btn {
  background: var(--accent);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s;
  text-decoration: none;
}
.nav-auth-btn:hover { background: var(--accent-hover); }
.nav-auth-btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.nav-auth-btn.secondary:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* ========== PAGES ========== */
.page { display: none; padding-top: 64px; min-height: 100vh; }
.page.active { display: block; }

/* ========== BUTTONS ========== */
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(229,57,53,0.3); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 32px;
  border: 1.5px solid var(--border-dark);
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--hero-text);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 32px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ========== HERO ========== */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(229,57,53,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229,57,53,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero::after {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(21,101,192,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  position: relative; z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229,57,53,0.12);
  border: 1px solid rgba(229,57,53,0.3);
  color: #ff6b6b;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 28px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero h1 {
  position: relative; z-index: 1;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--hero-text);
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero p {
  position: relative; z-index: 1;
  color: var(--hero-muted);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-cta {
  position: relative; z-index: 1;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  position: relative; z-index: 1;
  display: flex;
  margin-top: 64px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  max-width: 700px;
  width: 100%;
}
.hero-stat {
  flex: 1;
  padding: 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: 'DM Mono', monospace;
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  display: block;
}
.hero-stat-label {
  font-size: 11px;
  color: rgba(148,163,184,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ========== SECTIONS ========== */
.section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-sm { padding: 48px 40px; max-width: 1200px; margin: 0 auto; }

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--text);
}
.section-subtitle {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 48px;
  max-width: 560px;
  line-height: 1.7;
}

/* ========== HOW IT WORKS ========== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.how-step {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  transition: all 0.2s;
}
.how-step:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(229,57,53,0.08); }
.how-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 40px;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}
.how-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text);
}
.how-desc { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ========== COURSES PAGE ========== */
.courses-header {
  background: var(--hero-bg);
  padding: 60px 40px 48px;
  text-align: center;
  color: var(--hero-text);
}
.courses-header .section-label { color: #ff6b6b; }
.courses-header .section-title { color: var(--hero-text); margin-bottom: 0; }

.courses-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  padding: 0 40px;
  background: #fff;
  position: sticky;
  top: 64px;
  z-index: 50;
  overflow-x: auto;
}
.courses-tab {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 24px;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
}
.courses-tab:hover { color: var(--text); }
.courses-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.courses-content { padding: 40px; max-width: 1200px; margin: 0 auto; }

/* ========== COURSE BLOCKS ========== */
.block-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.block-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }

.block-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  cursor: pointer;
  user-select: none;
}
.block-num {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted-light);
  flex-shrink: 0;
  width: 32px;
}
.block-icon { font-size: 24px; flex-shrink: 0; }
.block-info { flex: 1; }
.block-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 2px;
}
.block-meta {
  font-size: 12px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  display: flex;
  gap: 16px;
}
.block-status {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.block-status.open { background: rgba(21,101,192,0.08); color: var(--accent2); border: 1px solid rgba(21,101,192,0.2); }
.block-status.done { background: rgba(46,125,50,0.08); color: var(--accent3); border: 1px solid rgba(46,125,50,0.2); }
.block-status.locked { background: var(--surface); color: var(--muted-light); border: 1px solid var(--border); }
.block-chevron {
  color: var(--muted-light);
  font-size: 18px;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.block-card.expanded .block-chevron { transform: rotate(180deg); }

.block-lessons {
  display: none;
  border-top: 1px solid var(--border);
}
.block-card.expanded .block-lessons { display: block; }

.lesson-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px 14px 84px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.lesson-row:last-child { border-bottom: none; }
.lesson-row:hover { background: var(--surface); }
.lesson-row.active-lesson { background: rgba(229,57,53,0.04); border-left: 3px solid var(--accent); padding-left: 81px; }
.lesson-row.completed-lesson { }

.lesson-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-family: 'DM Mono', monospace;
  flex-shrink: 0;
  color: var(--muted);
}
.lesson-row.completed-lesson .lesson-dot { border-color: var(--accent3); background: rgba(46,125,50,0.1); color: var(--accent3); }
.lesson-row.active-lesson .lesson-dot { border-color: var(--accent); background: rgba(229,57,53,0.1); color: var(--accent); }

.lesson-name {
  flex: 1;
  font-size: 14px;
  color: var(--text-body);
}
.lesson-row.active-lesson .lesson-name { color: var(--accent); font-weight: 600; }
.lesson-duration {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted-light);
}

.block-test-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px 16px 84px;
  background: var(--surface);
  cursor: pointer;
  transition: background 0.15s;
}
.block-test-row:hover { background: var(--surface2); }
.test-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(229,57,53,0.1);
  border: 1.5px solid rgba(229,57,53,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  color: var(--accent);
}
.test-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.test-score {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent3);
}

/* ========== LESSON VIEW ========== */
.lesson-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: calc(100vh - 64px);
}

.lesson-sidebar {
  background: var(--surface);
  border-right: 1.5px solid var(--border);
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.sidebar-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sidebar-back:hover { color: var(--accent); }
.sidebar-block-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 20px 8px;
  color: var(--muted);
}
.sidebar-lesson {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  transition: background 0.15s;
}
.sidebar-lesson:hover { background: var(--surface2); color: var(--text); }
.sidebar-lesson.active { background: rgba(229,57,53,0.06); color: var(--accent); border-right: 3px solid var(--accent); }
.sidebar-lesson.done { color: var(--accent3); }
.sidebar-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px;
  font-family: 'DM Mono', monospace;
  flex-shrink: 0;
  color: var(--muted-light);
}
.sidebar-lesson.active .sidebar-dot { border-color: var(--accent); background: rgba(229,57,53,0.1); color: var(--accent); }
.sidebar-lesson.done .sidebar-dot { border-color: var(--accent3); background: rgba(46,125,50,0.1); color: var(--accent3); }
.sidebar-progress {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.sidebar-progress-bar {
  background: var(--border);
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.sidebar-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s;
}
.sidebar-progress-text {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.lesson-main {
  background: #fff;
  padding: 56px 64px;
  max-width: 800px;
}

.lesson-breadcrumb {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted-light);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lesson-breadcrumb a {
  color: var(--accent2);
  cursor: pointer;
  text-decoration: none;
}
.lesson-breadcrumb a:hover { text-decoration: underline; }

.lesson-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 32px;
  color: var(--text);
}

/* Lesson body content */
.lesson-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 36px 0 14px;
  color: var(--text);
}
.lesson-body p {
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 15px;
}
.lesson-body ul {
  margin: 12px 0 20px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lesson-body ul li {
  padding-left: 20px;
  position: relative;
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.7;
}
.lesson-body ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.lesson-body strong { color: var(--text); font-weight: 600; }

.callout {
  background: rgba(21,101,192,0.05);
  border-left: 3px solid var(--accent2);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}
.callout.warning { background: rgba(229,57,53,0.05); border-color: var(--accent); }
.callout.success { background: rgba(46,125,50,0.05); border-color: var(--accent3); }

.lesson-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1.5px solid var(--border);
}

/* ========== QUIZ ========== */
.quiz-wrap {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 40px 80px;
}
.quiz-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}
.quiz-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.quiz-counter {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}
.quiz-progress-bar {
  background: var(--border);
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 36px;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}
.quiz-question {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 28px;
  color: var(--text);
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.quiz-option {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-body);
  text-align: left;
}
.quiz-option:hover:not(:disabled) { border-color: var(--accent2); background: rgba(21,101,192,0.04); }
.quiz-option.correct { border-color: var(--accent3); background: rgba(46,125,50,0.07); }
.quiz-option.wrong { border-color: var(--danger); background: rgba(229,57,53,0.06); }
.quiz-option:disabled { cursor: default; }
.option-key {
  width: 28px; height: 28px;
  border-radius: 4px;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
  color: var(--muted);
}
.quiz-feedback {
  min-height: 32px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Quiz Result */
.quiz-result {
  text-align: center;
  padding: 20px 0;
}
.quiz-result-emoji { font-size: 64px; margin-bottom: 20px; display: block; }
.quiz-result-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 40px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text);
}
.quiz-result-score {
  font-family: 'DM Mono', monospace;
  font-size: 52px;
  font-weight: 500;
  margin: 16px 0;
}
.quiz-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ========== AUTH ========== */
.auth-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--surface);
}
.auth-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.07);
}
.auth-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 32px;
}
.auth-logo span { color: var(--accent); }
.auth-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}
.auth-subtitle { color: var(--muted); font-size: 14px; margin-bottom: 28px; line-height: 1.6; }
.auth-note { font-size: 12px; color: var(--muted-light); text-align: center; margin-top: 20px; line-height: 1.6; }
.auth-success { text-align: center; padding: 8px 0; }
.auth-success-icon { font-size: 48px; margin-bottom: 16px; display: block; }

/* ========== FORM ========== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 7px;
}
.form-input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 11px 14px;
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus { border-color: var(--accent2); }
.form-input::placeholder { color: var(--muted-light); }
.form-input[readonly] { background: var(--surface2); color: var(--muted); }
.form-note { font-size: 12px; color: var(--muted-light); margin-top: 5px; line-height: 1.5; }

/* ========== ЛИЧНЫЙ КАБИНЕТ ========== */
.lk-wrap { max-width: 960px; margin: 0 auto; padding: 48px 40px; }
.lk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid var(--border);
}
.lk-greeting {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 32px;
  text-transform: uppercase;
  color: var(--text);
}
.lk-email { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--muted); margin-top: 4px; }
.lk-logout {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.lk-logout:hover { border-color: var(--accent); color: var(--accent); }
.lk-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 14px;
  margin-top: 36px;
}
.lk-course-row {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.lk-course-row:hover { border-color: var(--accent2); box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.lk-course-icon {
  font-size: 26px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border-radius: 8px;
  flex-shrink: 0;
}
.lk-course-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  color: var(--text);
  flex: 1;
}
.lk-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 3px;
}
.lk-status.done { background: rgba(46,125,50,0.08); color: var(--accent3); border: 1px solid rgba(46,125,50,0.2); }
.lk-status.progress { background: rgba(21,101,192,0.08); color: var(--accent2); border: 1px solid rgba(21,101,192,0.2); }
.lk-status.locked { background: var(--surface); color: var(--muted-light); border: 1px solid var(--border); }
.lk-empty {
  text-align: center;
  padding: 36px;
  color: var(--muted-light);
  font-size: 14px;
  background: var(--surface);
  border-radius: 8px;
  border: 1.5px dashed var(--border);
  line-height: 1.7;
}

/* ========== REWARD ========== */
.reward-wrap {
  max-width: 540px;
  margin: 0 auto;
  padding: 72px 40px;
  text-align: center;
}
.reward-emoji { font-size: 60px; margin-bottom: 20px; display: block; }
.reward-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 38px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--text);
}
.reward-desc { color: var(--muted); font-size: 15px; margin-bottom: 36px; line-height: 1.7; }
.reward-form-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.submit-success {
  display: none;
  text-align: center;
  padding: 32px;
  background: rgba(46,125,50,0.06);
  border: 1px solid rgba(46,125,50,0.25);
  border-radius: 8px;
}
.submit-success.visible { display: block; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--hero-bg);
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 28px 40px;
  font-size: 13px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.3px;
  border-top: 2px solid var(--accent);
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ========== LOADING ========== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  gap: 10px;
}
.loading::before {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links li:not(.nav-auth-item) { display: none; }
  .hero { padding: 60px 24px; }
  .section, .section-sm { padding: 48px 20px; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-sidebar { display: none; }
  .lesson-main { padding: 32px 24px; max-width: 100%; }
  .courses-content { padding: 24px 20px; }
  .courses-tabs { padding: 0 20px; }
  .quiz-wrap { padding: 0 20px 60px; }
  .quiz-card { padding: 28px 24px; }
  .lk-wrap { padding: 32px 20px; }
  .reward-wrap { padding: 48px 20px; }
}
