/* ═══════════════════════════════════════════════════════════════
   منصة عمر عقل — واجهة الموقع العام "محطة الميدان"
   الهيدر · الهيرو · الأقسام · الصفوف · الفوتر · صفحات الدخول
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────
   1) الأجواء الخلفية
   ─────────────────────────────────────────────────────────────── */
.lg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.lg-ambient__orbit {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
}
.lg-ambient__orbit--a {
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  top: -14vw; inset-inline-end: -10vw;
  background: radial-gradient(circle, var(--life-500), transparent 68%);
  animation: lgDrift 26s var(--ease) infinite alternate;
}
.lg-ambient__orbit--b {
  width: 38vw; height: 38vw; max-width: 520px; max-height: 520px;
  top: 42vh; inset-inline-start: -12vw;
  background: radial-gradient(circle, var(--aqua-500), transparent 68%);
  animation: lgDrift 32s var(--ease) infinite alternate-reverse;
}
.lg-ambient__orbit--c {
  width: 30vw; height: 30vw; max-width: 420px; max-height: 420px;
  bottom: -10vw; inset-inline-end: 18vw;
  background: radial-gradient(circle, var(--earth-500), transparent 70%);
  opacity: .35;
  animation: lgDrift 38s var(--ease) infinite alternate;
}
.lg-ambient__contour {
  position: absolute;
  inset: 0;
  background: var(--contour) 0 0 / 220px 220px;
  opacity: .5;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%);
}
.lg-ambient__helix {
  position: absolute;
  top: 12vh;
  inset-inline-start: 4%;
  width: 40px;
  height: 60vh;
  background: var(--helix) 0 0 / 40px 120px repeat-y;
  opacity: .28;
  animation: lgHelix 18s linear infinite;
}
@keyframes lgDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-4%, 5%, 0) scale(1.12); }
}
@keyframes lgHelix {
  from { background-position-y: 0; }
  to   { background-position-y: 120px; }
}
.student-perf-lite .lg-ambient,
.android-native-app .lg-ambient { display: none; }

/* ───────────────────────────────────────────────────────────────
   2) الأزرار
   ─────────────────────────────────────────────────────────────── */
.lg-btn {
  --btn-h: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.lg-btn:active { transform: translateY(1px) scale(.99); }
.lg-btn--lg { --btn-h: 54px; padding: 0 30px; font-size: 16.5px; }
.lg-btn--sm { --btn-h: 38px; padding: 0 16px; font-size: 13.5px; }
.lg-btn--block { display: flex; width: 100%; }
.lg-btn svg { width: 18px; height: 18px; flex: none; }

.lg-btn--solid {
  background: var(--btn-solid-bg);
  color: var(--btn-solid-text);
  box-shadow: 0 8px 22px -10px rgba(0, 168, 120, .8);
}
.lg-btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(0, 168, 120, .85);
}

.lg-btn--gold {
  background: var(--btn-gold-bg);
  color: var(--btn-gold-text);
  box-shadow: 0 8px 22px -10px rgba(226, 128, 58, .8);
}
.lg-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(226, 128, 58, .9);
}

.lg-btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-strong);
}
.lg-btn--outline:hover {
  border-color: var(--life-500);
  color: var(--life-700);
  background: var(--insight-soft);
  transform: translateY(-2px);
}
html[data-theme="dark"] .lg-btn--outline:hover { color: var(--life-300); }

.lg-btn--ghost {
  background: var(--surface-soft);
  color: var(--text-strong);
  border-color: transparent;
}
.lg-btn--ghost:hover {
  background: var(--insight-soft);
  color: var(--life-700);
}
html[data-theme="dark"] .lg-btn--ghost:hover { color: var(--life-300); }

/* ───────────────────────────────────────────────────────────────
   3) الهيدر — شريط زجاجي لاصق
   ─────────────────────────────────────────────────────────────── */
.lg-hdr {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--hdr-bg);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--hdr-border);
}
.student-perf-lite .lg-hdr { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--card-bg); }

/* الشريط العلوي — بيانات المدرس */
.lg-hdr__top {
  background: var(--grad-plate);
  color: var(--on-dark);
  font-size: 12.5px;
  overflow: hidden;
}
.lg-hdr__topInner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 34px;
  padding-block: 4px;
}
.lg-hdr__tagAr {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--life-300);
}
.lg-hdr__tagAr::before,
.lg-hdr__tagAr::after {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-spectrum);
  opacity: .8;
}

.lg-hdr__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding-block: 10px;
}

