*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --navy:#0f172a;--blue:#4f8ef7;--blue-dark:#3b7de8;--green:#10b981;--neet:#059669;
  --red:#ef4444;--amber:#f59e0b;--muted:#64748b;--border:#e2e8f0;--card:#fff;
  --radius:16px;--font-display:'Syne',sans-serif;--shadow:0 12px 40px rgba(15,23,42,.1)
}
body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:#f8fafc;color:var(--navy);line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.mt-nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);padding:12px 0}
.mt-nav .inner{max-width:1040px;margin:0 auto;padding:0 18px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.mt-nav .brand{display:flex;align-items:center;gap:9px;font-weight:700}
.mt-nav .brand img{height:36px;width:auto;object-fit:contain;border-radius:4px}
.mt-nav .links{display:flex;gap:16px;font-size:.88rem;font-weight:600;flex-wrap:wrap}
.mt-nav .links a:hover{color:var(--neet)}
.mt-nav .inner .le-nav-auth{margin-left:auto;flex-shrink:0}

.mt-screen{max-width:880px;margin:0 auto;padding:32px 18px 56px}

/* Intro */
.mt-intro-card{background:var(--card);border:1px solid var(--border);border-radius:22px;padding:36px 30px;box-shadow:var(--shadow)}
.mt-eyebrow{display:inline-block;padding:6px 14px;border-radius:999px;background:linear-gradient(135deg,#ecfdf5,#d1fae5);color:#047857;font-size:.76rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;margin-bottom:14px}
.mt-intro h1{font-family:var(--font-display);font-size:clamp(1.6rem,4.5vw,2.3rem);line-height:1.18;margin-bottom:10px}
.mt-sub{color:var(--muted);font-size:1rem;margin-bottom:20px}
.mt-meta{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}
.mt-meta span{background:#f1f5f9;border:1px solid var(--border);border-radius:10px;padding:8px 14px;font-size:.82rem;font-weight:600;color:var(--navy)}
.mt-meta span b{color:var(--neet)}

.mt-details h2{font-family:var(--font-display);font-size:1.15rem;margin-bottom:14px}
.mt-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:560px){.mt-grid{grid-template-columns:1fr}}
.mt-field{display:flex;flex-direction:column;gap:6px}
.mt-field label{font-size:.8rem;font-weight:600}
.mt-field input,.mt-field select{padding:12px 14px;border:1px solid var(--border);border-radius:10px;font:inherit;font-size:.95rem;background:#fff}
.mt-field input:focus,.mt-field select:focus{outline:none;border-color:var(--neet);box-shadow:0 0 0 3px rgba(5,150,105,.15)}
.mt-consent{display:flex;align-items:flex-start;gap:8px;font-size:.85rem;color:var(--muted);margin:16px 0}
.mt-consent input{margin-top:4px;accent-color:var(--neet)}
.mt-fine{font-size:.78rem;color:var(--muted);text-align:center;margin-top:12px}

/* Buttons */
.mt-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 20px;border-radius:12px;font-weight:700;font-size:.92rem;cursor:pointer;border:none;font-family:inherit;transition:transform .2s,box-shadow .2s,background .2s,opacity .2s}
.mt-btn:hover{transform:translateY(-2px)}
.mt-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.mt-btn-lg{width:100%;padding:15px 24px;font-size:1rem}
.mt-btn-primary{background:linear-gradient(135deg,#059669,#047857);color:#fff;box-shadow:0 8px 24px rgba(5,150,105,.3)}
.mt-btn-secondary{background:linear-gradient(135deg,#4f8ef7,#3b7de8);color:#fff}
.mt-btn-outline{background:#fff;color:var(--navy);border:1.5px solid var(--border)}
.mt-btn-outline:hover{border-color:var(--neet);color:var(--neet)}
.mt-btn-ghost{background:transparent;color:var(--muted);border:1px solid var(--border)}

/* Quiz */
.mt-quiz-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.mt-quiz-info{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.mt-subject-badge{padding:6px 14px;border-radius:999px;background:linear-gradient(135deg,#059669,#047857);color:#fff;font-size:.78rem;font-weight:700}
.mt-qcount{font-size:.85rem;font-weight:600;color:var(--muted)}
.mt-timer{font-family:var(--font-display);font-weight:800;font-size:1.2rem;color:var(--navy);background:#fff;border:1px solid var(--border);border-radius:10px;padding:6px 14px;min-width:88px;text-align:center}
.mt-timer.warn{color:var(--red);border-color:var(--red);animation:pulseRed 1s infinite}
@keyframes pulseRed{0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,.3)}50%{box-shadow:0 0 0 6px rgba(239,68,68,0)}}
.mt-progress{height:6px;background:var(--border);border-radius:999px;overflow:hidden;margin-bottom:22px}
.mt-progress-fill{height:100%;width:0;background:linear-gradient(90deg,#059669,#4f8ef7);border-radius:999px;transition:width .35s}

.mt-question-wrap{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:26px 24px;box-shadow:var(--shadow);min-height:220px}
.mt-question{font-family:var(--font-display);font-size:1.15rem;font-weight:700;line-height:1.5;margin-bottom:20px}
.mt-options{display:flex;flex-direction:column;gap:11px}
.mt-opt{display:flex;gap:12px;align-items:flex-start;width:100%;text-align:left;padding:14px 16px;border:1.5px solid var(--border);border-radius:12px;background:#fff;font:inherit;font-size:.95rem;cursor:pointer;transition:border-color .2s,background .2s}
.mt-opt:hover{border-color:var(--neet);background:#f0fdf4}
.mt-opt.sel{border-color:var(--neet);background:#ecfdf5}
.mt-opt-key{flex:0 0 26px;height:26px;border-radius:50%;background:#f1f5f9;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.82rem}
.mt-opt.sel .mt-opt-key{background:var(--neet);color:#fff}

.mt-palette{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}
.mt-pal{width:38px;height:38px;border-radius:9px;border:1.5px solid var(--border);background:#fff;font-weight:700;font-size:.85rem;cursor:pointer;transition:all .15s}
.mt-pal.answered{background:var(--neet);color:#fff;border-color:var(--neet)}
.mt-pal.current{outline:3px solid rgba(79,142,247,.35)}

.mt-quiz-nav{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between}
.mt-quiz-nav .mt-btn{flex:1;min-width:120px}
#qSubmit{flex-basis:100%}

/* Results */
.mt-result-hero{text-align:center;padding:34px 24px;border-radius:22px;color:#fff;background:linear-gradient(135deg,#0f172a 0%,#065f46 60%,#059669 100%);position:relative;overflow:hidden;margin-bottom:20px}
.mt-result-hero h2{font-family:var(--font-display);font-size:1.5rem;margin-bottom:6px}
.mt-result-score{font-family:var(--font-display);font-size:3.4rem;font-weight:800;line-height:1;margin:10px 0}
.mt-result-score small{font-size:1.1rem;opacity:.8}
.mt-result-msg{opacity:.9;font-size:.95rem;max-width:520px;margin:6px auto 0}
.mt-result-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;margin-bottom:24px}
.mt-stat{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:18px 16px;text-align:center}
.mt-stat strong{display:block;font-family:var(--font-display);font-size:1.6rem;color:var(--navy)}
.mt-stat span{font-size:.8rem;color:var(--muted)}
.mt-stat.correct strong{color:var(--green)}
.mt-stat.wrong strong{color:var(--red)}
.mt-stat.skip strong{color:var(--amber)}
.mt-result-cta{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-bottom:36px}
.mt-review-title{font-family:var(--font-display);font-size:1.3rem;margin-bottom:16px}
.mt-review{display:flex;flex-direction:column;gap:14px}
.mt-review-item{background:var(--card);border:1px solid var(--border);border-left-width:5px;border-radius:12px;padding:18px 20px}
.mt-review-item.correct{border-left-color:var(--green)}
.mt-review-item.wrong{border-left-color:var(--red)}
.mt-review-item.skipped{border-left-color:var(--amber)}
.mt-review-sub{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--neet);margin-bottom:6px}
.mt-review-q{font-weight:700;margin-bottom:10px;line-height:1.5}
.mt-review-opt{font-size:.9rem;padding:6px 10px;border-radius:8px;margin-bottom:5px}
.mt-review-opt.ok{background:#ecfdf5;color:#047857;font-weight:600}
.mt-review-opt.bad{background:#fef2f2;color:#b91c1c;font-weight:600}
.mt-review-exp{margin-top:10px;font-size:.88rem;color:var(--muted);background:#f8fafc;border-radius:8px;padding:10px 12px;line-height:1.55}
.mt-review-exp b{color:var(--navy)}

.mt-footer{border-top:1px solid var(--border);background:#fff;padding:26px 18px;text-align:center;color:var(--muted);font-size:.85rem}
.mt-footer a{color:var(--neet);font-weight:600}
.mt-footer strong{color:var(--navy)}
