:root{
 --navy:#0b1522;--navy-2:#101e30;--navy-3:#172a42;--orange:#ff6b1a;--orange-2:#ea580c;--blue:#0284c7;--cyan:#0ea5e9;
 --paper:#fafaf8;--white:#fff;--ink:#141c24;--muted:#5e6e7d;--line:rgba(11,21,34,.10);--success:#10b981;--danger:#e11d48;--warning:#f59e0b;
 --shadow:0 24px 80px rgba(11,21,34,.12);--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:#f4f6f8;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(2,132,199,.07),transparent 28%),radial-gradient(circle at 90% 10%,rgba(255,107,26,.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(255,107,26,.07);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;background:#fff;border-radius:12px;padding:3px;box-shadow:0 4px 14px rgba(0,0,0,.08)}.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(255,107,26,.08);color:var(--orange)}.site-nav .nav-cta{background:linear-gradient(135deg,var(--orange),#ea580c);color:white!important;box-shadow:0 10px 24px rgba(255,107,26,.24)}.site-nav .nav-cta:hover{background:linear-gradient(135deg,#ff8533,#ff6b1a)}.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(11,21,34,.08);border-radius:999px;padding:8px 14px;color:var(--navy);box-shadow:0 12px 35px rgba(11,21,34,.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(255,107,26,.14)}.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:7px;background:linear-gradient(90deg,var(--orange),var(--cyan));border-radius:99px;transform:rotate(-0.5deg)}.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:linear-gradient(135deg,var(--orange),#ea580c);color:white;box-shadow:0 14px 30px rgba(255,107,26,.28)}.btn-primary:hover{background:linear-gradient(135deg,#ff8533,#ff6b1a)}.btn-dark{background:var(--navy);color:white}.btn-soft{background:#f1f5f9;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(--orange)}
.hero-visual{direction:rtl;position:relative;min-height:650px}.hero-card{position:absolute;inset:0;border-radius:44px;overflow:hidden;background:linear-gradient(145deg,#ffffff,#f2f6f9);box-shadow:var(--shadow);border:1px solid white;display:flex;align-items:center;justify-content:center}.hero-card:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 68% 26%,rgba(255,107,26,.20),transparent 26%),radial-gradient(circle at 30% 64%,rgba(2,132,199,.12),transparent 28%);z-index:1}.hero-card img{width:100%;height:100%;object-fit:contain;object-position:center;position:relative;z-index:2;filter:drop-shadow(0 15px 35px rgba(0,0,0,.15))}.hero-bubble{position:absolute;z-index:4;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border:1px solid rgba(255,107,26,.20);box-shadow:0 20px 55px rgba(11,21,34,.14);padding:14px 18px;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:42px;height:42px;object-fit:contain;background:#fff;border-radius:10px;padding:3px;filter:none}.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(255,107,26,.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(--orange);box-shadow:0 0 0 4px rgba(255,107,26,.12)}.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(--orange);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:#ecfbf5;color:#127052;border:1px solid #bcebd9}.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),#0e3a59);color:white;border-radius:34px;padding:40px;overflow:hidden;position:relative}.page-hero-card:after{content:'لغة الضاد';position:absolute;left:4%;top:5%;font-size:74px;font-weight:900;color:rgba(255,255,255,.05);transform:rotate(-6deg)}.page-hero-card h1{font-size:clamp(34px,5vw,60px);margin:0 0 10px}.page-hero-card p{color:#bfd1dc;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:#f0f3f6}.app-shell{min-height:100vh;display:grid;grid-template-columns:260px 1fr;direction:rtl}
.side-panel{position:sticky;top:0;height:100vh;background:#0d1622;border-left:1px solid rgba(255,255,255,.07);color:#e2e8f0;padding:20px 14px;display:flex;flex-direction:column;z-index:60;box-shadow:-12px 0 40px rgba(0,0,0,.2)}
.side-brand{display:flex;align-items:center;gap:12px;padding:6px 6px 20px;border-bottom:1px solid rgba(255,255,255,.08);position:relative}
.side-brand img{width:46px;height:46px;object-fit:contain;background:#fff;border-radius:14px;padding:4px;box-shadow:0 6px 20px rgba(0,0,0,.35);border:2px solid rgba(255,107,26,.3);filter:none}
.side-brand div{display:flex;flex-direction:column;gap:2px}
.side-brand b{font-size:13.5px;font-weight:800;color:#fff;letter-spacing:-.01em}
.side-brand span{font-size:10px;font-weight:700;color:#ff9852;background:rgba(255,107,26,.12);padding:2px 8px;border-radius:99px;width:fit-content}
.side-panel nav{display:flex;flex-direction:column;gap:5px;padding-top:16px;overflow-y:auto;overflow-x:hidden}
.side-panel nav a{display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:13px;color:#94a3b8;font-size:13px;font-weight:700;transition:.18s ease;position:relative}
.side-panel nav a span{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.05);color:#94a3b8;font-size:14px;transition:.18s;flex-shrink:0}
.side-panel nav a:hover{background:rgba(255,255,255,.06);color:#fff;transform:translateX(-3px)}
.side-panel nav a:hover span{background:rgba(255,107,26,.18);color:var(--orange)}
.side-panel nav a.active{background:linear-gradient(135deg,var(--orange),#ea580c);color:#fff!important;box-shadow:0 8px 22px rgba(255,107,26,.32)}
.side-panel nav a.active span{background:rgba(255,255,255,.2);color:#fff}
.side-panel nav em{margin-right:auto;font-style:normal;background:#fff;color:var(--orange);font-weight:900;border-radius:99px;padding:2px 7px;font-size:10px}
.side-logout{margin-top:auto;padding:11px 13px;border-radius:13px;background:rgba(239,68,68,.08);color:#fca5a5;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid rgba(239,68,68,.18);transition:.2s}
.side-logout:hover{background:rgba(239,68,68,.16);color:#fee2e2;transform:translateY(-2px)}
.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:#edf7fc;color:var(--blue);font-weight:900}.quick-card.orange .quick-icon{background:#fff0e7;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:#e9f9f3;color:#147052}.pill.orange{background:#fff0e7;color:#b64d0f}.pill.red{background:#fff0f0;color:#a5272e}.pill.blue{background:#eaf6fd;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:#e7f8f1;color:var(--success)}.step.current{border-color:rgba(255,107,26,.4);box-shadow:0 10px 30px rgba(255,107,26,.08)}.step.current .dot{background:#fff0e7;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:#116c51}.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(255,107,26,.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:#edf7fc;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(18,138,214,.25)}.plan-choice-icon{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;background:#edf7fc;color:var(--blue);font-size:23px}.plan-choice-card.featured .plan-choice-icon{background:#fff0e7;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),#0e3b59);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:#8fb2c7}.payment-summary-card h3{font-size:22px;margin:14px 0 8px}.payment-summary-card>strong{display:block;font-size:31px;color:#ff9c64;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:#8fb2c7}.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:#fff7f1;box-shadow:0 10px 28px rgba(255,107,26,.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:#eaf6fd;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,#eaf6fd,#fff2e8);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:#edf7fc;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,#eaf6fd,#fff1e8);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(18,138,214,.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,#eaf6fd);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,#eaf6fd,#fff1e8);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(255,107,26,.32);box-shadow:0 8px 24px rgba(255,107,26,.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(255,107,26,.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,155,94,.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 =====
   Restore the orange/blue Dr. Alaa brand energy 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(255,107,26,.16) 0%,rgba(255,107,26,.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(18,138,214,.42);
  border-radius:50%;
  box-shadow:42px 34px 0 -2px rgba(255,107,26,.34),78px -19px 0 -3px rgba(18,138,214,.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(255,107,26,.13);
  box-shadow:0 12px 34px rgba(255,107,26,.08),0 8px 24px rgba(18,138,214,.06);
}
.hero h1 .hero-chemistry{
  color:var(--orange);
  font-weight:950;
  text-shadow:0 10px 28px rgba(255,107,26,.12);
}
.hero h1 .hero-chemistry::after{
  background:linear-gradient(90deg,var(--orange) 0 72%,var(--blue) 72% 100%);
  box-shadow:0 5px 18px rgba(18,138,214,.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(18,138,214,.18),rgba(18,138,214,.07));
  transform:rotate(-1deg);
}
.hero-actions .btn-primary{
  box-shadow:0 16px 34px rgba(255,107,26,.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(18,138,214,.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(18,138,214,.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(255,107,26,.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(255,107,26,.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(18,138,214,.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:#fff0ed;color:#d84c38;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(255,107,26,.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(18,138,214,.24);filter:blur(3px)}.centers-empty-art:after{width:190px;height:190px;right:-65px;bottom:-75px;background:rgba(255,107,26,.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(18,138,214,.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:#edf7fc;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:#eaf9f3;color:#167151}.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(255,107,26,.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:#baf0d9;background:rgba(31,163,112,.15);border-color:rgba(72,196,151,.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:#edf7fc;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:#edf7fc;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(18,138,214,.10);pointer-events:none}.pwa-install-card:after{content:'';position:absolute;width:150px;height:150px;border-radius:50%;bottom:-95px;left:-70px;background:rgba(255,107,26,.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:#ccebdd;background:#f2fbf7}.pwa-install-layer.is-done .pwa-install-progress-track i{width:100%;animation:none;background:#1f9a6a}.pwa-install-layer.is-done .pwa-install-progress-head span{color:#1f9a6a;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(18,138,214,.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:#cfe9dc;background:#f7fcf9}.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}}

/* v1.7.0 — wallet + Store product management */
.wallet-chip{display:flex;align-items:center;gap:8px;border:1px solid rgba(7,23,37,.08);background:#fff;border-radius:12px;padding:7px 11px;box-shadow:0 7px 24px rgba(7,23,37,.06);white-space:nowrap}.wallet-chip span{font-size:9px;color:var(--muted)}.wallet-chip b{font-size:11px;color:var(--navy)}
.wallet-layout{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.5fr);gap:18px}.wallet-balance-card{min-height:230px;display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative;background:linear-gradient(135deg,#081b2b,#0d3550);color:#fff}.wallet-balance-card:after{content:'WALLET';position:absolute;left:-8px;bottom:-18px;font-size:76px;font-weight:900;letter-spacing:.08em;color:rgba(255,255,255,.035)}.wallet-balance-card>div:first-child{position:relative;z-index:2;display:grid;gap:8px}.wallet-balance-card small{color:#9db6c5}.wallet-balance-card strong{font-size:38px;line-height:1.1}.wallet-balance-card strong span{font-size:15px;color:#f2a265}.wallet-balance-card p{max-width:390px;margin:0;color:#b9ccd7;font-size:11px;line-height:1.8}.wallet-symbol{width:82px;height:82px;border-radius:26px;display:grid;place-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);font-size:48px;color:var(--orange);position:relative;z-index:2}.wallet-recharge-card{display:grid;align-content:start;gap:18px}.wallet-code-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}.wallet-code-row .btn{height:45px}.wallet-code-preview{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #cdebdc;background:#f2fbf7;border-radius:16px;padding:16px}.wallet-code-preview>div{display:grid;gap:4px}.wallet-code-preview small{font-size:9px;color:#55736a}.wallet-code-preview strong{font-size:26px;color:#167353}.wallet-code-preview p{margin:0;max-width:540px;color:#62736d;font-size:10px;line-height:1.7}.wallet-credit{color:#167353}.wallet-debit{color:#b65a23}.wallet-generated-value{font-size:18px;color:var(--orange)}
.wallet-payment-method small{display:block;margin-top:2px;font-size:8px;opacity:.65}.wallet-payment-panel,.wallet-checkout-info{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #dbe6ec;background:#f8fbfc;border-radius:15px;padding:14px}.wallet-payment-panel>div,.wallet-checkout-info>div{display:grid;gap:2px}.wallet-payment-panel small,.wallet-checkout-info small{font-size:9px;color:var(--muted)}.wallet-payment-panel strong,.wallet-checkout-info strong{font-size:19px;color:var(--navy)}.wallet-payment-panel p,.wallet-checkout-info p{margin:0;flex:1;color:var(--muted);font-size:10px}.wallet-payment-panel.is-insufficient{border-color:#f2c9c9;background:#fff7f7}.wallet-payment-panel.is-insufficient p{color:#9b3238}
.product-admin-list{gap:0}.product-admin-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #edf0f2}.product-admin-row:last-child{border-bottom:0}.product-admin-info{display:flex;align-items:center;gap:10px;min-width:0}.product-admin-info img,.product-admin-placeholder{width:54px;height:54px;border-radius:13px;object-fit:cover;background:#eef2f4;display:grid;place-items:center;flex:0 0 54px}.product-admin-info>div{min-width:0}.product-admin-info b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}.product-edit-card{scroll-margin-top:95px}.product-edit-layout{display:grid;grid-template-columns:220px 1fr;gap:20px;margin-top:16px}.product-edit-preview{aspect-ratio:4/3;border-radius:18px;background:#eef2f4;overflow:hidden;display:grid;place-items:center;font-size:46px}.product-edit-preview img{width:100%;height:100%;object-fit:cover}.checkbox-line{display:flex;align-items:center;gap:8px}.checkbox-line input{width:auto}.codes-history-grid>.card{min-width:0}.codes-history-grid .data-table{min-width:650px}

@media(max-width:980px){.wallet-layout{grid-template-columns:1fr}.codes-history-grid{grid-template-columns:1fr}.product-edit-layout{grid-template-columns:170px 1fr}}
@media(max-width:760px){.wallet-chip span{display:none}.wallet-chip{padding:8px 9px}.wallet-chip b{font-size:10px}.wallet-code-row{grid-template-columns:1fr}.wallet-code-row .btn{width:100%}.wallet-code-preview,.wallet-payment-panel,.wallet-checkout-info{align-items:flex-start;flex-direction:column}.product-admin-row{align-items:flex-start;flex-direction:column}.product-admin-row .table-actions{width:100%}.product-edit-layout{grid-template-columns:1fr}.product-edit-preview{max-width:260px;width:100%}}
@media(max-width:560px){.top-actions{gap:6px}.wallet-chip{max-width:116px}.wallet-balance-card{min-height:200px;padding:20px}.wallet-balance-card strong{font-size:31px}.wallet-symbol{width:64px;height:64px;border-radius:20px;font-size:38px}.wallet-code-preview form,.wallet-code-preview .btn{width:100%}}

/* ===== v1.8.1 in-platform support messaging ===== */
.support-floating{position:fixed;right:292px;bottom:24px;z-index:74;direction:rtl}.support-fab{width:58px;height:58px;border:0;border-radius:19px;background:linear-gradient(145deg,var(--orange),#f15a0c);color:#fff;display:grid;place-items:center;box-shadow:0 18px 42px rgba(255,107,26,.34);position:relative;transition:transform .18s ease,box-shadow .18s ease}.support-fab:hover{transform:translateY(-3px);box-shadow:0 22px 48px rgba(255,107,26,.38)}.support-fab svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.support-fab>span{position:absolute;top:-7px;left:-7px;min-width:22px;height:22px;padding:0 6px;border:3px solid #edf1f4;border-radius:999px;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:9px;font-weight:900}
.support-widget{position:absolute;right:0;bottom:72px;width:min(390px,calc(100vw - 34px));height:min(610px,calc(100vh - 120px));background:#f6f8f9;border:1px solid rgba(7,23,37,.10);border-radius:25px;overflow:hidden;box-shadow:0 28px 90px rgba(7,23,37,.28);display:flex;flex-direction:column}.support-widget>header,.support-widget-status,.support-widget>.support-composer{flex:0 0 auto}.support-widget>.support-messages{flex:1 1 auto;min-height:0}.support-widget>.support-composer{z-index:7;box-shadow:0 -8px 24px rgba(7,23,37,.06)}.support-widget>header,.support-thread-head{height:72px;background:linear-gradient(135deg,#071725,#0c334d);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px}.support-widget>header>div:first-child,.support-thread-head>div:first-child{display:flex;align-items:center;gap:10px;min-width:0}.support-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:14px;background:linear-gradient(145deg,#fff3ea,#e8f6fd);color:var(--orange);border:1px solid rgba(255,255,255,.55);display:grid;place-items:center;font-size:12px;font-weight:900;box-shadow:0 8px 24px rgba(0,0,0,.12)}.support-avatar.small{width:38px;height:38px;flex-basis:38px;border-radius:12px;background:linear-gradient(145deg,#fff3ea,#eef8fd);box-shadow:none}.support-avatar img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}.support-widget header b,.support-thread-head b{display:block;font-size:13px}.support-widget header small,.support-thread-head small{display:block;margin-top:2px;color:#9fb7c5;font-size:8px}.support-widget-head-actions{display:flex;align-items:center;gap:6px}.support-widget-head-actions a,.support-widget-head-actions button{width:34px;height:34px;border:0;border-radius:11px;background:rgba(255,255,255,.10);color:#fff;display:grid;place-items:center;font-size:17px}.support-widget-status{padding:9px 12px;border-bottom:1px solid #e7ecef;background:#fff5ee;color:#9a4d1f;font-size:9px;font-weight:700}
.support-messages{min-height:0;overflow:auto;padding:16px 13px;background:radial-gradient(circle at 15% 20%,rgba(18,138,214,.05),transparent 28%),linear-gradient(#f3f7f9,#f8fafb);scroll-behavior:smooth}.support-message{display:flex;margin:7px 0}.support-message.mine{justify-content:flex-start}.support-message.theirs{justify-content:flex-end}.support-bubble{max-width:min(82%,330px);min-width:74px;padding:10px 11px 6px;border-radius:17px;box-shadow:0 6px 18px rgba(7,23,37,.055);position:relative;overflow:hidden}.support-message.mine .support-bubble{background:linear-gradient(145deg,#fff0e6,#ffe7d7);border-bottom-left-radius:6px}.support-message.theirs .support-bubble{background:#fff;border:1px solid #e6ecef;border-bottom-right-radius:6px}.support-message-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.8;color:#1d2b35}.support-message-meta{text-align:left;margin-top:4px;color:#85939c;font-size:7px;font-weight:700;direction:ltr}.support-sticker-message{font-size:50px;line-height:1.15;padding:4px 2px}.support-type-sticker{background:transparent!important;border:0!important;box-shadow:none!important;padding:2px}.support-image-link{display:block;border-radius:12px;overflow:hidden;background:#e8edf0}.support-image-link img{display:block;width:100%;max-height:260px;object-fit:cover}.support-bubble>small{display:block;max-width:230px;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6f7e87;font-size:7px}.support-bubble audio{display:block;width:250px;max-width:100%;height:36px}.support-document{display:flex;align-items:center;gap:10px;min-width:210px;color:inherit}.support-document>span{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#edf4f7;color:var(--blue);font-size:19px}.support-document>div{min-width:0;display:grid;gap:3px}.support-document b{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.support-document small{font-size:7px;color:#73828c}.support-chat-empty,.support-chat-loading{min-height:100%;display:grid;place-items:center;align-content:center;gap:7px;text-align:center;color:#89959c}.support-chat-empty span{font-size:34px;color:#a6b2b9}.support-chat-empty b{font-size:11px}.support-chat-loading{font-size:9px}
.support-composer{position:relative;background:#fff;border-top:1px solid #e4eaed;padding:9px}.support-compose-row{display:flex;align-items:flex-end;gap:6px}.support-compose-row textarea{min-width:0;flex:1;resize:none;max-height:104px;min-height:40px;border:1px solid #dce5e9;border-radius:15px;padding:10px 12px;outline:0;background:#f9fbfc;font-size:10px;line-height:1.75}.support-compose-row textarea:focus{border-color:#a9d8f2;box-shadow:0 0 0 3px rgba(18,138,214,.08);background:#fff}.support-round-btn,.support-send-btn{width:40px;height:40px;flex:0 0 40px;border:0;border-radius:13px;display:grid;place-items:center}.support-round-btn{background:#eef3f6;color:var(--navy);font-size:19px}.support-round-btn:hover{background:#e3edf2}.support-send-btn{background:var(--orange);color:#fff;font-size:17px;box-shadow:0 9px 20px rgba(255,107,26,.2)}.support-voice-btn.is-recording{background:#fee7e7;color:var(--danger);animation:supportRecordPulse 1.2s ease-in-out infinite}.support-picker{position:absolute;right:9px;bottom:58px;z-index:6;background:#fff;border:1px solid #e0e8ec;border-radius:18px;padding:9px;box-shadow:0 18px 45px rgba(7,23,37,.18)}.support-tools-picker{width:220px;display:grid;grid-template-columns:1fr 1fr;gap:7px}.support-tools-picker button{border:0;border-radius:13px;background:#f4f8fa;padding:10px 7px;display:grid;justify-items:center;gap:4px;color:var(--navy)}.support-tools-picker button span{font-size:19px;color:var(--orange)}.support-tools-picker button b{font-size:8px}.support-emoji-picker{width:286px;max-width:calc(100vw - 34px)}.support-picker-label{display:block;margin:1px 4px 7px;color:#7b8992;font-size:7px;font-weight:900}.support-sticker-label{margin-top:7px}.support-emoji-picker>[data-support-emoji-grid]{display:grid;grid-template-columns:repeat(8,1fr);gap:2px;padding-bottom:7px}.support-emoji-picker button{border:0;background:transparent;border-radius:8px;padding:5px;font-size:18px;line-height:1}.support-emoji-picker button:hover{background:#f0f4f6}.support-sticker-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;border-top:1px solid #edf1f3;padding-top:8px}.support-sticker-strip .support-sticker-btn{font-size:25px;background:#f8fafb;padding:6px}.support-recording{position:absolute;inset:0 0 auto 0;height:58px;z-index:8;background:#fff;display:flex;align-items:center;gap:8px;padding:0 12px}.support-recording .support-record-dot{width:9px;height:9px;border-radius:50%;background:var(--danger);animation:supportRecordPulse 1s ease-in-out infinite}.support-recording b{font-size:11px;font-variant-numeric:tabular-nums}.support-recording>span:not(.support-record-dot){font-size:8px;color:#74838d}.support-record-actions{margin-right:auto;display:flex;align-items:center;gap:6px}.support-recording button{border:0;background:#fff0f0;color:#a83137;border-radius:9px;padding:7px 10px;font-size:8px;font-weight:800}.support-recording .support-record-send{background:var(--orange);color:#fff;min-width:54px}.support-upload-state{position:absolute;right:10px;left:10px;bottom:58px;z-index:9;border:1px solid #dbe8ee;background:#fff;border-radius:13px;padding:8px 10px;display:flex;align-items:center;gap:8px;box-shadow:0 10px 28px rgba(7,23,37,.12)}.support-upload-state span{width:17px;height:17px;border:2px solid #dce7ec;border-top-color:var(--orange);border-radius:50%;animation:supportSpin .8s linear infinite}.support-upload-state b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px}
@keyframes supportSpin{to{transform:rotate(360deg)}}@keyframes supportRecordPulse{50%{opacity:.48;transform:scale(.94)}}

.support-page{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);direction:ltr;height:calc(100vh - 145px);min-height:600px;background:#fff;border:1px solid rgba(7,23,37,.08);border-radius:24px;overflow:hidden;box-shadow:0 18px 55px rgba(7,23,37,.08)}.support-conversation-panel,.support-thread-panel{direction:rtl;min-width:0;min-height:0}.support-conversation-panel{border-right:1px solid #e6ecef;background:#f9fbfc;display:grid;grid-template-rows:auto minmax(0,1fr)}.support-conversation-search{margin:13px;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dfe7eb;border-radius:14px;padding:0 11px}.support-conversation-search span{color:#8a98a0}.support-conversation-search input{border:0;outline:0;background:transparent;width:100%;height:42px;font-size:9px}.support-conversation-list{overflow:auto;padding:0 8px 10px}.support-conversation-row{width:100%;border:0;background:transparent;border-radius:16px;padding:10px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;text-align:right;color:var(--ink);margin:2px 0}.support-conversation-row:hover{background:#f0f6f9}.support-conversation-row.active{background:#e8f4fa;box-shadow:inset 3px 0 0 var(--orange)}.support-conversation-copy{min-width:0;display:grid;gap:4px}.support-conversation-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.support-conversation-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#73818a;font-size:7px}.support-conversation-meta{align-self:stretch;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:5px}.support-conversation-meta time{color:#8a969d;font-size:6.5px;direction:ltr}.support-conversation-meta em{min-width:19px;height:19px;padding:0 5px;border-radius:99px;background:var(--orange);color:#fff;display:grid;place-items:center;font-style:normal;font-size:7px;font-weight:900}.support-list-empty{padding:35px 18px;text-align:center;color:#8a969d;font-size:9px}.support-thread-panel{display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#f7f9fa}.support-thread-head{height:74px}.support-thread-head .btn{background:rgba(255,255,255,.10);color:#fff;border:1px solid rgba(255,255,255,.12)}.support-page-messages{padding:20px;scrollbar-gutter:stable}.support-page .support-bubble{max-width:min(72%,560px)}.support-page .support-message-text{font-size:12px}.support-page .support-bubble audio{width:320px}.support-page-title{align-items:center}.support-list-filter{display:flex;gap:6px;flex-wrap:wrap}.support-list-filter button{border:1px solid #dce5ea;background:#fff;border-radius:999px;padding:8px 11px;color:#687985;font-size:8px;font-weight:800}.support-list-filter button.active{background:var(--navy);border-color:var(--navy);color:#fff}

.support-admin-alerts{position:fixed;left:24px;top:94px;width:min(370px,calc(100vw - 32px));z-index:78;display:grid;gap:10px;direction:rtl}.support-admin-alert{background:#fff;border:1px solid #e0e7eb;border-radius:19px;padding:13px;box-shadow:0 22px 60px rgba(7,23,37,.21);animation:supportAlertIn .22s ease}.support-admin-alert-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.support-admin-alert-head>div{display:grid;gap:3px}.support-admin-alert-head b{font-size:10px}.support-admin-alert-head small{font-size:7px;color:#839099}.support-admin-alert-head button{width:29px;height:29px;border:0;border-radius:10px;background:#f1f4f6;color:#6f7d85;font-size:16px}.support-admin-alert p{margin:9px 0 10px;padding:9px 10px;border-radius:12px;background:#f6f9fa;color:#40515c;font-size:9px;line-height:1.7}.support-admin-quick-reply{display:flex;gap:6px}.support-admin-quick-reply input{flex:1;min-width:0;border:1px solid #dce5e9;border-radius:11px;padding:9px 10px;outline:0;font-size:9px}.support-admin-quick-reply input:focus{border-color:#a9d8f2}.support-admin-quick-reply button{border:0;border-radius:11px;background:var(--orange);color:#fff;padding:8px 12px;font-size:8px;font-weight:900}.support-admin-open{display:block;margin-top:9px;color:var(--blue);font-size:8px;font-weight:900}.support-admin-open:hover{text-decoration:underline}@keyframes supportAlertIn{from{opacity:0;transform:translateY(-8px) scale(.98)}}

@media(max-width:1100px){.support-floating{right:255px}.support-page{grid-template-columns:310px minmax(0,1fr)}}
@media(max-width:820px){.support-floating{right:18px;bottom:18px;z-index:76}.support-widget{position:fixed;right:12px;left:12px;bottom:86px;width:auto;height:min(650px,calc(100vh - 112px));border-radius:23px}.support-page{height:auto;min-height:0;grid-template-columns:1fr;overflow:visible;background:transparent;border:0;box-shadow:none;gap:12px}.support-conversation-panel{border:1px solid #e1e8ec;border-radius:20px;overflow:hidden;max-height:260px}.support-thread-panel{border:1px solid #e1e8ec;border-radius:20px;overflow:hidden;min-height:66vh}.support-page .support-bubble{max-width:84%}.support-admin-alerts{top:82px;left:12px;width:calc(100vw - 24px)}}
@media(max-width:560px){.support-widget{right:8px;left:8px;bottom:82px;height:calc(100dvh - 98px);border-radius:22px}.support-widget>header,.support-thread-head{height:66px;padding:10px 12px}.support-messages{padding:13px 9px}.support-compose-row{gap:4px}.support-round-btn,.support-send-btn{width:37px;height:37px;flex-basis:37px;border-radius:12px}.support-compose-row textarea{min-height:37px;padding:8px 10px}.support-tools-picker{width:204px}.support-page-title .btn{width:100%}.support-list-filter{width:100%}.support-list-filter button{flex:1}.support-thread-panel{min-height:70vh}.support-thread-head .btn{padding:8px 9px;font-size:7px}.support-page-messages{padding:14px 9px}.support-page .support-message-text{font-size:10px}.support-admin-alerts{top:76px}.support-admin-alert{border-radius:16px}}
@media(prefers-reduced-motion:reduce){.support-fab,.support-admin-alert,.support-voice-btn.is-recording,.support-record-dot,.support-upload-state span{animation:none!important;transition:none!important}}

/* v1.9.0 — multi-book Store cart, checkout totals, and editable shipping rates */
.store-title-row{align-items:flex-end}.store-cart-open{white-space:nowrap}.store-cart-count{min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--orange);color:#fff;display:inline-grid;place-items:center;font-size:11px}.page-hero-card .store-cart-open{margin-top:14px;position:relative;z-index:2}.store-product-bottom{gap:12px;flex-wrap:wrap}.store-add-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.store-qty-picker{height:43px;display:grid;grid-template-columns:34px 48px 34px;border:1px solid #dce5ea;border-radius:13px;overflow:hidden;background:#f8fafb;direction:ltr}.store-qty-picker button{border:0;background:#edf3f6;color:var(--navy);font-size:18px;font-weight:900}.store-qty-picker input{width:100%;border:0;outline:0;background:#fff;text-align:center;font-weight:900;color:var(--navy);-moz-appearance:textfield}.store-qty-picker input::-webkit-outer-spin-button,.store-qty-picker input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.store-cart-overlay{position:fixed;inset:0;z-index:92;background:rgba(7,23,37,.42);backdrop-filter:blur(2px)}body.store-cart-is-open{overflow:hidden}.store-cart-panel{position:fixed;z-index:93;top:0;bottom:0;left:0;width:min(430px,94vw);background:#fff;box-shadow:28px 0 80px rgba(7,23,37,.24);transform:translateX(-105%);transition:transform .24s ease;display:grid;grid-template-rows:auto minmax(0,1fr) auto;direction:rtl}.store-cart-panel.open{transform:translateX(0)}.store-cart-head{padding:23px 22px 16px;border-bottom:1px solid #e7edf0;display:flex;align-items:center;justify-content:space-between;gap:14px}.store-cart-head h2{margin:5px 0 0}.store-cart-close{width:40px;height:40px;border:0;border-radius:13px;background:#eef3f6;color:var(--navy);font-size:26px;line-height:1}.store-cart-body{overflow:auto;padding:10px 18px}.store-cart-item{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px 0;border-bottom:1px solid #edf1f3}.store-cart-item>img{width:64px;height:64px;border-radius:14px;object-fit:cover;background:#eef2f4}.store-cart-item-copy{min-width:0;display:grid;gap:4px}.store-cart-item-copy b{font-size:12px}.store-cart-item-copy small{color:var(--muted);font-size:9px}.store-cart-item>strong{font-size:11px;color:var(--orange);white-space:nowrap}.store-cart-item-controls{display:flex;align-items:center;gap:5px;margin-top:4px}.store-cart-item-controls>button:not(.store-cart-remove){width:27px;height:27px;border:0;border-radius:9px;background:#eef3f6;color:var(--navy);font-weight:900}.store-cart-item-controls>span{min-width:24px;text-align:center;font-size:10px;font-weight:900}.store-cart-remove{border:0;background:transparent;color:var(--danger);font-size:8px;font-weight:800}.store-cart-empty{min-height:280px;display:grid;place-items:center;align-content:center;text-align:center;gap:7px;color:var(--muted)}.store-cart-empty span{font-size:42px}.store-cart-empty b{color:var(--navy)}.store-cart-empty p{font-size:10px;max-width:270px;line-height:1.8}.store-cart-footer{padding:17px 20px 22px;border-top:1px solid #e7edf0;background:#fbfcfd;display:grid;gap:10px}.store-cart-total{display:flex;justify-content:space-between;align-items:center;gap:12px}.store-cart-total span{font-size:11px;color:var(--muted)}.store-cart-total strong{font-size:21px;color:var(--orange)}.store-checkout-btn{width:100%}
.store-checkout-layout{display:grid;grid-template-columns:minmax(280px,.75fr) minmax(0,1.25fr);gap:18px;align-items:start}.store-checkout-summary{position:sticky;top:18px}.store-checkout-items{display:grid;margin-top:12px}.store-checkout-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #edf1f3}.store-checkout-item>div{display:grid;gap:3px}.store-checkout-item b{font-size:11px}.store-checkout-item small{font-size:9px;color:var(--muted)}.store-checkout-item>strong{color:var(--orange);font-size:11px;white-space:nowrap}.store-checkout-totals{display:grid;gap:10px;padding-top:15px}.store-checkout-totals>div{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted)}.store-checkout-totals>div strong{color:var(--navy);font-size:12px}.store-checkout-totals .grand{padding-top:12px;border-top:1px dashed #d8e1e6}.store-checkout-totals .grand span{font-weight:900;color:var(--navy)}.store-checkout-totals .grand strong{font-size:20px;color:var(--orange)}.store-checkout-form{min-width:0}.store-checkout-confirm{margin-top:18px;padding:15px;border-radius:17px;background:#f7fafb;border:1px solid #dfe8ed;display:flex;align-items:center;justify-content:space-between;gap:14px}.store-checkout-confirm>div{display:grid;gap:3px}.store-checkout-confirm small{font-size:9px;color:var(--muted)}.store-checkout-confirm strong{font-size:19px;color:var(--orange)}
.store-shipping-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:15px}.store-shipping-rate{border:1px solid #dfe7eb;border-radius:17px;padding:13px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;background:#fbfcfd}.store-shipping-rate>div{display:grid;gap:3px}.store-shipping-rate b{font-size:11px}.store-shipping-rate small{font-size:7px;color:var(--muted);direction:ltr;text-align:right}.store-rate-input{display:flex;align-items:center;border:1px solid #d8e0e6;background:#fff;border-radius:12px;overflow:hidden}.store-rate-input input{width:92px;border:0;outline:0;padding:9px 10px;text-align:center;background:#fff}.store-rate-input span{padding:9px;color:var(--muted);font-size:8px;background:#f4f7f8}.store-shipping-rate .checkbox-line{grid-column:1/-1;font-size:8px;color:var(--muted)}.store-admin-order-items{display:grid;gap:7px;min-width:180px}.store-admin-order-items>div{display:grid;gap:2px;padding-bottom:6px;border-bottom:1px solid #eef2f4}.store-admin-order-items>div:last-child{border-bottom:0}.store-admin-order-items b{font-size:9px}.store-admin-order-items small{font-size:7px;color:var(--muted)}.store-admin-money{display:grid;gap:3px;min-width:105px}.store-admin-money span{font-size:8px;color:var(--muted);display:flex;justify-content:space-between;gap:8px}.store-admin-money strong{margin-top:4px;color:var(--orange);font-size:13px}
@media(max-width:980px){.store-checkout-layout{grid-template-columns:1fr}.store-checkout-summary{position:static}.store-shipping-grid{grid-template-columns:1fr}}
@media(max-width:620px){.store-title-row{align-items:flex-start}.store-title-row .store-cart-open{width:100%}.store-product-bottom{align-items:flex-start}.store-add-row{width:100%;justify-content:space-between}.store-add-row .btn{flex:1}.store-cart-panel{width:100%;max-width:none}.store-cart-item{grid-template-columns:54px minmax(0,1fr)}.store-cart-item>img{width:54px;height:54px}.store-cart-item>strong{grid-column:2}.store-checkout-confirm{align-items:stretch;flex-direction:column}.store-checkout-confirm .btn{width:100%}.store-shipping-rate{grid-template-columns:1fr}.store-rate-input{width:100%}.store-rate-input input{flex:1}.store-shipping-rate .checkbox-line{grid-column:auto}}

/* v1.10.0 — simple homework, visual quiz bank, optional lesson sections, typed essays */
.lesson-builder-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}.lesson-content-card,.disabled-lesson-section{min-width:0}.lesson-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.lesson-card-head h3{margin:5px 0 0}.lesson-card-head p{margin:4px 0 0}.section-remove-btn{border:1px solid rgba(227,72,80,.22);background:#fff3f3;color:var(--danger);border-radius:10px;padding:7px 10px;font-size:9px;font-weight:900;line-height:1;transition:.16s}.section-remove-btn:hover{background:var(--danger);border-color:var(--danger);color:#fff;transform:translateY(-1px)}.disabled-lesson-section{border:1px dashed rgba(108,122,137,.32);background:linear-gradient(135deg,#fafbfc,#f4f6f7);box-shadow:none}.disabled-lesson-section h3{color:#5f6d77}.flow-sort-item.is-disabled{opacity:.62;border-style:dashed;background:#f3f5f6}.flow-sort-item.is-disabled label{color:#82909a}
.simple-homework-admin-form{display:grid;gap:13px}.simple-answer-selector{display:flex;gap:7px;direction:ltr;flex-wrap:wrap}.simple-answer-selector label{cursor:pointer}.simple-answer-selector input{position:absolute;opacity:0;pointer-events:none}.simple-answer-selector span{width:40px;height:40px;border-radius:11px;border:1px solid #d8e2e7;background:#fff;display:grid;place-items:center;font-size:12px;font-weight:900;color:var(--navy);transition:.16s}.simple-answer-selector label:hover span{border-color:#aacfe4;background:#f7fbfd}.simple-answer-selector input:checked+span{background:var(--navy);border-color:var(--navy);color:#fff;box-shadow:0 7px 18px rgba(7,23,37,.14)}
.homework-admin-row{display:grid;grid-template-columns:minmax(90px,.55fr) minmax(90px,.55fr) auto auto;align-items:center;gap:9px;padding:11px 0;border-bottom:1px solid #edf1f3}.homework-admin-row:last-child{border-bottom:0}.homework-admin-number,.homework-admin-correct{padding:10px 11px;border-radius:12px;background:#f7fafb;color:#697985;font-size:9px}.homework-admin-number b,.homework-admin-correct b{display:block;color:var(--navy);font-size:15px;margin-top:2px}.homework-admin-correct b{color:var(--orange)}.homework-admin-row details{position:relative}.homework-admin-row details>summary{cursor:pointer;color:var(--blue);font-size:9px;font-weight:900;list-style:none}.homework-admin-row details>summary::-webkit-details-marker{display:none}.simple-homework-edit-form{position:absolute;z-index:12;top:calc(100% + 7px);left:0;width:min(300px,82vw);padding:13px;border:1px solid #dfe8ed;border-radius:15px;background:#fff;box-shadow:0 20px 55px rgba(7,23,37,.16);display:grid;gap:10px}.legacy-homework-row{grid-template-columns:minmax(0,1fr) auto auto}.legacy-homework-row>div:first-child{display:grid;gap:4px}.legacy-homework-row small{color:var(--muted);font-size:8px}
.quiz-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quiz-admin-card{min-width:0;border:1px solid #e1e8ec;border-radius:17px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(7,23,37,.04);display:grid;align-content:start}.quiz-admin-thumb{display:block;aspect-ratio:16/9;background:#eef3f6;overflow:hidden;border-bottom:1px solid #e5ecef}.quiz-admin-thumb img{display:block;width:100%;height:100%;object-fit:contain;background:#f8fafb}.quiz-admin-thumb.is-empty{display:grid;place-items:center;background:linear-gradient(135deg,#f2f6f8,#fbfcfd);color:#92a0a9;font-size:9px;font-weight:800}.quiz-admin-meta{display:grid;gap:8px;padding:12px}.quiz-admin-meta>div{display:flex;gap:5px;flex-wrap:wrap}.quiz-admin-meta>b{font-size:11px;line-height:1.7;color:var(--navy);overflow-wrap:anywhere}.quiz-admin-edit{border-top:1px solid #edf1f3}.quiz-admin-edit>summary{cursor:pointer;list-style:none;padding:10px 12px;background:#f8fafb;color:var(--blue);font-size:9px;font-weight:900}.quiz-admin-edit>summary::-webkit-details-marker{display:none}.quiz-admin-edit[open]>summary{background:#edf7fd}.quiz-admin-edit>form{padding:13px}.quiz-admin-card>form{padding:0 12px 12px}.admin-question-current-image{margin-top:9px;width:min(280px,100%);border:1px solid #e0e8ec;border-radius:13px;overflow:hidden;background:#f6f8f9}.admin-question-current-image img{display:block;width:100%;max-height:180px;object-fit:contain}.quiz-score-field input{max-width:180px}
.homework-sheet{display:grid;gap:10px;max-width:820px;margin:0 auto}.homework-simple-question{direction:ltr;display:grid;grid-template-columns:82px minmax(0,1fr);align-items:center;gap:14px;padding:13px 15px;background:#fff;border:1px solid #e0e7eb;border-radius:17px;box-shadow:0 8px 22px rgba(7,23,37,.035)}.homework-simple-number{direction:rtl;display:grid;place-items:center;align-content:center;min-height:62px;border-radius:13px;background:linear-gradient(135deg,#f1f7fb,#fff5ee);color:var(--navy);text-align:center}.homework-simple-number small{font-size:8px;color:var(--muted);font-weight:800}.homework-simple-number b{font-size:23px;line-height:1.15}.homework-simple-choices{direction:ltr;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.homework-simple-choices label{cursor:pointer}.homework-simple-choices input{position:absolute;opacity:0;pointer-events:none}.homework-simple-choices span{width:46px;height:46px;border-radius:13px;border:1px solid #d7e1e6;background:#f9fbfc;display:grid;place-items:center;color:var(--navy);font-size:13px;font-weight:900;transition:.16s}.homework-simple-choices label:hover span{border-color:#9dccE8;background:#f1f9fd}.homework-simple-choices input:checked+span{background:var(--orange);border-color:var(--orange);color:#fff;box-shadow:0 8px 22px rgba(255,107,26,.2);transform:translateY(-1px)}.homework-submit-bar{max-width:820px;margin:14px auto 0;padding:12px;border:1px solid #e0e7eb;border-radius:17px;background:rgba(255,255,255,.96);box-shadow:0 12px 30px rgba(7,23,37,.07);display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;bottom:12px;z-index:8}.homework-submit-bar>span{margin:0;color:var(--muted);font-size:9px}.homework-simple-result{direction:ltr;display:grid;grid-template-columns:82px 1fr 1fr;align-items:stretch;gap:9px;padding:11px;border:1px solid #e5eaed;border-radius:16px;background:#fff;margin-bottom:9px}.homework-simple-result>div:not(.homework-simple-number){direction:rtl;display:grid;align-content:center;gap:3px;padding:9px 12px;border-radius:12px;background:#f8fafb}.homework-simple-result small{font-size:8px;color:var(--muted)}.homework-simple-result b{font-size:13px}.homework-simple-result.wrong{border-inline-start:4px solid var(--danger)}
.essay-answer-options{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(180px,.65fr);gap:13px;align-items:stretch}.essay-answer-options .field{min-width:0}.essay-answer-options textarea{min-height:145px}.essay-answer-separator{display:grid;place-items:center}.essay-answer-separator span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#eef3f6;color:#71818c;font-size:9px;font-weight:900}.essay-answer-options .essay-upload{min-height:145px;align-content:center;justify-content:center;flex-direction:column;text-align:center}.essay-written-answer{margin-top:11px;padding:13px 14px;border-radius:14px;border:1px solid #dce8ee;background:#f8fbfd}.essay-written-answer small{display:block;color:var(--blue);font-size:8px;font-weight:900;margin-bottom:6px}.essay-written-answer p{margin:0;white-space:normal;line-height:1.9;font-size:12px}.essay-written-answer.admin{margin:0;background:#f7fafb}.quiz-question-image{width:min(100%,680px);max-height:560px;object-fit:contain;background:#f8fafb;border:1px solid #e2e9ed;padding:5px}
@media(max-width:1100px){.lesson-builder-grid{grid-template-columns:1fr 1fr}.quiz-admin-grid{grid-template-columns:1fr}}
@media(max-width:760px){.lesson-builder-grid{grid-template-columns:1fr}.homework-admin-row{grid-template-columns:1fr 1fr auto}.homework-admin-row details{grid-column:1/-1}.simple-homework-edit-form{position:static;width:100%;margin-top:8px;box-shadow:none}.legacy-homework-row{grid-template-columns:1fr auto auto}.essay-answer-options{grid-template-columns:1fr}.essay-answer-separator{height:20px}.essay-answer-options .essay-upload{min-height:90px}.homework-submit-bar{position:static;align-items:stretch;flex-direction:column}.homework-submit-bar .btn{width:100%}}
@media(max-width:520px){.homework-simple-question{grid-template-columns:68px minmax(0,1fr);gap:9px;padding:10px}.homework-simple-number{min-height:58px}.homework-simple-number b{font-size:20px}.homework-simple-choices{gap:6px;justify-content:flex-start}.homework-simple-choices span{width:42px;height:42px;border-radius:12px}.homework-simple-result{grid-template-columns:68px 1fr 1fr;padding:9px}.homework-admin-row{grid-template-columns:1fr 1fr}.homework-admin-row>form:last-child{grid-column:2}.quiz-admin-card{border-radius:15px}}

/* v1.11.0 — timed quizzes, detailed quiz result review, permanent student deletion */
.student-danger-zone{border:1px solid rgba(223,76,82,.25);background:linear-gradient(135deg,#fffafa,#fff)}.student-danger-zone>div:first-child{margin-bottom:14px}.student-danger-zone h3{margin:8px 0 5px;color:#8f252a}.student-danger-zone form{display:grid;gap:11px;max-width:620px}.student-danger-zone .btn-danger{justify-self:start}
.quiz-timer-card{position:sticky;top:82px;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 16px;padding:14px 17px;border:1px solid #ffd0b7;border-radius:17px;background:rgba(255,248,243,.96);box-shadow:0 10px 28px rgba(7,23,37,.07);backdrop-filter:blur(9px)}.quiz-timer-card>div{display:grid;gap:2px}.quiz-timer-card small{font-size:9px;color:#7d8991;font-weight:800}.quiz-timer-card strong{font-size:24px;color:var(--orange);font-variant-numeric:tabular-nums;letter-spacing:.4px}.quiz-timer-card>span{font-size:9px;color:#7a8790;font-weight:700}.quiz-timer-card.is-expired{border-color:#efc7ca;background:#fff4f4}.quiz-timer-card.is-expired strong{color:var(--danger)}
.quiz-result-hero{border-top:4px solid var(--blue)}.quiz-result-summary{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}.quiz-result-summary>div{display:grid;gap:4px;min-width:0;padding:13px 14px;border:1px solid #e2e9ed;border-radius:14px;background:#fafcfd}.quiz-result-summary small{font-size:8px;color:#7c8b94;font-weight:800}.quiz-result-summary strong{font-size:13px;color:var(--navy);overflow-wrap:anywhere}.quiz-result-summary .is-correct{border-color:#cfe8dc;background:#f6fcf9}.quiz-result-summary .is-correct strong{color:#238b57}.quiz-result-summary .is-wrong{border-color:#efd4d6;background:#fff8f8}.quiz-result-summary .is-wrong strong{color:var(--danger)}
.quiz-review-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 15px;padding:7px;border:1px solid #e1e8ec;border-radius:15px;background:#fff;box-shadow:0 8px 24px rgba(7,23,37,.04)}.quiz-review-tabs button{border:0;border-radius:11px;background:#f3f6f8;color:#63737e;padding:10px 14px;font-size:10px;font-weight:900;cursor:pointer}.quiz-review-tabs button b{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-inline-start:5px;padding:0 6px;border-radius:999px;background:#fff;color:var(--navy)}.quiz-review-tabs button.active{background:var(--navy);color:#fff}.quiz-review-tabs button.active b{color:var(--navy)}.quiz-review-panel{display:grid;gap:0}.quiz-result.correct{border-inline-end:4px solid #2ca66a}.correct-result-card .answer-compare.correct{margin-top:12px}
@media(max-width:760px){.quiz-result-summary{grid-template-columns:1fr 1fr}.quiz-timer-card{top:76px;align-items:flex-start;flex-direction:column;gap:5px}.quiz-timer-card strong{font-size:21px}.student-danger-zone .btn-danger{width:100%;justify-self:stretch}}
@media(max-width:480px){.quiz-result-summary{grid-template-columns:1fr}.quiz-review-tabs{display:grid;grid-template-columns:1fr 1fr}.quiz-review-tabs button{width:100%;padding-inline:8px}}

/* v1.12.0 — batch homework entry, lowercase choices, fixed-order quiz/monthly-exam choice cards */
.homework-pending-list{display:grid;gap:8px;margin-top:4px}.homework-pending-row{display:grid;grid-template-columns:1fr 1fr 34px;gap:8px;align-items:center;padding:10px 12px;border:1px solid #e2e9ed;border-radius:13px;background:#f8fafb;font-size:11px}.homework-pending-row b{text-transform:lowercase;color:var(--navy);font-size:13px}.homework-pending-row button{width:30px;height:30px;border:0;border-radius:9px;background:#fff0ea;color:var(--danger);font-size:18px;cursor:pointer}.homework-batch-save{width:100%}.homework-batch-save:disabled{opacity:.45;cursor:not-allowed}.mcq-empty-hint{padding:10px 12px;border-radius:12px;background:#fff8f3;border:1px solid #ffe2d1;color:#7b5a48}

.quiz-mcq-options.with-copy{display:grid;grid-template-columns:1fr;gap:10px}.quiz-choice{position:relative;cursor:pointer;transition:.18s ease;min-height:56px}.quiz-choice input{position:absolute;opacity:0;pointer-events:none}.quiz-mcq-options.with-copy .quiz-choice{display:flex;align-items:center;padding:13px 14px 13px 58px;border:1px solid #e0e7eb;border-radius:15px;background:#fff}.quiz-mcq-options.with-copy .choice-badge{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--orange);color:#fff;font-size:12px;font-weight:900;text-transform:lowercase}.quiz-mcq-options.with-copy .choice-copy{display:block;width:100%;line-height:1.85}.quiz-mcq-options.with-copy .quiz-choice:hover{border-color:#ffc8a7;background:#fffaf7}.quiz-mcq-options.with-copy .quiz-choice:has(input:checked){background:var(--orange);border-color:var(--orange);color:#fff;box-shadow:0 10px 28px rgba(255,107,26,.18)}.quiz-mcq-options.with-copy .quiz-choice:has(input:checked) .choice-badge{background:#fff;color:var(--orange)}.quiz-mcq-options.with-copy .quiz-choice:has(input:checked) .choice-copy,.quiz-mcq-options.with-copy .quiz-choice:has(input:checked) .choice-copy *{color:#fff!important}

.quiz-mcq-options.letters-only{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;width:100%;max-width:520px;margin-inline:auto}.quiz-mcq-options.letters-only .letter-choice{min-height:62px;display:grid;place-items:center;border:1px solid #e0e7eb;border-radius:15px;background:#fff;padding:10px}.quiz-mcq-options.letters-only .choice-badge{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff2e9;color:var(--orange);font-weight:900;font-size:16px;text-transform:lowercase}.quiz-mcq-options.letters-only .letter-choice:hover{border-color:#ffc39f;background:#fffaf7}.quiz-mcq-options.letters-only .letter-choice:has(input:checked){background:var(--orange);border-color:var(--orange);box-shadow:0 10px 28px rgba(255,107,26,.18)}.quiz-mcq-options.letters-only .letter-choice:has(input:checked) .choice-badge{background:#fff;color:var(--orange)}

.truefalse-options .quiz-choice:has(input:checked){border-color:var(--orange);background:#fff5ee;box-shadow:0 8px 20px rgba(255,107,26,.12)}

.monthly-exam-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.monthly-exam-card{position:relative;overflow:hidden}.monthly-exam-card:before{content:'';position:absolute;width:130px;height:130px;border-radius:50%;background:var(--orange);opacity:.06;left:-45px;bottom:-55px}.monthly-exam-meta{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.monthly-exam-status{display:inline-flex;align-items:center;gap:6px}.monthly-admin-layout{display:grid;grid-template-columns:minmax(280px,.75fr) minmax(0,1.55fr);gap:18px;align-items:start}.monthly-exam-list{display:grid;gap:9px}.monthly-exam-list a{display:block;padding:13px;border:1px solid #e3e9ed;border-radius:14px;background:#fff;color:var(--ink)}.monthly-exam-list a.active{border-color:var(--orange);background:#fff7f2}.monthly-exam-list small{display:block;color:var(--muted);margin-top:4px}.exam-admin-question-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.monthly-results-table{overflow:auto}.monthly-results-table table{width:100%;border-collapse:collapse;min-width:650px}.monthly-results-table th,.monthly-results-table td{padding:10px;border-bottom:1px solid #edf1f3;text-align:right;font-size:11px}

@media(max-width:900px){.monthly-admin-layout,.monthly-exam-grid{grid-template-columns:1fr}}@media(max-width:520px){.quiz-mcq-options.letters-only{grid-template-columns:1fr 1fr}.homework-pending-row{grid-template-columns:1fr 1fr 30px}}

/* ===== Student Dashboard Redesign ===== */
.student-dash-hero{
  background:linear-gradient(135deg,#0c1624 0%,#132438 60%,#19304a 100%);
  color:#fff;border-radius:24px;padding:26px 30px;
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;position:relative;overflow:hidden;
  box-shadow:0 18px 50px rgba(11,21,34,.14);
  margin-bottom:22px;
}
.student-dash-hero:before{
  content:'';position:absolute;width:280px;height:280px;
  background:radial-gradient(circle,rgba(255,107,26,.32) 0%,transparent 70%);
  top:-70px;left:-60px;pointer-events:none;
}
.student-dash-hero:after{
  content:'لغة الضاد';position:absolute;left:18px;bottom:-15px;
  font-size:70px;font-weight:900;color:rgba(255,255,255,.04);
  pointer-events:none;
}
.student-hero-content{position:relative;z-index:2}
.student-hero-content h1{margin:8px 0 6px;font-size:26px;color:#fff}
.student-hero-content p{margin:0;color:#94a3b8;font-size:13px;line-height:1.7}
.student-hero-actions{position:relative;z-index:2;display:flex;gap:9px;flex-wrap:wrap}

/* Student 3 Metrics Row */
.student-metrics-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:16px;margin-bottom:24px;
}
.metric-box{
  background:#fff;border:1px solid rgba(11,21,34,.07);
  border-radius:20px;padding:22px;
  box-shadow:0 12px 35px rgba(11,21,34,.04);
  display:flex;flex-direction:column;justify-content:space-between;
  position:relative;overflow:hidden;transition:.2s ease;
}
.metric-box:hover{transform:translateY(-3px);box-shadow:0 18px 45px rgba(11,21,34,.08)}
.metric-box-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.metric-box-icon{
  width:44px;height:44px;border-radius:13px;
  display:grid;place-items:center;font-size:20px;
  background:rgba(255,107,26,.1);color:var(--orange);
}
.metric-box-icon.blue{background:rgba(2,132,199,.1);color:var(--blue)}
.metric-box-icon.green{background:rgba(16,185,129,.1);color:var(--success)}
.metric-box strong{font-size:26px;color:var(--navy);font-weight:900;display:block;line-height:1.1}
.metric-box span.metric-sub{font-size:12px;color:var(--muted);display:block;margin-top:6px;line-height:1.6}
.metric-progress-bar{
  height:9px;background:#e2e8f0;border-radius:99px;
  margin-top:14px;overflow:hidden;
}
.metric-progress-bar i{
  display:block;height:100%;border-radius:99px;
  background:linear-gradient(90deg,var(--orange),#ea580c);
  transition:width .4s ease;
}

/* Open Content Modern Cards */
.open-courses-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.course-hub-card{
  background:#fff;border:1px solid rgba(11,21,34,.07);
  border-radius:20px;padding:20px;
  box-shadow:0 10px 30px rgba(11,21,34,.04);
  display:flex;flex-direction:column;justify-content:space-between;
  transition:.2s ease;
}
.course-hub-card:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(11,21,34,.08);border-color:rgba(255,107,26,.2)}
.course-hub-top{display:flex;gap:12px;align-items:flex-start;margin-bottom:16px}
.course-hub-icon{
  width:46px;height:46px;border-radius:14px;
  background:linear-gradient(135deg,#fff4ec,#ffe8d9);
  color:var(--orange);display:grid;place-items:center;
  font-size:18px;font-weight:900;flex-shrink:0;
}
.course-hub-info h3{margin:4px 0 4px;font-size:15px;color:var(--navy);font-weight:800}
.course-hub-info p{margin:0;font-size:11px;color:var(--muted)}
.course-hub-bottom{display:flex;align-items:center;justify-content:space-between;padding-top:12px;border-top:1px solid #f1f5f9}

/* ===== Admin Dashboard Redesign ===== */
.admin-dash-hero{
  background:linear-gradient(135deg,#0d1826 0%,#13253b 60%,#1d3756 100%);
  color:#fff;border-radius:24px;padding:26px 30px;
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;position:relative;overflow:hidden;
  box-shadow:0 18px 50px rgba(11,21,34,.14);
  margin-bottom:22px;
}
.admin-dash-hero:before{
  content:'';position:absolute;width:280px;height:280px;
  background:radial-gradient(circle,rgba(255,107,26,.25) 0%,transparent 70%);
  top:-70px;left:-60px;pointer-events:none;
}
.admin-hero-actions{position:relative;z-index:2;display:flex;gap:9px;flex-wrap:wrap}

/* 4 Admin Stats Cards */
.admin-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}
.admin-stat-card{
  background:#fff;border:1px solid rgba(11,21,34,.07);
  border-radius:20px;padding:22px;
  box-shadow:0 12px 35px rgba(11,21,34,.04);
  display:flex;align-items:center;gap:16px;
  transition:.2s ease;position:relative;overflow:hidden;
}
.admin-stat-card:hover{transform:translateY(-3px);box-shadow:0 18px 45px rgba(11,21,34,.08)}
.admin-stat-icon{
  width:52px;height:52px;border-radius:16px;
  display:grid;place-items:center;font-size:24px;
  flex-shrink:0;
}
.admin-stat-icon.orange{background:linear-gradient(135deg,#fff3ea,#ffe6d5);color:var(--orange)}
.admin-stat-icon.blue{background:linear-gradient(135deg,#edf7fc,#d8eef9);color:var(--blue)}
.admin-stat-icon.green{background:linear-gradient(135deg,#edf9f4,#d4f2e5);color:var(--success)}
.admin-stat-icon.navy{background:linear-gradient(135deg,#eef2f6,#dae3ec);color:var(--navy)}
.admin-stat-content small{font-size:11px;font-weight:700;color:var(--muted);display:block}
.admin-stat-content strong{font-size:27px;font-weight:900;color:var(--navy);display:block;line-height:1.15;margin-top:2px}

/* Quick Hub Grid */
.admin-hub-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.admin-hub-item{
  background:#fff;border:1px solid rgba(11,21,34,.07);
  border-radius:18px;padding:18px 16px;
  box-shadow:0 8px 24px rgba(11,21,34,.03);
  display:flex;align-items:center;gap:14px;
  transition:.18s ease;color:var(--ink);
}
.admin-hub-item:hover{
  transform:translateY(-2px);
  border-color:rgba(255,107,26,.3);
  box-shadow:0 14px 35px rgba(11,21,34,.08);
}
.admin-hub-icon{
  width:44px;height:44px;border-radius:13px;
  display:grid;place-items:center;font-size:20px;
  background:rgba(255,107,26,.09);color:var(--orange);
  flex-shrink:0;
}
.admin-hub-item:nth-child(2) .admin-hub-icon{background:rgba(2,132,199,.09);color:var(--blue)}
.admin-hub-item:nth-child(3) .admin-hub-icon{background:rgba(16,185,129,.09);color:var(--success)}
.admin-hub-item:nth-child(4) .admin-hub-icon{background:rgba(245,158,11,.09);color:var(--warning)}
.admin-hub-item:nth-child(5) .admin-hub-icon{background:rgba(139,92,246,.09);color:#8b5cf6}
.admin-hub-item:nth-child(6) .admin-hub-icon{background:rgba(11,21,34,.09);color:var(--navy)}
.admin-hub-item h3{margin:0 0 2px;font-size:14px;font-weight:800;color:var(--navy)}
.admin-hub-item p{margin:0;font-size:11px;color:var(--muted)}

@media(max-width:1100px){
  .student-metrics-grid,.open-courses-grid{grid-template-columns:1fr 1fr}
  .admin-stats-grid{grid-template-columns:repeat(2,1fr)}
  .admin-hub-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  .student-dash-hero,.admin-dash-hero{flex-direction:column;text-align:center;padding:22px 18px}
  .student-hero-actions,.admin-hero-actions{justify-content:center;width:100%}
  .student-hero-actions .btn,.admin-hero-actions .btn{width:100%}
  .student-metrics-grid,.open-courses-grid{grid-template-columns:1fr}
  .admin-stats-grid,.admin-hub-grid{grid-template-columns:1fr}
}

.home-cta-copy h2{font-size:clamp(26px,3.2vw,40px);margin:0 0 10px;font-weight:900}
.home-cta-copy p{color:#a9c0d1;font-size:15px;line-height:1.8;margin:0}
.home-cta-actions{position:relative;z-index:2;display:flex;gap:12px;flex-wrap:wrap}

/* Responsive */
@media(max-width:1100px){
  .features-grid{grid-template-columns:repeat(2,1fr)}
  .steps-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .home-section{margin:45px auto;padding:0 18px}
  .features-grid{grid-template-columns:1fr}
  .home-cta-card{flex-direction:column;text-align:center;padding:36px 24px}
  .home-cta-actions{justify-content:center;width:100%}
  .home-cta-actions .btn{width:100%}
}
