/* TESTAMIND Course Framework - Claude API & SDK Course */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --tm-primary: #6366f1;
  --tm-primary-dark: #4f46e5;
  --tm-secondary: #a855f7;
  --tm-tertiary: #34d399;
  --tm-accent: #818cf8;
  --tm-dark-950: #0a0a14;
  --tm-dark-900: #12121e;
  --tm-dark-800: #1e1e30;
  --tm-text: #ffffff;
  --tm-text-secondary: #b8c5d6;
  --tm-text-muted: #6b7a8f;
  --tm-glass: rgba(255,255,255,0.03);
  --tm-glass-border: rgba(255,255,255,0.08);
  --tm-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --tm-radius: 16px;
  --tm-radius-sm: 10px;
  --tm-radius-btn: 14px;
  --mod1: #6366f1;
  --mod2: #8b5cf6;
  --mod3: #a855f7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--tm-dark-950);
  color: var(--tm-text);
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  direction: rtl;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--tm-dark-950); }
::-webkit-scrollbar-thumb { background: var(--tm-dark-800); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--tm-primary); }

/* ===== HEADER ===== */
.course-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: rgba(10,10,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--tm-glass-border);
}

.header-brand { text-decoration: none; }
.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--tm-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-nav { display: flex; align-items: center; gap: 16px; }
.header-nav a {
  color: var(--tm-text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s;
}
.header-nav a:hover { color: var(--tm-primary); }
.btn-sm {
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  padding: 6px 16px;
  border-radius: 50px;
  color: var(--tm-primary) !important;
  font-weight: 600;
}

/* ===== HERO ===== */
.hero {
  padding: 120px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--tm-primary);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}

.gradient-text {
  background: var(--tm-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--tm-text-secondary);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
  margin-bottom: 32px;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--tm-primary);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--tm-text-muted);
  font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn-cta {
  display: inline-block;
  background: var(--tm-gradient);
  color: #fff;
  padding: 16px 48px;
  border-radius: var(--tm-radius-btn);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(99,102,241,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99,102,241,0.4);
}

/* ===== PROGRESS ===== */
.progress-bar-bg {
  height: 6px;
  background: var(--tm-dark-800);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--tm-gradient);
  border-radius: 3px;
  transition: width 0.5s;
}

/* ===== MODULES SECTION ===== */
.modules-section {
  padding: 60px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 40px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}

.module-card {
  background: var(--tm-glass);
  border: 1px solid var(--tm-glass-border);
  border-radius: var(--tm-radius);
  padding: 28px 24px;
  transition: border-color 0.3s;
}
.module-card:hover {
  border-color: var(--module-color, var(--tm-glass-border));
}

.module-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.module-icon { font-size: 2rem; }
.module-number {
  font-size: 0.75rem;
  color: var(--module-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.module-title {
  font-size: 1.2rem;
  font-weight: 700;
}
.module-desc {
  color: var(--tm-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.module-lessons {
  list-style: none;
}
.module-lessons li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--tm-glass-border);
  font-size: 0.88rem;
}
.lesson-num {
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--tm-text-muted);
  font-weight: 600;
}
.lesson-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--tm-glass-border);
  border-radius: 50%;
  transition: all 0.3s;
  flex-shrink: 0;
}
.lesson-check.completed {
  background: var(--tm-primary);
  border-color: var(--tm-primary);
}
.module-lessons a {
  color: var(--tm-text-secondary);
  text-decoration: none;
  flex: 1;
  transition: color 0.3s;
}
.module-lessons a:hover { color: var(--tm-primary); }
.lesson-duration {
  color: var(--tm-text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 60px 24px;
  text-align: center;
}
.cta-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-section p {
  color: var(--tm-text-secondary);
  margin-bottom: 24px;
}

/* ===== FOOTER ===== */
.course-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--tm-glass-border);
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-links a {
  color: var(--tm-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--tm-primary); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--tm-text-muted);
}
.footer-copy a { color: var(--tm-text-muted); text-decoration: none; }

