/* ============ RESET & BASE ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #4f46e5;
  --primary-light: #7c74f0;
  --primary-dark: #3730a3;
  --secondary: #f59e0b;
  --accent: #10b981;
  --danger: #ef4444;
  --bg: #f8faff;
  --bg-alt: #eef2ff;
  --card: #ffffff;
  --text: #1e1b4b;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(79,70,229,0.1);
  --shadow-hover: 0 8px 40px rgba(79,70,229,0.2);
}
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: 'Nunito', sans-serif; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }

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

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(79,70,229,0.08);
  transition: all .3s ease;
}
.nav-container { max-width: 100%; padding: 0 2rem; display: flex; align-items: center; gap: 1.5rem; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 38px; height: 38px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; }
.logo-text { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.3rem; color: var(--primary); }
.logo-text span { color: var(--secondary); }
.nav-links { display: flex; gap: .25rem; margin-left: 1rem; flex: 1; }
.nav-link { padding: .5rem .9rem; border-radius: 8px; font-weight: 700; font-size: .9rem; color: var(--text-muted); transition: all .2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--bg-alt); }
.nav-auth { display: flex; gap: .75rem; margin-left: auto; }
.btn-login { padding: .5rem 1.2rem; background: transparent; border: 2px solid var(--primary); color: var(--primary); border-radius: 10px; font-weight: 700; font-size: .9rem; transition: all .2s; }
.btn-login:hover { background: var(--primary); color: white; }
.btn-register { padding: .5rem 1.2rem; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; border-radius: 10px; font-weight: 700; font-size: .9rem; box-shadow: 0 4px 15px rgba(79,70,229,0.3); transition: all .2s; }
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,0.4); }
.hamburger { display: none; background: none; font-size: 1.5rem; color: var(--primary); }

/* ============ HERO ============ */
.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 4rem 4rem 3rem;
  position: relative;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .12; }