/* الشعار */
.lg-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-inline-end: auto;
  min-width: 0;
}
.lg-brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  background: transparent;
  clip-path: none;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 42, 34, .12);
  transition: transform .3s var(--ease-bounce);
}
.lg-brand:hover .lg-brand__mark { transform: scale(1.06); }
.lg-brand__mark .lg-brand__logo,
.lg-brand__logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
}
.lg-brand__logoFallback {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.lg-brand__text { display: grid; gap: 1px; min-width: 0; }
.lg-brand__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-strong);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lg-brand__sub {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--life-600);
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-theme="dark"] .lg-brand__sub { color: var(--life-400); }
.lg-brand__feet { display: none; }

/* روابط الهيدر */
.lg-hdr__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lg-hdr__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-end: 6px;
}
.lg-hdr__link {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted-strong);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.lg-hdr__link:hover { color: var(--life-700); background: var(--insight-soft); }
html[data-theme="dark"] .lg-hdr__link:hover { color: var(--life-300); }

.lg-hdr__theme { display: inline-flex; }
.lg-hdr__mobileTheme { display: none; }

/* كبسولات المواد */
.lg-hdr__companions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-inline-end: 8px;
  margin-inline-end: 4px;
  border-inline-end: 1px solid var(--border);
}
.lg-hdr__companionMark {
  width: 32px;
  height: 35px;
  background: var(--insight-soft);
  color: var(--life-600);
  transition: transform .25s var(--ease-bounce), background-color .25s var(--ease);
}
.lg-hdr__companionMark + .lg-hdr__companionMark {
  background: var(--earth-soft);
  color: var(--earth-600);
}
.lg-hdr__companionMark:hover { transform: translateY(-3px) rotate(6deg); }
.lg-hdr__companionMark svg { width: 17px; height: 17px; }
.lg-hdr__companions img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.lg-hdr__companions img + img { margin-inline-start: -8px; }

/* زر القائمة */
.lg-burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.lg-burger span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-strong);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

.lg-drawer {
  display: none;
  padding: 0 22px 18px;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
}
.lg-drawer.is-open { display: block; animation: lgDrawerIn .25s var(--ease); }
@keyframes lgDrawerIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.lg-drawer__box { display: grid; gap: 10px; padding-top: 16px; }

/* ───────────────────────────────────────────────────────────────
   4) الهيرو — محطة الميدان
   ─────────────────────────────────────────────────────────────── */
.lg-hero {
  position: relative;
  padding: clamp(46px, 7vw, 86px) 0 clamp(56px, 8vw, 96px);
  overflow: visible;
}
.lg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  opacity: .85;
  z-index: -2;
}
.lg-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to top, var(--page-bg), transparent);
  z-index: -1;
  pointer-events: none;
}
.lg-hero__orbits { display: none; }

.lg-hero__stage {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
  position: relative;
  z-index: 1;
}

.lg-hero__copy { min-width: 0; }

/* شارة "محطة الميدان" */
.lg-hero__enLine {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 7px 16px 7px 8px;
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  font-weight: 800;
  color: var(--life-700);
}
html[data-theme="dark"] .lg-hero__enLine { color: var(--life-300); }
.lg-hero__enLine::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--life-500);
  box-shadow: 0 0 0 4px var(--insight-soft);
  animation: lgPulse 2.4s ease-in-out infinite;
}
@keyframes lgPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--insight-soft); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}

.lg-hero__brand {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.2vw, 68px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--text-strong);
}
.lg-hero__brand em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lg-hero__teacher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 18px;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 800;
  color: var(--muted-strong);
}
.lg-hero__teacherAr { font-family: var(--font-display); }

.lg-hero__desc {
  margin: 0 0 26px;
  max-width: 56ch;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 2;
  color: var(--muted-strong);
}

/* شرائط المواد */
.lg-hero__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 30px;
}
.lg-hero__skills span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-strong);
  box-shadow: var(--shadow-soft);
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.lg-hero__skills span:hover { transform: translateY(-2px); border-color: var(--life-500); }
.lg-hero__skills span::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--life-500);
}
.lg-hero__skills span:nth-child(2)::before { background: var(--earth-500); }
.lg-hero__skills span:nth-child(3)::before { background: var(--aqua-500); }
.lg-hero__skills span:nth-child(4)::before { background: var(--life-700); }
html[data-theme="dark"] .lg-hero__skills span { background: var(--card-bg); }

