/* =========================================================
   منصة أ. عمرو وحيد — نظام التصميم
   ========================================================= */

/* 1) المتغيرات والأساسيات */
:root {
  --brand: #e9691e;
  --brand-2: #ff8a3d;
  --brand-3: #f7b23b;
  --brand-soft: #fdf0e6;
  --ink: #0c1728;
  --ink-2: #1b2a40;
  --muted: #66748a;
  --muted-2: #8b98ab;
  --line: #e6ebf2;
  --bg: #f5f7fa;
  --white: #fff;
  --navy: #070f1d;
  --navy-2: #0d1b30;
  --success: #17976a;
  --success-soft: #e8f7f1;
  --danger: #d64550;
  --danger-soft: #fdecef;
  --warn-soft: #fef6e6;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --header-h: 76px;
  --shadow-sm: 0 2px 8px rgba(12, 23, 40, .05);
  --shadow: 0 18px 40px -22px rgba(12, 23, 40, .35);
  --shadow-lg: 0 40px 80px -40px rgba(12, 23, 40, .55);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

::selection { background: #ffd9c2; color: #3b1a06; }

:focus-visible {
  outline: 3px solid rgba(233, 105, 30, .45);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

.bdi { unicode-bidi: isolate; }

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* 2) النصوص والأقسام */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #f6d9c5;
  padding: 6px 13px;
  border-radius: 999px;
  line-height: 1.4;
}
.eyebrow--dark {
  color: #ffc38f;
  background: rgba(233, 105, 30, .14);
  border-color: rgba(233, 105, 30, .3);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(233, 105, 30, .18);
}

.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--white { background: var(--white); }
.section--tint { background: linear-gradient(180deg, #fff, #f7f9fc); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 700px;
  margin-bottom: 40px;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
  align-items: center;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.28;
}
.section-head h2 em {
  font-style: normal;
  background: linear-gradient(120deg, #f39444, #e55a0c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head p { color: var(--muted); font-size: 16.5px; }

.lead { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.center { text-align: center; }

/* 3) الأزرار والشرائح */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
  background: transparent;
  color: var(--ink);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
  background: linear-gradient(135deg, #ff8a3d, #e2601a);
  color: #fff;
  box-shadow: 0 14px 26px -14px rgba(226, 96, 26, .75);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -16px rgba(226, 96, 26, .8);
}
.btn--gold {
  background: linear-gradient(135deg, #ffd270, #f2a522);
  color: #40260a;
  box-shadow: 0 14px 26px -14px rgba(242, 165, 34, .7);
}
.btn--gold:hover { transform: translateY(-2px); }
.btn--outline {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(6px);
}
.btn--outline:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .55); }
.btn--soft { background: var(--brand-soft); color: var(--brand); border-color: #f6d9c5; }
.btn--soft:hover { background: #fbe6d7; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #16243a; }
.btn--ghost { color: inherit; }
.btn--ghost:hover { background: rgba(12, 23, 40, .05); }
.header--over .btn--ghost:hover,
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--block { width: 100%; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 13.5px; border-radius: 11px; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--lg { height: 56px; padding: 0 30px; font-size: 16.5px; border-radius: 16px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #f1f4f9;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; }
.chip--brand { background: var(--brand-soft); color: #b4510f; }
.chip--success { background: var(--success-soft); color: #0e7a54; }
.chip--dark { background: rgba(255, 255, 255, .1); color: #fff; }
.chip--line { background: #fff; border-color: var(--line); color: var(--muted); }

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(12, 23, 40, .06); }
.header--over .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.icon-btn svg { width: 22px; height: 22px; }

.badge-soft {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: rgba(8, 15, 27, .78);
  backdrop-filter: blur(8px);
  color: #ffd9a8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
}

/* 4) الهيدر */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s, border-color .3s, height .3s;
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header--solid {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header--over {
  background: linear-gradient(180deg, rgba(5, 10, 20, .55), rgba(5, 10, 20, 0));
  color: #fff;
}
.header--over.is-scrolled {
  background: rgba(8, 16, 30, .9);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.header--solid.is-scrolled { box-shadow: 0 14px 30px -24px rgba(12, 23, 40, .5); }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(140deg, #ff9a4d, #e2601a 70%);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -10px rgba(226, 96, 26, .9);
  color: #fff;
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text strong { font-size: 16.5px; font-weight: 800; }
.brand__text small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted-2);
  letter-spacing: .2px;
}
.header--over .brand__text small { color: rgba(255, 255, 255, .55); }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 18px; }
.nav__link {
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--ink); background: rgba(12, 23, 40, .05); }
.nav__link.is-active { color: var(--brand); background: var(--brand-soft); }
.header--over .nav__link { color: rgba(255, 255, 255, .72); }
.header--over .nav__link:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.header--over .nav__link.is-active { color: #ffcd9f; background: rgba(233, 105, 30, .16); }

.site-header__actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.burger { display: none; }

/* 5) القائمة الجانبية */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 16, .62);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .3s;
}
.drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(86%, 360px);
  background: linear-gradient(180deg, #0a1424, #070e19);
  color: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .34s var(--ease);
  box-shadow: -30px 0 70px -40px #000;
  border-inline-start: 1px solid rgba(255, 255, 255, .07);
  overflow-y: auto;
  overscroll-behavior: contain;
}
[dir="rtl"] .drawer__panel { transform: translateX(-100%); }
.drawer.is-open { visibility: visible; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.drawer__head .icon-btn { color: rgba(255, 255, 255, .8); }
.drawer__head .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.drawer__nav { padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.drawer__item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  transition: background .2s, border-color .2s, color .2s;
}
.drawer__item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.drawer__item.is-active {
  background: rgba(233, 105, 30, .16);
  border-color: rgba(233, 105, 30, .38);
  color: #ffd3ad;
}
.drawer__item .ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .07);
  flex: none;
}
.drawer__item.is-active .ico { background: rgba(233, 105, 30, .25); color: #ffb27a; }
.drawer__item .ico svg { width: 18px; height: 18px; }
.drawer__item .arrow { margin-inline-start: auto; opacity: .4; }
.drawer__item .arrow svg { width: 16px; height: 16px; }
.drawer__foot { margin-top: auto; padding: 18px 20px 24px; border-top: 1px solid rgba(255, 255, 255, .07); }
.drawer__contact {
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.drawer__contact .ico {
  width: 38px; height: 38px; border-radius: 11px;
  background: rgba(37, 211, 102, .15); color: #4ade80;
  display: grid; place-items: center; flex: none;
}
.drawer__contact b { display: block; font-size: 13.5px; }
.drawer__contact span { font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.drawer__socials { display: flex; gap: 8px; margin-bottom: 18px; }
.drawer__socials a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .8);
  transition: background .2s, transform .2s;
}
.drawer__socials a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.drawer__socials svg { width: 17px; height: 17px; }
.drawer__copy { font-size: 11px; color: rgba(255, 255, 255, .38); text-align: center; }

/* 6) الهيرو */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 64px) 0 70px;
  background: #060d19;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 560px at 10% 88%, rgba(233, 105, 30, .30), transparent 62%),
    radial-gradient(720px 480px at 92% 4%, rgba(56, 112, 255, .18), transparent 60%),
    radial-gradient(600px 400px at 76% 96%, rgba(247, 178, 59, .12), transparent 65%),
    linear-gradient(180deg, #070f1f, #050a13);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 70% 70% at 55% 40%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 55% 40%, #000 20%, transparent 80%);
}
.hero__formulas {
  position: absolute;
  inset: 0;
  color: rgba(255, 255, 255, .07);
  font-weight: 700;
}
.hero__formulas span {
  position: absolute;
  font-size: clamp(28px, 6vw, 66px);
  direction: ltr;
  font-family: "Cairo", serif;
  white-space: nowrap;
  user-select: none;
}
.hero__formulas span:nth-child(1) { top: 16%; inset-inline-start: 4%; transform: rotate(-8deg); }
.hero__formulas span:nth-child(2) { bottom: 12%; inset-inline-end: 6%; transform: rotate(6deg); font-size: clamp(22px, 4vw, 44px); }
.hero__formulas span:nth-child(3) { top: 62%; inset-inline-start: 34%; transform: rotate(-4deg); font-size: clamp(18px, 3vw, 34px); opacity: .7; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 56px;
  align-items: center;
}
.hero__content { max-width: 640px; min-width: 0; }
.hero__visual { min-width: 0; }
.hero__title {
  font-size: clamp(31px, 4.5vw, 58px);
  line-height: 1.24;
  color: #fff;
  margin: 20px 0 18px;
  letter-spacing: -.3px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(115deg, #ffc77a 0%, #ff8a3d 45%, #ff6a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__title .underline {
  position: relative;
  display: inline-block;
}
.hero__lead {
  color: rgba(255, 255, 255, .72);
  font-size: clamp(15px, 1.35vw, 17.5px);
  line-height: 1.9;
  max-width: 560px;
}
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 28px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .045);
  color: rgba(255, 255, 255, .8);
  font-size: 12.5px;
  font-weight: 600;
}
.pill svg { width: 14px; height: 14px; color: var(--brand-3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  flex-wrap: wrap;
}
.hero__stat b {
  display: block;
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.hero__stat span { font-size: 12.5px; color: rgba(255, 255, 255, .55); font-weight: 600; }
.hero__stat .stars { display: flex; gap: 2px; margin-bottom: 2px; color: var(--brand-3); }
.hero__stat .stars svg { width: 14px; height: 14px; }

/* كارت المدرس / لوحة الرياضيات */
.hero__visual { position: relative; display: flex; justify-content: center; }
.board-shell { position: relative; width: min(100%, 440px); }
.board {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.7;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .13);
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(233, 105, 30, .18), transparent 55%),
    linear-gradient(165deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  backdrop-filter: blur(12px);
  box-shadow: 0 50px 90px -40px #000, inset 0 1px 0 rgba(255, 255, 255, .12);
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.board__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 60% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 60% 30%, #000 20%, transparent 75%);
}
.board__top { position: relative; display: flex; align-items: center; justify-content: space-between; }
.board__label {
  font-size: 10.5px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, .4);
  text-transform: uppercase;
}
.board__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #c9f7e2;
  background: rgba(23, 151, 106, .18);
  border: 1px solid rgba(23, 151, 106, .4);
  border-radius: 999px;
  padding: 4px 10px;
}
.board__live i {
  width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .22);
}
.board__graph { position: relative; margin: 18px -6px 8px; }
.board__portrait {
  position: relative;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(6, 12, 23, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 12px;
  backdrop-filter: blur(8px);
}
.avatar-ring {
  width: 54px; height: 54px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 210deg, #ffb35c, #e2601a, #f7b23b, #ffb35c);
  flex: none;
}
.avatar-ring > span {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #0b1728;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  color: #ffd8b0;
}
.board__portrait b { display: block; font-size: 14.5px; line-height: 1.4; }
.board__portrait span { font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.board__portrait .chip { margin-inline-start: auto; }
.board__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.board__stat {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
  padding: 9px 8px;
  text-align: center;
}
.board__stat b { display: block; font-size: 15px; color: #fff; line-height: 1.3; }
.board__stat span { font-size: 9.5px; color: rgba(255, 255, 255, .48); font-weight: 600; }

.float-card {
  position: absolute;
  background: rgba(10, 19, 34, .86);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  padding: 11px 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 40px -24px #000;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: float 7s ease-in-out infinite;
}
.float-card b { font-size: 12.5px; display: block; line-height: 1.4; }
.float-card span { font-size: 10.5px; color: rgba(255, 255, 255, .5); }
.float-card .ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; flex: none;
}
.float-card--a { top: 82px; inset-inline-end: -26px; animation-delay: .3s; }
.float-card--a .ico { background: rgba(247, 178, 59, .16); color: #ffd387; }
.float-card--b { top: 226px; inset-inline-start: -26px; animation-delay: 1.4s; }
.float-card--b .ico { background: rgba(23, 151, 106, .18); color: #7ee2b8; }
.float-card svg { width: 17px; height: 17px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* شريط المزايا السريع */
.strip {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 16px 0;
}
.strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.strip__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .62);
  white-space: nowrap;
}
.strip__item svg { width: 16px; height: 16px; color: var(--brand-3); }
.strip__dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .22); }

/* 7) المزايا */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 22px;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.feature::after {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  top: -40px;
  width: 110px; height: 110px;
  background: radial-gradient(circle, rgba(233, 105, 30, .1), transparent 70%);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #f4d9c8; }
.feature__ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}
.feature__ico svg { width: 23px; height: 23px; }
.feature h3 { font-size: 16.5px; margin-bottom: 7px; }
.feature p { font-size: 13.5px; color: var(--muted); line-height: 1.8; }

/* 8) الكورسات */
.courses-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #f2d4c0; }
.course-card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0c1728;
  overflow: hidden;
}
.course-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.course-card:hover .course-card__cover img { transform: scale(1.04); }
.course-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.course-card__grade {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.course-card__grade svg { width: 13px; height: 13px; }
.course-card h3 { font-size: 15.5px; line-height: 1.55; }
.course-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--muted-2);
  font-weight: 600;
}
.course-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.course-card__meta svg { width: 13px; height: 13px; }
.course-card__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.price { color: var(--brand); font-weight: 800; font-size: 16px; }
.price small { font-size: 11px; font-weight: 700; color: var(--muted-2); }
.course-card__go {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  transition: background .2s, color .2s;
}
.course-card:hover .course-card__go { background: var(--brand); color: #fff; }
.course-card__go svg { width: 16px; height: 16px; }

/* 9) الصفوف */
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grade-card {
  position: relative;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: #fff;
  padding: 22px;
  overflow: hidden;
  transition: .25s var(--ease);
}
.grade-card:hover { border-color: #f2d4c0; transform: translateY(-3px); box-shadow: var(--shadow); }
.grade-card__num {
  position: absolute;
  inset-inline-start: 14px;
  top: 6px;
  font-size: 62px;
  font-weight: 900;
  line-height: 1;
  color: #f2f5f9;
  pointer-events: none;
}
.grade-card h3 { position: relative; font-size: 17px; margin-bottom: 4px; }
.grade-card p { position: relative; font-size: 12.5px; color: var(--muted); }
.grade-card__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
}
.grade-card__link svg { width: 14px; height: 14px; transition: transform .2s; }
.grade-card:hover .grade-card__link svg { transform: translateX(-4px); }

/* 10) عن المدرس */
.about-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.portrait-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 80% 0%, rgba(233, 105, 30, .28), transparent 55%),
    linear-gradient(160deg, #101f35, #080f1c);
  aspect-ratio: 4 / 4.4;
  border: 1px solid #1c2b42;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.portrait-card__pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 72%);
}
.portrait-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(5, 10, 18, .82));
  pointer-events: none;
}
.portrait-card__badge,
.portrait-card__name { z-index: 1; }
.portrait-card__mono {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: start center;
  padding-top: 16%;
  font-size: 140px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(247, 178, 59, .26);
  letter-spacing: 2px;
  line-height: 1;
}
.portrait-card__badge {
  position: relative;
  align-self: flex-start;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #ffe0c2;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: auto;
  backdrop-filter: blur(6px);
}
.portrait-card__name { position: relative; }
.portrait-card__name b { display: block; font-size: 24px; color: #fff; }
.portrait-card__name span { font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.portrait-card__line {
  position: relative;
  width: 46px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #f7b23b, #e2601a);
  margin: 12px 0 0;
}
.about-list { display: flex; flex-direction: column; gap: 14px; margin: 24px 0 28px; }
.about-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.about-list .ico {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: var(--success-soft); color: var(--success);
  display: grid; place-items: center; margin-top: 3px;
}
.about-list .ico svg { width: 14px; height: 14px; }
.about-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.about-stat b { display: block; font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.about-stat span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* 11) الخطوات */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
}
.step__num {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(140deg, #ff9a4d, #e2601a);
  box-shadow: 0 10px 20px -12px rgba(226, 96, 26, .8);
  margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); }
.step__tag {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted-2);
  background: #f4f7fb;
  padding: 4px 9px;
  border-radius: 7px;
}

/* 12) الآراء */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quote__stars { display: flex; gap: 3px; color: #f2a522; }
.quote__stars svg { width: 15px; height: 15px; }
.quote p { font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.quote__who { display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 4px; }
.quote__who .ava {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-soft);
  color: #b4510f;
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px;
  flex: none;
}
.quote__who b { display: block; font-size: 13.5px; line-height: 1.4; }
.quote__who span { font-size: 11.5px; color: var(--muted-2); }

/* 13) الأسئلة */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 20px;
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: #f2d4c0; box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 14.5px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  margin-inline-start: auto;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: #f4f7fb;
  color: var(--muted);
  display: grid; place-items: center;
  flex: none;
  transition: transform .25s, background .2s, color .2s;
}
.faq summary .plus svg { width: 15px; height: 15px; }
.faq details[open] summary .plus { background: var(--brand-soft); color: var(--brand); transform: rotate(45deg); }
.faq .faq__body { padding: 0 0 18px; font-size: 13.5px; color: var(--muted); line-height: 1.9; }

/* 14) نداء أخير */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(700px 380px at 85% 10%, rgba(233, 105, 30, .4), transparent 60%),
    linear-gradient(140deg, #0d1b30, #060c16);
  color: #fff;
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  border: 1px solid #1c2b42;
}
.cta-band h2 { color: #fff; font-size: clamp(23px, 2.8vw, 34px); max-width: 540px; }
.cta-band p { color: rgba(255, 255, 255, .62); margin-top: 8px; font-size: 14.5px; }
.cta-band__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 15) الفوتر */
.site-footer {
  background: #070e19;
  color: rgba(255, 255, 255, .62);
  padding: 60px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr 1.1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer__brand .brand__text strong { color: #fff; }
.footer__brand p { font-size: 13.5px; line-height: 1.9; margin: 16px 0 20px; max-width: 320px; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .75);
  transition: background .2s, transform .2s, color .2s;
}
.socials a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }
.footer__col h4 {
  color: #fff;
  font-size: 13.5px;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 13px; color: rgba(255, 255, 255, .58); transition: color .2s; }
.footer__col a:hover { color: #ffb27a; }
.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .62);
}
.footer__contact-item svg { width: 15px; height: 15px; color: var(--brand-3); flex: none; }
.app-badges { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.app-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  padding: 7px 12px;
  transition: background .2s;
}
.app-badge:hover { background: rgba(255, 255, 255, .1); }
.app-badge svg { width: 19px; height: 19px; color: #fff; }
.app-badge span { font-size: 8.5px; display: block; line-height: 1.3; color: rgba(255, 255, 255, .5); }
.app-badge b { font-size: 11.5px; color: #fff; display: block; line-height: 1.4; }
.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 18px 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* زر واتساب عائم */
.wa-float {
  position: fixed;
  inset-inline-start: 18px;
  bottom: 18px;
  z-index: 80;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 30px -12px rgba(34, 197, 94, .7);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, .5);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* 16) رأس الصفحات الداخلية */
.page { padding-top: var(--header-h); }
.page-head {
  background:
    radial-gradient(700px 300px at 88% -10%, rgba(233, 105, 30, .10), transparent 60%),
    linear-gradient(180deg, #fff, #f7f9fc);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 34px;
}
.page-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(27px, 3.6vw, 42px); margin: 12px 0 8px; }
.page-head p { color: var(--muted); font-size: 14.5px; max-width: 620px; }
.page-head__bar {
  width: 72px; height: 4px; border-radius: 4px; margin-top: 18px;
  background: linear-gradient(90deg, #f7b23b, #e2601a 55%, #7c5cff);
}
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted-2); }
.crumbs a:hover { color: var(--brand); }
.crumbs svg { width: 13px; height: 13px; }

/* 17) فلاتر الكورسات */
.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.search {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search svg {
  position: absolute;
  inset-inline-start: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--muted-2);
}
.search input {
  width: 100%;
  height: 44px;
  border-radius: 11px;
  border: 1.5px solid var(--line);
  background: #f8fafc;
  padding: 0 42px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s, background .2s;
}
.search input:focus { outline: none; border-color: var(--brand); background: #fff; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
}
.chip-btn:hover { border-color: #f2c4a6; color: var(--brand); }
.chip-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.select {
  height: 44px;
  border-radius: 11px;
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  font-family: inherit;
  cursor: pointer;
}
.select:focus { outline: none; border-color: var(--brand); }

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.results-bar b { color: var(--ink); }

.course-list { display: flex; flex-direction: column; gap: 12px; }
.course-row {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 11px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.course-row:hover { border-color: #f2d4c0; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.course-row__thumb {
  width: 128px;
  height: 86px;
  border-radius: 12px;
  overflow: hidden;
  flex: none;
  background: #0c1728;
}
.course-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-row__main { flex: 1; min-width: 0; }
.course-row__grade { font-size: 11.5px; color: var(--brand); font-weight: 700; margin-bottom: 2px; }
.course-row h3 { font-size: 15.5px; line-height: 1.5; }
.course-row__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted-2);
  font-weight: 600;
  margin-top: 4px;
}
.course-row__meta span { display: inline-flex; align-items: center; gap: 4px; }
.course-row__meta svg { width: 12.5px; height: 12.5px; }
.course-row__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: none;
  padding-inline-end: 6px;
}
.course-row__side .price { font-size: 15.5px; }
.course-row__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand);
}
.course-row__link svg { width: 13px; height: 13px; }
.empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-size: 14px;
}

