:root{
  --purple:#7357d8;--purple2:#8b72e8;--ink:#24213a;--muted:#77738b;
  --bg:#fbfaff;--line:#ebe7f6;--white:#fff;--green:#22b58a;--red:#e45b6b;
}
*{box-sizing:border-box}body{margin:0;font-family:"Cairo","Segoe UI",sans-serif;background:linear-gradient(135deg,#fff 0%,#fbf9ff 58%,#f1edff 100%);color:var(--ink);min-height:100vh;overflow-x:hidden}
button,input,textarea{font:inherit}button{cursor:pointer}.bg-shape{position:fixed;border-radius:50%;filter:blur(1px);z-index:-1;opacity:.45}.shape-a{width:300px;height:300px;background:#e9e2ff;left:-140px;bottom:-150px}.shape-b{width:240px;height:240px;background:#efe8ff;right:-120px;top:100px}
.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,5vw,70px);background:#ffffffc9;backdrop-filter:blur(14px);border-bottom:1px solid #eeeafa;position:sticky;top:0;z-index:20}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}.logo-mark{width:46px;height:46px;border-radius:14px;background:linear-gradient(145deg,#9a83ef,#684dce);display:grid;place-items:center;color:white;position:relative;box-shadow:0 8px 20px #7259d82c}.logo-mark span{font-size:27px;font-weight:900}.logo-mark i{position:absolute;right:7px;top:7px;width:9px;height:9px;border-radius:50%;background:#6ee2c0}.brand-text{display:flex;flex-direction:column;line-height:1}.brand-text b{font-size:23px;letter-spacing:.3px}.brand-text small{color:#d05268;font-size:9px;margin-top:6px}.top-actions{display:flex;gap:8px}.ghost,.outline{background:#fff;border:1px solid var(--line);color:var(--ink);border-radius:12px;padding:10px 16px;font-weight:700}.ghost:hover,.outline:hover{border-color:#cfc5f4;background:#faf8ff}.primary{background:linear-gradient(135deg,var(--purple2),var(--purple));border:0;color:#fff;border-radius:12px;padding:11px 18px;font-weight:800;box-shadow:0 9px 22px #7357d82c}.wide{width:100%}
main{max-width:1050px;margin:auto;padding:30px 18px 55px}.page{display:none}.page.active{display:block}.hero{text-align:center;padding:45px 0 30px}.eyebrow{color:var(--purple);font-size:12px;font-weight:900;letter-spacing:.3px}.hero h1{font-size:clamp(27px,5vw,43px);margin:13px 0 9px;line-height:1.35}.hero h1 span{color:var(--purple)}.hero p{color:var(--muted);margin:0;font-size:15px}
.entry-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;max-width:800px;margin:18px auto}.entry-card{background:#fff;border:1px solid var(--line);border-radius:26px;padding:30px;box-shadow:0 18px 50px #4d3a8b0d;text-align:center;transition:.2s}.entry-card:hover{transform:translateY(-3px);box-shadow:0 22px 60px #4d3a8b18}.creator-card{background:linear-gradient(145deg,#fff,#f7f3ff)}.round-icon{width:68px;height:68px;border-radius:22px;margin:0 auto 15px;display:grid;place-items:center;font-size:29px}.student{background:#eee9ff}.creator{background:#f1eaff}.entry-card h2{margin:7px 0;font-size:21px}.entry-card p{color:var(--muted);font-size:13px;min-height:42px}.entry-card button{margin-top:13px}.feature-row{display:flex;justify-content:center;gap:28px;margin-top:25px;color:var(--muted);font-size:12px}.feature-row div{display:flex;align-items:center;gap:7px}.feature-row strong{color:var(--green)}
.section-head,.quiz-head{display:flex;justify-content:space-between;align-items:center;margin:12px 0 22px}.section-head h2{margin:4px 0;font-size:28px}.exam-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.exam-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:21px;box-shadow:0 12px 35px #4d3a8b0b}.exam-card .badge{display:inline-block;background:#f0ecff;color:var(--purple);border-radius:9px;padding:5px 9px;font-size:10px;font-weight:800}.exam-card h3{margin:14px 0 7px}.exam-card p{color:var(--muted);font-size:12px;min-height:35px}.exam-card button{margin-top:10px;width:100%}
.quiz-head{direction:ltr}.quiz-head>div{text-align:right;display:flex;flex-direction:column}.quiz-head span{font-weight:900;font-size:19px}.quiz-head small{color:var(--muted);font-size:11px}.status{background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px 16px;margin-bottom:12px}.status>div:first-child{display:flex;justify-content:space-between;font-size:12px}.status b{color:var(--purple)}.progress{height:7px;background:#eeeaf7;border-radius:20px;margin-top:9px;overflow:hidden}.progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#9b86ef,#7357d8);transition:.25s}.question-map{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:13px;direction:ltr}.map-btn{width:35px;height:32px;border:1px solid var(--line);background:#fff;border-radius:9px;font-size:11px;font-weight:800;color:var(--muted)}.map-btn.active{background:#eee9ff;border-color:#9c89eb;color:var(--purple)}.map-btn.correct{background:#eafaf5;border-color:#72d8b8;color:#148464}.map-btn.wrong{background:#fff0f2;border-color:#eea0aa;color:#bd4050}.question-card{display:none;background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:0 15px 45px #4d3a8b0b;direction:ltr;text-align:left}.question-card.active{display:block}.q-label{color:var(--purple);font-size:11px;font-weight:900;margin-bottom:10px}.question{font-size:19px;line-height:1.6;font-weight:800;margin-bottom:20px}.options{display:grid;gap:10px}.option{border:1px solid #e4e0ef;background:#fff;border-radius:13px;padding:14px;text-align:left;direction:ltr;font-size:14px;font-weight:650;transition:.15s}.option:hover:not(.disabled){border-color:#a493ed;background:#faf8ff}.option.correct{background:#eafaf5;border-color:#55c9a4;color:#126f56}.option.wrong{background:#fff0f2;border-color:#ed9ca7;color:#aa3746}.option.disabled{cursor:default}.feedback{margin-top:14px;padding:10px;border-radius:10px;text-align:center;font-size:12px;font-weight:800}.feedback.ok{background:#eafaf5;color:#14775b}.feedback.no{background:#fff0f2;color:#ae3949}.quiz-controls{display:flex;gap:10px;margin-top:14px;direction:ltr}.quiz-controls button{flex:1}
.result-card{max-width:500px;margin:55px auto;background:#fff;border:1px solid var(--line);border-radius:28px;padding:40px;text-align:center;box-shadow:0 20px 60px #4d3a8b15}.result-icon{width:75px;height:75px;border-radius:24px;background:#eafaf5;color:var(--green);display:grid;place-items:center;font-size:38px;margin:0 auto 18px}.result-card h2{margin:7px}.score{font-size:42px;font-weight:900;color:var(--purple);margin:13px}.result-card p{color:var(--muted)}.result-actions{display:flex;gap:10px}.result-actions>*{flex:1}
.creator-layout{display:grid;grid-template-columns:1fr 280px;gap:16px}.panel,.tip-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px}.panel label{display:block;font-size:12px;font-weight:800;margin-bottom:13px}.panel input,.panel textarea,.q-editor input{width:100%;margin-top:7px;border:1px solid var(--line);border-radius:11px;padding:11px;outline:none;background:#fcfbff}.panel textarea{min-height:75px;resize:vertical}.q-editor{border:1px solid var(--line);border-radius:16px;padding:15px;margin:13px 0}.q-editor strong{font-size:13px}.q-editor .answers{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}.q-editor select{margin-top:9px;width:100%;padding:10px;border:1px solid var(--line);border-radius:10px}.save-btn{margin-top:12px}.tip-card{height:max-content;background:linear-gradient(145deg,#fff,#f5f0ff)}.tip-card p{font-size:12px;color:var(--muted);line-height:1.8}.muted{opacity:.8}footer{text-align:center;color:#9a96a9;font-size:11px;padding:15px}
@media(max-width:760px){.topbar{height:68px;padding:0 13px}.top-actions .ghost:first-child{display:none}.brand-text b{font-size:20px}.entry-grid,.creator-layout{grid-template-columns:1fr}.hero{padding-top:28px}.feature-row{gap:13px;flex-wrap:wrap}.exam-grid{grid-template-columns:1fr}.section-head h2{font-size:23px}.question{font-size:17px}.question-card{padding:18px}.q-editor .answers{grid-template-columns:1fr}.result-card{margin:25px auto;padding:28px}.ghost,.outline{padding:9px 12px}}