.lg-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* بورتريه المدرس — إطار فوتوغرافي */
.lg-hero__photo {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.lg-hero__photo::before {
  content: "";
  position: absolute;
  inset: -10% -14%;
  background: var(--contour) center / contain no-repeat;
  opacity: .55;
  z-index: -1;
  animation: lgSpin 60s linear infinite;
}
@keyframes lgSpin { to { transform: rotate(360deg); } }

.lg-hero__photo img,
.lg-hero__photoEmpty {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 28px;
  background: #0b1216;
  box-shadow: 0 28px 60px rgba(8, 18, 16, .28);
}
.lg-hero__photoEmpty {
  display: grid;
  place-items: center;
  color: var(--life-500);
  background: linear-gradient(160deg, var(--card-bg), var(--insight-soft));
}
.lg-hero__photoEmpty svg { width: 40%; height: 40%; }
.lg-hero__photoEmpty strong { display: none; }

.lg-hero__photoRing {
  position: absolute;
  inset: -5px;
  border-radius: 32px;
  background: var(--grad-spectrum);
  z-index: -1;
  opacity: .7;
  filter: blur(.4px);
}

/* بطاقات عائمة حول الصورة */
.lg-hero__tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-strong);
  white-space: nowrap;
  z-index: 2;
}
.lg-hero__tag svg { width: 16px; height: 16px; }
.lg-hero__tag--a { top: 12%; inset-inline-start: -6%; color: var(--life-700); animation: lgFloat 6s var(--ease) infinite; }
.lg-hero__tag--b { top: 46%; inset-inline-end: -8%; color: var(--earth-600); animation: lgFloat 7.5s var(--ease) infinite reverse; }
.lg-hero__tag--c { bottom: 14%; inset-inline-start: 0%; color: var(--aqua-600); animation: lgFloat 8.5s var(--ease) infinite; }
html[data-theme="dark"] .lg-hero__tag--a { color: var(--life-300); }
html[data-theme="dark"] .lg-hero__tag--b { color: var(--earth-400); }
html[data-theme="dark"] .lg-hero__tag--c { color: var(--aqua-400); }
@keyframes lgFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.student-perf-lite .lg-hero__tag { animation: none; }

.lg-hero__photoCap {
  position: absolute;
  bottom: 4px;
  inset-inline: 10%;
  display: grid;
  gap: 2px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--grad-plate);
  color: var(--on-dark);
  box-shadow: var(--shadow);
  text-align: center;
  z-index: 3;
}
.lg-hero__photoCapEn {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--life-300);
}
.lg-hero__photoCapAr {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
}

/* ───────────────────────────────────────────────────────────────
   5) رأس القسم المشترك
   ─────────────────────────────────────────────────────────────── */
.lg-section { padding: clamp(48px, 7vw, 84px) 0; position: relative; }
.lg-section__head { text-align: center; margin-bottom: clamp(28px, 4vw, 46px); }
.lg-section__en {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  background: var(--insight-soft);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--life-700);
}
html[data-theme="dark"] .lg-section__en { color: var(--life-300); }
.lg-section__title {
  font-family: var(--font-display);
  font-size: clamp(25px, 3.6vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-strong);
}
.lg-section__sub {
  margin: 12px auto 0;
  max-width: 60ch;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted-strong);
}

/* ───────────────────────────────────────────────────────────────
   6) مسار التعلّم — الطبقات
   ─────────────────────────────────────────────────────────────── */
.lg-path { padding: clamp(44px, 6vw, 76px) 0; }
.lg-path__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.lg-path__feetIco {
  display: grid;
  place-items: center;
  width: 56px;
  height: 62px;
  flex: none;
  background: var(--grad-brand);
  color: #fff;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}
.lg-path__feetIco svg { width: 28px; height: 28px; }
.lg-path__kicker {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--life-600);
}
html[data-theme="dark"] .lg-path__kicker { color: var(--life-400); }
.lg-path__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 33px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}

.lg-path__row,
.lg-path--feet .lg-path__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: none;
}
.lg-path__connector { display: none; }

.lg-path__step,
.lg-path--feet .lg-path__step {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 26px 20px 22px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.lg-path__step::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--grad-spectrum);
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform .35s var(--ease);
}
.lg-path__step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--brand-border);
}
.lg-path__step:hover::before,
.lg-path__step.is-active::before { transform: scaleX(1); }

.lg-path__foot {
  display: grid;
  place-items: center;
  width: 46px;
  height: 50px;
  background: var(--insight-soft);
  color: var(--life-600);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  transition: background-color .28s var(--ease), color .28s var(--ease);
}
.lg-path__foot svg { width: 22px; height: 22px; }
.lg-path__foot img { width: 22px; height: 22px; object-fit: contain; }
.lg-path__step:hover .lg-path__foot,
.lg-path__step.is-active .lg-path__foot {
  background: var(--grad-brand);
  color: #fff;
}
.lg-path__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
}
.lg-path__label {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  color: var(--text-strong);
}
.lg-path__hint {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ───────────────────────────────────────────────────────────────
   7) التخصصات
   ─────────────────────────────────────────────────────────────── */
.lg-guides { padding: clamp(48px, 7vw, 84px) 0; }
.lg-guides__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.lg-guide {
  position: relative;
  display: grid;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.lg-guide:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }

