/* ================================================================
   FrenchLMS — Global Styles
   Color Palette: White + Light Green (#22c55e family)
   ================================================================ */

/* ── Reset & Base ───────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;color:#1e293b;line-height:1.6;overflow-x:hidden}
a{text-decoration:none;color:inherit}
button{cursor:pointer;border:none;background:none;font-family:inherit}
img{max-width:100%;display:block}
input,select,textarea{font-family:inherit;font-size:inherit}
ul{list-style:none}

:root{
  --green-50:#f0fdf4;--green-100:#dcfce7;--green-200:#bbf7d0;
  --green-300:#86efac;--green-400:#4ade80;--green-500:#22c55e;
  --green-600:#16a34a;--green-700:#15803d;--green-800:#166534;
  --white:#ffffff;--gray-50:#f8fafc;--gray-100:#f1f5f9;
  --gray-200:#e2e8f0;--gray-300:#cbd5e1;--gray-400:#94a3b8;
  --gray-500:#64748b;--gray-600:#475569;--gray-700:#334155;
  --gray-800:#1e293b;--gray-900:#0f172a;
  --shadow-sm:0 1px 2px rgba(0,0,0,.04);
  --shadow:0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
  --shadow-md:0 4px 6px -1px rgba(0,0,0,.07),0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg:0 10px 15px -3px rgba(0,0,0,.08),0 4px 6px -4px rgba(0,0,0,.05);
  --shadow-xl:0 20px 25px -5px rgba(0,0,0,.08),0 8px 10px -6px rgba(0,0,0,.04);
  --radius:12px;--radius-lg:16px;--radius-xl:24px;
  --transition:all .25s cubic-bezier(.4,0,.2,1);
}

/* ================================================================
   LANDING PAGE
   ================================================================ */

.landing-body{background:var(--white)}

/* ── Navbar ─────────────────────────────────────────────── */
.nav{position:fixed;top:0;left:0;right:0;z-index:100;padding:1rem 0;transition:var(--transition)}
.nav.scrolled{background:rgba(255,255,255,.92);backdrop-filter:blur(20px);border-bottom:1px solid var(--gray-200);padding:.6rem 0;box-shadow:var(--shadow)}
.nav-inner{max-width:1200px;margin:0 auto;padding:0 2rem;display:flex;align-items:center;justify-content:space-between}
.nav-logo{display:flex;align-items:center;gap:.6rem}
.logo-icon{width:36px;height:36px;flex-shrink:0}
.logo-icon.small{width:30px;height:30px}
.logo-text{font-size:1.35rem;font-weight:800;color:var(--gray-900)}
.logo-accent{color:var(--green-600)}
.nav-links{display:flex;gap:2rem}
.nav-link{font-size:.925rem;font-weight:500;color:var(--gray-600);transition:var(--transition);position:relative}
.nav-link:hover{color:var(--green-600)}
.nav-link::after{content:'';position:absolute;bottom:-4px;left:0;width:0;height:2px;background:var(--green-500);transition:var(--transition)}
.nav-link:hover::after{width:100%}
.nav-actions{display:flex;align-items:center;gap:.8rem}
.btn-signin{font-size:.9rem;font-weight:600;color:var(--gray-700);padding:.55rem 1.2rem;border-radius:var(--radius);transition:var(--transition)}
.btn-signin:hover{background:var(--green-50);color:var(--green-700)}
.btn-signup{font-size:.9rem;font-weight:600;color:var(--white);background:var(--green-600);padding:.55rem 1.4rem;border-radius:var(--radius);transition:var(--transition);box-shadow:0 2px 8px rgba(34,197,94,.3)}
.btn-signup:hover{background:var(--green-700);transform:translateY(-1px);box-shadow:0 4px 12px rgba(34,197,94,.4)}
.hamburger{display:none;flex-direction:column;gap:5px;padding:.5rem}
.hamburger span{display:block;width:24px;height:2px;background:var(--gray-700);border-radius:2px;transition:var(--transition)}
.mobile-menu{display:none;position:fixed;top:72px;left:0;right:0;background:var(--white);border-bottom:1px solid var(--gray-200);padding:1.5rem 2rem;z-index:99;box-shadow:var(--shadow-lg)}
.mobile-menu.open{display:flex;flex-direction:column;gap:1rem}
.mobile-link{font-size:1rem;font-weight:500;color:var(--gray-700);padding:.6rem 0}
.mobile-actions{display:flex;gap:.8rem;margin-top:.5rem}