/* 18) تفاصيل الكورس */
.course-hero {
  background:
    radial-gradient(800px 420px at 80% 0%, rgba(233, 105, 30, .22), transparent 60%),
    linear-gradient(150deg, #0b1728, #060c16);
  color: #fff;
  padding: 40px 0 44px;
  border-bottom: 1px solid #1a2a41;
}
.course-hero .crumbs { color: rgba(255, 255, 255, .45); }
.course-hero .crumbs a:hover { color: #ffb27a; }
.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}
.chapter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  margin: 20px 0 9px;
}
.chapter-title:first-child { margin-top: 0; }
.chapter-title span {
  background: #eef2f7;
  color: var(--muted);
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 6px;
}
.progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 15px;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.progress-row b { color: var(--ink); }
.progress-row .bar { flex: 1; min-width: 120px; }
.course-hero__grid { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
.course-hero h1 { color: #fff; font-size: clamp(24px, 3.2vw, 36px); margin: 12px 0 10px; }
.course-hero__meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.course-hero__meta span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: rgba(255, 255, 255, .6); font-weight: 600;
}
.course-hero__meta svg { width: 15px; height: 15px; color: var(--brand-3); }
.course-hero__desc { color: rgba(255, 255, 255, .65); font-size: 14px; line-height: 1.9; max-width: 640px; margin-top: 14px; }

.player { margin-bottom: 14px; }

/* المشغّل (Plyr + يوتيوب) — نفس فكرة الموقع المرجعي */
.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #21354f;
  --plyr-color-main: #e9691e;
  --plyr-video-background: #000;
  --plyr-font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --plyr-control-radius: 9px;
  --plyr-menu-radius: 12px;
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, .9);
}
.player-wrap .plyr { width: 100%; height: 100%; }
.player-wrap .plyr__controls { font-family: "Cairo", sans-serif; }
.player-wrap .plyr__control--overlaid {
  background: linear-gradient(140deg, #ff9a4d, #e2601a);
  box-shadow: 0 18px 34px -14px rgba(226, 96, 26, .85), 0 0 0 10px rgba(233, 105, 30, .16);
  width: 74px;
  height: 74px;
}
.player-wrap .plyr__control--overlaid:hover { background: #f0782e; }
.player-wrap .plyr__control--overlaid svg { width: 24px; height: 24px; }

/* إخفاء واجهة يوتيوب الأصلية جوه المشغّل */
.plyr__video-embed iframe {
  top: -50% !important;
  height: 200% !important;
  pointer-events: none;
  border: 0;
}

/* العلامة المائية المتحركة */
.watermark {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  background: rgba(0, 0, 0, .42);
  color: rgba(255, 255, 255, .78);
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  user-select: none;
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: top 1.2s ease, left 1.2s ease;
  white-space: nowrap;
}

.player__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: #0c1728;
  border: 1px solid #1b2a41;
  border-top: none;
  border-radius: 0 0 18px 18px;
  flex-wrap: wrap;
  min-height: 50px;
  margin-top: -1px;
}
.player__now {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
  min-width: 0;
  flex: 1;
}
.player__now b {
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player__now .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .18);
  flex: none;
}
.player__yt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffb27a;
  flex: none;
}
.player__yt svg { width: 13px; height: 13px; }
.player__yt:hover { color: #ffd0a8; }

.player__fallback {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 12;
  background: rgba(6, 11, 20, .94);
  padding: 22px;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: #fff;
}
.player__fallback.is-visible { display: flex; }
.player__fallback .ico {
  width: 42px; height: 42px; border-radius: 13px;
  background: rgba(214, 69, 80, .16);
  color: #fda4af;
  display: grid; place-items: center;
}
.player__fallback .ico svg { width: 20px; height: 20px; }
.player__fallback b { font-size: 14px; }
.player__fallback span { font-size: 11.5px; color: rgba(255, 255, 255, .6); max-width: 320px; line-height: 1.7; }

.player__lock {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 17, .9);
  backdrop-filter: blur(3px);
  display: none;
  place-items: center;
  z-index: 14;
  padding: 20px;
  text-align: center;
}
.player.is-locked .player__lock { display: grid; }
.player__lock .lock-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.player__lock .lock-box .ico {
  width: 52px; height: 52px; border-radius: 16px;
  background: rgba(233, 105, 30, .18);
  border: 1px solid rgba(233, 105, 30, .4);
  color: #ffb27a;
  display: grid; place-items: center;
}
.player__lock .lock-box .ico svg { width: 24px; height: 24px; }
.player__lock .lock-box b { font-size: 14px; color: #fff; }
.player__lock .lock-box span { font-size: 12px; color: rgba(255, 255, 255, .6); max-width: 280px; }

.player__dead {
  border: none;
  background: none;
  color: rgba(255, 255, 255, .4);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  font-family: inherit;
  flex: none;
  transition: color .2s, background .2s;
}
.player__dead:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lesson.is-current { border-color: #f2c4a6; box-shadow: 0 0 0 3px rgba(233, 105, 30, .09); }
.lesson.is-current .lesson__num { background: var(--brand-soft); color: var(--brand); }

.player__demo {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fdf0e6;
  border: 1px solid #f6d9c5;
  color: #a8490c;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.6;
}
.player__demo svg { width: 15px; height: 15px; flex: none; }

.lesson-list { display: flex; flex-direction: column; gap: 8px; }
.lesson {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.lesson__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}
.lesson__num {
  width: 30px; height: 30px; border-radius: 9px;
  background: #f4f7fb; color: var(--muted);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  flex: none;
}
.lesson.is-done .lesson__num { background: var(--success-soft); color: var(--success); }
.lesson__title { flex: 1; min-width: 0; }
.lesson__title b { display: block; font-size: 14px; font-weight: 700; }
.lesson__title span { font-size: 11.5px; color: var(--muted-2); }
.lesson__state { color: var(--muted-2); display: grid; place-items: center; }
.lesson__state svg { width: 17px; height: 17px; }
.lesson__state.is-playable {
  cursor: pointer;
  border-radius: 8px;
  padding: 4px;
  transition: background .2s, color .2s;
}
.lesson__state.is-playable:hover { background: var(--brand-soft); color: var(--brand); }
.lesson.is-current .lesson__state.is-playable { color: var(--brand); }
.lesson.is-done .lesson__state { color: var(--success); }
.lesson__body {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px dashed var(--line);
  margin-top: -1px;
  padding-top: 14px;
}
.lesson.is-open .lesson__body { display: block; }
.lesson__body p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.lesson__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lesson__actions .btn { height: 38px; font-size: 12.5px; padding: 0 13px; border-radius: 10px; }

.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.side-card__price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 16px; }
.side-card__price b { font-size: 30px; color: var(--brand); font-weight: 800; }
.side-card__price span { font-size: 13px; color: var(--muted); }
.side-card ul { display: flex; flex-direction: column; gap: 11px; margin: 18px 0; }
.side-card ul li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); }
.side-card ul li svg { width: 16px; height: 16px; color: var(--success); flex: none; }
.side-card .divider { height: 1px; background: var(--line); margin: 16px 0; }
.side-card__teacher { display: flex; align-items: center; gap: 11px; }
.side-card__teacher b { display: block; font-size: 13.5px; }
.side-card__teacher span { font-size: 11.5px; color: var(--muted-2); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tab {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.prose h2 { font-size: 20px; margin: 26px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 14.5px; color: var(--muted); line-height: 1.95; margin-bottom: 12px; }
.prose ul { display: flex; flex-direction: column; gap: 9px; margin: 12px 0 20px; }
.prose ul li { display: flex; gap: 9px; font-size: 14px; color: var(--ink-2); }
.prose ul li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  margin-top: 10px;
  flex: none;
}

/* 19) صفحات الدخول والتسجيل */
.auth { min-height: 100svh; display: grid; grid-template-columns: 1.02fr 1fr; }
.auth__panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 420px at 20% 10%, rgba(233, 105, 30, .3), transparent 60%),
    linear-gradient(160deg, #0c1a2c, #060c16);
  color: #fff;
  padding: 46px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}
