@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');
:root{--navy:#12213a;--navy2:#1a3152;--gold:#d5a75b;--cream:#f7f5f0;--paper:#fff;--ink:#1d2a3d;--muted:#758094;--line:#e5e9ef;--green:#13866d;--red:#bd4c51;--shadow:0 18px 50px rgba(21,39,64,.08)}*{box-sizing:border-box}body{margin:0;background:#fbfcfe;color:var(--ink);font-family:'Cairo',Tahoma,Arial,sans-serif;line-height:1.75}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.topbar{height:82px;background:#fff;border-bottom:1px solid #edf0f4;display:flex;align-items:center;justify-content:space-between;padding:0 max(calc((100vw - 1180px)/2),24px);gap:22px;position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:12px;min-width:190px}.brand-icon{width:48px;height:48px;flex:0 0 48px;object-fit:cover;border-radius:50%;display:block;background:#fff;box-shadow:0 5px 14px #d5a75b35;border:2px solid #d5a75b}.brand b{display:block;font-size:16px;line-height:1.5}.brand small{display:block;color:var(--muted);font-size:11px;letter-spacing:.5px}.topbar nav{display:flex;align-items:center;gap:22px;font-size:13px;font-weight:700}.topbar nav>a{color:#596579;transition:.2s}.topbar nav>a:hover,.text-link,.back-link{color:var(--gold)}.nav-cta{background:var(--navy);color:white!important;padding:9px 16px;border-radius:10px}.inline{display:inline;margin:0}.nav-logout{border:0;background:transparent;color:#9b4750;font-weight:800}.container{max-width:1180px;margin:0 auto;padding:34px 24px 70px;min-height:65vh}.hero{min-height:530px;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:55px;padding:45px 0 65px}.eyebrow{font-size:12px;letter-spacing:.3px;color:#b58338;font-weight:800;display:block;margin-bottom:10px}.hero h1{font-size:clamp(34px,4vw,53px);line-height:1.35;letter-spacing:-1px;margin:0 0 18px;color:var(--navy);font-weight:900}.hero h1 em{font-style:normal;color:#bd8c44}.hero-copy>p{color:#687487;font-size:15px;max-width:600px;line-height:2.1}.hero-actions{display:flex;gap:12px;margin:27px 0 25px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:11px;padding:12px 20px;font-size:13px;font-weight:800;transition:transform .2s,box-shadow .2s;cursor:pointer}.btn:hover{transform:translateY(-1px)}.btn.primary{background:var(--navy);color:#fff;box-shadow:0 8px 18px #12213a20}.btn.secondary{background:#eef2f7;color:var(--navy)}.btn.light{background:#fff;color:var(--navy)}.btn.danger{background:#fff0f0;color:#b54249}.btn.full{width:100%;margin-top:8px}.btn.small{padding:7px 11px;border-radius:8px;font-size:11px;white-space:nowrap}.hero-points{display:flex;flex-wrap:wrap;gap:18px;color:#7c8796;font-size:11px}.hero-points span:first-letter{color:var(--green)}.hero-art{min-height:390px;position:relative;display:grid;place-items:center}.orbit{position:absolute;border:1px solid #e7d7b7;border-radius:50%;width:370px;height:370px;transform:rotate(-24deg)}.orbit-two{width:300px;height:420px;transform:rotate(42deg);border-color:#dfe5ee}.history-card{position:relative;width:270px;height:340px;border-radius:20px;background:linear-gradient(150deg,#213d60,#0f1d32);box-shadow:0 25px 60px #13253d35;color:#fff;padding:25px;display:flex;flex-direction:column;justify-content:space-between;transform:rotate(-4deg);overflow:hidden}.history-card:before{content:'';position:absolute;width:210px;height:210px;border:1px solid #d5a75b55;border-radius:50%;left:-90px;bottom:10px}.card-top,.card-bottom{font-size:9px;letter-spacing:2px;color:#e7c68d}.book-symbol{font-size:54px;font-weight:900;text-align:center;color:#f3d49d;text-shadow:0 8px 24px #0004}.timeline{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#e3eaf3}.timeline i{height:1px;width:24px;background:#d5a75b}.card-bottom{text-align:center}.floating-note{position:absolute;background:#fff;padding:12px 16px;border-radius:12px;box-shadow:var(--shadow);font-size:12px;font-weight:800}.note-one{top:65px;right:-10px}.note-two{bottom:54px;left:-10px}.section{margin:25px 0 60px}.section.compact{margin:35px 0}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}.section-heading h2{margin:0;color:var(--navy);font-size:27px;line-height:1.4}.section-heading p{color:var(--muted);font-size:12px;max-width:370px}.grade-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.grade-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:0 8px 25px #14274405;overflow:hidden}.grade-card.accent{background:#f4f6fa}.grade-num{position:absolute;left:24px;top:10px;color:#e7eaf0;font-size:42px;font-weight:900}.grade-emoji{font-size:28px}.grade-card h3{margin:10px 0 5px;color:var(--navy);font-size:20px}.grade-card p{color:var(--muted);font-size:13px}.grade-card a{color:#b58338;font-size:12px;font-weight:900}.cta-band{background:var(--navy);color:#fff;padding:30px 36px;border-radius:18px;display:flex;align-items:center;justify-content:space-between;gap:20px}.cta-band h2{margin:0;font-size:25px}.cta-band p{color:#c5cfdd;font-size:12px;margin:5px 0 0}.auth-wrap{min-height:580px;display:grid;grid-template-columns:1fr 430px;align-items:center;gap:65px;max-width:1000px;margin:0 auto}.auth-aside{background:linear-gradient(145deg,#1c3555,#0f1c30);padding:48px;border-radius:22px;color:#fff;min-height:350px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.auth-aside:after{content:'تاريخ';position:absolute;bottom:-45px;left:-15px;font-size:130px;font-weight:900;color:#ffffff08}.auth-aside h1{font-size:40px;line-height:1.4;margin:0 0 12px}.auth-aside p{color:#c3cdd9;font-size:13px}.mini-stats{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.mini-stats span{font-size:10px;border:1px solid #ffffff25;border-radius:20px;padding:6px 10px}.form-card,.panel{background:#fff;border:1px solid var(--line);border-radius:17px;padding:28px;box-shadow:var(--shadow)}.form-card h2,.panel h2{font-size:20px;margin:0 0 8px;color:var(--navy)}.form-card h1{font-size:27px;color:var(--navy);margin:4px 0}.form-icon{width:45px;height:45px;display:grid;place-items:center;border-radius:14px;background:#f8efdf;color:#b58338;font-size:25px;font-weight:900;margin-bottom:18px}.muted{color:var(--muted);font-size:12px}.form-card label{display:block;font-size:12px;font-weight:800;margin:15px 0;color:#435066}.form-card input,.form-card select,.form-card textarea,.filter-bar select{display:block;width:100%;margin-top:7px;border:1px solid #dfe5ed;background:#fcfdff;border-radius:10px;padding:11px 12px;outline:0;color:var(--ink);font-size:13px}.form-card input:focus,.form-card select:focus,.form-card textarea:focus{border-color:#c7a46b;box-shadow:0 0 0 3px #d5a75b20}.form-card textarea{resize:vertical}.form-foot{text-align:center;font-size:11px;color:var(--muted);margin:20px 0 0}.form-foot a,.tiny a{color:#b58338;font-weight:800}.tiny{font-size:10px;text-align:center;color:#9aa3af}.form-page{max-width:800px;margin:10px auto 40px}.page-heading{text-align:center;margin:15px auto 28px;max-width:620px}.page-heading h1{font-size:32px;color:var(--navy);margin:0}.page-heading p{font-size:13px;color:var(--muted)}.form-card.wide{padding:32px}.form-card.narrow{max-width:500px;margin:25px auto}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.span-two{grid-column:span 2}.optional{color:#a2aab5;font-size:10px}.form-card small{display:block;color:#8a95a5;font-size:10px;font-weight:500;margin-top:4px}.dashboard-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 28px}.dashboard-head h1{font-size:30px;color:var(--navy);margin:0;line-height:1.4}.dashboard-head p{color:var(--muted);font-size:13px;margin:6px 0}.pill{border:1px solid #ead9b8;background:#fff9ed;color:#9a702d;border-radius:12px;padding:10px 16px;font-size:12px;font-weight:900}.teacher-badge{width:66px;height:66px;border-radius:19px;background:var(--navy);color:#e9c98f;display:grid;place-items:center;text-align:center;font-size:23px;font-weight:900;line-height:1}.teacher-badge small{font-size:7px;letter-spacing:1px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:22px 0 35px}.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 20px;box-shadow:0 5px 18px #10223c04}.stat span{display:block;color:#778296;font-size:11px}.stat b{display:block;color:var(--navy);font-size:29px;line-height:1.5;margin:5px 0}.stat small{font-size:10px;color:#a0a8b4}.stat .small-value{font-size:13px;word-break:break-word}.admin-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.admin-tile{border:1px solid var(--line);border-radius:15px;padding:22px;background:#fff;display:flex;flex-direction:column;gap:5px;transition:.2s}.admin-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.admin-tile>span{font-size:25px;margin-bottom:5px}.admin-tile b{font-size:13px;color:var(--navy)}.admin-tile small{font-size:10px;color:var(--muted)}.admin-tile.highlighted{background:#f7f0e3;border-color:#ead9b8}.list-panel{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}.list-row{display:flex;align-items:center;gap:14px;padding:14px 18px;border-bottom:1px solid #edf0f4;min-height:72px}.list-row:last-child{border-bottom:0}.row-icon{flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:#f2f5f9;display:grid;place-items:center;font-size:18px}.row-main{flex:1;min-width:0}.row-main b{display:block;font-size:12px;color:var(--navy)}.row-main small{display:block;color:var(--muted);font-size:10px;white-space:normal}.status{display:inline-flex;align-items:center;white-space:nowrap;padding:5px 9px;border-radius:8px;font-size:10px;font-weight:800;background:#eef2f7;color:#647086}.status.in_progress{background:#e6f7f0;color:#117b5c}.status.submitted{background:#eaf0ff;color:#3459a6}.status.not_started{background:#f1f2f5;color:#707a8a}.status.left{background:#fff0e7;color:#b15a28}.live-dot{color:#169c72;background:#e4f8ef;font-size:12px}.empty-line{padding:24px;text-align:center;color:#929bab;font-size:12px}.empty-state{text-align:center;background:#fff;border:1px dashed #d8dfe9;border-radius:17px;padding:45px 20px;color:var(--muted)}.empty-state>div{font-size:38px}.empty-state h3{color:var(--navy);margin:8px 0}.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.course-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}.course-cover{height:135px;background:linear-gradient(130deg,#142844,#294a6e);padding:20px;display:flex;align-items:end;justify-content:space-between;color:#e7c68d}.course-cover span{font-size:26px;font-weight:900}.course-cover b{font-size:44px;opacity:.3}.course-body{padding:20px}.tag{display:inline-block;background:#f8f0e2;color:#a67831;padding:4px 8px;border-radius:6px;font-size:9px;font-weight:900}.course-body h3{font-size:16px;color:var(--navy);margin:9px 0}.course-body p{font-size:11px;color:var(--muted);min-height:42px}.course-meta{display:flex;justify-content:space-between;font-size:10px;color:#7e8999;margin:15px 0}.split-layout{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr);gap:20px;align-items:start}.split-layout>.form-card,.split-layout>.panel{min-width:0}.manage-card{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:16px 0;border-bottom:1px solid #edf0f4}.manage-card:last-child{border-bottom:0}.manage-card h3{font-size:13px;color:var(--navy);margin:7px 0 2px}.manage-card small{font-size:10px;color:var(--muted)}.manage-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.manage-actions form{margin:0}.content-admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.content-admin-grid .form-card{padding:22px;min-width:0}.content-admin-grid h2{font-size:17px}.back-link{font-size:11px;font-weight:800;display:block;margin-bottom:10px}.filter-bar{display:flex;align-items:end;justify-content:space-between;gap:18px;background:#fff;border:1px solid var(--line);padding:14px 18px;border-radius:13px;margin:20px 0}.filter-bar label{font-size:11px;font-weight:800;display:flex;align-items:center;gap:12px}.filter-bar select{min-width:250px;margin:0}.filter-bar>span{font-size:10px;color:var(--muted)}.table-wrap{overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:14px}table{border-collapse:collapse;width:100%;min-width:850px;text-align:right}th{background:#f5f7fa;color:#657187;font-size:10px;padding:14px 15px;white-space:nowrap}td{padding:13px 15px;border-top:1px solid #edf0f4;font-size:11px;vertical-align:middle}td b{color:var(--navy)}td small{display:block;font-size:9px;color:#98a1ae}.live-badge{background:#e9f8f1;color:#18825f;padding:9px 13px;border-radius:9px;font-size:11px;font-weight:800;display:flex;align-items:center;gap:8px}.live-badge i{width:7px;height:7px;background:#15956b;border-radius:50%;box-shadow:0 0 0 4px #15956b20}.notice{padding:13px 15px;border-radius:10px;font-size:11px;line-height:1.9;margin:16px 0;background:#f0f4f9;color:#526176}.notice.warning{background:#fff7e9;color:#986d28;border:1px solid #f2e3c3}.notice.success{background:#e9f8f0;color:#147653}.exam-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.exam-head h1{font-size:27px;color:var(--navy);margin:0}.exam-head p{font-size:12px;color:var(--muted)}.timer-box{background:var(--navy);color:#fff;border-radius:13px;padding:12px 20px;text-align:center;min-width:125px}.timer-box small{display:block;font-size:10px;color:#c7d1de}.timer-box b{font-size:24px;letter-spacing:1px}.exam-warning{margin:20px 0}.question-list{display:grid;gap:16px}.question-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:23px}.question-number{color:#b58338;font-size:11px;font-weight:900}.question-card h3{font-size:16px;color:var(--navy);margin:7px 0 18px}.options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.option{display:flex;align-items:center;gap:10px;border:1px solid #e5e9ef;border-radius:10px;padding:12px;font-size:12px;cursor:pointer}.option:has(input:checked){background:#f7f0e3;border-color:#d5a75b}.option input{accent-color:var(--navy)}.exam-submit-bar{position:sticky;bottom:12px;display:flex;justify-content:space-between;align-items:center;gap:15px;background:#fff;padding:14px 18px;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);margin-top:20px}.exam-submit-bar span{font-size:11px;color:var(--muted)}.result-box{display:flex;justify-content:space-between;align-items:center;background:#f6f8fb;padding:18px;border-radius:12px;margin:20px 0}.result-box span{font-size:12px;color:var(--muted)}.result-box b{font-size:23px;color:var(--navy)}.center{text-align:center}footer{border-top:1px solid #e9edf2;background:#fff;padding:25px max(calc((100vw - 1180px)/2),24px);display:flex;align-items:center;justify-content:space-between;gap:15px;color:#7d8797;font-size:10px}footer b{color:var(--navy);font-size:12px}footer p{margin:3px 0}.text-link{font-size:11px;font-weight:800}
@media(max-width:900px){.topbar{padding:0 18px}.topbar nav{gap:12px}.hero{gap:20px}.hero-art{transform:scale(.85)}.auth-wrap{grid-template-columns:1fr 400px;gap:25px}.admin-grid{grid-template-columns:repeat(2,1fr)}.content-admin-grid{grid-template-columns:repeat(2,1fr)}.stats-grid{grid-template-columns:repeat(2,1fr)}.course-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.topbar{height:auto;min-height:72px;flex-wrap:wrap;padding:12px 16px}.brand{min-width:0}.topbar nav{width:100%;justify-content:space-between;gap:8px;font-size:11px;padding-bottom:3px}.container{padding:23px 15px 45px}.hero{grid-template-columns:1fr;padding:22px 0 38px;gap:0}.hero h1{font-size:35px}.hero-copy>p{font-size:13px}.hero-art{min-height:330px;transform:scale(.8);margin:-8px 0}.orbit{width:320px;height:320px}.orbit-two{height:350px}.history-card{width:235px;height:300px}.note-one{right:-4px}.note-two{left:-4px}.hero-points{gap:8px}.hero-points span{font-size:9px}.section{margin:20px 0 40px}.section-heading{align-items:start;flex-direction:column;gap:5px}.section-heading h2{font-size:24px}.grade-grid,.auth-wrap,.form-grid,.split-layout,.content-admin-grid{grid-template-columns:1fr}.auth-wrap{min-height:0;gap:18px}.auth-aside{padding:28px;min-height:260px}.auth-aside h1{font-size:32px}.form-card{padding:22px}.form-card.wide{padding:22px}.span-two{grid-column:auto}.form-page{margin-top:0}.page-heading h1{font-size:27px}.dashboard-head{align-items:flex-start;gap:12px}.dashboard-head h1{font-size:23px}.dashboard-head p{font-size:11px}.stats-grid{gap:9px}.stat{padding:14px}.stat b{font-size:25px}.admin-grid{gap:9px}.admin-tile{padding:15px}.course-grid{grid-template-columns:1fr}.course-cover{height:110px}.list-row{padding:12px;gap:8px;flex-wrap:wrap}.row-icon{width:34px;height:34px;flex-basis:34px}.row-main{min-width:calc(100% - 60px)}.list-row>.btn,.list-row>.status{margin-right:42px}.cta-band{padding:24px;align-items:flex-start;flex-direction:column}.filter-bar{align-items:stretch;flex-direction:column}.filter-bar label{align-items:flex-start;flex-direction:column}.filter-bar select{min-width:0}.exam-head{align-items:flex-start}.exam-head h1{font-size:21px}.timer-box{min-width:90px;padding:8px 12px}.timer-box b{font-size:20px}.options{grid-template-columns:1fr}.question-card{padding:17px}.question-card h3{font-size:14px}.exam-submit-bar{bottom:6px;padding:10px}.exam-submit-bar span{font-size:9px}.exam-submit-bar .btn{padding:10px 12px}footer{padding:22px 16px;flex-direction:column;align-items:flex-start}.manage-card{align-items:flex-start;flex-direction:column}.manage-actions{width:100%}.table-wrap{border-radius:10px}.teacher-badge{width:52px;height:52px;font-size:19px}.pill{font-size:10px;padding:7px 10px}}

.badge{display:inline-block;min-width:18px;padding:0 6px;border-radius:99px;background:#c0392b;color:#fff;font-size:10px;line-height:18px;text-align:center;font-weight:800}
.question-card .form-card textarea{font-size:12px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.chip{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);border-radius:99px;padding:7px 14px;font-size:12px;font-weight:800;color:#596579}.chip b{background:#eef2f7;color:var(--navy);border-radius:99px;padding:0 8px;font-size:11px}.chip.active{background:var(--navy);color:#fff;border-color:var(--navy)}.chip.active b{background:#ffffff25;color:#fff}.pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;margin:18px 0}.pager>span{font-size:11px;color:var(--muted);margin-left:8px}.check-line{display:flex!important;align-items:flex-start;gap:10px}.check-line input{width:auto!important;margin:5px 0 0!important}

/* صفحة دخول مباشرة للزائر؛ لا توجد روابط تنقل إضافية قبل تسجيل الدخول */
.home-auth{min-height:calc(100vh - 220px);display:grid;grid-template-columns:1fr minmax(300px,440px);gap:48px;align-items:center;max-width:1000px;margin:0 auto;padding:30px 0}.home-auth-copy{background:linear-gradient(145deg,#1c3555,#0f1c30);color:#fff;padding:42px;border-radius:22px;box-shadow:var(--shadow)}.home-auth-copy h1{font-size:clamp(30px,4vw,48px);line-height:1.35;margin:0 0 12px}.home-auth-copy p{color:#d0d9e5;font-size:14px}.home-highlights{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}.home-highlights span{border:1px solid #ffffff30;border-radius:20px;padding:7px 11px;font-size:11px}.home-login{width:100%}.topbar nav:empty{display:none}@media(max-width:650px){.home-auth{grid-template-columns:1fr;gap:18px;min-height:0;padding:12px 0 28px}.home-auth-copy{padding:25px}.home-auth-copy h1{font-size:32px}.home-login{padding:22px}}

@media(max-width:650px){}

/* Footer attribution and search-friendly branding */
footer{gap:18px;align-items:center;flex-wrap:wrap}.footer-meta{display:flex;align-items:center;gap:18px;flex-wrap:wrap;justify-content:flex-end}.developer-credit{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid #d5a75b55;border-radius:999px;background:linear-gradient(135deg,#fff,#fbf7ee);color:#12213a;font-size:12px;box-shadow:0 4px 14px #12213a0a}.developer-label{font-size:10px;text-transform:uppercase;letter-spacing:.8px;color:#758094;font-weight:800}.developer-credit strong{font-size:12px;color:#9a6a22;font-weight:900;letter-spacing:.2px}@media(max-width:640px){footer{align-items:flex-start}.footer-meta{justify-content:flex-start;gap:10px}.developer-credit{font-size:11px}}

/* Developer credit separators */
.developer-separator { color: var(--gold, #d9ad42); font-weight: 800; padding: 0 .12rem; }

/* Grade banners: same large thumbnail scale as course images, below login */
.student-grade-promos{width:100%;max-width:560px;margin:18px auto 30px;display:flex;flex-direction:column;align-items:stretch;gap:18px;padding:0 8px}
.student-grade-promo{display:flex;width:100%;max-width:100%;margin:0;flex-direction:column;align-items:stretch;gap:0;padding:7px;background:#fff;border:1px solid #e5e9ef;border-radius:12px;box-shadow:0 5px 18px rgba(21,39,64,.10);overflow:hidden}
.student-grade-promo img{display:block;width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:16/9;object-fit:cover;object-position:center 35%;border-radius:7px;border:0;box-shadow:none}
.student-grade-promo figcaption{font-size:14px;line-height:1.5;font-weight:800;color:#12213a;text-align:center;margin:8px 0 2px}
@media(max-width:600px){.student-grade-promos{max-width:560px;gap:14px;margin:14px auto 24px;padding:0 8px}.student-grade-promo{padding:6px;border-radius:10px}.student-grade-promo img{width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:16/9}.student-grade-promo figcaption{font-size:13px;margin-top:7px}}


/* ===== v3: top bar actions, bell + settings menu ===== */
.top-actions{display:flex;align-items:center;gap:10px}
.bell-btn{position:relative;width:44px;height:44px;border-radius:50%;background:#f4f6fa;border:1px solid #e5e9ef;display:grid;place-items:center;font-size:21px;line-height:1;transition:.2s}
.bell-btn:hover{background:#fff9ed;border-color:#ead9b8}
.bell-badge{position:absolute;top:-4px;left:-4px;min-width:19px;line-height:19px;padding:0 5px}
.user-menu{position:relative}
.user-menu>summary{list-style:none;width:44px;height:44px;border-radius:50%;background:#f4f6fa;border:1px solid #e5e9ef;display:grid;place-items:center;font-size:24px;font-weight:900;color:var(--navy);cursor:pointer;user-select:none;line-height:1}
.user-menu>summary::-webkit-details-marker{display:none}
.user-menu[open]>summary,.user-menu>summary:hover{background:#fff9ed;border-color:#ead9b8}
.user-menu-panel{position:absolute;top:calc(100% + 10px);left:0;width:270px;max-width:calc(100vw - 28px);background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 55px rgba(21,39,64,.18);padding:14px;z-index:60}
.menu-title{font-size:13px;font-weight:900;color:var(--navy);margin-bottom:10px}
.menu-data{background:#f7f9fc;border-radius:12px;padding:6px 12px;margin-bottom:10px}
.menu-data>div{padding:7px 0;border-bottom:1px dashed #e1e6ee}.menu-data>div:last-child{border-bottom:0}
.menu-data small{display:block;font-size:10px;color:var(--muted);line-height:1.4}
.menu-data b{display:block;font-size:13px;color:var(--navy);word-break:break-word;line-height:1.5}
.menu-link{display:block;width:100%;text-align:right;background:transparent;border:0;border-radius:10px;padding:10px 12px;font-size:13px;font-weight:800;color:#3a4860}
.menu-link:hover{background:#f4f6fa}
.menu-logout{color:#b54249}.menu-logout:hover{background:#fff0f0}
.user-menu-panel form{margin:0}

/* ===== v3: grade banners — full poster, big, stacked ===== */
.student-grade-promos{max-width:680px!important;gap:26px!important;margin:30px auto 40px!important;padding:0 6px!important}
.student-grade-promo{padding:9px!important;border-radius:18px!important;box-shadow:0 14px 40px rgba(21,39,64,.18)!important}
.student-grade-promo img{aspect-ratio:1/1!important;object-fit:contain!important;object-position:center!important;border-radius:12px!important;background:#0f1c30}
.student-grade-promo figcaption{font-size:17px!important;margin:12px 0 6px!important}
@media(max-width:600px){.student-grade-promos{max-width:100%!important;gap:20px!important;margin:22px auto 30px!important}.student-grade-promo{padding:6px!important;border-radius:14px!important}.student-grade-promo img{aspect-ratio:1/1!important}.student-grade-promo figcaption{font-size:15px!important}}

/* ===== v3: floating WhatsApp support button ===== */
.wa-float{position:fixed;left:16px;bottom:18px;z-index:80;display:flex;align-items:center;gap:10px;flex-direction:row}
.wa-icon{width:58px;height:58px;border-radius:50%;background:#25d366;display:grid;place-items:center;box-shadow:0 8px 22px rgba(37,211,102,.5);animation:waPulse 2.2s infinite}
.wa-tip{background:#fff;color:#12213a;font-size:12px;font-weight:800;padding:9px 14px;border-radius:12px;box-shadow:0 8px 24px rgba(21,39,64,.2);border:1px solid #e5e9ef;white-space:nowrap;position:relative;animation:waTip 7s ease-in-out 1.5s 1 both}
.wa-tip:before{content:'';position:absolute;left:-6px;top:50%;margin-top:-6px;width:12px;height:12px;background:#fff;border-left:1px solid #e5e9ef;border-bottom:1px solid #e5e9ef;transform:rotate(45deg)}
.wa-float:hover .wa-tip,.wa-float:focus .wa-tip{opacity:1!important;transform:none!important;animation:none}
@keyframes waTip{0%{opacity:0;transform:translateX(-8px)}8%,85%{opacity:1;transform:none}100%{opacity:0;transform:translateX(-8px)}}
@keyframes waPulse{0%{box-shadow:0 8px 22px rgba(37,211,102,.5),0 0 0 0 rgba(37,211,102,.45)}70%{box-shadow:0 8px 22px rgba(37,211,102,.5),0 0 0 16px rgba(37,211,102,0)}100%{box-shadow:0 8px 22px rgba(37,211,102,.5),0 0 0 0 rgba(37,211,102,0)}}
@media(max-width:650px){.wa-icon{width:52px;height:52px}.wa-tip{font-size:11px;padding:8px 11px}.topbar{flex-wrap:nowrap!important;min-height:76px!important;height:76px!important}.brand b{font-size:15px}.user-menu-panel{left:-6px}}


/* ===== v4 ===== */
/* grade banners: clickable, with register button */
.promos-title{text-align:center;font-size:22px;color:var(--navy);margin:0 0 4px;font-weight:900}
a.student-grade-promo{text-decoration:none;color:inherit;transition:transform .2s,box-shadow .2s;cursor:pointer;position:relative}
a.student-grade-promo:hover{transform:translateY(-4px);box-shadow:0 20px 50px rgba(21,39,64,.25)!important}
.promo-cap{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 10px 6px}
.promo-cap b{font-size:18px;color:var(--navy);font-weight:900}
.promo-btn{background:linear-gradient(135deg,#d5a75b,#b98532);color:#fff;font-size:14px;font-weight:900;padding:10px 22px;border-radius:12px;box-shadow:0 8px 18px rgba(185,133,50,.35);white-space:nowrap}
a.student-grade-promo:hover .promo-btn{filter:brightness(1.07)}
@media(max-width:600px){.promos-title{font-size:18px}.promo-cap b{font-size:16px}.promo-btn{font-size:13px;padding:9px 16px}}

/* footer: centered, wide developer credit */
footer{flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center;gap:16px!important}
.footer-info{text-align:center}
.footer-meta{width:100%;justify-content:center!important}
.developer-credit{justify-content:center;width:min(100%,460px);padding:12px 40px!important;gap:10px!important;font-size:14px!important;border-radius:999px}
.developer-credit strong{font-size:15px!important}
@media(max-width:640px){footer{align-items:center!important}.footer-meta{justify-content:center!important}.developer-credit{width:100%;padding:11px 20px!important}}

/* WhatsApp button: higher on the screen */
.wa-float{bottom:130px!important}
@media(max-width:650px){.wa-float{bottom:110px!important}}

/* student page */
.student-hero{background:linear-gradient(135deg,#1c3555,#0f1c30);color:#fff;border-radius:22px;padding:30px 32px;margin:6px 0 20px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.student-hero:after{content:'تاريخ';position:absolute;left:18px;bottom:-34px;font-size:110px;font-weight:900;color:#ffffff09;pointer-events:none}
.student-hero .eyebrow{color:#e7c68d}
.student-hero h1{margin:0;font-size:28px;line-height:1.5;color:#fff;font-weight:900}
.student-hero p{margin:6px 0 0;color:#c9d4e3;font-size:13px}
.student-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0 0 30px}
.stat-tile{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 14px;text-align:center;box-shadow:0 6px 20px #10223c07}
.stat-tile i{display:block;font-style:normal;font-size:26px;line-height:1.3;margin-bottom:4px}
.stat-tile span{display:block;color:#778296;font-size:12px}
.stat-tile b{display:block;color:var(--navy);font-size:22px;line-height:1.5;margin-top:2px}
.student-stats .stat-tile:first-child b{font-size:17px;padding-top:4px}
.course-card{box-shadow:0 8px 24px #10223c08;transition:transform .2s,box-shadow .2s}
.course-card:hover{transform:translateY(-3px);box-shadow:0 16px 36px #10223c14}
@media(max-width:650px){.student-hero{padding:22px 20px;border-radius:18px}.student-hero h1{font-size:22px}.student-stats{gap:8px}.stat-tile{padding:14px 6px;border-radius:13px}.stat-tile i{font-size:22px}.stat-tile span{font-size:10px}.stat-tile b{font-size:19px}.student-stats .stat-tile:first-child b{font-size:13px;padding-top:6px}}


/* ===== v5: question builder (teacher) ===== */
.qb{margin:6px 0 14px}
.qb-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:14px;color:var(--navy)}
.qb-card{background:#f9fafc;border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:12px}
.qb-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.qb-num{font-size:12px;font-weight:900;color:#b58338}
.qb-del{background:#fff0f0;color:#b54249;border:1px solid #f3d3d5;border-radius:8px;padding:5px 10px;font-size:11px;font-weight:800}
.qb-text{width:100%;border:1px solid #dfe5ee;border-radius:10px;padding:10px;font-size:14px;margin-bottom:10px;resize:vertical;background:#fff}
.qb-opts{display:grid;gap:8px;margin-bottom:6px}
.qb-opt{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e5e9ef;border-radius:10px;padding:6px 10px;cursor:pointer;margin:0}
.qb-opt>input[type=radio]{width:18px;height:18px;flex:none;accent-color:#2e8b57;margin:0}
.qb-letter{font-weight:900;color:var(--navy);width:18px;text-align:center;flex:none}
.qb-opt-text{flex:1;min-width:0;border:0!important;background:transparent!important;padding:7px 4px!important;font-size:13px;box-shadow:none!important}
.qb-right{font-size:10px;font-weight:900;color:#2e8b57;opacity:0;white-space:nowrap}
.qb-opt:has(input[type=radio]:checked){background:#eaf7ef;border-color:#9ad3b0}
.qb-opt:has(input[type=radio]:checked) .qb-right{opacity:1}
.qb-paste{margin:12px 0;background:#f7f9fc;border:1px dashed #cfd7e3;border-radius:12px;padding:10px 12px}
.qb-paste summary{cursor:pointer;font-size:12px;font-weight:800;color:#55657d}
.qb-paste textarea{width:100%;margin-top:8px}
.ocr-panel summary{cursor:pointer}

/* ===== v5: student exam options as answer buttons ===== */
.options{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
.option{position:relative;display:flex!important;align-items:center;gap:12px!important;border:2px solid #e3e8f0!important;border-radius:14px!important;padding:14px 16px!important;font-size:15px!important;line-height:1.7;background:#fff;cursor:pointer;transition:.15s;-webkit-tap-highlight-color:transparent}
.option:hover{border-color:#d5a75b!important;background:#fffaf0}
.option input{position:absolute;opacity:0;pointer-events:none}
.opt-letter{flex:none;width:34px;height:34px;border-radius:50%;background:#eef2f8;color:var(--navy);display:grid;place-items:center;font-weight:900;font-size:14px;transition:.15s}
.opt-text{flex:1;color:#1e2b42;font-weight:700}
.option:has(input:checked){background:#fff5e0!important;border-color:#c9922f!important;box-shadow:0 6px 16px rgba(201,146,47,.2)}
.option:has(input:checked) .opt-letter,.option input:checked~.opt-letter{background:#c9922f;color:#fff}
.question-card h3{font-size:17px!important;line-height:1.8}
.answered-count{font-size:13px;color:var(--navy)}
@media(max-width:650px){.option{padding:12px 12px!important;font-size:14px!important}.question-card h3{font-size:15px!important}.opt-letter{width:30px;height:30px}.answered-count{font-size:12px}}


/* ===== v7: exam summary (teacher) ===== */
.qb-summary{margin:12px 0;padding:12px 14px;background:#eef6ff;border:1px solid #cfe2f7;border-radius:12px;font-size:13px;color:var(--navy)}
.qb-summary:empty{display:none}
.qb-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.qb-chip{background:#eaf7ef;border:1px solid #9ad3b0;color:#1f6b43;border-radius:999px;padding:3px 11px;font-weight:900;font-size:12px}
.qb-chip.bad{background:#fff0f0;border-color:#f3c3c6;color:#b54249}


/* ===== v9: student page ===== */
a.stat-tile{text-decoration:none;color:inherit;transition:.2s}
a.stat-tile.link:hover{transform:translateY(-3px);border-color:#ead9b8;box-shadow:0 12px 28px #10223c12}
.course-grid{grid-template-columns:1fr!important;gap:16px!important}
.course-card{display:flex!important;flex-direction:row;align-items:stretch}
.course-card .course-cover{width:190px;height:auto;min-height:150px;flex:none}
.course-card .course-body{flex:1;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 26px}
.course-info{flex:1;min-width:0}
.course-info h3{margin:8px 0 6px;font-size:20px;color:var(--navy)}
.course-info p{margin:0 0 10px;color:#6d788b;font-size:13px;line-height:1.8}
.course-open{flex:none;white-space:nowrap;padding:12px 24px!important}
.exam-list{display:grid;gap:12px}
.exam-card{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px 18px;box-shadow:0 6px 20px #10223c07}
.exam-main{display:flex;align-items:center;gap:14px;min-width:0}
.exam-icon{width:48px;height:48px;border-radius:14px;background:#fff6e5;display:grid;place-items:center;font-size:22px;flex:none}
.exam-text{min-width:0}
.exam-text h3{margin:0 0 4px;font-size:16px;color:var(--navy)}
.exam-text small{display:block;color:#7a869a;font-size:12px;line-height:1.8}
.exam-side{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.exam-side .status{margin:0!important;font-size:11px}
.score-chip{background:#eef2f7;color:var(--navy);border-radius:10px;padding:7px 14px;font-weight:900;font-size:15px}
.score-chip.good{background:#e6f7f0;color:#117b5c}
.score-chip.bad{background:#fff0f0;color:#b54249}
.window-line{font-size:12px!important;font-weight:800;color:#5d6b82}
.window-line.timed{color:#b5731a}
.window-line.closed{color:#b54249}
.window-line.open{color:#2e8b57}
.empty-state.small{padding:26px}
.empty-state.small div{font-size:30px}
@media(max-width:700px){
  .course-card{flex-direction:column!important}
  .course-card .course-cover{width:auto;min-height:100px;height:100px}
  .course-card .course-body{flex-direction:column;align-items:stretch;padding:16px;gap:14px}
  .course-open{width:100%;text-align:center}
  .exam-card{flex-direction:column;align-items:stretch;padding:14px}
  .exam-side{justify-content:space-between}
}

/* ===== v9: teacher dashboard rows + exam builder bar ===== */
.row-actions{display:flex;gap:8px;flex-wrap:wrap;margin-right:auto}
.row-main small.window-line{display:block}
.qb-bar{position:sticky;bottom:0;z-index:20;display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.95);backdrop-filter:blur(6px);border:1px solid var(--line);border-radius:14px;padding:10px 12px;margin:14px 0;box-shadow:0 -8px 24px #10223c14}
.qb-bar-info{flex:1;font-size:12px;font-weight:800;color:var(--navy);line-height:1.6}
@media(max-width:650px){.qb-bar{flex-wrap:wrap}.qb-bar .btn.primary{flex:1}}

/* ===== v9: developer credit smaller ===== */
.developer-credit{font-size:11px!important;padding:8px 26px!important;width:min(100%,340px)!important;gap:7px!important}
.developer-credit strong{font-size:11.5px!important}
.developer-label{font-size:9px!important}


/* ===== v10: رسائل النجاح والخطأ في نص الصفحة ===== */
.toast-backdrop{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(15,28,48,.55);backdrop-filter:blur(3px);animation:toastFade .2s ease}
.toast-backdrop.out{opacity:0;transition:opacity .2s}
.toast-card{position:relative;overflow:hidden;width:min(100%,390px);background:#fff;border-radius:24px;padding:30px 24px 22px;text-align:center;box-shadow:0 30px 80px rgba(8,18,36,.4);animation:toastPop .45s cubic-bezier(.2,1.3,.4,1) both}
.toast-icon{width:84px;height:84px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;color:#fff;animation:toastIcon .5s .1s cubic-bezier(.2,1.4,.4,1) both}
.toast-icon svg{width:52px;height:52px;fill:none;stroke:#fff;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.toast-icon svg path{stroke-dasharray:60;stroke-dashoffset:60;animation:toastDraw .45s .35s ease forwards}
.toast-icon svg .dot{fill:#fff;stroke:none}
.toast-card.success .toast-icon,.toast-card.registered .toast-icon{background:linear-gradient(135deg,#2fc985,#139a63);box-shadow:0 12px 28px rgba(19,154,99,.4)}
.toast-card.danger .toast-icon{background:linear-gradient(135deg,#f0646a,#d33a43);box-shadow:0 12px 28px rgba(211,58,67,.4)}
.toast-card.warning .toast-icon{background:linear-gradient(135deg,#f6b44c,#e08a1b);box-shadow:0 12px 28px rgba(224,138,27,.4)}
.toast-card h3{margin:0 0 8px;font-size:21px;font-weight:900;color:var(--navy)}
.toast-card.danger h3{color:#c2323b}
.toast-card.warning h3{color:#b5731a}
.toast-card.success h3,.toast-card.registered h3{color:#117b5c}
.toast-msgs p{margin:0 0 6px;color:#4d5b72;font-size:14px;line-height:1.9}
.toast-btn{width:100%;margin-top:14px;border:0;border-radius:14px;padding:13px;font-size:15px;font-weight:900;color:#fff;background:var(--navy);cursor:pointer;transition:.15s}
.toast-btn:hover{filter:brightness(1.12)}
.toast-card.registered .toast-btn{background:linear-gradient(135deg,#d5a75b,#b98532);box-shadow:0 10px 22px rgba(185,133,50,.35)}
.toast-card.danger .toast-btn{background:#c2323b}
.toast-timer{position:absolute;left:0;bottom:0;height:4px;width:100%;background:#2fc985;transform-origin:right;animation:toastTimer 3.2s linear forwards}
@keyframes toastFade{from{opacity:0}to{opacity:1}}
@keyframes toastPop{from{opacity:0;transform:scale(.7) translateY(20px)}to{opacity:1;transform:none}}
@keyframes toastIcon{from{transform:scale(0) rotate(-40deg)}to{transform:none}}
@keyframes toastDraw{to{stroke-dashoffset:0}}
@keyframes toastTimer{to{transform:scaleX(0)}}
@media(prefers-reduced-motion:reduce){.toast-card,.toast-icon,.toast-icon svg path,.toast-timer{animation:none!important}.toast-icon svg path{stroke-dashoffset:0}}


/* ===== v11: التصميم الفخم للطالب (فراعنة · أهرامات · نقوش) ===== */
body.theme-student main,body.theme-student footer{position:relative;z-index:1}
body.theme-student .topbar{background:linear-gradient(135deg,#0d1a2e,#1c3555);border-bottom:3px solid #c9922f;box-shadow:0 6px 24px rgba(8,18,36,.28)}
body.theme-student .topbar:after{content:'';position:absolute;left:0;right:0;bottom:-8px;height:5px;background:repeating-linear-gradient(90deg,#c9922f 0 14px,transparent 14px 20px);opacity:.5}
body.theme-student .brand b{color:#fff}
body.theme-student .brand small{color:#e7c68d}
body.theme-student .brand-icon{box-shadow:0 0 0 2px #c9922f,0 6px 16px rgba(0,0,0,.35)}
body.theme-student .bell-btn,body.theme-student .user-menu>summary{background:rgba(255,255,255,.08);border:1px solid rgba(231,198,141,.45);color:#fff}
body.theme-student .bell-btn:hover,body.theme-student .user-menu[open]>summary,body.theme-student .user-menu>summary:hover{background:rgba(201,146,47,.28);border-color:#e7c68d}
body.theme-student footer{background:#0d1a2e;color:#c9d4e3;border-top:3px solid #c9922f;margin-top:50px}
body.theme-student footer b{color:#fff}
body.theme-student footer p{color:#a9b6c9}

.ornament-band{height:16px;margin:0 0 30px;background:url(art/band.svg) repeat-x center/auto 16px;opacity:.75}
body.theme-student .section-heading h2{position:relative;padding-bottom:12px}
body.theme-student .section-heading h2:after{content:'';position:absolute;right:0;bottom:0;width:150px;height:14px;background:url(art/band.svg) repeat-x right center/auto 14px}
body.theme-student .section-heading .eyebrow{color:#b98532;letter-spacing:.3px}
.section-sub{margin:10px 0 0;color:#6d788b;font-size:13px;line-height:1.8}

/* الهيرو */
body.theme-student .student-hero{background:linear-gradient(to left,rgba(10,20,38,.94) 0%,rgba(10,20,38,.82) 40%,rgba(10,20,38,.22) 100%),url(art/hero.webp) center 58%/cover no-repeat;border:2px solid #c9922f;border-radius:26px;padding:38px 36px;min-height:260px;display:flex;align-items:center;box-shadow:0 18px 50px rgba(8,18,36,.32),inset 0 0 0 5px rgba(13,26,46,.9),inset 0 0 0 6px rgba(201,146,47,.55)}
body.theme-student .student-hero:after{display:none}
.hero-text{position:relative;z-index:2;max-width:62%}
body.theme-student .student-hero .eyebrow{color:#e7c68d;font-size:13px}
body.theme-student .student-hero h1{font-size:32px;margin:8px 0 6px;text-shadow:0 2px 12px rgba(0,0,0,.4)}
body.theme-student .student-hero p{color:#d6dfec;font-size:14px}

/* الإحصائيات */
body.theme-student .stat-tile{border:1px solid #ead9b8;border-top:4px solid #c9922f;background:rgba(255,255,255,.92);box-shadow:0 10px 26px rgba(139,95,20,.1)}

/* الكورسات: لوحات الملفات */
.course-panel{background:rgba(255,255,255,.96);border:1px solid #ead9b8;border-radius:22px;box-shadow:0 14px 36px rgba(139,95,20,.12);overflow:hidden}
.course-panel+.course-panel{margin-top:18px}
.course-panel-head{display:flex;align-items:center;gap:18px;padding:22px 26px;background:linear-gradient(135deg,#102039,#1f3a63);color:#fff;position:relative;overflow:hidden}
.cp-emblem{flex:none;width:60px;height:60px;border-radius:50%;display:grid;place-items:center;font-size:28px;background:rgba(201,146,47,.2);border:2px solid #c9922f}
.cp-title{flex:1;min-width:0;position:relative;z-index:1}
.cp-title h3{margin:6px 0 4px;font-size:21px;color:#fff}
.cp-title p{margin:0;color:#c9d4e3;font-size:13px;line-height:1.7}
.cp-title .tag{background:rgba(201,146,47,.25);color:#f3dfa8;border:1px solid rgba(231,198,141,.5)}
.cp-counts{display:flex;flex-wrap:wrap;gap:8px;position:relative;z-index:1}
.cp-counts span{background:rgba(255,255,255,.12);border:1px solid rgba(231,198,141,.35);border-radius:999px;padding:6px 12px;font-size:12px;font-weight:800;color:#f3dfa8;white-space:nowrap}
.file-list{padding:14px 18px}
.file-row{display:flex;align-items:center;gap:14px;padding:13px 14px;border-radius:14px;text-decoration:none;color:inherit;border:1px solid transparent;transition:.15s}
.file-row+.file-row{border-top:1px dashed #eadfc9}
.file-row:hover{background:#fff8e8;border-color:#ead9b8;transform:translateX(-3px)}
.file-ico{flex:none;min-width:54px;text-align:center;padding:10px 8px;border-radius:12px;background:linear-gradient(135deg,#c9922f,#a8741c);color:#fff;font-weight:900;font-size:12px;letter-spacing:.5px;box-shadow:0 6px 14px rgba(168,116,28,.3)}
.file-info{flex:1;min-width:0}
.file-info b{display:block;color:#16294a;font-size:15px;line-height:1.6}
.file-info small{display:block;color:#7a869a;font-size:12px;line-height:1.6}
.file-go{flex:none;font-size:12px;font-weight:900;color:#a8741c;background:#fff3d6;border-radius:999px;padding:8px 14px;white-space:nowrap}
.course-panel-foot{padding:6px 18px 18px;display:flex;justify-content:flex-start}

/* الامتحانات: لمسة ذهبية */
body.theme-student .exam-card{border-right:4px solid #c9922f;background:rgba(255,255,255,.96)}
body.theme-student .exam-icon{background:#fff1cf}

@media(max-width:700px){
  body.theme-student .student-hero{padding:26px 20px;min-height:200px;border-radius:20px;background:linear-gradient(rgba(10,20,38,.8),rgba(10,20,38,.6)),url(art/hero.webp) center/cover no-repeat}
  .hero-text{max-width:100%}
      body.theme-student .student-hero h1{font-size:23px}
  .course-panel-head{flex-direction:column;align-items:flex-start;padding:18px}
  .cp-counts{gap:6px}
  .file-row{flex-wrap:wrap}
  .file-go{width:100%;text-align:center}
  .file-ico{min-width:46px}
  .course-panel-foot .btn{width:100%;text-align:center}
}


/* ===== v12: صور الحضارة المصرية الحقيقية ===== */
body.theme-student{background-color:#fbf6ea}
body.theme-student::before{content:'';position:fixed;inset:0;z-index:0;pointer-events:none;background:linear-gradient(rgba(251,246,234,.90),rgba(251,246,234,.84)),url(art/page-bg.webp) center/cover no-repeat}
.section-banner{position:relative;display:flex;align-items:center;min-height:138px;padding:22px 30px;margin-bottom:20px;border:2px solid #c9922f;border-radius:22px;overflow:hidden;box-shadow:0 14px 34px rgba(8,18,36,.24);background-size:cover;background-position:center}
.banner-courses{background-image:linear-gradient(to left,rgba(10,20,38,.92) 0%,rgba(10,20,38,.62) 55%,rgba(10,20,38,.25) 100%),url(art/banner-pyramids.webp)}
.banner-exams{background-image:linear-gradient(to left,rgba(10,20,38,.92) 0%,rgba(10,20,38,.62) 55%,rgba(10,20,38,.25) 100%),url(art/banner-nile.webp);background-position:center 45%}
.section-banner .eyebrow{color:#e7c68d}
.section-banner h2{color:#fff;margin:4px 0 6px;font-size:28px;text-shadow:0 2px 12px rgba(0,0,0,.45)}
.section-banner .section-sub{color:#dbe4f0;margin:0;max-width:560px}
.empty-art{display:block;width:96px;height:auto;margin:0 auto 12px;border-radius:50%;aspect-ratio:1;object-fit:cover;object-position:center top;border:3px solid #c9922f;box-shadow:0 8px 20px rgba(139,95,20,.25)}
@media(max-width:700px){.section-banner{min-height:120px;padding:18px 18px}.section-banner h2{font-size:22px}}


/* ===== v13: الرئيسية (3 أزرار بصور) + الفيديوهات + إشعار الامتحان ===== */
.hub{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:6px 0 30px}
.hub-card{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:360px;padding:22px;border-radius:26px;overflow:hidden;text-decoration:none;color:#fff;border:2px solid #c9922f;background-size:cover;background-position:center;box-shadow:0 18px 44px rgba(8,18,36,.3);transition:transform .25s,box-shadow .25s}
.hub-card:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,20,38,.05) 0%,rgba(10,20,38,.55) 55%,rgba(10,20,38,.94) 100%);transition:.25s}
.hub-card:hover{transform:translateY(-6px);box-shadow:0 26px 60px rgba(8,18,36,.42)}
.hub-card:hover:before{background:linear-gradient(180deg,rgba(10,20,38,0) 0%,rgba(10,20,38,.5) 55%,rgba(10,20,38,.92) 100%)}
.hub-exams{background-image:url(art/tile-exams.webp)}
.hub-videos{background-image:url(art/tile-videos.webp)}
.hub-files{background-image:url(art/tile-files.webp)}
.hub-badges{position:absolute;top:16px;right:16px;z-index:2}
.hub-new{display:inline-block;background:linear-gradient(135deg,#f6b44c,#e08a1b);color:#1a1205;font-size:12px;font-weight:900;border-radius:999px;padding:6px 14px;box-shadow:0 6px 16px rgba(224,138,27,.5);animation:hubPulse 1.8s infinite}
.hub-body{position:relative;z-index:2;display:flex;flex-direction:column;gap:6px}
.hub-body i{font-style:normal;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;font-size:28px;background:rgba(201,146,47,.28);border:2px solid #e7c68d;margin-bottom:6px;backdrop-filter:blur(4px)}
.hub-body strong{font-size:27px;font-weight:900;text-shadow:0 2px 14px rgba(0,0,0,.6)}
.hub-body small{font-size:13px;color:#dbe4f0;line-height:1.8}
.hub-body em{font-style:normal;align-self:flex-start;font-size:12px;font-weight:900;color:#f3dfa8;background:rgba(255,255,255,.12);border:1px solid rgba(231,198,141,.4);border-radius:999px;padding:5px 12px;margin-top:4px}
.hub-go{position:relative;z-index:2;margin-top:14px;text-align:center;background:linear-gradient(135deg,#d5a75b,#b98532);color:#fff;border-radius:14px;padding:12px;font-weight:900;font-size:15px;box-shadow:0 10px 22px rgba(185,133,50,.4)}
@keyframes hubPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
@media(max-width:900px){.hub{grid-template-columns:1fr;gap:16px}.hub-card{min-height:250px}.hub-body strong{font-size:23px}}

.banner-videos{background-image:linear-gradient(to left,rgba(10,20,38,.92) 0%,rgba(10,20,38,.62) 55%,rgba(10,20,38,.25) 100%),url(art/tile-videos.webp);background-position:center 40%}
.banner-files{background-image:linear-gradient(to left,rgba(10,20,38,.92) 0%,rgba(10,20,38,.65) 55%,rgba(10,20,38,.3) 100%),url(art/tile-files.webp);background-position:center 55%}
.back-link{display:inline-block;margin:0 0 14px;color:#a8741c;font-weight:800;text-decoration:none;font-size:13px}
.panel-box{background:rgba(255,255,255,.96);border:1px solid #ead9b8;border-radius:20px;box-shadow:0 12px 30px rgba(139,95,20,.1)}
.seen-chip{flex:none;background:#e6f7f0;color:#117b5c;font-size:11px;font-weight:900;border-radius:999px;padding:5px 11px;white-space:nowrap}

.video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px}
.video-card{display:flex;flex-direction:column;background:rgba(255,255,255,.97);border:1px solid #ead9b8;border-radius:20px;overflow:hidden;text-decoration:none;color:inherit;box-shadow:0 10px 26px rgba(139,95,20,.12);transition:.2s}
.video-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(139,95,20,.22)}
.video-thumb{position:relative;display:grid;place-items:center;height:160px;background:linear-gradient(rgba(10,20,38,.25),rgba(10,20,38,.55)),url(art/tile-videos.webp) center/cover}
.video-thumb .play,.play{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;background:rgba(201,146,47,.92);color:#fff;font-size:24px;padding-right:0;box-shadow:0 8px 22px rgba(0,0,0,.4)}
.play.big{width:84px;height:84px;font-size:34px;margin:0 auto 16px}
.seen-tag{position:absolute;top:10px;right:10px;background:#117b5c;color:#fff;font-size:11px;font-weight:900;border-radius:999px;padding:5px 11px}
.video-info{display:flex;flex-direction:column;gap:5px;padding:14px 16px 16px}
.video-info b{color:#16294a;font-size:16px;line-height:1.6}
.video-info small{color:#7a869a;font-size:12px;line-height:1.7}
.video-card.seen .video-thumb{filter:saturate(.8)}

.watch-box{background:rgba(255,255,255,.97);border:1px solid #ead9b8;border-radius:22px;padding:18px;box-shadow:0 14px 34px rgba(139,95,20,.14)}
.watch-video{width:100%;max-height:70vh;border-radius:16px;background:#000;display:block}
.watch-embed{position:relative;width:100%;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#000}
.watch-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.watch-link{text-align:center;padding:40px 10px;background:linear-gradient(135deg,#0d1a2e,#1c3555);border-radius:16px;color:#fff}
.watch-box h1{font-size:22px;margin:16px 4px 6px;color:#16294a}
.watch-desc{margin:0 4px;color:#58667c;line-height:1.9;font-size:14px;white-space:pre-line}

.exam-topic{color:#b5731a!important;font-weight:800}
.views-line{color:#2e8b57!important;font-weight:800}
.adv-link{margin:14px 4px 0;font-size:12px}
.step{display:flex;align-items:center;gap:10px;margin:24px 0 12px;padding:10px 14px;background:#fff7e6;border:1px solid #ead9b8;border-radius:12px;color:#16294a}
.step-num{flex:none;width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#d5a75b,#b98532);color:#fff;display:grid;place-items:center;font-weight:900}
.exam-layout{grid-template-columns:1fr!important}
.qb-card.need{border-color:#f0b9bc;background:#fffafa}
.qb-import{background:#fff9ec;border:2px dashed #d5a75b;border-radius:16px;padding:16px;margin:0 0 18px}
.qb-import b{display:block;color:#16294a;margin-bottom:4px}
.qb-sample{margin:10px 0;padding:10px 14px;background:#fff;border:1px solid #ead9b8;border-radius:10px;font-size:12px;line-height:1.9;white-space:pre-wrap;color:#55657d}
.qb-import textarea{width:100%;margin:6px 0 10px;min-height:150px}
.qb-bulk-msg{margin-top:10px;padding:10px 14px;border-radius:10px;background:#e6f7f0;color:#117b5c;font-size:13px;font-weight:800;line-height:1.8}
.qb-bulk-msg.bad{background:#fff0f0;color:#b54249}

.exam-alert{position:fixed;top:12px;left:50%;transform:translateX(-50%);z-index:250;width:min(94vw,600px);display:flex;align-items:stretch;background:linear-gradient(135deg,#0d1a2e,#1c3555);border:2px solid #e7c68d;border-radius:18px;box-shadow:0 18px 50px rgba(8,18,36,.5);overflow:hidden;animation:alertDrop .5s cubic-bezier(.2,1.2,.4,1) both}
.exam-alert[hidden]{display:none}
.ea-link{flex:1;display:flex;align-items:center;gap:14px;padding:14px 16px;color:#fff;text-decoration:none;min-width:0}
.ea-ico{flex:none;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-size:22px;background:rgba(201,146,47,.3);border:2px solid #e7c68d;animation:hubPulse 1.8s infinite}
.ea-text{display:flex;flex-direction:column;gap:3px;min-width:0}
.ea-text b{font-size:15px;line-height:1.6;color:#fff}
.ea-text small{font-size:12px;color:#c9d4e3;line-height:1.6}
.ea-text em{font-style:normal;font-size:13px;font-weight:900;color:#f3c76b}
.ea-close{flex:none;width:44px;border:0;border-right:1px solid rgba(231,198,141,.3);background:rgba(255,255,255,.06);color:#e7c68d;font-size:18px;cursor:pointer}
.ea-close:hover{background:rgba(255,255,255,.14)}
@keyframes alertDrop{from{opacity:0;transform:translate(-50%,-40px)}to{opacity:1;transform:translate(-50%,0)}}


/* =====================================================================
   v14: توحيد التصميم — بدون صور خلفية واضحة، ألوان ذهبي/كحلي متناسقة
   ===================================================================== */
:root{--navy:#0f1f38;--navy2:#1b3556;--gold:#c9922f;--gold2:#e7c68d;--gold-d:#a8741c;--cream:#faf6ec;--card:#ffffff;--line:#eadfc9}

/* ---- الخلفية: كريمي هادئ بدل صورة ---- */
body,body.theme-student{background:var(--cream)!important;background-image:none!important}
body.theme-student::before,body::before{content:'';position:fixed;inset:0;z-index:0;pointer-events:none;background:radial-gradient(900px 420px at 85% -5%,rgba(201,146,47,.13),transparent 70%),radial-gradient(700px 380px at 5% 105%,rgba(15,31,56,.07),transparent 70%)!important}
main,footer{position:relative;z-index:1}
.ornament-band{opacity:.55;margin:0 0 26px}

/* ---- الشريط العلوي والفوتر: موحد لكل الصفحات ---- */
.topbar{background:linear-gradient(135deg,#0b182c,#1b3556)!important;border-bottom:3px solid var(--gold)!important;box-shadow:0 6px 22px rgba(8,18,36,.25)}
.topbar:after{content:'';position:absolute;left:0;right:0;bottom:-8px;height:5px;background:repeating-linear-gradient(90deg,var(--gold) 0 14px,transparent 14px 20px);opacity:.45;pointer-events:none}
.topbar .brand b{color:#fff}.topbar .brand small{color:var(--gold2)}
.topbar .brand-icon{box-shadow:0 0 0 2px var(--gold),0 6px 16px rgba(0,0,0,.35);border-color:var(--gold)}
.topbar .bell-btn,.topbar .user-menu>summary{background:rgba(255,255,255,.08);border:1px solid rgba(231,198,141,.45);color:#fff}
.topbar .bell-btn:hover,.topbar .user-menu[open]>summary,.topbar .user-menu>summary:hover{background:rgba(201,146,47,.28);border-color:var(--gold2)}
footer{background:#0b182c!important;color:#c9d4e3!important;border-top:3px solid var(--gold)!important;margin-top:50px}
footer b{color:#fff!important}footer p{color:#a9b6c9!important}
.developer-credit{background:rgba(255,255,255,.06)!important;border-color:rgba(231,198,141,.4)!important}
.developer-label{color:#a9b6c9!important}.developer-credit strong{color:var(--gold2)!important}

/* ---- الصفحة الرئيسية للطالب ---- */
body.theme-student .student-hero{background:linear-gradient(135deg,#0f1f38 0%,#1b3556 100%)!important;border:2px solid var(--gold);min-height:0;padding:30px 32px;box-shadow:0 14px 36px rgba(8,18,36,.25),inset 0 0 0 5px #0f1f38,inset 0 0 0 6px rgba(201,146,47,.5)}
body.theme-student .student-hero:before{content:'';position:absolute;inset:0;background:url(art/band.svg) repeat-x left bottom/auto 18px;opacity:.28;pointer-events:none}
body.theme-student .student-hero:after{display:block;content:'𓂀';left:26px;top:50%;bottom:auto;transform:translateY(-50%);font-size:120px;color:rgba(231,198,141,.12);font-weight:400}
.hero-text{max-width:100%}
body.theme-student .student-hero h1{font-size:30px}

/* الكروت الثلاثة: بدون صور، لون صلب + نقش خفيف */
.hub{gap:18px;margin:4px 0 30px}
.hub-card,.hub-exams,.hub-videos,.hub-files{background-image:none!important;background:linear-gradient(160deg,#16294a 0%,#0f1f38 100%)!important;min-height:0;padding:26px 22px 22px;border:2px solid var(--gold);border-radius:24px;box-shadow:0 14px 34px rgba(8,18,36,.22);justify-content:flex-start}
.hub-card:before,.hub-card:hover:before{background:radial-gradient(260px 160px at 100% 0%,rgba(201,146,47,.22),transparent 70%)!important}
.hub-card:after{content:'';position:absolute;left:0;right:0;bottom:0;height:16px;background:url(art/band.svg) repeat-x center/auto 16px;opacity:.22;pointer-events:none}
.hub-card:hover{transform:translateY(-4px);box-shadow:0 22px 48px rgba(8,18,36,.32)}
.hub-badges{top:14px;right:auto;left:14px}
.hub-body{gap:8px}
.hub-body i{width:62px;height:62px;font-size:30px;background:rgba(201,146,47,.18);border:2px solid var(--gold2);margin-bottom:8px}
.hub-body strong{font-size:24px;text-shadow:none}
.hub-body small{color:#c9d4e3;min-height:46px}
.hub-body em{background:rgba(201,146,47,.16);border-color:rgba(231,198,141,.45);color:#f3dfa8}
.hub-go{margin-top:18px;background:linear-gradient(135deg,#d8aa5d,#b98532);color:#1a1205;box-shadow:0 8px 18px rgba(185,133,50,.35)}
.hub-card:hover .hub-go{filter:brightness(1.08)}

/* بانرات الصفحات الداخلية (امتحانات / فيديوهات / ملفات / كورسات) */
.section-banner,.banner-courses,.banner-exams,.banner-videos,.banner-files{background-image:none!important;background:linear-gradient(135deg,#0f1f38,#1b3556)!important;min-height:0;padding:24px 30px;border:2px solid var(--gold);border-radius:22px;box-shadow:0 12px 30px rgba(8,18,36,.2)}
.section-banner:before{content:'';position:absolute;inset:auto 0 0 0;height:16px;background:url(art/band.svg) repeat-x center/auto 16px;opacity:.28}
.section-banner:after{content:'';position:absolute;left:-40px;top:-60px;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,rgba(201,146,47,.28),transparent 70%)}
.section-banner>div{position:relative;z-index:1}
.section-banner h2{font-size:26px;text-shadow:none}

/* الفيديوهات: بدون صورة في الصندوق */
.video-thumb{height:150px;background:linear-gradient(135deg,#16294a,#0f1f38)!important;position:relative}
.video-thumb:before{content:'';position:absolute;inset:auto 0 0 0;height:14px;background:url(art/band.svg) repeat-x center/auto 14px;opacity:.25}
.video-thumb:after{content:'';position:absolute;right:-30px;top:-40px;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,rgba(201,146,47,.25),transparent 70%)}
.video-thumb .play{position:relative;z-index:1;background:linear-gradient(135deg,#d8aa5d,#b98532);box-shadow:0 8px 20px rgba(0,0,0,.35)}
.video-card{border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 22px rgba(139,95,20,.1)}
.video-card:hover{border-color:var(--gold)}
.video-card.seen .video-thumb{filter:none;opacity:.92}
.seen-tag{z-index:2}

/* بطاقات عامة بنفس الهوية */
.exam-card{border-right:4px solid var(--gold);border-radius:18px;border-color:var(--line)}
.exam-icon{background:#fff1cf}
.panel-box,.course-panel,.stat-tile{border-color:var(--line)}
.file-ico{background:linear-gradient(135deg,#d8aa5d,#b98532)}
.btn.primary{background:linear-gradient(135deg,#16294a,#0f1f38)}
.back-link{color:var(--gold-d)}

/* ---- صفحة الدخول الأولى ---- */
.home-auth{max-width:1040px;min-height:0;padding:34px 0 10px;grid-template-columns:1.05fr .95fr;gap:34px;align-items:stretch}
.home-auth-copy{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(145deg,#16294a,#0b182c);border:2px solid var(--gold);border-radius:26px;padding:44px 40px;box-shadow:0 18px 44px rgba(8,18,36,.28),inset 0 0 0 5px #0f1f38,inset 0 0 0 6px rgba(201,146,47,.45)}
.home-auth-copy:before{content:'';position:absolute;left:0;right:0;bottom:0;height:18px;background:url(art/band.svg) repeat-x center/auto 18px;opacity:.3}
.home-auth-copy:after{content:'𓂀';position:absolute;left:22px;top:14px;font-size:96px;line-height:1;color:rgba(231,198,141,.14)}
.home-auth-copy>*{position:relative;z-index:1}
.home-auth-copy .eyebrow{color:var(--gold2);font-size:13px}
.home-auth-copy h1{font-size:clamp(34px,4.4vw,52px);color:#fff;margin:6px 0 14px}
.home-auth-copy h1:after{content:'';display:block;width:90px;height:4px;border-radius:4px;background:linear-gradient(90deg,var(--gold),transparent);margin-top:14px}
.home-auth-copy p{color:#cfd9e6;font-size:15px;line-height:2}
.home-highlights span{background:rgba(201,146,47,.16);border:1px solid rgba(231,198,141,.4);color:#f3dfa8;font-size:12px;font-weight:800;padding:7px 13px}
.home-login,.form-card{border:1px solid var(--line);border-top:4px solid var(--gold);border-radius:22px;box-shadow:0 16px 40px rgba(139,95,20,.13);background:#fff}
.home-login{padding:32px 30px;display:flex;flex-direction:column;justify-content:center}
.form-icon{background:linear-gradient(135deg,#d8aa5d,#b98532);color:#fff;border-radius:16px;width:50px;height:50px;box-shadow:0 8px 18px rgba(185,133,50,.35)}
.form-card h2{font-size:23px;color:var(--navy)}
.form-card input:focus,.form-card select:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,146,47,.2)}
.form-card input,.form-card select{background:#fffdf8;border-color:#e6dcc6;padding:13px 14px;border-radius:12px}
.form-card .btn.primary.full{padding:14px;font-size:15px;border-radius:13px;background:linear-gradient(135deg,#d8aa5d,#b98532);color:#1a1205;box-shadow:0 10px 22px rgba(185,133,50,.35)}
.form-foot a,.tiny a{color:var(--gold-d)}

/* بانرات الصفوف (التسجيل): شبكة من عمودين، صور مقصوصة بشكل أنيق */
.student-grade-promos{max-width:1040px!important;margin:34px auto 20px!important;padding:0!important;display:grid!important;grid-template-columns:1fr 1fr;gap:22px!important}
.promos-title{grid-column:1/-1;font-size:24px;color:var(--navy);margin:0 0 2px;position:relative;padding-bottom:16px}
.promos-title:after{content:'';position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:170px;height:14px;background:url(art/band.svg) repeat-x center/auto 14px}
.student-grade-promo,a.student-grade-promo{padding:0!important;border:2px solid var(--gold)!important;border-radius:22px!important;background:#fff;box-shadow:0 12px 30px rgba(8,18,36,.18)!important;overflow:hidden}
.student-grade-promo img{aspect-ratio:4/3!important;object-fit:cover!important;object-position:center 22%!important;border-radius:0!important;background:#0f1f38;width:100%!important}
.promo-cap{padding:14px 16px 16px;background:linear-gradient(135deg,#0f1f38,#16294a);flex-wrap:wrap}
.promo-cap b{color:#fff;font-size:16px}
.promo-btn{background:linear-gradient(135deg,#d8aa5d,#b98532);color:#1a1205;font-size:13px;padding:9px 18px}

/* ---- الموبايل ---- */
@media(max-width:900px){.home-auth{grid-template-columns:1fr;gap:18px}.home-login{order:-1}.home-auth-copy{padding:30px 26px}.student-grade-promos{grid-template-columns:1fr;max-width:520px!important}}
@media(max-width:650px){
  .hub{grid-template-columns:1fr;gap:14px}
  .hub-card{padding:20px 18px 18px}
  .hub-body{display:grid;grid-template-columns:62px 1fr;column-gap:14px;row-gap:2px;align-items:center}
  .hub-body i{grid-row:1/4;margin:0}
  .hub-body small{min-height:0;font-size:12px}
  .hub-body em{grid-column:2;margin-top:2px}
  .hub-body strong{font-size:21px}
  body.theme-student .student-hero{padding:22px 20px}
  body.theme-student .student-hero h1{font-size:22px}
  body.theme-student .student-hero:after{font-size:80px;left:12px}
  .section-banner{padding:18px 18px}.section-banner h2{font-size:21px}
  .video-thumb{height:120px}
  .home-auth{padding-top:14px}
  .home-auth-copy h1{font-size:32px}.home-auth-copy:after{font-size:70px}
  .promos-title{font-size:19px}
}

/* صفحة تسجيل الدخول المستقلة + التسجيل بنفس الهوية */
.auth-aside{background:linear-gradient(145deg,#16294a,#0b182c)!important;border:2px solid var(--gold);border-radius:26px;box-shadow:0 18px 44px rgba(8,18,36,.28),inset 0 0 0 5px #0f1f38,inset 0 0 0 6px rgba(201,146,47,.45)}
.auth-aside .eyebrow{color:var(--gold2)}
.mini-stats span{background:rgba(201,146,47,.16);border-color:rgba(231,198,141,.4);color:#f3dfa8;font-weight:800}
.page-heading h1{color:var(--navy)}.page-heading .eyebrow{color:var(--gold-d)}
.hub-body em{justify-self:start}
body.theme-student .student-hero:after,.home-auth-copy:after{content:none!important;display:none!important}

/* ===== v15: الكارت التعريفي أولًا + أهرامات وتماثيل شفافة ===== */
.home-login{order:0!important}
.home-auth-copy{min-height:430px;background:linear-gradient(145deg,#16294a,#0b182c)!important}
.home-auth-copy:before{content:'';position:absolute;inset:0;height:auto;z-index:0;opacity:.5;
  background:url(art/nefertiti.webp) left center/auto 100% no-repeat;
  -webkit-mask-image:linear-gradient(to right,#000 0%,rgba(0,0,0,.55) 35%,transparent 75%);mask-image:linear-gradient(to right,#000 0%,rgba(0,0,0,.55) 35%,transparent 75%)}
.home-auth-copy:after{content:''!important;display:block!important;position:absolute;left:0;right:0;bottom:0;top:auto;height:46%;z-index:0;opacity:.38;
  background:url(art/banner-pyramids.webp) center bottom/cover no-repeat;
  -webkit-mask-image:linear-gradient(to top,#000 0%,rgba(0,0,0,.6) 40%,transparent 100%);mask-image:linear-gradient(to top,#000 0%,rgba(0,0,0,.6) 40%,transparent 100%)}
.home-auth-copy>*{z-index:1}
.home-eras{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.home-eras span{font-size:12px;font-weight:800;color:#e7c68d;border-bottom:2px solid rgba(201,146,47,.6);padding:2px 2px}
@media(max-width:900px){.home-auth-copy{min-height:380px;padding:34px 24px}.home-auth-copy:before{opacity:.42;background-position:left top;background-size:auto 70%}}

/* ===== v16: هيرو الطالب بصورة مصر القديمة (أهرامات، أبو الهول، تماثيل، آثار) متناسقة مع الألوان ===== */
body.theme-student .student-hero{min-height:230px;
  background:
    linear-gradient(to left,rgba(11,24,44,.97) 0%,rgba(11,24,44,.90) 34%,rgba(15,31,56,.55) 66%,rgba(15,31,56,.38) 100%),
    linear-gradient(to top,rgba(11,24,44,.75) 0%,transparent 45%),
    url(art/hero.webp) 30% 62%/cover no-repeat,
    #0f1f38!important;
  background-blend-mode:normal,normal,luminosity,normal}
body.theme-student .student-hero:before{z-index:1;opacity:.5}
body.theme-student .student-hero .hero-text{max-width:70%}
body.theme-student .student-hero h1{font-size:30px;text-shadow:0 3px 14px rgba(0,0,0,.55)}
@media(max-width:650px){
  body.theme-student .student-hero{min-height:200px;padding:24px 18px;
    background:linear-gradient(to left,rgba(11,24,44,.97) 0%,rgba(11,24,44,.82) 55%,rgba(15,31,56,.5) 100%),linear-gradient(to top,rgba(11,24,44,.7),transparent 50%),url(art/hero.webp) 22% 60%/cover no-repeat,#0f1f38!important}
  body.theme-student .student-hero .hero-text{max-width:100%}
}

/* كروت الصفحة الرئيسية: مضغوطة وأفقية على التابلت والموبايل */
@media(max-width:900px){
  .hub{grid-template-columns:1fr!important;gap:14px}
  .hub-card{min-height:0!important;padding:20px 18px 18px!important}
  .hub-body{display:grid!important;grid-template-columns:62px 1fr;column-gap:14px;row-gap:2px;align-items:center}
  .hub-body i{grid-row:1/4;margin:0!important}
  .hub-body small{min-height:0!important}
  .hub-body em{grid-column:2;justify-self:start;margin-top:2px}
  .hub-go{margin-top:14px}
}
body.theme-student .student-hero{background-blend-mode:normal!important;
  background:linear-gradient(to left,rgba(11,24,44,.95) 0%,rgba(11,24,44,.82) 38%,rgba(15,31,56,.45) 70%,rgba(15,31,56,.30) 100%),linear-gradient(to top,rgba(11,24,44,.6) 0%,transparent 45%),url(art/hero.webp) 30% 62%/cover no-repeat,#0f1f38!important}
@media(max-width:650px){body.theme-student .student-hero{background:linear-gradient(to left,rgba(11,24,44,.95) 0%,rgba(11,24,44,.72) 55%,rgba(15,31,56,.4) 100%),linear-gradient(to top,rgba(11,24,44,.55),transparent 50%),url(art/hero.webp) 22% 60%/cover no-repeat,#0f1f38!important}}

/* ===== v17: تمثال رجل + أبو الهول بدل نفرتيتي ===== */
.home-auth-copy:before{background:url(art/hero-male.webp) left center/auto 100% no-repeat!important;opacity:.62!important}
@media(max-width:900px){.home-auth-copy:before{background:url(art/hero-male.webp) left top/auto 100% no-repeat!important;opacity:.55!important}}
body.theme-student .student-hero{background:linear-gradient(to left,rgba(11,24,44,.95) 0%,rgba(11,24,44,.82) 38%,rgba(15,31,56,.4) 70%,rgba(15,31,56,.25) 100%),linear-gradient(to top,rgba(11,24,44,.55) 0%,transparent 45%),url(art/hero-male.webp) left center/auto 100% no-repeat,#0f1f38!important}
@media(max-width:650px){body.theme-student .student-hero{background:linear-gradient(to left,rgba(11,24,44,.95) 0%,rgba(11,24,44,.72) 55%,rgba(15,31,56,.4) 100%),linear-gradient(to top,rgba(11,24,44,.55),transparent 50%),url(art/hero-male.webp) left center/auto 100% no-repeat,#0f1f38!important}}

/* ---- App download + splash (PWA) ---- */
.app-download[hidden],.app-help[hidden],#splash[hidden]{display:none!important}
.app-download-main{margin-top:20px;padding:13px 28px;font-size:15px;background:linear-gradient(135deg,#e7c68d,#c9922f);color:#12213a;box-shadow:0 10px 26px rgba(201,146,47,.35)}
.app-help{position:fixed;left:14px;right:14px;bottom:84px;z-index:120;max-width:480px;margin:0 auto;padding:14px 18px;border-radius:14px;background:#0d1a2e;border:1px solid #c9922f;color:#f2e7d0;text-align:center;line-height:1.9;font-size:14px;box-shadow:0 14px 40px rgba(0,0,0,.45)}
#splash{position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;padding:24px;overflow:hidden;background:#081322;isolation:isolate;transition:opacity .65s ease,visibility .65s}
#splash.hide{opacity:0;visibility:hidden}
.sp-scene,.sp-shade{position:absolute;inset:0;z-index:-2;overflow:hidden}
.sp-scene img{width:100%;height:100%;object-fit:cover;object-position:center;filter:brightness(.66) saturate(1.12);animation:spPan 8s ease-in-out infinite alternate}
.sp-shade{z-index:-1;background:linear-gradient(180deg,rgba(5,13,25,.18),rgba(5,13,25,.5) 48%,rgba(5,13,25,.94)),radial-gradient(ellipse at center,transparent 15%,rgba(3,9,18,.42) 100%)}
#splash .sp-logo{width:min(44vw,176px);height:min(44vw,176px);object-fit:cover;border-radius:50%;box-shadow:0 0 0 3px #e5bd72,0 0 55px rgba(229,189,114,.55);animation:spPop .9s ease both}
.sp-title{margin-top:10px;font-size:clamp(25px,6vw,34px);font-weight:900;color:#ffe0a5;text-shadow:0 3px 18px #000;animation:spUp .8s .2s ease both}
.sp-sub{color:#fff;font-size:17px;font-weight:800;text-shadow:0 2px 12px #000;animation:spUp .8s .35s ease both}
.sp-hello{margin-top:7px;color:#f3d49d;font-size:14px;text-shadow:0 2px 10px #000;animation:spUp .8s .5s ease both}
.sp-bar{width:160px;height:4px;margin-top:19px;border-radius:4px;background:rgba(255,255,255,.24);overflow:hidden}
.sp-bar i{display:block;height:100%;width:40%;border-radius:4px;background:#f0c879;animation:spLoad 1.2s ease-in-out infinite}
@keyframes spPop{from{opacity:0;transform:scale(.72)}to{opacity:1;transform:none}}
@keyframes spUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes spLoad{0%{transform:translateX(250%)}100%{transform:translateX(-150%)}}
@keyframes spPan{from{transform:scale(1)}to{transform:scale(1.13) translate3d(1.5%,-1%,0)}}
@media(prefers-reduced-motion:reduce){.sp-scene img,.sp-logo,.sp-title,.sp-sub,.sp-hello,.sp-bar i{animation:none!important}}

/* ---- AI convert + flagged questions ---- */
.qb-ai{margin-top:10px;background:linear-gradient(135deg,#1c3555,#12213a);color:#f3d49d;border:1px solid #c9922f;padding:12px 18px;font-weight:800}
.qb-ai:disabled{opacity:.7;cursor:wait}
.qb-card.flagged{border-color:#e9c46a;background:#fffdf5}
.qb-issues{margin:10px 0;padding:10px 14px;border-radius:10px;background:#fff7e0;border:1px solid #f0d58a;color:#7a5a12;font-size:12px;line-height:1.9}
.qb-issues ul{margin:4px 0 8px;padding:0 18px}
.qb-issues-ok{border:0;border-radius:8px;background:#f0d58a;color:#5b4208;font-size:11px;font-weight:800;padding:5px 12px}

/* ===== v24: زرار تحميل التطبيق فوق + صندوق الجديد + تصميم الملفات والامتحانات + لوحة تليجرام ===== */
.fcard[hidden],.exam-card[hidden],.new-box[hidden],.nb-chip[hidden],.tc-status[hidden],.empty-line[hidden]{display:none!important}

/* زرار تحميل التطبيق في الشريط العلوي */
.top-install{display:inline-flex;align-items:center;gap:7px;border:0;border-radius:999px;padding:9px 16px;font-size:13px;font-weight:900;white-space:nowrap;background:linear-gradient(135deg,#f0d3a0,#c9922f);color:#12213a;box-shadow:0 6px 18px rgba(201,146,47,.4);animation:tiPulse 2.4s ease-in-out infinite}
.top-install[hidden]{display:none!important}
.top-install .ti-ico{font-size:16px;line-height:1}
@keyframes tiPulse{0%,100%{box-shadow:0 6px 18px rgba(201,146,47,.4)}50%{box-shadow:0 6px 26px rgba(240,211,160,.85)}}
@media(max-width:650px){.top-actions{gap:7px}.top-install{padding:8px 11px;font-size:11.5px}.top-install .ti-ico{font-size:14px}.brand b{font-size:14px}}
@media(max-width:380px){.top-install .ti-txt{display:none}.top-install{padding:9px 12px}}

/* صندوق "عندك جديد" في رئيسية الطالب */
.new-box{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 22px;padding:16px 20px;border-radius:20px;border:2px solid #c9922f;background:linear-gradient(135deg,#fff8e6,#ffefc7);box-shadow:0 12px 30px rgba(201,146,47,.22)}
.nb-head{display:flex;align-items:center;gap:12px}
.nb-bell{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-size:23px;background:#12213a;box-shadow:0 6px 14px rgba(18,33,58,.3);animation:nbRing 2.6s ease-in-out infinite;transform-origin:50% 12%}
.nb-head b{display:block;font-size:17px;color:#12213a;line-height:1.5}
.nb-head small{display:block;font-size:12px;color:#7a5c1e;line-height:1.5}
.nb-chips{display:flex;gap:8px;flex-wrap:wrap}
.nb-chip{display:inline-flex;align-items:center;gap:6px;background:#12213a;color:#f3d49d;border-radius:999px;padding:8px 15px;font-size:13px;font-weight:800;transition:.15s}
.nb-chip b{background:linear-gradient(135deg,#f6b44c,#e08a1b);color:#1a1205;border-radius:999px;min-width:24px;text-align:center;padding:0 7px;font-size:13px}
.nb-chip:hover{transform:translateY(-2px);background:#1c3555}
@keyframes nbRing{0%,60%,100%{transform:rotate(0)}66%{transform:rotate(14deg)}72%{transform:rotate(-12deg)}78%{transform:rotate(8deg)}84%{transform:rotate(-5deg)}}
@media(max-width:650px){.new-box{padding:14px}.nb-head b{font-size:15px}.nb-chips{width:100%}.nb-chip{flex:1;justify-content:center}}

/* شارات "جديد" */
.new-chip{display:inline-block;flex:none;background:linear-gradient(135deg,#f6b44c,#e08a1b);color:#1a1205;font-size:11px;font-weight:900;border-radius:999px;padding:3px 11px;white-space:nowrap;vertical-align:middle;box-shadow:0 4px 10px rgba(224,138,27,.35)}
.new-tag{position:absolute;top:10px;right:10px;z-index:2;background:linear-gradient(135deg,#f6b44c,#e08a1b);color:#1a1205;font-size:11px;font-weight:900;border-radius:999px;padding:5px 11px;box-shadow:0 4px 12px rgba(224,138,27,.45)}

/* شريط الأدوات: بحث + تبويبات */
.list-toolbar{display:flex;flex-direction:column;gap:10px;margin:0 0 16px;padding:14px 16px;background:#fff;border:1px solid #ead9b8;border-radius:18px;box-shadow:0 8px 22px rgba(139,95,20,.08)}
.lt-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.lt-stats{display:flex;gap:8px;flex-wrap:wrap;font-size:13px;color:#5d6b82;font-weight:800}
.lt-stats span{background:#f4f6fa;border-radius:999px;padding:4px 13px}
.lt-stats .lt-new{background:#fff1cf;color:#8a5a0c}
.lt-stats b{color:#12213a}
.lt-tabs{display:flex;gap:6px;flex-wrap:wrap}
.lt-tab{border:1px solid #e1e6ee;background:#fff;color:#53617a;border-radius:999px;padding:6px 15px;font-size:12px;font-weight:800;transition:.15s}
.lt-tab:hover{border-color:#c9922f}
.lt-tab.on{background:#12213a;color:#f3d49d;border-color:#12213a}
.lt-search{width:100%;border:1px solid #dfe5ed;background:#fcfdff;border-radius:12px;padding:11px 14px;font-size:14px;outline:0}
.lt-search:focus{border-color:#c7a46b;box-shadow:0 0 0 3px #d5a75b25}
.exam-tabs{margin:0 0 16px}

/* كروت الملفات والمذكرات */
.fgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.fcard{position:relative;display:flex;align-items:center;gap:14px;padding:15px 16px;background:#fff;border:1px solid #e8ddc5;border-radius:18px;box-shadow:0 8px 22px rgba(139,95,20,.08);text-decoration:none;color:inherit;transition:.18s;min-width:0}
.fcard:hover{transform:translateY(-3px);border-color:#c9922f;box-shadow:0 16px 34px rgba(139,95,20,.18)}
.fcard.is-new{border-color:#e9b45f;background:linear-gradient(180deg,#fffaf0,#fff)}
.fc-ico{flex:none;width:58px;height:66px;border-radius:14px;display:grid;place-items:center;color:#fff;font-weight:900;font-size:13px;letter-spacing:.5px;background:linear-gradient(135deg,#8a96aa,#5f6c82);box-shadow:0 8px 16px rgba(18,33,58,.22)}
.fc-ico.ext-pdf{background:linear-gradient(135deg,#e5646a,#b83a40)}
.fc-ico.ext-doc,.fc-ico.ext-docx{background:linear-gradient(135deg,#4f86e0,#2c5cb0)}
.fc-ico.ext-ppt,.fc-ico.ext-pptx{background:linear-gradient(135deg,#f08a4b,#c95a1b)}
.fc-ico.ext-png,.fc-ico.ext-jpg,.fc-ico.ext-jpeg,.fc-ico.ext-webp{background:linear-gradient(135deg,#3fb68b,#1f8a66)}
.fc-ico.ext-zip{background:linear-gradient(135deg,#a07be0,#6f4bb8)}
.fc-ico.ext-txt{background:linear-gradient(135deg,#8a96aa,#5f6c82)}
.fc-body{flex:1;min-width:0}
.fc-body b{display:block;color:#16294a;font-size:15.5px;line-height:1.6;overflow-wrap:anywhere}
.fc-body small{display:block;color:#7a869a;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.fc-body .fc-date{margin-top:2px;color:#9aa3b4}
.fc-side{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.fc-go{font-size:12px;font-weight:900;color:#a8741c;background:#fff3d6;border-radius:999px;padding:7px 13px;white-space:nowrap}
.fcard:hover .fc-go{background:#12213a;color:#f3d49d}
@media(max-width:800px){.fgrid{grid-template-columns:1fr}}
@media(max-width:480px){.fcard{flex-wrap:wrap;padding:14px}.fc-side{flex-direction:row;width:100%;justify-content:space-between;align-items:center}.fc-go{flex:1;text-align:center;padding:9px}}

/* صفحة الامتحانات */
.exam-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 16px}
.es{background:#fff;border:1px solid #e8ddc5;border-radius:16px;padding:12px 10px;text-align:center;box-shadow:0 6px 16px rgba(139,95,20,.07)}
.es b{display:block;font-size:26px;line-height:1.3;color:#12213a}
.es span{font-size:12px;font-weight:800;color:#6b778c}
.es-open b{color:#117b5c}.es-done b{color:#3459a6}.es-closed b{color:#b54249}
.exam-list{display:grid;gap:14px}
.exam-card{transition:.18s}
.exam-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(16,34,60,.12)}
.exam-card.st-open{border-right-color:#13866d}
.exam-card.st-done{border-right-color:#3459a6}
.exam-card.st-closed{border-right-color:#b54249;opacity:.88}
.exam-card.is-new{background:linear-gradient(180deg,#fffaf0,#fff)!important}
.exam-text h3{margin:0 0 3px;font-size:17px;line-height:1.6;color:#16294a}
.exam-meta{display:flex;gap:8px;flex-wrap:wrap;margin:5px 0}
.exam-meta span{background:#f4f6fa;color:#53617a;border-radius:999px;padding:2px 11px;font-size:11.5px;font-weight:800}
.exam-card .exam-icon{width:52px;height:52px;font-size:24px}
@media(max-width:650px){.exam-stats{gap:8px}.es b{font-size:22px}.es span{font-size:11px}.exam-side .btn{flex:1}}

/* لوحة المستر: إرسال/استرجاع المذكرات */
.notes-tools{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0 0 20px}
.tool-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:22px;box-shadow:var(--shadow);min-width:0}
.tool-card label{display:block;font-size:12px;font-weight:800;margin:13px 0;color:#435066}
.tool-card select,.tool-card input[type=file]{display:block;width:100%;margin-top:7px;border:1px solid #dfe5ed;background:#fcfdff;border-radius:10px;padding:10px 12px;font-size:13px}
.tc-head{display:flex;gap:12px;align-items:flex-start}
.tc-ico{flex:none;width:46px;height:46px;border-radius:14px;background:#f8efdf;display:grid;place-items:center;font-size:24px}
.tc-head h2{margin:0;font-size:18px;color:var(--navy)}
.tc-head p{margin:3px 0 0;font-size:12px;color:var(--muted);line-height:1.8}
.tc-warn{display:block;margin-top:8px;color:#b54249;font-size:12px;font-weight:800}
.tc-status{margin-top:12px;padding:11px 14px;border-radius:11px;background:#f0f4f9;color:#526176;font-size:12.5px;line-height:1.9;font-weight:700}
.tc-status.run{background:#fff7e9;color:#986d28}.tc-status.ok{background:#e9f8f0;color:#147653}.tc-status.bad{background:#fff0f0;color:#b54249}
.btn[disabled]{opacity:.55;cursor:not-allowed;transform:none}
@media(max-width:800px){.notes-tools{grid-template-columns:1fr}}

/* نتيجة الامتحان للطالب */
.result-meta{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:0 0 14px}
.result-meta span{background:#f4f6fa;border-radius:999px;padding:5px 13px;font-size:12.5px;font-weight:800;color:#53617a}
.result-meta b{color:#12213a}
.question-card.review{border-right:4px solid #13866d}
.question-card.review.bad{border-right-color:#b54249;background:#fffafa}
.rv-mark{margin-right:8px;font-size:11px;font-weight:900;color:#13866d}
.question-card.review.bad .rv-mark{color:#b54249}
