/* =====================================================
   أكاديمية الفاروق — BRAND NEW THEME
   Clean White Professional | Kids Coding Academy
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:    #00B5B5;
  --teal-d:  #008F8F;
  --teal-xl: #E6FAFA;
  --orange:  #FF6B2B;
  --orange-d:#E55520;
  --orange-xl:#FFF0EA;
  --yellow:  #FFC107;
  --green:   #22C55E;
  --dark:    #0F172A;
  --mid:     #334155;
  --gray:    #64748B;
  --light:   #F8FAFC;
  --border:  #E2E8F0;
  --white:   #FFFFFF;
  --radius:  16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.10);
  --shadow-xl: 0 24px 48px rgba(0,0,0,.12);
}

html, body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  background: var(--white);
  color: var(--dark);
  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: 1160px; margin: 0 auto; padding: 0 24px; }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 16px; height: 72px; gap: 8px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-logo img { height: 60px; border-radius: 10px; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text strong { font-size: 14px; font-weight: 900; color: var(--teal); white-space: nowrap; }
.nav-menu { display: flex; gap: 0; flex: 1; justify-content: center; }
.nav-menu a {
  padding: 7px 8px; border-radius: 8px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--gray); transition: .15s; text-decoration: none;
}
.nav-menu a:hover, .nav-menu a.on {
  color: var(--teal); background: var(--teal-xl); font-weight: 800;
}
.nav-btns { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.btn-login {
  padding: 8px 18px; border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--white); font-size: 13px;
  font-weight: 700; color: var(--dark); cursor: pointer; transition: .15s;
}
.btn-login:hover { border-color: var(--teal); color: var(--teal); }
.btn-register {
  padding: 8px 14px; border-radius: 10px;
  background: var(--orange); border: none;
  font-size: 12.5px; font-weight: 900;
  color: var(--white); cursor: pointer; transition: .2s; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255,107,43,.3);
}
.btn-register:hover { background: var(--orange-d); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,107,43,.38); }
.btn-dash {
  padding: 8px 16px; border-radius: 10px;
  background: var(--teal-xl); color: var(--teal-d);
  font-size: 13px; font-weight: 800;
  border: 1.5px solid #b2e4e4;
}
.btn-out { padding: 7px 13px; border-radius: 9px; border: 1px solid var(--border); background: var(--white); font-size: 12px; color: var(--gray); cursor: pointer; }
.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(--dark); border-radius: 2px; display: block; transition: .3s; }

/* ─── FLASH ─── */
.flash { position: fixed; top: 78px; right: 20px; z-index: 999; padding: 13px 22px; border-radius: 12px; font-size: 14px; font-weight: 700; animation: slideIn .3s ease; box-shadow: var(--shadow-lg); }
.flash-ok { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.flash-err { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* ─── HERO ─── */
.hero {
  background: var(--white);
  padding: 72px 24px 0;
}
.hero-wrap {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; padding-bottom: 72px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-xl); border: 1.5px solid #b2e4e4;
  padding: 6px 16px; border-radius: 30px;
  font-size: 12px; font-weight: 800; color: var(--teal-d);
  margin-bottom: 22px;
}
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.8)} }
.hero h1 { font-size: 44px; font-weight: 900; line-height: 1.22; margin-bottom: 20px; color: var(--dark); }
.hero h1 .t { color: var(--teal); }
.hero h1 .o { color: var(--orange); }
.hero-desc { font-size: 15px; color: var(--gray); line-height: 2; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.btn-hero {
  padding: 15px 36px; border-radius: 14px;
  background: var(--orange); color: var(--white);
  border: none; font-size: 15px; font-weight: 900;
  cursor: pointer; transition: .2s; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 20px rgba(255,107,43,.35);
}
.btn-hero:hover { background: var(--orange-d); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,107,43,.42); }
.btn-hero-out {
  padding: 14px 28px; border-radius: 14px;
  background: var(--white); color: var(--dark);
  border: 2px solid var(--border); font-size: 14px;
  font-weight: 700; cursor: pointer; transition: .2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-out:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-xl); }
.hero-trust { display: flex; align-items: center; gap: 16px; }
.trust-faces { display: flex; flex-direction: row; gap: 0; }
.trust-face {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2.5px solid var(--white);
  color: var(--white); font-size: 13px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-left: -8px;
}
.trust-faces > .trust-face:last-child { margin-left: 0; }
.trust-info { font-size: 13px; color: var(--gray); line-height: 1.55; }
.trust-faces { display: flex; flex-direction: row; gap: 0; }
.trust-face {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2.5px solid var(--white);
  color: var(--white); font-size: 13px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-left: -8px;
}
.trust-faces > .trust-face:last-child { margin-left: 0; }
.trust-info strong { color: var(--dark); }
.trust-stars { color: var(--yellow); font-size: 14px; display: block; }