.lg-guide__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 148px;
  color: #fff;
  background: var(--grad-brand);
  overflow: hidden;
}
.lg-guide__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hexcell) 0 0 / 56px 97px;
  opacity: .5;
  mix-blend-mode: overlay;
}
.lg-guide__visual svg { width: 62px; height: 62px; position: relative; z-index: 1; }
.lg-guide__visual img { width: 62px; height: 62px; object-fit: contain; position: relative; z-index: 1; }

.lg-guide--geology .lg-guide__visual,
.lg-guide--plato .lg-guide__visual { background: var(--grad-gold); }
.lg-guide--integrated .lg-guide__visual { background: var(--grad-aqua); }

.lg-guide__body { padding: 22px 22px 24px; display: grid; gap: 7px; }
.lg-guide__step {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--life-600);
}
.lg-guide--geology .lg-guide__step { color: var(--earth-600); }
.lg-guide--integrated .lg-guide__step { color: var(--aqua-600); }
html[data-theme="dark"] .lg-guide__step { color: var(--life-400); }
html[data-theme="dark"] .lg-guide--geology .lg-guide__step { color: var(--earth-400); }
html[data-theme="dark"] .lg-guide--integrated .lg-guide__step { color: var(--aqua-400); }

.lg-guide__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.lg-guide__en {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
}
.lg-guide__role { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--muted-strong); }

.lg-guide__points {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.lg-guide__points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-strong);
  line-height: 1.6;
}
.lg-guide__points li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--life-500);
}
.lg-guide--geology .lg-guide__points li::before { background: var(--earth-500); }
.lg-guide--integrated .lg-guide__points li::before { background: var(--aqua-500); }

.lg-guide__quote {
  margin: 16px 0 0;
  padding: 13px 15px;
  border-radius: var(--radius);
  border-inline-start: 3px solid var(--life-500);
  background: var(--surface-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--text);
}
.lg-guide--geology .lg-guide__quote { border-inline-start-color: var(--earth-500); }
.lg-guide--integrated .lg-guide__quote { border-inline-start-color: var(--aqua-500); }

/* ───────────────────────────────────────────────────────────────
   8) الإحصائيات
   ─────────────────────────────────────────────────────────────── */
.lg-stats { padding: clamp(24px, 4vw, 44px) 0; }
.lg-stats__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--grad-plate);
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
}
.lg-stats__row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hexcell) 0 0 / 56px 97px;
  opacity: .5;
}
.lg-stats__row::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--grad-spectrum);
}
.lg-stat { position: relative; text-align: center; z-index: 1; }
.lg-stat + .lg-stat { border-inline-start: 1px solid rgba(255, 255, 255, .1); }
.lg-stat__val {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  background: var(--grad-spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lg-stat__lbl {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(234, 247, 242, .78);
}

/* ───────────────────────────────────────────────────────────────
   9) محاور المادة
   ─────────────────────────────────────────────────────────────── */
.lg-axes { padding: clamp(48px, 7vw, 84px) 0; }
.lg-axes__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.lg-axes__list li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 24px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-block-end: 3px solid var(--life-500);
  box-shadow: var(--shadow-soft);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.lg-axes__list li:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.lg-axes__list li:nth-child(2) { border-block-end-color: var(--life-700); }
.lg-axes__list li:nth-child(3) { border-block-end-color: var(--earth-500); }
.lg-axes__list li:nth-child(4) { border-block-end-color: var(--aqua-500); }

.lg-axes__ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 48px;
  margin-bottom: 6px;
  background: var(--insight-soft);
  color: var(--life-600);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}
.lg-axes__ico svg { width: 22px; height: 22px; }
.lg-axes__list li:nth-child(3) .lg-axes__ico { background: var(--earth-soft); color: var(--earth-600); }
.lg-axes__list li:nth-child(4) .lg-axes__ico { background: var(--sky-soft); color: var(--aqua-600); }

.lg-axes__n {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
}
.lg-axes__list strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-strong);
}
.lg-axes__list em {
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ───────────────────────────────────────────────────────────────
   10) المميزات
   ─────────────────────────────────────────────────────────────── */
.lg-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px;
}
.lg-feature {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px 22px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.lg-feature::after {
  content: "";
  position: absolute;
  inset-inline-end: -30px;
  top: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--insight-soft);
  transition: transform .4s var(--ease);
}
.lg-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--brand-border);
}
.lg-feature:hover::after { transform: scale(1.5); }

.lg-feature__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.lg-feature__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
}
.lg-feature__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 48px;
  background: var(--grad-brand);
  color: #fff;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}
.lg-feature__mark svg { width: 22px; height: 22px; }
.lg-feature__mark img { width: 22px; height: 22px; object-fit: contain; }
.lg-feature__ico { width: 44px; height: 44px; object-fit: contain; }
.lg-feature__title {
  position: relative;
  z-index: 1;
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  color: var(--text-strong);
}
.lg-feature__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--muted-strong);
}

