@import url(https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800&display=swap);:root{--primary:#1a56db;--primary-dark:#1e429f;--primary-light:#ebf5ff;--accent:#f59e0b;--accent-dark:#d97706;--success:#10b981;--danger:#ef4444;--warning:#f59e0b;--dark-bg:#0f172a;--dark-card:#1e293b;--dark-border:#334155;--sidebar-width:280px;--header-height:70px;--card-bg:#ffffff;--card-border:#e2e8f0;--input-bg:#f8fafc;--text-primary:#1e293b;--text-secondary:#64748b;--border-color:#e2e8f0;--page-bg:#f1f5f9;--hover-bg:#f8fafc}.dark-theme{--card-bg:#1e293b;--card-border:#334155;--input-bg:#0f172a;--text-primary:#f1f5f9;--text-secondary:#94a3b8;--border-color:#334155;--page-bg:#0f172a;--hover-bg:#0f172a}.missing-student-card{background:var(--card-bg)!important;border-color:var(--border-color)!important;transition:box-shadow .2s,transform .15s}.missing-student-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.08);transform:translateY(-1px)}#hw-missing-list select{background:var(--input-bg)!important;color:var(--text-primary)!important;border-color:var(--border-color)!important}#hw-missing-panel{background:var(--card-bg);border-color:#fca5a5}.dark-theme #hw-missing-panel{background:rgba(127,29,29,.15);border-color:#7f1d1d50}#admin-books-list img,#admin-courses-grid img,#admin-exams-list img,#admin-hw-list img,#admin-student-books-list img,#admin-videos-list img,#books-grid img,#homework-list img,#models-grid img,#student-books-list img,.card img,.card-dark img,.modal-box img,[id$="-grid"] img,[id$="-list"] img,[id$="-preview"] img,article img,main img,section img{object-fit:contain;width:100%;height:100%}#admin-courses-grid img,.animate-hero-img,.aspect-video img,.gallery-item img,.hero-gradient img,.object-cover,[class*=aspect-video] img{object-fit:cover!important}img{max-width:100%;display:block}.aspect-\[3\/4\] img,[style*="aspect-ratio: 3/4"] img,[style*="aspect-ratio:3/4"] img{object-fit:contain;background:#f8fafc}#admin-books-list img{object-fit:contain;background:#eff6ff}html.dark #admin-books-list img,html.dark .aspect-\[3\/4\] img{background:#1e293b}html{direction:rtl;scroll-behavior:smooth}body{font-family:Cairo,Tajawal,sans-serif;background:#f1f5f9;color:#1e293b;overflow-x:hidden;min-height:100vh;zoom:80%}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:#f1f5f9}::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:var(--primary)}.sidebar{width:var(--sidebar-width);bottom:0;padding-bottom:80px;padding-top:0;position:fixed;right:0;top:0;z-index:40;background:linear-gradient(180deg,#0f172a 0,#1e293b 100%);border-left:1px solid #334155;transition:transform .3s cubic-bezier(.4, 0, .2, 1);overflow-y:auto;overflow-x:hidden;transform:translateX(100%)}.sidebar.open{transform:translateX(0)}@media (min-width:1025px){.sidebar{transform:translateX(0);padding-top:var(--header-height)}}.main-content{margin-right:0;min-height:125vh;transition:margin-right .3s ease;padding-top:var(--header-height)}@media (min-width:1025px){.main-content{margin-right:var(--sidebar-width)}}.nav-item{display:flex;align-items:center;gap:12px;padding:12px 20px;color:#94a3b8;border-radius:12px;margin:4px 12px;cursor:pointer;transition:all .2s ease;text-decoration:none;font-weight:500}.nav-item.active,.nav-item:hover{background:rgba(26,86,219,.15);color:#60a5fa}.nav-item.active{background:rgba(26,86,219,.25);color:#93c5fd;border-right:3px solid #3b82f6}.nav-item .nav-icon,.nav-item svg{font-size:20px;min-width:24px}.card{background:#fff;border-radius:16px;box-shadow:0 1px 3px rgba(0,0,0,.08),0 4px 20px rgba(0,0,0,.04);transition:box-shadow .2s ease,transform .2s ease}.card:hover{box-shadow:0 8px 30px rgba(0,0,0,.12)}.card-dark{background:var(--dark-card);border:1px solid var(--dark-border);border-radius:16px}.stat-card{border-radius:16px;padding:24px;color:#fff;position:relative;overflow:hidden}.stat-card::after{content:'';position:absolute;top:-20px;left:-20px;width:100px;height:100px;border-radius:50%;background:rgba(255,255,255,.07)}.btn-primary{background:linear-gradient(135deg,#1a56db,#1e429f);color:#fff;border:none;padding:12px 24px;border-radius:12px;font-family:Cairo,sans-serif;font-weight:600;font-size:15px;cursor:pointer;transition:all .2s ease;display:inline-flex;align-items:center;gap:8px}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(26,86,219,.35)}.btn-secondary{background:#f1f5f9;color:#1e293b;border:1px solid #e2e8f0;padding:10px 20px;border-radius:10px;font-family:Cairo,sans-serif;font-weight:600;cursor:pointer;transition:all .2s}.btn-secondary:hover{background:#e2e8f0}.btn-danger{background:#fef2f2;color:#ef4444;border:1px solid #fecaca;padding:8px 16px;border-radius:8px;font-family:Cairo,sans-serif;font-weight:600;cursor:pointer;transition:all .2s}.btn-danger:hover{background:#ef4444;color:#fff}.btn-success{background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;padding:10px 20px;border-radius:10px;font-family:Cairo,sans-serif;font-weight:600;cursor:pointer;transition:all .2s}.btn-success:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(16,185,129,.35)}.form-input{width:100%;padding:12px 16px;border:2px solid #e2e8f0;border-radius:12px;font-family:Cairo,sans-serif;font-size:15px;color:#1e293b;background:#f8fafc;transition:border-color .2s,box-shadow .2s}select,select.form-input{-webkit-appearance:auto!important;-moz-appearance:auto!important;appearance:auto!important}select.form-input option{padding:8px;direction:rtl;text-align:right;color:inherit;background:inherit}.form-input:focus{outline:0;border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.15);background:#fff}.form-label{display:block;font-weight:600;color:#374151;margin-bottom:6px;font-size:14px}.badge{display:inline-flex;align-items:center;padding:2px 10px;border-radius:50px;font-size:12px;font-weight:700}.badge-blue{background:#eff6ff;color:#1d4ed8}.badge-green{background:#f0fdf4;color:#16a34a}.badge-red{background:#fef2f2;color:#dc2626}.badge-yellow{background:#fefce8;color:#ca8a04}.badge-gray{background:#f1f5f9;color:#475569}.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);backdrop-filter:blur(4px);z-index:100;display:flex;align-items:center;justify-content:center;padding:16px;opacity:0;pointer-events:none;transition:opacity .2s}.modal-overlay.open{opacity:1;pointer-events:all}.modal-box{background:#fff;border-radius:20px;width:100%;max-width:600px;max-height:90vh;overflow-y:auto;padding:32px;transform:scale(.95);transition:transform .2s;direction:rtl}.modal-overlay.open .modal-box{transform:scale(1)}.data-table{width:100%;border-collapse:collapse}.data-table th{background:#f8fafc;padding:12px 16px;text-align:right;font-weight:700;color:#475569;font-size:13px;border-bottom:2px solid #e2e8f0}.data-table td{padding:14px 16px;border-bottom:1px solid #f1f5f9;font-size:14px;color:#374151}.data-table tr:hover td{background:#f8fafc}.toast-container{position:fixed;bottom:24px;left:24px;z-index:9999;display:flex;flex-direction:column;gap:12px}.toast{background:#fff;border-radius:12px;padding:16px 20px;box-shadow:0 10px 40px rgba(0,0,0,.15);display:flex;align-items:center;gap:12px;min-width:300px;animation:slideInLeft .3s ease;border-right:5px solid;direction:rtl;color:#1e293b;font-weight:600}.toast.success{border-color:#10b981;background:#f0fdf4;color:#065f46}.toast.error{border-color:#ef4444;background:#fef2f2;color:#991b1b}.toast.info{border-color:#3b82f6;background:#eff6ff;color:#1e40af}html.dark .toast{box-shadow:0 10px 40px rgba(0,0,0,.5)}html.dark .toast.success{background:#064e3b;color:#a7f3d0;border-color:#10b981}html.dark .toast.error{background:#7f1d1d;color:#fecaca;border-color:#ef4444}html.dark .toast.info{background:#1e3a8a;color:#bfdbfe;border-color:#3b82f6}@keyframes slideInLeft{from{transform:translateX(-100%);opacity:0}to{transform:translateX(0);opacity:1}}.progress-bar{height:8px;background:#e2e8f0;border-radius:50px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,#1a56db,#3b82f6);border-radius:50px;transition:width .6s ease}.video-container{position:relative;background:#000;border-radius:16px;overflow:hidden;aspect-ratio:16/9}.video-container video{width:100%;height:100%}.plyr__video-wrapper.plyr__video-embed{position:relative!important;aspect-ratio:16/9!important}.plyr__video-wrapper.plyr__video-embed iframe{position:absolute!important;top:0!important;left:0!important;width:100%!important;height:100%!important}.watermark-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;overflow:hidden;z-index:20}.dynamic-watermark{position:absolute;color:rgba(255,255,255,.4);font-size:13px;font-weight:700;font-family:Cairo,sans-serif;text-shadow:0 1px 3px rgba(0,0,0,.6);user-select:none;white-space:nowrap;letter-spacing:.5px;transition:top 4s linear,left 4s linear;top:10%;left:10%}.notif-bell{position:relative;cursor:pointer}.notif-badge{position:absolute;top:-6px;left:-6px;background:#ef4444;color:#fff;border-radius:50%;width:20px;height:20px;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;animation:pulse 2s infinite}@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.2)}}.rank-gold{color:#f59e0b}.rank-silver{color:#94a3b8}.rank-bronze{color:#b45309}.rank-1{background:linear-gradient(135deg,#fff9c4,#fff176);border:2px solid #f59e0b}.rank-2{background:linear-gradient(135deg,#f5f5f5,#e0e0e0);border:2px solid #9e9e9e}.rank-3{background:linear-gradient(135deg,#ffe8d6,#ffccbc);border:2px solid #b45309}.section-panel{display:none}.section-panel.active{display:block;animation:fadeInUp .3s ease}@keyframes fadeInUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.hero-gradient{background:linear-gradient(135deg,#0f172a 0,#1e3a8a 50%,#1e429f 100%);position:relative;overflow:hidden}.hero-gradient::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}.gallery-item{border-radius:16px;overflow:hidden;aspect-ratio:4/3;cursor:pointer;transition:transform .3s ease}.gallery-item:hover{transform:scale(1.03)}.gallery-item img{width:100%;height:100%;object-fit:cover}.file-drop{border:2px dashed #cbd5e0;border-radius:12px;padding:32px;text-align:center;cursor:pointer;transition:all .2s}.file-drop.dragover,.file-drop:hover{border-color:#3b82f6;background:#eff6ff}.quiz-option{padding:14px 20px;border:2px solid #e2e8f0;border-radius:12px;cursor:pointer;transition:all .2s;font-size:15px}.quiz-option:hover{border-color:#3b82f6;background:#eff6ff}.quiz-option.selected{border-color:#3b82f6;background:#eff6ff;color:#1d4ed8;font-weight:600}.quiz-option.correct{border-color:#10b981;background:#f0fdf4;color:#065f46}.quiz-option.wrong{border-color:#ef4444;background:#fef2f2;color:#991b1b}.spinner{width:40px;height:40px;border:4px solid #e2e8f0;border-top-color:#3b82f6;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.empty-state{text-align:center;padding:64px 24px;color:#94a3b8}.empty-state svg{margin:0 auto 16px;opacity:.4}.top-header{height:var(--header-height);background:#fff;border-bottom:1px solid #e2e8f0;position:fixed;top:0;left:0;right:0;z-index:50;display:flex;align-items:center;padding:0 24px;gap:16px}.qa-thread{border:1px solid #e2e8f0;border-radius:16px;overflow:hidden}.qa-question{padding:20px;background:#f8fafc}.qa-answer{padding:20px;background:#fff;border-top:1px solid #e2e8f0}.qa-answer-badge{background:linear-gradient(135deg,#1a56db,#1e429f);color:#fff;padding:2px 12px;border-radius:50px;font-size:12px;font-weight:700}@media (max-width:1024px){.sidebar{transform:translateX(100%)}.sidebar.open{transform:translateX(0)}.main-content{margin-right:0!important}.top-header{right:0!important;width:100%!important}}@media (max-width:768px){:root{--header-height:56px}.main-content{padding:12px;padding-top:calc(var(--header-height) + 12px)}.top-header{padding:0 12px;height:var(--header-height)}.stat-card{padding:14px}.card{border-radius:14px}.modal-box{padding:18px;margin:10px;max-height:90vh;width:calc(100% - 20px)}#add-course-video-modal .grid-cols-2,#add-course-video-modal .grid-cols-3{grid-template-columns:1fr!important}#add-course-video-modal .col-span-2{grid-column:span 1!important}#admin-courses-grid,#books-grid,#features-grid,#landing-courses-grid{grid-template-columns:1fr!important}.overflow-x-auto{-webkit-overflow-scrolling:touch}.data-table{font-size:13px}.data-table td,.data-table th{padding:8px 10px;white-space:nowrap}.flex.items-start{gap:8px}.btn-danger,.btn-primary,.btn-secondary,.btn-success{padding:8px 14px;font-size:13px}h2{font-size:1.25rem!important}h3{font-size:1rem!important}.form-input{padding:10px 14px;font-size:15px;min-height:44px}select.form-input{min-height:44px;appearance:auto!important;-webkit-appearance:auto!important;-moz-appearance:auto!important}.gallery-item{width:100%;height:auto;aspect-ratio:4/3}.aspect-video{aspect-ratio:16/9}.toast{max-width:calc(100vw - 24px);left:12px}}@media (max-width:420px){.main-content{padding:8px;padding-top:calc(var(--header-height) + 8px)}.grid.grid-cols-2{grid-template-columns:1fr!important}.stat-card{padding:12px}.card{padding:12px}.modal-box{padding:14px;margin:6px}h2{font-size:1.1rem!important}.btn-danger,.btn-primary,.btn-secondary,.btn-success{padding:7px 12px;font-size:12px}.data-table td,.data-table th{padding:6px 8px;font-size:12px}}.mobile-menu-btn{display:none;width:40px;height:40px;border-radius:10px;background:#fff;border:1px solid #e2e8f0;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.1)}@media (max-width:1024px){.mobile-menu-btn{display:flex}}@media print{body{background:#fff}.no-print,.sidebar,.top-header{display:none!important}.main-content{margin:0!important;padding:0!important}}html.dark select option{background-color:#1e1e1e!important;color:#e5e7eb!important}html.dark select.form-input{background-color:#1e1e1e!important;color:#e5e7eb!important;border-color:#444!important}html.dark,html.dark body{background:#121212!important;color:#e5e7eb!important;color-scheme:dark}html.dark .bg-white,html.dark .card,html.dark .form-input,html.dark .modal-box,html.dark .section-panel,html.dark .top-header{background-color:#1e1e1e!important;border-color:#333!important;color:#e5e7eb!important}html.dark .sidebar{background:linear-gradient(180deg,#121212 0,#1a1a1a 100%)!important;border-left-color:#333!important}html.dark .text-gray-700,html.dark .text-gray-800,html.dark .text-slate-700,html.dark .text-slate-800,html.dark .text-slate-900{color:#f3f4f6!important}html.dark .text-gray-500,html.dark .text-gray-600,html.dark .text-slate-400,html.dark .text-slate-500,html.dark .text-slate-600{color:#9ca3af!important}html.dark .bg-gray-50,html.dark .bg-slate-100,html.dark .bg-slate-200,html.dark .bg-slate-50{background-color:#262626!important;border-color:#333!important}html.dark .border-b,html.dark .border-gray-200,html.dark .border-slate-100,html.dark .border-slate-200{border-color:#333!important}html.dark .hover\:bg-blue-50:hover,html.dark .hover\:bg-slate-100:hover,html.dark .hover\:bg-slate-50:hover{background-color:#2a2a2a!important}html.dark .bg-gradient-to-r.from-slate-50{background-image:none!important;background-color:#1e1e1e!important}html.dark .qa-thread{border-color:#333!important}html.dark .qa-question{background-color:#262626!important}html.dark .qa-answer{background-color:#1e1e1e!important;border-top-color:#333!important}html.dark .btn-secondary{background-color:#262626!important;color:#e5e7eb!important;border-color:#444!important}html.dark .btn-secondary:hover{background-color:#333!important}html.dark .nav-item.active,html.dark .nav-item:hover{background:rgba(26,86,219,.25)!important}.plyr__video-wrapper{position:relative!important;z-index:1!important;overflow:hidden!important;background:#000}.plyr__video-wrapper iframe{z-index:1!important}.plyr__controls{z-index:200!important}.watermark-wrapper{z-index:999999!important}.quiz-option{padding:16px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;transition:all .2s;color:#1e293b}.quiz-option.clickable:hover{background:#f8fafc}.quiz-state-correct{border-color:#10b981!important;background:#ecfdf5!important;color:#047857!important}.quiz-state-wrong{border-color:#ef4444!important;background:#fef2f2!important;color:#b91c1c!important}.quiz-state-disabled{opacity:.6;pointer-events:none}html.dark .quiz-option{background:#262626;border-color:#444;color:#e5e7eb}html.dark .quiz-option.clickable:hover{background:#333}html.dark .quiz-state-correct{background:rgba(16,185,129,.15)!important;border-color:#10b981!important;color:#34d399!important}html.dark .quiz-state-wrong{background:rgba(239,68,68,.15)!important;border-color:#ef4444!important;color:#f87171!important}.plyr__poster{background-size:cover!important;background-position:center!important}.plyr__control--overlaid{background-color:#1a2744!important;background:#1a2744!important;opacity:1!important;width:90px!important;height:90px!important;border-radius:50%!important;border:none!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;cursor:pointer!important;box-shadow:0 4px 15px rgba(0,0,0,.5)!important;transition:transform .2s ease,background-color .2s ease!important;position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;z-index:100!important}.plyr__control--overlaid:hover{background-color:#1a56db!important;background:#1a56db!important;transform:translate(-50%,-50%) scale(1.1)!important}.plyr__control--overlaid:active{transform:translate(-50%,-50%) scale(.95)!important}.plyr__control--overlaid svg{width:36px!important;height:36px!important;fill:#ffffff!important;position:relative!important;left:4px!important}.plyr.plyr--youtube.plyr--paused .plyr__poster,.plyr.plyr--youtube.plyr--stopped .plyr__poster{opacity:1!important;z-index:99!important;background-color:#000!important}.plyr__controls{background:linear-gradient(to top,rgba(0,0,0,.85) 0,rgba(0,0,0,.4) 60%,transparent 100%)!important;padding:32px 16px 12px!important;border-radius:0 0 12px 12px!important;z-index:200!important}.plyr__controls .plyr__control{background:0 0!important;border-radius:6px!important;transition:background .18s ease!important}.plyr__controls .plyr__control:hover{background:rgba(255,255,255,.18)!important}.plyr--full-ui input[type=range]{color:#3b82f6!important}.plyr__progress input[type=range]::-webkit-slider-thumb{width:14px!important;height:14px!important}.plyr__volume input[type=range]{color:#3b82f6!important}.plyr__time{font-family:Cairo,monospace!important;font-size:13px!important;color:rgba(255,255,255,.9)!important}.plyr--video{border-radius:12px!important;overflow:hidden!important;background:#000!important}.card.overflow-hidden{overflow-x:auto}@media (max-width:640px){.section-panel{padding-left:1rem!important;padding-right:1rem!important}#hw-submissions-view .flex.flex-wrap{gap:.5rem}#admin-hw-list .flex.flex-wrap.gap-2.mt-3 button{flex:1 1 calc(33% - 0.5rem);min-width:0}#section-homework h2{font-size:1.25rem}}#hw-submit-modal .modal-box{max-width:min(440px,96vw)}#resend-hw-modal .modal-box{max-width:min(440px,96vw);margin:1rem}@keyframes floatHero{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-12px) scale(1.015)}}.animate-hero-img{animation:floatHero 6s ease-in-out infinite;transform-origin:bottom center}.cv-custom-scrollbar::-webkit-scrollbar{width:5px}.cv-custom-scrollbar::-webkit-scrollbar-thumb{background:#c7d2fe;border-radius:99px}.cv-custom-scrollbar::-webkit-scrollbar-track{background:0 0}.cv-playlist-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;cursor:pointer;border:1.5px solid transparent;transition:background .18s,border-color .18s,box-shadow .18s;background:#fff}.cv-playlist-item:hover{background:#eef2ff;border-color:#c7d2fe}.cv-playlist-item.active{background:linear-gradient(135deg,#eef2ff,#e0e7ff);border-color:#818cf8;box-shadow:0 2px 8px rgba(99,102,241,.15)}.cv-playlist-item .cv-thumb{width:64px;height:44px;border-radius:8px;object-fit:cover;flex-shrink:0;background:#e2e8f0}.cv-playlist-item .cv-thumb-placeholder{width:64px;height:44px;border-radius:8px;flex-shrink:0;background:linear-gradient(135deg,#e0e7ff,#c7d2fe);display:flex;align-items:center;justify-content:center}.cv-playlist-item .cv-num{width:24px;height:24px;border-radius:50%;background:#e2e8f0;color:#64748b;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0}.cv-playlist-item.active .cv-num{background:#6366f1;color:#fff}.cv-playlist-item .cv-info{flex:1;min-width:0}.cv-playlist-item .cv-info .cv-title{font-size:12px;font-weight:700;color:#1e293b;line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.cv-playlist-item.active .cv-info .cv-title{color:#4338ca}.cv-playlist-item .cv-info .cv-date{font-size:10px;color:#94a3b8;margin-top:2px}html.dark .cv-playlist-item{background:var(--dark-card,#1e293b)!important;border-color:#334155!important}html.dark .cv-playlist-item:hover{background:#2a3548!important;border-color:#475569!important}html.dark .cv-playlist-item.active{background:rgba(99,102,241,.15)!important;border-color:#6366f1!important}html.dark .cv-playlist-item .cv-thumb{background:#334155!important}html.dark .cv-playlist-item .cv-num{background:#334155!important;color:#cbd5e1!important}html.dark .cv-playlist-item.active .cv-num{background:#6366f1!important;color:#fff!important}html.dark .cv-playlist-item .cv-info .cv-title{color:#f1f5f9!important}html.dark .cv-playlist-item.active .cv-info .cv-title{color:#818cf8!important}@media (min-width:1280px){#course-videos-list-wrapper{max-height:680px!important}}@media (min-width:768px) and (max-width:1279px){#course-videos-list-wrapper{max-height:460px!important}}@media (min-width:768px){#section-videos #videos-list{max-height:480px!important}}@media (min-width:1280px){#section-videos #videos-list{max-height:680px!important}}.lesson-item-row.border-r-4{border-right:4px solid #2563eb!important;padding-right:calc(.75rem - 4px)}#videos-list button:active,#videos-list button:focus{outline:0;background-color:transparent!important}html.dim,html.dim body{background:#070c17!important;color:#e5e7eb!important;color-scheme:dark}html.dim .bg-white,html.dim .card,html.dim .form-input,html.dim .modal-box,html.dim .section-panel,html.dim .top-header{background-color:#0d1526!important;border-color:rgba(59,130,246,.15)!important;color:#e5e7eb!important}html.dim .sidebar{background:linear-gradient(180deg,#080d1a 0,#0d1526 60%,#0f1f3a 100%)!important;border-left-color:rgba(59,130,246,.15)!important}html.dim .text-gray-700,html.dim .text-gray-800,html.dim .text-slate-700,html.dim .text-slate-800,html.dim .text-slate-900{color:#f1f5f9!important}html.dim .text-gray-500,html.dim .text-gray-600,html.dim .text-slate-400,html.dim .text-slate-500,html.dim .text-slate-600{color:#94a3b8!important}html.dim .bg-gray-50,html.dim .bg-slate-100,html.dim .bg-slate-200,html.dim .bg-slate-50{background-color:rgba(255,255,255,.03)!important;border-color:rgba(255,255,255,.06)!important}html.dim .border-b,html.dim .border-gray-200,html.dim .border-slate-100,html.dim .border-slate-200{border-color:rgba(255,255,255,.06)!important}html.dim select option{background-color:#0d1526!important;color:#e5e7eb!important}html.dim select.form-input{background-color:#1a2035!important;color:#e5e7eb!important;border-color:rgba(255,255,255,.12)!important}html.sepia,html.sepia body{background:#f4ecd8!important;color:#5c4b37!important}html.sepia .bg-white,html.sepia .card,html.sepia .form-input,html.sepia .modal-box,html.sepia .section-panel,html.sepia .top-header{background-color:#fcf9f2!important;border-color:#e6dcc5!important;color:#5c4b37!important}html.sepia .sidebar{background:linear-gradient(180deg,#f0e6d2 0,#f4ecd8 60%,#fcf9f2 100%)!important;border-left-color:#e6dcc5!important}html.sepia .text-gray-700,html.sepia .text-gray-800,html.sepia .text-slate-700,html.sepia .text-slate-800,html.sepia .text-slate-900,html.sepia h1,html.sepia h2,html.sepia h3,html.sepia h4{color:#4a3b2c!important}html.sepia .text-gray-500,html.sepia .text-gray-600,html.sepia .text-slate-400,html.sepia .text-slate-500,html.sepia .text-slate-600{color:#7a6a58!important}html.sepia .bg-gray-50,html.sepia .bg-slate-100,html.sepia .bg-slate-200,html.sepia .bg-slate-50{background-color:#f0e6d2!important;border-color:#e6dcc5!important}html.sepia .border-b,html.sepia .border-gray-200,html.sepia .border-slate-100,html.sepia .border-slate-200{border-color:#e6dcc5!important}html.sepia select option{background-color:#fcf9f2!important;color:#5c4b37!important}.section-panel{min-height:calc(125vh - 70px)}.csw{position:relative;width:100%;display:inline-block}.csw-display{width:100%;padding:12px 16px;border:2px solid #e2e8f0;border-radius:12px;font-family:Cairo,Tajawal,sans-serif;font-size:15px;color:#1e293b;background:#f8fafc;cursor:pointer;user-select:none;display:flex;align-items:center;justify-content:space-between;gap:8px;transition:border-color .2s,box-shadow .2s;min-height:48px;box-sizing:border-box}.csw-display:hover{border-color:#94a3b8}.csw-display.open{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.15);background:#fff}.csw-arrow{flex-shrink:0;transition:transform .2s;font-style:normal;font-size:12px;color:#64748b}.csw-display.open .csw-arrow{transform:rotate(180deg)}.csw-dropdown{display:none;position:absolute;top:calc(100% + 4px);right:0;left:0;background:#fff;border:2px solid #e2e8f0;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.14);z-index:99999;max-height:260px;overflow-y:auto;overflow-x:hidden}.csw-dropdown.open{display:block}.csw-item{padding:10px 16px;cursor:pointer;font-family:Cairo,Tajawal,sans-serif;font-size:14px;color:#1e293b;text-align:right;transition:background .12s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.csw-item:first-child{border-radius:10px 10px 0 0}.csw-item:last-child{border-radius:0 0 10px 10px}.csw-item:hover{background:#eff6ff;color:#1d4ed8}.csw-item.selected{background:#eff6ff;color:#1d4ed8;font-weight:600}html.dark .csw-display,html.dim .csw-display{background:#1e1e1e;color:#e5e7eb;border-color:#444}html.dark .csw-display.open,html.dim .csw-display.open{background:#252525;border-color:#3b82f6}html.dark .csw-dropdown,html.dim .csw-dropdown{background:#1e1e1e;border-color:#444}html.dark .csw-item,html.dim .csw-item{color:#e5e7eb}html.dark .csw-item:hover,html.dim .csw-item:hover{background:rgba(59,130,246,.15);color:#93c5fd}html.dark .csw-item.selected,html.dim .csw-item.selected{background:rgba(59,130,246,.2);color:#93c5fd}html.dim .csw-display{background:#0d1526;border-color:rgba(59,130,246,.3)}html.dim .csw-dropdown{background:#0d1526;border-color:rgba(59,130,246,.3)}html.dim .csw-item.selected,html.dim .csw-item:hover{background:rgba(59,130,246,.18)}html.sepia .csw-display{background:#fcf9f2;color:#5c4b37;border-color:#c4a882}html.sepia .csw-dropdown{background:#fcf9f2;border-color:#c4a882}html.sepia .csw-item{color:#5c4b37}html.sepia .csw-item.selected,html.sepia .csw-item:hover{background:#f0e6d3}.math-content table{width:100%;border-collapse:collapse;margin:16px 0;background:var(--card-bg)}.math-content td,.math-content th{border:1px solid var(--border-color);padding:8px 12px;text-align:center}.math-content th{background:var(--hover-bg);font-weight:700}.purchase-payment-card{background:#eff6ff;border:1px solid #bfdbfe;border-radius:16px;padding:16px}html.dark .purchase-payment-card{background:rgba(30,58,138,.2);border:1px solid rgba(30,58,138,.5)}.purchase-payment-divider{border-top:1px solid #bfdbfe}html.dark .purchase-payment-divider{border-top:1px solid rgba(30,58,138,.5)}.purchase-installment-card{background:linear-gradient(to right,#eef2ff,#faf5ff);border:1px solid #c7d2fe;border-radius:16px;padding:16px}html.dark .purchase-installment-card{background:linear-gradient(to right,rgba(49,46,129,.2),rgba(88,28,135,.1));border:1px solid rgba(49,46,129,.5)}.purchase-plan-option{display:flex;align-items:center;gap:12px;padding:12px;background:#fff;border:2px solid #e2e8f0;border-radius:12px;cursor:pointer;transition:all .2s}html.dark .purchase-plan-option{background:#1e293b;border:2px solid #334155}.purchase-plan-option:hover{border-color:#60a5fa}html.dark .purchase-plan-option:hover{border-color:#3b82f6}.pay-method-card{background:#fff;border:1px solid #dbeafe;border-radius:12px;padding:16px;box-shadow:0 1px 2px 0 rgba(0,0,0,.05)}html.dark .pay-method-card{background:#1e293b;border:1px solid #334155;box-shadow:none}.pay-method-name{font-weight:700;color:#334155}html.dark .pay-method-name{color:#f1f5f9}.pay-method-line{color:#475569;font-size:.875rem;font-family:monospace;user-select:all;background:#f8fafc;border-radius:8px;padding:6px 12px;margin-top:4px}html.dark .pay-method-line{color:#cbd5e1;background:#0f172a}.pay-method-empty{color:#94a3b8;font-size:.875rem;text-align:center;padding-top:4px;padding-bottom:4px}html.dark .pay-method-empty{color:#64748b}.pay-method-warn{background:#fffbeb;border:1px solid #fde68a;border-radius:12px;padding:12px;margin-top:8px}html.dark .pay-method-warn{background:rgba(120,53,15,.2);border:1px solid rgba(120,53,15,.5)}.pay-method-warn-text{color:#b45309;font-size:.875rem;text-align:center}html.dark .pay-method-warn-text{color:#fcd34d}.exam-option-text svg,.exam-question-text svg,.lesson-content svg,.question-body svg,.quiz-option svg{min-width:150px;max-width:100%;height:auto!important;display:inline-block}.exam-option-text table,.exam-question-text table,.lesson-content table,.question-body table,.quiz-option table{width:100%;max-width:100%;border-collapse:collapse;margin:1rem 0}.exam-question-text table td,.exam-question-text table th,.lesson-content table td,.lesson-content table th,.question-body table td,.question-body table th,.quiz-option table td,.quiz-option table th{border:1px solid #cbd5e1;padding:8px 12px;text-align:center}html.dark .exam-question-text table td,html.dark .exam-question-text table th,html.dark .lesson-content table td,html.dark .lesson-content table th,html.dark .question-body table td,html.dark .question-body table th,html.dark .quiz-option table td,html.dark .quiz-option table th{border-color:#334155}