@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');
*{box-sizing:border-box;margin:0;padding:0}
:root{--T:#2F7F86;--TD:#1d5c61;--TL:#eaf5f6;--G:#C99B4A;--GL:#fdf6e8;--GD:#9a7535;--BG:#F7F8FA;--W:#fff;--TX:#18232a;--GR:#64748b;--GL2:#e8ecf0;--BD:#dde3ea;--RED:#ef4444;--GRN:#22c55e;--OR:#f59e0b;--SH:0 2px 12px rgba(0,0,0,.07);--SHL:0 8px 32px rgba(0,0,0,.12);--R:14px}
html,body{font-family:'Cairo',sans-serif;direction:rtl;background:var(--BG);color:var(--TX);line-height:1.7;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{text-decoration:none;color:inherit}img{max-width:100%;height:auto}ul{list-style:none}input,textarea,select,button{font-family:inherit}
.container{max-width:1100px;margin:0 auto;padding:0 24px}
/* NAV */
.navbar{background:var(--W);border-bottom:1px solid var(--BD);position:sticky;top:0;z-index:200;box-shadow:var(--SH)}
.nav-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 24px;height:64px;gap:14px}
.nav-logo{display:flex;align-items:center;cursor:pointer}.logo-img{height:44px;width:auto}.logo-svg{height:38px;width:auto}
.nav-links{display:flex;gap:2px}
.nav-link{padding:8px 13px;border-radius:8px;font-size:13px;font-weight:500;color:var(--GR);transition:.15s}
.nav-link:hover,.nav-link.active{background:var(--TL);color:var(--T);font-weight:700}
.nav-auth{display:flex;gap:8px;align-items:center}
.btn-nav-login{border:1.5px solid var(--BD);background:var(--W);padding:7px 16px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;color:var(--TX);transition:.15s}
.btn-nav-login:hover{border-color:var(--T);color:var(--T)}
.btn-nav-reg{border:none;background:var(--T);color:#fff;padding:8px 18px;border-radius:8px;font-size:13px;font-weight:700;cursor:pointer}
.btn-nav-reg:hover{background:var(--TD)}
.btn-nav-dash{font-size:13px;font-weight:700;color:var(--T);background:var(--TL);padding:7px 14px;border-radius:8px}
.btn-nav-out{font-size:12px;color:var(--GR);padding:6px 12px;border:1px solid var(--BD);border-radius:7px}
.nav-hamburger{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:6px}
.nav-hamburger span{width:22px;height:2px;background:var(--TX);border-radius:2px;transition:.3s}
/* FLASH */
.flash-msg{position:fixed;top:72px;right:20px;z-index:999;padding:12px 20px;border-radius:10px;font-size:14px;font-weight:600;box-shadow:var(--SHL);animation:slideIn .3s ease}
.flash-success{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}
.flash-error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
@keyframes slideIn{from{transform:translateX(20px);opacity:0}to{transform:translateX(0);opacity:1}}
/* HERO */
.hero{background:var(--T);padding:60px 24px 0;overflow:hidden;position:relative}
.hero::before{content:'';position:absolute;top:-80px;right:-80px;width:400px;height:400px;background:rgba(255,255,255,.04);border-radius:50%;pointer-events:none}
.hero-inner{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:1fr 320px;gap:48px;align-items:flex-end}
.hero-tag{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.22);padding:5px 14px;border-radius:20px;font-size:12px;color:#fff;font-weight:600;margin-bottom:18px}
.hero-tag-dot{width:6px;height:6px;border-radius:50%;background:var(--G);flex-shrink:0}
.hero h1{font-size:30px;font-weight:900;color:#fff;line-height:1.38;margin-bottom:12px}
.hero h1 em{color:var(--G);font-style:normal}
.hero-sub{font-size:14px;color:rgba(255,255,255,.82);line-height:1.85;margin-bottom:26px;max-width:440px}
.hero-btns{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:32px}
.btn-gold{background:var(--G);color:#fff;border:none;padding:12px 26px;border-radius:9px;font-size:14px;font-weight:800;cursor:pointer;transition:.15s;display:inline-block}
.btn-gold:hover{background:var(--GD)}
.btn-ghost{background:rgba(255,255,255,.12);border:1.5px solid rgba(255,255,255,.32);color:#fff;padding:11px 22px;border-radius:9px;font-size:14px;font-weight:600;cursor:pointer;transition:.15s;display:inline-block}
.btn-ghost:hover{background:rgba(255,255,255,.22)}
.hero-nums{display:flex;gap:28px;padding-bottom:36px;flex-wrap:wrap}
.hero-num{color:#fff;display:flex;flex-direction:column;align-items:flex-start}.hero-num-n{font-size:22px;font-weight:900;line-height:1.2}.hero-num-l{font-size:11px;opacity:.7;margin-top:2px;white-space:nowrap}
.hero-card{background:rgba(255,255,255,.11);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.18);border-radius:16px;padding:20px;color:#fff}
.hero-card-top{display:flex;align-items:center;gap:10px;margin-bottom:13px}
.hero-card-ic{width:40px;height:40px;border-radius:10px;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;font-size:20px}
.hero-card-title{font-size:13px;font-weight:800}.hero-card-sub{font-size:11px;opacity:.7;margin-top:1px}
.hero-pb{background:rgba(255,255,255,.18);height:5px;border-radius:3px;margin-bottom:5px}
.hero-pbf{background:var(--G);height:100%;border-radius:3px}
.hero-pct{font-size:11px;opacity:.75;margin-bottom:12px}
.hero-li{display:flex;align-items:center;gap:7px;font-size:11px;padding:6px 8px;border-radius:7px;background:rgba(255,255,255,.07);margin-bottom:5px}
.hero-li.done{background:rgba(34,197,94,.14)}
.hero-dot{width:15px;height:15px;border-radius:50%;border:1.5px solid rgba(255,255,255,.35);display:flex;align-items:center;justify-content:center;font-size:9px;flex-shrink:0}
.hero-li.done .hero-dot{background:#22c55e;border-color:#22c55e}
.hero-now{font-size:10px;background:rgba(201,155,74,.22);color:var(--G);padding:1px 6px;border-radius:4px;font-weight:700;margin-right:auto}
/* STRIP */
.strip{background:var(--TD);padding:18px 24px;display:flex;justify-content:center;gap:52px;flex-wrap:wrap}
.si{text-align:center;color:#fff}.si-n{font-size:22px;font-weight:900}.si-l{font-size:11px;opacity:.65;margin-top:1px}
/* SECTIONS */
.section{padding:52px 0}.section.gray{background:var(--W);border-top:1px solid var(--BD);border-bottom:1px solid var(--BD)}
.sec-head{text-align:center;margin-bottom:30px}
.sec-label{font-size:11px;color:var(--T);font-weight:700;text-transform:uppercase;letter-spacing:1px;margin-bottom:5px}
.sec-head h2{font-size:22px;font-weight:900;margin-bottom:5px}
.sec-head p{font-size:13px;color:var(--GR)}
/* COURSE CARD */
.courses-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:18px}
.course-card{background:var(--W);border-radius:var(--R);border:1px solid var(--BD);overflow:hidden;cursor:pointer;transition:.2s;display:flex;flex-direction:column}
.course-card:hover{border-color:var(--T);transform:translateY(-3px);box-shadow:var(--SHL)}
.course-thumb{height:150px;position:relative;display:flex;align-items:center;justify-content:center;font-size:48px;background:var(--TL)}
.course-thumb img{width:100%;height:100%;object-fit:cover;position:absolute;top:0;left:0}
.course-level{position:absolute;top:10px;right:10px;background:var(--T);color:#fff;padding:3px 9px;border-radius:6px;font-size:11px;font-weight:700}
.course-body{padding:15px;flex:1;display:flex;flex-direction:column}
.course-title{font-size:14px;font-weight:800;margin-bottom:5px;line-height:1.4}
.course-desc{font-size:12px;color:var(--GR);margin-bottom:6px}
.course-stars{color:var(--OR);font-size:12px;margin-bottom:9px}
.course-foot{margin-top:auto;padding-top:10px;border-top:1px solid var(--BD)}
.price-new{font-size:18px;font-weight:900;color:var(--T)}
.price-old{font-size:12px;color:var(--GR);text-decoration:line-through;margin-right:6px}
.badge-free{font-size:12px;font-weight:700;color:#166534;background:#dcfce7;padding:3px 9px;border-radius:6px;border:1px solid #bbf7d0}
.course-meta{display:flex;gap:12px;font-size:12px;color:var(--GR);margin:6px 0 9px}
.btn-enroll{width:100%;background:var(--T);color:#fff;border:none;border-radius:8px;padding:9px;font-size:13px;font-weight:700;cursor:pointer;transition:.15s;display:block;text-align:center}
.btn-enroll:hover{background:var(--TD)}
/* EXAM CARD */
.exams-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
.exam-card{background:var(--W);border-radius:var(--R);border:1px solid var(--BD);overflow:hidden;cursor:pointer;transition:.2s}
.exam-card:hover{border-color:var(--T);transform:translateY(-2px);box-shadow:var(--SHL)}
.exam-thumb{height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden}
.exam-thumb::before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(45deg,rgba(255,255,255,.03) 0,rgba(255,255,255,.03) 1px,transparent 1px,transparent 12px)}
.exam-label{color:rgba(255,255,255,.65);font-size:10px;font-weight:600;margin-bottom:3px}
.exam-name{color:var(--G);font-size:16px;font-weight:900;text-align:center;padding:0 12px;line-height:1.3}
.exam-body{padding:13px}
.exam-title{font-size:13px;font-weight:700;margin-bottom:8px}
.exam-foot{display:flex;justify-content:space-between;align-items:center}
.exam-cnt{font-size:12px;color:var(--T);font-weight:700}
.btn-exam{background:var(--T);color:#fff;border:none;border-radius:7px;padding:7px 14px;font-size:12px;font-weight:700;cursor:pointer;display:inline-block}
/* WHY / TOOLS */
.why-grid,.tools-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(188px,1fr));gap:14px}
.why-card,.tool-card{background:var(--W);border-radius:var(--R);padding:22px 17px;border:1px solid var(--BD);transition:.17s}
.why-card:hover,.tool-card:hover{border-color:var(--T)}
.why-icon,.tool-icon{width:48px;height:48px;border-radius:12px;background:var(--TL);display:flex;align-items:center;justify-content:center;font-size:22px;margin-bottom:12px}
.why-title,.tool-title{font-size:14px;font-weight:800;margin-bottom:5px}
.why-desc,.tool-desc{font-size:12px;color:var(--GR);line-height:1.8}
/* TESTI */
.testi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.testi-card{background:var(--W);border-radius:var(--R);padding:20px;border:1px solid var(--BD);text-align:center}
.testi-av{width:56px;height:56px;border-radius:50%;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;background:var(--TL);font-size:24px}
.testi-name{font-size:14px;font-weight:800;margin-bottom:4px}
.testi-stars{color:var(--OR);font-size:13px;margin-bottom:6px}
.testi-text{font-size:12px;color:var(--GR);line-height:1.75}
/* CTA */
.cta-band{background:var(--T);padding:56px 24px;text-align:center}
.cta-band h2{font-size:22px;font-weight:900;color:#fff;margin-bottom:8px}
.cta-band p{font-size:13px;color:rgba(255,255,255,.8);margin-bottom:24px}
/* BUTTONS */
.btn-primary{display:inline-block;background:var(--T);color:#fff;border:none;padding:11px 24px;border-radius:9px;font-size:14px;font-weight:700;cursor:pointer;transition:.15s;text-align:center}
.btn-primary:hover{background:var(--TD)}
.btn-secondary{display:inline-block;background:var(--W);color:var(--T);border:1.5px solid var(--T);padding:10px 22px;border-radius:9px;font-size:14px;font-weight:700;cursor:pointer;transition:.15s}
.btn-secondary:hover{background:var(--TL)}
.w-full{width:100%}
/* FORMS */
.auth-page{min-height:calc(100vh - 64px);display:flex;align-items:center;justify-content:center;padding:28px}
.form-card{background:var(--W);border-radius:18px;border:1px solid var(--BD);padding:36px;width:100%;max-width:420px;box-shadow:var(--SHL)}
.form-title{font-size:20px;font-weight:900;text-align:center;margin-bottom:3px}
.form-sub{font-size:13px;color:var(--GR);text-align:center;margin-bottom:24px}
.form-group{margin-bottom:15px}
.form-group label{display:block;font-size:13px;font-weight:700;margin-bottom:5px}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:11px 13px;border:1.5px solid var(--BD);border-radius:9px;font-family:inherit;font-size:14px;transition:.2s;background:var(--W);color:var(--TX)}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--T);box-shadow:0 0 0 3px rgba(47,127,134,.1)}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form-alt{text-align:center;font-size:13px;color:var(--GR);margin-top:14px}
.form-alt a{color:var(--T);font-weight:700;cursor:pointer}
.hint-box{font-size:12px;color:var(--GR);background:var(--BG);border-radius:8px;padding:10px 12px;line-height:1.9;margin-bottom:14px;border:1px solid var(--BD)}
.alert{padding:11px 15px;border-radius:9px;font-size:13px;font-weight:600;margin-bottom:15px}
.alert-success{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}
.alert-error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
/* PAGE HERO */
.page-hero{background:var(--T);padding:36px 24px;color:#fff}
.page-hero h1{font-size:24px;font-weight:900;margin-bottom:6px}
.page-hero p{font-size:13px;opacity:.82}
.breadcrumb{font-size:12px;color:rgba(255,255,255,.7);margin-bottom:10px}
.breadcrumb a{color:rgba(255,255,255,.7)}
/* FILTER */
.filter-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:24px}
.filter-tab{padding:7px 18px;border-radius:9px;border:1.5px solid var(--BD);background:var(--W);font-family:inherit;font-size:13px;cursor:pointer;color:var(--GR);font-weight:500;transition:.15s}
.filter-tab:hover,.filter-tab.active{background:var(--T);color:#fff;border-color:var(--T);font-weight:700}
/* PROGRESS */
.prog-bar{height:7px;background:var(--GL2);border-radius:4px;overflow:hidden}
.prog-fill{height:100%;background:var(--T);border-radius:4px;transition:width .5s}
/* DETAIL */
.detail-layout{display:grid;grid-template-columns:1fr 290px;gap:28px;padding:32px 0}
.det-card{background:var(--W);border-radius:var(--R);border:1px solid var(--BD);padding:22px;margin-bottom:18px}
.det-card h3{font-size:15px;font-weight:800;margin-bottom:14px}
.sidebar-card{background:var(--W);border-radius:var(--R);border:1px solid var(--BD);padding:22px}
.sidebar-price{font-size:28px;font-weight:900;color:var(--T);margin-bottom:5px}
.lesson-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;transition:.13s}
.lesson-item:hover{background:var(--TL)}
.lesson-ic{width:34px;height:34px;border-radius:8px;background:var(--TL);display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0}
.lesson-title-txt{font-size:13px;font-weight:700}
.lesson-meta-txt{font-size:11px;color:var(--GR);margin-top:1px}
.free-tag{font-size:10px;background:rgba(34,197,94,.1);color:#166534;border:1px solid rgba(34,197,94,.2);padding:2px 7px;border-radius:5px;font-weight:700;margin-right:auto}
/* DASHBOARD */
.dash-layout{display:flex;min-height:calc(100vh - 64px)}
.dash-sidebar{width:228px;background:var(--W);border-left:1px solid var(--BD);flex-shrink:0}
.dash-sidebar-user{padding:18px 16px;border-bottom:1px solid var(--BD)}
.dash-av{width:46px;height:46px;border-radius:50%;background:var(--TL);color:var(--T);display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:900;margin-bottom:9px}
.dash-user-name{font-size:13px;font-weight:800}
.dash-user-role{font-size:11px;color:var(--GR);margin-top:2px}
.dash-menu{padding:10px 8px}
.dash-menu-lbl{font-size:10px;font-weight:700;color:var(--GR);text-transform:uppercase;letter-spacing:.4px;padding:6px 10px}
.dash-menu-item{display:flex;align-items:center;gap:8px;padding:10px 13px;border-radius:9px;cursor:pointer;font-size:13px;font-weight:500;color:var(--TX);transition:.12s;margin-bottom:2px;text-decoration:none}
.dash-menu-item:hover,.dash-menu-item.active{background:var(--TL);color:var(--T);font-weight:700}
.dash-main{flex:1;padding:28px;overflow-y:auto;background:var(--BG)}
.dash-header{margin-bottom:22px}
.dash-header h2{font-size:20px;font-weight:900}
.dash-header p{font-size:13px;color:var(--GR);margin-top:3px}
.kpi-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:13px;margin-bottom:18px}
.kpi-card{background:var(--W);border-radius:12px;padding:18px;border:1px solid var(--BD);border-right:4px solid var(--T)}
.kpi-card.gold{border-right-color:var(--G)}.kpi-card.green{border-right-color:var(--GRN)}.kpi-card.red{border-right-color:var(--RED)}
.kpi-val{font-size:26px;font-weight:900}.kpi-lbl{font-size:11px;color:var(--GR);margin-top:3px}
.content-card{background:var(--W);border-radius:12px;padding:20px;border:1px solid var(--BD);margin-bottom:16px}
.content-card-title{font-size:14px;font-weight:800;margin-bottom:14px}
.continue-card{background:var(--T);border-radius:14px;padding:22px;margin-bottom:16px;color:#fff}
.continue-lbl{font-size:12px;opacity:.8;margin-bottom:3px}
.continue-title{font-size:16px;font-weight:900;margin-bottom:2px}
.continue-sub{font-size:12px;opacity:.7;margin-bottom:12px}
.continue-bg{background:rgba(255,255,255,.18);height:5px;border-radius:3px;margin-bottom:5px}
.continue-bgf{background:#fff;height:100%;border-radius:3px}
.continue-pct{font-size:11px;opacity:.75;margin-bottom:10px}
.btn-continue{background:#fff;color:var(--T);border:none;padding:8px 19px;border-radius:8px;font-family:inherit;font-size:13px;font-weight:800;cursor:pointer}
/* TABLES */
.data-table-wrap{background:var(--W);border-radius:var(--R);border:1px solid var(--BD);overflow:hidden}
.data-table{width:100%;border-collapse:collapse;font-size:13px}
.data-table th{text-align:right;padding:11px 14px;background:var(--BG);color:var(--GR);font-weight:700;font-size:12px;border-bottom:1px solid var(--BD)}
.data-table td{padding:12px 14px;border-bottom:1px solid var(--BD);color:var(--TX)}
.data-table tr:last-child td{border-bottom:none}
.data-table tr:hover td{background:var(--TL)}
.badge{display:inline-block;padding:3px 10px;border-radius:6px;font-size:11px;font-weight:700}
.badge-ok{background:#dcfce7;color:#166534}.badge-warn{background:#fef9c3;color:#854d0e}.badge-err{background:#fee2e2;color:#991b1b}
.badge-info{background:var(--TL);color:var(--TD)}.badge-gold{background:var(--GL);color:var(--GD)}
.admin-btn{padding:5px 11px;border-radius:6px;border:none;font-family:inherit;font-size:12px;font-weight:600;cursor:pointer;background:var(--TL);color:var(--T);margin-left:3px;transition:.13s}
.admin-btn:hover{background:var(--T);color:#fff}
.admin-btn-del{background:#fee2e2;color:var(--RED)}
.admin-btn-del:hover{background:var(--RED);color:#fff}
/* EMPTY */
.empty-state{text-align:center;padding:60px 20px;color:var(--GR)}
.empty-icon{font-size:52px;margin-bottom:14px;opacity:.5}
.empty-state h3{font-size:18px;font-weight:800;margin-bottom:6px;color:var(--TX)}
.empty-state p{font-size:13px}
/* ADMIN */
.admin-layout{display:flex;min-height:100vh}
.admin-sidebar{width:244px;background:#111c22;flex-shrink:0;position:sticky;top:0;height:100vh;overflow-y:auto}
.asb-brand{padding:20px 16px;border-bottom:1px solid rgba(255,255,255,.08)}
.asb-brand img{height:32px}
.asb-role{font-size:10px;color:var(--G);font-weight:700;text-transform:uppercase;letter-spacing:1px;margin-bottom:2px;margin-top:10px}
.asb-name{font-size:13px;font-weight:800;color:#fff}
.asb-menu{padding:10px 8px}
.asb-lbl{font-size:10px;font-weight:700;color:rgba(255,255,255,.3);text-transform:uppercase;letter-spacing:.4px;padding:7px 12px;margin-top:8px}
.asb-item{display:flex;align-items:center;gap:9px;padding:10px 14px;border-radius:9px;cursor:pointer;font-size:13px;font-weight:500;color:rgba(255,255,255,.65);transition:.12s;margin-bottom:2px;text-decoration:none}
.asb-item:hover,.asb-item.active{background:rgba(255,255,255,.08);color:#fff;font-weight:700}
.asb-item.active{border-right:3px solid var(--G)}
.admin-main{flex:1;display:flex;flex-direction:column;min-height:100vh}
.admin-topbar{background:var(--W);border-bottom:1px solid var(--BD);padding:0 28px;height:62px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:100}
.admin-topbar h1{font-size:18px;font-weight:800}
.admin-content{flex:1;padding:28px;background:var(--BG)}
.admin-stat-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:14px;margin-bottom:22px}
.admin-stat{background:var(--W);border-radius:var(--R);padding:20px;border:1px solid var(--BD);border-top:3px solid var(--T)}
.admin-stat.gold{border-top-color:var(--G)}.admin-stat.green{border-top-color:var(--GRN)}.admin-stat.red{border-top-color:var(--RED)}
.admin-stat-val{font-size:28px;font-weight:900;margin-bottom:4px}
.admin-stat-lbl{font-size:12px;color:var(--GR)}
.admin-card{background:var(--W);border-radius:var(--R);border:1px solid var(--BD);padding:22px;margin-bottom:20px}
.admin-card-title{font-size:15px;font-weight:800;margin-bottom:16px}
.admin-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:4px}
.admin-fl{display:block;font-size:13px;font-weight:700;margin-bottom:5px}
.admin-fi{width:100%;padding:10px 13px;border:1.5px solid var(--BD);border-radius:9px;font-family:inherit;font-size:13px;margin-bottom:13px;transition:.2s;background:var(--W)}
.admin-fi:focus{outline:none;border-color:var(--T)}
.admin-fsel{width:100%;padding:10px 13px;border:1.5px solid var(--BD);border-radius:9px;font-family:inherit;font-size:13px;background:var(--W);margin-bottom:13px}
/* EDITOR */
.editor-toolbar{display:flex;gap:4px;flex-wrap:wrap;padding:8px 10px;background:var(--BG);border:1.5px solid var(--BD);border-bottom:none;border-radius:9px 9px 0 0}
.editor-btn{padding:5px 9px;border:1px solid var(--BD);border-radius:5px;background:var(--W);font-size:13px;cursor:pointer;font-family:inherit;transition:.13s}
.editor-btn:hover{background:var(--T);color:#fff;border-color:var(--T)}
.editor-area{min-height:140px;padding:12px 14px;border:1.5px solid var(--BD);border-radius:0 0 9px 9px;font-family:inherit;font-size:14px;outline:none;direction:rtl;line-height:1.8;background:var(--W)}
.editor-area:focus{border-color:var(--T)}
/* CHATBOT */
.chatbot-wrap{position:fixed;bottom:84px;left:20px;z-index:900;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.chatbot-window{width:312px;background:var(--W);border-radius:18px;border:1px solid var(--BD);overflow:hidden;display:none;flex-direction:column;box-shadow:0 12px 40px rgba(0,0,0,.14);max-height:70vh}
.chatbot-window.open{display:flex}
.chatbot-header{background:var(--T);padding:13px 15px;display:flex;align-items:center;justify-content:space-between}
.chatbot-header-info{display:flex;align-items:center;gap:10px}
.chatbot-avatar-sm{width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.15);border:2px solid rgba(255,255,255,.28);overflow:hidden;display:flex;align-items:flex-end;justify-content:center}
.chatbot-name{font-size:13px;font-weight:800;color:#fff}
.chatbot-status{font-size:11px;color:rgba(255,255,255,.75);display:flex;align-items:center;gap:4px;margin-top:1px}
.status-dot{width:6px;height:6px;border-radius:50%;background:var(--GRN)}
.chatbot-close{background:none;border:none;color:rgba(255,255,255,.7);font-size:17px;cursor:pointer;padding:2px}
.chatbot-msgs{max-height:260px;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;background:var(--BG)}
.chat-msg{max-width:85%;font-size:12px;line-height:1.65;padding:9px 12px;border-radius:13px;word-break:break-word}
.chat-msg-bot{background:var(--W);border:1px solid var(--BD);border-radius:4px 13px 13px 13px;color:var(--TX);align-self:flex-start}
.chat-msg-user{background:var(--T);color:#fff;border-radius:13px 4px 13px 13px;align-self:flex-end}
.chatbot-suggestions{padding:8px 12px;display:flex;flex-wrap:wrap;gap:5px;background:var(--W);border-top:1px solid var(--BD)}
.chat-sug{padding:5px 10px;border-radius:18px;border:1px solid var(--BD);background:var(--BG);font-family:inherit;font-size:11px;cursor:pointer;color:var(--TX);transition:.13s}
.chat-sug:hover{border-color:var(--T);color:var(--T);background:var(--TL)}
.chatbot-input-row{display:flex;gap:6px;padding:10px 12px;border-top:1px solid var(--BD);background:var(--W)}
.chatbot-input-row input{flex:1;padding:8px 10px;border:1.5px solid var(--BD);border-radius:8px;font-family:inherit;font-size:12px;direction:rtl}
.chatbot-input-row input:focus{outline:none;border-color:var(--T)}
.chatbot-send{background:var(--T);color:#fff;border:none;border-radius:8px;padding:8px 12px;cursor:pointer;display:flex;align-items:center}
.chatbot-bubble{background:var(--W);border:1px solid var(--BD);border-radius:13px 13px 13px 4px;padding:9px 13px;font-size:12px;max-width:185px;color:var(--TX);font-weight:500;line-height:1.5;box-shadow:var(--SH);transition:opacity .4s}
.chatbot-fab{width:58px;height:58px;border-radius:50%;background:var(--T);border:3px solid var(--W);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(47,127,134,.38);position:relative;transition:.18s;gap:2px}
.chatbot-fab:hover{background:var(--TD);transform:scale(1.05)}
.chatbot-fab-label{font-size:9px;font-weight:700;color:#fff;font-family:'Cairo',sans-serif;line-height:1}
.chatbot-notif{position:absolute;top:-3px;right:-3px;width:17px;height:17px;border-radius:50%;background:var(--G);border:2px solid #fff;font-size:9px;font-weight:900;color:#fff;display:flex;align-items:center;justify-content:center}
/* WHATSAPP */
.float-whatsapp{position:fixed;bottom:22px;left:20px;z-index:900;width:52px;height:52px;border-radius:50%;background:#25d366;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(37,211,102,.4);transition:.2s}
.float-whatsapp:hover{transform:scale(1.08);background:#128c7e}
/* PAGE CONTENT */
.page-content{max-width:800px;margin:0 auto;padding:40px 24px}
.page-content h2{font-size:20px;font-weight:900;margin-bottom:12px;color:var(--T)}
.page-content h3{font-size:16px;font-weight:800;margin:20px 0 8px}
.page-content p{font-size:14px;color:var(--GR);line-height:1.95;margin-bottom:12px}
/* FOOTER */
.site-footer{background:#111c22;color:rgba(255,255,255,.65)}
.footer-top{padding:44px 0 28px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:28px}
.footer-brand p{font-size:12px;line-height:1.9;color:rgba(255,255,255,.45);margin-top:10px;max-width:220px}
.footer-logo{height:36px;margin-bottom:8px}
.footer-col h4{font-size:13px;font-weight:800;color:#fff;margin-bottom:13px}
.footer-col ul li{margin-bottom:8px}
.footer-col a,.footer-col li{font-size:12px;color:rgba(255,255,255,.5);transition:.15s}
.footer-col a:hover{color:#fff}
.social-links{display:flex;gap:10px;margin-top:14px}
.social-link{color:rgba(255,255,255,.5);transition:.15s;display:flex;align-items:center}
.social-link:hover{color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:18px 0}
.footer-bottom .container{display:flex;justify-content:space-between;font-size:12px;flex-wrap:wrap;gap:6px}
.footer-bottom a{color:var(--G);font-weight:700}
/* QUIZ */
.quiz-screen{max-width:560px;margin:0 auto;padding:28px 16px}
.gq-hdr{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.gq-score{background:var(--TL);color:var(--TD);padding:7px 15px;border-radius:9px;font-size:14px;font-weight:800}
.gq-timer{width:50px;height:50px;border-radius:50%;border:3px solid var(--T);display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:900;color:var(--T);transition:.3s}
.gq-timer.warn{border-color:var(--RED);color:var(--RED)}
.gq-lives{font-size:20px;letter-spacing:2px}
.gq-pb{height:5px;background:var(--GL2);border-radius:3px;margin:6px 0 20px}
.gq-pbf{height:100%;background:var(--G);border-radius:3px;transition:.5s}
.gq-q{font-size:17px;font-weight:800;text-align:center;margin:20px 0 26px;line-height:1.55}
.gq-answers{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.gq-ans{background:var(--W);border:2px solid var(--BD);border-radius:13px;padding:17px 14px;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;text-align:center;transition:.18s;line-height:1.4;width:100%}
.gq-ans:hover:not(.disabled){border-color:var(--T);background:var(--TL);color:var(--T)}
.gq-ans.correct{border-color:var(--GRN);background:#f0fdf4;color:#166534}
.gq-ans.wrong{border-color:var(--RED);background:#fef2f2;color:#991b1b}
.gq-ans.disabled{cursor:not-allowed;opacity:.75}
.gq-feedback{text-align:center;font-size:15px;font-weight:800;min-height:26px;margin-top:14px;padding:8px;border-radius:9px}
.result-star{font-size:46px;opacity:.2;transition:.5s}
.result-star.on{opacity:1}
/* RESPONSIVE */
@media(max-width:768px){
  .nav-links{display:none;position:absolute;top:64px;right:0;left:0;background:var(--W);border-bottom:1px solid var(--BD);flex-direction:column;padding:12px;gap:4px;box-shadow:var(--SH)}
  .nav-links.open{display:flex}
  .nav-hamburger{display:flex}
  .hero-inner{grid-template-columns:1fr}.hero-card{display:none}
  .hero{padding:36px 16px 0}.hero h1{font-size:22px}
  .strip{gap:20px;padding:14px 16px}
  .section{padding:36px 0}
  .courses-grid,.exams-grid{grid-template-columns:1fr}
  .why-grid,.tools-grid{grid-template-columns:1fr 1fr}
  .testi-grid{grid-template-columns:1fr}
  .detail-layout{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .form-row{grid-template-columns:1fr}
  .dash-layout{flex-direction:column}.dash-sidebar{width:100%}
  .admin-layout{flex-direction:column}.admin-sidebar{width:100%;height:auto;position:relative}
  .admin-form-grid{grid-template-columns:1fr}
  .admin-stat-row{grid-template-columns:1fr 1fr}
  .kpi-row{grid-template-columns:1fr 1fr}
  .gq-answers{grid-template-columns:1fr}
  .float-whatsapp{left:16px;bottom:16px}
  .chatbot-wrap{bottom:80px;left:16px}
}
@media(max-width:480px){
  .why-grid,.tools-grid,.footer-grid,.admin-stat-row,.kpi-row{grid-template-columns:1fr}
  .strip{gap:14px}
}