/* Hero Visual */
.hero-right { position: relative; }
.hero-screen {
  background: linear-gradient(145deg, #f0fffe, #e6fafa, #fff8f0);
  border-radius: 24px; padding: 36px;
  box-shadow: var(--shadow-xl);
  border: 1.5px solid var(--border);
  position: relative; overflow: hidden;
}
.hero-screen::before {
  content: ''; position: absolute;
  top: -60px; left: -60px; width: 220px; height: 220px;
  background: rgba(0,181,181,.08); border-radius: 50%;
}
.hero-screen-inner {
  background: var(--white); border-radius: 16px;
  padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border);
  position: relative; z-index: 1;
}
.hs-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.hs-av { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg,var(--teal),var(--teal-d)); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.hs-av-txt strong { font-size: 13px; font-weight: 900; display: block; }
.hs-av-txt span { font-size: 11px; color: var(--gray); }
.hs-prog-lbl { font-size: 11px; color: var(--gray); margin-bottom: 6px; }
.hs-prog-bar { height: 8px; background: var(--border); border-radius: 4px; margin-bottom: 5px; }
.hs-prog-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg,var(--teal),#06b6d4); }
.hs-pct { font-size: 11px; color: var(--gray); margin-bottom: 16px; }
.hs-step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; margin-bottom: 6px; font-size: 12.5px; background: var(--light); }
.hs-step.done { background: #F0FDF4; color: #15803D; }
.hs-step.now { background: var(--teal-xl); color: var(--teal-d); border: 1px solid #b2e4e4; }
.hs-ic { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.hs-step.done .hs-ic { background: var(--green); color: var(--white); }
.hs-step.now .hs-ic { background: var(--teal); color: var(--white); }
.hs-step:not(.done):not(.now) .hs-ic { background: var(--border); color: var(--gray); }
.hs-now-tag { font-size: 10px; background: var(--teal); color: var(--white); padding: 2px 8px; border-radius: 5px; font-weight: 800; margin-right: auto; }

/* Float cards */
.f-pill {
  position: absolute; background: var(--white);
  border-radius: 50px; padding: 10px 16px;
  box-shadow: var(--shadow-lg); display: flex;
  align-items: center; gap: 9px; white-space: nowrap;
  border: 1px solid var(--border);
  animation: floaty 3.5s ease-in-out infinite alternate;
}
.f-pill:nth-child(2) { animation-delay: 1s; }
.f-pill:nth-child(3) { animation-delay: 2s; }
.f-pill1 { top: -18px; left: -28px; }
.f-pill2 { bottom: 28px; left: -36px; }
.f-pill3 { top: 40%; right: -32px; }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.f-pill-ic { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.f-pill-ic.t { background: var(--teal-xl); }
.f-pill-ic.o { background: var(--orange-xl); }
.f-pill-ic.g { background: #D1FAE5; }
.f-pill strong { font-size: 12px; font-weight: 800; display: block; }
.f-pill span { font-size: 10px; color: var(--gray); }

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--light);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-bar-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: center; flex-wrap: wrap;
}
.stat-box {
  text-align: center; padding: 10px 48px;
  border-left: 1px solid var(--border);
}
.stat-box:last-child { border-left: none; }
.stat-n { font-size: 30px; font-weight: 900; color: var(--teal); line-height: 1; }
.stat-l { font-size: 12px; color: var(--gray); margin-top: 5px; font-weight: 600; }

/* ─── SECTIONS ─── */
.sec { padding: 80px 0; }
.sec.bg { background: var(--light); }
.sec-hd { text-align: center; margin-bottom: 52px; }
.sec-chip {
  display: inline-block; padding: 5px 18px;
  border-radius: 30px; font-size: 12px; font-weight: 800;
  margin-bottom: 14px; letter-spacing: .3px;
}
.sec-chip.teal { background: var(--teal-xl); color: var(--teal-d); }
.sec-chip.orange { background: var(--orange-xl); color: var(--orange-d); }
.sec-hd h2 { font-size: 33px; font-weight: 900; margin-bottom: 12px; color: var(--dark); line-height: 1.3; }
.sec-hd p { font-size: 15px; color: var(--gray); max-width: 520px; margin: 0 auto; line-height: 1.9; }

/* ─── PROGRAM CARDS ─── */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.prog-item {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--border); padding: 30px 24px;
  transition: .25s; cursor: pointer; position: relative; overflow: hidden;
}
.prog-item::after { content: ''; position: absolute; bottom: -50px; left: -50px; width: 140px; height: 140px; border-radius: 50%; opacity: .06; transition: .3s; }
.prog-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.prog-item:hover::after { opacity: .14; width: 200px; height: 200px; }
.pi1::after { background: var(--teal); } .pi2::after { background: var(--orange); } .pi3::after { background: #7C3AED; } .pi4::after { background: var(--green); }
.pi1:hover { box-shadow: 0 12px 32px rgba(0,181,181,.15); }
.pi2:hover { box-shadow: 0 12px 32px rgba(255,107,43,.15); }
.pi3:hover { box-shadow: 0 12px 32px rgba(124,58,237,.12); }
.pi4:hover { box-shadow: 0 12px 32px rgba(34,197,94,.12); }
.pi-stripe { height: 5px; border-radius: 4px 4px 0 0; position: absolute; top: 0; right: 0; left: 0; }
.pi1 .pi-stripe { background: linear-gradient(90deg,var(--teal),#06b6d4); }
.pi2 .pi-stripe { background: linear-gradient(90deg,var(--orange),var(--yellow)); }
.pi3 .pi-stripe { background: linear-gradient(90deg,#7C3AED,#a78bfa); }
.pi4 .pi-stripe { background: linear-gradient(90deg,var(--green),#34d399); }
.pi-ic { width: 62px; height: 62px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 18px; }
.pi1 .pi-ic { background: var(--teal-xl); } .pi2 .pi-ic { background: var(--orange-xl); } .pi3 .pi-ic { background: #EDE9FE; } .pi4 .pi-ic { background: #D1FAE5; }
.pi-title { font-size: 17px; font-weight: 900; margin-bottom: 10px; color: var(--dark); }
.pi-desc { font-size: 13px; color: var(--gray); line-height: 1.9; margin-bottom: 16px; }
.pi-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pi-tag { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 8px; }
.pi1 .pi-tag { background: var(--teal-xl); color: var(--teal-d); }
.pi2 .pi-tag { background: var(--orange-xl); color: var(--orange-d); }
.pi3 .pi-tag { background: #EDE9FE; color: #5B21B6; }
.pi4 .pi-tag { background: #D1FAE5; color: #065F46; }

/* ─── COURSE CARDS ─── */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.course-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--border); overflow: hidden;
  display: flex; flex-direction: column; transition: .25s;
  box-shadow: var(--shadow-sm);
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.cc-thumb {
  height: 168px; background: var(--teal-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; position: relative; overflow: hidden;
}
.cc-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cc-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--teal); color: var(--white);
  padding: 4px 12px; border-radius: 8px; font-size: 11px; font-weight: 800;
}
.cc-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.cc-title { font-size: 15px; font-weight: 900; margin-bottom: 7px; color: var(--dark); line-height: 1.4; }
.cc-desc { font-size: 12.5px; color: var(--gray); margin-bottom: 10px; line-height: 1.8; }
.cc-stars { color: var(--yellow); font-size: 13px; margin-bottom: 12px; }
.cc-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cc-price { font-size: 20px; font-weight: 900; color: var(--teal); }
.cc-free { font-size: 12px; font-weight: 800; color: #065F46; background: #D1FAE5; padding: 4px 12px; border-radius: 8px; border: 1px solid #6EE7B7; }
.btn-view {
  background: var(--teal); color: var(--white);
  border: none; border-radius: 10px; padding: 10px 18px;
  font-size: 13px; font-weight: 800; cursor: pointer; transition: .15s; display: inline-block;
}
.btn-view:hover { background: var(--teal-d); transform: translateY(-1px); }

/* ─── WHY CARDS ─── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.why-item {
  background: var(--white); border-radius: var(--radius);
  padding: 30px 22px; border: 1.5px solid var(--border);
  text-align: center; transition: .2s;
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.wi-ic { width: 66px; height: 66px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 18px; }
.wi-ic.t { background: var(--teal-xl); } .wi-ic.o { background: var(--orange-xl); } .wi-ic.g { background: #D1FAE5; } .wi-ic.p { background: #EDE9FE; }
.wi-title { font-size: 15px; font-weight: 900; margin-bottom: 9px; color: var(--dark); }
.wi-desc { font-size: 13px; color: var(--gray); line-height: 1.9; }

/* ─── STEPS ─── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 20px; }
.step-item {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 20px; border: 1.5px solid var(--border);
  text-align: center; transition: .2s;
}
.step-item:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(0,181,181,.3);
}
.step-title { font-size: 14px; font-weight: 900; margin-bottom: 8px; color: var(--dark); }
.step-desc { font-size: 12.5px; color: var(--gray); line-height: 1.85; }

/* ─── TESTIMONIALS ─── */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.testi-item {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 24px; border: 1.5px solid var(--border);
  transition: .2s; position: relative; overflow: hidden;
}
.testi-item:hover { box-shadow: var(--shadow-lg); border-color: var(--teal); }
.ti-quote { position: absolute; top: 12px; left: 18px; font-size: 88px; color: var(--teal-xl); font-family: Georgia, serif; line-height: 1; pointer-events: none; }
.ti-av { width: 54px; height: 54px; border-radius: 50%; background: var(--teal-xl); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 13px; border: 3px solid var(--border); }
.ti-name { font-size: 15px; font-weight: 900; color: var(--dark); margin-bottom: 3px; }
.ti-role { font-size: 11.5px; color: var(--gray); margin-bottom: 9px; }
.ti-stars { color: var(--yellow); font-size: 16px; margin-bottom: 11px; }
.ti-text { font-size: 13px; color: var(--gray); line-height: 1.9; position: relative; z-index: 1; }

/* ─── EXAM CARDS ─── */
.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.exam-item { background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--border); overflow: hidden; transition: .25s; box-shadow: var(--shadow-sm); }
.exam-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.exam-head { height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.exam-head::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 14px); }
.exam-sub { color: rgba(255,255,255,.7); font-size: 10px; font-weight: 700; margin-bottom: 5px; }
.exam-name { color: var(--white); font-size: 16px; font-weight: 900; text-align: center; padding: 0 16px; line-height: 1.35; }
.exam-body { padding: 16px 18px; }
.exam-title { font-size: 13.5px; font-weight: 800; margin-bottom: 10px; color: var(--dark); }
.exam-foot { display: flex; justify-content: space-between; align-items: center; }
.exam-cnt { font-size: 12px; color: var(--teal); font-weight: 700; }
.btn-exam {
  background: var(--teal); color: var(--white);
  border: none; border-radius: 9px; padding: 8px 16px;
  font-size: 12px; font-weight: 800; cursor: pointer; transition: .15s;
}
.btn-exam:hover { background: var(--teal-d); }

/* ─── TOOLS ─── */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 20px; }
.tool-item {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 22px; border: 1.5px solid var(--border);
  transition: .2s; box-shadow: var(--shadow-sm); display: block; color: inherit;
}
.tool-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.tool-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--teal-xl); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
.tool-title { font-size: 14px; font-weight: 900; margin-bottom: 8px; color: var(--dark); }
.tool-desc { font-size: 12.5px; color: var(--gray); line-height: 1.85; }

/* ─── CTA ─── */
.cta-sec {
  background: linear-gradient(135deg, #00B5B5, #008F8F);
  padding: 88px 24px; text-align: center; position: relative; overflow: hidden;
}
.cta-sec::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.07); }
.cta-sec::after  { content: ''; position: absolute; bottom: -80px; left: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.06); }
.cta-sec h2 { font-size: 32px; font-weight: 900; color: var(--white); margin-bottom: 14px; position: relative; }
.cta-sec p { font-size: 15px; color: rgba(255,255,255,.85); margin-bottom: 32px; position: relative; }
.btn-cta-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--teal);
  border: none; padding: 16px 44px; border-radius: 14px;
  font-size: 15px; font-weight: 900; cursor: pointer;
  box-shadow: var(--shadow-lg); transition: .2s; position: relative;
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.btn-cta-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); color: var(--white);
  border: 2px solid rgba(255,255,255,.35); padding: 15px 30px; border-radius: 14px;
  font-size: 14px; font-weight: 800; cursor: pointer; transition: .2s; position: relative;
}
.btn-cta-wa:hover { background: rgba(255,255,255,.24); }

/* ─── SHARED BUTTONS ─── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 11px 26px; border-radius: 12px; font-size: 14px; font-weight: 800; cursor: pointer; border: none; transition: .2s; }
.btn-teal { background: var(--teal); color: var(--white); box-shadow: 0 4px 14px rgba(0,181,181,.25); }
.btn-teal:hover { background: var(--teal-d); transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: var(--white); box-shadow: 0 4px 14px rgba(255,107,43,.28); }
.btn-orange:hover { background: var(--orange-d); transform: translateY(-1px); }
.w-full { width: 100%; justify-content: center; }

/* ─── AUTH ─── */
.auth-wrap { min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; padding: 36px 24px; background: var(--light); }
.auth-box { background: var(--white); border-radius: 22px; border: 1.5px solid var(--border); padding: 46px; width: 100%; max-width: 448px; box-shadow: var(--shadow-xl); }
.auth-logo { text-align: center; margin-bottom: 8px; }
.auth-logo img { height: 52px; border-radius: 10px; }
.auth-title { font-size: 23px; font-weight: 900; text-align: center; margin-bottom: 6px; color: var(--dark); }
.auth-sub { font-size: 13px; color: var(--gray); text-align: center; margin-bottom: 28px; }
.fld { margin-bottom: 18px; }
.fld label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 7px; color: var(--dark); }
.fld input, .fld select, .fld textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 12px; font-family: inherit; font-size: 14px; transition: .2s; background: var(--white); color: var(--dark); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,181,181,.1); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-alt { text-align: center; font-size: 13px; color: var(--gray); margin-top: 18px; }
.auth-alt a { color: var(--teal); font-weight: 800; }
.alert { padding: 13px 17px; border-radius: 11px; font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.alert-ok { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.alert-err { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

/* ─── PAGE HERO ─── */
.page-top { background: linear-gradient(135deg, var(--teal), var(--teal-d)); padding: 52px 24px; color: var(--white); position: relative; overflow: hidden; }
.page-top::before { content: ''; position: absolute; top: -60px; left: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); }
.page-top h1 { font-size: 29px; font-weight: 900; margin-bottom: 9px; position: relative; }
.page-top p { font-size: 14px; color: rgba(255,255,255,.85); position: relative; }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,.65); margin-bottom: 12px; position: relative; }
.breadcrumb a { color: rgba(255,255,255,.65); }