/* ───────────────────────────────────────────────────────────────
   11) الصفوف الدراسية — شريط متحرك مستمر
   ─────────────────────────────────────────────────────────────── */
.lg-section--grades .container { margin-bottom: 8px; }
.lg-gradesMarquee {
  overflow: hidden;
  width: 100%;
  padding: 8px 0 18px;
  direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.lg-gradesMarquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: lgGradesMarquee var(--grades-speed, 42s) linear infinite;
}
.lg-gradesMarquee.is-paused .lg-gradesMarquee__track,
.lg-gradesMarquee:focus-within .lg-gradesMarquee__track {
  animation-play-state: paused;
}
@media (hover: hover) {
  .lg-gradesMarquee:hover .lg-gradesMarquee__track { animation-play-state: paused; }
}
.lg-gradesMarquee__group {
  display: flex;
  gap: 18px;
  padding-inline-end: 18px;
  flex: none;
}
.lg-gradesMarquee .lg-grade {
  flex: 0 0 280px;
  width: 280px;
  direction: rtl;
}
.lg-grades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 20px;
}
.lg-grades--count-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.lg-grades--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 800px; margin-inline: auto; }
.lg-grades--count-4 { grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); }

@keyframes lgGradesMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--grades-distance, 50%)), 0, 0); }
}
.lg-gradesMarquee.is-static {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  mask-image: none;
  -webkit-mask-image: none;
  padding-inline: 16px;
}
.lg-gradesMarquee.is-static .lg-gradesMarquee__track {
  animation: none;
  will-change: auto;
}
@media (min-width: 960px) {
  .lg-gradesMarquee.is-fit {
    overflow: visible;
    direction: rtl;
    padding: 4px 0 10px;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .lg-gradesMarquee.is-fit .lg-gradesMarquee__track {
    display: block;
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    animation: none !important;
    will-change: auto;
  }
  .lg-gradesMarquee.is-fit .lg-gradesMarquee__group {
    display: grid;
    grid-template-columns: repeat(var(--grades-cols, 4), minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    padding: 0 24px;
  }
  .lg-gradesMarquee.is-fit .lg-gradesMarquee__group[aria-hidden="true"] {
    display: none;
  }
  .lg-gradesMarquee.is-fit .lg-grade {
    width: auto;
    flex: none;
    min-width: 0;
  }
  .lg-section--grades .lg-gradesHint--marquee { display: none; }
}
.student-perf-lite .lg-gradesMarquee {
  overflow: hidden;
  -webkit-overflow-scrolling: auto;
}
.student-perf-lite .lg-gradesMarquee:not(.is-static) .lg-gradesMarquee__track {
  animation: lgGradesMarquee var(--grades-speed, 28s) linear infinite;
}

.lg-grade {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.lg-grade::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  z-index: 3;
  background: var(--grad-brand);
}
.lg-grade--earth::before { background: var(--grad-gold); }
.lg-grade--aqua::before { background: var(--grad-aqua); }
.lg-grade:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-strong);
  border-color: var(--brand-border);
}

.lg-grade__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--card-soft);
}
.lg-grade__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transition: transform .5s var(--ease);
}
.lg-grade:hover .lg-grade__media img { transform: none; }
.lg-grade__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 42, 34, .28), transparent 45%);
  pointer-events: none;
}
.lg-grade__mediaEmpty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--life-500);
  background: linear-gradient(150deg, var(--insight-soft), var(--sky-soft));
}
.lg-grade__mediaEmpty svg { width: 56px; height: 56px; }
.lg-grade__mediaEmpty img { width: 56px; height: 56px; object-fit: contain; }

.lg-grade__badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  inset-inline-start: 14px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  color: var(--life-700);
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}
html[data-theme="dark"] .lg-grade__badge { color: var(--life-300); }
.lg-grade--earth .lg-grade__badge { color: var(--earth-600); }
.lg-grade--aqua .lg-grade__badge { color: var(--aqua-600); }

.lg-grade__body {
  display: grid;
  gap: 12px;
  align-content: space-between;
  padding: 20px 20px 22px;
}
.lg-grade__copy { display: grid; gap: 5px; }
.lg-grade__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  color: var(--text-strong);
}
.lg-grade__hint { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.lg-grade__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
  color: var(--life-700);
  transition: gap .25s var(--ease);
}
html[data-theme="dark"] .lg-grade__cta { color: var(--life-300); }
.lg-grade--earth .lg-grade__cta { color: var(--earth-600); }
.lg-grade--aqua .lg-grade__cta { color: var(--aqua-600); }
.lg-grade:hover .lg-grade__cta { gap: 13px; }

/* ───────────────────────────────────────────────────────────────
   12) شريط الدعوة النهائي
   ─────────────────────────────────────────────────────────────── */