/* ===== LESSON PAGE LAYOUT ===== */
.lesson-page {
  display: flex;
  min-height: 100vh;
  padding-top: 56px;
}

.lesson-main {
  flex: 1;
  padding: 24px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--tm-text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--tm-text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumbs a:hover { color: var(--tm-primary); }
.breadcrumbs .sep { opacity: 0.4; }

/* Lesson Header */
.lesson-header { margin-bottom: 24px; }
.lesson-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.tag-module {
  background: rgba(var(--module-color-rgb, 99,102,241), 0.12);
  color: var(--module-color);
}
.tag-duration {
  background: rgba(255,255,255,0.05);
  color: var(--tm-text-muted);
}
.tag-level {
  background: rgba(255,255,255,0.05);
  color: var(--tm-text-muted);
}

.lesson-header h1 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.lesson-subtitle {
  color: var(--tm-text-secondary);
  font-size: 0.95rem;
}

/* Player Wrapper */
.player-wrapper {
  border-radius: var(--tm-radius);
  overflow: hidden;
  border: 1px solid var(--tm-glass-border);
  background: #000;
  margin-bottom: 24px;
  min-height: 500px;
}
.player-wrapper iframe {
  width: 100%;
  min-height: 500px;
  border: none;
  display: block;
}

/* Lesson Navigation */
.lesson-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--tm-glass-border);
}
.nav-btn {
  padding: 10px 24px;
  border-radius: var(--tm-radius-btn);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tm-text-secondary);
  background: var(--tm-glass);
  border: 1px solid var(--tm-glass-border);
  transition: all 0.3s;
}
.nav-btn:hover {
  border-color: var(--tm-primary);
  color: var(--tm-primary);
}
.btn-complete {
  padding: 10px 24px;
  border-radius: var(--tm-radius-btn);
  border: 2px solid var(--tm-primary);
  background: transparent;
  color: var(--tm-primary);
  font-family: 'Heebo', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-complete:hover,
.btn-complete.is-completed {
  background: var(--tm-primary);
  color: #fff;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 56px;
  right: 0;
  width: 320px;
  height: calc(100vh - 56px);
  background: var(--tm-dark-900);
  border-left: 1px solid var(--tm-glass-border);
  overflow-y: auto;
  z-index: 900;
  transform: translateX(100%);
  transition: transform 0.3s;
}
.sidebar.open { transform: translateX(0); }

.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--tm-glass-border);
}
.sidebar-header a {
  color: var(--tm-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.sidebar-header a:hover { color: var(--tm-primary); }

.sidebar-progress { padding: 16px 20px; }
.sidebar-progress .progress-text {
  font-size: 0.8rem;
  color: var(--tm-text-muted);
  margin-bottom: 8px;
}

.sidebar-module { border-bottom: 1px solid var(--tm-glass-border); }
.sidebar-module-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--module-color);
  cursor: pointer;
  user-select: none;
}
.sidebar-module-title .arrow {
  transition: transform 0.3s;
  font-size: 0.7rem;
}
.sidebar-module.open .arrow { transform: rotate(-90deg); }

.sidebar-lessons {
  list-style: none;
  display: none;
  padding: 0 20px 12px;
}
.sidebar-module.open .sidebar-lessons { display: block; }

.sidebar-lessons li {
  margin-bottom: 2px;
}
.sidebar-lessons a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--tm-radius-sm);
  text-decoration: none;
  color: var(--tm-text-muted);
  font-size: 0.82rem;
  transition: all 0.3s;
}
.sidebar-lessons a:hover { background: var(--tm-glass); color: var(--tm-text); }
.sidebar-lessons a.active {
  background: rgba(99,102,241,0.1);
  color: var(--tm-primary);
}