/* ─── FILTER ─── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn { padding: 9px 22px; border-radius: 30px; border: 1.5px solid var(--border); background: var(--white); font-family: inherit; font-size: 13px; cursor: pointer; color: var(--gray); font-weight: 600; transition: .15s; }
.filter-btn:hover, .filter-btn.on { background: var(--teal); color: var(--white); border-color: var(--teal); font-weight: 800; }

/* ─── PROGRESS ─── */
.prog-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, var(--teal), #06b6d4); border-radius: 4px; transition: width .6s ease; }

/* ─── DETAIL ─── */
.detail-grid { display: grid; grid-template-columns: 1fr 310px; gap: 30px; padding: 36px 0; }
.det-block { background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--border); padding: 26px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.det-block h3 { font-size: 16px; font-weight: 900; margin-bottom: 16px; color: var(--dark); }
.side-box { background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--border); padding: 26px; box-shadow: var(--shadow-lg); position: sticky; top: 88px; }
.side-price { font-size: 30px; font-weight: 900; color: var(--teal); margin-bottom: 6px; }
.lesson-row { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px; transition: .13s; cursor: pointer; }
.lesson-row:hover { background: var(--light); }
.lesson-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-xl); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.lesson-title { font-size: 13px; font-weight: 800; color: var(--dark); }
.lesson-meta { font-size: 11px; color: var(--gray); margin-top: 2px; }
.free-badge { font-size: 10px; background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; padding: 2px 8px; border-radius: 6px; font-weight: 800; margin-right: auto; }