.lg-cta { padding: clamp(40px, 6vw, 76px) 0 clamp(56px, 8vw, 92px); }
.lg-cta__box {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(38px, 6vw, 62px) clamp(22px, 4vw, 52px);
  border-radius: var(--radius-2xl);
  background: var(--grad-plate);
  color: #fff;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.lg-cta__box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hexcell) 0 0 / 56px 97px;
  opacity: .55;
}
.lg-cta__box::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: var(--grad-spectrum);
}
.lg-cta__box > * { position: relative; z-index: 1; }

.lg-cta__faces { display: inline-flex; gap: 8px; margin-bottom: 6px; }
.lg-cta__faces .lg-hdr__companionMark {
  width: 46px;
  height: 50px;
  background: rgba(255, 255, 255, .12);
  color: var(--life-300);
}
.lg-cta__faces .lg-hdr__companionMark + .lg-hdr__companionMark { color: var(--earth-300); }
.lg-cta__faces .lg-hdr__companionMark svg { width: 22px; height: 22px; }
.lg-cta__faces img { width: 46px; height: 46px; border-radius: 50%; }
.lg-cta__faces img + img { margin-inline-start: -10px; }

.lg-cta__en {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--life-300);
}
.lg-cta__title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.lg-cta__sub {
  margin: 0 0 18px;
  max-width: 58ch;
  font-size: 15.5px;
  line-height: 1.9;
  color: rgba(234, 247, 242, .8);
}

/* ───────────────────────────────────────────────────────────────
   13) الفوتر
   ─────────────────────────────────────────────────────────────── */
.lg-footer {
  position: relative;
  margin-top: auto;
  background: var(--grad-plate);
  color: rgba(234, 247, 242, .78);
  overflow: hidden;
}
html[data-theme="dark"] .lg-footer { background: var(--ink-plate); }
.lg-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--contour) 0 0 / 220px 220px;
  opacity: .5;
  pointer-events: none;
}
.lg-footer__wave {
  position: relative;
  height: 5px;
  background: var(--grad-spectrum);
}
.lg-footer__inner { position: relative; z-index: 1; padding: clamp(38px, 5vw, 58px) 22px 26px; }

.lg-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 52px);
}

.lg-footer__logoLink {
  display: inline-grid;
  place-items: center;
  width: 78px;
  height: 78px;
  background: #fff;
  clip-path: none;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.lg-footer__logoImg { width: 78px; height: 78px; object-fit: cover; border-radius: 50%; }
html[data-theme="dark"] .lg-footer .platform-logo__img--light { display: none; }
html[data-theme="dark"] .lg-footer .platform-logo__img--dark { display: block; }
.lg-footer__logoFallback { font-family: var(--font-display); font-size: 24px; font-weight: 900; color: #fff; }
.lg-footer .lg-hdr__companions { border: 0; padding: 0; }
.lg-footer .lg-hdr__companionMark {
  width: 34px; height: 37px;
  background: rgba(255, 255, 255, .1);
  color: var(--life-300);
}
.lg-footer .lg-hdr__companionMark + .lg-hdr__companionMark { color: var(--earth-300); }
.lg-footer .lg-hdr__companions img { width: 30px; height: 30px; border-radius: 50%; }

.lg-footer__name {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}
.lg-footer__tag {
  margin: 0;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(234, 247, 242, .7);
}

.lg-footer__nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.lg-footer__nav a {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07);
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(234, 247, 242, .85);
  transition: background-color .22s var(--ease), color .22s var(--ease);
}
.lg-footer__nav a:hover { background: var(--life-600); color: #fff; }

.lg-footer__heading {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}
.lg-footer__heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad-spectrum);
}
.lg-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.lg-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(234, 247, 242, .75);
  transition: color .22s var(--ease), transform .22s var(--ease);
}
.lg-footer__link:hover { color: var(--life-300); transform: translateX(-4px); }
html[dir="rtl"] .lg-footer__link:hover { transform: translateX(4px); }
.lg-footer__linkIco { width: 20px; height: 20px; object-fit: contain; border-radius: 5px; }

.lg-footer__phones { display: grid; gap: 9px; }
.lg-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  direction: ltr;
  transition: background-color .22s var(--ease), border-color .22s var(--ease);
}
.lg-footer__phone:hover { background: rgba(0, 168, 120, .2); border-color: var(--life-500); }