.s-check {
  width: 16px; height: 16px;
  border: 2px solid var(--tm-glass-border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s;
}
.s-check.done {
  background: var(--tm-primary);
  border-color: var(--tm-primary);
}

.sidebar-toggle {
  position: fixed;
  top: 70px;
  right: 12px;
  z-index: 950;
  background: var(--tm-dark-900);
  border: 1px solid var(--tm-glass-border);
  color: var(--tm-text);
  width: 40px; height: 40px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 850;
  display: none;
}
.sidebar-overlay.active { display: block; }

/* ===== LEAD CAPTURE ===== */
.lc-section { padding: 40px 24px; text-align: center; }
.lc-card {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(99,102,241,0.06), rgba(168,85,247,0.04));
  border: 2px solid rgba(99,102,241,0.15);
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: border-color 0.3s;
}
.lc-card:hover { border-color: rgba(99,102,241,0.3); }
.lc-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px;
  height: 4px;
  background: var(--tm-gradient);
  border-radius: 20px 20px 0 0;
}
.lc-badge {
  display: inline-block;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--tm-primary);
  font-weight: 600;
  margin-bottom: 16px;
}
.lc-title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  margin-bottom: 10px;
  background: var(--tm-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lc-subtitle {
  color: var(--tm-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.lc-form-row {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.lc-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--tm-radius-btn);
  border: 2px solid var(--tm-glass-border);
  background: var(--tm-dark-900);
  color: var(--tm-text);
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.lc-input::placeholder { color: var(--tm-text-muted); }
.lc-input:focus {
  outline: none;
  border-color: var(--tm-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15), 0 0 20px rgba(99,102,241,0.08);
}
.lc-btn {
  padding: 14px 28px;
  border-radius: var(--tm-radius-btn);
  border: none;
  background: var(--tm-gradient);
  color: #fff;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.lc-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.3); }
.lc-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.lc-privacy {
  font-size: 0.75rem;
  color: var(--tm-text-muted);
  margin-top: 10px;
}
.lc-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 1.2em;
}

/* ===== REVEALED CONTENT (after email) ===== */
.lc-success {
  display: none;
  animation: lcFadeIn 0.6s ease;
}
.lc-success.show { display: block; }

.lc-reveal { text-align: center; }
.lc-reveal-header { margin-bottom: 28px; }
.lc-reveal-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}
.lc-reveal-title {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  margin-bottom: 8px;
  background: var(--tm-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lc-reveal-intro {
  color: var(--tm-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}
.lc-tricks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  text-align: right;
}
.lc-trick-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--tm-glass-border);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.3s, transform 0.3s;
}
.lc-trick-card:hover {
  border-color: rgba(99,102,241,0.25);
  transform: translateY(-2px);
}
.lc-trick-num {
  display: inline-block;
  background: rgba(99,102,241,0.08);
  color: var(--tm-primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.lc-trick-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tm-text);
  margin-bottom: 8px;
}
.lc-trick-desc {
  font-size: 0.85rem;
  color: var(--tm-text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}
.lc-trick-saving {
  display: inline-block;
  background: linear-gradient(135deg, rgba(52,211,153,0.1), rgba(99,102,241,0.1));
  border: 1px solid rgba(52,211,153,0.2);
  color: var(--tm-tertiary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
}
.lc-reveal-footer {
  text-align: center;
  color: var(--tm-text-muted);
  font-size: 0.85rem;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--tm-glass-border);
}

/* ===== POPUP ===== */
.lc-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.lc-popup-overlay.active { opacity: 1; }
.lc-popup {
  background: var(--tm-dark-900);
  border: 2px solid rgba(99,102,241,0.2);
  border-radius: 20px;
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  text-align: center;
  animation: lcSlideUp 0.4s ease;
}
.lc-popup .lc-form-row { flex-direction: column; gap: 10px; max-width: 100%; }
.lc-popup .lc-btn { width: 100%; }
.lc-popup-close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: none;
  border: none;
  color: var(--tm-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.lc-popup-close:hover { background: var(--tm-glass); color: var(--tm-text); }
@keyframes lcFadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes lcSlideUp { from { opacity:0;transform:translateY(30px); } to { opacity:1;transform:translateY(0); } }

/* ===== HERO-INLINE LEAD CAPTURE ===== */
.lc-hero-wrap {
  max-width: 700px;
  margin: 40px auto 0;
}
.lc-card-hero { max-width: 100%; padding: 28px 32px; }
.lc-hero-row {
  display: flex;
  align-items: center;
  gap: 28px;
}
.lc-hero-text { flex: 1; text-align: right; }
.lc-hero-text .lc-badge { margin-bottom: 8px; }
.lc-hero-text .lc-title { font-size: 1.15rem; margin-bottom: 6px; }
.lc-hero-text .lc-subtitle { font-size: 0.85rem; color: var(--tm-text-muted); margin-bottom: 0; }
.lc-hero-form { flex: 1; min-width: 260px; }
.lc-hero-form .lc-form-wrap { text-align: center; }
.lc-hero-form .lc-form-row { flex-direction: column; gap: 10px; max-width: 100%; }
.lc-hero-form .lc-btn { width: 100%; padding: 14px 24px; font-size: 1rem; }
.lc-hero-form .lc-input { width: 100%; padding: 14px 18px; text-align: center; font-size: 1rem; }
.lc-hero-form .lc-privacy { font-size: 0.72rem; margin-top: 6px; text-align: center; }

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
  .sidebar { transform: translateX(0); }
  .lesson-page { padding-right: 320px; }
  .sidebar-toggle { display: none; }
}

@media (max-width: 768px) {
  .modules-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 20px; }
  .hero h1 { font-size: 2rem; }
  .lesson-nav { flex-direction: column; }
  .nav-btn { width: 100%; text-align: center; }
  .lc-hero-row { flex-direction: column; gap: 16px; }
  .lc-hero-text { text-align: center; }
  .lc-hero-form { min-width: 0; width: 100%; }
  .lc-card { padding: 28px 20px; }
  .lc-card-hero { padding: 24px 20px; }
  .lc-form-row { flex-direction: column; gap: 10px; }
  .lc-btn { width: 100%; }
  .lc-popup { padding: 32px 20px; }
  .lc-popup .lc-form-row { flex-direction: column; gap: 10px; }
  .lc-trick-card { padding: 16px; }

  /* === MOBILE LESSON PAGE OPTIMIZATION === */
  .lesson-page .lesson-main {
    padding: 12px 12px 0;
  }

  .lesson-page .breadcrumbs {
    margin-bottom: 8px;
    font-size: 0.75rem;
  }

  .lesson-page .lesson-header {
    margin-bottom: 12px;
  }

  .lesson-page .lesson-header h1 {
    font-size: 1.2rem;
    margin-bottom: 4px;
  }

  .lesson-page .lesson-subtitle {
    font-size: 0.8rem;
  }

  .lesson-page .lesson-meta {
    margin-bottom: 6px;
    gap: 6px;
  }

  .lesson-page .lesson-meta .tag {
    padding: 2px 10px;
    font-size: 0.7rem;
  }

  .player-wrapper {
    min-height: 300px !important;
    height: calc(100vh - 200px);
    max-height: 75vh;
    border-radius: 12px;
    margin-bottom: 16px;
    position: relative;
  }

  .player-wrapper iframe {
    min-height: 0 !important;
    height: 100% !important;
    width: 100%;
  }

  .lesson-nav {
    padding: 12px 0;
    gap: 8px;
  }

  .lesson-nav .nav-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .lesson-nav .btn-complete {
    padding: 8px 16px;
    font-size: 0.82rem;
  }
}

@media (max-width: 600px) {
  .hero { padding: 100px 16px 40px; }
  .module-card { padding: 20px 16px; }
  .lc-section { padding: 24px 16px; }
}