.blob1 { width: 500px; height: 500px; background: var(--primary); top: -100px; right: -100px; }
.blob2 { width: 300px; height: 300px; background: var(--secondary); bottom: 100px; left: -50px; }
.blob3 { width: 200px; height: 200px; background: var(--accent); top: 50%; right: 30%; }
.dots-pattern { position: absolute; inset: 0; background-image: radial-gradient(circle, var(--primary) 1px, transparent 1px); background-size: 30px 30px; opacity: .04; }
.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-block; background: var(--bg-alt); color: var(--primary); padding: .4rem 1rem; border-radius: 50px; font-size: .85rem; font-weight: 800; margin-bottom: 1rem; border: 1.5px solid rgba(79,70,229,0.2); }
.hero-title { font-family: 'Baloo 2', cursive; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.2; color: var(--text); margin-bottom: 1.2rem; }
.highlight { color: var(--primary); position: relative; }
.highlight::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--secondary), var(--primary)); border-radius: 2px; }
.hero-desc { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; max-width: 480px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; padding: .8rem 1.8rem; border-radius: 12px; font-weight: 800; font-size: 1rem; box-shadow: 0 6px 20px rgba(79,70,229,0.35); transition: all .3s; display: inline-block; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(79,70,229,0.45); }
.btn-secondary { background: white; color: var(--primary); padding: .8rem 1.8rem; border-radius: 12px; font-weight: 800; font-size: 1rem; border: 2px solid var(--primary); transition: all .3s; }
.btn-secondary:hover { background: var(--primary); color: white; }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: 'Baloo 2', cursive; font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.stat span { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.stat-div { width: 1px; height: 30px; background: var(--border); }
.hero-visual { position: relative; height: 420px; z-index: 1; }
.hero-card { position: absolute; background: white; border-radius: 14px; padding: .8rem 1.2rem; display: flex; align-items: center; gap: .8rem; box-shadow: 0 8px 30px rgba(0,0,0,0.12); font-size: .85rem; font-weight: 700; animation-duration: 3s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.hero-card small { font-weight: 500; color: var(--text-muted); display: block; }
.card-emoji { font-size: 1.8rem; }
.card-float { top: 20px; left: 0; animation-name: float1; }
.card-float2 { top: 120px; right: 0; animation-name: float2; }
.card-float3 { bottom: 120px; left: 20px; animation-name: float1; }
.card-float4 { bottom: 40px; right: 30px; animation-name: float2; }
@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.hero-center-card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.progress-ring { position: relative; width: 140px; height: 140px; }
.progress-ring svg { width: 100%; height: 100%; }
.ring-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.3rem; color: var(--primary); }
.ring-text small { font-size: .65rem; color: var(--text-muted); font-family: 'Nunito', sans-serif; font-weight: 600; }

/* ============ FEATURES STRIP ============ */
.features-strip { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 1rem 2rem; display: flex; gap: 0; overflow-x: auto; }
.strip-item { color: white; font-weight: 700; font-size: .9rem; padding: .5rem 1.5rem; white-space: nowrap; border-right: 1px solid rgba(255,255,255,0.2); opacity: .9; }
.strip-item:hover { opacity: 1; }
.strip-item:last-child { border-right: none; }

/* ============ SECTIONS ============ */
.section { padding: 5rem 1rem; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 100%; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-badge { display: inline-block; background: var(--primary); color: white; padding: .3rem .9rem; border-radius: 50px; font-size: .8rem; font-weight: 800; margin-bottom: .8rem; letter-spacing: .5px; }
.section-title { font-family: 'Baloo 2', cursive; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: .8rem; }
.section-desc { color: var(--text-muted); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ============ CLASS CARDS ============ */
.classes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.class-card { background: white; border-radius: var(--radius); padding: 1.8rem 1.5rem; box-shadow: var(--shadow); cursor: pointer; transition: all .3s; border: 2px solid transparent; }
.class-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.class-num { font-family: 'Baloo 2', cursive; font-size: 3rem; font-weight: 800; color: #000; opacity: .8; line-height: 1; }
.class-info h3 { font-family: 'Baloo 2', cursive; font-size: 1.3rem; font-weight: 800; margin-bottom: .25rem; }
.class-info p { color: var(--text-muted); font-size: .85rem; }
.class-stats { background: var(--bg-alt); display: inline-block; padding: .2rem .7rem; border-radius: 50px; font-size: .75rem; font-weight: 700; color: var(--primary); margin-top: .5rem; }
.class-subjects { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.subj-tag { background: var(--bg-alt); color: var(--primary); padding: .2rem .6rem; border-radius: 6px; font-size: .72rem; font-weight: 700; }
.class-btn { margin-top: 1.2rem; width: 100%; padding: .7rem; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; border-radius: 10px; font-weight: 800; font-size: .9rem; transition: all .2s; }
.class-btn:hover { opacity: .9; }

/* ============ STEPS ============ */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.step-card { background: white; border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow); position: relative; }
.step-num { position: absolute; top: 1rem; right: 1rem; font-family: 'Baloo 2', cursive; font-size: 2rem; font-weight: 900; color: var(--primary); opacity: .1; }
.step-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.step-card h3 { font-weight: 800; margin-bottom: .5rem; }
.step-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* ============ FEATURES GRID ============ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card { background: white; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); transition: all .3s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feat-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-weight: 800; margin-bottom: .5rem; }
.feature-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }
.feat-highlight { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
.feat-highlight h3, .feat-highlight p { color: white; }

/* ============ TESTIMONIALS ============ */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testi-card { background: white; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.stars { color: var(--secondary); font-size: 1.2rem; margin-bottom: 1rem; }
.testi-card p { color: var(--text-muted); font-size: .95rem; line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: .8rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; }
.testi-author strong { display: block; font-weight: 800; font-size: .9rem; }
.testi-author span { font-size: .8rem; color: var(--text-muted); }

/* ============ CTA ============ */
.cta-section { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 5rem 2rem; text-align: center; }
.cta-content h2 { font-family: 'Baloo 2', cursive; font-size: 2.4rem; font-weight: 800; color: white; margin-bottom: 1rem; }
.cta-content p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-white { background: white; color: var(--primary); padding: .8rem 1.8rem; border-radius: 12px; font-weight: 800; font-size: 1rem; transition: all .3s; }
.btn-white:hover { background: var(--bg-alt); }

/* ============ FOOTER ============ */
.footer { background: var(--text); color: white; padding: 3rem 1rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { font-family: 'Baloo 2', cursive; font-size: 1.5rem; font-weight: 800; color: white; margin-bottom: .8rem; }
.footer-logo span { color: var(--secondary); }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .9rem; line-height: 1.7; margin-bottom: 1rem; }
.footer-wa { display: inline-flex; align-items: center; gap: .5rem; background: #25d366; color: white; padding: .5rem 1rem; border-radius: 8px; font-weight: 700; font-size: .9rem; }
.footer-col h4 { font-weight: 800; margin-bottom: 1rem; font-size: .95rem; }
.footer-col a { display: block; color: rgba(255,255,255,.6); margin-bottom: .5rem; font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; text-align: center; color: rgba(255,255,255,.5); font-size: .85rem; }

/* ============ MINI HERO ============ */
.mini-hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; text-align: center; padding: 4rem 1rem 3rem; }
.mini-hero h1 { font-family: 'Baloo 2', cursive; font-size: 2.5rem; font-weight: 800; margin-bottom: .5rem; }
.mini-hero p { opacity: .85; font-size: 1.05rem; }

/* ============ COURSES PAGE ============ */
.class-filter { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn { padding: .5rem 1.2rem; border-radius: 50px; background: white; border: 2px solid var(--border); color: var(--text-muted); font-weight: 700; font-size: .9rem; transition: all .2s; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.course-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all .3s; cursor: pointer; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.course-header { padding: 1.5rem; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; }
.course-class-badge { background: rgba(255,255,255,.2); display: inline-block; padding: .2rem .7rem; border-radius: 6px; font-size: .8rem; font-weight: 700; margin-bottom: .7rem; }
.course-header h3 { font-family: 'Baloo 2', cursive; font-size: 1.2rem; font-weight: 800; margin-bottom: .25rem; }
.course-header p { opacity: .85; font-size: .85rem; }
.course-body { padding: 1.5rem; }
.course-meta { display: flex; gap: 1rem; margin-bottom: 1rem; }
.meta-item { display: flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700; color: var(--text-muted); }
.module-preview { margin-bottom: 1.2rem; }
.module-item { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.module-item:last-child { border-bottom: none; }
.mi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* ============ COURSE DETAIL PAGE ============ */
.course-detail-hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 4rem 2rem 3rem; }
.course-detail-hero h1 { font-family: 'Baloo 2', cursive; font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.course-detail-hero p { opacity: .85; margin-bottom: 1.5rem; }
.course-detail-layout { max-width: 100%; margin: 0 auto; padding: 2rem 2rem; display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.course-modules { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.module-header { background: var(--bg-alt); padding: 1.2rem 1.5rem; display: flex; align-items: center; justify-content: space-between; cursor: pointer; border-bottom: 1px solid var(--border); }
.module-header:hover { background: var(--bg); }
.module-title { font-weight: 800; font-size: 1rem; }
.module-meta { font-size: .82rem; color: var(--text-muted); }
.module-toggle { color: var(--primary); font-size: 1.2rem; transition: transform .3s; }
.module-body { display: none; }
.module-body.open { display: block; }
.lesson-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .2s; }
.lesson-item:hover { background: var(--bg-alt); }
.lesson-item:last-child { border-bottom: none; }
.li-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.li-info { flex: 1; }
.li-info strong { display: block; font-weight: 700; font-size: .9rem; }
.li-info span { font-size: .8rem; color: var(--text-muted); }
.li-status { font-size: .8rem; font-weight: 700; color: var(--accent); }
.course-sidebar { position: sticky; top: 90px; }
.enroll-card { background: white; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); text-align: center; }
.enroll-card h3 { font-family: 'Baloo 2', cursive; font-size: 1.3rem; font-weight: 800; margin-bottom: .5rem; }
.enroll-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.enroll-btn { width: 100%; padding: 1rem; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; border-radius: 12px; font-weight: 800; font-size: 1rem; margin-bottom: .8rem; box-shadow: 0 4px 15px rgba(79,70,229,0.3); transition: all .2s; }
.enroll-btn:hover { transform: translateY(-1px); }
.course-includes { margin-top: 1.5rem; text-align: left; }
.course-includes h4 { font-weight: 800; margin-bottom: .8rem; }
.ci-item { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; font-size: .88rem; color: var(--text-muted); }

/* ============ LESSON PAGE ============ */
.lesson-layout { max-width: 100%; margin: 0 auto; padding: 2rem 2rem; display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }
.lesson-sidebar { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 90px; }
.lesson-sidebar-header { background: var(--primary); color: white; padding: 1rem 1.2rem; font-weight: 800; font-size: .9rem; }
.sidebar-lesson { display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border); cursor: pointer; font-size: .85rem; transition: background .2s; }
.sidebar-lesson:hover { background: var(--bg-alt); }
.sidebar-lesson.active { background: var(--bg-alt); border-left: 3px solid var(--primary); }
.sidebar-lesson.done .sl-num { background: var(--accent); color: white; }
.sl-num { width: 24px; height: 24px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; flex-shrink: 0; }
.lesson-main { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.lesson-tabs { display: flex; background: var(--bg-alt); border-bottom: 1px solid var(--border); overflow-x: auto; }
.lesson-tab { padding: 1rem 1.5rem; font-weight: 700; font-size: .9rem; color: var(--text-muted); cursor: pointer; white-space: nowrap; transition: all .2s; border-bottom: 3px solid transparent; }
.lesson-tab:hover { color: var(--primary); }
.lesson-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: white; }
.lesson-tab-content { display: none; padding: 2rem; }
.lesson-tab-content.active { display: block; }
.read-content h2 { font-family: 'Baloo 2', cursive; font-size: 1.6rem; margin-bottom: 1rem; color: var(--primary); }
.read-content p { line-height: 1.8; color: var(--text-muted); margin-bottom: 1rem; }
.read-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.read-content ul li { line-height: 1.8; color: var(--text-muted); margin-bottom: .4rem; }
.video-placeholder { background: var(--text); border-radius: 12px; aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: white; margin-bottom: 1.5rem; }
.play-btn { width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.2); border: 3px solid white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; }
.play-btn:hover { background: var(--primary); border-color: var(--primary); }
.pdf-embed { border: 2px dashed var(--border); border-radius: 12px; padding: 3rem; text-align: center; background: var(--bg-alt); }
.pdf-icon { font-size: 4rem; margin-bottom: 1rem; }
.mcq-question { background: var(--bg-alt); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.mcq-question h4 { font-weight: 800; margin-bottom: 1rem; }
.mcq-option { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; background: white; border-radius: 8px; margin-bottom: .5rem; cursor: pointer; border: 2px solid transparent; transition: all .2s; }
.mcq-option:hover { border-color: var(--primary); }
.mcq-option.selected { border-color: var(--primary); background: rgba(79,70,229,0.05); }
.mcq-option.correct { border-color: var(--accent); background: rgba(16,185,129,0.08); }
.mcq-option.wrong { border-color: var(--danger); background: rgba(239,68,68,0.08); }
.opt-circle { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.match-container { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.match-col h4 { font-weight: 800; margin-bottom: 1rem; color: var(--primary); }
.match-item { background: var(--bg-alt); border-radius: 8px; padding: .8rem 1rem; margin-bottom: .5rem; cursor: grab; border: 2px solid transparent; transition: all .2s; font-size: .9rem; font-weight: 600; }
.match-item:hover { border-color: var(--primary); }
.match-item.matched { border-color: var(--accent); background: rgba(16,185,129,0.08); cursor: default; }
.submit-btn { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; padding: .9rem 2rem; border-radius: 10px; font-weight: 800; font-size: 1rem; transition: all .2s; }
.submit-btn:hover { transform: translateY(-1px); }
.assessment-intro { text-align: center; padding: 2rem; }
.assessment-intro h2 { font-family: 'Baloo 2', cursive; font-size: 1.8rem; margin-bottom: 1rem; }
.assessment-info { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.ai-item { background: var(--bg-alt); padding: .8rem 1.5rem; border-radius: 10px; font-weight: 700; font-size: .9rem; }
.start-assessment-btn { background: linear-gradient(135deg, var(--secondary), #d97706); color: white; padding: 1rem 2.5rem; border-radius: 12px; font-weight: 800; font-size: 1.1rem; box-shadow: 0 6px 20px rgba(245,158,11,0.35); transition: all .2s; }
.start-assessment-btn:hover { transform: translateY(-2px); }

/* ============ DASHBOARD ============ */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2rem 1rem; }
.dash-sidebar { position: sticky; top: 90px; }
.student-profile { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border-radius: var(--radius); padding: 1.8rem; text-align: center; margin-bottom: 1rem; }
.profile-avatar { width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.3rem; margin: 0 auto 1rem; }
.student-profile h3 { font-weight: 800; margin-bottom: .25rem; }
.student-profile p { opacity: .8; font-size: .85rem; margin-bottom: .8rem; }
.profile-badge { background: rgba(255,255,255,.2); display: inline-block; padding: .3rem .8rem; border-radius: 50px; font-size: .8rem; font-weight: 700; }
.dash-nav { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.dash-nav-item { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.2rem; font-weight: 700; font-size: .9rem; color: var(--text-muted); border-bottom: 1px solid var(--border); transition: all .2s; }
.dash-nav-item:last-child { border-bottom: none; }
.dash-nav-item:hover, .dash-nav-item.active { color: var(--primary); background: var(--bg-alt); }
.dash-main { min-height: 400px; }
.dash-tab { display: none; }
.dash-tab.active { display: block; }
.dash-welcome { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; border-radius: var(--radius); padding: 1.5rem 2rem; margin-bottom: 1.5rem; }
.dash-welcome h2 { font-family: 'Baloo 2', cursive; font-size: 1.5rem; font-weight: 800; margin-bottom: .3rem; }
.dash-welcome p { opacity: .85; }
.dash-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.dash-stat-card { background: white; border-radius: var(--radius); padding: 1.2rem; text-align: center; box-shadow: var(--shadow); }
.dst-icon { font-size: 1.8rem; margin-bottom: .5rem; }
.dst-val { font-family: 'Baloo 2', cursive; font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.dst-label { font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.dash-recent h3 { font-weight: 800; margin-bottom: 1rem; }
.recent-courses { display: flex; flex-direction: column; gap: .8rem; }
.recent-course-card { background: white; border-radius: 12px; padding: 1rem 1.2rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow); cursor: pointer; transition: all .2s; }
.recent-course-card:hover { transform: translateX(4px); }
.rc-icon { font-size: 1.8rem; }
.rc-info { flex: 1; }
.rc-info strong { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.rc-info span { font-size: .8rem; color: var(--text-muted); }
.rc-progress { background: var(--bg-alt); border-radius: 50px; height: 6px; margin: .4rem 0; }
.rc-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 50px; }
.rc-btn { background: var(--primary); color: white; padding: .5rem 1rem; border-radius: 8px; font-weight: 700; font-size: .82rem; white-space: nowrap; }
.enrolled-list { display: flex; flex-direction: column; gap: .8rem; }
.enrolled-item { background: white; border-radius: 12px; padding: 1.2rem 1.5rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow); }
.ei-icon { font-size: 2rem; }
.ei-info { flex: 1; }
.ei-info strong { display: block; font-weight: 800; margin-bottom: .1rem; }
.ei-info p { font-size: .82rem; color: var(--text-muted); margin-bottom: .4rem; }
.ei-pct { font-weight: 900; font-size: 1.1rem; color: var(--primary); }
.progress-cards { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.prog-card { background: white; border-radius: 12px; padding: 1.2rem 1.5rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow); }
.prog-subject { font-weight: 700; width: 150px; flex-shrink: 0; }
.prog-bar-wrap { flex: 1; height: 12px; background: var(--bg-alt); border-radius: 50px; overflow: hidden; }
.prog-bar-fill { height: 100%; border-radius: 50px; }
.prog-card span { font-weight: 800; color: var(--primary); width: 45px; text-align: right; }
.weekly-chart { background: white; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.weekly-chart h3 { font-weight: 800; margin-bottom: 1.5rem; }
.chart-bars { display: flex; gap: .5rem; align-items: flex-end; height: 120px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .3rem; }
.chart-bar { width: 100%; background: linear-gradient(180deg, var(--primary), var(--primary-light)); border-radius: 4px 4px 0 0; transition: all .3s; }
.chart-col span { font-size: .72rem; font-weight: 700; color: var(--text-muted); }
.scores-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.scores-table th { background: var(--primary); color: white; padding: .9rem 1rem; text-align: left; font-weight: 700; font-size: .85rem; }
.scores-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); font-size: .85rem; }
.scores-table tr:last-child td { border-bottom: none; }
.score-badge { padding: .25rem .7rem; border-radius: 50px; font-weight: 800; font-size: .82rem; }
.score-badge.green { background: rgba(16,185,129,.1); color: var(--accent); }
.score-badge.yellow { background: rgba(245,158,11,.1); color: var(--secondary); }
.score-badge.red { background: rgba(239,68,68,.1); color: var(--danger); }
.cert-empty { text-align: center; padding: 4rem 2rem; background: white; border-radius: var(--radius); box-shadow: var(--shadow); }
.cert-empty h3 { font-family: 'Baloo 2', cursive; font-size: 1.5rem; margin-bottom: .5rem; }
.cert-empty p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ============ ABOUT PAGE ============ */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 4rem; }
.about-text h2 { font-family: 'Baloo 2', cursive; font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.about-highlights { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.5rem; }
.ah-item { padding: .5rem 0; font-weight: 700; color: var(--primary); }
.about-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.as-card { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border-radius: var(--radius); padding: 2rem; text-align: center; }
.as-num { font-family: 'Baloo 2', cursive; font-size: 2rem; font-weight: 800; margin-bottom: .3rem; }
.as-label { opacity: .85; font-size: .9rem; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 4rem; }
.value-card { background: white; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); text-align: center; }
.val-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.value-card h3 { font-weight: 800; margin-bottom: .5rem; }
.value-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.contact-card { background: white; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); text-align: center; }
.cc-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.contact-card h3 { font-weight: 800; margin-bottom: .5rem; }
.contact-card p { color: var(--text-muted); margin-bottom: 1.2rem; }

/* ============ AUTH MODAL ============ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.auth-modal { background: white; border-radius: 20px; padding: 2.5rem; width: 90%; max-width: 420px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: var(--bg-alt); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; font-weight: 700; color: var(--text-muted); }
.auth-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.auth-tab { flex: 1; padding: .6rem; border-radius: 10px; background: var(--bg-alt); color: var(--text-muted); font-weight: 700; font-size: .9rem; transition: all .2s; }
.auth-tab.active { background: var(--primary); color: white; }
.auth-modal h2 { font-family: 'Baloo 2', cursive; font-size: 1.5rem; font-weight: 800; margin-bottom: 1.2rem; }
.auth-input { width: 100%; padding: .9rem 1rem; border: 2px solid var(--border); border-radius: 10px; font-family: 'Nunito', sans-serif; font-size: .95rem; margin-bottom: .8rem; transition: border-color .2s; outline: none; }
.auth-input:focus { border-color: var(--primary); }
.auth-submit { width: 100%; padding: 1rem; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; border-radius: 12px; font-weight: 800; font-size: 1rem; margin-top: .5rem; box-shadow: 0 4px 15px rgba(79,70,229,0.3); transition: all .2s; }
.auth-submit:hover { transform: translateY(-1px); }
.auth-switch { text-align: center; color: var(--text-muted); font-size: .88rem; margin-top: 1rem; }
.auth-switch a { color: var(--primary); font-weight: 700; }

/* ============ WHATSAPP ============ */
.whatsapp-bubble { position: fixed; bottom: 2rem; right: 2rem; background: #25d366; color: white; border-radius: 50px; padding: .8rem 1.5rem .8rem 1.2rem; display: flex; align-items: center; gap: .6rem; box-shadow: 0 6px 25px rgba(37,211,102,0.4); cursor: pointer; z-index: 999; font-weight: 700; font-size: .9rem; transition: all .3s; }
.whatsapp-bubble:hover { transform: scale(1.05); }
.whatsapp-label { white-space: nowrap; }
.whatsapp-popup { position: fixed; bottom: 5.5rem; right: 2rem; width: 320px; background: white; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); z-index: 998; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .3s; }
.whatsapp-popup.active { opacity: 1; pointer-events: all; transform: translateY(0); }
.wa-header { background: #25d366; color: white; padding: 1rem 1.2rem; border-radius: 16px 16px 0 0; display: flex; align-items: center; gap: .8rem; }
.wa-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.wa-header strong { display: block; font-size: .9rem; }
.wa-header span { font-size: .78rem; opacity: .85; }
.wa-close { margin-left: auto; background: none; border: none; color: white; font-size: 1rem; cursor: pointer; opacity: .8; }
.wa-body { padding: 1.2rem; }
.wa-msg { background: var(--bg-alt); border-radius: 12px; padding: 1rem; font-size: .88rem; line-height: 1.6; margin-bottom: 1rem; }
.wa-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; padding: .9rem; background: #25d366; color: white; border-radius: 10px; font-weight: 700; font-size: .9rem; text-decoration: none; transition: opacity .2s; }
.wa-btn:hover { opacity: .9; }

/* ============ BACK BTN ============ */
.back-btn { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.2); color: white; padding: .5rem 1rem; border-radius: 8px; font-weight: 700; font-size: .85rem; cursor: pointer; transition: background .2s; margin-bottom: 1rem; }
.back-btn:hover { background: rgba(255,255,255,.3); }

/* ── REAL LESSON CONTENT STYLES ────────────────────────── */
.lesson-intro{background:linear-gradient(135deg,var(--primary),var(--primary-light));color:white;border-radius:10px;padding:1rem 1.5rem;margin-bottom:1.5rem;font-size:1rem;font-weight:700}
.read-content h2{font-family:'Baloo 2',cursive;font-size:1.6rem;margin-bottom:1rem;color:var(--primary)}
.read-content h3{font-weight:800;font-size:1.05rem;margin:1.5rem 0 .6rem;color:var(--text);border-left:4px solid var(--primary);padding-left:.8rem}
.read-content p{line-height:1.8;color:var(--text-muted);margin-bottom:1rem}
.read-content ul{padding-left:1.5rem;margin-bottom:1rem}
.read-content ul li{line-height:1.8;color:var(--text-muted);margin-bottom:.4rem}
.vocab-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.8rem;margin-bottom:1rem}
.vocab-item{background:var(--bg-alt);border-radius:10px;padding:.8rem 1rem;font-size:.88rem;border-left:3px solid var(--primary)}
.moral-box{background:linear-gradient(135deg,rgba(79,70,229,.08),rgba(79,70,229,.04));border:2px solid rgba(79,70,229,.2);border-radius:12px;padding:1.2rem 1.5rem;font-weight:700;color:var(--primary);font-size:.95rem;margin-top:.5rem}
.mcq-option.correct{border-color:var(--accent)!important;background:rgba(16,185,129,.08)!important}
.mcq-option.correct .opt-circle{background:var(--accent);color:white;border-color:var(--accent)}
.mcq-option.wrong{border-color:var(--danger)!important;background:rgba(239,68,68,.08)!important}
.mcq-option.wrong .opt-circle{background:var(--danger);color:white;border-color:var(--danger)}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 3rem 1.5rem; }
  .hero-visual { display: none; }
  .hero-desc { margin: 0 auto 1.5rem; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .nav-links, .nav-auth { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .course-detail-layout { grid-template-columns: 1fr; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-sidebar { position: static; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .dash-stats-row { grid-template-columns: repeat(2,1fr); }
  .about-story { grid-template-columns: 1fr; }
  .whatsapp-bubble .whatsapp-label { display: none; }
  .whatsapp-bubble { border-radius: 50%; width: 56px; height: 56px; padding: 0; justify-content: center; }
  .whatsapp-popup { right: 1rem; width: calc(100vw - 2rem); }
}
@media (max-width: 600px) {
  .classes-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .features-strip { gap: 0; }
}