/* ── Hero ───────────────────────────────────────────────── */
.hero{min-height:100vh;display:flex;flex-direction:column;justify-content:center;position:relative;padding:8rem 2rem 4rem;overflow:hidden}
.hero-bg-shapes{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.shape{position:absolute;border-radius:50%;opacity:.12}
.shape-1{width:600px;height:600px;background:radial-gradient(circle,var(--green-300),transparent 70%);top:-100px;right:-150px}
.shape-2{width:400px;height:400px;background:radial-gradient(circle,var(--green-200),transparent 70%);bottom:50px;left:-100px}
.shape-3{width:200px;height:200px;background:radial-gradient(circle,var(--green-400),transparent 70%);top:40%;left:30%}
.shape-4{width:300px;height:300px;background:radial-gradient(circle,#dbeafe,transparent 70%);top:20%;right:20%}
.hero-inner{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center;position:relative;z-index:1}
.hero-badge{display:inline-flex;align-items:center;gap:.5rem;background:var(--green-50);border:1px solid var(--green-200);padding:.4rem 1rem;border-radius:999px;font-size:.85rem;color:var(--green-700);font-weight:500;margin-bottom:1.5rem}
.badge-dot{width:6px;height:6px;background:var(--green-500);border-radius:50%;animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
.hero-title{font-size:3.8rem;font-weight:900;line-height:1.1;color:var(--gray-900);letter-spacing:-.03em;margin-bottom:1.5rem}
.hero-gradient-text,.gradient-text{background:linear-gradient(135deg,var(--green-600),var(--green-400));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hero-subtitle{font-size:1.18rem;color:var(--gray-500);line-height:1.7;margin-bottom:2rem;max-width:500px}
.hero-cta{display:flex;align-items:center;gap:1.2rem;margin-bottom:3rem;flex-wrap:wrap}
.cta-primary{display:inline-flex;align-items:center;gap:.5rem;background:var(--green-600);color:var(--white);font-weight:700;font-size:1.05rem;padding:.9rem 2rem;border-radius:var(--radius);transition:var(--transition);box-shadow:0 4px 14px rgba(34,197,94,.3)}
.cta-primary:hover{background:var(--green-700);transform:translateY(-2px);box-shadow:0 8px 20px rgba(34,197,94,.35)}
.cta-primary svg{width:18px;height:18px}
.cta-primary.large{padding:1.1rem 2.5rem;font-size:1.1rem}
.cta-secondary{display:inline-flex;align-items:center;gap:.7rem;font-weight:600;color:var(--gray-700);font-size:1rem;transition:var(--transition)}
.cta-secondary:hover{color:var(--green-600)}
.play-circle{width:44px;height:44px;border-radius:50%;background:var(--green-50);border:2px solid var(--green-200);display:flex;align-items:center;justify-content:center;transition:var(--transition)}
.play-circle svg{width:16px;height:16px;color:var(--green-600);margin-left:2px}
.cta-secondary:hover .play-circle{background:var(--green-100);border-color:var(--green-400)}
.hero-stats{display:flex;align-items:center;gap:2rem}
.hero-stat{display:flex;flex-direction:column}
.stat-num{font-size:1.6rem;font-weight:800;color:var(--gray-900)}
.stat-label{font-size:.8rem;color:var(--gray-400);font-weight:500}
.stat-divider{width:1px;height:40px;background:var(--gray-200)}

/* ── Hero Visual ────────────────────────────────────────── */
.hero-visual{position:relative;height:520px}
.hero-card-stack{position:relative;width:100%;height:100%}
.hero-phone{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:220px;background:var(--white);border-radius:var(--radius-xl);box-shadow:var(--shadow-xl),0 0 0 1px rgba(0,0,0,.04);overflow:hidden;z-index:2}
.phone-header{display:flex;align-items:center;gap:.5rem;padding:.8rem 1rem;background:var(--green-600);color:var(--white);font-weight:700;font-size:.85rem}
.phone-flag{font-size:1.1rem}
.phone-body{padding:1.2rem}
.phone-greeting{font-size:1.4rem;font-weight:800;color:var(--gray-900);text-align:center;margin-bottom:1rem}
.phone-progress-ring{position:relative;width:100px;height:100px;margin:0 auto 1rem}
.phone-progress-ring svg{width:100%;height:100%}
.phone-progress-ring .ring-pct{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:1.3rem;font-weight:800;color:var(--green-600)}
.phone-stat-row{display:flex;justify-content:space-between;gap:.5rem}
.phone-stat{display:flex;flex-direction:column;align-items:center;font-size:.7rem;color:var(--gray-500);font-weight:500}
.phone-stat span{font-size:1rem;font-weight:800;color:var(--gray-900)}

.float-card{position:absolute;background:var(--white);border-radius:var(--radius);padding:.8rem 1rem;display:flex;align-items:center;gap:.7rem;box-shadow:var(--shadow-lg),0 0 0 1px rgba(0,0,0,.03);z-index:3;animation:float 6s ease-in-out infinite;white-space:nowrap}
.float-card .fc-icon{font-size:1.3rem}
.float-card .fc-text{display:flex;flex-direction:column}
.float-card .fc-title{font-size:.82rem;font-weight:700;color:var(--gray-800)}
.float-card .fc-sub{font-size:.72rem;color:var(--gray-400)}
.fc-sub.score-green{color:var(--green-600)!important;font-weight:600}
.fc-badge-complete{width:22px;height:22px;border-radius:50%;background:var(--green-500);color:var(--white);display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:700}
.card-lesson{top:8%;left:0;animation-delay:0s}
.card-vocab{top:28%;right:0;animation-delay:1s}
.card-quiz{bottom:28%;left:-5%;animation-delay:2s}
.card-streak{bottom:8%;right:0;animation-delay:3s}
.card-cert{top:55%;right:15%;animation-delay:.5s}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}

/* Scroll Indicator */
.scroll-indicator{position:absolute;bottom:2rem;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:.5rem}
.scroll-mouse{width:24px;height:38px;border:2px solid var(--gray-300);border-radius:12px;position:relative}
.scroll-dot{width:4px;height:8px;background:var(--green-500);border-radius:4px;position:absolute;top:6px;left:50%;transform:translateX(-50%);animation:scrollDot 2s infinite}
@keyframes scrollDot{0%{opacity:1;top:6px}100%{opacity:0;top:20px}}

/* ── Animate In ─────────────────────────────────────────── */
.animate-in{opacity:0;transform:translateY(30px);animation:fadeSlideUp .8s ease forwards}
.delay-1{animation-delay:.15s}.delay-2{animation-delay:.3s}.delay-3{animation-delay:.45s}.delay-4{animation-delay:.6s}
@keyframes fadeSlideUp{to{opacity:1;transform:translateY(0)}}

/* ── Brand Bar ──────────────────────────────────────────── */
.brand-bar{padding:3rem 2rem;background:var(--gray-50);border-top:1px solid var(--gray-100);border-bottom:1px solid var(--gray-100)}
.brand-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;gap:3rem}
.brand-label{font-size:.82rem;text-transform:uppercase;letter-spacing:.08em;color:var(--gray-400);font-weight:600;white-space:nowrap}
.brand-logos{display:flex;gap:3rem;flex-wrap:wrap;justify-content:center;flex:1}
.brand-logo{font-size:1.1rem;font-weight:800;color:var(--gray-300);letter-spacing:-.02em}
.brand-logo span{color:var(--gray-400)}

/* ── Section Shared ─────────────────────────────────────── */
.section-inner{max-width:1200px;margin:0 auto;padding:0 2rem}
.section-header{text-align:center;margin-bottom:4rem}
.section-tag{display:inline-block;background:var(--green-50);color:var(--green-700);font-size:.82rem;font-weight:600;padding:.35rem 1rem;border-radius:999px;margin-bottom:1rem;border:1px solid var(--green-200)}
.section-title{font-size:2.8rem;font-weight:800;color:var(--gray-900);line-height:1.15;letter-spacing:-.02em}
.section-subtitle{font-size:1.1rem;color:var(--gray-500);margin-top:1rem;max-width:600px;margin-left:auto;margin-right:auto}

/* ── Features ───────────────────────────────────────────── */
.features{padding:6rem 2rem}
.features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.feature-card{background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius-lg);padding:2rem;transition:var(--transition)}
.feature-card:hover{border-color:var(--green-200);box-shadow:var(--shadow-lg);transform:translateY(-4px)}
.feature-icon-wrap{width:52px;height:52px;border-radius:var(--radius);display:flex;align-items:center;justify-content:center;margin-bottom:1.2rem}
.feature-icon-wrap svg{width:24px;height:24px}
.feature-icon-wrap.green{background:var(--green-50);color:var(--green-600)}
.feature-icon-wrap.blue{background:#eff6ff;color:#3b82f6}
.feature-icon-wrap.purple{background:#f5f3ff;color:#8b5cf6}
.feature-icon-wrap.orange{background:#fff7ed;color:#f97316}
.feature-icon-wrap.pink{background:#fdf2f8;color:#ec4899}
.feature-icon-wrap.teal{background:#f0fdfa;color:#14b8a6}
.feature-card h3{font-size:1.15rem;font-weight:700;color:var(--gray-800);margin-bottom:.5rem}
.feature-card p{font-size:.92rem;color:var(--gray-500);line-height:1.6}

/* ── How It Works ───────────────────────────────────────── */
.how-it-works{padding:6rem 2rem;background:var(--green-50)}
.steps-row{display:flex;align-items:flex-start;justify-content:center;gap:0}
.step-card{background:var(--white);border-radius:var(--radius-lg);padding:2.5rem 2rem;text-align:center;max-width:300px;border:1px solid var(--green-100);transition:var(--transition);position:relative}
.step-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.step-number{position:absolute;top:-.8rem;left:1.5rem;background:var(--green-600);color:var(--white);font-size:.75rem;font-weight:700;padding:.3rem .8rem;border-radius:999px}
.step-icon{font-size:2.5rem;margin-bottom:1rem}
.step-card h3{font-size:1.1rem;font-weight:700;color:var(--gray-800);margin-bottom:.5rem}
.step-card p{font-size:.9rem;color:var(--gray-500);line-height:1.6}
.step-connector{display:flex;align-items:center;padding-top:3rem}
.step-connector svg{width:60px;height:24px}

/* ── Testimonials ───────────────────────────────────────── */
.testimonials{padding:6rem 2rem}
.testimonials-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.testimonial-card{background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius-lg);padding:2rem;transition:var(--transition)}
.testimonial-card:hover{border-color:var(--green-200);box-shadow:var(--shadow-md)}
.testimonial-card.featured{border-color:var(--green-300);background:linear-gradient(135deg,var(--green-50),var(--white))}
.stars{color:#f59e0b;font-size:.9rem;margin-bottom:1rem;letter-spacing:2px}
.testimonial-card p{font-size:.95rem;color:var(--gray-600);line-height:1.7;margin-bottom:1.5rem;font-style:italic}
.testimonial-author{display:flex;align-items:center;gap:.8rem}
.author-avatar{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700}
.author-name{display:block;font-size:.9rem;font-weight:600;color:var(--gray-800)}
.author-role{display:block;font-size:.78rem;color:var(--gray-400)}

/* ── Pricing ────────────────────────────────────────────── */
.pricing{padding:6rem 2rem;background:var(--gray-50)}
.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;max-width:1000px;margin:0 auto}
.pricing-card{background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius-lg);padding:2.5rem 2rem;text-align:center;transition:var(--transition);position:relative}
.pricing-card:hover{border-color:var(--green-200);box-shadow:var(--shadow-lg)}
.pricing-card.popular{border:2px solid var(--green-400);box-shadow:var(--shadow-lg)}
.popular-badge{position:absolute;top:-14px;left:50%;transform:translateX(-50%);background:var(--green-600);color:var(--white);font-size:.75rem;font-weight:700;padding:.35rem 1.2rem;border-radius:999px}
.pricing-name{font-size:1.1rem;font-weight:700;color:var(--gray-500);margin-bottom:.5rem}
.pricing-price{font-size:3rem;font-weight:900;color:var(--gray-900);margin-bottom:1.5rem}
.pricing-price span{font-size:1rem;font-weight:500;color:var(--gray-400)}
.pricing-features{margin-bottom:2rem;text-align:left}
.pricing-features li{padding:.45rem 0;font-size:.9rem;color:var(--gray-600);display:flex;align-items:center;gap:.6rem}
.pricing-features li.disabled{color:var(--gray-300)}
.check{color:var(--green-500);font-weight:700}.x{color:var(--gray-300);font-weight:700}
.pricing-btn{display:block;width:100%;padding:.8rem;border-radius:var(--radius);font-size:.95rem;font-weight:700;text-align:center;transition:var(--transition)}
.pricing-btn.primary{background:var(--green-600);color:var(--white);box-shadow:0 2px 8px rgba(34,197,94,.3)}
.pricing-btn.primary:hover{background:var(--green-700);box-shadow:0 4px 12px rgba(34,197,94,.4)}
.pricing-btn.secondary{background:var(--gray-50);color:var(--gray-700);border:1px solid var(--gray-200)}
.pricing-btn.secondary:hover{background:var(--gray-100);border-color:var(--gray-300)}

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner{padding:6rem 2rem;background:linear-gradient(135deg,var(--green-600),var(--green-700))}
.cta-banner-inner{max-width:700px;margin:0 auto;text-align:center;position:relative}
.cta-banner h2{font-size:2.4rem;font-weight:800;color:var(--white);margin-bottom:1rem}
.cta-banner p{font-size:1.1rem;color:rgba(255,255,255,.8);margin-bottom:2rem}
.cta-banner .cta-primary{background:var(--white);color:var(--green-700);box-shadow:0 4px 14px rgba(0,0,0,.15)}
.cta-banner .cta-primary:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.2)}
.cta-bg-decor{position:absolute;width:300px;height:300px;border-radius:50%;background:rgba(255,255,255,.05);top:-80px;right:-100px;pointer-events:none}

/* ── Footer ─────────────────────────────────────────────── */
.footer{background:var(--gray-900);color:var(--gray-300);padding:4rem 2rem 2rem}
.footer-inner{max-width:1200px;margin:0 auto}
.footer-top{display:grid;grid-template-columns:1.5fr 2fr;gap:4rem;margin-bottom:3rem}
.footer-brand{max-width:320px}
.footer .logo-text{color:var(--white)}
.footer-desc{margin-top:1rem;font-size:.9rem;color:var(--gray-400);line-height:1.7}
.footer-links-group{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.footer-col h4{font-size:.85rem;font-weight:700;color:var(--white);margin-bottom:1rem;text-transform:uppercase;letter-spacing:.05em}
.footer-col a{display:block;font-size:.88rem;color:var(--gray-400);padding:.3rem 0;transition:var(--transition)}
.footer-col a:hover{color:var(--green-400)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding-top:1.5rem;display:flex;justify-content:space-between;align-items:center;font-size:.82rem;color:var(--gray-500)}
.footer-socials{display:flex;gap:1rem}
.footer-socials a{color:var(--gray-400);transition:var(--transition)}
.footer-socials a:hover{color:var(--green-400)}
.footer-socials svg{width:20px;height:20px}

/* ================================================================
   AUTH PAGES (Sign In / Sign Up)
   ================================================================ */
.auth-body{background:var(--gray-50);min-height:100vh}
.auth-container{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}

.auth-side{background:linear-gradient(145deg,var(--green-600),var(--green-700),#0d9488);padding:3rem;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.auth-side-content{color:var(--white);max-width:400px;position:relative;z-index:1}
.auth-logo{display:flex;align-items:center;gap:.6rem;margin-bottom:2.5rem}
.auth-logo .logo-text{color:var(--white);font-size:1.3rem}
.auth-logo .logo-accent{color:var(--green-200)}
.auth-side h2{font-size:2.2rem;font-weight:800;margin-bottom:.8rem}
.auth-side p{font-size:1.05rem;opacity:.85;line-height:1.6}
.auth-side-stats{display:flex;gap:2rem;margin-top:2.5rem}
.auth-stat{display:flex;flex-direction:column;align-items:center;gap:.3rem}
.auth-stat-icon{font-size:1.5rem}
.auth-stat-num{font-size:1.3rem;font-weight:800}
.auth-stat-label{font-size:.75rem;opacity:.7}

.auth-side-features{margin-top:2rem;display:flex;flex-direction:column;gap:.8rem}
.auth-feature{display:flex;align-items:center;gap:.7rem;font-size:.95rem}
.af-icon{width:24px;height:24px;background:rgba(255,255,255,.2);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:700;flex-shrink:0}

.auth-side-decoration{position:absolute;inset:0;pointer-events:none}
.deco-circle{position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.1)}
.deco-circle.c1{width:300px;height:300px;top:-50px;right:-80px}
.deco-circle.c2{width:200px;height:200px;bottom:40px;left:-60px}
.deco-circle.c3{width:150px;height:150px;bottom:-30px;right:20%}

.auth-form-side{display:flex;align-items:center;justify-content:center;padding:3rem}
.auth-form-wrapper{width:100%;max-width:420px}
.auth-form-header h1{font-size:1.8rem;font-weight:800;color:var(--gray-900);margin-bottom:.3rem}
.auth-form-header p{font-size:.95rem;color:var(--gray-500);margin-bottom:2rem}

.auth-form{display:flex;flex-direction:column;gap:1.2rem}
.form-group{display:flex;flex-direction:column;gap:.4rem}
.form-group label{font-size:.85rem;font-weight:600;color:var(--gray-700)}
.input-wrapper{position:relative;display:flex;align-items:center}
.input-icon{position:absolute;left:14px;width:18px;height:18px;color:var(--gray-400);pointer-events:none}
.input-wrapper input,.input-wrapper select{width:100%;padding:.75rem .75rem .75rem 42px;border:1.5px solid var(--gray-200);border-radius:var(--radius);font-size:.95rem;color:var(--gray-800);background:var(--white);transition:var(--transition);outline:none}
.input-wrapper input:focus,.input-wrapper select:focus{border-color:var(--green-400);box-shadow:0 0 0 3px rgba(34,197,94,.12)}
.input-wrapper input::placeholder{color:var(--gray-400)}
.select-wrapper select{appearance:none;cursor:pointer}
.toggle-password{position:absolute;right:12px;color:var(--gray-400);padding:4px}
.toggle-password svg{width:18px;height:18px}

.form-row{display:flex;justify-content:space-between;align-items:center}
.form-row-2col{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.checkbox-wrap{display:flex;align-items:center;gap:.5rem;font-size:.88rem;color:var(--gray-600);cursor:pointer}
.checkbox-wrap input[type="checkbox"]{width:16px;height:16px;accent-color:var(--green-500)}
.forgot-link{font-size:.85rem;color:var(--green-600);font-weight:500}
.forgot-link:hover{text-decoration:underline}
.link-inline{color:var(--green-600);font-weight:500}
.link-inline:hover{text-decoration:underline}

.password-strength{display:flex;align-items:center;gap:.5rem;margin-top:.3rem}
.strength-bar{flex:1;height:4px;background:var(--gray-100);border-radius:4px;overflow:hidden}
.strength-fill{height:100%;border-radius:4px;transition:var(--transition)}
.strength-text{font-size:.72rem;font-weight:600;min-width:50px;text-align:right}

.btn-submit{display:flex;align-items:center;justify-content:center;gap:.5rem;width:100%;padding:.85rem;background:var(--green-600);color:var(--white);font-size:1rem;font-weight:700;border-radius:var(--radius);transition:var(--transition);border:none;cursor:pointer;box-shadow:0 2px 8px rgba(34,197,94,.3)}
.btn-submit:hover{background:var(--green-700);transform:translateY(-1px);box-shadow:0 4px 12px rgba(34,197,94,.4)}
.btn-submit svg{width:18px;height:18px}

.divider{display:flex;align-items:center;gap:1rem;margin:.5rem 0}
.divider::before,.divider::after{content:'';flex:1;height:1px;background:var(--gray-200)}
.divider span{font-size:.82rem;color:var(--gray-400);white-space:nowrap}

.social-btns{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
.social-btn{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.7rem;border:1.5px solid var(--gray-200);border-radius:var(--radius);font-size:.9rem;font-weight:600;color:var(--gray-700);background:var(--white);transition:var(--transition);cursor:pointer}
.social-btn:hover{background:var(--gray-50);border-color:var(--gray-300)}
.social-btn svg{width:20px;height:20px}

.auth-footer-text{text-align:center;margin-top:2rem;font-size:.9rem;color:var(--gray-500)}
.auth-footer-text a{color:var(--green-600);font-weight:600}
.auth-footer-text a:hover{text-decoration:underline}

/* ================================================================
   DASHBOARD
   ================================================================ */
.dash-body{background:var(--gray-50);display:flex;min-height:100vh}

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar{width:260px;background:var(--white);border-right:1px solid var(--gray-100);display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;z-index:50;transition:var(--transition)}
.sidebar-header{padding:1.5rem 1.5rem 1rem;border-bottom:1px solid var(--gray-100)}
.sidebar-logo{display:flex;align-items:center;gap:.5rem}
.sidebar-logo .logo-text{font-size:1.2rem}

.sidebar-nav{flex:1;padding:1rem 0;overflow-y:auto}
.nav-group{padding:0 .8rem;margin-bottom:1.5rem}
.nav-group-label{display:block;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--gray-400);padding:0 .8rem;margin-bottom:.5rem}
.sidebar-item{width:100%;display:flex;align-items:center;gap:.8rem;padding:.7rem .8rem;border-radius:var(--radius);font-size:.9rem;font-weight:500;color:var(--gray-600);transition:var(--transition)}
.sidebar-item svg{width:20px;height:20px;flex-shrink:0}
.sidebar-item:hover{background:var(--green-50);color:var(--green-700)}
.sidebar-item.active{background:var(--green-50);color:var(--green-700);font-weight:600}
.sidebar-item.active svg{color:var(--green-600)}
.sidebar-badge{margin-left:auto;background:var(--green-100);color:var(--green-700);font-size:.7rem;font-weight:700;padding:.15rem .5rem;border-radius:999px}
.sidebar-badge.gold{background:#fef3c7;color:#b45309}

.sidebar-footer{padding:1rem 1.5rem;border-top:1px solid var(--gray-100)}
.sidebar-user{display:flex;align-items:center;gap:.7rem}
.user-avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,var(--green-400),var(--green-600));color:var(--white);display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;flex-shrink:0}
.user-info{flex:1;min-width:0}
.user-name{display:block;font-size:.85rem;font-weight:600;color:var(--gray-800);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-level{display:block;font-size:.72rem;color:var(--gray-400)}
.logout-btn{color:var(--gray-400);padding:4px;transition:var(--transition)}
.logout-btn:hover{color:var(--red,#ef4444)}
.logout-btn svg{width:18px;height:18px}

.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.3);z-index:40}

/* ── Main Area ──────────────────────────────────────────── */
.dash-main{flex:1;margin-left:260px;display:flex;flex-direction:column;min-height:100vh}

.dash-topbar{display:flex;align-items:center;justify-content:space-between;padding:1rem 2rem;background:var(--white);border-bottom:1px solid var(--gray-100);position:sticky;top:0;z-index:30}
.topbar-left{display:flex;align-items:center;gap:1rem}
.menu-toggle{display:none;color:var(--gray-600);padding:4px}
.menu-toggle svg{width:24px;height:24px}
.topbar-greeting h2{font-size:1.15rem;font-weight:700;color:var(--gray-900)}
.topbar-greeting p{font-size:.8rem;color:var(--gray-400)}
.topbar-right{display:flex;align-items:center;gap:1rem}
.topbar-search{display:flex;align-items:center;gap:.5rem;background:var(--gray-50);border:1px solid var(--gray-200);border-radius:var(--radius);padding:.45rem .8rem;min-width:200px}
.topbar-search svg{width:16px;height:16px;color:var(--gray-400);flex-shrink:0}
.topbar-search input{border:none;background:none;outline:none;font-size:.85rem;color:var(--gray-700);width:100%}
.topbar-search input::placeholder{color:var(--gray-400)}
.streak-pill{display:flex;align-items:center;gap:.3rem;background:var(--green-50);border:1px solid var(--green-200);padding:.35rem .7rem;border-radius:999px;font-size:.85rem;font-weight:700;color:var(--green-700)}
.topbar-icon-btn{position:relative;color:var(--gray-500);padding:6px;border-radius:var(--radius);transition:var(--transition)}
.topbar-icon-btn:hover{background:var(--gray-50);color:var(--gray-700)}
.topbar-icon-btn svg{width:20px;height:20px}
.notif-dot{position:absolute;top:4px;right:4px;width:8px;height:8px;background:#ef4444;border-radius:50%;border:2px solid var(--white)}

/* ── Dashboard Content ──────────────────────────────────── */
.dash-content{padding:2rem;flex:1}

.dash-hero{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,var(--green-50),#f0fdf4,#ecfdf5);border:1px solid var(--green-100);border-radius:var(--radius-lg);padding:2rem;margin-bottom:2rem;gap:2rem}
.dash-hero-left{display:flex;align-items:center;gap:1.5rem}
.progress-ring-wrap{position:relative;width:100px;height:100px;flex-shrink:0}
.progress-ring{width:100%;height:100%}
.ring-animated{animation:ringDraw 1.5s ease forwards}
@keyframes ringDraw{from{stroke-dashoffset:314.16}to{stroke-dashoffset:110}}
.ring-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center}
.ring-center .ring-pct{display:block;font-size:1.3rem;font-weight:800;color:var(--green-700)}
.ring-center .ring-label{display:block;font-size:.65rem;color:var(--gray-500);font-weight:500}
.dash-hero-text h3{font-size:1.1rem;font-weight:700;color:var(--gray-800);margin-bottom:.3rem}
.dash-hero-text p{font-size:.88rem;color:var(--gray-500)}
.xp-today{margin-top:.5rem;font-size:.82rem;font-weight:600;color:var(--green-600);background:var(--green-100);display:inline-block;padding:.25rem .7rem;border-radius:999px}

.streak-card-big{background:var(--white);border:1px solid var(--green-100);border-radius:var(--radius);padding:1.2rem 1.5rem}
.streak-days-row{display:flex;gap:.6rem;margin-bottom:.8rem}
.sday{display:flex;flex-direction:column;align-items:center;gap:.3rem}
.sday span{font-size:.7rem;font-weight:600;color:var(--gray-400)}
.sday-dot{width:12px;height:12px;border-radius:50%;background:var(--gray-200)}
.sday.done .sday-dot{background:var(--green-500)}
.sday.today .today-dot{background:var(--green-300);box-shadow:0 0 0 3px var(--green-100);animation:pulse 2s infinite}
.streak-info{display:flex;align-items:center;gap:.5rem}
.streak-fire{font-size:1.2rem}
.streak-count{font-size:.9rem;font-weight:700;color:var(--gray-800)}

/* ── Stats Grid ─────────────────────────────────────────── */
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem;margin-bottom:2rem}
.stat-card{background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius);padding:1.2rem 1.5rem;display:flex;align-items:center;gap:1rem;transition:var(--transition)}
.stat-card:hover{border-color:var(--green-200);box-shadow:var(--shadow-md);transform:translateY(-2px)}
.stat-icon{width:44px;height:44px;border-radius:var(--radius);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.stat-icon svg{width:20px;height:20px}
.stat-icon.green{background:var(--green-50);color:var(--green-600)}
.stat-icon.blue{background:#eff6ff;color:#3b82f6}
.stat-icon.purple{background:#f5f3ff;color:#8b5cf6}
.stat-icon.gold{background:#fff7ed;color:#f97316}
.stat-info{flex:1;min-width:0}
.stat-value{display:block;font-size:1.4rem;font-weight:800;color:var(--gray-900)}
.stat-name{display:block;font-size:.78rem;color:var(--gray-400);font-weight:500}
.stat-trend{font-size:.75rem;font-weight:700;padding:.2rem .5rem;border-radius:999px;white-space:nowrap}
.stat-trend.up{background:var(--green-50);color:var(--green-600)}

/* ── Two-Column Layout ──────────────────────────────────── */
.dash-columns{display:grid;grid-template-columns:1fr 340px;gap:2rem}
.dash-section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}
.dash-section-header h3{font-size:1.1rem;font-weight:700;color:var(--gray-800)}
.see-all{font-size:.85rem;font-weight:600;color:var(--green-600);transition:var(--transition)}
.see-all:hover{color:var(--green-700)}

/* Continue Card */
.continue-card{background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius-lg);overflow:hidden;display:flex;transition:var(--transition)}
.continue-card:hover{border-color:var(--green-200);box-shadow:var(--shadow-md)}
.continue-thumb{position:relative;width:240px;min-height:200px;background:linear-gradient(135deg,var(--green-600),var(--green-800));flex-shrink:0;display:flex;align-items:center;justify-content:center}
.thumb-gradient{position:absolute;inset:0;background:linear-gradient(135deg,var(--green-700),#064e3b)}
.thumb-play{position:relative;z-index:1;width:48px;height:48px;background:rgba(255,255,255,.2);backdrop-filter:blur(4px);border-radius:50%;display:flex;align-items:center;justify-content:center;transition:var(--transition)}
.thumb-play:hover{background:rgba(255,255,255,.3);transform:scale(1.1)}
.thumb-play svg{width:20px;height:20px;margin-left:2px}
.thumb-progress{position:absolute;bottom:0;left:0;right:0;height:4px;background:rgba(255,255,255,.2)}
.thumb-progress-fill{height:100%;background:var(--green-400)}
.thumb-badge{position:absolute;top:12px;left:12px;background:rgba(255,255,255,.2);backdrop-filter:blur(4px);color:var(--white);font-size:.7rem;font-weight:600;padding:.25rem .6rem;border-radius:999px}
.continue-info{padding:1.5rem;flex:1;display:flex;flex-direction:column;justify-content:center}
.continue-unit{font-size:.78rem;font-weight:600;color:var(--green-600);margin-bottom:.3rem}
.continue-info h4{font-size:1.1rem;font-weight:700;color:var(--gray-800);margin-bottom:.4rem}
.continue-info p{font-size:.88rem;color:var(--gray-500);margin-bottom:.8rem;line-height:1.5}
.continue-meta{display:flex;gap:1rem;font-size:.78rem;color:var(--gray-400);margin-bottom:1rem}
.btn-resume{display:inline-flex;align-items:center;gap:.4rem;background:var(--green-600);color:var(--white);font-size:.85rem;font-weight:600;padding:.55rem 1.2rem;border-radius:var(--radius);transition:var(--transition);align-self:flex-start;cursor:pointer;border:none}
.btn-resume:hover{background:var(--green-700);transform:translateY(-1px)}

/* Lesson mini rows */
.lessons-row{display:flex;flex-direction:column;gap:.6rem}
.lesson-mini{display:flex;align-items:center;gap:1rem;background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius);padding:.8rem 1rem;transition:var(--transition);cursor:pointer}
.lesson-mini:hover{border-color:var(--green-200);box-shadow:var(--shadow);transform:translateX(4px)}
.lm-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex-shrink:0}
.lm-info{flex:1;min-width:0}
.lm-title{display:block;font-size:.88rem;font-weight:600;color:var(--gray-800)}
.lm-meta{display:block;font-size:.75rem;color:var(--gray-400)}
.lm-arrow{color:var(--gray-300);font-size:1.1rem;transition:var(--transition)}
.lesson-mini:hover .lm-arrow{color:var(--green-500);transform:translateX(3px)}

/* ── Side Cards ─────────────────────────────────────────── */
.side-card{background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius);padding:1.5rem;margin-bottom:1.2rem}
.side-card h3{font-size:1rem;font-weight:700;color:var(--gray-800);margin-bottom:1rem}

.level-bars{display:flex;flex-direction:column;gap:.8rem}
.level-row{display:flex;align-items:center;gap:.7rem}
.lvl-badge{font-size:.7rem;font-weight:700;padding:.2rem .5rem;border-radius:6px;min-width:32px;text-align:center;color:var(--white)}
.lvl-badge.a1{background:#22c55e}.lvl-badge.a2{background:#3b82f6}
.lvl-badge.b1{background:#8b5cf6}.lvl-badge.b2{background:var(--gray-400)}
.lvl-bar{flex:1;height:6px;background:var(--gray-100);border-radius:6px;overflow:hidden}
.lvl-fill{height:100%;background:linear-gradient(90deg,var(--green-400),var(--green-500));border-radius:6px;transition:width 1.5s ease}
.level-row.current .lvl-fill{background:linear-gradient(90deg,#8b5cf6,#a78bfa)}
.lvl-pct{font-size:.75rem;font-weight:600;color:var(--gray-500);min-width:35px;text-align:right}
.level-row.locked{opacity:.5}

.achievement-row{display:flex;gap:1rem;align-items:flex-start}
.ach-icon{font-size:2rem}
.ach-info{flex:1}
.ach-name{display:block;font-size:.9rem;font-weight:700;color:var(--gray-800)}
.ach-desc{display:block;font-size:.78rem;color:var(--gray-400);margin-bottom:.5rem}
.ach-bar{height:6px;background:var(--gray-100);border-radius:6px;overflow:hidden;margin-bottom:.3rem}
.ach-fill{height:100%;background:linear-gradient(90deg,#f59e0b,#fbbf24);border-radius:6px}
.ach-progress{font-size:.72rem;color:var(--gray-400);font-weight:600}

.activity-list{display:flex;flex-direction:column;gap:.8rem}
.activity-item{display:flex;align-items:flex-start;gap:.7rem}
.act-dot{width:8px;height:8px;border-radius:50%;margin-top:6px;flex-shrink:0}
.act-dot.green{background:var(--green-500)}
.act-dot.blue{background:#3b82f6}
.act-dot.purple{background:#8b5cf6}
.act-dot.gold{background:#f59e0b}
.act-text{flex:1}
.act-text span:first-child{display:block;font-size:.85rem;color:var(--gray-700);font-weight:500}
.act-time{display:block;font-size:.72rem;color:var(--gray-400)}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media(max-width:1024px){
  .hero-inner{grid-template-columns:1fr;text-align:center}
  .hero-subtitle{margin-left:auto;margin-right:auto}
  .hero-cta{justify-content:center}
  .hero-stats{justify-content:center}
  .hero-visual{display:none}
  .hero-title{font-size:3rem}
  .features-grid{grid-template-columns:repeat(2,1fr)}
  .steps-row{flex-direction:column;align-items:center}
  .step-connector{transform:rotate(90deg)}
  .testimonials-grid{grid-template-columns:1fr}
  .pricing-grid{grid-template-columns:1fr;max-width:400px}
  .footer-top{grid-template-columns:1fr}
  .auth-container{grid-template-columns:1fr}
  .auth-side{display:none}
  .dash-columns{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .continue-card{flex-direction:column}
  .continue-thumb{width:100%;min-height:160px}
}

@media(max-width:768px){
  .nav-links,.nav-actions{display:none}
  .hamburger{display:flex}
  .hero{padding:6rem 1.5rem 3rem}
  .hero-title{font-size:2.2rem}
  .section-title{font-size:2rem}
  .features-grid{grid-template-columns:1fr}
  .brand-inner{flex-direction:column;gap:1rem}
  .footer-links-group{grid-template-columns:repeat(2,1fr)}
  .footer-bottom{flex-direction:column;gap:1rem;text-align:center}
  
  /* Dashboard responsive */
  .sidebar{transform:translateX(-100%)}
  .sidebar.open{transform:translateX(0)}
  .sidebar-overlay.active{display:block}
  .dash-main{margin-left:0}
  .menu-toggle{display:block}
  .dash-topbar{padding:1rem}
  .topbar-search{display:none}
  .dash-content{padding:1rem}
  .dash-hero{flex-direction:column;text-align:center}
  .dash-hero-left{flex-direction:column}
  .stats-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:480px){
  .hero-title{font-size:1.8rem}
  .hero-stats{flex-direction:column;gap:1rem}
  .stat-divider{width:40px;height:1px}
  .form-row-2col{grid-template-columns:1fr}
  .social-btns{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:1fr}
  .dash-hero{padding:1.5rem}
}