.lg-footer__bottom {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.lg-footer__copy, .lg-footer__dev {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(234, 247, 242, .55);
}

/* ───────────────────────────────────────────────────────────────
   14) صفحات الدخول والتسجيل
   ─────────────────────────────────────────────────────────────── */
.auth-page { padding: clamp(30px, 5vw, 56px) 0 clamp(46px, 7vw, 78px); }

.auth-card {
  position: relative;
  border-radius: var(--radius-2xl);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  z-index: 4;
  background: var(--grad-spectrum);
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  min-height: 540px;
}

.auth-formPane {
  padding: clamp(28px, 4vw, 46px) clamp(22px, 4vw, 48px);
  display: grid;
  align-content: center;
  gap: 4px;
}
.auth-step { display: none; }

.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head__logo {
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 16px;
  background: transparent;
  clip-path: none;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.auth-head__logo img { width: 88px; height: 88px; object-fit: cover; }
.auth-head__logoFallback {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.auth-head__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 33px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.auth-head__sub {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
}

.auth-form { display: grid; gap: 15px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }

.field { display: grid; gap: 7px; }
.label { font-size: 13.5px; font-weight: 800; color: var(--text-strong); }
.hint { font-size: 12.5px; color: var(--muted); }

.input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--field-border);
  background: var(--field-bg);
  color: var(--field-text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease);
}
.input::placeholder { color: var(--muted); opacity: .75; font-weight: 500; }
.input:focus {
  outline: none;
  border-color: var(--field-focus);
  box-shadow: 0 0 0 4px var(--insight-soft);
}
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: left 20px center, left 15px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
html[dir="rtl"] select.input { background-position: left 20px center, left 15px center; }

.btn-submit {
  min-height: 54px;
  margin-top: 6px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--btn-solid-bg);
  color: var(--btn-solid-text);
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 26px -12px rgba(0, 168, 120, .9);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(0, 168, 120, .95); }
.btn-submit:active { transform: translateY(0); }

.auth-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 14px;
  color: var(--muted);
}
.auth-link {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--life-700);
  transition: color .2s var(--ease);
}
.auth-link:hover { color: var(--life-500); text-decoration: underline; text-underline-offset: 4px; }
html[data-theme="dark"] .auth-link { color: var(--life-300); }

/* اللوحة الجانبية */
.auth-imgPane {
  position: relative;
  display: grid;
  overflow: hidden;
  background: var(--grad-plate);
  min-height: 100%;
}
.auth-imgPane::before {
  content: none;
}
.auth-imgPane--register::before { opacity: .4; }
.auth-imgPane__symbols { display: none; }

.auth-img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
}
.auth-imgFallback {
  grid-area: 1 / 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 36px;
  text-align: center;
}
.auth-imgFallback__hero {
  display: grid;
  place-items: center;
  width: 110px;
  height: 120px;
  background: rgba(255, 255, 255, .1);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 900;
  color: var(--life-300);
}
.auth-imgFallback p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
  color: rgba(234, 247, 242, .75);
}

.auth-imgPane__brand {
  position: absolute;
  z-index: 3;
  inset-inline: 24px;
  bottom: 24px;
  display: grid;
  gap: 4px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: rgba(4, 19, 15, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1);
}
.auth-imgPane__brand strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  color: #fff;
}
.auth-imgPane__brand span { font-size: 13px; font-weight: 600; color: var(--life-300); }

.auth-imgPane__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.auth-imgPane__chips span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1);
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(234, 247, 242, .88);
}
.auth-imgPane__chips span svg { width: 14px; height: 14px; }
.auth-imgPane__chips span:nth-child(2) { color: var(--earth-300); }
.auth-imgPane__chips span:nth-child(3) { color: var(--aqua-300); }

/* ───────────────────────────────────────────────────────────────
   15) التنبيهات
   ─────────────────────────────────────────────────────────────── */
.phy-alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-weight: 700;
}

.phy-toast {
  position: fixed;
  z-index: 12000;
  inset-inline: 16px;
  top: 18px;
  max-width: 460px;
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  animation: lgToastIn .35s var(--ease-bounce);
}
@keyframes lgToastIn { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
.phy-toast--top { top: 18px; }
.phy-toast--success { border-color: var(--success-soft-border); }
.phy-toast--error { border-color: var(--danger-soft-border); }

.phy-toast__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 37px;
  flex: none;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  background: var(--danger);
}
.phy-toast--success .phy-toast__icon { background: var(--success); }

.phy-toast__body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.phy-toast__title { font-family: var(--font-display); font-size: 15px; font-weight: 900; color: var(--text-strong); }
.phy-toast__msg, .phy-toast__list {
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted-strong);
}
.phy-toast__list { padding-inline-start: 18px; }

.phy-toast__close {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.phy-toast__close:hover { background: var(--danger-soft-bg); color: var(--danger); }

.phy-toast__progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--surface-soft); }
.phy-toast__progress span {
  display: block;
  height: 100%;
  background: var(--grad-spectrum);
  animation: lgToastBar linear forwards;
  animation-duration: inherit;
}
@keyframes lgToastBar { from { width: 100%; } to { width: 0; } }
.phy-toast.is-leaving { opacity: 0; transform: translateY(-14px); transition: opacity .3s var(--ease), transform .3s var(--ease); }

