@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800;900&display=swap');
:root{font-family:'Tajawal',system-ui,-apple-system,'Segoe UI',sans-serif;color:#182a42;background:#f4f7fb;font-size:16px;font-weight:500;--ink:#172942;--muted:#6f819a;--navy:#0d1e3b;--cyan:#12b9af;--line:#e6edf5;--bg:#f4f7fb;--white:#fff}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #44ddd3;outline-offset:3px}button{border:0}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.container{width:min(1190px,calc(100% - 40px));margin-inline:auto}.site-shell{min-height:100vh;display:flex;flex-direction:column}.site-shell main{flex:1}.topbar{background:#fff;border-bottom:1px solid #e9eff5;position:sticky;top:0;z-index:20;box-shadow:0 2px 20px #0e20350a}.topbar-content{height:83px;display:flex;align-items:center;justify-content:space-between;gap:22px}.brand{background:none;display:flex;align-items:center;gap:12px;padding:0;text-align:right;color:var(--navy);flex-shrink:0}.logo-icon{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;font:bold 36px/1 Arial,sans-serif;border-radius:16px;background:var(--navy);color:#53e1d8;box-shadow:0 7px 20px #102a4d26}.brand-copy{display:flex;flex-direction:column;gap:3px}.brand-copy b{font-size:21px;font-weight:900}.brand-copy small{font-size:11px;color:#7d8da5;font-weight:700}.toplinks{display:flex;align-items:center;gap:4px;margin-inline:auto}.nav-link{padding:11px 14px;border-radius:11px;background:none;color:#526681;font-weight:700;white-space:nowrap}.nav-link:hover{background:#eff7f7;color:#078b83}.account-actions{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:13px;color:var(--muted)}.pulse-dot{width:9px;height:9px;border-radius:50%;background:#42bfae;animation:pulse 1.5s infinite}@keyframes pulse{50%{opacity:.25}}.account-name{font-weight:800;color:var(--navy);max-width:125px;overflow:hidden;text-overflow:ellipsis}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;padding:12px 21px;font-weight:800;transition:.15s ease;white-space:nowrap}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn-primary{color:#fff;background:var(--cyan);box-shadow:0 7px 20px #10b8ac30}.btn-primary:hover:not(:disabled){background:#07a49d}.btn-dark{color:#fff;background:#112747}.btn-dark:hover{background:#1e3b61}.btn-outline{background:#fff;border:1px solid #dbe4ee;color:#31516c}.btn-ghost{background:#edf5f8;color:#1c5775}.btn-block{width:100%}.btn-sm{padding:8px 12px;font-size:13px}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:36px 0 18px}.eyebrow{color:#0da89f;font-size:13px;font-weight:900;letter-spacing:.5px}.section-head h2{margin:8px 0 0;font-size:26px;color:#152943;font-weight:900}.muted{color:var(--muted)}.section-head .muted{margin:0;font-size:14px}.hero{margin-top:30px;border-radius:26px;background:linear-gradient(112deg,#071b38 5%,#102e4d 65%,#0a4b56 115%);color:#fff;min-height:380px;position:relative;overflow:hidden;display:flex;gap:30px;align-items:center;padding:49px 56px}.hero::before{content:'';position:absolute;width:400px;height:400px;border:1px solid #5fe2d735;border-radius:50%;left:-115px;top:-160px;box-shadow:0 0 0 55px #2cc5ae09,0 0 0 110px #2cc5ae07}.hero::after{content:'';position:absolute;width:230px;height:230px;background:#13b8ab32;border-radius:50%;filter:blur(65px);right:20%;bottom:-160px}.hero-copy{position:relative;z-index:1;flex:1}.hero-chip{display:inline-flex;align-items:center;gap:9px;border:1px solid #63d8d55a;border-radius:50px;padding:8px 16px;color:#9ef2eb;background:#6cf3ea0b;font-weight:800;font-size:12px}.hero-chip .spark{font-size:17px;color:#fbca68}.hero h1{font-size:clamp(35px,4.1vw,56px);line-height:1.3;margin:23px 0 12px;font-weight:900;letter-spacing:-1px}.hero h1 em{font-style:normal;color:#4ce1d4}.hero p{color:#b7cedd;line-height:1.95;font-size:16px;max-width:500px}.hero-actions{display:flex;align-items:center;gap:12px;margin-top:26px}.hero .btn-primary{padding:14px 27px}.hero-note{font-size:12px;color:#c6d9e5}.hero-visual{position:relative;z-index:1;width:295px;min-height:275px;display:grid;place-items:center;flex-shrink:0}.floating-card{width:245px;padding:24px;border:1px solid #ffffff32;border-radius:25px;background:linear-gradient(145deg,#ffffff1f,#ffffff10);backdrop-filter:blur(14px);box-shadow:0 26px 56px #0004;transform:rotate(-6deg)}.floating-top{display:flex;justify-content:space-between;align-items:center}.circle-status{width:38px;height:38px;border-radius:12px;background:#52e4d81b;display:grid;place-items:center;color:#64efe7;font-size:20px}.level-illustration{font-size:80px;line-height:1.4;font-weight:900;text-align:center;color:#73ebdf}.float-line{height:6px;background:#ffffff2a;border-radius:20px;margin:8px 0}.float-line>span{display:block;height:100%;border-radius:20px;background:#38ded1;width:65%}.floating-bottom{display:flex;justify-content:space-between;font-size:12px;color:#d3e8f0;margin-top:14px}.hero-bubble{position:absolute;border-radius:14px;box-shadow:0 12px 26px #0002;background:#fff;color:#13847e;font-weight:900;padding:12px 17px;font-size:13px;top:25px;left:-10px;transform:rotate(8deg)}.hero-bubble.bottom{top:auto;bottom:10px;left:auto;right:0;color:#1d567d;transform:rotate(5deg)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-top:20px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:19px;padding:22px;display:flex;gap:15px;align-items:center}.stat-icon{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;font-size:23px;flex-shrink:0}.stat-icon.blue{background:#e8f0ff;color:#3674bd}.stat-icon.teal{background:#e4faf5;color:#0da89f}.stat-icon.purple{background:#f0eaff;color:#8260bc}.stat-icon.orange{background:#fff1e2;color:#d7882d}.stat-copy strong{font-weight:900;font-size:27px;display:block;color:#172d48}.stat-copy span{font-size:12px;color:#8293a8;font-weight:700}.progress-banner{margin-top:22px;padding:19px 22px;background:#e8f8f5;border:1px solid #c5efea;border-radius:18px;display:flex;align-items:center;gap:22px;color:#136e6b}.progress-banner strong{font-weight:900}.progress-banner p{margin:4px 0 0;color:#5b8381;font-size:12px}.progress-line{height:9px;border-radius:50px;background:#c3e9e2;overflow:hidden;flex:1}.progress-line>span{height:100%;display:block;background:#10b9ae;border-radius:50px;transition:width .5s}.levels-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.level-card{background:#fff;border:1px solid #e3ebf3;border-radius:18px;padding:20px;min-height:206px;transition:.18s;position:relative;display:flex;flex-direction:column}.level-card:not(.locked):hover{transform:translateY(-3px);box-shadow:0 12px 28px #14294a0c;border-color:#98d9d5}.level-card.done{border-color:#a9e7d7;background:linear-gradient(135deg,#ffffff,#f4fffb)}.level-card.locked{opacity:.78;background:#f9fbfd}.level-top{display:flex;align-items:center;justify-content:space-between}.level-number{display:grid;place-items:center;width:45px;height:45px;background:#eef5fb;color:#366086;border-radius:13px;font-size:21px;font-weight:900}.done .level-number{background:#dbf7ea;color:#169469}.locked .level-number{background:#e9eff5;color:#8b9bab}.level-label{font-size:11px;font-weight:800;color:#8191a6;display:flex;align-items:center;gap:5px}.done .level-label{color:#169469}.level-card h3{font-size:19px;margin:16px 0 5px;font-weight:900}.level-subtitle{font-size:12px;color:#8998ab;margin:0 0 16px}.level-bottom{margin-top:auto;border-top:1px solid #edf1f5;padding-top:14px;display:flex;gap:8px;align-items:center;justify-content:space-between}.passers{font-size:11px;color:#7c90a6}.level-card .btn{padding:7px 10px;border-radius:9px;font-size:11px}.info-strip{background:#eaf2fb;border-radius:17px;padding:21px;margin:30px 0 45px;display:flex;gap:15px;align-items:flex-start;color:#3e5d78}.info-strip b{display:block;color:#173d63}.info-strip p{font-size:13px;line-height:1.9;margin:5px 0 0}.info-emoji{font-size:26px}.footer{border-top:1px solid #e6edf4;background:#fff;padding:24px 0}.footer-row{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:#8898ab}.loading-screen{height:50vh;display:grid;place-content:center;justify-items:center;color:#71839a}.spinner{border:4px solid #e1eded;border-top-color:#13b8ae;width:42px;height:42px;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;z-index:200;bottom:24px;right:24px;max-width:min(460px,calc(100% - 48px));border-radius:13px;padding:14px 19px;color:white;background:#112c4e;font-size:14px;box-shadow:0 18px 38px #1124423d}.toast.error{background:#a72e3c}.auth-dialog{border:0;border-radius:24px;padding:30px;width:min(450px,calc(100% - 26px));max-height:calc(100vh - 25px);overflow:auto;box-shadow:0 25px 100px #021b3e55}.auth-dialog::backdrop{background:#071b38ba;backdrop-filter:blur(3px)}.dialog-close{position:absolute;left:20px;top:15px;font-size:27px;color:#7f8b9e;background:none}.dialog-top{text-align:center}.dialog-top .logo-icon{margin:auto}.dialog-top h2{margin:17px 0 7px;font-size:25px;color:#173450}.dialog-top p{margin:0;color:#8090a4;font-size:13px}.auth-tabs{background:#eef3f8;border-radius:12px;padding:5px;display:flex;margin:25px 0}.auth-tabs button{flex:1;padding:9px;border-radius:9px;background:transparent;color:#73869e;font-weight:900}.auth-tabs button.active{background:white;color:#097e7a;box-shadow:0 2px 8px #162c4515}.auth-form{display:grid;gap:16px}.field{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:800;color:#435971}.field input,.field select,.filter-field input,.filter-field select{height:45px;border:1px solid #dbe5ef;background:#fff;border-radius:11px;padding:0 14px;color:#213a55;min-width:0;width:100%}.field input:focus,.filter-field input:focus{border-color:#17bcb2}.privacy-hint{margin:0;color:#8292a5;font-size:11px;line-height:1.7}.form-error{background:#fff1f1;border:1px solid #ffd5d8;color:#ae3343;padding:11px;border-radius:9px;font-size:13px;margin:0}.view-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:30px 0 23px}.back-link{background:none;color:#5f738d;font-weight:800}.page-title{font-size:27px;font-weight:900;color:var(--navy);margin:0}.page-subtitle{margin:8px 0 0;color:var(--muted);font-size:13px}.quiz-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;padding-bottom:50px}.quiz-panel,.quiz-side,.surface-card{background:#fff;border-radius:20px;border:1px solid var(--line);box-shadow:0 5px 20px #16304b05}.quiz-panel{padding:30px}.quiz-topline{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#70849a;font-weight:800;margin-bottom:14px}.quiz-progress{height:9px;background:#e9eff5;border-radius:20px;overflow:hidden;margin-bottom:27px}.quiz-progress>span{display:block;height:100%;background:linear-gradient(90deg,#14b5ac,#38dacc);border-radius:20px;transition:.25s}.quiz-tag{display:inline-flex;background:#e8f8f4;color:#07998e;padding:7px 12px;border-radius:9px;font-size:12px;font-weight:900}.question-text{font-size:clamp(20px,2.2vw,27px);color:#172d47;font-weight:900;line-height:1.8;margin:16px 0 25px}.options{display:grid;gap:12px}.option{display:flex;align-items:center;gap:13px;border:1px solid #dfe8f0;background:#fff;border-radius:14px;text-align:right;padding:15px;color:#344960;font-weight:800;min-height:61px;width:100%}.option:hover{border-color:#6ad4cb;background:#f4fffc}.option.chosen{border:2px solid #0daea4;background:#eafaf6;color:#086f6e;padding:14px}.option-letter{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#eef3f7;color:#7c91a6;font-weight:900;flex-shrink:0}.chosen .option-letter{background:#11b6aa;color:#fff}.quiz-controls{display:flex;justify-content:space-between;gap:12px;margin-top:32px;border-top:1px solid var(--line);padding-top:23px}.quiz-side{padding:23px;height:max-content;position:sticky;top:110px}.quiz-side h3{font-size:17px;font-weight:900;margin:0 0 7px}.quiz-side p{color:#8191a4;font-size:12px;margin:0 0 20px;line-height:1.8}.number-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.num-dot{height:34px;border-radius:10px;background:#f0f4f8;color:#667e95;font-weight:900}.num-dot.active{border:2px solid #0dbbb0;color:#0b9e94}.num-dot.answered{background:#dff6f0;color:#087d74}.num-dot.active.answered{background:#11b8ab;color:#fff}.quiz-legend{display:flex;gap:12px;margin-top:18px;color:#8b9bab;font-size:11px}.legend-dot{display:inline-block;width:8px;height:8px;background:#d9e5ee;border-radius:3px;margin-left:4px}.legend-dot.filled{background:#10b9aa}.review-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:22px 0}.review-item{padding:13px;border-radius:10px;background:#e8f8f4;text-align:center;color:#0c7c73;font-weight:900}.review-item.missing{background:#fff0f0;color:#b44b51}.result-hero{text-align:center;background:linear-gradient(145deg,#113451,#0c584f);color:#fff;border-radius:24px;padding:39px;margin:25px auto;max-width:780px}.result-hero.fail{background:linear-gradient(145deg,#293955,#735426)}.result-emoji{font-size:60px}.result-hero h1{font-size:30px;font-weight:900}.result-score{font-size:58px;font-weight:900;color:#5ee9d7}.result-hero.fail .result-score{color:#ffd28e}.result-actions{display:flex;justify-content:center;gap:11px;flex-wrap:wrap;margin-top:22px}.review-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:19px 22px;margin-bottom:11px}.review-title{display:flex;justify-content:space-between;gap:8px;font-weight:900;color:#233c53}.review-pill{font-size:12px;background:#e4f7ee;color:#12865f;padding:4px 9px;border-radius:8px;white-space:nowrap}.review-pill.bad{background:#ffebed;color:#b84d57}.review-card p{margin:9px 0 0;font-size:13px;line-height:1.8;color:#74869b}.tablescroll{overflow:auto;border:1px solid var(--line);border-radius:16px;background:#fff}.data-table{border-collapse:collapse;width:100%;min-width:630px;text-align:right}.data-table th,.data-table td{padding:15px;border-bottom:1px solid #eef2f5;font-size:13px}.data-table th{background:#f6f9fc;color:#648099;font-size:12px;font-weight:900}.data-table tr:last-child td{border-bottom:0}.data-table td{color:#43576c}.pill{display:inline-flex;align-items:center;gap:5px;border-radius:8px;padding:5px 9px;background:#e9f7f1;color:#0d9064;font-size:11px;font-weight:900}.pill.fail{background:#fff1e9;color:#b87033}.admin-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:24px}.surface-card{padding:21px}.surface-card h3{font-size:16px;margin:0 0 8px;font-weight:900;color:#17364f}.surface-card strong{font-size:30px;font-weight:900;color:#0ca49c}.filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:20px 0}.filter-field{flex:1;min-width:150px}.data-table td .btn{padding:6px 10px}.empty-state{text-align:center;padding:60px 20px;border:1px dashed #d6e5ed;background:#fff;border-radius:18px;color:#7c92a5}.empty-state .empty-icon{font-size:42px;margin-bottom:15px}.section-margin{margin-top:23px}.notice{background:#fff8e7;border:1px solid #fee3a1;color:#9a6c1d;border-radius:12px;padding:15px;font-size:13px;margin:14px 0}.overlay-return{margin-top:17px}.level-stat-chart{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:10px;align-items:end;margin-top:16px;height:137px}.level-bar-wrap{display:flex;flex-direction:column;align-items:center;justify-content:end;gap:8px;height:100%;font-size:10px;color:#7c91a3}.level-bar{width:100%;height:var(--bar-height);background:linear-gradient(#38dbce,#0a9f9e);border-radius:7px 7px 3px 3px;min-height:4px}.student-detail{margin-top:16px}.student-detail h3{margin:0 0 12px;font-size:20px}.student-detail .btn{margin-bottom:12px}
@media(max-width:950px){.hero{padding:38px;min-height:350px}.hero-visual{width:225px}.floating-card{width:210px}.stats{grid-template-columns:repeat(2,1fr)}.levels-grid{grid-template-columns:repeat(3,1fr)}.toplinks{gap:0}.nav-link{padding:9px}.brand-copy small{display:none}.quiz-layout{grid-template-columns:minmax(0,1fr) 220px}.quiz-panel{padding:24px}}
@media(max-width:680px){.container{width:calc(100% - 28px)}.topbar-content{height:71px;gap:8px}.brand-copy b{font-size:16px}.brand .logo-icon{height:39px;width:39px;font-size:30px;border-radius:12px}.toplinks{margin-inline:auto}.nav-link{padding:8px;font-size:11px}.account-name{display:none}.account-actions{gap:5px}.account-actions .btn{padding:8px 10px;font-size:11px}.hero{margin-top:16px;min-height:0;padding:30px 23px;border-radius:19px}.hero-visual{display:none}.hero h1{font-size:35px}.hero p{font-size:13px}.hero-actions{flex-wrap:wrap}.hero-note{width:100%}.stats{grid-template-columns:repeat(2,1fr);gap:10px}.stat-card{padding:13px;gap:10px;border-radius:13px}.stat-icon{width:40px;height:40px;font-size:19px;border-radius:11px}.stat-copy strong{font-size:21px}.stat-copy span{font-size:11px}.section-head{margin:28px 0 15px}.section-head h2{font-size:23px}.section-head .muted{font-size:11px}.levels-grid{grid-template-columns:repeat(2,1fr);gap:10px}.level-card{padding:13px;min-height:184px;border-radius:14px}.level-card h3{font-size:16px}.level-card .btn{font-size:10px}.level-bottom{gap:5px}.passers{font-size:10px}.level-number{width:38px;height:38px}.progress-banner{flex-wrap:wrap;gap:10px}.progress-line{flex-basis:100%}.info-strip{padding:17px}.footer-row{flex-direction:column;align-items:center;text-align:center;gap:4px}.view-head{margin:22px 0 17px;align-items:start}.page-title{font-size:22px}.quiz-layout{grid-template-columns:1fr;gap:13px}.quiz-side{order:-1;position:static;padding:16px}.quiz-side h3,.quiz-side p,.quiz-legend{display:none}.number-grid{grid-template-columns:repeat(10,1fr);gap:4px}.num-dot{height:29px;font-size:11px;border-radius:7px}.quiz-panel{padding:19px}.question-text{font-size:21px}.option{padding:12px;font-size:15px}.quiz-controls .btn{padding:10px 12px}.result-hero{padding:26px 16px}.review-grid{grid-template-columns:repeat(5,1fr)}.admin-overview{grid-template-columns:1fr}.level-stat-chart{gap:5px}.surface-card{padding:14px}.filters{gap:8px}.filter-field{min-width:100%;}.auth-dialog{padding:24px}}
@media(max-width:375px){.toplinks .nav-link:nth-child(2){display:none}.levels-grid{grid-template-columns:1fr 1fr}.passers{display:none}.level-bottom .btn{flex:1}.hero h1{font-size:29px}}