/* ─── DASHBOARD ─── */
.dash-wrap { display: flex; min-height: calc(100vh - 72px); }
.dash-side { width: 255px; background: var(--white); border-left: 1.5px solid var(--border); flex-shrink: 0; position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; }
.dash-user { padding: 24px 18px; border-bottom: 1px solid var(--border); }
.dash-av { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg,var(--teal),var(--teal-d)); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 900; margin-bottom: 12px; }
.dash-uname { font-size: 14px; font-weight: 900; color: var(--dark); }
.dash-urole { display: inline-block; margin-top: 5px; font-size: 11px; font-weight: 700; background: var(--teal-xl); color: var(--teal-d); padding: 3px 10px; border-radius: 6px; }
.dash-nav { padding: 14px 10px; }
.dash-nav-lbl { font-size: 10px; font-weight: 800; color: var(--gray); text-transform: uppercase; letter-spacing: .8px; padding: 10px 14px 6px; }
.dash-nav-a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--gray); transition: .13s; margin-bottom: 3px; text-decoration: none; }
.dash-nav-a:hover, .dash-nav-a.on { background: var(--teal-xl); color: var(--teal-d); font-weight: 800; }
.dash-body { flex: 1; padding: 34px; overflow-y: auto; background: var(--light); }
.dash-hd { margin-bottom: 28px; }
.dash-hd h2 { font-size: 24px; font-weight: 900; color: var(--dark); }
.dash-hd p { font-size: 13.5px; color: var(--gray); margin-top: 5px; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--white); border-radius: var(--radius); padding: 22px; border: 1.5px solid var(--border); border-top: 4px solid var(--teal); box-shadow: var(--shadow-sm); }
.kpi.g { border-top-color: var(--yellow); } .kpi.gr { border-top-color: var(--green); } .kpi.r { border-top-color: #EF4444; }
.kpi-n { font-size: 30px; font-weight: 900; color: var(--dark); line-height: 1; }
.kpi-l { font-size: 11.5px; color: var(--gray); margin-top: 6px; font-weight: 600; }
.card { background: var(--white); border-radius: var(--radius); padding: 26px; border: 1.5px solid var(--border); margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.card-title { font-size: 16px; font-weight: 900; margin-bottom: 18px; color: var(--dark); }
.continue-box { background: linear-gradient(135deg,var(--teal),var(--teal-d)); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; color: var(--white); box-shadow: 0 8px 28px rgba(0,181,181,.3); }
.cx-lbl { font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 5px; }
.cx-title { font-size: 18px; font-weight: 900; margin-bottom: 4px; }
.cx-sub { font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.cx-bg { background: rgba(255,255,255,.2); height: 7px; border-radius: 4px; margin-bottom: 6px; }
.cx-fill { background: var(--white); height: 100%; border-radius: 4px; }
.cx-pct { font-size: 11px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.btn-cx { background: var(--white); color: var(--teal); border: none; padding: 10px 22px; border-radius: 10px; font-family: inherit; font-size: 13px; font-weight: 900; cursor: pointer; transition: .15s; }
.btn-cx:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.15); }

/* ─── TABLES ─── */
.tbl-wrap { background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--border); overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: right; padding: 13px 16px; background: var(--light); color: var(--gray); font-weight: 800; font-size: 11.5px; border-bottom: 1.5px solid var(--border); }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--dark); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--light); }
.badge { display: inline-block; padding: 4px 11px; border-radius: 8px; font-size: 11px; font-weight: 800; }
.b-ok { background: #D1FAE5; color: #065F46; } .b-warn { background: #FEF3C7; color: #92400E; } .b-err { background: #FEE2E2; color: #991B1B; } .b-info { background: var(--teal-xl); color: var(--teal-d); }
.tbl-btn { padding: 6px 13px; border-radius: 8px; border: none; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; background: var(--teal-xl); color: var(--teal-d); margin-left: 7px; display: inline-block; transition: .13s; }
.tbl-btn:hover { background: var(--teal); color: var(--white); }
.tbl-btn-del { background: #FEE2E2; color: #EF4444; }
.tbl-btn-del:hover { background: #EF4444; color: var(--white); }

/* ─── EMPTY ─── */
.empty { text-align: center; padding: 64px 20px; color: var(--gray); }
.empty-ic { font-size: 62px; margin-bottom: 18px; opacity: .3; }
.empty h3 { font-size: 18px; font-weight: 900; margin-bottom: 9px; color: var(--dark); }
.empty p { font-size: 13.5px; }

/* ─── ADMIN ─── */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-side { width: 260px; background: #0F172A; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.asb-top { padding: 24px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.asb-top img { height: 42px; border-radius: 10px; }
.asb-name-big { font-size: 14px; font-weight: 900; color: var(--white); margin-top: 12px; }
.asb-chip { display: inline-block; margin-top: 6px; font-size: 10px; font-weight: 800; background: rgba(0,181,181,.18); color: var(--teal); padding: 3px 11px; border-radius: 6px; }
.asb-subname { font-size: 12px; color: rgba(255,255,255,.38); margin-top: 5px; }
.asb-nav { padding: 14px 10px; }
.asb-lbl { font-size: 9.5px; font-weight: 800; color: rgba(255,255,255,.22); text-transform: uppercase; letter-spacing: .8px; padding: 10px 14px 6px; }
.asb-a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 11px; cursor: pointer; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.52); transition: .14s; margin-bottom: 3px; text-decoration: none; }
.asb-a:hover { background: rgba(255,255,255,.07); color: var(--white); }
.asb-a.on { background: rgba(0,181,181,.14); color: var(--teal); font-weight: 800; border-right: 3px solid var(--teal); }
.asb-foot { padding: 14px 10px; border-top: 1px solid rgba(255,255,255,.06); }
.admin-body { flex: 1; display: flex; flex-direction: column; min-height: 100vh; background: var(--light); }
.admin-bar { background: var(--white); border-bottom: 1.5px solid var(--border); padding: 0 28px; height: 66px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.admin-bar h1 { font-size: 19px; font-weight: 900; color: var(--dark); }
.admin-main { flex: 1; padding: 30px; }
.admin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 16px; margin-bottom: 24px; }
.admin-kpi { background: var(--white); border-radius: var(--radius); padding: 22px; border: 1.5px solid var(--border); border-top: 4px solid var(--teal); box-shadow: var(--shadow-sm); }
.admin-kpi.g { border-top-color: var(--yellow); } .admin-kpi.gr { border-top-color: var(--green); } .admin-kpi.r { border-top-color: #EF4444; }
.admin-kpi-n { font-size: 30px; font-weight: 900; color: var(--dark); margin-bottom: 5px; line-height: 1; }
.admin-kpi-l { font-size: 12px; color: var(--gray); font-weight: 600; }
.admin-card { background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--border); padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.admin-card-title { font-size: 16px; font-weight: 900; margin-bottom: 18px; color: var(--dark); }
.a-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.a-lbl { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; color: var(--dark); }
.a-inp { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 11px; font-family: inherit; font-size: 13px; margin-bottom: 14px; transition: .2s; background: var(--white); color: var(--dark); }
.a-inp:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,181,181,.1); }
.a-sel { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 11px; font-family: inherit; font-size: 13px; background: var(--white); margin-bottom: 14px; color: var(--dark); }
.editor-bar { display: flex; gap: 5px; flex-wrap: wrap; padding: 9px 12px; background: var(--light); border: 1.5px solid var(--border); border-bottom: none; border-radius: 11px 11px 0 0; }
.editor-btn { padding: 5px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--white); font-size: 13px; cursor: pointer; font-family: inherit; transition: .13s; }
.editor-btn:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.editor { min-height: 150px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 0 0 11px 11px; font-family: inherit; font-size: 14px; outline: none; direction: rtl; line-height: 1.9; background: var(--white); color: var(--dark); }
.editor:focus { border-color: var(--teal); }