/* ───────────────────────────────────────────────────────────────
   16) الشريط المتحرك
   ─────────────────────────────────────────────────────────────── */
.lg-strip {
  overflow: hidden;
  padding: 14px 0;
  background: var(--grad-plate);
  border-block: 1px solid var(--border);
}
.lg-strip__inner {
  display: flex;
  gap: 44px;
  white-space: nowrap;
  animation: lgMarquee 32s linear infinite;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: rgba(234, 247, 242, .7);
}
html[dir="rtl"] .lg-strip__inner { animation-direction: reverse; }
@keyframes lgMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.student-perf-lite .lg-strip__inner { animation: none; }

/* ───────────────────────────────────────────────────────────────
   17) الاستجابة
   ─────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .lg-guides__grid { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
  .lg-axes__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-path__row, .lg-path--feet .lg-path__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .lg-hdr__nav { display: none; }
  .lg-hdr__mobileTheme { display: inline-flex; flex: none; margin-inline-start: 0; }
  .lg-burger { display: flex; flex: none; width: 40px; height: 40px; }

  .lg-hdr__bar {
    gap: 8px;
    min-height: 58px;
    padding-block: 8px;
  }
  .lg-brand {
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    margin-inline-end: 0;
  }
  .lg-brand__mark,
  .lg-brand__mark .lg-brand__logo,
  .lg-brand__logo,
  .lg-brand__logoFallback {
    width: 40px;
    height: 40px;
  }
  .lg-brand__name {
    font-size: 15px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
  }

  .lg-hero__stage { grid-template-columns: 1fr; text-align: center; }
  .lg-hero__copy { justify-items: center; }
  .lg-hero__teacher, .lg-hero__skills, .lg-hero__actions { justify-content: center; }
  .lg-hero__desc { margin-inline: auto; }
  .lg-hero__photo { order: -1; width: min(100%, 320px); }
  .lg-hero__tag--a { inset-inline-start: -2%; }
  .lg-hero__tag--b { inset-inline-end: -2%; }
  .lg-hero__tag--c { inset-inline-start: 2%; }

  .auth-grid { grid-template-columns: 1fr; min-height: 0; }
  .auth-imgPane { min-height: 220px; order: -1; }
  .auth-imgPane__brand { inset-inline: 16px; bottom: 16px; }

  .lg-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .lg-hero__stage { padding: 0 16px; }
  .lg-stats__row { grid-template-columns: 1fr; gap: 22px; padding: 24px 20px; }
  .lg-stat + .lg-stat { border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; }
  .lg-footer__inner { padding-inline: 16px; }
  .lg-hdr__top { display: none; }
}

@media (max-width: 560px) {
  .lg-axes__list,
  .lg-path__row,
  .lg-path--feet .lg-path__row { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .lg-grades--count-2 { grid-template-columns: 1fr; }
  .lg-brand__sub { display: none; }
  .lg-hdr .container { padding-inline: 12px; }
  .lg-brand__name {
    font-size: 14.5px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.3;
  }
  .lg-hero__tag { display: none; }
  .lg-cta__box { padding-inline: 20px; }
  .lg-footer__bottom { justify-content: center; text-align: center; }
  .lg-gradesMarquee .lg-grade { flex-basis: 240px; width: 240px; }
  .lg-gradesMarquee {
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-gradesMarquee__track { animation: none !important; }
}

/* كتالوج كورسات الصف */
.lg-gradePage { padding: 28px 0 64px; }
.lg-gradePage__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--life-700);
  font-weight: 800;
  text-decoration: none;
}
html[data-theme="dark"] .lg-gradePage__back { color: var(--life-300); }
.lg-pubCourses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.lg-pubCourse {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.lg-pubCourse__cover {
  aspect-ratio: 16 / 10;
  background: var(--card-soft);
  overflow: hidden;
}
.lg-pubCourse__cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
}
.lg-pubCourse__fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: var(--life-600);
  background: linear-gradient(150deg, var(--insight-soft), var(--sky-soft));
}
.lg-pubCourse__body { display: grid; gap: 10px; padding: 18px 18px 20px; align-content: start; }
.lg-pubCourse__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-strong);
}
.lg-pubCourse__details {
  margin: 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lg-pubCourse__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lg-pubCourse__lock {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-strong);
}
.lg-pubCourse__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.lg-pubCourse__empty {
  padding: 28px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--muted-strong);
  font-weight: 800;
  line-height: 1.9;
  text-align: center;
}

/* Desktop only: make register image pane match source ratio */
@media (min-width: 901px) {
  .auth-imgPane--register {
    aspect-ratio: 767 / 1024;
    min-height: 0;
  }
}