.auth__panel .brand__text strong { color: #fff; }
.auth__panel .brand__text small { color: rgba(255, 255, 255, .5); }
.auth__quote { position: relative; max-width: 420px; }
.auth__quote h2 { color: #fff; font-size: clamp(25px, 2.6vw, 34px); line-height: 1.4; margin-bottom: 14px; }
.auth__quote h2 em {
  font-style: normal;
  background: linear-gradient(115deg, #ffc77a, #ff7a1f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth__quote p { color: rgba(255, 255, 255, .6); font-size: 14px; line-height: 1.9; }
.auth__panel-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.auth__panel-foot .mini { font-size: 11.5px; color: rgba(255, 255, 255, .45); }
.auth__panel-foot .mini b { display: block; color: #fff; font-size: 18px; }
.auth__glow {
  position: absolute;
  inset-inline-start: -80px;
  bottom: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 105, 30, .35), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
.auth__form-side {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 24px;
}
.auth__form-wrap { width: min(430px, 100%); }
.auth__form-wrap h1 { font-size: 27px; margin-bottom: 6px; }
.auth__form-wrap > p { font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }
.auth__brand-mobile { display: none; margin-bottom: 24px; }
.auth__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.auth__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  transition: color .2s;
}
.auth__back:hover { color: var(--brand); }
.auth__back svg { width: 14px; height: 14px; }
.auth__proof { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.auth__proof .stack { display: flex; }
.auth__proof .stack span {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(140deg, #ff9a4d, #e2601a);
  border: 2px solid #071020;
  display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; color: #fff;
  margin-inline-start: -8px;
}
.auth__proof .stack span:first-child { margin-inline-start: 0; }
.auth__proof p { font-size: 11.5px; color: rgba(255, 255, 255, .5); line-height: 1.6; }
.auth__proof p b { color: #fff; }
.auth__quote .feature-list { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.auth__quote .feature-list li { display: flex; gap: 10px; align-items: center; font-size: 13px; color: rgba(255, 255, 255, .72); }
.auth__quote .feature-list .ico {
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  display: grid; place-items: center;
  color: #ffc38f;
  flex: none;
}
.auth__quote .feature-list svg { width: 15px; height: 15px; }
.auth__side-link { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.auth__side-link a { color: var(--brand); font-weight: 700; }
.auth__legal { text-align: center; font-size: 11px; color: var(--muted-2); margin-top: 14px; line-height: 1.8; }
.auth__legal a { color: var(--muted); text-decoration: underline; }

/* 20) النماذج */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field > label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.field .hint { font-size: 11px; color: var(--muted-2); font-weight: 500; }
.input-wrap { position: relative; }
.input-wrap .lead-ico {
  position: absolute;
  inset-inline-start: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}
.input-wrap .lead-ico svg { width: 18px; height: 18px; }
.input {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fbfcfe;
  padding: 0 14px;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.input::placeholder { color: #a9b4c4; font-weight: 500; }
.input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(233, 105, 30, .1);
}
.input-wrap .input { padding-inline-start: 44px; }
.input-wrap--pass .input { padding-inline-end: 46px; }
.input[type="tel"] { direction: ltr; text-align: left; }
.select-input {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fbfcfe;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
}
.select-input:focus { outline: none; border-color: var(--brand); background: #fff; }
.pass-toggle {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  color: var(--muted-2);
  border-radius: 9px;
  display: grid; place-items: center;
  cursor: pointer;
}
.pass-toggle:hover { background: #f1f5f9; color: var(--ink); }
.pass-toggle svg { width: 18px; height: 18px; }
.field.has-error .input,
.field.has-error .select-input { border-color: var(--danger); background: #fff8f8; }
.err {
  display: none;
  font-size: 11.5px;
  color: var(--danger);
  font-weight: 600;
  align-items: center;
  gap: 5px;
}
.field.has-error .err { display: flex; }
.err svg { width: 13px; height: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  margin: 4px 0 18px;
  line-height: 1.7;
}
.check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.form-note {
  display: flex;
  gap: 9px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 16px;
}
.form-note svg { width: 15px; height: 15px; color: var(--brand); flex: none; margin-top: 3px; }

/* 21) التفعيل */
.activate-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start; }
.code-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.code-input {
  width: 100%;
  height: 62px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: #fbfcfe;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 6px;
  direction: ltr;
  font-family: "Cairo", monospace;
  color: var(--ink);
  text-transform: uppercase;
  transition: border-color .2s, box-shadow .2s;
}
.code-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 5px rgba(233, 105, 30, .1);
  background: #fff;
}
.code-input.is-ok { border-color: var(--success); }
.code-input.is-bad { border-color: var(--danger); }

.pay-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
}
.pay-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fbfcfe;
}
.pay-row .ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  flex: none;
}
.pay-row .ico--red { background: #fee9ea; color: #d92c2c; }
.pay-row .ico--teal { background: #e6f7f6; color: #0f8f86; }
.pay-row__main { flex: 1; min-width: 0; }
.pay-row__main span { display: block; font-size: 11px; color: var(--muted-2); font-weight: 600; }
.pay-row__main b { display: block; font-size: 14.5px; direction: ltr; letter-spacing: .8px; }
.copy-btn {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  display: grid; place-items: center;
  cursor: pointer;
  flex: none;
  transition: .2s;
}
.copy-btn:hover { color: var(--brand); border-color: #f2c4a6; background: var(--brand-soft); }
.copy-btn svg { width: 15px; height: 15px; }
.steps-mini { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.steps-mini li { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.steps-mini .n {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  flex: none; margin-top: 2px;
}
.success-box {
  display: none;
  text-align: center;
  padding: 22px 10px 6px;
}
.success-box.is-visible { display: block; }
.success-box .tick {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  display: grid; place-items: center;
  margin: 0 auto 14px;
}
.success-box .tick svg { width: 32px; height: 32px; }
.success-box h3 { font-size: 19px; margin-bottom: 6px; }
.success-box p { font-size: 13px; color: var(--muted); }
.enrolled-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px;
  margin: 18px 0;
  text-align: start;
}
.enrolled-mini img { width: 62px; height: 46px; border-radius: 8px; object-fit: cover; }
.enrolled-mini b { display: block; font-size: 13px; }
.enrolled-mini span { font-size: 11px; color: var(--muted-2); }

/* 22) لوحة الطالب */
.dash-head {
  background: linear-gradient(150deg, #0c1a2c, #070f1c);
  color: #fff;
  padding: 34px 0 30px;
  border-bottom: 1px solid #1a2a41;
}
.dash-head__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.dash-head h1 { color: #fff; font-size: clamp(23px, 2.8vw, 32px); margin: 8px 0 4px; }
.dash-head p { color: rgba(255, 255, 255, .55); font-size: 13px; }
.dash-head__user { display: flex; align-items: center; gap: 12px; }
.dash-head__user .ava {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(140deg, #ff9a4d, #e2601a);
  display: grid; place-items: center;
  font-weight: 800; font-size: 16px; color: #fff;
}
.dash-head__user b { display: block; font-size: 14px; }
.dash-head__user span { font-size: 11.5px; color: rgba(255, 255, 255, .5); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.stat-card .ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  flex: none;
}
.stat-card .ico--green { background: var(--success-soft); color: var(--success); }
.stat-card .ico--blue { background: #eaf1ff; color: #2f6fed; }
.stat-card .ico--gold { background: #fef6e6; color: #b8791a; }
.stat-card .ico svg { width: 20px; height: 20px; }
.stat-card b { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; }
.stat-card span { font-size: 11.5px; color: var(--muted); font-weight: 600; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.panel__head h2 { font-size: 17px; }
.panel__head a { font-size: 12px; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 4px; }
.panel__head a svg { width: 13px; height: 13px; }

.progress-item { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.progress-item:last-child { border-bottom: none; padding-bottom: 0; }
.progress-item__top { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.progress-item__top img { width: 54px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.progress-item__top b { font-size: 13.5px; display: block; }
.progress-item__top span { font-size: 11px; color: var(--muted-2); }
.progress-item__top .pct { margin-inline-start: auto; font-size: 12.5px; font-weight: 800; color: var(--brand); }
.bar { height: 7px; border-radius: 7px; background: #eef2f7; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, #f7b23b, #e2601a); }

.list-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.list-row:last-child { border-bottom: none; }
.list-row .ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: #f4f7fb; color: var(--muted);
  flex: none;
}
.list-row .ico svg { width: 17px; height: 17px; }
.list-row b { display: block; font-size: 13px; }
.list-row span { font-size: 11px; color: var(--muted-2); }
.list-row__end { margin-inline-start: auto; text-align: end; }
.list-row__end b { color: var(--success); }

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.dash-stack { display: flex; flex-direction: column; gap: 18px; }
.dash-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.result-row:last-child { border-bottom: none; }
.result-row b { font-size: 12.5px; }
.result-row span { font-size: 11px; color: var(--muted-2); }
.result-row .score {
  margin-inline-start: auto;
  font-weight: 800;
  font-size: 13px;
  color: var(--success);
}
.result-row .score.is-low { color: var(--warn-soft); color: #b8791a; }

/* 23) لوحة المدرس */
.teacher-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.teacher-tabs .tab { padding: 14px 18px; }
.tab-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 6px;
  padding: 1px 6px;
  margin-inline-start: 6px;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; max-width: 100%; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 640px; }
table.data th {
  text-align: start;
  padding: 12px 14px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td { padding: 11px 14px; border-bottom: 1px solid #f1f4f9; vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #fcfdff; }
.cell-course { display: flex; align-items: center; gap: 10px; }
.cell-course img { width: 56px; height: 38px; border-radius: 7px; object-fit: cover; flex: none; }
.cell-course b { font-size: 12.5px; display: block; }
.cell-course span { font-size: 10.5px; color: var(--muted-2); }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.row-actions button {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  display: grid; place-items: center;
  cursor: pointer;
  transition: .15s;
}
.row-actions button:hover { color: var(--brand); border-color: #f2c4a6; background: var(--brand-soft); }
.row-actions button.is-danger:hover { color: var(--danger); border-color: #f6c9ce; background: var(--danger-soft); }
.row-actions svg { width: 14px; height: 14px; }

.generate-box {
  display: grid;
  grid-template-columns: 1fr 140px auto;
  gap: 12px;
  align-items: end;
  background: #f8fafc;
  border: 1px dashed #d8e1ec;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
}
.generate-box .field { margin-bottom: 0; }

.meter-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.meter-head b { font-size: 14px; }
.meter-head span { font-size: 12px; color: var(--muted); }
.meter {
  height: 14px;
  border-radius: 10px;
  background: #eef2f7;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(12, 23, 40, .06);
}
.meter > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #34d399, #10b981);
  transition: width .8s var(--ease), background .3s;
}
.meter.is-warn > i { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.meter.is-danger > i { background: linear-gradient(90deg, #f87171, #dc2626); }
.breakdown { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.breakdown-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.breakdown-row .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.breakdown-row .sw--orange { background: #e2601a; }
.breakdown-row .sw--gold { background: #f7b23b; }
.breakdown-row .sw--slate { background: #94a3b8; }
.breakdown-row b { font-size: 12px; }
.breakdown-row span { margin-inline-start: auto; color: var(--muted); }
.mini-bar { height: 6px; border-radius: 6px; background: #eef2f7; overflow: hidden; margin-top: 5px; }
.mini-bar > i { display: block; height: 100%; border-radius: 6px; }

.storage-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--warn-soft);
  border: 1px solid #f6dfb4;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 12.5px;
  color: #8a5a10;
  font-weight: 600;
  margin-bottom: 18px;
}
.storage-banner svg { width: 17px; height: 17px; flex: none; }
.storage-banner.is-over { background: var(--danger-soft); border-color: #f6c9ce; color: #a02a33; }

.selection-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
}
.selection-bar b { color: var(--ink); }
.selection-bar .spacer { margin-inline-start: auto; }
.link-btn {
  border: none;
  background: none;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
  font-family: inherit;
}
.link-btn:hover { text-decoration: underline; }
.check-cell { width: 34px; text-align: center; }
.check-cell input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.tag { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; display: inline-block; }
.tag--green { background: var(--success-soft); color: #0e7a54; }
.tag--gray { background: #f1f4f9; color: var(--muted); }
.tag--red { background: var(--danger-soft); color: #a02a33; }
.tag--gold { background: var(--warn-soft); color: #8a5a10; }

.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; }
.pager button {
  min-width: 34px; height: 34px;
  padding: 0 9px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.pager button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager button:hover:not(.is-active) { border-color: #cbd5e1; color: var(--ink); }

/* 24) التوست والمودال */
.toast {
  position: fixed;
  inset-inline: 0;
  bottom: 26px;
  z-index: 200;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
}
.toast__item {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(10, 19, 33, .94);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 20px 40px -20px #000;
  backdrop-filter: blur(10px);
  transform: translateY(16px);
  opacity: 0;
  transition: .3s var(--ease);
  max-width: 460px;
}
.toast__item.is-in { transform: translateY(0); opacity: 1; }
.toast__item svg { width: 17px; height: 17px; color: #6ee7b7; flex: none; }
.toast__item.is-error svg { color: #fda4af; }

.modal { position: fixed; inset: 0; z-index: 190; display: grid; place-items: center; padding: 18px; visibility: hidden; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 10, 20, .62);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .25s;
}
.modal__card {
  position: relative;
  width: min(430px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 40px 80px -30px #000;
  transform: translateY(14px) scale(.98);
  opacity: 0;
  transition: .28s var(--ease);
}
.modal.is-open { visibility: visible; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__card { transform: none; opacity: 1; }
.modal__ico {
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--danger-soft); color: var(--danger);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.modal__ico svg { width: 25px; height: 25px; }
.modal__card h3 { font-size: 19px; margin-bottom: 8px; }
.modal__card p { font-size: 13px; color: var(--muted); line-height: 1.85; }
.modal__facts {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
}
.modal__facts div { display: flex; justify-content: space-between; gap: 10px; }
.modal__facts b { color: var(--ink); }
.modal__actions { display: flex; gap: 8px; margin-top: 6px; }
.modal__actions .btn { flex: 1; }
.btn--danger { background: linear-gradient(135deg, #ef6b74, #d64550); color: #fff; }

/* 25) الحركة والاستجابة */
.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.has-reveal .reveal { opacity: 0; transform: translateY(16px); }
.has-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .grades { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: 2; }
  .hero { min-height: auto; padding-bottom: 60px; }
  .hero__content { max-width: 100%; }
  .board { width: min(100%, 420px); }
  .course-hero__grid { grid-template-columns: 1fr; }
  .course-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .about-wrap { grid-template-columns: 1fr; gap: 34px; }
  .portrait-card { max-width: 420px; margin-inline: auto; }
  .activate-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-stack { min-width: 0; }
  .panel { min-width: 0; }
  .auth { grid-template-columns: 1fr; }
  .auth__panel { display: none; }
  .auth__brand-mobile { display: flex; }
  .generate-box { grid-template-columns: 1fr 1fr; }
  .generate-box .btn { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .section { padding: 68px 0; }
  .section--tight { padding: 48px 0; }
  .cta-band { padding: 34px 26px; }
  .strip__inner { gap: 16px 22px; }
  .steps { grid-template-columns: 1fr; }
  .hero__stats { gap: 20px; }
  .float-card--a { top: 72px; inset-inline-end: -6px; }
  .float-card--b { inset-inline-start: -6px; bottom: 118px; }
}

@media (max-width: 680px) {
  .float-card { display: none; }
  .strip { padding: 14px 0; }
  .strip__inner { gap: 10px 16px; }
  .strip__item { font-size: 12px; }
  .strip__dot { display: none; }
  :root { --header-h: 66px; }
  .wrap { width: calc(100% - 32px); }
  .site-header__actions .btn--ghost { display: none; }
  .brand__mark { width: 40px; height: 40px; border-radius: 12px; }
  .brand__text strong { font-size: 15px; }
  .brand__text small { font-size: 9.5px; }
  .hero { padding-top: calc(var(--header-h) + 42px); }
  .hero__title { margin: 16px 0 14px; }
  .hero__pills { gap: 6px; margin: 18px 0 24px; }
  .pill { height: 31px; font-size: 11.5px; padding: 0 10px; }
  .hero__actions .btn { flex: 1; min-width: 140px; }
  .hero__stats { gap: 18px 26px; margin-top: 30px; }
  .hero__stat b { font-size: 20px; }
  .board { aspect-ratio: 4 / 4.4; padding: 18px; }
  .float-card--a { top: 18px; }
  .float-card--b { bottom: 104px; }
  .section-head { margin-bottom: 28px; }
  .features, .courses-grid, .grades { grid-template-columns: 1fr; }
  .grades { gap: 10px; }
  .grade-card { padding: 18px; }
  .grade-card__num { font-size: 48px; top: 8px; }
  .course-row { gap: 11px; padding: 9px; }
  .course-row__thumb { width: 96px; height: 96px; border-radius: 10px; }
  .course-row h3 { font-size: 13.5px; }
  .course-row__side { display: none; }
  .course-row__meta { gap: 8px; font-size: 10.5px; }
  .filters { padding: 10px; gap: 9px; }
  .search { min-width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .stat-card { padding: 14px; }
  .stat-card b { font-size: 19px; }
  .stats-grid { gap: 10px; }
  .panel { padding: 16px; }
  .dash-head { padding: 24px 0 22px; }
  .auth__form-side { padding: 30px 20px 44px; align-items: flex-start; }
  .auth__form-wrap h1 { font-size: 23px; }
  .code-card, .pay-card { padding: 20px; }
  .code-input { height: 56px; font-size: 20px; letter-spacing: 4px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 32px; }
  .site-footer { padding-top: 44px; }
  .footer__bar { justify-content: center; text-align: center; }
  .cta-band { padding: 28px 22px; border-radius: 20px; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1; }
  .wa-float { width: 50px; height: 50px; inset-inline-start: 14px; bottom: 14px; }
  .wa-float svg { width: 23px; height: 23px; }
  .page-head { padding: 30px 0 26px; }
  .course-hero { padding: 26px 0 32px; }
  .lesson__head { padding: 12px 13px; gap: 9px; }
  .generate-box { grid-template-columns: 1fr; }
  .selection-bar { font-size: 11.5px; }
  .modal__actions { flex-direction: column-reverse; }
  .toast { bottom: 80px; }
  .auth__form-wrap { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- صفحات قانونية و404 ---------- */
.legal { max-width: 780px; margin-inline: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; box-shadow: var(--shadow-sm); }
.legal h2 { font-size: 18px; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 14.5px; line-height: 2; color: var(--ink-2); }
.legal ul { padding-inline-start: 22px; margin: 6px 0; list-style: disc; }
.legal a { color: var(--brand); font-weight: 700; }
.legal__note { background: var(--warn-soft); border: 1px solid #f6d9a8; border-radius: var(--r-sm); padding: 10px 14px; font-size: 13px !important; font-weight: 600; margin-bottom: 4px; }
.legal__contact { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.notfound { text-align: center; max-width: 520px; margin-inline: auto; padding: 24px 0; }
.notfound__code { font-size: clamp(84px, 18vw, 140px); font-weight: 900; line-height: 1; color: var(--brand); letter-spacing: -2px; }
.notfound h2 { font-size: 24px; margin: 10px 0 8px; }
.notfound p { color: var(--muted); font-size: 14.5px; }
.notfound__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 640px) {
  .legal { padding: 22px 18px; }
  .section:has(.legal), .section:has(.notfound) { padding: 40px 0 56px; }
}

/* ---------- شريط المشغّل على الموبايل: عنوان الدرس كامل ---------- */
@media (max-width: 520px) {
  .player__now { flex: 1 1 100%; align-items: flex-start; line-height: 1.7; }
  .player__now .live-dot { margin-top: 7px; }
  .player__now b { white-space: normal; overflow: visible; text-overflow: clip; }
}