/* ─── CHATBOT ─── */
.chat-wrap { position: fixed; bottom: 92px; left: 20px; z-index: 900; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.chat-box { width: 330px; background: var(--white); border-radius: 22px; border: 1.5px solid var(--border); overflow: hidden; display: none; flex-direction: column; box-shadow: var(--shadow-xl); max-height: 74vh; }
.chat-box.open { display: flex; }
.chat-hd { background: linear-gradient(135deg,var(--teal),var(--teal-d)); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.chat-hd-info { display: flex; align-items: center; gap: 11px; }
.chat-av { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.3); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.chat-name { font-size: 14px; font-weight: 900; color: var(--white); }
.chat-online { font-size: 11px; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.online-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 2s infinite; }
.chat-close { background: none; border: none; color: rgba(255,255,255,.7); font-size: 18px; cursor: pointer; }
.chat-msgs { max-height: 280px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--light); }
.msg { max-width: 87%; font-size: 12.5px; line-height: 1.7; padding: 10px 14px; border-radius: 14px; word-break: break-word; }
.msg-bot { background: var(--white); border: 1.5px solid var(--border); border-radius: 4px 14px 14px 14px; color: var(--dark); align-self: flex-start; }
.msg-user { background: linear-gradient(135deg,var(--teal),var(--teal-d)); color: var(--white); border-radius: 14px 4px 14px 14px; align-self: flex-end; }
.chat-sugs { padding: 10px 13px; display: flex; flex-wrap: wrap; gap: 7px; background: var(--white); border-top: 1px solid var(--border); }
.chat-sug { padding: 6px 12px; border-radius: 20px; border: 1.5px solid var(--border); background: var(--light); font-family: inherit; font-size: 11px; cursor: pointer; color: var(--gray); transition: .13s; }
.chat-sug:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-xl); }
.chat-input-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--white); }
.chat-input-row input { flex: 1; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 12px; direction: rtl; background: var(--light); color: var(--dark); }
.chat-input-row input:focus { outline: none; border-color: var(--teal); }
.chat-send { background: var(--teal); color: var(--white); border: none; border-radius: 10px; padding: 9px 13px; cursor: pointer; }
.chat-wa { padding: 9px 13px; text-align: center; border-top: 1px solid var(--border); background: var(--white); }
.chat-wa a { font-size: 11px; color: #25D366; font-weight: 800; }
.chat-bubble { background: var(--white); border: 1.5px solid var(--border); border-radius: 14px 14px 14px 4px; padding: 11px 15px; font-size: 12px; max-width: 205px; color: var(--dark); font-weight: 600; line-height: 1.6; box-shadow: var(--shadow-lg); }
.chat-btn { width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg,var(--teal),var(--teal-d)); border: 3px solid var(--white); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(0,181,181,.42); position: relative; transition: .2s; gap: 2px; }
.chat-btn:hover { transform: scale(1.1); }
.chat-btn-lbl { font-size: 9px; font-weight: 800; color: var(--white); font-family: 'Cairo', sans-serif; }
.chat-notif { position: absolute; top: -3px; right: -3px; width: 19px; height: 19px; border-radius: 50%; background: var(--orange); border: 2px solid var(--white); font-size: 10px; font-weight: 900; color: var(--white); display: flex; align-items: center; justify-content: center; }

