.platform-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px max(18px,calc((100% - 1180px)/2));background:#0c1c2c;border-bottom:1px solid #263d50;position:sticky;top:0;z-index:10}.platform-brand{font-size:20px;font-weight:900;color:#fff}.platform-nav,.platform-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.platform-nav a,.platform-user{font-size:13px;color:#c6d3df}.platform-root{width:min(1160px,calc(100% - 32px));margin:38px auto 80px}.platform-heading{margin-bottom:26px}.platform-heading h1{font-size:clamp(26px,4vw,38px);margin:5px 0 8px}.eyebrow{color:#20c6b3;font-size:11px;letter-spacing:2px;font-weight:800}.muted{color:#9aabba}.platform-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.platform-card,.platform-panel{display:block;background:#101f30;border:1px solid #263b4e;border-radius:16px;padding:20px;color:#f3f7fb}.platform-card:hover{border-color:#20c6b3;transform:translateY(-2px);color:#fff}.platform-card h3{margin-bottom:8px}.platform-card p,.platform-panel p{color:#aab9c8;font-size:14px;line-height:1.8}.platform-card small{display:block;color:#20c6b3;margin-top:12px}.platform-empty{padding:22px;border:1px dashed #456075;border-radius:14px;color:#b8c7d5;text-align:center}.platform-field{display:grid;gap:7px;margin-bottom:15px;color:#eaf0f5;font-size:13px;font-weight:700}.platform-field input,.platform-field textarea{background:#091725;border:1px solid #31485c;border-radius:10px;color:#fff;padding:12px;width:100%;font:inherit}.platform-field textarea{min-height:110px}.platform-list{display:grid;gap:12px;margin-top:18px}.platform-list-item,.review-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#101f30;border:1px solid #263b4e;border-radius:12px;padding:14px}.lesson-content{max-width:900px}.lesson-text{white-space:pre-wrap;line-height:2;font-size:16px;margin-bottom:22px}.exam-form{max-width:850px}.exam-question{border:1px solid #34495c;border-radius:13px;padding:17px;margin:0 0 17px}.exam-question legend{font-weight:800;padding:0 7px}.exam-option{display:flex;align-items:center;gap:10px;padding:10px}.exam-option input{width:auto}.score-number{font-size:38px;font-weight:900;color:#20c6b3;margin-bottom:10px}.choice-button{display:flex;width:100%;margin:9px 0;justify-content:flex-start}.admin-shell{width:min(1200px,calc(100% - 30px));margin:28px auto 70px}.admin-top{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;margin-bottom:20px}.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;align-items:start}.admin-panel{background:#101f30;border:1px solid #293e52;border-radius:15px;padding:18px;margin-bottom:16px}.admin-panel h2{font-size:18px;margin-bottom:14px}.admin-form label,.question-editor label{display:grid;gap:6px;margin:10px 0;color:#dce6ef;font-size:13px}.admin-form input,.admin-form textarea,.admin-form select,.question-editor input,.question-editor textarea,.question-editor select{width:100%;padding:10px;border:1px solid #344b60;border-radius:9px;background:#091725;color:#fff;font:inherit}.admin-form textarea,.question-editor textarea{min-height:85px}.check-row{display:flex!important;align-items:center;gap:8px}.check-row input{width:auto!important}.admin-status{padding:12px;border-radius:10px;background:#12283a;color:#b9cad8;margin:15px 0}.admin-status[data-state=success]{border:1px solid #247d6d;color:#a9f4dd}.admin-status[data-state=error]{border:1px solid #8d4141;color:#ffc1c1}.question-editor{border:1px solid #3a5268;border-radius:12px;padding:12px;margin:12px 0}.admin-item{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid #30465a;border-radius:10px;padding:10px;margin:8px 0}.btn-danger{background:#522b34;color:#ffd7dd;padding:8px 12px;border-radius:8px}.message{display:none}.message.error,.message.success{display:block}@media(max-width:760px){.platform-header{align-items:flex-start;flex-direction:column;position:static}.platform-nav{gap:10px}.platform-actions{width:100%;justify-content:space-between}.platform-root{margin-top:24px}}
/* Gamification */
.xp-hero{background:linear-gradient(135deg,#102c43,#123e4b);border:1px solid #2d6470;border-radius:20px;padding:24px;margin-bottom:20px}
.xp-hero-top{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.xp-total{font-size:clamp(34px,6vw,52px);font-weight:900;color:#65e0cf;line-height:1.2}
.xp-level{font-size:18px;font-weight:800;color:#fff;margin-top:8px}
.xp-progress{height:12px;border-radius:99px;background:#071725;overflow:hidden;margin:18px 0 8px}
.xp-progress>span{display:block;height:100%;background:#20c6b3;border-radius:99px;transition:width .25s}
.xp-badge-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.xp-badge{background:#101f30;border:1px solid #263b4e;border-radius:14px;padding:15px;display:flex;gap:12px;align-items:flex-start}
.xp-badge.is-locked{opacity:.48;filter:saturate(.35)}
.xp-badge-icon{font-size:27px}
.xp-history-item{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.xp-positive{color:#65e0cf;font-weight:900}
.xp-muted{color:#9aabba;font-size:12px}

.xp-badge>div{white-space:pre-line}

/* Premium student profile */
.student-profile-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:1fr auto;gap:22px;align-items:center;padding:clamp(22px,4vw,38px);margin:0 0 18px;border:1px solid #28576a;border-radius:24px;background:radial-gradient(circle at 12% 8%,rgba(32,198,179,.19),transparent 32%),linear-gradient(125deg,#0a1b2b 0%,#12334a 58%,#12464b 100%);box-shadow:0 18px 48px rgba(0,0,0,.18)}
.student-profile-identity{display:flex;align-items:center;gap:18px;min-width:0}
.student-profile-avatar{width:78px;height:78px;flex:0 0 78px;display:grid;place-items:center;border-radius:23px;border:1px solid rgba(255,255,255,.22);background:linear-gradient(145deg,#25cbb7,#167a91);color:#fff;font-size:36px;font-weight:900;box-shadow:0 10px 28px rgba(0,0,0,.2)}
.student-profile-kicker{font-size:10px!important;letter-spacing:2px;color:#65e0cf!important;font-weight:900}
.student-profile-identity h2{font-size:clamp(21px,3vw,30px);color:#fff;margin:5px 0}
.student-profile-subtitle{margin:0;color:#c3d4df!important}
.student-profile-level{display:inline-flex;margin-top:10px;padding:6px 12px;border-radius:99px;background:rgba(32,198,179,.15);border:1px solid rgba(83,226,207,.35);color:#83f1dc;font-size:12px;font-weight:800}
.student-profile-xp{display:flex;align-items:baseline;gap:7px;justify-content:flex-end;color:#70e6d4;white-space:nowrap}
.student-profile-xp-label{display:block;align-self:center;color:#c1d2df;font-size:12px;margin-inline-end:8px}
.student-profile-xp strong{font-size:clamp(38px,6vw,58px);line-height:1;font-weight:950}
.student-profile-xp>span:last-child{font-weight:900}
.student-profile-progress-wrap{grid-column:1/-1;margin-top:6px}
.student-profile-progress-meta{display:flex;justify-content:space-between;gap:12px;color:#d6e7ed;font-size:12px;margin-bottom:9px}
.student-profile-progress{height:12px;border-radius:99px;background:rgba(2,14,25,.65);overflow:hidden;border:1px solid rgba(255,255,255,.1)}
.student-profile-progress span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#21bcae,#8bf0d9);box-shadow:0 0 18px rgba(32,198,179,.45)}
.student-profile-progress-wrap small{display:block;color:#a8c6d1;margin-top:8px}
.student-profile-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.student-profile-stat{min-width:0;display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:12px;padding:16px;background:#101f30;border:1px solid #263b4e;border-radius:16px}
.student-profile-stat-icon{grid-row:span 2;font-size:25px}
.student-profile-stat strong{font-size:24px;color:#f4fbff;line-height:1.2}
.student-profile-stat small{font-size:11px;color:#9fb2c2}
.student-profile-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}
.student-profile-panel{min-width:0}
.student-profile-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px;font-weight:900;color:#f4f8fb}
.student-profile-section-title h3{font-size:18px;margin:0}
.student-profile-section-title span{font-size:10px;letter-spacing:1.5px;color:#55d7c5}
.student-profile-note{font-size:12px!important;color:#93a9b9!important;margin:8px 0 14px}
.student-profile-badges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.student-profile-badge{display:grid;gap:5px;align-content:start;min-height:112px;padding:13px;border-radius:13px;background:linear-gradient(145deg,#17384a,#142536);border:1px solid #2c5864}
.student-profile-badge>span{font-size:23px}
.student-profile-badge strong{font-size:13px;color:#eaf8f7}
.student-profile-badge small{font-size:11px;line-height:1.6;color:#9db4c3}
.student-profile-badge.is-locked{opacity:.42;filter:grayscale(.8);border-color:#314153}
.student-profile-record{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;align-items:center;padding:12px 0;border-bottom:1px solid #263b4e;color:#dce8ef;font-size:13px}
.student-profile-record:last-child{border-bottom:0}
.student-profile-record small{grid-column:1/-1;color:#8fa5b5;font-size:11px}
.student-profile-record strong{color:#63dfca}
.student-profile-positive{color:#63dfca!important}
.student-profile-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 18px;border:1px solid #263b4e;border-radius:14px;background:#0d1b2a;color:#aabcca;font-size:12px}
.student-profile-footer code{direction:ltr;overflow-wrap:anywhere;color:#d6e8ef;font-size:11px}
.student-profile-footer .btn{margin-inline-start:auto}
@media(max-width:850px){.student-profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.student-profile-hero{grid-template-columns:1fr}.student-profile-xp{justify-content:flex-start}.student-profile-columns{grid-template-columns:1fr}.student-profile-identity{align-items:flex-start}.student-profile-avatar{width:62px;height:62px;flex-basis:62px;border-radius:18px;font-size:29px}.student-profile-badges{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){.student-profile-stat{padding:12px;column-gap:8px}.student-profile-stat strong{font-size:20px}.student-profile-badges{grid-template-columns:1fr}}

/* ===== BAWABET 2.0 / Bright, playful nursing EdTech system ===== */
body{background:radial-gradient(circle at 8% 0%,#eaf3ff 0,transparent 27%),radial-gradient(circle at 92% 8%,#e5faf5 0,transparent 23%),#f5f8ff;color:#1d2e49}
.platform-header{background:rgba(255,255,255,.92);border-bottom:1px solid #e4ebf5;box-shadow:0 5px 24px rgba(36,72,120,.06);backdrop-filter:blur(16px);padding:12px max(18px,calc((100% - 1200px)/2))}
.platform-brand{display:flex;align-items:center;gap:10px;color:#1e3a61;font-family:var(--font-heading);font-size:19px;font-weight:900}
.platform-brand:before{content:"🩺";display:grid;place-items:center;width:40px;height:40px;border-radius:14px;background:#e9f4ff;font-size:21px}
.platform-nav{gap:6px}.platform-nav a{display:inline-flex;align-items:center;gap:6px;padding:9px 11px;border-radius:12px;color:#60718b;font-size:13px;font-weight:800;transition:all .2s}
.platform-nav a:hover{background:#edf5ff;color:#2878e8;transform:translateY(-1px)}
.platform-nav a:nth-child(1):before{content:"🏠"}.platform-nav a:nth-child(2):before{content:"👤"}.platform-nav a:nth-child(3):before{content:"🏆"}.platform-nav a:nth-child(4):before{content:"📚"}.platform-nav a:nth-child(5):before{content:"📖"}.platform-nav a:nth-child(6):before{content:"📝"}.platform-nav a:nth-child(7):before{content:"💬"}
.platform-actions{gap:10px}.platform-user{color:#62738c;background:#f1f6fd;border:1px solid #e4edf7;padding:9px 13px;border-radius:999px;font-weight:800}
.platform-root{width:min(1200px,calc(100% - 34px));margin:34px auto 80px}
.platform-heading{position:relative;margin-bottom:24px;padding:8px 2px 8px 100px;min-height:86px}
.platform-heading h1{font-size:clamp(27px,4vw,39px);font-weight:900;line-height:1.35;color:#1e3557;margin:4px 0 5px}
.platform-heading .eyebrow{color:#2878e8;font-size:11px;letter-spacing:1.5px;font-weight:900}
.platform-heading .muted{font-size:15px;color:#73839a}
.platform-heading:after{content:"✨";position:absolute;left:18px;top:0;display:grid;place-items:center;width:76px;height:76px;border-radius:25px;background:linear-gradient(145deg,#e7f2ff,#e9faf6);font-size:34px;box-shadow:inset 0 0 0 1px #e0eafa}
.platform-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:18px}
.platform-card,.platform-panel{position:relative;display:block;background:#fff;border:1px solid #e4ebf5;border-radius:22px;padding:22px;color:#243751;box-shadow:0 8px 24px rgba(43,78,125,.055);transition:transform .22s,box-shadow .22s,border-color .22s;overflow:hidden}
.platform-card{min-height:176px;padding-top:25px}
.platform-card:before{content:"";position:absolute;inset:0 0 auto;height:5px;background:var(--card-accent,#2878e8)}
.platform-card:after{content:attr(data-icon);position:absolute;left:17px;top:17px;display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:var(--card-soft,#edf5ff);font-size:25px}
.platform-card:nth-child(6n+1){--card-accent:#2878e8;--card-soft:#edf5ff}.platform-card:nth-child(6n+2){--card-accent:#18b7aa;--card-soft:#e9faf7}.platform-card:nth-child(6n+3){--card-accent:#8a63df;--card-soft:#f3efff}.platform-card:nth-child(6n+4){--card-accent:#f2a34a;--card-soft:#fff4e7}.platform-card:nth-child(6n+5){--card-accent:#e96b9b;--card-soft:#fff0f5}.platform-card:nth-child(6n){--card-accent:#39b88a;--card-soft:#eaf9f1}
.platform-card:nth-child(6n+1):after{content:"📚"}.platform-card:nth-child(6n+2):after{content:"🧠"}.platform-card:nth-child(6n+3):after{content:"🎯"}.platform-card:nth-child(6n+4):after{content:"⚡"}.platform-card:nth-child(6n+5):after{content:"🩺"}.platform-card:nth-child(6n):after{content:"🏆"}
.platform-card h3{font-family:var(--font-heading);font-size:18px;font-weight:900;color:#263b59;margin:46px 0 7px}
.platform-card p,.platform-panel p{color:#73839a;font-size:14px;line-height:1.9}
.platform-card small{display:inline-flex;align-items:center;gap:5px;color:var(--card-accent,#2878e8);font-weight:900;margin-top:13px}
.platform-card:hover{border-color:var(--card-accent,#2878e8);transform:translateY(-5px);box-shadow:0 16px 34px rgba(43,78,125,.12);color:#243751}
.platform-panel h2,.platform-panel h3{font-family:var(--font-heading);color:#263b59;font-weight:900;margin-bottom:12px}
.platform-empty{padding:28px;border:2px dashed #cbd9eb;border-radius:20px;background:rgba(255,255,255,.72);color:#73839a;text-align:center}
.platform-field{display:grid;gap:7px;margin-bottom:15px;color:#40536e;font-size:14px;font-weight:800}
.platform-field input,.platform-field textarea{background:#fff;border:1px solid #dfe8f3;border-radius:13px;color:#263b59;padding:13px;width:100%;font:inherit}
.platform-field textarea{min-height:115px}
.platform-list{display:grid;gap:12px;margin-top:18px}
.platform-list-item,.review-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#fff;border:1px solid #e4ebf5;border-radius:16px;padding:15px;color:#344963;box-shadow:0 5px 16px rgba(43,78,125,.04)}
.exam-form{max-width:900px;margin-inline:auto}.exam-question{border:1px solid #e1e9f4;border-radius:18px;padding:20px;margin:0 0 17px;background:#fff;box-shadow:0 6px 18px rgba(43,78,125,.04)}.exam-question legend{font-weight:900;color:#263b59;padding:0 8px}.exam-option{display:flex;align-items:center;gap:11px;padding:12px 14px;margin:7px 0;border:1px solid #e7edf5;border-radius:13px;background:#fbfdff;cursor:pointer;transition:all .18s}.exam-option:hover{border-color:#8bb8f2;background:#f1f7ff}.exam-option input{width:auto;accent-color:#2878e8}
.score-number{font-size:42px;font-weight:950;color:#18a98e;margin-bottom:10px}
.btn{border-radius:13px;font-weight:900;transition:transform .2s,box-shadow .2s,background .2s}.btn:hover{transform:translateY(-2px)}
.btn-primary{background:linear-gradient(135deg,#347fe9,#2569d6);color:#fff;box-shadow:0 8px 18px rgba(40,120,232,.18)}.btn-primary:hover{background:linear-gradient(135deg,#246fdc,#195fc8);color:#fff}
.btn-secondary{background:#f0f5fc;border:1px solid #dfe8f3;color:#405673}.btn-secondary:hover{background:#e6f0fc;border-color:#b9d1f0;color:#2368c7}
.admin-shell{width:min(1240px,calc(100% - 32px));margin:28px auto 70px}.admin-top{padding:22px 25px;border-radius:24px;background:linear-gradient(115deg,#e9f3ff,#e7faf5);border:1px solid #dceafa;margin-bottom:20px}.admin-top h1{color:#1e3557}.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(285px,1fr));gap:18px;align-items:start}.admin-panel{background:#fff;border:1px solid #e3ebf5;border-radius:20px;padding:20px;margin-bottom:17px;box-shadow:0 8px 22px rgba(43,78,125,.055)}.admin-panel h2{font-size:18px;color:#29415f;margin-bottom:15px}.admin-form label,.question-editor label{display:grid;gap:7px;margin:11px 0;color:#425672;font-size:13px;font-weight:800}.admin-form input,.admin-form textarea,.admin-form select,.question-editor input,.question-editor textarea,.question-editor select{width:100%;padding:11px 13px;border:1px solid #dfe8f3;border-radius:12px;background:#fbfdff;color:#263b59;font:inherit}.admin-form textarea,.question-editor textarea{min-height:90px}.admin-status{padding:13px 16px;border-radius:14px;background:#eef5ff;color:#45617f;margin:15px 0;border:1px solid #dbe9fb}.admin-status[data-state=success]{border-color:#b8ead9;color:#137d60;background:#effbf6}.admin-status[data-state=error]{border-color:#f4c5c9;color:#b83e4b;background:#fff4f5}.question-editor{border:1px solid #e2eaf4;border-radius:15px;padding:14px;margin:12px 0;background:#fbfdff}.admin-item{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid #e3ebf5;border-radius:13px;padding:12px;margin:8px 0;background:#fbfdff}.btn-danger{background:#fff0f1;color:#c94755;padding:9px 13px;border-radius:10px}
.xp-hero{background:linear-gradient(120deg,#e8f3ff,#e5faf4 55%,#fff3e6);border:1px solid #dceafa;border-radius:25px;padding:26px;margin-bottom:20px;color:#263b59;box-shadow:0 12px 30px rgba(43,78,125,.08)}
.xp-total{font-size:clamp(36px,6vw,54px);font-weight:950;color:#2878e8;line-height:1.2}.xp-level{font-size:18px;font-weight:900;color:#274565;margin-top:8px}.xp-progress{height:13px;border-radius:99px;background:#dbe7f5;overflow:hidden;margin:18px 0 8px}.xp-progress>span{display:block;height:100%;background:linear-gradient(90deg,#2878e8,#18b7aa);border-radius:99px;transition:width .25s}.xp-badge-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.xp-badge{background:#fff;border:1px solid #e2eaf4;border-radius:16px;padding:15px;display:flex;gap:12px;align-items:flex-start;color:#304660;box-shadow:0 5px 16px rgba(43,78,125,.04)}.xp-badge.is-locked{opacity:.52;filter:saturate(.45)}.xp-badge-icon{font-size:28px}.xp-history-item{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.xp-positive{color:#129b79;font-weight:950}.xp-muted{color:#8090a5;font-size:12px}
.student-profile-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:1fr auto;gap:22px;align-items:center;padding:clamp(22px,4vw,38px);margin:0 0 18px;border:1px solid #d8e8fa;border-radius:26px;background:radial-gradient(circle at 12% 8%,rgba(40,120,232,.13),transparent 32%),linear-gradient(125deg,#edf5ff 0%,#e9f9f5 58%,#fff3e7 100%);box-shadow:0 16px 40px rgba(43,78,125,.09)}
.student-profile-avatar{width:82px;height:82px;flex:0 0 82px;display:grid;place-items:center;border-radius:25px;border:3px solid #fff;background:linear-gradient(145deg,#3b8af0,#17b8a8);color:#fff;font-size:36px;font-weight:950;box-shadow:0 10px 24px rgba(40,120,232,.2)}
.student-profile-kicker{font-size:10px!important;letter-spacing:1.5px;color:#2878e8!important;font-weight:950}.student-profile-identity h2{font-size:clamp(21px,3vw,30px);color:#213c60;margin:5px 0}.student-profile-subtitle{margin:0;color:#70829a!important}.student-profile-level{display:inline-flex;margin-top:10px;padding:7px 13px;border-radius:99px;background:#fff;border:1px solid #dce9f7;color:#2878e8;font-size:12px;font-weight:900}.student-profile-xp{display:flex;align-items:baseline;gap:7px;justify-content:flex-end;color:#2878e8;white-space:nowrap}.student-profile-xp-label{display:block;align-self:center;color:#6c7e95;font-size:12px;margin-inline-end:8px}.student-profile-xp strong{font-size:clamp(38px,6vw,58px);line-height:1;font-weight:950}.student-profile-progress-wrap{grid-column:1/-1;margin-top:6px}
.student-profile-progress{height:12px;border-radius:99px;background:#dce8f5;overflow:hidden}.student-profile-progress span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#2878e8,#18b7aa)}
.student-profile-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:13px;margin:18px 0}.student-profile-stat{padding:18px;border:1px solid #e2eaf4;border-radius:18px;background:#fff;box-shadow:0 6px 18px rgba(43,78,125,.045)}.student-profile-stat-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#edf5ff;font-size:22px;margin-bottom:10px}.student-profile-stat strong{display:block;font-size:27px;color:#243e60;font-weight:950}.student-profile-stat small{color:#75859a;font-weight:800}
.student-profile-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.student-profile-panel{min-width:0}.student-profile-section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.student-profile-section-title h3{margin:0}.student-profile-section-title span{font-size:10px;font-weight:900;letter-spacing:1px;color:#2878e8;background:#edf5ff;border-radius:99px;padding:6px 10px}
.student-profile-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px;padding:16px 18px;border-radius:16px;background:#edf5ff;color:#526985}.student-profile-footer code{font-family:var(--font-latin);font-size:12px;color:#2878e8}
.platform-feedback{padding:16px;border-radius:15px;background:#eaf9f3;color:#137d60;font-weight:800}
body[data-page="exams"] .platform-heading:after,body:has(.exam-form) .platform-heading:after{content:"📝";background:#fff1e6}
body[data-page="library"] .platform-heading:after{content:"📚";background:#f2edff}
body[data-page="community"] .platform-heading:after{content:"💬";background:#fff0f5}
body[data-page="simulation"] .platform-heading:after{content:"🩺";background:#e7faf5}
body[data-page="gamification"] .platform-heading:after{content:"🏆";background:#fff4df}
body[data-page="study-planner"] .platform-heading:after{content:"🗓️";background:#edf5ff}
body[data-page="daily-challenge"] .platform-heading:after{content:"⚡";background:#fff4e7}
@media(max-width:760px){.platform-header{align-items:stretch;flex-direction:column;position:relative;padding:12px 16px}.platform-nav{gap:5px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:5px}.platform-nav a{white-space:nowrap;padding:8px 10px}.platform-actions{width:100%;justify-content:space-between}.platform-root{margin-top:22px}.platform-heading{padding-left:78px}.platform-heading:after{left:0;width:62px;height:62px;border-radius:20px}.student-profile-hero{grid-template-columns:1fr}.student-profile-xp{justify-content:flex-start}.student-profile-columns{grid-template-columns:1fr}}
@media(max-width:480px){.platform-root{width:calc(100% - 24px)}.platform-grid{grid-template-columns:1fr}.platform-card{min-height:150px}.platform-card h3{font-size:17px}.platform-heading h1{font-size:27px}.student-profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.student-profile-stat{padding:14px}.student-profile-stat strong{font-size:23px}}
@media(prefers-reduced-motion:reduce){.platform-card,.btn,.platform-nav a{transition:none!important}}

/* Section personalities — page-level accent systems */
.platform-root[data-page="dashboard"] .platform-heading:after{content:"🚀";background:linear-gradient(145deg,#e7f1ff,#dff8f3)}
.platform-root[data-page="subjects"] .platform-heading:after,.platform-root[data-page="subject"] .platform-heading:after{content:"📚";background:#f0eaff}
.platform-root[data-page="lesson"] .platform-heading:after{content:"💡";background:#fff4df}
.platform-root[data-page="library"] .platform-heading:after{content:"📖";background:#f2edff}
.platform-root[data-page="exams"] .platform-heading:after,.platform-root[data-page="exam"] .platform-heading:after,.platform-root[data-page="exam-result"] .platform-heading:after{content:"📝";background:#fff0e5}
.platform-root[data-page="community"] .platform-heading:after,.platform-root[data-page="group"] .platform-heading:after{content:"💬";background:#fff0f5}
.platform-root[data-page="simulation"] .platform-heading:after{content:"🩺";background:#e7faf5}
.platform-root[data-page="gamification"] .platform-heading:after{content:"🏆";background:#fff4df}
.platform-root[data-page="study-planner"] .platform-heading:after{content:"🗓️";background:#edf5ff}
.platform-root[data-page="daily-challenge"] .platform-heading:after{content:"⚡";background:#fff4e7}
.platform-root[data-page="profile"] .platform-heading:after{content:"👤";background:#f2edff}
.platform-root[data-page="bookmarks"] .platform-heading:after{content:"🔖";background:#fff0f5}
.platform-root[data-page="notifications"] .platform-heading:after{content:"🔔";background:#fff4e7}
.platform-root[data-page="messages"] .platform-heading:after{content:"✉️";background:#eaf9f1}
.platform-root[data-page="leaderboard"] .platform-heading:after{content:"🥇";background:#fff4df}
.platform-root[data-page="dashboard"] .platform-card:nth-child(3n+1){--card-accent:#2878e8;--card-soft:#edf5ff}
.platform-root[data-page="dashboard"] .platform-card:nth-child(3n+2){--card-accent:#18b7aa;--card-soft:#e9faf7}
.platform-root[data-page="dashboard"] .platform-card:nth-child(3n){--card-accent:#8a63df;--card-soft:#f3efff}
.lesson-text{color:#3c506d;line-height:2.15;font-size:17px}
.exam-form .btn{min-height:50px;padding-inline:25px}
.admin-panel:nth-child(6n+1){border-top:4px solid #2878e8}.admin-panel:nth-child(6n+2){border-top:4px solid #18b7aa}.admin-panel:nth-child(6n+3){border-top:4px solid #8a63df}.admin-panel:nth-child(6n+4){border-top:4px solid #f2a34a}.admin-panel:nth-child(6n+5){border-top:4px solid #e96b9b}.admin-panel:nth-child(6n){border-top:4px solid #39b88a}


/* Academic learning experience */
.student-home-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:clamp(22px,4vw,38px);margin-bottom:18px;border:1px solid #d7e8f2;border-radius:26px;background:radial-gradient(circle at 90% 5%,rgba(32,168,158,.16),transparent 30%),linear-gradient(115deg,#102b46,#174c61);color:#fff;box-shadow:0 16px 36px rgba(16,43,70,.12)}
.student-home-copy{max-width:720px}.student-home-kicker{color:#8be5d9!important;font-size:10px!important;font-weight:900;letter-spacing:1.6px}.student-home-copy h2{color:#fff;font-size:clamp(22px,3vw,32px);margin:8px 0}.student-home-copy p:last-child{color:#d3e5ed;font-size:14px;line-height:1.9;margin:0}
.student-home-hero .btn{white-space:nowrap}.student-home-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.student-home-stat{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:3px 12px;padding:16px;border:1px solid #e3ebf4;border-radius:18px;background:#fff;box-shadow:0 7px 20px rgba(36,72,120,.045)}
.student-home-stat-icon{grid-row:span 2;display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#edf6fa;color:#176c7a;font-size:20px}.student-home-stat strong{font-size:23px;color:#173b56;line-height:1.2}.student-home-stat small{font-size:11px;color:#78899b;font-weight:800}
.student-home-columns{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr);gap:16px;margin:18px 0}.student-home-panel{min-width:0}.student-home-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;color:#173b56;font-weight:900}.student-home-section-head h2{font-size:18px;margin:0}.student-home-section-head a{font-size:12px;color:#177f8a;font-weight:900}
.student-home-course{display:block;padding:14px 0;border-top:1px solid #edf1f6;color:#304963}.student-home-course-top{display:flex;justify-content:space-between;gap:10px}.student-home-course-top strong{font-size:14px}.student-home-course-top span{color:#168b80;font-size:12px;font-weight:900}.student-home-course small{display:block;color:#8795a6;font-size:11px;margin:5px 0 9px}
.student-home-progress,.course-card-progress,.academic-progress-track{height:8px;border-radius:99px;overflow:hidden;background:#eaf0f5}.student-home-progress span,.course-card-progress span,.academic-progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1d7894,#20b49f)}
.student-home-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.student-home-shortcut{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid #e7edf4;border-radius:13px;background:#fbfdff;color:#38536c;font-size:12px}.student-home-shortcut span{font-size:19px}.student-home-hint{margin-top:14px;padding:11px 13px;border-radius:12px;background:#eff8f7;color:#33766f;font-size:12px}
.student-home-recent{margin-top:24px}.student-home-recent .platform-grid{margin-top:12px}
.academic-breadcrumb{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:0 0 17px;color:#8190a1;font-size:12px}.academic-breadcrumb a{color:#167f89;font-weight:800}
.academic-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:17px;margin-bottom:20px;border:1px solid #e0eaf1;border-radius:18px;background:#fff}.academic-overview-stat{font-size:13px;font-weight:900;color:#31516b}.academic-overview .academic-progress-track{grid-column:1/-1}
.academic-content-section{margin-top:24px}.academic-chapter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:14px}.academic-chapter-card{min-height:160px}.academic-chapter-card:after{content:attr(data-icon)!important;font-size:15px!important;font-weight:950;color:#197d88}
.academic-lesson-list{margin-top:22px;padding:20px;border:1px solid #e3ebf4;border-radius:20px;background:#fff}.academic-lesson-row{display:flex;align-items:center;gap:14px;padding:15px 4px;border-bottom:1px solid #edf1f5;color:#2d4962}.academic-lesson-row:last-child{border-bottom:0}.academic-lesson-index{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#edf6f8;color:#1c7884;font-weight:900;font-size:12px}.academic-lesson-main{flex:1;font-weight:900}.academic-lesson-status{font-size:11px;color:#8997a6}.academic-lesson-status.is-done{color:#128b71;font-weight:900}.academic-lesson-arrow{color:#188a91;font-size:19px}
.course-card-progress{margin-top:14px}.library-tools{display:flex;gap:10px;margin:0 0 18px}.library-tools input,.library-tools select{min-width:0;padding:12px 14px;border:1px solid #dfe8f1;border-radius:13px;background:#fff;color:#304963;font:inherit}.library-tools input{flex:1}.library-resource-card{min-height:150px}
.lesson-reader{max-width:940px;margin-inline:auto;padding:clamp(18px,4vw,38px);border:1px solid #e2eaf2;border-radius:24px;background:#fff;box-shadow:0 12px 34px rgba(35,70,105,.06)}
.lesson-reader-meta{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:22px}.lesson-reader-meta span,.lesson-term{padding:7px 11px;border-radius:99px;background:#eef6f8;color:#31727b;font-size:11px;font-weight:900}
.lesson-content-blocks{color:#354d63}.lesson-block-heading{margin:30px 0 12px;color:#163e59;font-size:clamp(20px,3vw,27px);line-height:1.5}.lesson-block-heading:first-child{margin-top:0}.lesson-block-paragraph{white-space:pre-wrap;color:#455d72;font-size:16px;line-height:2.15;margin:15px 0}
.lesson-figure{margin:24px 0;text-align:center}.lesson-figure img{display:block;max-width:100%;max-height:620px;object-fit:contain;margin:auto;border-radius:17px;border:1px solid #e5edf3;background:#f8fbfd}.lesson-figure figcaption{margin-top:9px;color:#7b8b9a;font-size:12px}
.lesson-callout{margin:20px 0;padding:17px 19px;border-radius:15px;border:1px solid #cce9e5;background:#f0faf8;color:#245e5b}.lesson-callout strong{display:block;margin-bottom:7px;color:#146f6a}.lesson-callout p{margin:0;color:#3d6866}.lesson-callout.is-warning{border-color:#f1dfb9;background:#fff9ed;color:#76561f}.lesson-callout.is-warning strong{color:#98691a}
.lesson-block-list{display:grid;gap:10px;padding-inline-start:23px;margin:18px 0;color:#455d72;line-height:1.9}.lesson-table-wrap{max-width:100%;overflow-x:auto;margin:22px 0;border:1px solid #e2eaf2;border-radius:14px}.lesson-content-table{width:100%;border-collapse:collapse;min-width:420px}.lesson-content-table th{background:#edf5f7;color:#1e5967;font-weight:900}.lesson-content-table th,.lesson-content-table td{padding:13px 15px;text-align:start;border-bottom:1px solid #e7edf2}.lesson-content-table tr:last-child td{border-bottom:0}.lesson-divider{border:0;border-top:1px solid #e6edf2;margin:25px 0}
.lesson-objectives,.lesson-key-terms{margin:22px 0;padding:18px;border-radius:16px;background:#f6fafc;border:1px solid #e5eef3}.lesson-objectives h2,.lesson-key-terms h2{font-size:16px;color:#1e536a;margin:0 0 10px}.lesson-objectives ul{padding-inline-start:22px;line-height:1.9;color:#52697b}.lesson-term-list{display:flex;flex-wrap:wrap;gap:8px}.lesson-reader-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px;padding-top:20px;border-top:1px solid #edf1f5}.lesson-reader-actions .is-complete{background:#168c79;color:#fff}.lesson-reader-footer{margin-top:18px}
.lesson-studio-intro{padding:13px 15px;border-radius:13px;background:#eef7f8;border:1px solid #dceced;color:#225a68}.lesson-studio-intro p{margin:5px 0 0;color:#68818d;font-size:12px}.lesson-studio-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.lesson-studio-toolbar label{display:grid;gap:6px;flex:1;min-width:180px;color:#425672;font-size:13px;font-weight:800}.lesson-studio-toolbar select{padding:11px;border:1px solid #dfe8f3;border-radius:11px;background:#fff;font:inherit}.lesson-block-editor-list{display:grid;gap:11px;margin:14px 0}.lesson-block-editor{min-width:0;padding:14px;border:1px solid #dce7ef;border-radius:14px;background:#fbfdff}.lesson-block-editor legend{padding:0 7px;color:#176d7b;font-weight:900}.lesson-block-editor label{display:grid;gap:6px;margin:9px 0;color:#52667b;font-size:12px;font-weight:800}.lesson-block-editor input,.lesson-block-editor textarea{width:100%;padding:10px 12px;border:1px solid #dce6ef;border-radius:10px;background:#fff;color:#263b59;font:inherit}.lesson-block-editor textarea{min-height:75px}
@media(max-width:760px){.student-home-hero{align-items:flex-start;flex-direction:column}.student-home-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.student-home-columns{grid-template-columns:1fr}.academic-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.library-tools{flex-direction:column}.lesson-reader{padding:18px}.lesson-block-paragraph{font-size:15px}.academic-lesson-row{gap:9px}.academic-lesson-status{display:none}}
@media(max-width:420px){.student-home-stats{gap:8px}.student-home-stat{padding:12px;gap:3px 8px}.student-home-stat-icon{width:34px;height:34px}.student-home-stat strong{font-size:19px}.student-home-shortcuts{grid-template-columns:1fr}.academic-overview{padding:12px}}


/* Admin workspace navigation */
.admin-section-nav{position:sticky;top:10px;z-index:8;display:flex;gap:7px;overflow-x:auto;padding:10px;margin:0 0 18px;border:1px solid #e1eaf2;border-radius:15px;background:rgba(255,255,255,.94);box-shadow:0 8px 22px rgba(36,72,120,.07);backdrop-filter:blur(12px)}
.admin-section-nav a{flex:0 0 auto;padding:9px 12px;border-radius:10px;background:#f1f7fa;color:#31556d;font-size:12px;font-weight:900}.admin-section-nav a:hover{background:#e1f3f1;color:#147c78}
.lesson-studio-edit-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}
.revision-search{display:block;width:100%;margin:0 0 16px;padding:13px 15px;border:1px solid #dfe8f1;border-radius:14px;background:#fff;color:#304963;font:inherit}
.revision-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px}
.revision-card{padding:20px;border:1px solid #e2eaf2;border-radius:18px;background:linear-gradient(145deg,#fff,#f8fbfd);box-shadow:0 8px 22px rgba(35,70,105,.045)}
.revision-card-label{display:inline-flex;padding:6px 10px;border-radius:99px;background:#edf7f6;color:#1d7b76;font-size:10px;font-weight:900}.revision-card h2{margin:12px 0 8px;color:#1d405a;font-size:17px}.revision-card p{white-space:pre-wrap;color:#50677b;line-height:1.95;font-size:14px}
@media(max-width:600px){.admin-section-nav{top:4px}.student-home-hero .btn{width:100%;text-align:center}}


/* Student-facing notice: exam results require administration review */
.exam-review-notice{margin:0 0 1.25rem;padding:1rem 1.15rem;border:1px solid #d8e6f2;border-right:4px solid #159b9a;border-radius:14px;background:#f1f7fb;color:#24435c;}
.exam-review-notice strong{display:block;margin-bottom:.35rem;font-weight:800;}
.exam-review-notice p{margin:0;line-height:1.8;color:#526b80;}

/* Paired visual explanation blocks: each concept stays beside its own illustration. */
.lesson-illustrated-block{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(220px,.85fr);align-items:center;gap:22px;margin:22px 0;padding:18px;border:1px solid #dce8f0;border-radius:20px;background:linear-gradient(135deg,#fff 0%,#f4f9fc 100%);box-shadow:0 8px 24px rgba(20,55,82,.05)}
.lesson-illustrated-copy{min-width:0}.lesson-illustrated-title{margin:0 0 8px;color:#123c5b;font-size:clamp(17px,2.2vw,22px);line-height:1.5}.lesson-illustrated-copy .lesson-block-paragraph{margin:8px 0}.lesson-illustrated-figure{margin:0;min-width:0;text-align:center}.lesson-illustrated-figure img{display:block;width:100%;max-height:360px;object-fit:contain;margin:auto;border-radius:14px;background:#fff;border:1px solid #e1eaf1}.lesson-illustrated-figure figcaption{margin-top:7px;color:#71869a;font-size:12px;line-height:1.6}
@media(max-width:680px){.lesson-illustrated-block{grid-template-columns:1fr;gap:12px;padding:14px}.lesson-illustrated-figure{max-width:100%}.lesson-illustrated-figure img{max-height:300px}}

.lesson-inline-visual{width:100%;max-width:100%;overflow:hidden;border-radius:14px;background:#fff;border:1px solid #e1eaf1}.lesson-inline-svg{display:block;width:100%;height:auto;max-height:360px}.lesson-visual-error{min-height:160px;display:grid;place-items:center;color:#9b3545;font-size:14px;padding:18px}

/* Display one panel from the tall SVG atlas using native image loading and a clipped viewport. */
.lesson-inline-visual{position:relative;width:100%;aspect-ratio:1200/760;overflow:hidden;border-radius:14px;background:#fff;border:1px solid #e1eaf1}.lesson-inline-atlas{position:absolute!important;left:0;top:0;width:100%!important;height:auto!important;max-width:none!important;display:block;object-fit:unset!important;margin:0!important}


/* Bilingual lesson study layout */
.lesson-bilingual-block{display:grid;gap:1.35rem;margin-block:1.5rem}
.lesson-bilingual-title{margin:0;color:#10365f;font-size:1.35rem}
.lesson-bilingual-point{position:relative;display:grid;gap:.8rem;padding:1.2rem 1.2rem 1.2rem 4.2rem;border:1px solid #d8e8f1;border-radius:22px;background:linear-gradient(145deg,#fff,#f6fbfe);box-shadow:0 8px 26px rgba(14,52,91,.06)}
.lesson-point-number{position:absolute;left:1rem;top:1rem;width:2.5rem;height:2.5rem;display:grid;place-items:center;border-radius:50%;background:#103b70;color:#fff;font-weight:800}
.lesson-bilingual-en,.lesson-bilingual-ar,.lesson-bilingual-simple{padding:.85rem 1rem;border-radius:15px}
.lesson-bilingual-en{background:#eef5ff;border-inline-start:4px solid #24599a}
.lesson-bilingual-ar{background:#effafb;border-inline-start:4px solid #18a5b9}
.lesson-bilingual-simple{background:#fff8ed;border-inline-start:4px solid #d79a42}
.lesson-language-label{display:block;margin-bottom:.35rem;color:#52718d;font-size:.74rem;font-weight:800;letter-spacing:.04em}
.lesson-bilingual-en p,.lesson-bilingual-ar p,.lesson-bilingual-simple p{margin:0;line-height:1.9;color:#193a5d}
.lesson-bilingual-ar,.lesson-bilingual-simple{direction:rtl;text-align:right}
.lesson-focus-visual{margin:1.5rem 0;padding:1rem;border:1px solid #d7e9f0;border-radius:24px;background:#f7fcfe;box-shadow:0 12px 32px rgba(12,52,88,.08)}
.lesson-focus-visual img{display:block;width:100%;height:auto;border-radius:16px}
.lesson-focus-visual figcaption{margin-top:.65rem;text-align:center;color:#52718d;font-size:.88rem}
.lesson-visual-title{margin:.75rem 0 0;text-align:center;color:#123b68}
@media(max-width:640px){.lesson-bilingual-point{padding:3.8rem .85rem .9rem}.lesson-point-number{left:auto;right:.85rem;top:.75rem}.lesson-focus-visual{padding:.55rem;border-radius:16px}}

.lesson-point-visual{margin:18px 0 4px;padding:12px;background:#f5f9fc;border:1px solid #dce8f0;border-radius:16px}.lesson-point-visual img{display:block;width:100%;height:auto;max-height:440px;object-fit:contain;border-radius:10px}.lesson-point-visual-title{margin:10px 4px 4px;color:#153c67;font-size:15px}.lesson-point-visual figcaption{margin:4px;color:#7890a5;font-size:11px;text-align:center}


/* Community Health Nursing — one matching visual beside every key idea */
.lesson-bilingual-point{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);grid-template-areas:"number copy" "number visual";align-items:start;column-gap:1.1rem;row-gap:.7rem;padding:1.25rem 1.25rem 1.25rem 4.2rem}
.lesson-point-number{grid-area:number}
.lesson-point-copy{grid-area:copy;display:grid;gap:.7rem;min-width:0}
.lesson-point-visual{grid-area:visual;align-self:stretch;display:flex;flex-direction:column;justify-content:center;min-width:0;margin:0;padding:10px;background:#f2f7fb;border:1px solid #d7e4ed;border-radius:16px}
.lesson-point-visual img{width:100%;height:auto;max-height:420px;object-fit:contain;border-radius:11px}
.lesson-point-visual-title{margin:8px 3px 2px;color:#153c67;font-size:14px;text-align:center}
.lesson-point-visual figcaption{margin:3px;color:#7890a5;font-size:10px;text-align:center}
.lesson-point-visual.is-missing{min-height:180px;align-items:center;justify-content:center}
.lesson-image-fallback{color:#8a5360;text-align:center;font-size:13px}
@media(max-width:760px){.lesson-bilingual-point{grid-template-columns:minmax(0,1fr);grid-template-areas:"number" "copy" "visual";padding:3.7rem .85rem .9rem}.lesson-point-number{left:auto;right:.85rem;top:.75rem}.lesson-point-visual{margin-top:.25rem}.lesson-point-visual img{max-height:340px}}

/* Bawabet branded, task-based initial loading screen */
.bawabet-loader{--loader-blue:#1677ed;--loader-teal:#16b9b1;position:relative;isolation:isolate;overflow:hidden;min-height:min(690px,calc(100svh - 70px));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;padding:34px 22px;margin:0 auto 30px;border:1px solid rgba(190,211,239,.9);border-radius:30px;background:radial-gradient(ellipse at 50% 35%,rgba(31,193,205,.14),transparent 42%),linear-gradient(145deg,#fff 0%,#f0f6ff 55%,#eafaf8 100%);box-shadow:0 22px 60px rgba(38,83,143,.11);text-align:center}
.loader-glow{position:absolute;z-index:-1;width:240px;height:240px;border-radius:50%;filter:blur(48px);opacity:.4;pointer-events:none}.loader-glow-one{top:8%;left:-90px;background:#64b8ff}.loader-glow-two{right:-90px;bottom:7%;background:#55e0cb}
.loader-brand{display:flex;align-items:center;gap:11px;color:#18345d;font-weight:950;font-size:18px}.loader-brand img{width:48px;height:48px;object-fit:contain;border-radius:15px;background:#fff;box-shadow:0 5px 18px #1b57901c}.loader-brand small{display:block;font-size:9px;letter-spacing:1.5px;color:#64809e;direction:ltr;text-align:right;margin-top:2px}
.loader-scene{position:relative;width:min(310px,75vw);height:260px;display:grid;place-items:center;margin:2px auto 0}
.loader-orbit{position:absolute;border:2px dashed #91c6f2;border-radius:50%;animation:loaderOrbit 18s linear infinite}.loader-orbit.orbit-one{width:220px;height:220px}.loader-orbit.orbit-two{width:275px;height:170px;transform:rotate(-25deg);border-color:#83ddd6;animation-direction:reverse}
.loader-center{position:relative;z-index:2;width:170px;height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border-radius:50%;border:7px solid #fff;background:linear-gradient(145deg,#e6f6ff,#d9faf4);box-shadow:0 12px 32px rgba(31,112,177,.2),inset 0 0 0 2px #a8d8ef;color:#17375e}
.loader-center strong{font-size:17px;line-height:1.65;font-weight:950}
.loader-pulse{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(145deg,#1679ed,#10b8b3);color:white;font-size:28px;box-shadow:0 6px 18px #1679ed55;animation:loaderBeat 1.35s ease-in-out infinite}
.loader-cross{position:absolute;top:27px;right:34px;font-size:35px;font-weight:900;color:#12b6b3;text-shadow:0 4px 12px #12b6b344;animation:loaderFloat 3s ease-in-out infinite}
.loader-book{position:absolute;left:22px;bottom:36px;font-size:40px;filter:drop-shadow(0 7px 7px #183c6b25);animation:loaderFloat 3.5s ease-in-out infinite}
.loader-heart{position:absolute;right:13px;bottom:38px;width:53px;height:53px;display:grid;place-items:center;border-radius:18px;background:#fff;color:#12aeb9;font-size:39px;box-shadow:0 8px 22px #1c699020;animation:loaderFloat 3.2s ease-in-out infinite .3s}.loader-heart i{position:absolute;font-size:21px;font-style:normal}
.loader-stethoscope{position:absolute;left:27px;top:25px;font-size:32px;animation:loaderFloat 3.8s ease-in-out infinite .5s}
.loader-title{font-size:clamp(25px,5vw,34px);font-weight:950;color:#19375e;letter-spacing:-.5px;margin-top:0}
.loader-dots{display:inline-block;min-width:22px;color:#14aeb0;animation:loaderDots 1.3s steps(4,end) infinite}
.loader-message{min-height:25px;margin:0;color:#657d99;font-size:14px;font-weight:750}
.loader-progress-wrap{width:min(440px,100%);margin-top:7px;text-align:right}
.loader-progress-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;color:#506987;font-size:12px;font-weight:800}
.loader-progress-meta strong{color:#1479df;font-size:16px;font-variant-numeric:tabular-nums}
.loader-progress-track{height:13px;overflow:hidden;border-radius:99px;background:#dfeaf6;box-shadow:inset 0 2px 4px #17385b12}
.loader-progress-track>span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1677ed,#12b9b3);box-shadow:0 0 14px #1ab5c7a0;transition:width .38s ease}
.loader-footnote{color:#91a2b8;font-size:10px;font-weight:650}
@keyframes loaderBeat{0%,100%{transform:scale(1)}50%{transform:scale(1.09)}}@keyframes loaderFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}@keyframes loaderOrbit{to{rotate:360deg}}@keyframes loaderDots{0%{opacity:.25}50%{opacity:1}100%{opacity:.35}}
@media(max-width:600px){.bawabet-loader{min-height:calc(100svh - 90px);padding:24px 17px;border-radius:24px;gap:12px}.loader-scene{height:235px}.loader-orbit.orbit-one{width:195px;height:195px}.loader-orbit.orbit-two{width:245px;height:150px}.loader-center{width:150px;height:150px}.loader-center strong{font-size:15px}.loader-brand{font-size:16px}.loader-brand img{width:43px;height:43px}}
@media(prefers-reduced-motion:reduce){.loader-orbit,.loader-pulse,.loader-cross,.loader-book,.loader-heart,.loader-stethoscope,.loader-dots{animation:none}.loader-progress-track>span{transition:none}}

.bawabet-loader{opacity:1;transform:translateY(0);transition:opacity .24s ease,transform .24s ease}.bawabet-loader.is-complete{opacity:0;transform:translateY(-7px);pointer-events:none}

/* Official channel logo in the student header */
.platform-brand:before{display:none!important}.platform-brand-logo{display:block;width:48px;height:48px;flex:0 0 48px;object-fit:contain;border-radius:50%;background:#fff;box-shadow:0 3px 12px rgba(22,91,151,.16);border:1px solid #dceaf6}.platform-brand span{display:inline-block}@media(max-width:760px){.platform-brand-logo{width:52px;height:52px;flex-basis:52px}}

/* Replace the dashboard rocket with the official Bawabet Al Tamreed channel logo */
.platform-root[data-page="dashboard"] .platform-heading:after{content:""!important;background:#fff url("../assets/images/channel-logo.svg") center/cover no-repeat!important;border:1px solid #d9e8f5;box-shadow:0 5px 18px rgba(28,83,139,.12);border-radius:22px}

/* Library subject navigation and in-platform PDF viewer */
.library-subject-card{cursor:pointer}
.library-resource-card{min-height:0;display:flex;flex-direction:column;gap:12px}
.library-resource-card h3{margin-top:42px}
.library-resource-card .btn{align-self:flex-start;margin-top:auto}
.library-pdf-viewer{background:#fff;border:1px solid #dfe8f3;border-radius:20px;padding:16px;box-shadow:0 12px 34px rgba(43,78,125,.08)}
.library-pdf-viewer[hidden]{display:none}
.library-pdf-viewer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.library-pdf-viewer-head h2{font-size:18px;color:#263b59;margin:0}
.library-pdf-frame{display:block;width:100%;height:min(78vh,900px);min-height:520px;border:1px solid #e1e8f0;border-radius:12px;background:#f3f6fa}
@media(max-width:600px){.library-pdf-viewer{padding:9px}.library-pdf-frame{height:72vh;min-height:420px}.library-pdf-viewer-head{align-items:flex-start}.library-pdf-viewer-head .btn{width:100%}}

/* Student header hamburger navigation */
.platform-header{position:sticky;top:0;z-index:30;display:flex;align-items:center;flex-direction:row;gap:14px}
.platform-menu-toggle{display:grid;place-items:center;flex:0 0 46px;width:46px;height:44px;border:1px solid #dce7f3;border-radius:13px;background:#f1f6fc;color:#1e3a61;font-size:25px;font-weight:900;cursor:pointer;line-height:1}
.platform-nav[hidden]{display:none!important}
.platform-nav:not([hidden]){position:absolute;top:calc(100% + 8px);right:max(16px,calc((100% - 1200px)/2));display:grid;grid-template-columns:1fr;gap:4px;min-width:min(290px,calc(100vw - 32px));padding:10px;border:1px solid #e2eaf4;border-radius:17px;background:#fff;box-shadow:0 18px 45px rgba(24,55,91,.18)}
.platform-nav:not([hidden]) a{display:flex;align-items:center;padding:12px 14px;border-radius:11px;color:#334d6b;font-size:14px}
.platform-nav:not([hidden]) a[aria-current=page]{background:#edf5ff;color:#2476d8}
.platform-actions{margin-inline-start:auto;flex-wrap:nowrap}
@media(max-width:760px){.platform-header{align-items:center;flex-direction:row;position:sticky;padding:10px 14px}.platform-brand{font-size:16px;gap:7px}.platform-brand-logo{width:44px;height:44px;flex-basis:44px}.platform-menu-toggle{order:2}.platform-nav:not([hidden]){right:12px;left:12px;top:calc(100% + 7px);width:auto;min-width:0}.platform-actions{width:auto;margin-inline-start:auto;justify-content:flex-end;gap:8px}.platform-user{display:none}.platform-actions .btn{padding:8px 11px}.platform-root{margin-top:22px}}

/* Study start choice page */
.study-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0 42px}
.study-choice-card{display:flex;flex-direction:column;align-items:flex-start;min-height:250px;padding:26px;border:1px solid #dce8f2;border-radius:24px;background:linear-gradient(145deg,#fff,#f4f9ff);box-shadow:0 12px 30px rgba(28,62,100,.08);color:#203b5c;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease}
.study-choice-card:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(28,62,100,.13)}
.study-choice-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:19px;background:#eaf3ff;font-size:32px;margin-bottom:18px}
.study-choice-card h2{font-size:clamp(20px,2.4vw,27px);margin:0 0 10px;color:#1c3657}
.study-choice-card p{font-size:15px;line-height:1.9;color:#71839a;margin:0 0 20px}
.study-choice-action{margin-top:auto;color:#2675d8;font-weight:900}
@media(max-width:680px){.study-choice-grid{grid-template-columns:1fr;gap:14px;margin-top:18px}.study-choice-card{min-height:205px;padding:22px}}

/* Refined study start page — icon-led choice cards */
.platform-root[data-page="study"]{max-width:1120px}
.platform-root[data-page="study"] .platform-heading{margin-bottom:28px;padding:28px 26px 24px;border:1px solid #e1ebf6;border-radius:26px;background:linear-gradient(115deg,#f5f9ff 0%,#eef8fb 100%);box-shadow:0 10px 28px rgba(33,76,122,.055)}
.platform-root[data-page="study"] .platform-heading h1{font-size:clamp(30px,5vw,48px);line-height:1.25;margin:7px 0 10px;color:#19385f}
.platform-root[data-page="study"] .platform-heading .muted{font-size:clamp(15px,2.2vw,19px);line-height:1.8;max-width:650px}
.study-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:24px 0 48px}
.study-choice-card{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;min-height:315px;padding:25px 26px 23px;border:1px solid #e0eaf5;border-radius:27px;background:#fff;box-shadow:0 14px 34px rgba(28,62,100,.085);color:#203b5c;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.study-choice-card:before{content:"";position:absolute;z-index:-1;inset:0 0 auto;height:7px;background:linear-gradient(90deg,#2378df,#19b7b3)}
.study-choice-library:before{background:linear-gradient(90deg,#16a6a5,#5a9ce8)}
.study-choice-card:after{content:"";position:absolute;z-index:-1;width:190px;height:190px;border-radius:50%;left:-72px;bottom:-92px;background:radial-gradient(circle,#e9f4ff 0%,rgba(233,244,255,0) 72%)}
.study-choice-card:hover{transform:translateY(-5px);box-shadow:0 22px 44px rgba(28,62,100,.14);border-color:#b9d5f0}
.study-choice-card:focus-visible{outline:3px solid #3185e5;outline-offset:4px}
.study-choice-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 26px}
.study-choice-icon{display:grid;place-items:center;width:78px;height:78px;border-radius:24px;background:linear-gradient(145deg,#eaf3ff,#f3f7ff);font-size:40px;box-shadow:inset 0 0 0 1px #dceafa}
.study-choice-library .study-choice-icon{background:linear-gradient(145deg,#e4f8f5,#eff8ff);box-shadow:inset 0 0 0 1px #d8efeb}
.study-choice-tag{padding:8px 13px;border-radius:999px;background:#eef5fd;color:#47729f;font-size:12px;font-weight:850}
.study-choice-card h2{font-size:clamp(22px,2.6vw,29px);line-height:1.35;margin:0 0 11px;color:#1c3657}
.study-choice-card p{font-size:16px;line-height:1.9;color:#71839a;margin:0 0 25px}
.study-choice-action{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:15px;border-top:1px solid #edf1f6;color:#2476d8;font-size:15px;font-weight:950}
.study-choice-library .study-choice-action{color:#138d91}
@media(max-width:680px){
 .platform-root[data-page="study"] .platform-heading{padding:22px 19px 18px;margin-bottom:20px;border-radius:22px}
 .platform-root[data-page="study"] .platform-heading h1{font-size:32px}
 .study-choice-grid{grid-template-columns:1fr;gap:16px;margin:18px 0 34px}
 .study-choice-card{min-height:250px;padding:21px 20px;border-radius:23px}
 .study-choice-top{margin:2px 0 19px}
 .study-choice-icon{width:68px;height:68px;border-radius:21px;font-size:35px}
 .study-choice-card h2{font-size:24px}
 .study-choice-card p{font-size:15px;line-height:1.85;margin-bottom:19px}
}
@media(prefers-reduced-motion:reduce){.study-choice-card{transition:none}.study-choice-card:hover{transform:none}}


/* Logout action inside the student navigation menu */
.platform-nav .platform-logout-menu-btn{display:flex;align-items:center;justify-content:center;width:100%;margin-top:7px;padding:13px 14px;border:1px solid #c9defb;border-radius:12px;background:#e5f0ff;color:#d9363e;font:inherit;font-size:14px;font-weight:900;cursor:pointer;transition:background .2s,border-color .2s,transform .2s}
.platform-nav .platform-logout-menu-btn:hover{background:#d7e8ff;border-color:#a9c9f5;transform:translateY(-1px)}
.platform-nav .platform-logout-menu-btn:focus-visible{outline:3px solid rgba(40,120,232,.28);outline-offset:2px}


/* Compact study-choice cards on mobile so both options fit in one screen */
@media(max-width:680px){
 .platform-root[data-page="study"] .platform-heading{padding:18px 16px 15px;margin-bottom:13px}
 .platform-root[data-page="study"] .platform-heading h1{font-size:27px;margin:5px 0 6px}
 .platform-root[data-page="study"] .platform-heading .muted{font-size:14px;line-height:1.6}
 .study-choice-grid{grid-template-columns:1fr;gap:10px;margin:12px 0 22px}
 .study-choice-card{min-height:0;padding:14px 16px 13px;border-radius:19px}
 .study-choice-top{margin:0 0 9px}
 .study-choice-icon{width:52px;height:52px;border-radius:16px;font-size:27px}
 .study-choice-card h2{font-size:20px;line-height:1.3;margin:0 0 5px}
 .study-choice-card p{font-size:13px;line-height:1.55;margin:0 0 10px}
 .study-choice-action{padding-top:8px;font-size:13px}
 .study-choice-card:before{height:5px}
}

/* Timed exams and daily challenge popup */
.exam-timer-panel{position:sticky;top:78px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:14px 0;padding:14px 18px;border:1px solid #cfe3f4;background:#f1f8ff}
.exam-countdown{font-size:clamp(23px,4vw,30px);font-weight:950;font-variant-numeric:tabular-nums;color:#1267bd;direction:ltr}
.daily-challenge-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px;background:rgba(14,34,59,.58);backdrop-filter:blur(5px)}
.daily-challenge-modal{width:min(560px,100%);max-height:min(88vh,850px);overflow:auto;padding:24px;border:1px solid #dceaf5;border-radius:24px;background:#fff;box-shadow:0 24px 80px rgba(8,31,57,.28)}
.daily-challenge-kicker{margin:0 0 8px;color:#168f9b;font-size:13px;font-weight:900}.daily-challenge-modal h2{margin:0 0 12px;color:#17385d}.daily-challenge-question{line-height:1.9;color:#405a77}.daily-challenge-reward{display:inline-flex;padding:8px 13px;border-radius:12px;background:#eaf8f4;color:#087e68;font-weight:900}.daily-challenge-form{display:grid;gap:10px;margin-top:16px}.daily-challenge-form .btn{width:100%}
@media(max-width:600px){.daily-challenge-modal{padding:18px;border-radius:20px}.exam-timer-panel{top:65px}}
