@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&display=swap');

/* ── Reset & Base ── */
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'DM Sans',Arial,sans-serif;color:#12231e;background:#f8fafc;min-height:100vh}
button{font-family:inherit;transition:all .18s;cursor:pointer}
input,textarea,select{font-family:inherit}
a{text-decoration:none;color:inherit}

/* ── Typography ── */
.display{font-family:'Space Grotesk',Arial,sans-serif}
h1,h2,h3{line-height:1.25}

/* ── Layout ── */
.shell{display:flex;min-height:100vh}
.content{flex:1;min-width:0;overflow:auto}
.main{max-width:1180px;margin:auto;padding:32px}

/* ── Background mesh ── */
.mesh{min-height:100vh;background:radial-gradient(circle at 85% 10%,#d1fae5 0,transparent 30%),radial-gradient(circle at 15% 90%,#fef3c7 0,transparent 30%),radial-gradient(circle at 50% 50%,#ecfdf5 0,transparent 60%),#f8fafc;display:flex;align-items:center;justify-content:center;padding:20px}

/* ── Auth card ── */
.auth-card{background:#fff;border:1px solid #dbe7e2;border-radius:28px;box-shadow:0 24px 80px #064e3b14;width:100%;max-width:460px;padding:40px}
.auth-card .logo{margin-bottom:32px}
.auth-tabs{display:flex;gap:8px;margin-bottom:28px;background:#f1f5f9;border-radius:14px;padding:5px}
.auth-tabs button{flex:1;border:0;border-radius:10px;padding:10px;font-weight:700;font-size:14px;background:transparent;color:#64748b;cursor:pointer}
.auth-tabs button.active{background:#fff;color:#064e3b;box-shadow:0 2px 8px #064e3b18}
.auth-card h2{font-family:'Space Grotesk';font-size:26px;color:#064e3b;margin-bottom:6px}
.auth-card p{font-size:14px;color:#64748b;line-height:1.6;margin-bottom:24px}
.form-group{margin-bottom:16px}
.form-group label{display:block;font-size:13px;font-weight:700;color:#374151;margin-bottom:6px}
.input{display:block;width:100%;padding:13px 16px;border:1.5px solid #e2e8f0;border-radius:12px;font-size:15px;color:#0f172a;background:#fff;outline:none;transition:.15s}
.input:focus{border-color:#047857;box-shadow:0 0 0 3px #04785718}
.link-btn{border:0;background:none;color:#047857;font-weight:700;cursor:pointer;font-size:inherit;padding:0;text-decoration:underline}
.link-btn:hover{color:#064e3b}

/* ── Buttons ── */
.btn{border:0;border-radius:12px;padding:13px 20px;font-weight:700;font-size:14px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:all .18s}
.btn:hover{filter:brightness(1.07);transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.btn-primary{background:#064e3b;color:#fbbf24}
.btn-primary:hover{background:#043d2f}
.btn-gold{background:#f59e0b;color:#0f172a}
.btn-ghost{background:transparent;border:1.5px solid #064e3b;color:#064e3b}
.btn-ghost:hover{background:#064e3b;color:#fff}
.btn-danger{background:#fef2f2;color:#dc2626;border:1.5px solid #fecaca}
.btn-danger:hover{background:#dc2626;color:#fff}
.btn-full{width:100%}
.btn-sm{padding:8px 14px;font-size:12px;border-radius:9px}

/* ── Sidebar ── */
.sidebar{width:260px;background:#fff;border-right:1px solid #e2e8f0;padding:26px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto;flex-shrink:0}
.logo{display:flex;align-items:center;gap:10px;color:#064e3b;font-weight:700}
.mark{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;background:#064e3b;color:#fbbf24;font-size:20px;flex-shrink:0}
.brand{font-family:'Space Grotesk';font-size:15px;letter-spacing:.02em;font-weight:800}
.brand span{color:#d97706}
.tag{font-size:9px;color:#047857;letter-spacing:.18em;font-weight:700}
.nav{margin-top:40px;display:flex;flex-direction:column;gap:4px}
.nav-btn{display:flex;align-items:center;gap:10px;width:100%;border:0;border-radius:12px;padding:12px 14px;text-align:left;font-weight:700;font-size:14px;color:#64748b;background:none;cursor:pointer}
.nav-btn:hover{background:#f0fdf4;color:#064e3b}
.nav-btn.active{background:#064e3b;color:#fff}
.streak-box{background:#ecfdf5;border:1px solid #a7f3d0;padding:16px;border-radius:16px;margin-top:auto}
.sidebar-footer{margin-top:16px}

/* ── Topbar ── */
.topbar{height:70px;background:#ffffffee;border-bottom:1px solid #e2e8f0;padding:0 32px;display:flex;justify-content:space-between;align-items:center;backdrop-filter:blur(8px);position:sticky;top:0;z-index:10}
.avatar{width:40px;height:40px;border-radius:50%;background:#fef3c7;color:#92400e;font-weight:800;display:grid;place-items:center;font-size:14px;flex-shrink:0}

/* ── Cards & Panels ── */
.card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 4px 24px #064e3b09}
.panel{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:24px;box-shadow:0 4px 24px #064e3b09}

/* ── Hero ── */
.hero{position:relative;overflow:hidden;padding:40px 48px;border-radius:28px;background:#064e3b;color:#fff}
.hero h1{font-family:'Space Grotesk';font-size:clamp(28px,3.5vw,44px);max-width:640px;margin:16px 0 12px;font-weight:800}
.hero p{max-width:540px;line-height:1.7;color:#d1fae5;font-size:15px}
.hero-circles .c1{position:absolute;right:-40px;top:-50px;width:260px;height:260px;border-radius:50%;border:28px solid #04785740}
.hero-circles .c2{position:absolute;right:100px;bottom:-60px;width:160px;height:160px;border-radius:50%;border:18px solid #fbbf2430}

/* ── Stats grid ── */
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0 32px}
.stat-card{padding:22px}
.stat-card .icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;margin-bottom:14px}
.stat-card strong{display:block;font-family:'Space Grotesk';font-size:26px;color:#064e3b;font-weight:800}
.stat-card small{color:#94a3b8;font-size:12px;font-weight:600}

/* ── Course cards ── */
.courses-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.course-card{padding:22px;cursor:pointer;transition:all .2s;position:relative;overflow:hidden}
.course-card:hover{transform:translateY(-4px);box-shadow:0 16px 50px #064e3b18;border-color:#a7f3d0}
.course-card.locked{border:2px solid #fcd34d;background:linear-gradient(135deg,#fffbeb,#fff)}
.course-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-size:20px}
.course-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}
.course-card h3{font-family:'Space Grotesk';font-size:17px;color:#064e3b;font-weight:700;line-height:1.35;margin-bottom:8px}
.course-card p{color:#64748b;font-size:13px;line-height:1.55}
.unlock-banner{margin-top:16px;padding:10px 14px;background:#fef3c7;border-radius:10px;display:flex;justify-content:space-between;align-items:center;border:1px solid #fde68a}
.progress-bar{height:7px;background:#e2e8f0;border-radius:9px;overflow:hidden;margin-top:8px}
.progress-fill{height:100%;border-radius:9px;background:linear-gradient(90deg,#059669,#34d399);transition:.4s}

/* ── Pill badges ── */
.pill{display:inline-flex;align-items:center;gap:4px;border-radius:99px;padding:5px 11px;font-size:11px;font-weight:700}
.pill-green{background:#d1fae5;color:#065f46}
.pill-gold{background:#fef3c7;color:#92400e}
.pill-slate{background:#f1f5f9;color:#475569}
.pill-amber{background:#fef9c3;color:#78350f}

/* ── Reader layout ── */
.reader-layout{display:grid;grid-template-columns:260px 1fr;gap:20px;align-items:start}
.modules-panel{padding:20px}
.module-btn{display:flex;align-items:center;gap:8px;width:100%;border:0;border-radius:10px;padding:11px 12px;text-align:left;font-size:13px;font-weight:700;color:#64748b;background:none;cursor:pointer;margin-bottom:4px}
.module-btn:hover{background:#f0fdf4;color:#064e3b}
.module-btn.active{background:#064e3b;color:#fff}
.module-btn:disabled{opacity:.4;cursor:not-allowed}
.module-num{width:28px;height:28px;border-radius:8px;background:#e2e8f0;display:grid;place-items:center;font-size:12px;flex-shrink:0;font-weight:700}
.lesson-panel{padding:32px}

/* ── Quiz ── */
.quiz-question{margin-bottom:24px}
.quiz-question h4{font-size:15px;font-weight:700;color:#1e293b;margin-bottom:12px;line-height:1.5}
.options-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.option-btn{border:1.5px solid #e2e8f0;border-radius:12px;padding:12px 14px;text-align:left;font-size:13px;font-weight:600;color:#475569;background:#fff;cursor:pointer;line-height:1.4;transition:.15s}
.option-btn:hover:not(:disabled){border-color:#064e3b;background:#f0fdf4;color:#064e3b}
.option-btn.selected{border-color:#047857;background:#ecfdf5;color:#065f46;font-weight:700}
.option-btn.correct{border-color:#16a34a;background:#dcfce7;color:#15803d}
.option-btn.wrong{border-color:#dc2626;background:#fef2f2;color:#dc2626}

/* ── Code block ── */
.code-block{background:#0f2820;color:#a7f3d0;padding:20px;border-radius:14px;font-family:'Courier New',monospace;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-x:auto;margin:16px 0;border:1px solid #064e3b60}

/* ── Modal ── */
.modal-overlay{position:fixed;inset:0;background:rgba(2,6,23,.65);z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(6px)}
.modal-box{background:#fff;border-radius:28px;width:100%;max-width:480px;padding:32px;position:relative;box-shadow:0 32px 100px #00000040}
.modal-close{position:absolute;right:20px;top:20px;border:0;background:#f1f5f9;width:34px;height:34px;border-radius:50%;font-size:16px;cursor:pointer;display:grid;place-items:center;color:#64748b}
.modal-close:hover{background:#e2e8f0}

/* ── Certificate card ── */
.cert-card{border:2px solid #fcd34d;border-radius:20px;padding:24px;background:linear-gradient(135deg,#fffbeb,#fff);display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px}

/* ── Alerts ── */
.alert{padding:12px 16px;border-radius:12px;font-size:13px;font-weight:600;margin-bottom:12px}
.alert-error{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}
.alert-success{background:#f0fdf4;color:#16a34a;border:1px solid #bbf7d0}
.alert-info{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}

/* ── Section headings ── */
.section-label{font-size:11px;font-weight:700;letter-spacing:.15em;color:#047857;text-transform:uppercase;margin-bottom:6px}
.section-title{font-family:'Space Grotesk';font-size:28px;font-weight:800;color:#064e3b;margin-bottom:8px}
.section-sub{color:#64748b;font-size:14px;margin-bottom:28px;line-height:1.6}

/* ── Divider ── */
.divider{height:1px;background:#e2e8f0;margin:20px 0}

/* ── Utilities ── */
.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}
.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-6{margin-top:24px}.mt-8{margin-top:32px}
.mb-2{margin-bottom:8px}.mb-4{margin-bottom:16px}
.text-sm{font-size:13px}.text-xs{font-size:11px}.text-lg{font-size:18px}
.font-bold{font-weight:700}.font-extrabold{font-weight:800}
.text-muted{color:#94a3b8}.text-green{color:#047857}.text-amber{color:#92400e}
.w-full{width:100%}

/* ── Lock screen ── */
.lock-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;text-align:center;padding:40px;border-radius:24px;background:#fff;border:2px solid #fcd34d}
.lock-icon{width:80px;height:80px;border-radius:50%;background:#fef3c7;border:3px solid #fcd34d;display:grid;place-items:center;font-size:36px;margin:0 auto 20px}

/* ── Mobile ── */
@media(max-width:820px){
  .sidebar{display:none}
  .topbar{padding:0 16px}
  .main{padding:16px}
  .stats-grid{grid-template-columns:1fr}
  .reader-layout{grid-template-columns:1fr}
  .hero{padding:24px}
  .options-grid{grid-template-columns:1fr}
  .mobile-menu-btn{display:flex!important}
}
.mobile-menu-btn{display:none;align-items:center;justify-content:center;border:0;background:none;font-size:24px;padding:4px;color:#064e3b}
.mobile-drawer{position:fixed;inset:0;z-index:200;background:#064e3b;padding:28px;display:flex;flex-direction:column;gap:10px;overflow-y:auto}
.mobile-drawer .nav-btn{color:#a7f3d0;font-size:15px;padding:14px}
.mobile-drawer .nav-btn.active,.mobile-drawer .nav-btn:hover{background:#ffffff18;color:#fff}
.mobile-drawer-close{align-self:flex-end;border:0;background:#ffffff20;color:#fff;width:38px;height:38px;border-radius:50%;font-size:18px;cursor:pointer;display:grid;place-items:center;margin-bottom:8px}


/* ── Reset & Base ── */
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'DM Sans',Arial,sans-serif;color:#12231e;background:#f8fafc;min-height:100vh}
button{font-family:inherit;transition:all .18s;cursor:pointer}
input,textarea,select{font-family:inherit}
a{text-decoration:none;color:inherit}

/* ── Typography ── */
.display{font-family:'Space Grotesk',Arial,sans-serif}
h1,h2,h3{line-height:1.25}

/* ── Layout ── */
.shell{display:flex;min-height:100vh}
.content{flex:1;min-width:0;overflow:auto}
.main{max-width:1180px;margin:auto;padding:32px}

/* ── Background mesh ── */
.mesh{min-height:100vh;background:radial-gradient(circle at 85% 10%,#d1fae5 0,transparent 30%),radial-gradient(circle at 15% 90%,#fef3c7 0,transparent 30%),radial-gradient(circle at 50% 50%,#ecfdf5 0,transparent 60%),#f8fafc;display:flex;align-items:center;justify-content:center;padding:20px}

/* ── Auth card ── */
.auth-card{background:#fff;border:1px solid #dbe7e2;border-radius:28px;box-shadow:0 24px 80px #064e3b14;width:100%;max-width:460px;padding:40px}
.auth-card .logo{margin-bottom:32px}
.auth-tabs{display:flex;gap:8px;margin-bottom:28px;background:#f1f5f9;border-radius:14px;padding:5px}
.auth-tabs button{flex:1;border:0;border-radius:10px;padding:10px;font-weight:700;font-size:14px;background:transparent;color:#64748b}
.auth-tabs button.active{background:#fff;color:#064e3b;box-shadow:0 2px 8px #064e3b18}
.auth-card h2{font-family:'Space Grotesk';font-size:26px;color:#064e3b;margin-bottom:6px}
.auth-card p{font-size:14px;color:#64748b;line-height:1.6;margin-bottom:24px}
.form-group{margin-bottom:16px}
.form-group label{display:block;font-size:13px;font-weight:700;color:#374151;margin-bottom:6px}
.input{display:block;width:100%;padding:13px 16px;border:1.5px solid #e2e8f0;border-radius:12px;font-size:15px;color:#0f172a;background:#fff;outline:none;transition:.15s}
.input:focus{border-color:#047857;box-shadow:0 0 0 3px #04785718}
.input.error{border-color:#ef4444}
.error-msg{color:#ef4444;font-size:12px;font-weight:600;margin-top:4px}
.success-msg{color:#047857;font-size:12px;font-weight:600;margin-top:4px}

/* ── Buttons ── */
.btn{border:0;border-radius:12px;padding:13px 20px;font-weight:700;font-size:14px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:all .18s}
.btn:hover{filter:brightness(1.07);transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.btn-primary{background:#064e3b;color:#fbbf24}
.btn-primary:hover{background:#043d2f}
.btn-gold{background:#f59e0b;color:#0f172a}
.btn-ghost{background:transparent;border:1.5px solid #064e3b;color:#064e3b}
.btn-ghost:hover{background:#064e3b;color:#fff}
.btn-danger{background:#fef2f2;color:#dc2626;border:1.5px solid #fecaca}
.btn-danger:hover{background:#dc2626;color:#fff}
.btn-full{width:100%}
.btn-sm{padding:8px 14px;font-size:12px;border-radius:9px}

/* ── Sidebar ── */
.sidebar{width:260px;background:#fff;border-right:1px solid #e2e8f0;padding:26px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto;flex-shrink:0}
.logo{display:flex;align-items:center;gap:10px;color:#064e3b;font-weight:700;text-decoration:none}
.mark{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;background:#064e3b;color:#fbbf24;font-size:20px;flex-shrink:0}
.brand{font-family:'Space Grotesk';font-size:15px;letter-spacing:.02em;font-weight:800}
.brand span{color:#d97706}
.tag{font-size:9px;color:#047857;letter-spacing:.18em;font-weight:700}
.nav{margin-top:40px;display:flex;flex-direction:column;gap:4px}
.nav-btn{display:flex;align-items:center;gap:10px;width:100%;border:0;border-radius:12px;padding:12px 14px;text-align:left;font-weight:700;font-size:14px;color:#64748b;background:none;cursor:pointer}
.nav-btn:hover{background:#f0fdf4;color:#064e3b}
.nav-btn.active{background:#064e3b;color:#fff}
.nav-btn svg{width:18px;height:18px;flex-shrink:0}
.streak-box{background:#ecfdf5;border:1px solid #a7f3d0;padding:16px;border-radius:16px;margin-top:auto}
.sidebar-footer{margin-top:16px}

/* ── Topbar ── */
.topbar{height:70px;background:#ffffffee;border-bottom:1px solid #e2e8f0;padding:0 32px;display:flex;justify-content:space-between;align-items:center;backdrop-filter:blur(8px);position:sticky;top:0;z-index:10}
.avatar{width:40px;height:40px;border-radius:50%;background:#fef3c7;color:#92400e;font-weight:800;display:grid;place-items:center;font-size:14px;flex-shrink:0}

/* ── Cards & Panels ── */
.card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 4px 24px #064e3b09}
.panel{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:24px;box-shadow:0 4px 24px #064e3b09}

/* ── Hero ── */
.hero{position:relative;overflow:hidden;padding:40px 48px;border-radius:28px;background:#064e3b;color:#fff}
.hero h1{font-family:'Space Grotesk';font-size:clamp(28px,3.5vw,44px);max-width:640px;margin:16px 0 12px;font-weight:800}
.hero p{max-width:540px;line-height:1.7;color:#d1fae5;font-size:15px}
.hero-circles .c1{position:absolute;right:-40px;top:-50px;width:260px;height:260px;border-radius:50%;border:28px solid #04785740}
.hero-circles .c2{position:absolute;right:100px;bottom:-60px;width:160px;height:160px;border-radius:50%;border:18px solid #fbbf2430}

/* ── Stats grid ── */
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0 32px}
.stat-card{padding:22px}
.stat-card .icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;margin-bottom:14px}
.stat-card strong{display:block;font-family:'Space Grotesk';font-size:26px;color:#064e3b;font-weight:800}
.stat-card small{color:#94a3b8;font-size:12px;font-weight:600}

/* ── Course cards ── */
.courses-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.course-card{padding:22px;cursor:pointer;transition:all .2s;position:relative;overflow:hidden}
.course-card:hover{transform:translateY(-4px);box-shadow:0 16px 50px #064e3b18;border-color:#a7f3d0}
.course-card.locked{border:2px solid #fcd34d;background:linear-gradient(135deg,#fffbeb,#fff)}
.course-card.locked:hover{border-color:#f59e0b}
.course-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-size:20px}
.course-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}
.course-card h3{font-family:'Space Grotesk';font-size:17px;color:#064e3b;font-weight:700;line-height:1.35;margin-bottom:8px}
.course-card p{color:#64748b;font-size:13px;line-height:1.55}
.unlock-banner{margin-top:16px;padding:10px 14px;background:#fef3c7;border-radius:10px;display:flex;justify-content:space-between;align-items:center;border:1px solid #fde68a}
.progress-bar{height:7px;background:#e2e8f0;border-radius:9px;overflow:hidden;margin-top:8px}
.progress-fill{height:100%;border-radius:9px;background:linear-gradient(90deg,#059669,#34d399);transition:.4s}

/* ── Pill badges ── */
.pill{display:inline-flex;align-items:center;gap:4px;border-radius:99px;padding:5px 11px;font-size:11px;font-weight:700}
.pill-green{background:#d1fae5;color:#065f46}
.pill-gold{background:#fef3c7;color:#92400e}
.pill-slate{background:#f1f5f9;color:#475569}
.pill-amber{background:#fef9c3;color:#78350f}

/* ── Reader layout ── */
.reader-layout{display:grid;grid-template-columns:260px 1fr;gap:20px;align-items:start}
.modules-panel{padding:20px}
.module-btn{display:flex;align-items:center;gap:8px;width:100%;border:0;border-radius:10px;padding:11px 12px;text-align:left;font-size:13px;font-weight:700;color:#64748b;background:none;cursor:pointer;margin-bottom:4px}
.module-btn:hover{background:#f0fdf4;color:#064e3b}
.module-btn.active{background:#064e3b;color:#fff}
.module-btn:disabled{opacity:.4;cursor:not-allowed}
.module-num{width:28px;height:28px;border-radius:8px;background:#e2e8f0;display:grid;place-items:center;font-size:12px;flex-shrink:0}
.module-btn.active .module-num{background:#ffffff30;color:#fff}
.lesson-panel{padding:32px}

/* ── Quiz ── */
.quiz-question{margin-bottom:18px;padding:16px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc}
.quiz-question h4{font-size:15px;font-weight:700;color:#1e293b;margin-bottom:12px;line-height:1.5}
.options-grid{display:grid;grid-template-columns:1fr;gap:10px;margin-top:10px}
.option-btn{width:100%;border:1.5px solid #e2e8f0;border-radius:12px;padding:12px 14px;text-align:left;font-size:13px;font-weight:600;color:#475569;background:#fff;cursor:pointer;line-height:1.4;transition:.15s}
.option-btn:hover:not(:disabled){border-color:#064e3b;background:#f0fdf4;color:#064e3b}
.option-btn.selected{border-color:#047857;background:#ecfdf5;color:#065f46;font-weight:700}
.option-btn.correct{border-color:#16a34a;background:#dcfce7;color:#15803d}
.option-btn.wrong{border-color:#dc2626;background:#fef2f2;color:#dc2626}

/* ── Code block ── */
.code-block{background:#0f2820;color:#a7f3d0;padding:20px;border-radius:14px;font-family:'Courier New',monospace;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-x:auto;margin:16px 0;border:1px solid #064e3b60}

/* ── Paystack Modal ── */
.modal-overlay{position:fixed;inset:0;background:rgba(2,6,23,.65);z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(6px);animation:fadeIn .2s}
.modal-box{background:#fff;border-radius:28px;width:100%;max-width:500px;padding:32px;position:relative;box-shadow:0 32px 100px #00000040;animation:slideUp .25s}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes slideUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.modal-close{position:absolute;right:20px;top:20px;border:0;background:#f1f5f9;width:34px;height:34px;border-radius:50%;font-size:18px;cursor:pointer;display:grid;place-items:center;color:#64748b}
.modal-close:hover{background:#e2e8f0;color:#1e293b}

/* ── Certificate ── */
.cert-card{border:2px solid #fcd34d;border-radius:20px;padding:24px;background:linear-gradient(135deg,#fffbeb,#fff);display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px}

/* ── Toasts / alerts ── */
.alert{padding:12px 16px;border-radius:12px;font-size:13px;font-weight:600;margin-bottom:12px}
.alert-error{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}
.alert-success{background:#f0fdf4;color:#16a34a;border:1px solid #bbf7d0}
.alert-info{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}

/* ── Section headings ── */
.section-label{font-size:11px;font-weight:700;letter-spacing:.15em;color:#047857;text-transform:uppercase;margin-bottom:6px}
.section-title{font-family:'Space Grotesk';font-size:28px;font-weight:800;color:#064e3b;margin-bottom:8px}
.section-sub{color:#64748b;font-size:14px;margin-bottom:28px;line-height:1.6}

/* ── Divider ── */
.divider{height:1px;background:#e2e8f0;margin:20px 0}

/* ── Utilities ── */
.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}
.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-6{margin-top:24px}.mt-8{margin-top:32px}
.mb-2{margin-bottom:8px}.mb-4{margin-bottom:16px}
.text-sm{font-size:13px}.text-xs{font-size:11px}.text-lg{font-size:18px}.text-xl{font-size:22px}
.font-bold{font-weight:700}.font-extrabold{font-weight:800}
.text-muted{color:#94a3b8}.text-green{color:#047857}.text-amber{color:#92400e}
.rounded-full{border-radius:999px}
.w-full{width:100%}
.hidden{display:none}

/* ── Loading spinner ── */
.spinner{width:20px;height:20px;border:2.5px solid #ffffff40;border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;display:inline-block}
@keyframes spin{to{transform:rotate(360deg)}}

/* ── Lock screen ── */
.lock-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;text-align:center;padding:40px;border-radius:24px;background:#fff;border:2px solid #fcd34d}
.lock-icon{width:80px;height:80px;border-radius:50%;background:#fef3c7;border:3px solid #fcd34d;display:grid;place-items:center;font-size:36px;margin:0 auto 20px}

/* ── Mobile ── */
@media(max-width:820px){
  .sidebar{display:none}
  .topbar{padding:0 16px}
  .main{padding:16px}
  .stats-grid{grid-template-columns:1fr}
  .reader-layout{grid-template-columns:1fr}
  .hero{padding:24px}
  .options-grid{grid-template-columns:1fr}
  .mobile-menu-btn{display:flex!important}
}
.mobile-menu-btn{display:none;align-items:center;justify-content:center;border:0;background:none;font-size:22px;padding:4px}
.mobile-drawer{position:fixed;inset:0;z-index:200;background:#064e3b;padding:28px;display:flex;flex-direction:column;gap:12px;overflow-y:auto}
.mobile-drawer .nav-btn{color:#a7f3d0;font-size:16px;padding:14px}
.mobile-drawer .nav-btn.active,.mobile-drawer .nav-btn:hover{background:#ffffff18;color:#fff}
.mobile-drawer-close{align-self:flex-end;border:0;background:#ffffff20;color:#fff;width:38px;height:38px;border-radius:50%;font-size:20px;cursor:pointer;display:grid;place-items:center;margin-bottom:8px}