/* ─── WHATSAPP ─── */
.wa-float { position: fixed; bottom: 22px; left: 20px; z-index: 900; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(37,211,102,.5); transition: .2s; }
.wa-float:hover { transform: scale(1.1); background: #128C7E; }

/* ─── FOOTER ─── */
.footer { background: #0F172A; color: rgba(255,255,255,.55); }
.footer-top { padding: 60px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-about p { font-size: 13px; line-height: 2; color: rgba(255,255,255,.38); margin-top: 14px; max-width: 250px; }
.footer-logo { height: 46px; border-radius: 8px; }
.footer-col h4 { font-size: 13px; font-weight: 900; color: var(--white); margin-bottom: 18px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.42); display: block; margin-bottom: 11px; transition: .15s; }
.footer-col a:hover { color: var(--white); }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.soc-a { color: rgba(255,255,255,.4); transition: .15s; }
.soc-a:hover { color: var(--white); }
.footer-bot { border-top: 1px solid rgba(255,255,255,.07); padding: 24px 0; }
.footer-bot .container { display: flex; justify-content: space-between; font-size: 12.5px; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,.3); }
.footer-bot a { color: var(--teal); font-weight: 700; }

/* ─── PAGE CONTENT ─── */
.page-body { max-width: 820px; margin: 0 auto; padding: 52px 24px; }
.page-body h2 { font-size: 21px; font-weight: 900; margin-bottom: 14px; color: var(--teal); }
.page-body h3 { font-size: 16px; font-weight: 800; margin: 26px 0 11px; color: var(--dark); }
.page-body p { font-size: 14px; color: var(--gray); line-height: 2.05; margin-bottom: 14px; }

/* ─── QUIZ ─── */
.quiz-wrap { max-width: 580px; margin: 0 auto; padding: 30px 16px; }
.qz-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.qz-score { background: var(--teal-xl); color: var(--teal-d); padding: 8px 16px; border-radius: 12px; font-size: 14px; font-weight: 900; }
.qz-timer { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--teal); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; color: var(--teal); }
.qz-timer.warn { border-color: #EF4444; color: #EF4444; }
.qz-lives { font-size: 22px; letter-spacing: 3px; }
.qz-pb { height: 6px; background: var(--border); border-radius: 3px; margin: 6px 0 24px; }
.qz-pf { height: 100%; background: linear-gradient(90deg,var(--teal),#06b6d4); border-radius: 3px; transition: .5s; }
.qz-q { font-size: 19px; font-weight: 900; text-align: center; margin: 22px 0 30px; line-height: 1.6; color: var(--dark); }
.qz-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.qz-ans { background: var(--white); border: 2px solid var(--border); border-radius: 14px; padding: 18px 14px; font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer; text-align: center; transition: .18s; line-height: 1.45; width: 100%; color: var(--dark); }
.qz-ans:hover:not(.disabled) { border-color: var(--teal); background: var(--teal-xl); color: var(--teal-d); }
.qz-ans.correct { border-color: var(--green); background: #D1FAE5; color: #065F46; }
.qz-ans.wrong { border-color: #EF4444; background: #FEE2E2; color: #991B1B; }
.qz-ans.disabled { cursor: not-allowed; opacity: .7; }
.qz-fb { text-align: center; font-size: 15px; font-weight: 900; min-height: 28px; margin-top: 16px; padding: 9px; border-radius: 12px; }
.res-star { font-size: 48px; opacity: .2; transition: .5s; }
.res-star.on { opacity: 1; }
.result-star { font-size: 48px; opacity: .2; transition: .5s; }
.result-star.on { opacity: 1; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero { padding: 40px 20px 40px; }
  .hero h1 { font-size: 30px; }
}
@media (max-width: 768px) {
  /* ── هيدر ── */
  .nav-menu { display: none; position: absolute; top: 60px; right: 0; left: 0; background: var(--white); border-bottom: 1.5px solid var(--border); flex-direction: column; padding: 14px; gap: 4px; box-shadow: var(--shadow-lg); z-index:600; }
  .nav-menu.open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-logo img { height: 44px; }
  .nav-wrap { height: 60px; }
  .nav-btns { gap: 6px; }
  .btn-register { font-size: 12px; padding: 8px 12px; }
  .btn-login { font-size: 12px; padding: 7px 10px; }
  .btn-register span.reg-text { display: none; }
  .btn-dash, .btn-login { font-size: 12px; padding: 7px 12px; }

  /* ── sections ── */
  .sec { padding: 36px 0; }
  .sec-hd { margin-bottom: 24px; }
  .sec-hd h2 { font-size: 22px; }
  .sec-hd p { font-size: 13px; }
  .container { padding: 0 14px; }

  /* ── grids ── */
  .course-grid  { grid-template-columns: 1fr 1fr; gap: 12px; }
  .exam-grid    { grid-template-columns: 1fr 1fr; gap: 12px; }
  .prog-grid    { grid-template-columns: 1fr; }
  .why-grid     { grid-template-columns: 1fr 1fr; gap: 14px; }
  .tools-grid   { grid-template-columns: 1fr 1fr; gap: 12px; }
  .steps-grid   { grid-template-columns: 1fr 1fr; gap: 14px; }
  .testi-grid   { grid-template-columns: 1fr 1fr; gap: 12px; }
  .detail-grid  { grid-template-columns: 1fr; }
  .side-box     { position: static; }
  .fld-row      { grid-template-columns: 1fr; }
  .a-grid2      { grid-template-columns: 1fr; }
  .admin-kpis, .kpi-row { grid-template-columns: 1fr 1fr; }
  .qz-answers   { grid-template-columns: 1fr; }

  /* ── كروت الكورسات — أصغر على موبايل ── */
  .course-card { border-radius: 12px; }
  .cc-thumb { height: 110px; }
  .cc-body  { padding: 10px 12px 12px; }
  .cc-title { font-size: 12.5px; margin-bottom: 4px; -webkit-line-clamp: 2; }
  .cc-desc  { display: none; }
  .cc-stars { display: none; }
  .cc-price { font-size: 13px; }
  .cc-foot  { margin-top: 8px; }
  .btn-view { font-size: 11px; padding: 6px 10px; }

  /* ── testimonials ── */
  .testi-item { padding: 16px; }
  .ti-text { font-size: 12px; -webkit-line-clamp: 3; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; }

  /* ── why/steps cards ── */
  .why-item  { padding: 16px; }
  .step-item { padding: 14px; }
  .wi-ic     { font-size: 28px; }
  .wi-title  { font-size: 13px; }
  .wi-desc   { font-size: 12px; }

  /* ── stats bar ── */
  .stats-bar-inner { gap: 0; }
  .stat-box { padding: 10px 14px; border-left: none; border-bottom: 1px solid var(--border); }
  .stat-n { font-size: 22px; }
  .stat-l { font-size: 11px; }

  /* ── hero ── */
  .hero { padding: 30px 16px; }
  .hero h1 { font-size: 24px; line-height: 1.4; }
  .hero p { font-size: 13px; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns a { width: 100%; text-align: center; }
  .trust-row { justify-content: center; }

  /* ── dash ── */
  .dash-wrap  { flex-direction: column; }
  .dash-side  { width: 100%; height: auto; position: relative; }
  .dash-body  { padding: 16px; }
  .kpi-row    { grid-template-columns: 1fr 1fr; }

  /* ── admin ── */
  .admin-wrap { flex-direction: column; }
  .admin-side { width: 100%; height: auto; position: relative; }
  .admin-main { padding: 16px; }
  .tbl-wrap   { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ── CTA ── */
  .cta-sec { padding: 40px 20px; }
  .cta-sec h2 { font-size: 22px; }

  /* ── chat ── */
  .chat-wrap { bottom: 84px; left: 14px; }
  .wa-float  { left: 14px; bottom: 14px; }

  /* ── فوتر ── */
  .footer-top { padding: 36px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-about p { max-width: 100%; }
  .footer-col h4 { margin-bottom: 10px; font-size: 12px; }
  .footer-col a  { font-size: 12px; margin-bottom: 7px; }
  .footer-bot .container { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
}

@media (max-width: 480px) {
  /* ── شاشات صغيرة جداً ── */
  .course-grid, .exam-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cc-thumb { height: 90px; }
  .cc-title { font-size: 11.5px; }
  .why-grid, .tools-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid  { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .admin-kpis, .kpi-row { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 21px; }
  .cta-sec h2 { font-size: 20px; }
  .sec-chip { font-size: 11px; padding: 5px 12px; }
  .kpi-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-n { font-size: 22px; }
}
}
