:root{
  --blue:#5b7cfa; --blue2:#7b61ff; --yellow:#ffc94a; --green:#55c77a;
  --orange:#ff9f43; --purple:#8d70f8; --pink:#ff77a8; --bg:#f7f9ff;
  --text:#26324a; --muted:#77829a; --white:#fff; --shadow:0 12px 30px rgba(55,75,130,.10);
}
*{box-sizing:border-box} html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
button,a{font:inherit} a{text-decoration:none;color:inherit}
.container{width:min(1120px,92%);margin:auto}
.topbar{background:#fff;border-bottom:1px solid #edf0f7;position:sticky;top:0;z-index:10}
.nav{height:72px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.logo{display:flex;align-items:center;gap:10px;font-weight:900;font-size:20px}
.logo-bubble{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--blue),var(--purple));display:grid;place-items:center;color:#fff;font-size:22px}
.navlinks{display:flex;gap:8px;align-items:center}.navlinks a{padding:10px 14px;border-radius:12px;color:var(--muted);font-weight:700}.navlinks a:hover{background:#f1f4ff;color:var(--blue)}
.hero{padding:46px 0 26px}.hero-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:28px;align-items:stretch}
.hero-card{background:linear-gradient(135deg,#5b7cfa,#7d66f7);color:#fff;border-radius:28px;padding:36px;box-shadow:var(--shadow);overflow:hidden;position:relative}
.hero-card:after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.10);right:-70px;top:-70px}
.hero-card h1{font-size:clamp(30px,5vw,48px);line-height:1.05;margin:8px 0 14px;max-width:620px}.hero-card p{font-size:18px;line-height:1.6;max-width:620px;color:#eef1ff}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 18px;border:0;border-radius:14px;font-weight:900;cursor:pointer;transition:.2s;min-height:48px}
.btn:hover{transform:translateY(-1px)} .btn-primary{background:#fff;color:#4e67df}.btn-yellow{background:var(--yellow);color:#4a3b11}.btn-blue{background:var(--blue);color:#fff}.btn-soft{background:#eef2ff;color:#5368d9}
.mascot{background:#fff;border-radius:28px;box-shadow:var(--shadow);display:grid;place-items:center;min-height:280px;font-size:120px}
.section{padding:20px 0 50px}.section-title{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:18px}.section-title h2{margin:0;font-size:26px}.muted{color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.card{background:#fff;border:1px solid #edf0f7;border-radius:22px;padding:20px;box-shadow:0 8px 24px rgba(55,75,130,.06)}
.subject{min-height:180px;display:flex;flex-direction:column;justify-content:space-between}.subject .icon{font-size:42px}.subject h3{margin:12px 0 5px}.subject p{margin:0;color:var(--muted);font-size:14px}
.progress{height:9px;background:#edf0f7;border-radius:99px;overflow:hidden}.progress>span{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--purple));border-radius:99px}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.stat strong{font-size:30px}.stat small{display:block;color:var(--muted);margin-top:4px}
.quiz-wrap{max-width:780px;margin:38px auto}.quiz-card{background:#fff;border-radius:28px;box-shadow:var(--shadow);padding:30px}
.quiz-head{display:flex;justify-content:space-between;gap:15px;align-items:center;color:var(--muted);font-weight:800}.question{font-size:clamp(24px,4vw,34px);line-height:1.35;margin:26px 0}.choices{display:grid;gap:12px}.choice{width:100%;text-align:left;border:2px solid #e8ebf3;background:#fff;padding:17px 18px;border-radius:17px;cursor:pointer;font-weight:800;color:var(--text)}.choice:hover{border-color:#aab6f8;background:#f7f8ff}.choice.selected{border-color:var(--blue);background:#eef2ff}.choice.correct{border-color:var(--green);background:#edfff3}.choice.wrong{border-color:#ff7777;background:#fff0f0}
.feedback{display:none;margin-top:18px;padding:15px;border-radius:16px;font-weight:800}.feedback.show{display:block}
.footer{padding:35px 0;color:var(--muted);text-align:center}
.form-card{max-width:520px;margin:55px auto}.form-card h1{text-align:center}.input{width:100%;padding:14px 15px;border:1px solid #dfe4ef;border-radius:13px;margin:7px 0 14px;outline:none}.input:focus{border-color:var(--blue);box-shadow:0 0 0 4px #eef2ff}
.admin-layout{display:grid;grid-template-columns:230px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid #edf0f7;padding:20px;position:sticky;top:0;height:100vh}.sidebar a{display:block;padding:12px 14px;border-radius:12px;margin:5px 0;font-weight:700;color:var(--muted)}.sidebar a:hover{background:#eef2ff;color:var(--blue)}.admin-main{padding:28px}.table-wrap{overflow:auto;background:#fff;border-radius:20px;box-shadow:var(--shadow)}table{border-collapse:collapse;width:100%;min-width:700px}th,td{text-align:left;padding:14px;border-bottom:1px solid #edf0f7}th{color:var(--muted);font-size:13px}
.alert{padding:14px 16px;border-radius:14px;background:#fff4d6;margin-bottom:16px}
@media(max-width:850px){.hero-grid{grid-template-columns:1fr}.mascot{min-height:180px;font-size:80px}.grid{grid-template-columns:repeat(2,1fr)}.navlinks{display:none}.admin-layout{grid-template-columns:1fr}.sidebar{height:auto;position:static}.sidebar nav{display:flex;overflow:auto;gap:5px}.sidebar a{white-space:nowrap}.stats{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.container{width:94%}.nav{height:64px}.hero{padding-top:24px}.hero-card{padding:25px;border-radius:22px}.grid{grid-template-columns:1fr 1fr;gap:10px}.card{padding:15px;border-radius:18px}.subject{min-height:155px}.stats{grid-template-columns:1fr}.quiz-card{padding:20px;border-radius:22px}.question{font-size:24px}.choice{padding:15px}.hero-actions .btn{width:100%}}

/* v2: kuis & progres */
[hidden]{display:none!important}
.choice:disabled{cursor:default}
.choice:disabled:not(.correct):not(.wrong):not(.selected){opacity:.55}
.feedback.ok{background:#edfff3}.feedback.no{background:#fff4d6}.feedback.warn{background:#fff0f0}
.btn-next{width:100%;margin-top:14px}
.star-pill{display:inline-flex;align-items:center;gap:4px;padding:8px 12px;border-radius:99px;background:#fff6dc;color:#7a5a00;font-weight:900}
.subject-foot{display:grid;gap:8px;margin-top:14px}.subject-foot .btn{min-height:40px;padding:9px 14px}
.history{display:grid;gap:10px}
.history-item{display:flex;align-items:center;gap:14px;padding:14px 18px}
.history-icon{font-size:30px}.history-main{flex:1;display:grid;gap:2px}
.history-score{display:grid;gap:2px;text-align:right}.history-score small{color:#7a5a00;font-weight:800}
