:root{
 --navy:#003459;--navy-2:#004b70;--navy-3:#00698f;--orange:#00a8e8;--orange-2:#35bdea;--blue:#007ea7;--cyan:#62cdf4;
 --paper:#f7f7f4;--white:#fff;--ink:#17212b;--muted:#6c7a89;--line:rgba(7,23,37,.12);--success:#00a8e8;--danger:#e34850;--warning:#f2aa24;
 --shadow:0 24px 80px rgba(7,23,37,.16);--radius:24px;--radius-sm:16px;--font:'Alexandria','Cairo',system-ui,sans-serif;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:var(--font);background:#f2f9fc;color:var(--ink);min-height:100vh}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}img{max-width:100%}.hidden{display:none!important}
.ambient-bg{position:fixed;inset:0;overflow:hidden;z-index:-2;pointer-events:none;background:radial-gradient(circle at 10% 20%,rgba(0,126,167,.08),transparent 28%),radial-gradient(circle at 90% 10%,rgba(0,168,232,.08),transparent 26%)}
.ambient-bg span{position:absolute;width:320px;height:320px;border-radius:50%;filter:blur(70px);opacity:.2;animation:floatGlow 14s ease-in-out infinite}.ambient-bg span:nth-child(1){background:var(--orange);top:-110px;right:8%}.ambient-bg span:nth-child(2){background:var(--blue);left:-120px;top:42%;animation-delay:-5s}.ambient-bg span:nth-child(3){background:var(--cyan);right:22%;bottom:-170px;animation-delay:-9s}.ambient-bg i{position:absolute;font-style:normal;font-weight:800;color:rgba(0,126,167,.06);font-size:clamp(30px,5vw,74px);animation:chemDrift 18s linear infinite}.ambient-bg i:nth-of-type(1){top:17%;left:10%}.ambient-bg i:nth-of-type(2){top:62%;right:8%;animation-delay:-8s}.ambient-bg i:nth-of-type(3){bottom:6%;left:35%;animation-delay:-13s}
@keyframes floatGlow{50%{transform:translate3d(50px,40px,0) scale(1.14)}}@keyframes chemDrift{50%{transform:translateY(-32px) rotate(7deg)}}
.site-nav{height:84px;max-width:1280px;margin:auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:30}.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.02em}.brand img{width:46px;height:46px;object-fit:contain;filter:drop-shadow(0 5px 14px rgba(0,0,0,.12))}.site-nav nav{display:flex;align-items:center;gap:9px}.site-nav nav a{padding:12px 15px;border-radius:13px;font-weight:600;font-size:14px}.site-nav nav a:hover,.site-nav nav a.active{background:rgba(0,126,167,.08);color:var(--blue)}.site-nav .nav-cta{background:var(--orange);color:white!important;box-shadow:0 12px 28px rgba(0,168,232,.24)}.site-nav .nav-cta:hover{background:#0F7BA6}.nav-toggle{display:none;border:0;background:var(--navy);color:white;border-radius:12px;width:44px;height:44px}
.home-page{background:#f6f7f8}.hero{max-width:1280px;min-height:calc(100vh - 140px);margin:auto;padding:32px 28px 50px;display:grid;grid-template-columns:minmax(420px,.95fr) minmax(0,1.05fr);gap:34px;align-items:center;direction:ltr}.hero-copy{direction:rtl;position:relative;z-index:2;grid-column:2}.hero-visual{grid-column:1;grid-row:1}.hero-kicker{display:inline-flex;align-items:center;gap:8px;background:white;border:1px solid rgba(7,23,37,.08);border-radius:999px;padding:8px 13px;color:var(--navy);box-shadow:0 12px 35px rgba(7,23,37,.07);font-size:13px;font-weight:700}.hero-kicker:before{content:'';width:8px;height:8px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 6px rgba(0,168,232,.12)}.hero h1{font-size:clamp(44px,6vw,88px);line-height:1.04;margin:22px 0 18px;letter-spacing:-.045em;color:var(--navy);font-weight:900}.hero h1 .orange{color:var(--orange);display:inline-block;position:relative}.hero h1 .orange:after{content:'';position:absolute;right:0;left:0;bottom:-6px;height:9px;background:linear-gradient(90deg,var(--orange),var(--blue));border-radius:99px;transform:rotate(-1deg)}.hero p{font-size:clamp(16px,1.5vw,20px);line-height:1.9;color:#526272;max-width:620px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.btn{border:0;border-radius:15px;padding:14px 20px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:800;transition:.2s ease}.btn:hover{transform:translateY(-2px)}.btn-primary{background:var(--orange);color:white;box-shadow:0 15px 32px rgba(0,168,232,.25)}.btn-dark{background:var(--navy);color:white}.btn-soft{background:#EDF5F8;color:var(--navy)}.btn-blue{background:var(--blue);color:white}.btn-danger{background:var(--danger);color:white}.btn-success{background:var(--success);color:white}.btn-outline{background:white;border:1px solid var(--line);color:var(--navy)}.hero-meta{display:flex;gap:18px;flex-wrap:wrap;margin-top:25px;color:#758291;font-size:12px}.hero-meta span{display:flex;align-items:center;gap:7px}.hero-meta i{width:7px;height:7px;border-radius:50%;background:var(--blue)}
.hero-visual{direction:rtl;position:relative;min-height:650px}.hero-card{position:absolute;inset:0;border-radius:44px;overflow:hidden;background:linear-gradient(145deg,#f8f8f6,#e8eff4);box-shadow:var(--shadow);border:1px solid white}.hero-card:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 68% 26%,rgba(0,168,232,.27),transparent 24%),radial-gradient(circle at 30% 64%,rgba(0,126,167,.22),transparent 28%);z-index:1}.hero-card img{width:100%;height:100%;object-fit:cover;object-position:center 25%;position:relative;z-index:2;mix-blend-mode:multiply}.hero-bubble{position:absolute;z-index:4;background:rgba(255,255,255,.91);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.8);box-shadow:0 20px 55px rgba(7,23,37,.16);padding:14px 16px;border-radius:18px;font-size:13px;font-weight:800}.hero-bubble.one{left:-22px;top:19%;animation:bob 5s ease-in-out infinite}.hero-bubble.two{right:-18px;bottom:14%;animation:bob 5s ease-in-out infinite -2s}.hero-bubble b{color:var(--orange)}@keyframes bob{50%{transform:translateY(-12px) rotate(1deg)}}
.site-footer{max-width:1280px;margin:0 auto 24px;background:var(--navy);color:#dce8ef;border-radius:28px;padding:20px 26px;display:flex;align-items:center;justify-content:space-between}.site-footer>div{display:flex;align-items:center;gap:10px}.site-footer img{width:40px;height:40px;object-fit:contain;filter:brightness(0) invert(1)}.site-footer p{font-size:12px;color:#91a7b7}
.auth-page{background:linear-gradient(135deg,#eef3f7,#fff)}.auth-wrap{min-height:100vh;display:grid;grid-template-columns:minmax(320px,.9fr) minmax(480px,1.1fr)}.auth-visual{background:var(--navy);position:relative;overflow:hidden}.auth-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.62;mix-blend-mode:screen}.auth-visual:after{content:'';position:absolute;inset:0;background:linear-gradient(120deg,rgba(7,23,37,.9),rgba(7,23,37,.3)),radial-gradient(circle at 65% 40%,rgba(0,168,232,.55),transparent 25%)}.auth-brand-message{position:absolute;z-index:2;bottom:8%;right:8%;left:8%;color:white}.auth-brand-message h2{font-size:clamp(30px,4vw,54px);margin:0 0 12px}.auth-brand-message p{color:#c9d9e3;line-height:1.8}.auth-panel{display:flex;align-items:center;justify-content:center;padding:44px}.auth-card{width:min(100%,660px);background:rgba(255,255,255,.88);backdrop-filter:blur(18px);border:1px solid white;border-radius:30px;box-shadow:var(--shadow);padding:34px}.auth-card .brand{margin-bottom:28px}.auth-card h1{margin:0 0 8px;font-size:30px}.auth-card>p{margin:0 0 28px;color:var(--muted);line-height:1.7}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:7px}.field.full{grid-column:1/-1}.field label{font-size:13px;font-weight:700;color:#42515e}.field input,.field select,.field textarea{width:100%;border:1px solid #d8e0e6;background:#fff;border-radius:14px;padding:13px 14px;outline:0;transition:.2s}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(0,126,167,.1)}.field textarea{min-height:110px;resize:vertical}.form-actions{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:20px}.form-actions .btn{min-width:150px}.auth-links{font-size:13px;color:var(--muted)}.auth-links a{color:var(--blue);font-weight:700}.alert{border-radius:14px;padding:12px 14px;margin-bottom:16px;font-size:13px;line-height:1.7}.alert-error{background:#fff0f0;color:#9f2529;border:1px solid #ffd0d1}.alert-success{background:#ECF7FB;color:#125170;border:1px solid #BCDEEB}.alert-info{background:#edf7ff;color:#146897;border:1px solid #c8e7fa}
.store-page{background:#f5f7f9}.page-hero{max-width:1280px;margin:24px auto;padding:40px 28px}.page-hero-card{background:linear-gradient(120deg,var(--navy),#005b7c);color:white;border-radius:34px;padding:40px;overflow:hidden;position:relative}.page-hero-card:after{content:'C₆H₁₂O₆';position:absolute;left:4%;top:5%;font-size:90px;font-weight:900;color:rgba(255,255,255,.04);transform:rotate(-8deg)}.page-hero-card h1{font-size:clamp(34px,5vw,60px);margin:0 0 10px}.page-hero-card p{color:#C1D1D7;max-width:700px}.product-grid{max-width:1280px;margin:0 auto 60px;padding:0 28px;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.product-card{background:white;border:1px solid rgba(7,23,37,.08);border-radius:22px;padding:13px;box-shadow:0 16px 48px rgba(7,23,37,.08);display:flex;flex-direction:column}.product-card .product-image{aspect-ratio:4/3;border-radius:16px;background:#eef2f4;overflow:hidden}.product-card .product-image img{width:100%;height:100%;object-fit:cover}.product-card h3{margin:16px 4px 8px}.product-card p{margin:0 4px;color:var(--muted);line-height:1.7;font-size:13px}.product-card .product-bottom{margin-top:auto;padding:16px 4px 4px;display:flex;justify-content:space-between;align-items:center}.price{font-size:21px;font-weight:900;color:var(--orange)}
.app-body{background:#eef8fc}.app-shell{min-height:100vh;display:grid;grid-template-columns:270px 1fr;direction:rtl}.side-panel{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,var(--navy),#091d2d);color:white;padding:20px 14px;display:flex;flex-direction:column;z-index:60;box-shadow:-10px 0 50px rgba(7,23,37,.11)}.side-brand{display:flex;align-items:center;gap:12px;padding:8px 8px 23px;border-bottom:1px solid rgba(255,255,255,.08)}.side-brand img{width:46px;height:46px;object-fit:contain;filter:brightness(0) invert(1)}.side-brand div{display:flex;flex-direction:column;gap:2px}.side-brand b{font-size:14px}.side-brand span{font-size:10px;color:#8aa7b8}.side-panel nav{display:flex;flex-direction:column;gap:6px;padding-top:18px;overflow:auto}.side-panel nav a{display:flex;align-items:center;gap:11px;padding:12px 13px;border-radius:13px;color:#b9ccd7;font-size:13px;font-weight:600}.side-panel nav a span{width:24px;text-align:center;color:#8fb8cf}.side-panel nav a:hover,.side-panel nav a.active{background:rgba(255,255,255,.09);color:white}.side-panel nav a.active span{color:var(--orange)}.side-panel nav em{margin-right:auto;font-style:normal;background:var(--orange);color:#fff;border-radius:99px;padding:2px 7px;font-size:10px}.side-logout{margin-top:auto;border-top:1px solid rgba(255,255,255,.08);padding:15px 12px 4px;color:#ffb1ad;font-size:13px}.app-main{min-width:0}.app-topbar{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:rgba(247,249,250,.84);backdrop-filter:blur(18px);border-bottom:1px solid rgba(7,23,37,.06);position:sticky;top:0;z-index:40}.app-topbar>div:first-of-type{display:flex;flex-direction:column}.app-topbar small{font-size:10px;color:var(--muted)}.app-topbar strong{font-size:14px}.top-actions{display:flex;align-items:center;gap:10px}.install-chip,.notif-chip{border:1px solid rgba(7,23,37,.08);background:white;border-radius:12px;padding:9px 12px;font-size:12px;box-shadow:0 7px 24px rgba(7,23,37,.06)}.notif-chip{position:relative}.notif-chip b{position:absolute;top:-6px;left:-6px;background:var(--orange);color:white;border-radius:99px;min-width:18px;height:18px;display:grid;place-items:center;font-size:9px}.mobile-side-toggle{display:none;border:0;background:var(--navy);color:white;width:42px;height:42px;border-radius:12px}.app-content{padding:26px;max-width:1560px;margin:auto}.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:18px}.section-title h1,.section-title h2{margin:0;color:var(--navy);letter-spacing:-.02em}.section-title h1{font-size:28px}.section-title p{margin:5px 0 0;color:var(--muted);font-size:13px}.section-title .actions{display:flex;gap:8px;flex-wrap:wrap}
.welcome-panel{background:linear-gradient(120deg,#082238,#0e4d72);color:white;border-radius:28px;padding:28px;display:grid;grid-template-columns:1.3fr .7fr;gap:20px;position:relative;overflow:hidden;box-shadow:0 20px 60px rgba(7,23,37,.15)}.welcome-panel:before{content:'';position:absolute;width:360px;height:360px;background:var(--orange);filter:blur(90px);opacity:.18;left:-110px;top:-140px}.welcome-panel h1{margin:0 0 8px;font-size:clamp(27px,4vw,45px)}.welcome-panel p{color:#bfd3df;line-height:1.8;max-width:650px}.welcome-art{position:relative;min-height:180px}.welcome-art img{position:absolute;left:0;bottom:-80px;height:300px;object-fit:contain;filter:drop-shadow(0 18px 35px rgba(0,0,0,.25))}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:18px}.quick-card{background:white;border-radius:20px;padding:19px;border:1px solid rgba(7,23,37,.07);box-shadow:0 14px 40px rgba(7,23,37,.06);transition:.2s}.quick-card:hover{transform:translateY(-4px);box-shadow:0 20px 50px rgba(7,23,37,.1)}.quick-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#EAF4F8;color:var(--blue);font-weight:900}.quick-card.orange .quick-icon{background:#EAF9FF;color:var(--orange)}.quick-card h3{margin:14px 0 5px;font-size:15px}.quick-card p{margin:0;color:var(--muted);font-size:11px;line-height:1.7}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.stat-card{background:white;border-radius:18px;padding:18px;border:1px solid rgba(7,23,37,.07)}.stat-card small{color:var(--muted);font-size:11px}.stat-card strong{display:block;font-size:27px;margin-top:8px;color:var(--navy)}.stat-card .delta{font-size:10px;color:var(--success)}
.card{background:white;border:1px solid rgba(7,23,37,.07);border-radius:20px;padding:20px;box-shadow:0 14px 45px rgba(7,23,37,.05)}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stack{display:flex;flex-direction:column;gap:14px}.muted{color:var(--muted)}.small{font-size:12px}.pill{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:99px;font-size:10px;font-weight:800;background:#edf3f6;color:#4e6371}.pill.green{background:#E9F4F9;color:#145170}.pill.orange{background:#EAF9FF;color:#b64d0f}.pill.red{background:#fff0f0;color:#a5272e}.pill.blue{background:#e7f8ff;color:#126895}.empty-state{text-align:center;padding:50px 20px}.empty-state .big{font-size:42px;opacity:.5}.empty-state h3{margin:12px 0 6px}.empty-state p{color:var(--muted);font-size:13px}
.data-table-wrap{overflow:auto;border-radius:18px;border:1px solid rgba(7,23,37,.07);background:white}.data-table{width:100%;border-collapse:collapse;min-width:760px}.data-table th,.data-table td{padding:13px 14px;text-align:right;border-bottom:1px solid #edf0f2;font-size:12px;vertical-align:middle}.data-table th{background:#f8fafb;color:#6a7987;font-size:10px;text-transform:uppercase;position:sticky;top:0}.data-table tr:last-child td{border-bottom:0}.data-table tr:hover td{background:#fbfcfd}.table-actions{display:flex;gap:6px;flex-wrap:wrap}.icon-btn{width:34px;height:34px;border-radius:10px;border:1px solid var(--line);background:white;display:grid;place-items:center}.searchbar{display:flex;gap:8px;align-items:center;background:white;border:1px solid rgba(7,23,37,.08);padding:7px;border-radius:16px}.searchbar input,.searchbar select{border:0;outline:0;background:transparent;padding:8px 10px}.searchbar input{min-width:260px;flex:1}
.lesson-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.lesson-card{background:white;border:1px solid rgba(7,23,37,.07);border-radius:20px;padding:18px;position:relative;overflow:hidden}.lesson-card.locked{opacity:.72}.lesson-card:before{content:'';position:absolute;top:0;right:0;width:5px;height:100%;background:var(--blue)}.lesson-card.open:before{background:var(--success)}.lesson-card.locked:before{background:#9ba8b1}.lesson-number{font-size:10px;color:var(--muted);font-weight:700}.lesson-card h3{margin:8px 0 8px}.lesson-card p{font-size:12px;color:var(--muted);line-height:1.7}.lesson-card .bottom{display:flex;justify-content:space-between;align-items:center;margin-top:15px;gap:10px}.code-inline{display:flex;gap:7px;margin-top:11px}.code-inline input{min-width:0;flex:1;border:1px solid #dce4e9;border-radius:12px;padding:10px 11px}
.progress-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}.step{background:white;border:1px solid rgba(7,23,37,.08);border-radius:16px;padding:13px;display:flex;align-items:center;gap:10px;font-size:12px}.step .dot{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#edf1f3;color:#82909b;font-weight:900}.step.done .dot{background:#E7F3F8;color:var(--success)}.step.current{border-color:rgba(0,168,232,.4);box-shadow:0 10px 30px rgba(0,168,232,.08)}.step.current .dot{background:#EAF9FF;color:var(--orange)}
.video-shell{background:#02080d;border-radius:22px;overflow:hidden;position:relative;aspect-ratio:16/9}.video-shell iframe{width:100%;height:100%;border:0}.video-watermark{position:absolute;z-index:6;pointer-events:none;color:#fff;font-weight:800;font-size:16px;opacity:.065;text-shadow:0 1px 2px #000;animation:watermarkMove 19s linear infinite;white-space:nowrap}@keyframes watermarkMove{0%{top:10%;right:10%}25%{top:70%;right:15%}50%{top:50%;right:70%}75%{top:15%;right:60%}100%{top:10%;right:10%}}.countdown-box{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff2e9;border:1px solid #ffd1b6;border-radius:16px;padding:12px 15px;margin-bottom:14px}.countdown-box strong{color:#b84c10}.countdown{font-variant-numeric:tabular-nums;font-size:18px;font-weight:900;color:var(--orange)}
.question-card{background:white;border:1px solid rgba(7,23,37,.08);border-radius:19px;padding:19px;margin-bottom:12px}.question-card h3{font-size:15px;line-height:1.8;margin:0 0 13px}.question-options{display:grid;gap:8px}.option{display:flex;align-items:flex-start;gap:10px;padding:11px;border:1px solid #e1e7eb;border-radius:12px}.option:hover{border-color:#b8d9ec;background:#f8fcff}.option input{margin-top:3px}.question-image{max-height:260px;border-radius:14px;margin:10px 0;display:block}.quiz-result.wrong{border-right:4px solid var(--danger)}
.profile-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}.profile-info{display:flex;gap:16px;align-items:center}.avatar{width:74px;height:74px;border-radius:22px;background:linear-gradient(135deg,var(--blue),var(--orange));color:white;display:grid;place-items:center;font-size:26px;font-weight:900}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px}.detail-item{background:#f7f9fa;border-radius:13px;padding:11px}.detail-item small{display:block;color:var(--muted);font-size:10px;margin-bottom:4px}.detail-item strong{font-size:12px}.metric-ring{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.ring{--value:0;display:grid;place-items:center;aspect-ratio:1;border-radius:50%;background:conic-gradient(var(--orange) calc(var(--value)*1%),#e9eef1 0);position:relative}.ring:after{content:'';position:absolute;inset:9px;background:white;border-radius:50%}.ring div{position:relative;z-index:2;text-align:center}.ring strong{font-size:20px}.ring small{display:block;color:var(--muted);font-size:9px}
.modal-backdrop{position:fixed;inset:0;background:rgba(2,10,16,.62);z-index:100;display:grid;place-items:center;padding:18px;backdrop-filter:blur(6px)}.modal{background:white;width:min(100%,520px);border-radius:24px;padding:24px;box-shadow:0 30px 100px rgba(0,0,0,.25);position:relative}.modal h2{margin:0 0 8px}.modal p{color:var(--muted);line-height:1.8}.student-id-big{font-size:38px;font-weight:900;letter-spacing:.12em;text-align:center;background:#f1f7fb;border:1px dashed #afd2e7;color:var(--navy);padding:18px;border-radius:18px;margin:17px 0;direction:ltr}.modal-close{position:absolute;top:14px;left:14px;border:0;background:#eef2f4;width:34px;height:34px;border-radius:10px}
.toast-stack{position:fixed;left:18px;bottom:18px;z-index:200;display:flex;flex-direction:column;gap:8px}.toast{background:var(--navy);color:white;border-radius:14px;padding:12px 15px;box-shadow:0 18px 60px rgba(0,0,0,.2);font-size:12px;animation:toastIn .2s ease}.toast.success{background:#114E6C}.toast.error{background:#9e2c31}@keyframes toastIn{from{transform:translateY(10px);opacity:0}}
.install-floating{position:fixed;bottom:20px;right:20px;z-index:80;background:var(--navy);color:white;border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 55px rgba(7,23,37,.25);border-radius:18px;padding:12px 15px;display:flex;align-items:center;gap:10px}.install-floating img{width:36px;height:36px;object-fit:contain;filter:brightness(0) invert(1)}.install-floating button{border:0;background:var(--orange);color:white;border-radius:11px;padding:8px 12px;font-weight:800}
.qr-box{background:white;border-radius:22px;padding:20px;display:grid;place-items:center;border:1px solid rgba(7,23,37,.08)}#qrcode{background:white;padding:12px;border-radius:12px}.qr-timer{font-size:12px;color:var(--muted);margin-top:10px}.qr-token{text-align:center;font-size:10px;color:#8d99a2;word-break:break-all;margin-top:8px}
@media(max-width:1100px){.hero{grid-template-columns:1fr 1fr}.hero-visual{min-height:560px}.quick-grid,.stats-grid{grid-template-columns:repeat(2,1fr)}.product-grid{grid-template-columns:repeat(2,1fr)}.lesson-list{grid-template-columns:repeat(2,1fr)}.app-shell{grid-template-columns:235px 1fr}.metric-ring{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.hero-copy,.hero-visual{grid-column:auto;grid-row:auto}.site-nav{height:74px;padding:0 18px}.brand span{font-size:12px}.nav-toggle{display:block}.site-nav nav{display:none;position:absolute;top:68px;left:16px;right:16px;background:white;padding:12px;border-radius:18px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch}.site-nav nav.open{display:flex}.hero{grid-template-columns:1fr;min-height:auto;padding:18px 18px 34px}.hero-copy{order:2}.hero-visual{order:1;min-height:480px}.hero h1{font-size:48px}.hero-bubble.one{left:7px}.hero-bubble.two{right:7px}.site-footer{margin:0 16px 16px}.auth-wrap{grid-template-columns:1fr}.auth-visual{display:none}.auth-panel{padding:20px}.auth-card{padding:24px}.app-shell{display:block}.side-panel{position:fixed;right:0;top:0;width:270px;transform:translateX(105%);transition:.25s;z-index:90}.side-panel.open{transform:none}.side-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:80}.side-overlay.open{display:block}.mobile-side-toggle{display:block}.app-topbar{padding:0 16px}.app-content{padding:18px}.welcome-panel{grid-template-columns:1fr}.welcome-art{display:none}.grid-2,.grid-3,.profile-hero{grid-template-columns:1fr}.product-grid{padding:0 18px}.progress-steps{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.hero-visual{min-height:390px}.hero-card{border-radius:28px}.hero h1{font-size:39px}.hero p{font-size:15px}.hero-actions .btn{width:100%}.site-footer{flex-direction:column;gap:8px;text-align:center}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.form-actions{align-items:stretch;flex-direction:column}.form-actions .btn{width:100%}.auth-card{border-radius:22px}.product-grid{grid-template-columns:1fr}.quick-grid,.stats-grid,.lesson-list{grid-template-columns:1fr}.section-title{align-items:flex-start;flex-direction:column}.section-title .actions{width:100%}.searchbar{width:100%;flex-wrap:wrap}.searchbar input{min-width:0;width:100%}.metric-ring{grid-template-columns:repeat(3,1fr)}.detail-grid{grid-template-columns:1fr}.progress-steps{grid-template-columns:1fr}.top-actions .install-chip{display:none!important}.app-topbar{height:70px}.app-content{padding:14px}.welcome-panel{padding:20px;border-radius:22px}.welcome-panel h1{font-size:30px}.card{padding:16px}.student-id-big{font-size:30px}.page-hero{padding:20px 16px}.page-hero-card{padding:28px 20px}.product-grid{padding:0 16px}}

/* ===== v1.1.0 UX refresh ===== */
.site-nav .public-brand{min-width:72px;justify-content:flex-start}.site-nav .public-brand img{width:78px;height:64px}.hero h1{font-size:clamp(38px,4.8vw,66px);line-height:1.08}.hero p{font-size:clamp(15px,1.2vw,18px)}

/* Student home: only useful progress + open content */
.student-dashboard-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:18px}.student-dashboard-head h1{margin:10px 0 6px;font-size:30px;color:var(--navy)}.student-dashboard-head p{margin:0;color:var(--muted);font-size:13px;line-height:1.8;max-width:720px}.student-overview-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:18px;margin-bottom:24px}.access-summary-card{display:flex;align-items:center;gap:26px;min-height:235px;background:linear-gradient(145deg,#fff,#f5f9fb)}.access-donut{--progress:0;flex:0 0 168px;width:168px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--orange) calc(var(--progress)*1%),#e6edf1 0);position:relative;box-shadow:0 18px 48px rgba(7,23,37,.08)}.access-donut:before{content:'';position:absolute;inset:15px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1px rgba(7,23,37,.04)}.access-donut>div{position:relative;z-index:2;text-align:center}.access-donut strong{display:block;font-size:34px;color:var(--navy);line-height:1}.access-donut span{font-size:10px;color:var(--muted);font-weight:700}.access-summary-copy h2{margin:11px 0 5px;font-size:25px;color:var(--navy)}.access-summary-copy p{margin:0 0 8px;color:var(--muted);line-height:1.7}.access-summary-copy small{color:#82909b;font-size:10px}.achievement-card{display:flex;flex-direction:column;justify-content:center;min-height:235px;background:linear-gradient(145deg,#fff,#f7fbfd)}.achievement-top{display:flex;align-items:flex-end;justify-content:space-between;gap:15px}.achievement-top h2{margin:9px 0 0;color:var(--navy)}.achievement-top>strong{font-size:48px;color:var(--navy);line-height:1}.achievement-track{height:15px;border-radius:99px;background:#e7edf0;overflow:hidden;margin:26px 0 10px}.achievement-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue),var(--orange));box-shadow:0 0 24px rgba(0,168,232,.28);transition:width .5s ease}.achievement-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:11px}.achievement-card>p{margin:16px 0 0;color:var(--muted);font-size:12px}.dashboard-content-title{margin-top:6px}.dashboard-open-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.open-content-card{display:flex;align-items:center;gap:13px;padding:17px}.open-content-icon{width:47px;height:47px;flex:0 0 47px;border-radius:15px;display:grid;place-items:center;background:#EAF4F8;color:var(--blue);font-weight:900}.open-content-card h3{margin:7px 0 4px;font-size:14px}.open-content-card p{margin:0;color:var(--muted);font-size:10px}

/* Subscription wizard */
.subscription-wizard{max-width:1180px;margin:0 auto}.wizard-stage{animation:wizardIn .22s ease}@keyframes wizardIn{from{opacity:0;transform:translateY(7px)}}.plan-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.plan-choice-card{border:1px solid rgba(7,23,37,.08);background:white;border-radius:26px;padding:30px;text-align:right;min-height:270px;box-shadow:0 18px 55px rgba(7,23,37,.07);transition:.22s;position:relative;overflow:hidden;color:var(--ink)}.plan-choice-card:before{content:'';position:absolute;width:180px;height:180px;border-radius:50%;background:var(--blue);opacity:.055;left:-50px;bottom:-60px}.plan-choice-card.featured:before{background:var(--orange);opacity:.09}.plan-choice-card:hover{transform:translateY(-5px);box-shadow:0 25px 70px rgba(7,23,37,.11);border-color:rgba(0,126,167,.25)}.plan-choice-icon{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;background:#EAF4F8;color:var(--blue);font-size:23px}.plan-choice-card.featured .plan-choice-icon{background:#EAF9FF;color:var(--orange)}.plan-choice-card small{display:block;margin-top:28px;color:var(--muted);font-weight:800}.plan-choice-card h2{font-size:27px;margin:8px 0;color:var(--navy)}.plan-choice-card p{color:var(--muted);margin:0;line-height:1.8}.plan-choice-action{display:inline-block;margin-top:25px;font-size:12px;font-weight:800;color:var(--blue)}.featured .plan-choice-action{color:var(--orange)}.wizard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.wizard-head h2{margin:8px 0 5px;font-size:27px}.wizard-head p{margin:0;color:var(--muted);font-size:12px}.wizard-back{border:0;background:#fff;border-radius:13px;padding:10px 14px;font-weight:700;color:var(--navy);box-shadow:0 8px 25px rgba(7,23,37,.06)}.select-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.selectable-resource-card{display:block;background:white;border:2px solid transparent;border-radius:20px;padding:20px;position:relative;box-shadow:0 13px 40px rgba(7,23,37,.05);cursor:pointer;transition:.18s}.selectable-resource-card input{position:absolute;opacity:0;pointer-events:none}.selectable-resource-card:hover,.selectable-resource-card.selected:has(input:checked),.selectable-resource-card:has(input:checked){border-color:var(--blue);transform:translateY(-2px)}.selectable-resource-card.term-card-option:has(input:checked){border-color:var(--orange)}.resource-check{position:absolute;top:15px;left:15px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#edf1f3;color:#a1adb5;font-weight:900}.selectable-resource-card:has(input:checked) .resource-check{background:var(--blue);color:white}.term-card-option:has(input:checked) .resource-check{background:var(--orange)}.selectable-resource-card small{color:var(--muted)}.selectable-resource-card h3{margin:14px 0 8px}.selectable-resource-card strong{font-size:23px;color:var(--orange)}.selectable-resource-card p{margin:8px 0 0;color:var(--muted);font-size:11px}.wizard-actions{display:flex;justify-content:flex-start;margin-top:18px}.payment-checkout-layout{display:grid;grid-template-columns:320px 1fr;gap:18px;align-items:start}.payment-summary-card{background:linear-gradient(155deg,var(--navy),#005b7c);color:white;border-radius:24px;padding:24px;position:sticky;top:98px;box-shadow:0 20px 60px rgba(7,23,37,.16)}.payment-summary-card small{color:#9CBBC7}.payment-summary-card h3{font-size:22px;margin:14px 0 8px}.payment-summary-card>strong{display:block;font-size:31px;color:#62cdf4;margin-bottom:22px}.summary-line{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid rgba(255,255,255,.09);font-size:11px}.summary-line span{color:#9CBBC7}.subscription-payment-form h3{margin-top:0}.payment-method-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:15px 0}.payment-method-btn{border:1px solid #dce5ea;background:#fff;border-radius:15px;padding:14px 10px;font-weight:800;color:var(--navy);display:flex;align-items:center;justify-content:center;gap:7px;transition:.18s}.payment-method-btn span{color:var(--blue);font-size:17px}.payment-method-btn:hover,.payment-method-btn.active{border-color:var(--orange);background:#F2FBFF;box-shadow:0 10px 28px rgba(0,168,232,.1)}.payment-method-btn.active span{color:var(--orange)}.payment-account-panel{display:flex;align-items:center;gap:13px;flex-wrap:wrap;background:#edf8ff;border:1px solid #cdeaf9;border-radius:16px;padding:14px;margin:12px 0}.payment-account-panel small{color:#5b7484}.payment-account-panel strong{font-size:19px;direction:ltr;color:var(--navy);margin-left:auto}.copy-account{border:0;background:white;border-radius:10px;padding:8px 10px;color:var(--blue);font-weight:700}.upload-dropzone{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;min-height:150px;border:2px dashed #cbd8df;border-radius:18px;background:#f9fbfc;margin:14px 0;cursor:pointer;transition:.18s;padding:20px}.upload-dropzone:hover{border-color:var(--blue);background:#f3faff}.upload-icon{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;background:#e7f8ff;color:var(--blue);font-size:21px;margin-bottom:8px}.upload-dropzone b{font-size:13px}.upload-dropzone small{color:var(--muted);font-size:10px;margin-top:4px}.payment-submit{width:100%;margin-top:8px}.payment-submit:disabled{opacity:.5;cursor:not-allowed;transform:none}

/* Content thumbnails */
.content-thumb-card{padding-top:12px}.content-thumb{aspect-ratio:16/9;border-radius:15px;background:#edf2f5;overflow:hidden;margin-bottom:14px;position:relative}.content-thumb img{width:100%;height:100%;object-fit:cover}.content-thumb.placeholder{display:grid;place-items:center;background:linear-gradient(135deg,#e7f8ff,#EAF9FF);color:rgba(7,23,37,.25);font-weight:900;letter-spacing:.08em}.content-thumb.lesson{aspect-ratio:16/8.4}.admin-lesson-row{display:grid;grid-template-columns:66px 1fr auto;align-items:center;gap:11px;padding:10px;border-bottom:1px solid #edf0f2}.admin-lesson-row img,.mini-thumb{width:66px;height:45px;border-radius:10px;object-fit:cover}.mini-thumb{display:grid;place-items:center;background:#edf3f6;color:var(--blue);font-weight:900}.admin-lesson-row:last-child{border-bottom:0}

/* Question builder refresh */
.segmented-control{display:flex;gap:7px;flex-wrap:wrap}.segmented-control label{cursor:pointer}.segmented-control input{position:absolute;opacity:0;pointer-events:none}.segmented-control span{display:inline-flex;align-items:center;justify-content:center;min-width:88px;padding:10px 14px;border-radius:12px;border:1px solid #d9e2e7;background:white;color:#5e6e7a;font-size:12px;font-weight:800;transition:.16s}.segmented-control input:checked+span{background:var(--navy);border-color:var(--navy);color:white;box-shadow:0 9px 24px rgba(7,23,37,.13)}.question-type-buttons input[value="truefalse"]:checked+span{background:var(--blue);border-color:var(--blue)}.answer-choice-buttons span{min-width:48px}.truefalse-answer-buttons input[value="true"]:checked+span{background:var(--success);border-color:var(--success)}.truefalse-answer-buttons input[value="false"]:checked+span{background:var(--danger);border-color:var(--danger)}.question-option-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.chem-tool-slot{min-height:0}.chem-tool-wrap{position:relative;display:flex;justify-content:flex-start;margin:-2px 0 9px}.chem-tool-wrap.compact{margin-top:7px}.chem-toggle{border:1px solid #cddbe3;background:#f7fafc;color:var(--navy);border-radius:11px;padding:7px 10px;font-weight:900;font-size:11px;display:flex;gap:6px;align-items:center}.chem-toggle span{font-weight:600;color:var(--muted)}.chem-popover{position:absolute;left:0;top:calc(100% + 7px);z-index:20;width:min(340px,90vw);background:white;border:1px solid #dfe7eb;border-radius:15px;padding:9px;display:flex;flex-wrap:wrap;gap:6px;box-shadow:0 18px 55px rgba(7,23,37,.16)}.chem-token{border:1px solid #dbe4e9;background:#f8fafb;border-radius:9px;padding:7px 9px;font-weight:800;color:var(--navy)}.chem-token:hover{border-color:var(--blue);color:var(--blue)}.compact-upload{display:flex;align-items:center;gap:8px;border:1px dashed #cbd7de;background:#fafcfd;border-radius:13px;padding:11px;cursor:pointer}.compact-upload input{max-width:210px;font-size:10px}.compact-upload span{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#EAF4F8;color:var(--blue)}.compact-upload b{font-size:11px}.question-libraries{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:20px}.question-library{background:#f8fafb;border:1px solid #e2e9ed;border-radius:18px;overflow:hidden}.question-library summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 17px;background:white;list-style:none}.question-library summary::-webkit-details-marker{display:none}.question-library summary>div{display:flex;align-items:center;gap:9px}.question-library summary>span{font-size:10px;color:var(--muted)}.question-library-list{padding:10px}.saved-question{display:grid;grid-template-columns:30px 1fr;gap:10px;padding:11px;border-radius:13px;background:white;border:1px solid #e7ecef;margin-bottom:8px}.question-index{width:28px;height:28px;border-radius:9px;background:#edf6fb;color:var(--blue);display:grid;place-items:center;font-size:10px;font-weight:900}.saved-question-head{display:flex;align-items:flex-start;gap:8px}.saved-question-head b{font-size:11px;line-height:1.7}.saved-question-body>small{display:block;color:var(--muted);margin-top:7px;font-size:9px}.saved-question-body img{display:block;width:90px;height:60px;object-fit:cover;border-radius:8px;margin-top:8px}.lesson-editor-grid>.card{min-width:0}

/* Generic code generator */
.code-generator-card{max-width:930px}.code-type-buttons span{min-width:145px}.lesson-code-time{margin-top:18px;padding-top:18px;border-top:1px solid #edf0f2}.code-result-card{text-align:center;max-width:620px;margin:0 auto 18px}.code-result-card .student-id-big{direction:ltr}

/* Store inside Student PWA keeps the sidebar */
.product-grid.in-app{max-width:none;margin:0;padding:0;grid-template-columns:repeat(3,1fr)}

@media(max-width:1100px){
 .student-overview-grid{grid-template-columns:1fr}.dashboard-open-grid{grid-template-columns:repeat(2,1fr)}.select-card-grid{grid-template-columns:repeat(2,1fr)}.payment-checkout-layout{grid-template-columns:270px 1fr}.question-libraries{grid-template-columns:1fr}.product-grid.in-app{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:820px){
 .site-nav .public-brand img{width:60px;height:52px}.hero h1{font-size:42px}.student-dashboard-head h1{font-size:27px}.student-overview-grid{gap:13px}.access-summary-card{min-height:0}.dashboard-open-grid{grid-template-columns:1fr}.plan-choice-grid{grid-template-columns:1fr}.select-card-grid{grid-template-columns:1fr 1fr}.payment-checkout-layout{grid-template-columns:1fr}.payment-summary-card{position:static}.question-option-grid{grid-template-columns:1fr}.code-type-buttons span{min-width:110px}.lesson-editor-grid{grid-template-columns:1fr!important}.product-grid.in-app{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
 .site-nav .public-brand img{width:54px;height:48px}.hero h1{font-size:35px;line-height:1.12}.hero p{font-size:14px}.student-dashboard-head h1{font-size:24px}.student-dashboard-head p{font-size:11px}.access-summary-card{flex-direction:column;text-align:center;padding:22px}.access-donut{width:145px;flex-basis:145px}.achievement-top>strong{font-size:38px}.achievement-meta{gap:10px;flex-wrap:wrap}.plan-choice-card{min-height:220px;padding:22px}.plan-choice-card h2{font-size:23px}.select-card-grid{grid-template-columns:1fr}.wizard-head{flex-direction:column-reverse}.wizard-back{align-self:flex-start}.payment-method-buttons{grid-template-columns:1fr}.payment-account-panel strong{width:100%;margin:0}.segmented-control{display:grid;grid-template-columns:1fr 1fr}.segmented-control label,.segmented-control span{width:100%}.code-type-buttons{grid-template-columns:1fr}.question-libraries{grid-template-columns:1fr}.product-grid.in-app{grid-template-columns:1fr}.admin-lesson-row{grid-template-columns:54px 1fr}.admin-lesson-row .pill{grid-column:2}.admin-lesson-row img,.mini-thumb{width:54px;height:40px}
}
.saved-options{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:8px}.saved-options span{background:#f6f8fa;border-radius:8px;padding:6px 7px;font-size:9px;color:#5f6f7b}
@media(max-width:560px){.saved-options{grid-template-columns:1fr}}
.media-update-card{display:grid;grid-template-columns:150px 1fr auto;align-items:center;gap:16px}.media-update-card>div:first-child img,.mini-media-placeholder{width:150px;aspect-ratio:16/9;border-radius:14px;object-fit:cover}.mini-media-placeholder{display:grid;place-items:center;background:linear-gradient(135deg,#e7f8ff,#EAF9FF);color:#7993a3;font-size:10px;font-weight:900}.media-update-card h3{margin:5px 0 9px}.lesson-media-inline{display:grid;grid-template-columns:110px 1fr auto;gap:12px;align-items:center;background:#f8fafb;border:1px solid #e5ebee;border-radius:15px;padding:10px;margin-bottom:16px}.lesson-media-inline img,.lesson-media-inline .mini-media-placeholder{width:110px;aspect-ratio:16/9;border-radius:10px;object-fit:cover}
@media(max-width:680px){.media-update-card,.lesson-media-inline{grid-template-columns:1fr}.media-update-card>div:first-child img,.media-update-card .mini-media-placeholder,.lesson-media-inline img,.lesson-media-inline .mini-media-placeholder{width:100%;max-width:260px}.media-update-card .btn,.lesson-media-inline .btn{width:100%}}

/* ===== v1.1.1 landing hero typography hotfix ===== */
.hero-copy{width:100%;max-width:660px;justify-self:end}
.hero h1{
  font-size:clamp(36px,4.1vw,58px);
  line-height:1.34;
  letter-spacing:0;
  margin:18px 0 14px;
  text-wrap:balance;
  overflow-wrap:normal;
  word-break:normal;
}
.hero h1 .orange{line-height:inherit}
.hero h1 .orange:after{bottom:0;height:6px;transform:translateY(8px) rotate(-1deg)}
@media(max-width:820px){
  .hero-copy{max-width:none;justify-self:stretch}
  .hero h1{font-size:clamp(38px,7vw,48px);line-height:1.34;margin:16px 0 12px}
}
@media(max-width:560px){
  .hero h1{font-size:34px;line-height:1.4}
}

/* ===== v1.1.1 landing hero emergency fix =====
   Arabic display type needs a generous line box; keep the headline compact
   without allowing glyphs/underline to collide with the next line. */
.hero-copy{width:100%;max-width:650px;justify-self:end;align-self:center}
.hero h1{
  font-size:clamp(34px,3.7vw,54px);
  line-height:1.45;
  letter-spacing:0;
  margin:16px 0 12px;
  text-wrap:balance;
  word-break:normal;
  overflow-wrap:normal;
}
.hero h1 .orange{display:inline-block;line-height:1.25;vertical-align:baseline}
.hero h1 .orange:after{height:5px;bottom:-2px;transform:translateY(8px) rotate(-1deg)}
@media(max-width:1100px) and (min-width:821px){
  .hero h1{font-size:clamp(34px,4.1vw,48px);line-height:1.48}
}
@media(max-width:820px){
  .hero-copy{max-width:none;justify-self:stretch}
  .hero h1{font-size:clamp(36px,7vw,46px);line-height:1.45;margin:15px 0 12px}
}
@media(max-width:560px){
  .hero h1{font-size:32px;line-height:1.5}
  .hero h1 .orange:after{height:4px;transform:translateY(7px) rotate(-1deg)}
}

/* ===== v1.2.0 content edit/delete management ===== */
.content-management-section{overflow:visible}.entity-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.entity-section-head.compact{margin-bottom:10px}.entity-section-head h3{margin:7px 0 3px}.entity-section-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.7}.entity-manage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.entity-manage-card,.entity-content-card{background:#f9fbfc;border:1px solid #e1e9ee;border-radius:18px;overflow:hidden;transition:.18s ease}.entity-manage-card[open],.entity-content-card.active{border-color:rgba(0,126,167,.32);box-shadow:0 12px 34px rgba(7,23,37,.07)}.entity-manage-card>summary{list-style:none;cursor:pointer;padding:14px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:white}.entity-manage-card>summary::-webkit-details-marker,.entity-inline-editor>summary::-webkit-details-marker,.lesson-inline-editor>summary::-webkit-details-marker{display:none}.entity-summary-main{display:flex;align-items:center;gap:11px;min-width:0}.entity-summary-main>div{min-width:0}.entity-summary-main b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-summary-main small{display:block;margin-top:4px;color:var(--muted);font-size:10px}.entity-icon{width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#fff0e6,#e7f8ff);color:var(--orange);font-weight:900}.entity-edit-hint{font-size:10px;color:var(--blue);font-weight:800;background:#edf7fd;padding:7px 9px;border-radius:9px;white-space:nowrap}.entity-edit-panel{padding:16px;background:#f9fbfc;border-top:1px solid #e5ecef}.entity-form-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.danger-inline{border-top:1px dashed rgba(227,72,80,.24);margin-top:14px;padding-top:14px;display:flex;justify-content:flex-end}.danger-inline .btn{padding:10px 14px;font-size:11px}.switch-field,.check-row{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:700;color:#42515e;cursor:pointer}.switch-field{min-height:46px;padding:10px 12px;background:white;border:1px solid #d8e0e6;border-radius:14px}.switch-field input,.check-row input{accent-color:var(--orange);width:17px;height:17px}.check-row{margin-top:8px;font-size:10px;color:var(--muted)}
.chapter-manage-grid{grid-template-columns:1fr}.entity-content-card{background:white}.entity-content-preview{display:grid;grid-template-columns:150px 1fr auto;align-items:center;gap:16px;padding:13px}.entity-content-preview>img,.entity-thumb-placeholder{width:150px;aspect-ratio:16/9;border-radius:13px;object-fit:cover}.entity-thumb-placeholder{display:grid;place-items:center;background:linear-gradient(135deg,#e7f8ff,#EAF9FF);color:#7890a0;font-size:10px;font-weight:900}.entity-content-preview h3{margin:8px 0 4px}.entity-content-preview p{margin:0;color:var(--muted);font-size:10px}.entity-manage-link{padding:10px 13px;font-size:10px;white-space:nowrap}.entity-inline-editor{border-top:1px solid #edf0f2}.entity-inline-editor>summary,.lesson-inline-editor>summary{cursor:pointer;list-style:none;padding:10px 14px;color:var(--blue);font-size:10px;font-weight:900;background:#f8fafb}.entity-inline-editor[open]>summary,.lesson-inline-editor[open]>summary{background:#edf7fd}.lesson-manage-row{border:1px solid #e5ebee;border-radius:14px;background:white;overflow:hidden;margin-bottom:9px}.lesson-manage-row.active{border-color:rgba(0,168,232,.32);box-shadow:0 8px 24px rgba(0,168,232,.08)}.lesson-manage-main{display:grid;grid-template-columns:66px minmax(0,1fr) auto;align-items:center;gap:11px;padding:10px}.lesson-manage-main img,.lesson-manage-main .mini-thumb{width:66px;height:45px;border-radius:10px;object-fit:cover}.lesson-manage-main b{display:block;line-height:1.5}.lesson-inline-editor{border-top:1px solid #edf0f2}.lesson-inline-editor .entity-edit-panel{border-top:0}.entity-content-card .compact-upload,.lesson-manage-row .compact-upload{background:white}
@media(max-width:900px){.entity-manage-grid{grid-template-columns:1fr}.entity-content-preview{grid-template-columns:120px 1fr}.entity-content-preview>img,.entity-thumb-placeholder{width:120px}.entity-manage-link{grid-column:2;justify-self:start}.lesson-manage-main{grid-template-columns:58px minmax(0,1fr)}.lesson-manage-main>.pill{grid-column:2;justify-self:start}.lesson-manage-main img,.lesson-manage-main .mini-thumb{width:58px;height:42px}}
@media(max-width:560px){.entity-manage-card>summary{align-items:flex-start}.entity-summary-main small{white-space:normal}.entity-content-preview{grid-template-columns:82px 1fr;gap:11px}.entity-content-preview>img,.entity-thumb-placeholder{width:82px}.entity-content-preview h3{font-size:15px}.entity-content-preview p{font-size:9px;line-height:1.6}.entity-manage-link{grid-column:1/-1;width:100%}.entity-edit-panel{padding:12px}.danger-inline .btn,.entity-form-actions .btn{width:100%}.lesson-manage-main{grid-template-columns:52px minmax(0,1fr)}.lesson-manage-main img,.lesson-manage-main .mini-thumb{width:52px;height:38px}}

/* ===== v1.3.1 editable lesson Parts ===== */
.parts-manage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.part-manage-card{border:1px solid #e2e9ed;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(7,23,37,.035)}.part-manage-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px}.part-manage-head>div:first-child{display:flex;align-items:center;gap:10px;min-width:0}.part-manage-head h4{margin:2px 0 0;font-size:14px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.part-manage-head small{font-size:9px;color:var(--muted)}.part-number{width:34px;height:34px;flex:0 0 34px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,#fff0e6,#edf7fd);color:var(--orange);font-weight:900}.part-url-preview{direction:ltr;text-align:left;margin:0 14px 12px;padding:8px 10px;border-radius:10px;background:#f7fafb;color:#738591;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.part-inline-editor{border-top:1px solid #edf0f2}.part-inline-editor>summary{list-style:none;cursor:pointer;padding:10px 14px;background:#f8fafb;color:var(--blue);font-size:10px;font-weight:900}.part-inline-editor>summary::-webkit-details-marker{display:none}.part-inline-editor[open]>summary{background:#edf7fd}.part-edit-panel{padding:14px;background:#f9fbfc}.btn-sm{padding:8px 10px;font-size:9px}.empty-state.compact-empty{min-height:0;padding:22px;margin-top:10px}.empty-state.compact-empty span{font-size:10px;color:var(--muted);margin-top:4px}
@media(max-width:900px){.parts-manage-grid{grid-template-columns:1fr}}
@media(max-width:560px){.part-manage-head{align-items:flex-start;flex-direction:column}.part-manage-head .btn{width:100%}.part-manage-head h4{white-space:normal}.part-edit-panel .entity-form-actions .btn,.part-edit-panel .danger-inline .btn{width:100%}}

/* v1.4.0 — content flow, attendance, bulk codes, review tools */
.code-lower{text-transform:lowercase!important;letter-spacing:.08em;direction:ltr;display:inline-block}.code-bulk-grid{margin-top:14px}.export-buttons span{min-width:92px}
.lesson-flow-editor{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);gap:18px;align-items:center;background:linear-gradient(135deg,#f7fbfd,#fff8f3);border:1px solid #e2ebf0;border-radius:18px;padding:16px;margin-bottom:16px}.lesson-flow-editor h3{margin:8px 0 3px}.flow-sortable{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}.flow-sort-item{background:white;border:1px solid #dfe8ed;border-radius:13px;padding:12px;cursor:grab;display:flex;align-items:center;gap:8px;min-height:58px;box-shadow:0 7px 18px rgba(7,23,37,.035);transition:.15s}.flow-sort-item:active{cursor:grabbing}.flow-sort-item.dragging,.part-manage-card.dragging{opacity:.45;transform:scale(.98);border-color:var(--orange)}.flow-sort-item b{font-size:10px;line-height:1.5}.flow-sort-item small{font-size:8px;color:var(--muted);margin-inline-start:auto}.drag-handle{color:var(--orange);font-size:18px;letter-spacing:-4px}
.question-inline-editor{margin-top:10px;border-top:1px solid #edf1f3}.question-inline-editor>summary{cursor:pointer;list-style:none;color:var(--blue);font-size:10px;font-weight:900;padding:9px 0 2px}.question-inline-editor>summary::-webkit-details-marker{display:none}.question-edit-panel{margin-top:8px;padding:12px;border-radius:12px;background:#f7fafc;border:1px solid #e4ecef}.question-edit-panel .question-builder{display:block}.editable-question{align-items:start}.parts-order-actions{margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f7fafc;border:1px dashed #d5e0e6;border-radius:13px;padding:10px 12px}.part-manage-card[draggable=true]{cursor:grab}
.review-strip{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#eef8fd;border:1px solid #d5edf9;border-radius:15px;padding:10px 13px;margin-bottom:14px}.review-strip b{font-size:11px}.review-strip a{background:white;border:1px solid #d7e7ef;border-radius:999px;padding:7px 10px;font-size:10px;font-weight:800}.flow-focus-card{max-width:760px;margin:auto}.flow-complete-card{text-align:center;margin-top:18px}.flow-progress-steps .step.locked{opacity:.45}.flow-progress-steps .step.ready{border-color:#cceaf8;background:#f6fcff}.mini-progress{height:6px;background:#edf1f3;border-radius:10px;overflow:hidden}.mini-progress i{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--orange));border-radius:inherit}.video-part-card{transition:.18s}.video-part-card:hover{transform:translateY(-3px)}
.protected-video{user-select:none;-webkit-user-select:none}.protected-player-frame{width:100%;height:100%;border:0;display:block}.video-click-shield{position:absolute;inset:0;z-index:4;pointer-events:none}.protection-note{padding:12px 15px}
.qr-box-large{position:relative;min-height:500px}.qr-box-large #qrcode{padding:18px}.qr-box-large #qrcode img,.qr-box-large #qrcode canvas{width:min(420px,72vw)!important;height:auto!important;aspect-ratio:1}.qr-fullscreen-btn{position:absolute;top:14px;left:14px;z-index:3}.qr-box-large:fullscreen{width:100vw;height:100vh;border-radius:0;display:grid;place-items:center;background:white}.qr-box-large:fullscreen #qrcode img,.qr-box-large:fullscreen #qrcode canvas{width:min(72vh,72vw)!important;max-width:none!important}.qr-box-large:fullscreen .qr-fullscreen-btn{top:24px;left:24px}
.attendance-cta-card{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(125deg,#071725,#0b3b57);color:white;border-radius:20px;padding:19px 22px;margin-bottom:18px;box-shadow:0 18px 45px rgba(7,23,37,.12)}.attendance-cta-card h2{margin:8px 0 4px;color:white;font-size:21px}.attendance-cta-card p{margin:0;color:#b9d1de;font-size:11px}.attendance-cta-icon{width:60px;height:60px;border-radius:18px;display:grid;place-items:center;background:var(--orange);font-size:27px;box-shadow:0 12px 32px rgba(0,168,232,.3)}
.scanner-card{max-width:720px;margin:auto}.scanner-stage{position:relative;background:#02080d;border-radius:22px;overflow:hidden;aspect-ratio:4/5;max-height:680px}.scanner-stage video{width:100%;height:100%;object-fit:cover}.scanner-frame{position:absolute;inset:18%;pointer-events:none}.scanner-frame i{position:absolute;width:54px;height:54px;border-color:var(--orange);border-style:solid}.scanner-frame i:nth-child(1){top:0;left:0;border-width:4px 0 0 4px}.scanner-frame i:nth-child(2){top:0;right:0;border-width:4px 4px 0 0}.scanner-frame i:nth-child(3){bottom:0;left:0;border-width:0 0 4px 4px}.scanner-frame i:nth-child(4){bottom:0;right:0;border-width:0 4px 4px 0}.scanner-status{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);background:rgba(7,23,37,.8);color:white;border-radius:999px;padding:9px 14px;font-size:11px;font-weight:800;white-space:nowrap}.scanner-status.success{background:rgba(15,115,155,.9)}.scanner-actions{display:flex;gap:10px;margin-top:14px}.scanner-actions .btn{flex:1}
.student-type-buttons span{min-width:120px}

@media(max-width:900px){.lesson-flow-editor{grid-template-columns:1fr}.flow-sortable{grid-template-columns:1fr 1fr}.qr-box-large{min-height:430px}.parts-order-actions{align-items:flex-start;flex-direction:column}.parts-order-actions .btn{width:100%}}
@media(max-width:560px){.flow-sortable{grid-template-columns:1fr}.attendance-cta-card{padding:16px}.attendance-cta-card h2{font-size:17px}.attendance-cta-icon{width:50px;height:50px}.scanner-stage{aspect-ratio:3/4}.qr-box-large{min-height:360px}.qr-fullscreen-btn{position:static;margin-bottom:10px}.code-bulk-grid{grid-template-columns:1fr}.export-buttons{grid-template-columns:1fr 1fr 1fr}.export-buttons span{min-width:0;font-size:9px;padding:9px 5px}}

/* ===== v1.4.1 landing energy polish =====
   Keep the learning interface energetic without crowding Arabic typography. */
.home-page{overflow-x:hidden}
.hero-copy{isolation:isolate}
.hero-copy::before{
  content:'';
  position:absolute;
  z-index:-2;
  width:260px;
  height:260px;
  right:-40px;
  top:72px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(0,168,232,.16) 0%,rgba(0,168,232,.07) 38%,transparent 70%);
  filter:blur(10px);
  pointer-events:none;
  animation:heroPulseGlow 7s ease-in-out infinite;
}
.hero-copy::after{
  content:'';
  position:absolute;
  z-index:-1;
  width:11px;
  height:11px;
  left:7%;
  top:20%;
  border:3px solid rgba(0,126,167,.42);
  border-radius:50%;
  box-shadow:42px 34px 0 -2px rgba(0,168,232,.34),78px -19px 0 -3px rgba(0,126,167,.24);
  pointer-events:none;
  animation:heroMoleculeFloat 6s ease-in-out infinite;
}
.hero-kicker{
  background:linear-gradient(105deg,rgba(255,255,255,.96),rgba(255,241,231,.92) 58%,rgba(234,246,253,.9));
  border-color:rgba(0,168,232,.13);
  box-shadow:0 12px 34px rgba(0,168,232,.08),0 8px 24px rgba(0,126,167,.06);
}
.hero h1 .hero-chemistry{
  color:var(--orange);
  font-weight:950;
  text-shadow:0 10px 28px rgba(0,168,232,.12);
}
.hero h1 .hero-chemistry::after{
  background:linear-gradient(90deg,var(--orange) 0 72%,var(--blue) 72% 100%);
  box-shadow:0 5px 18px rgba(0,126,167,.10);
}
.hero h1 .hero-first{
  position:relative;
  display:inline-block;
  z-index:0;
}
.hero h1 .hero-first::before{
  content:'';
  position:absolute;
  z-index:-1;
  right:-.06em;
  left:-.06em;
  height:.30em;
  bottom:.12em;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(0,126,167,.18),rgba(0,126,167,.07));
  transform:rotate(-1deg);
}
.hero-actions .btn-primary{
  box-shadow:0 16px 34px rgba(0,168,232,.28),0 4px 0 rgba(190,71,8,.08);
}
.hero-meta span:nth-child(2) i{background:var(--orange)}
.hero-meta span:nth-child(3) i{background:linear-gradient(135deg,var(--blue),var(--orange))}
@keyframes heroPulseGlow{50%{transform:translate3d(-16px,8px,0) scale(1.08);opacity:.78}}
@keyframes heroMoleculeFloat{50%{transform:translate3d(0,-10px,0) rotate(8deg)}}
@media(max-width:820px){
  .hero-copy::before{width:210px;height:210px;right:-35px;top:42px;opacity:.72}
  .hero-copy::after{display:none}
}
@media(prefers-reduced-motion:reduce){
  .hero-copy::before,.hero-copy::after{animation:none!important}
}

/* ===== v1.4.6 student player / access timer / chemistry authoring polish ===== */
.access-timer-card{margin:0 0 16px;padding:15px 17px;border:1px solid #cfe6f3;border-radius:18px;background:linear-gradient(135deg,#f4fbff,#fff8f2);box-shadow:0 12px 32px rgba(7,23,37,.055)}
.access-timer-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.access-timer-head>div{display:grid;gap:3px}.access-timer-head small{color:#6b7e8b;font-size:10px;font-weight:700}.access-timer-head strong{color:var(--navy);font-size:13px}.access-timer-value{direction:rtl;text-align:left;color:var(--orange);font-size:16px;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
.access-timer-track{height:9px;margin:12px 0 8px;border-radius:999px;background:#e3ebef;overflow:hidden}.access-timer-track i{display:block;height:100%;width:100%;margin-left:auto;border-radius:inherit;background:linear-gradient(90deg,var(--blue),var(--orange));transition:width .8s linear}
.access-timer-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;color:#778691;font-size:9px;line-height:1.6}.access-timer-card.is-ready{border-color:#ffd7bf;background:linear-gradient(135deg,#fff8f2,#f7fbfd)}.access-timer-card.is-ready .access-timer-track i{background:linear-gradient(90deg,#b7c8d2,var(--orange))}.access-timer-card.is-expired{border-color:#f2c9cc;background:#fff4f4}.access-timer-card.is-expired .access-timer-value{color:var(--danger)}

.chem-word-toolbar{position:relative;display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:-2px 0 10px;padding:8px;border:1px solid #dce6eb;border-radius:13px;background:#f8fbfc}.chem-word-toolbar.compact{margin-top:7px}.chem-format-btn{min-width:43px;height:34px;padding:4px 10px;border:1px solid #cedce4;border-radius:9px;background:#fff;color:var(--navy);font-weight:900;line-height:1}.chem-format-btn sub,.chem-format-btn sup{font-size:10px}.chem-format-btn:hover,.chem-format-btn:focus-visible{border-color:var(--blue);color:var(--blue);outline:0;box-shadow:0 0 0 3px rgba(0,126,167,.08)}.chem-format-btn.normal{font-weight:800;color:#6f7f8a}.chem-symbols-wrap{position:relative}.chem-word-toolbar .chem-toggle{height:34px;background:white}.chem-word-toolbar .chem-popover{left:auto;right:0;top:calc(100% + 7px);width:min(390px,90vw)}.chem-format-hint{margin-inline-start:auto;color:#7c8b95;font-size:9px;font-weight:600}.chem-token{min-width:42px}

@media(max-width:820px){
  .hero-bubble.one{top:auto;bottom:30%;left:14px;right:auto}
  .hero-bubble.two{bottom:7%;right:14px}
}
@media(max-width:560px){
  .hero-bubble{font-size:11px;padding:11px 13px;max-width:calc(100% - 28px)}
  .hero-bubble.one{bottom:31%;left:12px}
  .hero-bubble.two{bottom:7%;right:12px}
  .access-timer-head{align-items:flex-start;flex-direction:column;gap:7px}.access-timer-value{text-align:right;font-size:14px;white-space:normal}.access-timer-foot{align-items:flex-start;flex-direction:column;gap:2px}
  .chem-format-hint{width:100%;margin:1px 2px 0}.chem-word-toolbar .chem-popover{right:0;left:auto;width:min(330px,calc(100vw - 44px))}
}


/* ===== v1.4.12 payment screenshot preview ===== */
.payment-upload-preview{display:grid;grid-template-columns:150px 1fr;gap:14px;align-items:center;margin:-2px 0 12px;padding:12px;border:1px solid #dce7ec;border-radius:18px;background:#fff}.payment-upload-preview img{width:150px;aspect-ratio:16/10;object-fit:cover;border-radius:13px;background:#f2f5f7;border:1px solid #e2e9ed}.payment-upload-preview>div{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}.payment-upload-preview b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.payment-upload-preview small{color:var(--muted);font-size:10px;line-height:1.7}.payment-upload-note{margin:0 0 12px}.upload-dropzone:has(input:focus-visible){outline:3px solid rgba(0,126,167,.18);outline-offset:2px}
@media(max-width:560px){.payment-upload-preview{grid-template-columns:1fr}.payment-upload-preview img{width:100%;max-height:240px;aspect-ratio:auto}.payment-upload-preview .btn{width:100%}}

.selectable-resource-card.is-disabled{opacity:.58;cursor:not-allowed}.selectable-resource-card.is-disabled:hover{transform:none;border-color:transparent}.selectable-resource-card.is-disabled .resource-check{background:#eef1f3;color:#9aa6ad}

/* ===== v1.5.0 purchases / centers / attendance / documents / essay grading ===== */
.purchase-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:820px}.purchase-type-card{min-height:190px;padding:24px;border:1px solid #dce7ec;border-radius:24px;background:#fff;color:var(--navy);text-align:right;cursor:pointer;box-shadow:0 14px 36px rgba(7,23,37,.06);transition:.2s ease}.purchase-type-card:hover{transform:translateY(-3px);border-color:rgba(0,168,232,.45);box-shadow:0 18px 42px rgba(7,23,37,.09)}.purchase-type-card>span{display:grid;place-items:center;width:48px;height:48px;margin-bottom:24px;border-radius:15px;background:#fff2e9;color:var(--orange);font-size:23px;font-weight:900}.purchase-type-card b{display:block;font-size:20px;margin-bottom:7px}.purchase-type-card small{color:#748692;line-height:1.8}.wizard-stage{display:grid;gap:18px}.wizard-head{display:flex;align-items:center;gap:14px}.wizard-back{border:0;background:transparent;color:var(--blue);font-weight:800;cursor:pointer}.select-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.selectable-resource-card{position:relative;display:block;padding:18px;border:1px solid #dfe8ed;border-radius:20px;background:#fff;cursor:pointer;transition:.18s ease}.selectable-resource-card input,.lesson-choice>input{position:absolute;opacity:0;pointer-events:none}.selectable-resource-card.selected,.lesson-choice.selected{border-color:var(--orange);box-shadow:0 0 0 3px rgba(0,168,232,.09)}.resource-check{position:absolute;left:12px;top:12px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#edf2f5;color:#a2afb7;font-size:11px}.selected>.resource-check{background:var(--orange);color:#fff}.selectable-resource-card small{color:var(--blue);font-weight:800}.selectable-resource-card h3{margin:10px 0}.selectable-resource-card strong{color:var(--orange)}.selectable-resource-card p{margin:8px 0 0;color:#738590;font-size:10px}.lesson-purchase-groups{display:grid;gap:11px}.lesson-purchase-chapter{border:1px solid #dfe8ed;border-radius:20px;background:#fff;overflow:hidden}.lesson-purchase-chapter>summary{display:flex;justify-content:space-between;align-items:center;padding:17px 18px;cursor:pointer;list-style:none}.lesson-purchase-chapter>summary>div{display:grid;gap:2px}.lesson-purchase-chapter>summary small{color:#85939c}.lesson-choice-list{display:grid;border-top:1px solid #eef2f4}.lesson-choice{position:relative;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:15px 50px 15px 17px;border-bottom:1px solid #eef2f4;cursor:pointer}.lesson-choice:last-child{border-bottom:0}.lesson-choice .resource-check{right:14px;left:auto;top:50%;transform:translateY(-50%)}.lesson-choice>div{display:grid;gap:4px}.lesson-choice small{color:#81909a}.lesson-choice strong{color:var(--orange);white-space:nowrap}.lesson-choice.is-disabled{opacity:.52;cursor:not-allowed}.purchase-selection-bar{position:sticky;bottom:10px;z-index:8;display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:18px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px)}.purchase-selection-bar small{color:#81909a}.purchase-selection-bar h3{margin:3px 0}.payment-checkout-layout{display:grid;grid-template-columns:minmax(230px,.7fr) minmax(0,1.3fr);gap:16px}.payment-summary-card{padding:19px;border:1px solid #dfe8ed;border-radius:20px;background:#fff}.summary-line{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;font-size:11px}.payment-method-buttons{display:flex;gap:9px;flex-wrap:wrap}.payment-method-btn{padding:11px 14px;border:1px solid #dce6eb;border-radius:13px;background:#fff;cursor:pointer;font-weight:800}.payment-method-btn.active{border-color:var(--orange);background:#fff6f0;color:var(--orange)}.payment-account-panel{display:flex;align-items:center;gap:10px;padding:12px;margin:12px 0;border-radius:14px;background:#f4f8fa}.payment-account-panel strong{direction:ltr}.copy-account{margin-inline-start:auto;border:0;background:transparent;color:var(--blue);font-weight:800;cursor:pointer}

.center-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.center-card{display:block;min-height:150px;padding:18px;border:1px solid #dfe8ed;border-radius:22px;background:#fff;color:var(--navy);box-shadow:0 12px 30px rgba(7,23,37,.045);transition:.18s ease}.center-card:hover,.center-card.active{transform:translateY(-2px);border-color:rgba(0,126,167,.42);box-shadow:0 16px 36px rgba(7,23,37,.08)}.center-card h3{margin:18px 0 7px}.center-card p{color:#7e8d96;font-size:10px}.add-center-card{display:grid;gap:8px}.add-center-card h3{margin:0}.dashboard-centers .center-card{min-height:120px}.attendance-session-list{max-height:440px;overflow:auto}.attendance-session-row,.attendance-person-row,.grading-attempt-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 2px;border-bottom:1px solid #edf1f3;color:var(--navy)}.attendance-session-row:last-child,.attendance-person-row:last-child,.grading-attempt-row:last-child{border-bottom:0}.quiz-score-grid{display:grid;gap:8px}.quiz-score-row{display:grid;grid-template-columns:minmax(180px,1fr) 130px auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f3}.quiz-score-row>div{display:grid;gap:3px}.quiz-score-row small{color:#83919a}.quiz-score-row input{margin:0}.grading-attempt-row>div{display:grid;gap:4px}.grading-attempt-row small{color:#81909a}.essay-grade-card{display:grid;gap:12px;padding:16px 0;border-bottom:1px solid #e8eef1}.essay-grade-card:last-of-type{border-bottom:0}.essay-answer-image{display:block;max-width:520px}.essay-answer-image img{display:block;width:100%;max-height:520px;object-fit:contain;border:1px solid #dfe7eb;border-radius:16px;background:#f5f7f8}.essay-upload-box{display:grid;gap:10px;padding:14px;border:1px dashed #c9dbe5;border-radius:17px;background:#f9fcfd}.essay-upload{margin:0}.document-grid,.document-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.lesson-documents{margin:0 0 18px}.document-card{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;color:var(--navy)}.document-card>div{display:grid;gap:3px}.document-card small{color:#81909a}.document-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:#EFFAFF;color:#007ea7;font-size:11px;font-weight:900}.document-admin-card{display:flex;align-items:center;justify-content:space-between;gap:12px}.document-admin-card>div:first-child{display:grid;gap:4px}.document-admin-card small{color:#84939c}.content-admin-list{display:grid;gap:9px}.content-admin-item{border:1px solid #e0e8ec;border-radius:15px;padding:4px 12px;background:#fff}.content-admin-main{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;color:var(--navy)}.content-admin-main span{color:#81909a;font-size:10px}.content-admin-item details{border-top:1px solid #eef2f4;padding:8px 0}.content-admin-item summary,.saved-question summary{cursor:pointer;font-weight:800;padding:7px 0}.saved-question{padding:8px 0;border-bottom:1px solid #edf1f3}.flow-sort-item .field input{background:#fff}.protected-player-frame:fullscreen,.protected-player-frame:-webkit-full-screen{width:100vw!important;height:100vh!important;max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;background:#000}.video-shell:has(.protected-player-frame:fullscreen){border-radius:0}

@media(max-width:980px){.center-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.select-card-grid,.document-grid,.document-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-checkout-layout{grid-template-columns:1fr}}
@media(max-width:620px){.purchase-type-grid,.center-card-grid,.select-card-grid,.document-grid,.document-admin-grid{grid-template-columns:1fr}.purchase-type-card{min-height:150px}.purchase-selection-bar{grid-template-columns:1fr 1fr}.purchase-selection-bar .btn{grid-column:1/-1;width:100%}.lesson-choice{grid-template-columns:1fr;padding-inline-start:48px}.lesson-choice strong{justify-self:start}.quiz-score-row{grid-template-columns:1fr 110px}.quiz-score-row .btn,.quiz-score-row>span{grid-column:1/-1}.wizard-head{align-items:flex-start}.content-admin-main{align-items:flex-start;flex-direction:column}.document-admin-card{align-items:flex-start;flex-direction:column}.document-admin-card .actions{width:100%}}
.device-admin-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #edf1f3}.device-admin-row:last-child{border-bottom:0}.video-shell.pseudo-fullscreen{position:fixed!important;inset:0!important;z-index:999999!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;background:#000!important}.video-shell.pseudo-fullscreen .protected-player-frame{width:100%!important;height:100%!important;border:0!important;border-radius:0!important}.player-pseudo-fullscreen{overflow:hidden!important;overscroll-behavior:none}
.schedule-day-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.schedule-day-grid label{position:relative;cursor:pointer}.schedule-day-grid input{position:absolute;opacity:0;pointer-events:none}.schedule-day-grid span{display:block;text-align:center;padding:10px 7px;border:1px solid #e3e8ee;border-radius:12px;background:#fff;font-weight:700;font-size:13px}.schedule-day-grid input:checked+span{border-color:#142433;background:#142433;color:#fff}@media(max-width:600px){.schedule-day-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ===== v1.5.1 centers workspace UI refresh ===== */
.centers-page{display:grid;gap:18px}.centers-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:4px 2px 2px}.centers-page-head h1{margin:5px 0 0;font-size:31px;line-height:1.25;color:var(--navy);letter-spacing:-.03em}.centers-page-head p{margin:7px 0 0;color:var(--muted);font-size:13px}.centers-kicker{display:inline-flex;align-items:center;gap:7px;color:var(--orange);font-size:10px;font-weight:900}.centers-kicker:before{content:'';width:7px;height:7px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 5px rgba(0,168,232,.1)}.center-add-jump{min-width:140px}

.centers-empty-state{width:min(920px,100%);min-height:390px;margin:30px auto 0;display:grid;grid-template-columns:minmax(250px,.75fr) minmax(0,1.25fr);overflow:hidden;border:1px solid rgba(7,23,37,.07);border-radius:28px;background:#fff;box-shadow:0 24px 70px rgba(7,23,37,.08)}.centers-empty-art{position:relative;display:grid;place-items:center;min-height:390px;background:linear-gradient(145deg,#071725,#0b3650);overflow:hidden}.centers-empty-art:before,.centers-empty-art:after{content:'';position:absolute;border-radius:50%;pointer-events:none}.centers-empty-art:before{width:250px;height:250px;left:-80px;top:-85px;background:rgba(0,126,167,.24);filter:blur(3px)}.centers-empty-art:after{width:190px;height:190px;right:-65px;bottom:-75px;background:rgba(0,168,232,.23)}.center-building-icon{position:relative;z-index:1;width:116px;height:130px;border:2px solid rgba(255,255,255,.75);border-radius:24px 24px 15px 15px;padding:25px 20px 20px;display:grid;grid-template-columns:repeat(2,1fr);gap:12px;box-shadow:0 25px 55px rgba(0,0,0,.18),inset 0 0 0 7px rgba(255,255,255,.04)}.center-building-icon:before{content:'';position:absolute;left:31px;right:31px;bottom:-1px;height:29px;border-radius:10px 10px 0 0;background:var(--orange)}.center-building-icon i{display:block;height:13px;border-radius:4px;background:#fff;opacity:.88}.centers-empty-copy{padding:44px 42px;display:flex;flex-direction:column;justify-content:center}.centers-empty-copy>span{color:var(--blue);font-size:10px;font-weight:900}.centers-empty-copy h2{margin:8px 0 7px;font-size:27px;color:var(--navy)}.centers-empty-copy>p{max-width:560px;margin:0 0 24px;color:#758590;font-size:12px;line-height:1.9}.center-create-form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}.center-create-form .field label small{color:#9aa7af;font-weight:600}.center-create-form .btn{height:47px;min-width:130px}

.centers-picker-section{padding:2px 0}.center-selection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.centers-page .center-select-card{position:relative;min-height:188px;padding:18px 19px 16px;border:1px solid #dfe8ed;border-radius:22px;background:rgba(255,255,255,.96);box-shadow:0 10px 30px rgba(7,23,37,.04);overflow:hidden}.centers-page .center-select-card:before{content:'';position:absolute;inset-inline-start:0;top:0;bottom:0;width:4px;background:transparent;transition:.18s}.centers-page .center-select-card:hover{transform:translateY(-3px);border-color:#c8dce6;box-shadow:0 18px 42px rgba(7,23,37,.08)}.centers-page .center-select-card.active{border-color:rgba(0,126,167,.42);background:linear-gradient(145deg,#fff,#f7fcff);box-shadow:0 18px 46px rgba(7,23,37,.08)}.centers-page .center-select-card.active:before{background:linear-gradient(180deg,var(--orange),var(--blue))}.center-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.center-card-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#EAF4F8;color:var(--blue);font-size:19px;font-weight:900}.center-status-dot{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;font-size:9px;font-weight:900}.center-status-dot:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.center-status-dot.is-active{background:#EAF5F9;color:#165371}.center-status-dot.is-paused{background:#fff0f0;color:#a52d34}.center-card-copy{margin-top:18px}.center-card-copy h3{margin:0 0 7px!important;font-size:18px;color:var(--navy)}.center-card-copy p{margin:0!important;min-height:20px;font-size:10px!important;color:#84939d!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.center-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:20px;padding-top:13px;border-top:1px solid #edf1f3}.center-card-foot b{font-size:10px;color:#5f727f}.center-card-foot b strong{font-size:15px;color:var(--navy);margin-inline-end:3px}.center-card-foot>span{font-size:10px;font-weight:900;color:var(--blue)}

.center-create-drawer:not([open]){display:none}.center-create-drawer{border:1px dashed #cddde6;border-radius:17px;background:rgba(255,255,255,.7);overflow:hidden}.center-create-drawer>summary{list-style:none;cursor:pointer;padding:13px 17px;color:var(--blue);font-size:11px;font-weight:900;text-align:center}.center-create-drawer>summary::-webkit-details-marker{display:none}.center-create-drawer[open]>summary{border-bottom:1px solid #e8eef1;background:#f8fbfc}.center-create-form-inline{padding:17px;background:#fff}

.center-workspace{display:grid;gap:18px;margin-top:4px}.center-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 23px;border-radius:22px;background:linear-gradient(120deg,#071725,#0a2f46);color:#fff;box-shadow:0 18px 50px rgba(7,23,37,.14)}.center-workspace-title{display:flex;align-items:center;gap:14px;min-width:0}.center-workspace-icon{display:grid;place-items:center;width:52px;height:52px;flex:0 0 52px;border-radius:16px;background:linear-gradient(135deg,var(--orange),#ff8b48);font-size:22px;box-shadow:0 12px 28px rgba(0,168,232,.28)}.center-workspace-title small{font-size:9px;color:#8fb1c3}.center-workspace-title h2{margin:2px 0 4px;color:#fff;font-size:22px}.center-workspace-title p{margin:0;color:#9cb6c5;font-size:10px}.center-workspace-stats{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.center-workspace-stats span{padding:8px 11px;border:1px solid rgba(255,255,255,.1);border-radius:999px;background:rgba(255,255,255,.06);color:#c6d6df;font-size:9px;font-weight:800}.center-workspace-stats span b{color:#fff;font-size:12px;margin-inline-end:3px}.center-workspace-stats .ok{color:#BAE1F0;background:rgba(31,126,163,.15);border-color:rgba(55,156,196,.18)}.center-workspace-stats .off{color:#ffc5c5;background:rgba(194,52,58,.15);border-color:rgba(255,119,124,.16)}

.center-control-grid{display:grid;grid-template-columns:minmax(320px,.82fr) minmax(0,1.18fr);gap:18px;align-items:start}.center-control-grid>.card{padding:22px}.center-panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px;padding-bottom:15px;border-bottom:1px solid #edf1f3}.center-panel-title>div{display:flex;align-items:center;gap:10px}.center-panel-title>div>span{display:grid;place-items:center;width:31px;height:31px;border-radius:10px;background:#EAF4F8;color:var(--blue);font-size:9px;font-weight:900}.center-panel-title h3{margin:0;font-size:16px;color:var(--navy)}.center-panel-title p{margin:1px 0 0;max-width:260px;color:#84939c;font-size:9px;line-height:1.7;text-align:left}.center-settings-card .form-grid{grid-template-columns:1fr 1fr}.center-visibility-toggle{grid-column:1/-1;display:flex;align-items:center;gap:11px;padding:12px 13px;border:1px solid #e2e9ed;border-radius:14px;background:#f9fbfc;cursor:pointer}.center-visibility-toggle input{width:18px;height:18px;accent-color:var(--blue)}.center-visibility-toggle span{display:grid;gap:2px}.center-visibility-toggle b{font-size:10px;color:var(--navy)}.center-visibility-toggle small{font-size:8px;color:#87949d}.center-save-btn{margin-top:14px;min-width:145px}.input-with-unit{position:relative}.input-with-unit input{padding-inline-end:62px!important}.input-with-unit span{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#8a98a1;font-size:9px;font-weight:800;pointer-events:none}

.center-table-card{padding:0!important;overflow:hidden}.center-table-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:19px 21px;border-bottom:1px solid #edf1f3}.center-table-heading h2{margin:0 0 4px;font-size:17px;color:var(--navy)}.center-table-heading p{margin:0;color:#87949c;font-size:9px}.center-count-badge{display:grid;place-items:center;min-width:34px;height:34px;padding:0 10px;border-radius:11px;background:#EAF4F8;color:var(--blue);font-size:12px;font-weight:900}.center-table-card .data-table-wrap{border:0;border-radius:0}.center-table-card .data-table th{background:#f8fafb}.center-inline-empty{display:flex;align-items:center;justify-content:center;gap:12px;min-height:125px;padding:24px}.center-inline-empty>span{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#f1f6f8;color:#8ba0ad;font-size:18px}.center-inline-empty>div{display:grid;gap:3px}.center-inline-empty b{font-size:11px;color:var(--navy)}.center-inline-empty small{font-size:9px;color:#89969e}

@media(max-width:1120px){.center-selection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.center-control-grid{grid-template-columns:1fr}.center-panel-title p{text-align:right}.center-workspace-head{align-items:flex-start;flex-direction:column}.center-workspace-stats{justify-content:flex-start}}
@media(max-width:760px){.centers-page-head{align-items:flex-start;flex-direction:column}.centers-page-head .btn{width:100%}.centers-empty-state{grid-template-columns:1fr;margin-top:8px}.centers-empty-art{min-height:190px}.center-building-icon{transform:scale(.82)}.centers-empty-copy{padding:26px 22px}.center-create-form,.center-create-form-inline{grid-template-columns:1fr}.center-create-form .btn{width:100%}.center-selection-grid{grid-template-columns:1fr}.center-workspace-head{padding:18px}.center-workspace-title{align-items:flex-start}.center-workspace-stats{width:100%}.center-settings-card .form-grid{grid-template-columns:1fr}.center-panel-title{flex-direction:column}.center-panel-title p{max-width:none}.center-save-btn{width:100%}.center-table-heading{padding:16px}.center-table-card .data-table{min-width:670px}}
@media(max-width:480px){.centers-page-head h1{font-size:26px}.centers-empty-copy h2{font-size:23px}.center-workspace-title h2{font-size:18px}.center-workspace-icon{width:44px;height:44px;flex-basis:44px}.center-workspace-stats span{flex:1;text-align:center;white-space:nowrap}.centers-page .center-select-card{min-height:168px}.center-card-copy{margin-top:14px}.center-card-foot{margin-top:16px}}


/* ===== v1.5.2 student PWA install experience ===== */
.pwa-install-layer{position:fixed;inset:0;z-index:240;display:grid;place-items:center;padding:18px;background:rgba(3,15,24,.58);backdrop-filter:blur(9px);animation:pwaLayerIn .2s ease}
.pwa-install-card{position:relative;width:min(100%,460px);overflow:hidden;border:1px solid rgba(255,255,255,.72);border-radius:28px;padding:24px;background:linear-gradient(155deg,#fff,#f7fbfd);box-shadow:0 30px 100px rgba(3,15,24,.32);color:var(--navy);animation:pwaCardIn .24s ease}
.pwa-install-card:before{content:'';position:absolute;width:190px;height:190px;border-radius:50%;top:-110px;right:-80px;background:rgba(0,126,167,.10);pointer-events:none}.pwa-install-card:after{content:'';position:absolute;width:150px;height:150px;border-radius:50%;bottom:-95px;left:-70px;background:rgba(0,168,232,.10);pointer-events:none}
.pwa-install-close{position:absolute;top:13px;left:13px;z-index:3;width:34px;height:34px;border:0;border-radius:11px;background:#eef3f5;color:#647682;font-size:22px;line-height:1;box-shadow:none}
.pwa-install-brand{position:relative;z-index:1;display:flex;align-items:center;gap:13px;padding-inline-start:2px;padding-inline-end:34px}.pwa-install-brand>span{display:grid;place-items:center;width:62px;height:62px;flex:0 0 62px;border-radius:19px;background:linear-gradient(145deg,#071725,#0b344d);box-shadow:0 12px 28px rgba(7,23,37,.16)}.pwa-install-brand img{width:46px;height:46px;object-fit:contain}.pwa-install-brand div{display:grid;gap:3px}.pwa-install-brand small{font-size:9px;letter-spacing:.08em;color:var(--blue);font-weight:900}.pwa-install-brand b{font-size:20px;line-height:1.35}
.pwa-install-copy{position:relative;z-index:1;margin:19px 0 13px;color:#6f808b;font-size:12px;line-height:1.9}.pwa-install-benefits{position:relative;z-index:1;display:flex;gap:7px;flex-wrap:wrap;margin-bottom:19px}.pwa-install-benefits span{padding:7px 9px;border:1px solid #dce9ef;border-radius:999px;background:#f7fbfd;color:#55707f;font-size:9px;font-weight:800}
.pwa-install-actions{position:relative;z-index:1;display:grid;grid-template-columns:1fr auto;gap:9px}.pwa-install-actions .btn{min-height:46px}.pwa-install-primary{font-size:13px}.pwa-install-foot{position:relative;z-index:1;display:block;margin-top:12px;color:#93a0a8;font-size:8px;line-height:1.7}
.pwa-install-progress{position:relative;z-index:1;padding:15px;border:1px solid #dbe8ee;border-radius:17px;background:#f8fbfc}.pwa-install-progress-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.pwa-install-progress-head b{font-size:11px}.pwa-install-progress-head span{font-weight:900;color:var(--orange)}.pwa-install-progress-track{height:10px;overflow:hidden;border-radius:999px;background:#e4ecef}.pwa-install-progress-track i{display:block;width:42%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue),var(--orange));animation:pwaInstallSweep 1.15s ease-in-out infinite}.pwa-install-progress>small{display:block;margin-top:9px;color:#7f8f99;font-size:9px;line-height:1.7}.pwa-install-layer.is-done .pwa-install-progress{border-color:#c9e8f3;background:#F2F8FB}.pwa-install-layer.is-done .pwa-install-progress-track i{width:100%;animation:none;background:#008fbd}.pwa-install-layer.is-done .pwa-install-progress-head span{color:#008fbd;font-size:18px}
.pwa-ios-help{position:relative;z-index:1;margin:0 0 15px;padding:13px 14px;border:1px solid #d9e7ee;border-radius:15px;background:#f5fafc}.pwa-ios-help b,.pwa-ios-help span{display:block}.pwa-ios-help b{margin-bottom:4px;font-size:11px}.pwa-ios-help span{color:#71848f;font-size:9px;line-height:1.8}
@keyframes pwaInstallSweep{0%{transform:translateX(135%)}50%{transform:translateX(-45%)}100%{transform:translateX(-235%)}}@keyframes pwaLayerIn{from{opacity:0}}@keyframes pwaCardIn{from{opacity:0;transform:translateY(16px) scale(.98)}}
@media(max-width:560px){.pwa-install-layer{align-items:end;padding:10px}.pwa-install-card{width:100%;border-radius:25px;padding:21px 18px calc(18px + env(safe-area-inset-bottom))}.pwa-install-brand>span{width:56px;height:56px;flex-basis:56px}.pwa-install-brand img{width:42px;height:42px}.pwa-install-brand b{font-size:18px}.pwa-install-actions{grid-template-columns:1fr}.pwa-install-actions .btn{width:100%}}
@media(prefers-reduced-motion:reduce){.pwa-install-layer,.pwa-install-card,.pwa-install-progress-track i{animation:none!important}}

/* ===== v1.6.0 quiz/homework review + Word-style authoring ===== */
.result-score-card{position:relative;overflow:hidden;padding:24px}.result-score-card:after{content:'';position:absolute;inset-inline-end:-55px;top:-70px;width:170px;height:170px;border-radius:50%;background:rgba(0,126,167,.07);pointer-events:none}.result-score-card h2{position:relative;z-index:1;margin:10px 0 6px;font-size:23px}.result-score-preview{position:relative;z-index:1;display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px;padding:13px 15px;border:1px solid #e3ebef;border-radius:15px;background:#f8fbfc}.result-score-preview b{font-size:20px;color:var(--navy)}.result-score-preview span{font-size:10px;color:#71838e;font-weight:800}
.detailed-result-card{padding:20px;border-inline-end:4px solid #df4c52}.result-question-head{display:grid;gap:10px;margin-bottom:14px}.result-question-head>.pill{justify-self:start}.rich-question-text{line-height:1.9;overflow-wrap:anywhere}.rich-question-text p,.answer-rich p,.essay-model-answer p{margin:.25em 0}.rich-question-text ul,.rich-question-text ol,.answer-rich ul,.answer-rich ol{padding-inline-start:22px}.answer-compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}.answer-compare{min-width:0;padding:14px;border:1px solid #e4eaee;border-radius:15px;background:#fafcfd}.answer-compare.student{border-color:#f0d7d8;background:#fff9f9}.answer-compare.correct{border-color:#CFE2E9;background:#F7FBFC}.answer-compare small{display:block;margin-bottom:8px;font-size:9px;font-weight:900;color:#7b8a93}.answer-compare>div{display:flex;align-items:flex-start;gap:9px;font-size:12px;font-weight:800}.answer-letter{display:grid;place-items:center;min-width:28px;height:28px;padding:0 7px;border-radius:9px;background:#edf4f7;color:var(--navy);font-size:10px}.answer-rich{min-width:0;flex:1;line-height:1.8}
.essay-student-review{display:grid;gap:12px;margin-bottom:12px}.essay-model-answer{margin-top:11px;padding:12px 14px;border:1px solid #dce9ef;border-radius:13px;background:#f7fbfd}.essay-model-answer>b{display:block;margin-bottom:6px;font-size:10px;color:var(--blue)}.essay-grade-question{margin:12px 0;font-weight:800}.grading-source-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.section-title.compact{margin:0 0 10px}.section-title.compact h3{margin:7px 0 2px}

.word-rich-editor{width:100%;min-height:150px}.word-rich-editor-option{min-height:110px}.jodit-container{direction:rtl!important;border-radius:14px!important;border-color:#dbe4e9!important;overflow:hidden;box-shadow:0 4px 16px rgba(7,23,37,.04)}.jodit-toolbar__box{direction:rtl!important;background:#f8fafb!important;border-color:#e2e9ed!important}.jodit-toolbar-button__button{min-width:32px!important}.jodit-workplace{background:#fff!important}.jodit-wysiwyg{direction:rtl!important;text-align:right!important;font-family:inherit!important;font-size:14px!important;line-height:1.9!important;padding:14px 16px!important}.jodit-status-bar{min-height:5px!important}.jodit-status-bar__item-right{display:none!important}.question-option-grid .jodit-wysiwyg{font-size:12px!important}.question-option-grid .jodit-toolbar-button__button{min-width:29px!important}

.center-settings-stack{display:grid;gap:12px;min-width:0}.center-control-grid .center-settings-stack>.card{padding:22px}.center-delete-card{display:flex;align-items:center;justify-content:space-between;gap:15px;border-color:#f0d5d6!important;background:#fffafa!important}.center-delete-card>div{display:grid;gap:3px}.center-delete-card b{font-size:11px;color:#9f2f35}.center-delete-card small{max-width:430px;color:#8d6e70;font-size:8px;line-height:1.75}.center-delete-card .btn{flex:0 0 auto}

@media(max-width:760px){.answer-compare-grid{grid-template-columns:1fr}.result-score-card{padding:19px}.result-score-card h2{font-size:19px}.center-delete-card{align-items:stretch;flex-direction:column}.center-delete-card .btn{width:100%}.jodit-toolbar__box{overflow-x:auto}.question-option-grid{grid-template-columns:1fr!important}}


/* ===== Islam Elshafie v60 bridge ===== */
:root{--islam-green:#00a8e8;--islam-mint:#62cdf4;--islam-paper:#F2FBFF}
body.app-body{font-family:'Alexandria','Cairo',system-ui,sans-serif;background:#eef8fc}
.side-brand img{filter:none;border-radius:13px;background:#fff;padding:5px}
.side-brand b{font-size:13px}.side-brand span{color:#9CBBC7}
.wallet-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(0,52,89,.08);background:#fff;border-radius:12px;padding:9px 12px;font-size:11px;box-shadow:0 7px 24px rgba(0,52,89,.06)}
.wallet-chip b{color:var(--orange)}
.student-code-chip{font-size:10px;color:#505E65}.student-code-chip b{color:var(--navy)}
.card-link{display:block}.locked-card{opacity:.86}.locked-card .content-thumb:after{content:'🔒';position:absolute;inset:0;display:grid;place-items:center;background:rgba(0,52,89,.34);color:#fff;font-size:28px;backdrop-filter:blur(2px)}
.chapter-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.lesson-list{display:grid;gap:14px}.lesson-card{background:#fff;border:1px solid rgba(0,52,89,.08);border-radius:20px;padding:16px;box-shadow:0 12px 36px rgba(0,52,89,.055)}.lesson-card h3{margin:9px 0 5px;color:var(--navy)}.lesson-card p{color:var(--muted);font-size:11px;line-height:1.7}.lesson-card .bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}.lesson-number{font-size:9px;color:var(--orange);font-weight:900;letter-spacing:.08em}.mini-progress{height:7px;border-radius:99px;background:#E7EDEF;overflow:hidden}.mini-progress i{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--orange));border-radius:inherit}.video-part-card{display:block}.video-part-card h3{margin:10px 0 8px}.muted{color:var(--muted)}.small{font-size:10px}.stack{display:grid;gap:8px}.actions{display:flex;gap:8px;flex-wrap:wrap}.btn-sm{padding:9px 12px;border-radius:11px;font-size:10px}.pill{display:inline-flex;align-items:center;justify-content:center;border-radius:99px;padding:6px 9px;background:#EEF2F3;color:#5B686F;font-size:9px;font-weight:800}.pill.green{background:#e7f8ff;color:#0C5478}.pill.blue{background:#e7f8ff;color:#007ea7}.pill.orange{background:#EAF9FF;color:#0B5E88}.pill.red{background:#fff0f0;color:#aa3038}
.empty-state{text-align:center;padding:42px 25px}.empty-state .big{font-size:42px}.empty-state h3{margin:12px 0 7px}.empty-state p{color:var(--muted);font-size:12px}.section-title{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:16px}.section-title h1,.section-title h2{margin:0;color:var(--navy)}.section-title p{margin:5px 0 0;color:var(--muted);font-size:11px}.card{background:#fff;border:1px solid rgba(0,52,89,.075);border-radius:20px;padding:20px;box-shadow:0 14px 44px rgba(0,52,89,.055)}
.wallet-balance-card{background:linear-gradient(145deg,var(--navy),#005b7c);color:#fff}.wallet-balance-card small{color:#9CBBC7}.wallet-balance-card strong{display:block;font-size:38px;margin:11px 0;color:var(--mint,#62cdf4)}.wallet-topup-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}.wallet-topup-grid button{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.08);color:#fff;border-radius:12px;padding:10px;font-weight:800}.wallet-custom{display:flex;gap:8px}.wallet-custom input{min-width:0;flex:1;border:0;border-radius:12px;padding:11px}.tx-row{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #edf1ee}.tx-row:last-child{border-bottom:0}.tx-row div{display:grid;gap:4px}.tx-row small{color:var(--muted);font-size:9px}.tx-amount{font-weight:900}.tx-amount.plus{color:var(--success)}.tx-amount.minus{color:var(--danger)}
.notification-row{display:flex;gap:12px;align-items:flex-start;padding:14px;border-bottom:1px solid #edf1ee}.notification-row:last-child{border-bottom:0}.notification-row.unread{background:#F2FBFF}.notification-dot{width:9px;height:9px;border-radius:50%;background:var(--orange);margin-top:6px;flex:0 0 9px}.notification-copy{flex:1}.notification-copy b{color:var(--navy);font-size:12px}.notification-copy p{margin:5px 0;color:var(--muted);font-size:10px;line-height:1.7}.notification-copy small{color:#959FA3;font-size:9px}
.device-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.device-card{position:relative}.device-card.current{border-color:rgba(0,168,232,.42);box-shadow:0 16px 44px rgba(0,168,232,.11)}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.profile-summary{background:linear-gradient(145deg,#fff,#F4F9FB)}.profile-code{font-size:30px;font-weight:900;color:var(--navy);letter-spacing:.06em;direction:ltr;display:inline-block}
.lecture-layout{display:grid;grid-template-columns:minmax(280px,330px) minmax(0,1fr);gap:18px;align-items:start}.lecture-playlist{position:sticky;top:98px}.playlist-button{width:100%;border:1px solid #E0E6E8;background:#fff;border-radius:14px;padding:11px;display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center;text-align:right;margin-bottom:8px;color:var(--navy)}.playlist-button.active{border-color:rgba(0,168,232,.55);background:#F2FBFF;box-shadow:0 10px 28px rgba(0,168,232,.08)}.playlist-button.done .playlist-index{background:var(--success);color:#fff}.playlist-index{width:31px;height:31px;border-radius:10px;display:grid;place-items:center;background:#eef8fc;color:var(--navy);font-size:10px;font-weight:900}.playlist-button span:nth-child(2){display:grid;gap:3px}.playlist-button small{font-size:8px;color:var(--muted)}.lecture-stage{min-width:0}.watch-frame-shell{background:#000;border-radius:20px;overflow:hidden;box-shadow:0 20px 60px rgba(0,52,89,.18)}.watch-frame-shell iframe{width:100%;aspect-ratio:16/9;display:block;border:0}.student-watermark-layer{position:absolute;pointer-events:none;inset:0;overflow:hidden}.lesson-security-note{display:flex;align-items:center;gap:9px;color:#6E797F;font-size:9px;margin-top:8px}.lesson-security-note:before{content:'◉';color:var(--orange)}
.quiz-question{padding:16px 0;border-bottom:1px solid #E9EDEF}.quiz-question:last-child{border-bottom:0}.quiz-options{display:grid;gap:8px;margin-top:11px}.quiz-option{display:flex;align-items:center;gap:9px;border:1px solid #DCE3E6;border-radius:12px;padding:10px;cursor:pointer}.quiz-option:has(input:checked){border-color:var(--orange);background:#F2FBFF}.quiz-review{display:grid;gap:8px;margin-top:14px}.quiz-review-item{border-radius:12px;padding:11px;background:#f7faf8;border:1px solid #E2E8EB}.quiz-review-item.ok{border-color:#BCDEEB;background:#EFF8FB}.quiz-review-item.bad{border-color:#ffd0d1;background:#fff5f5}
.store-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.store-card{display:flex;flex-direction:column}.store-image{aspect-ratio:4/3;border-radius:14px;background:#eef8fc;overflow:hidden;margin-bottom:13px}.store-image img{width:100%;height:100%;object-fit:cover}.store-card h3{margin:0 0 7px}.store-card p{color:var(--muted);font-size:10px;line-height:1.7}.store-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:12px}.store-bottom strong{font-size:20px;color:var(--orange)}
.auth-v60{min-height:100vh;display:grid;grid-template-columns:minmax(360px,.86fr) minmax(480px,1.14fr);background:#f2f9fc}.auth-v60-visual{position:relative;overflow:hidden;background:linear-gradient(150deg,var(--navy),#0B283A)}.auth-v60-visual:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 65% 32%,rgba(0,168,232,.38),transparent 27%),radial-gradient(circle at 28% 70%,rgba(98,205,244,.18),transparent 30%)}.auth-v60-visual img{position:absolute;inset:auto 6% 0 auto;width:88%;max-height:94%;object-fit:contain;filter:drop-shadow(0 30px 50px rgba(0,0,0,.24))}.auth-v60-brand{position:absolute;z-index:2;right:8%;top:8%;left:8%;color:#fff}.auth-v60-brand img{position:static;width:58px;height:58px;object-fit:contain;background:#fff;border-radius:16px;padding:5px}.auth-v60-brand h2{font-size:30px;margin:18px 0 7px}.auth-v60-brand p{color:#B8CBD2;line-height:1.8;max-width:460px}.auth-v60-panel{display:flex;align-items:center;justify-content:center;padding:38px}.auth-v60-card{width:min(100%,650px);background:#fff;border:1px solid rgba(0,52,89,.08);border-radius:28px;box-shadow:0 28px 80px rgba(0,52,89,.12);padding:30px}.auth-v60-card h1{margin:0 0 7px}.auth-v60-card>p{color:var(--muted);font-size:12px;line-height:1.8;margin-bottom:23px}.student-id-modal{position:fixed;inset:0;background:rgba(0,52,89,.68);z-index:9999;display:grid;place-items:center;padding:18px}.student-id-card{width:min(100%,480px);background:#fff;border-radius:27px;padding:30px;text-align:center;box-shadow:0 30px 90px rgba(0,0,0,.2)}.id-code{font-size:38px;letter-spacing:.08em;font-weight:900;color:var(--navy);background:#F2FBFF;border:1px solid #D7ECF5;border-radius:16px;padding:14px;margin:18px 0;direction:ltr}
@media(max-width:980px){.chapter-card-grid,.store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lecture-layout{grid-template-columns:1fr}.lecture-playlist{position:static}.profile-grid{grid-template-columns:1fr}.auth-v60{grid-template-columns:1fr}.auth-v60-visual{display:none}}
@media(max-width:620px){.chapter-card-grid,.store-grid,.device-grid{grid-template-columns:1fr}.wallet-topup-grid{grid-template-columns:1fr 1fr}.wallet-custom{flex-direction:column}.top-actions .student-code-chip{display:none}.top-actions .wallet-chip span{display:none}}

/* v60 auth — same internal visual system */
.auth-v60{min-height:100dvh;display:grid;grid-template-columns:minmax(340px,44%) 1fr;background:#F4F9FB;color:#0B1A24}.auth-v60-visual{position:relative;overflow:hidden;padding:46px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(145deg,#002f4f 0%,#0B212E 58%,#0F374B 100%);color:#fff}.auth-v60-visual:before{content:"";position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(0,168,232,.34),transparent 65%);right:-180px;top:-140px}.auth-v60-visual:after{content:"BIOLOGY";position:absolute;left:-20px;bottom:50px;font:900 clamp(55px,9vw,130px)/1 Alexandria,Cairo,sans-serif;color:rgba(255,255,255,.035);transform:rotate(-7deg)}.auth-v60-brand{position:relative;z-index:2;display:flex;gap:12px;align-items:center;color:#fff;text-decoration:none}.auth-v60-brand img{width:54px;height:54px;object-fit:contain;background:#fff;border-radius:16px;padding:7px}.auth-v60-brand b{display:block;font-size:18px}.auth-v60-brand span{display:block;color:#A9C9D6;font-size:11px;margin-top:3px}.auth-v60-copy{position:relative;z-index:2;max-width:520px}.auth-v60-copy .eyebrow{display:inline-block;background:rgba(0,168,232,.14);border:1px solid rgba(98,205,244,.25);color:#62cdf4;border-radius:999px;padding:7px 11px;font-size:10px;font-weight:900;letter-spacing:1px}.auth-v60-copy h1{font:900 clamp(38px,5.5vw,72px)/1.1 Alexandria,Cairo,sans-serif;margin:18px 0}.auth-v60-copy p{max-width:470px;color:#B7CED7;line-height:2}.auth-v60-form-side{padding:40px 7%;display:grid;place-items:center}.auth-v60-card{width:min(100%,620px);background:#fff;border:1px solid #DBE7EC;border-radius:26px;padding:30px;box-shadow:0 24px 70px rgba(0,47,79,.09)}.auth-v60-card .back{font-size:11px;font-weight:900;color:#007ea7;text-decoration:none}.auth-v60-card h2{font:900 29px/1.35 Alexandria,Cairo,sans-serif;margin:20px 0 5px}.auth-v60-card>p{margin:0 0 20px;color:#718088;font-size:13px}.auth-v60-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.auth-v60-fields .full{grid-column:1/-1}.auth-v60-card label{display:block;font-size:11px;font-weight:900;margin-bottom:7px}.auth-v60-card input,.auth-v60-card select{width:100%;height:48px;border:1px solid #D9E4E8;border-radius:12px;padding:0 13px;background:#fbfefc;color:#0B1A24;font-family:inherit;outline:none}.auth-v60-card input:focus,.auth-v60-card select:focus{border-color:#00a8e8;box-shadow:0 0 0 4px rgba(0,168,232,.08)}.auth-v60-submit{width:100%;margin-top:17px}.auth-v60-switch{text-align:center;margin-top:16px;font-size:12px;color:#718088}.auth-v60-switch a{color:#007ea7;font-weight:900;text-decoration:none}.student-id-modal{position:fixed;inset:0;z-index:99999;background:rgba(2,6,9,.72);backdrop-filter:blur(7px);display:grid;place-items:center;padding:20px}.student-id-card{width:min(100%,430px);background:#fff;border-radius:25px;padding:30px;text-align:center;box-shadow:0 25px 80px rgba(0,0,0,.25)}.student-id-card .id-code{margin:20px 0;background:#003459;color:#62cdf4;border-radius:16px;padding:18px;font:900 32px/1 Alexandria,monospace;letter-spacing:3px}.alert{padding:11px 13px;border-radius:11px;font-size:12px;margin:10px 0}.alert-error{background:#fff0f0;color:#a22;border:1px solid #f1cccc}.alert-success{background:#EFF8FB;color:#085074;border:1px solid #CDE2EA}.alert-info{background:#EEF5F8;color:#314E5C;border:1px solid #D4E3E9}@media(max-width:900px){.auth-v60{grid-template-columns:1fr}.auth-v60-visual{min-height:280px;padding:28px}.auth-v60-copy h1{font-size:39px}.auth-v60-form-side{padding:24px 16px}.auth-v60-fields{grid-template-columns:1fr}.auth-v60-fields .full{grid-column:auto}}
.store-pay-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.store-pay-actions .btn{justify-content:center;min-width:0;padding-inline:6px}@media(max-width:520px){.store-pay-actions{grid-template-columns:1fr}}
.video-part-card.is-locked{opacity:.58;cursor:not-allowed;filter:saturate(.65)}.video-part-card.is-locked:hover{transform:none;box-shadow:0 8px 25px rgba(0,52,89,.04)}
.purchase-type-card:disabled{opacity:.48;cursor:not-allowed;transform:none!important}

/* ===== v60.1 hotfix: theme toggle, header actions, countdown, logout ===== */
.theme-toggle-chip{width:42px;height:42px;display:grid;place-items:center;border:1px solid rgba(0,52,89,.09);background:#fff;border-radius:12px;box-shadow:0 7px 24px rgba(0,52,89,.06);font-size:18px;line-height:1;transition:.18s ease;color:#0B1A24}
.theme-toggle-chip:hover{transform:translateY(-1px);border-color:rgba(0,168,232,.35);box-shadow:0 12px 28px rgba(0,52,89,.09)}
.student-code-chip{cursor:pointer;transition:.18s ease}.student-code-chip:hover{border-color:rgba(0,168,232,.34);transform:translateY(-1px)}
.side-logout{appearance:none;width:100%;min-height:44px;margin-top:auto;padding:11px 13px;border:1px solid rgba(255,120,120,.18);border-radius:12px;background:rgba(255,94,94,.075);color:#ffb3ae;font:800 12px/1.2 var(--font);display:flex;align-items:center;justify-content:center;gap:8px;transition:.18s ease;box-shadow:none}
.side-logout:hover{background:rgba(255,94,94,.14);border-color:rgba(255,145,145,.32);color:#ffd2cf;transform:translateY(-1px)}
.access-donut strong.remaining-time{display:grid;gap:0;font-size:inherit;line-height:1.05;min-width:0}.remaining-line{display:flex;align-items:baseline;justify-content:center;gap:4px;white-space:nowrap}.remaining-line b{font-size:31px;line-height:1;color:var(--navy);font-weight:900}.remaining-line small{font-size:11px;color:var(--muted);font-weight:800}.remaining-line.single{font-size:17px;font-weight:900;color:var(--navy)}
.wallet-action-status{margin-top:10px;padding:9px 11px;border-radius:10px;background:rgba(98,205,244,.12);border:1px solid rgba(98,205,244,.18);color:#D7EEF7;font-size:10px;font-weight:800}.wallet-action-status.error{background:rgba(227,72,80,.12);border-color:rgba(255,130,137,.22);color:#ffd2d5}

/* Dark mode is intentionally scoped to the internal platform; landing stays unchanged. */
html.theme-dark body.app-body{background:#060C10;color:#EAF4F8}
html.theme-dark .ambient-bg{background:radial-gradient(circle at 10% 20%,rgba(0,168,232,.10),transparent 30%),radial-gradient(circle at 90% 10%,rgba(98,205,244,.055),transparent 28%),#060C10}
html.theme-dark .app-main{background:transparent}
html.theme-dark .app-topbar{background:rgba(6,12,16,.90);border-bottom-color:rgba(98,205,244,.10);color:#F3FCFF}
html.theme-dark .app-topbar small{color:#8FA2A9}
html.theme-dark .theme-toggle-chip,html.theme-dark .install-chip,html.theme-dark .notif-chip,html.theme-dark .wallet-chip{background:#0D1921;border-color:rgba(98,205,244,.13);color:#EAF4F8;box-shadow:0 8px 26px rgba(0,0,0,.18)}
html.theme-dark .student-code-chip{color:#9FB0B7}html.theme-dark .student-code-chip b,html.theme-dark .wallet-chip b{color:#62cdf4}
html.theme-dark .card,html.theme-dark .lesson-card,html.theme-dark .quick-card,html.theme-dark .question-card,html.theme-dark .selectable-resource-card,html.theme-dark .purchase-type-card,html.theme-dark .subscription-payment-form,html.theme-dark .payment-summary-card,html.theme-dark .lesson-purchase-chapter,html.theme-dark .lesson-choice,html.theme-dark .profile-summary{background:#0B151B;border-color:rgba(98,205,244,.10);color:#EAF4F8;box-shadow:0 14px 44px rgba(0,0,0,.16)}
html.theme-dark .access-summary-card,html.theme-dark .achievement-card,html.theme-dark .profile-summary{background:linear-gradient(145deg,#0D1920,#091217)}
html.theme-dark .access-donut{background:conic-gradient(var(--orange) calc(var(--progress)*1%),#152631 0);box-shadow:0 18px 48px rgba(0,0,0,.22)}
html.theme-dark .access-donut:before{background:#091218;box-shadow:inset 0 0 0 1px rgba(98,205,244,.08)}
html.theme-dark .access-donut strong,html.theme-dark .remaining-line b,html.theme-dark .remaining-line.single,html.theme-dark .student-dashboard-head h1,html.theme-dark .section-title h1,html.theme-dark .section-title h2,html.theme-dark .access-summary-copy h2,html.theme-dark .achievement-top h2,html.theme-dark .achievement-top>strong,html.theme-dark .lesson-card h3,html.theme-dark .notification-copy b,html.theme-dark .profile-code,html.theme-dark h1,html.theme-dark h2,html.theme-dark h3{color:#F1FBFF}
html.theme-dark .student-dashboard-head p,html.theme-dark .section-title p,html.theme-dark .access-summary-copy p,html.theme-dark .achievement-card>p,html.theme-dark .achievement-meta,html.theme-dark .lesson-card p,html.theme-dark .muted,html.theme-dark .notification-copy p,html.theme-dark .notification-copy small,html.theme-dark .tx-row small,html.theme-dark .remaining-line small,html.theme-dark .lesson-security-note{color:#91A3AA}
html.theme-dark .achievement-track,html.theme-dark .mini-progress{background:#142530}
html.theme-dark .open-content-icon,html.theme-dark .quick-icon,html.theme-dark .playlist-index{background:#142733;color:#62cdf4}
html.theme-dark .pill{background:#142530;color:#A9BCC4}html.theme-dark .pill.green,html.theme-dark .pill.blue,html.theme-dark .pill.orange{background:rgba(0,168,232,.13);color:#62cdf4}html.theme-dark .pill.red{background:rgba(227,72,80,.12);color:#ffaaa9}
html.theme-dark .btn-soft{background:#142530;color:#DFF1F8}html.theme-dark .btn-outline{background:#0D1921;color:#EAF4F8;border-color:rgba(98,205,244,.14)}
html.theme-dark .playlist-button{background:#0B151B;border-color:rgba(98,205,244,.10);color:#EAF4F8}html.theme-dark .playlist-button.active{background:#101E27;border-color:rgba(0,168,232,.50)}html.theme-dark .playlist-button small{color:#8DA1A9}
html.theme-dark .quiz-question{border-bottom-color:rgba(98,205,244,.09)}html.theme-dark .quiz-option{border-color:rgba(98,205,244,.12);background:#0A1217;color:#EAF4F8}html.theme-dark .quiz-option:has(input:checked){background:#101F29;border-color:#00a8e8}html.theme-dark .quiz-review-item{background:#0A1217;border-color:rgba(98,205,244,.10)}html.theme-dark .quiz-review-item.ok{background:#0D1E29;border-color:rgba(0,168,232,.30)}html.theme-dark .quiz-review-item.bad{background:#281313;border-color:rgba(227,72,80,.30)}
html.theme-dark .notification-row{border-bottom-color:rgba(98,205,244,.08)}html.theme-dark .notification-row.unread{background:#101E27}
html.theme-dark .tx-row{border-bottom-color:rgba(98,205,244,.08)}
html.theme-dark .field label{color:#B9C9D0}html.theme-dark .field input,html.theme-dark .field select,html.theme-dark .field textarea,html.theme-dark .wallet-custom input,html.theme-dark input,html.theme-dark select,html.theme-dark textarea{background:#080F14;color:#EAF4F8;border-color:rgba(98,205,244,.14)}html.theme-dark input::placeholder,html.theme-dark textarea::placeholder{color:#71828B}
html.theme-dark .content-thumb.placeholder,html.theme-dark .store-image{background:linear-gradient(135deg,#101E27,#0B1319)}
html.theme-dark .lesson-choice.selected,html.theme-dark .selectable-resource-card.selected{background:#101E27;border-color:#00a8e8}
html.theme-dark .payment-account-panel{background:#0B1319;border-color:rgba(98,205,244,.11);color:#DFEEF4}
html.theme-dark .summary-line{border-top-color:rgba(98,205,244,.08)}
html.theme-dark .alert-info{background:#101E27;color:#BFDCE8;border-color:rgba(0,168,232,.20)}html.theme-dark .alert-success{background:#0E1F29;color:#A8D9EC;border-color:rgba(0,168,232,.28)}html.theme-dark .alert-error{background:#2a1515;color:#ffb8b8;border-color:rgba(227,72,80,.28)}
html.theme-dark .side-panel{box-shadow:-10px 0 50px rgba(0,0,0,.25)}
html.theme-dark .auth-v60{background:#060C10;color:#EAF4F8}html.theme-dark .auth-v60-form-side{background:#060C10}html.theme-dark .auth-v60-card{background:#0B151B;border-color:rgba(98,205,244,.11);color:#EAF4F8;box-shadow:0 24px 70px rgba(0,0,0,.24)}html.theme-dark .auth-v60-card>p,html.theme-dark .auth-v60-switch{color:#90A2A9}html.theme-dark .auth-v60-card input,html.theme-dark .auth-v60-card select{background:#080F14;color:#EAF4F8;border-color:rgba(98,205,244,.14)}

@media(max-width:620px){.theme-toggle-chip{width:38px;height:38px;font-size:16px}.top-actions{gap:6px}.top-actions .wallet-chip{padding:8px 9px}.app-topbar{gap:8px}.remaining-line b{font-size:28px}}


/* ===== v60.2 performance + dark lesson hotfix ===== */
/* The animated chemistry decorations were decorative only and caused extra paint/GPU work. */
.ambient-bg span,.ambient-bg i{display:none!important}
.app-topbar{backdrop-filter:none;-webkit-backdrop-filter:none}
.lesson-card,.video-part-card,.open-content-card{content-visibility:auto;contain-intrinsic-size:160px}

/* Fix the lesson sequence bar in dark mode (ready/current states had light backgrounds). */
html.theme-dark .progress-steps .step{
  background:#0B151B;
  border-color:rgba(98,205,244,.11);
  color:#EAF4F8;
  box-shadow:none
}
html.theme-dark .progress-steps .step.ready,
html.theme-dark .flow-progress-steps .step.ready{
  background:#0D1921;
  border-color:rgba(0,168,232,.22);
  color:#DFF1F8
}
html.theme-dark .progress-steps .step.current,
html.theme-dark .flow-progress-steps .step.current{
  background:#101F29;
  border-color:rgba(0,168,232,.52);
  color:#F3FCFF;
  box-shadow:0 10px 30px rgba(0,0,0,.18)
}
html.theme-dark .progress-steps .step .dot{
  background:#142733;
  color:#62cdf4
}
html.theme-dark .progress-steps .step.done .dot{background:#0F2A3B;color:#9AD8F0}
html.theme-dark .progress-steps .step.current .dot{background:#153C50;color:#B8EBFF}

/* Make the first paint feel instant while data is fetched. */
[data-page-host]:empty::before{
  content:'جاري التحميل...';
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:110px;
  color:var(--muted);
  font-size:12px;
  font-weight:700
}
html.theme-dark [data-page-host]:empty::before{color:#8FA2A9}

/* ===== v60.9 mobile RTL alignment hotfix ===== */
@media (max-width: 820px){
  .app-main,
  .app-content,
  [data-page-host]{
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }
  .app-content{margin:0;padding-inline:18px;overflow-x:hidden}

  /* Every student page heading starts from the RTL edge on mobile. */
  .app-content .section-title,
  .app-content .student-dashboard-head{
    width:100%;
    max-width:100%;
    min-width:0;
    direction:rtl;
    text-align:right;
    box-sizing:border-box;
  }
  .app-content .section-title{
    align-items:stretch;
  }
  .app-content .section-title>div,
  .app-content .student-dashboard-head>div{
    width:100%;
    max-width:100%;
    min-width:0;
    direction:rtl;
    text-align:right;
    margin:0;
  }
  .app-content .section-title h1,
  .app-content .section-title h2,
  .app-content .section-title h3,
  .app-content .section-title p,
  .app-content .student-dashboard-head h1,
  .app-content .student-dashboard-head p{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    direction:rtl;
    text-align:right;
    margin-inline:0;
    overflow-wrap:anywhere;
  }
  .app-content .section-title .pill,
  .app-content .student-dashboard-head .pill{
    align-self:flex-start;
  }
  .app-content .section-title>a.btn,
  .app-content .section-title>button.btn,
  .app-content .student-dashboard-head>a.btn,
  .app-content .student-dashboard-head>button.btn{
    width:max-content;
    max-width:100%;
    margin-right:0;
    margin-left:auto;
  }
}

@media (max-width: 620px){
  .app-content{padding:16px 14px 28px}
  .app-content .section-title{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    margin-bottom:16px;
  }
  .app-content .student-dashboard-head{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }
  .app-content .section-title h1,
  .app-content .student-dashboard-head h1{
    font-size:clamp(24px,7.2vw,30px);
    line-height:1.3;
  }
  .app-content .section-title h2{font-size:clamp(21px,6.2vw,27px);line-height:1.35}
  .app-content .section-title p,
  .app-content .student-dashboard-head p{
    font-size:11px;
    line-height:1.8;
  }
  /* Mixed Arabic/English labels such as Student ID keep the Arabic paragraph anchored right. */
  .app-content .section-title p,
  .app-content .profile-summary p,
  .app-content .muted{unicode-bidi:plaintext}
}

/* v60.12 mobile fullscreen hotfix:
   The player lives inside .watch-frame-shell. Older CSS targeted .video-shell,
   so iOS pseudo-fullscreen only expanded the inner iframe document and left
   the lesson UI visible beside it. Keep both selectors for backwards compatibility. */
.watch-frame-shell.pseudo-fullscreen,
.video-shell.pseudo-fullscreen{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#000!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.watch-frame-shell.pseudo-fullscreen .protected-player-frame,
.video-shell.pseudo-fullscreen .protected-player-frame{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  border:0!important;
  border-radius:0!important;
  background:#000!important;
}
html.player-pseudo-fullscreen,
body.player-pseudo-fullscreen{
  overflow:hidden!important;
  overscroll-behavior:none!important;
  touch-action:none;
}

/* ===== v60.13 auth mobile responsive hotfix =====
   The v60 auth redesign re-declared .auth-v60-visual after an older mobile
   rule that hid it, so the registration hero became a full screen-sized block
   on phones. Restore the intended mobile flow and harden the form for iOS. */
@media (max-width: 900px){
  html,body{max-width:100%;overflow-x:hidden}
  .auth-v60{
    display:block;
    width:100%;
    min-height:100dvh;
    background:#F4F9FB;
  }
  .auth-v60-visual{
    display:none!important;
  }
  .auth-v60-form-side{
    display:block;
    width:100%;
    min-height:100dvh;
    padding:max(18px,env(safe-area-inset-top)) 14px calc(28px + env(safe-area-inset-bottom));
  }
  .auth-v60-card{
    width:100%;
    max-width:620px;
    margin:0 auto;
    padding:24px 20px;
    border-radius:22px;
    box-shadow:0 14px 44px rgba(0,47,79,.08);
  }
  .auth-v60-card h2{
    margin:16px 0 5px;
    font-size:clamp(25px,7vw,30px);
    line-height:1.35;
  }
  .auth-v60-card>p{
    margin-bottom:18px;
    font-size:12px;
    line-height:1.85;
  }
  .auth-v60-fields{
    grid-template-columns:1fr;
    gap:12px;
  }
  .auth-v60-fields .full{grid-column:auto}
  .auth-v60-card label{font-size:12px;margin-bottom:7px}
  .auth-v60-card input,
  .auth-v60-card select{
    min-width:0;
    height:52px;
    font-size:16px; /* Prevent Safari from zooming the page when a field is focused. */
    border-radius:13px;
  }
  .auth-v60-submit{
    min-height:50px;
    margin-top:16px;
  }
  .auth-v60-switch{
    margin-top:15px;
    padding-bottom:2px;
    line-height:1.8;
  }
}
@media (max-width: 420px){
  .auth-v60-form-side{
    padding:max(12px,env(safe-area-inset-top)) 10px calc(22px + env(safe-area-inset-bottom));
  }
  .auth-v60-card{
    padding:20px 15px;
    border-radius:18px;
  }
  .auth-v60-card .back{font-size:11px}
  .auth-v60-card h2{font-size:24px}
}


/* v60.15 — unified new Estlem logo */
.side-brand{flex-direction:column;align-items:center;text-align:center;gap:8px;padding:8px 8px 17px}
.side-brand img{width:158px!important;height:78px!important;max-width:100%;object-fit:contain!important;filter:none!important;border-radius:16px!important;background:#fff!important;padding:8px 12px!important;box-shadow:0 10px 28px rgba(0,0,0,.12)}
.side-brand div{align-items:center!important}
.side-brand b{font-size:12px!important}.side-brand span{font-size:9px!important}
.auth-v60-brand img{position:static!important;width:156px!important;height:84px!important;max-height:none!important;object-fit:contain!important;background:#fff!important;border-radius:17px!important;padding:8px 12px!important;filter:none!important;box-shadow:0 14px 34px rgba(0,0,0,.14)}
@media(max-width:900px){.side-brand img{width:148px!important;height:74px!important}}

/* ===== v60.20 active subscription status + live countdown ===== */
.active-subscriptions-panel{margin-bottom:28px;padding:24px;border:1px solid rgba(0,126,167,.12);border-radius:26px;background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(237,248,252,.92));box-shadow:0 20px 60px rgba(7,23,37,.07)}
.active-subscriptions-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.active-subscriptions-head h2{margin:8px 0 6px;color:var(--navy)}.active-subscriptions-head p{margin:0;color:var(--muted);line-height:1.8;font-size:12px;max-width:760px}.active-subscriptions-count{display:inline-flex;align-items:center;justify-content:center;min-width:74px;padding:9px 12px;border-radius:999px;background:#E8F7FC;color:var(--blue);font-size:11px;font-weight:900;white-space:nowrap}
.active-subscription-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.active-subscription-card{position:relative;overflow:hidden;padding:22px;border:1px solid #dce8ee;border-radius:22px;background:#fff;box-shadow:0 14px 36px rgba(7,23,37,.05)}.active-subscription-card.primary{border-color:rgba(0,168,232,.28);box-shadow:0 18px 46px rgba(0,126,167,.11)}.active-subscription-card:before{content:'';position:absolute;width:170px;height:170px;border-radius:50%;left:-65px;top:-85px;background:radial-gradient(circle,rgba(98,205,244,.20),transparent 70%);pointer-events:none}.active-subscription-card.is-expired{opacity:.65}
.active-subscription-top{display:flex;align-items:center;justify-content:space-between;gap:12px;position:relative}.active-subscription-top>div{display:flex;align-items:center;gap:8px;color:var(--blue);font-size:11px}.subscription-live-dot{width:8px;height:8px;border-radius:50%;background:var(--success);box-shadow:0 0 0 6px rgba(0,168,232,.12);animation:subscriptionPulse 1.8s ease-in-out infinite}@keyframes subscriptionPulse{50%{box-shadow:0 0 0 10px rgba(0,168,232,0)}}
.active-subscription-card h3{margin:18px 0 7px;color:var(--navy);font-size:22px}.subscription-coverage-note{margin:0;color:#667b88;line-height:1.9;font-size:11px;min-height:42px}.subscription-countdown-label{margin-top:20px;color:#7b8d98;font-size:10px;font-weight:800}.subscription-countdown{display:flex;align-items:flex-start;gap:9px;margin-top:10px;direction:ltr}.subscription-countdown>div{min-width:64px;text-align:center;padding:10px 8px;border-radius:15px;background:#F3FAFD;border:1px solid #E1EFF5}.subscription-countdown b{display:block;color:var(--navy);font-size:24px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums}.subscription-countdown span{display:block;margin-top:6px;color:#81929c;font-size:9px;font-weight:800}.subscription-countdown>i{align-self:center;color:#9eb1bb;font-style:normal;font-weight:900;margin-top:3px}
.subscription-duration-track{height:9px;margin-top:18px;background:#E7EEF2;border-radius:999px;overflow:hidden}.subscription-duration-track>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--orange),var(--blue));transition:width .6s ease}.subscription-duration-meta{display:flex;justify-content:space-between;gap:12px;margin-top:8px;color:#7c8d97;font-size:9px;font-weight:700}.subscription-date-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.subscription-date-grid>div{padding:12px;border-radius:14px;background:#F8FAFB;border:1px solid #E8EEF1}.subscription-date-grid small{display:block;color:#8b99a1;font-size:9px;margin-bottom:4px}.subscription-date-grid b{color:var(--navy);font-size:11px}.subscription-open-content{display:inline-flex;margin-top:16px;color:var(--blue);font-size:11px;font-weight:900}
.subscription-status-empty{display:flex;align-items:center;gap:17px;margin-bottom:26px;padding:22px}.subscription-status-empty h2{margin:7px 0 5px}.subscription-status-empty p{margin:0;color:var(--muted);line-height:1.8;font-size:11px}.subscription-status-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:18px;background:#EAF7FC;color:var(--blue);font-size:25px;font-weight:900;flex:0 0 auto}.subscription-buy-title{margin-top:4px}.all-owned-card{padding:0;background:transparent!important;border:0!important;box-shadow:none!important}
html.theme-dark .active-subscriptions-panel{background:linear-gradient(145deg,#0D1920,#091217);border-color:rgba(98,205,244,.14);box-shadow:0 22px 60px rgba(0,0,0,.18)}html.theme-dark .active-subscription-card{background:#0B151B;border-color:rgba(98,205,244,.12)}html.theme-dark .active-subscription-card h3,html.theme-dark .subscription-countdown b,html.theme-dark .subscription-date-grid b,html.theme-dark .active-subscriptions-head h2{color:#F1FBFF}html.theme-dark .subscription-coverage-note,html.theme-dark .active-subscriptions-head p,html.theme-dark .subscription-duration-meta,html.theme-dark .subscription-countdown-label{color:#91A3AA}html.theme-dark .subscription-countdown>div,html.theme-dark .subscription-date-grid>div{background:#0F1D25;border-color:rgba(98,205,244,.10)}html.theme-dark .subscription-duration-track{background:#14242D}html.theme-dark .subscription-status-empty{background:#0B151B;border-color:rgba(98,205,244,.10)}
@media(max-width:900px){.active-subscription-grid{grid-template-columns:1fr}.subscription-coverage-note{min-height:0}}
@media(max-width:620px){.active-subscriptions-panel{padding:18px}.active-subscriptions-head{display:grid}.active-subscriptions-count{justify-self:start}.active-subscription-card{padding:18px}.subscription-countdown{display:grid;grid-template-columns:1fr 1fr;gap:8px;direction:rtl}.subscription-countdown>i{display:none}.subscription-countdown>div{min-width:0}.subscription-duration-meta{display:grid;gap:4px}.subscription-date-grid{grid-template-columns:1fr}.subscription-status-empty{align-items:flex-start}.active-subscription-card h3{font-size:19px}}
