/* ═══════════════════════════════════════════════════════════════
   تاتا تاتا — واجهة فاتحة أولاً · خطوة بخطوة · مرشدون كلمسة فقط
   ═══════════════════════════════════════════════════════════════ */

@keyframes mpFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mpPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 138, 150, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(13, 138, 150, 0); }
}

.lg-ambient { display: none; }

/* Buttons */
.lg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease), filter .2s, background .2s, border-color .2s, color .2s;
}
.lg-btn--lg { padding: 14px 28px; font-size: 16px; }
.lg-btn--block { width: 100%; }
.lg-btn--solid { background: var(--btn-solid-bg); color: var(--btn-solid-text); }
.lg-btn--solid:hover { filter: brightness(1.08); transform: translateY(-1px); }
.lg-btn--gold { background: var(--btn-gold-bg); color: var(--btn-gold-text); }
.lg-btn--gold:hover { filter: brightness(1.05); transform: translateY(-1px); }
.lg-btn--outline {
  background: transparent; color: var(--text-strong);
  border-color: var(--border-strong);
}
.lg-btn--outline:hover { border-color: var(--insight); color: var(--insight-strong); background: var(--insight-soft); }
.lg-btn--ghost { background: transparent; color: var(--text-strong); }
.lg-btn--ghost:hover { background: var(--surface-soft); }

/* Header — light */
.lg-hdr {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--hdr-bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hdr-border);
}
.lg-hdr__top {
  background: var(--insight);
  color: #fff;
}
.lg-hdr__topInner {
  display: flex; align-items: center; justify-content: center;
  min-height: 30px; padding: 5px 0;
}
.lg-hdr__tagAr {
  font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #fff;
}
.lg-hdr__bar {
  display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 8px 0;
}
.lg-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; min-width: 0;
}
.lg-brand__mark {
  width: 56px; height: 56px; flex: none;
  display: grid; place-items: center;
  background: transparent; border: none;
}
.lg-brand__mark .lg-brand__logo {
  width: 56px; height: 56px; object-fit: contain;
}
.lg-brand__logo { width: 100%; height: 100%; object-fit: contain; }
.lg-brand__logoFallback {
  font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--insight);
}
.lg-brand__text { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.lg-brand__name {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--text-strong); line-height: 1.2;
  display: inline-flex; align-items: center; gap: 6px;
}
.lg-brand__feet { width: 16px; height: 16px; opacity: .55; }
.lg-brand__sub { font-size: 12px; font-weight: 600; color: var(--insight-strong); }
.lg-hdr__nav { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lg-hdr__theme { display: inline-flex; }
.lg-hdr__mobileTheme { display: none; }
.lg-hdr__companions {
  display: flex; align-items: center; margin-inline-end: 4px;
}
.lg-hdr__companions img {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 2px solid var(--card-bg-strong); background: var(--page-bg-alt);
}
.lg-hdr__companions img + img { margin-inline-start: -8px; }
.lg-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 10px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--card-bg-strong); cursor: pointer;
}
.lg-burger span { display: block; height: 2px; background: var(--text-strong); border-radius: 2px; }
.lg-drawer {
  display: none; max-height: 0; overflow: hidden;
  background: var(--card-bg); border-top: 1px solid var(--border);
  transition: max-height .3s var(--ease);
}
.lg-drawer.is-open { max-height: 280px; }
.lg-drawer__box { display: grid; gap: 10px; padding: 16px 20px 20px; }

/* Hero — LIGHT composition */
.lg-hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: flex; align-items: center;
  background:
    linear-gradient(120deg, var(--page-bg) 0%, var(--page-bg-alt) 55%, color-mix(in srgb, var(--insight) 12%, var(--page-bg)) 100%);
  overflow: hidden;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.lg-hero__orbits { display: none; }
.lg-hero__stage {
  width: 100%; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center;
  gap: 40px; padding: 48px 20px 56px;
  animation: mpFadeUp .6s var(--ease) both;
}
.lg-hero__copy {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  color: var(--text);
}
.lg-hero__enLine {
  margin: 0; font-size: 14px; font-weight: 700;
  letter-spacing: normal; text-transform: none; color: var(--insight-strong);
}
.lg-hero__brand {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px); font-weight: 600;
  line-height: 1.12; color: var(--text-strong);
}
.lg-hero__teacher {
  margin: 0; font-size: 16px; font-weight: 600; color: var(--muted-strong);
}
.lg-hero__teacherAr { display: none; }
.lg-hero__desc {
  margin: 0; max-width: 460px; font-size: 16px; line-height: 1.85; color: var(--muted-strong);
}
.lg-hero__skills {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0;
}
.lg-hero__skills span {
  padding: 6px 12px; border-radius: 999px;
  background: var(--insight-soft); color: var(--insight-strong);
  font-size: 13px; font-weight: 700; border: 0;
}
.lg-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.lg-hero__photo {
  position: relative; display: grid; place-items: center;
}
.lg-hero__photo img,
.lg-hero__photoEmpty {
  width: min(480px, 88vw); height: min(480px, 88vw);
  object-fit: cover; object-position: center top;
  border-radius: 50%;
  border: 4px solid var(--card-bg-strong);
  box-shadow: 0 0 0 1px var(--border), var(--shadow-strong);
  background: var(--page-bg-alt);
}
.lg-hero__photoEmpty {
  display: grid; place-items: center; gap: 8px; text-align: center; color: var(--muted);
}
.lg-hero__photoEmpty strong {
  font-family: var(--font-display); font-size: 40px; color: var(--insight);
}
.lg-hero__photoCap {
  margin-top: 14px; text-align: center;
}
.lg-hero__photoCapEn {
  display: block; font-size: 13px; font-weight: 700;
  letter-spacing: normal; text-transform: none; color: var(--insight-strong);
}
.lg-hero__photoCapAr {
  display: block; font-size: 17px; font-weight: 800; color: var(--text-strong);
}

/* Path — light timeline */
.lg-path,
.lg-path--feet {
  padding: 40px 0 48px;
  background: var(--card-bg-strong);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.lg-path__head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.lg-path__feetIco {
  width: 48px; height: 48px; object-fit: contain; opacity: .7;
}
.lg-path__kicker {
  margin: 0 0 4px; font-size: 14px; font-weight: 700;
  letter-spacing: normal; text-transform: none; color: var(--insight-strong);
}
.lg-path__title {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px); font-weight: 600; color: var(--text-strong);
}
.lg-path__row,
.lg-path--feet .lg-path__row {
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 0;
}
.lg-path__step,
.lg-path--feet .lg-path__step {
  flex: 1 1 140px; max-width: 210px;
  padding: 16px 12px; text-align: center;
  border: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: mpFadeUp .5s var(--ease) both;
}
.lg-path__foot {
  width: 36px; height: 36px; opacity: .45;
}
.lg-path__foot img { width: 100%; height: 100%; object-fit: contain; }
.lg-path__step.is-active .lg-path__foot { opacity: .9; }
.lg-path__num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--insight-soft); border: 2px solid var(--insight);
  font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--insight-strong);
}
.lg-path__step.is-active .lg-path__num {
  background: var(--insight); color: #fff; animation: mpPulse 2.4s ease-in-out infinite;
}
.lg-path__label { font-size: 15px; font-weight: 800; color: var(--text-strong); }
.lg-path__hint { font-size: 12px; color: var(--muted); line-height: 1.5; }
.lg-path__connector {
  width: 24px; height: 2px; align-self: center; margin-top: -20px;
  background: var(--border-strong); flex: 0 0 24px;
}

/* Guides — light, elegant */
.lg-guides {
  padding: 64px 0;
  background: var(--page-bg);
}
.lg-guides__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
}
.lg-guide {
  display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center;
  padding: 20px;
  background: var(--card-bg-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.lg-guide__visual {
  width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--insight); background: var(--page-bg-alt);
}
.lg-guide--plato .lg-guide__visual { border-color: var(--gold-500); }
.lg-guide__visual img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.lg-guide__step {
  margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--insight-strong);
}
.lg-guide__name {
  margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--text-strong);
}
.lg-guide__en { margin: 2px 0 8px; font-size: 13px; color: var(--muted); }
.lg-guide__role { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--text); }
.lg-guide__quote {
  margin: 0; border: 0; padding: 0;
  font-family: var(--font-display); font-size: 16px; font-style: italic;
  color: var(--muted-strong); line-height: 1.65;
}

/* Axes */
.lg-axes { padding: 48px 0 56px; background: var(--card-bg); }
.lg-axes__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.lg-axes__list li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 16px;
  background: var(--card-bg-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-block-start: 3px solid var(--insight);
}
.lg-axes__n {
  font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--insight);
}
.lg-axes__list strong {
  font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text-strong);
}
.lg-axes__list em {
  font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.55;
}

/* Stats */
.lg-stats {
  padding: 28px 0; background: var(--page-bg); border-bottom: 1px solid var(--border);
}
.lg-stats__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lg-stat {
  text-align: center; padding: 16px;
  background: var(--card-bg-strong); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.lg-stat__val {
  font-family: var(--font-display); font-size: 40px; font-weight: 600; color: var(--text-strong);
}
.lg-stat__lbl { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* Strip */
.lg-strip {
  overflow: hidden; padding: 12px 0;
  background: var(--insight); color: #fff;
}
.lg-strip__inner {
  display: flex; gap: 36px; width: max-content;
  animation: mpStrip 32s linear infinite;
  font-family: var(--font-display); font-size: 15px; font-weight: 600; white-space: nowrap;
}
@keyframes mpStrip { to { transform: translateX(50%); } }
html[dir="rtl"] .lg-strip__inner { animation-name: mpStripRtl; }
@keyframes mpStripRtl { to { transform: translateX(-50%); } }
.student-perf-lite .lg-strip__inner { animation: none; }

/* Sections */
.lg-section { padding: 64px 0; background: var(--page-bg); }
.lg-section--features { background: var(--card-bg); }
.lg-section--grades { background: var(--page-bg); }
.lg-section__head { text-align: center; margin-bottom: 36px; }
.lg-section__en {
  margin: 0 0 8px; font-size: 14px; font-weight: 700;
  letter-spacing: normal; text-transform: none; color: var(--insight-strong);
}
.lg-section__title {
  margin: 0 0 8px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 3.4vw, 36px); color: var(--text-strong);
}
.lg-section__sub { margin: 0; color: var(--muted-strong); font-size: 15px; }
.lg-section__rule {
  display: block; width: 48px; height: 3px; margin: 16px auto 0;
  background: var(--insight); border-radius: 2px;
}

.lg-features {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.lg-feature {
  padding: 22px 20px;
  background: var(--card-bg-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.lg-feature__top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.lg-feature__num { font-size: 12px; font-weight: 800; color: var(--insight-strong); }
.lg-feature__mark {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: var(--insight-soft); color: var(--insight-strong);
  font-family: var(--font-display); font-weight: 700;
}
.lg-feature__mark img { width: 20px; height: 20px; object-fit: contain; opacity: .75; }
.lg-feature__ico { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; }
.lg-feature__title {
  margin: 0 0 8px; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text-strong);
}
.lg-feature__text { margin: 0; color: var(--muted-strong); font-size: 14px; line-height: 1.75; }

.lg-grades {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.lg-grades--count-1 { grid-template-columns: minmax(0, 380px); justify-content: center; }
.lg-grades--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; }
.lg-grades--count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lg-grade {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--card-bg-strong); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform .2s, box-shadow .2s;
}
.lg-grade:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lg-grade__media { position: relative; aspect-ratio: 16/10; background: var(--page-bg-alt); overflow: hidden; }
.lg-grade__media img { width: 100%; height: 100%; object-fit: cover; }
.lg-grade__mediaEmpty {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 42px; color: var(--insight); background: var(--page-bg-alt);
}
.lg-grade__mediaEmpty img { width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: .85; }
.lg-grade__badge {
  position: absolute; top: 10px; inset-inline-start: 10px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--card-bg-strong); color: var(--insight-strong);
  font-size: 11px; font-weight: 800; border: 1px solid var(--border);
}
.lg-grade__body {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px;
}
.lg-grade__name {
  margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text-strong);
}
.lg-grade__hint { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.lg-grade__cta {
  flex: none; padding: 7px 12px; border-radius: 999px;
  background: var(--insight-soft); color: var(--insight-strong);
  font-size: 12px; font-weight: 800;
}

/* CTA — soft, not heavy black */
.lg-cta { padding: 24px 0 72px; background: var(--page-bg); }
.lg-cta__box {
  text-align: center; padding: clamp(32px, 4vw, 48px) 24px;
  background: linear-gradient(145deg, var(--insight-soft), var(--card-bg-strong) 40%, var(--gold-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.lg-cta__box::before { display: none; }
.lg-cta__faces {
  display: flex; justify-content: center; margin-bottom: 14px;
}
.lg-cta__faces img {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 2px solid var(--card-bg-strong); box-shadow: var(--shadow-soft);
}
.lg-cta__faces img + img { margin-inline-start: -12px; }
.lg-cta__en {
  margin: 0 0 8px; font-size: 14px; font-weight: 700;
  letter-spacing: normal; text-transform: none; color: var(--insight-strong);
}
.lg-cta__title {
  margin: 0 0 10px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 3vw, 34px); color: var(--text-strong);
}
.lg-cta__sub {
  margin: 0 auto 20px; max-width: 480px; color: var(--muted-strong); font-size: 15px; line-height: 1.75;
}

/* Footer */
.lg-footer {
  background: var(--text-strong);
  color: rgba(255, 252, 247, 0.78);
}
html[data-theme="dark"] .lg-footer { background: #070A0E; }
.lg-footer__wave {
  height: 3px; background: linear-gradient(90deg, var(--insight), var(--gold-500), var(--insight));
}
.lg-footer__inner { padding: 44px 20px 22px; }
.lg-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.lg-footer__logoLink { display: inline-flex; margin-bottom: 10px; }
.lg-footer__logoImg {
  width: 72px; height: 72px; object-fit: contain; border-radius: 50%;
  border: none; background: transparent;
}
/* خلفية الفوتر داكنة في الوضعين، لذا يُستخدم الشعار الفاتح دائماً */
.lg-footer .platform-logo__img--light,
html[data-theme="dark"] .lg-footer .platform-logo__img--light { display: none !important; }
.lg-footer .platform-logo__img--dark,
html[data-theme="dark"] .lg-footer .platform-logo__img--dark { display: block !important; }
.lg-footer .lg-hdr__companions img {
  width: 40px; height: 40px;
  border-color: rgba(198, 163, 90, .55);
  background: rgba(255, 252, 247, .1);
}
.lg-footer__logoFallback {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #3DD0DC;
  font-family: var(--font-display); font-weight: 700; border: 2px solid rgba(61,208,220,.35);
}
.lg-footer__name {
  margin: 0 0 8px; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #fff;
}
.lg-footer__tag { margin: 0 0 14px; line-height: 1.75; max-width: 340px; }
.lg-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.lg-footer__nav a { color: rgba(255,252,247,.85); font-weight: 600; font-size: 14px; }
.lg-footer__nav a:hover { color: #fff; }
.lg-footer__heading { margin: 0 0 12px; font-size: 14px; font-weight: 800; color: #3DD0DC; }
.lg-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lg-footer__link {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,252,247,.78); font-weight: 500;
}
.lg-footer__link:hover { color: #fff; }
.lg-footer__linkIco { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }
.lg-footer__phones { display: grid; gap: 8px; }
.lg-footer__phone { color: rgba(255,252,247,.85); font-weight: 700; direction: ltr; justify-self: start; }
.lg-footer__bottom {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
}
.lg-footer__copy, .lg-footer__dev { margin: 0; font-size: 12px; color: rgba(255,252,247,.45); }

/* Auth — admin image only, no character backgrounds */
.auth-page { padding: 36px 0 64px; position: relative; z-index: 1; }
.auth-card {
  overflow: hidden; background: var(--card-bg-strong);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.auth-formPane { padding: 40px 36px; background: var(--card-bg-strong); }
.auth-step { display: none; }
.auth-head { text-align: start; margin-bottom: 22px; }
.auth-head__logo {
  width: 64px; height: 64px; margin: 0 0 12px;
  display: grid; place-items: center;
  background: transparent; border: 0; color: var(--insight);
}
.auth-head__logo img { width: 100%; height: 100%; object-fit: contain; }
.auth-head__logoFallback { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.auth-head__title {
  font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--text-strong);
}
.auth-head__sub { color: var(--muted-strong); margin-top: 8px; font-size: 14px; line-height: 1.75; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-weight: 700; font-size: 13px; color: var(--text-strong); }
.input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--field-border); background: var(--field-bg); color: var(--field-text);
  font-family: inherit; font-size: 15px;
}
.input:focus { outline: none; border-color: var(--insight); box-shadow: 0 0 0 3px var(--insight-soft); }
.btn-submit {
  margin-top: 4px; width: 100%; padding: 14px 18px; border: none; border-radius: 999px;
  background: var(--btn-gold-bg); color: var(--btn-gold-text);
  font-family: var(--font-body); font-weight: 800; font-size: 15px; cursor: pointer;
}
.btn-submit:hover { filter: brightness(1.05); }
.auth-foot { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.auth-link {
  color: var(--insight-strong); font-weight: 800; cursor: pointer;
  background: none; border: 0; padding: 0; font: inherit;
}

.auth-imgPane,
.auth-imgPane--plato,
.auth-imgPane--register {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  min-height: 100%;
  background: var(--page-bg-alt) !important;
  padding: 0 !important;
}
.auth-imgPane__symbols { display: none !important; }
.auth-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; max-width: none; max-height: none;
  object-fit: cover; border: 0; border-radius: 0;
}
.auth-imgFallback {
  position: relative; z-index: 1; text-align: center; color: var(--muted-strong);
  display: grid; gap: 10px; place-items: center; padding: 32px;
}
.auth-imgFallback__hero {
  width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--border-strong); font-family: var(--font-display);
  font-size: 28px; font-weight: 600; color: var(--insight); background: var(--card-bg-strong);
}
.auth-imgFallback p { max-width: 220px; font-size: 13px; }
.auth-imgPane__brand {
  position: absolute; bottom: 0; inset-inline: 0; z-index: 2;
  padding: 18px 16px;
  background: linear-gradient(transparent, rgba(15, 20, 25, 0.72));
  text-align: center; color: #fff;
}
.auth-imgPane__brand strong {
  display: block; font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 2px;
}
.auth-imgPane__brand span { font-size: 12px; opacity: .85; }

/* Toasts */
.phy-alert {
  border-radius: 10px; padding: 14px 16px; margin-bottom: 16px;
  background: var(--danger-soft-bg); border: 1px solid var(--danger-soft-border); color: var(--danger);
}
.phy-toast {
  --toast-accent: var(--success); --toast-duration: 6000ms;
  position: fixed !important; left: 50% !important; right: auto !important;
  top: auto !important;
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 16px)) !important;
  z-index: 14000 !important; width: min(420px, calc(100vw - 24px));
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border-radius: 14px;
  background: var(--card-bg-strong); border: 1px solid var(--border);
  border-inline-start: 4px solid var(--toast-accent);
  box-shadow: var(--shadow-strong); transform: translateX(-50%);
  animation: authToastIn .35s var(--ease) both; overflow: hidden;
}
.phy-toast--success { --toast-accent: var(--success); }
.phy-toast--error { --toast-accent: var(--danger); }
.phy-toast__icon {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--toast-accent); color: #fff; font-weight: 900;
}
.phy-toast__body { min-width: 0; flex: 1; }
.phy-toast__title { display: block; font-weight: 800; color: var(--text-strong); }
.phy-toast__msg, .phy-toast__list { margin: 4px 0 0; color: var(--muted-strong); font-size: 13px; }
.phy-toast__close {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--border); background: var(--surface-soft);
  color: var(--muted); cursor: pointer; font-size: 18px;
}
.phy-toast__progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; overflow: hidden; }
.phy-toast__progress span {
  display: block; height: 100%; width: 100%; background: var(--toast-accent);
  transform-origin: right; animation: phyToastBar var(--toast-duration) linear forwards;
}
.phy-toast.is-leaving { animation: authToastOut .28s var(--ease) both; pointer-events: none; }
@keyframes phyToastBar { to { transform: scaleX(0); } }
@keyframes authToastIn {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes authToastOut { to { opacity: 0; transform: translate(-50%, 10px); } }

/* Responsive */
@media (max-width: 1024px) {
  .lg-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-grades, .lg-grades--count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lg-hdr__nav { display: none; }
  .lg-hdr__mobileTheme { display: inline-flex; margin-inline-start: auto; }
  .lg-burger { display: flex; }
  .lg-drawer { display: block; }
  .lg-hero { min-height: 0; }
  .lg-hero__stage {
    grid-template-columns: 1fr; justify-items: center; gap: 24px; padding: 28px 20px 36px;
  }
  .lg-hero__photo { order: -1; }
  .lg-hero__photo img, .lg-hero__photoEmpty { width: min(320px, 82vw); height: min(320px, 82vw); }
  .lg-hero__copy { text-align: center; align-items: center; }
  .lg-hero__desc { margin-inline: auto; }
  .lg-hero__actions, .lg-hero__skills { justify-content: center; }
  .lg-guides__grid { grid-template-columns: 1fr; }
  .lg-guide { grid-template-columns: 96px 1fr; }
  .lg-guide__visual { width: 96px; height: 96px; }
  .lg-axes__list { grid-template-columns: 1fr 1fr; }
  .lg-features { grid-template-columns: 1fr; }
  .lg-grades, .lg-grades--count-2, .lg-grades--count-4 { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-imgPane { order: -1; min-height: 200px; max-height: 220px; }
  .auth-imgPane__brand { display: none; }
  .auth-formPane { padding: 28px 20px; }
  .auth-head { text-align: center; }
  .auth-head__logo { margin-inline: auto; }
  .auth-foot { justify-content: center; }
  .lg-footer__grid { grid-template-columns: 1fr 1fr; }
  .lg-footer__brand { grid-column: 1 / -1; }
  .lg-path__connector { display: none; }
  .lg-hdr__companions { display: none; }
}
@media (max-width: 560px) {
  .lg-hdr__tagAr { font-size: 11px; }
  .lg-brand__sub { display: none; }
  .lg-stats__row { grid-template-columns: 1fr; }
  .lg-axes__list { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .lg-footer__grid { grid-template-columns: 1fr; }
  .lg-guide { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .lg-path--feet .lg-path__step { flex-basis: calc(50% - 6px); max-width: none; }
}

/* ═══ Hellenic / Greek layer ═══ */
.lg-hdr__top{
  background: linear-gradient(90deg, #132A45, #1B3A5C 50%, #132A45) !important;
}
.lg-hdr__topInner::before,
.lg-hdr__topInner::after{
  content:"";
  width:72px; height:8px;
  background-image: var(--greek-key-dark);
  background-repeat: repeat-x;
  background-size: 36px 8px;
  opacity:.85;
}
.lg-hdr{
  border-bottom: 2px solid var(--gold-border) !important;
}
.lg-brand__mark{
  border-color: var(--gold-500) !important;
  border-radius: 50% !important;
}
.lg-brand__sub{ color: var(--gold-700) !important; }
html[data-theme="dark"] .lg-brand__sub{ color: var(--gold-500) !important; }

.lg-hero{
  background:
    linear-gradient(180deg, rgba(243,238,228,.92), rgba(232,225,210,.96)),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(198,163,90,.18), transparent 60%),
    var(--page-bg) !important;
  border-bottom: 0 !important;
}
.lg-hero::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0; height:12px;
  background-image: var(--greek-key);
  background-repeat: repeat-x;
  background-size: 40px 10px;
  background-position: center;
  opacity:.85;
  pointer-events:none;
}
html[data-theme="dark"] .lg-hero{
  background:
    linear-gradient(180deg, rgba(10,22,40,.96), rgba(19,42,69,.98)),
    var(--page-bg) !important;
}
html[data-theme="dark"] .lg-hero::after{ background-image: var(--greek-key-dark); }

.lg-hero__enLine{ color: var(--gold-700) !important; letter-spacing: normal !important; }
html[data-theme="dark"] .lg-hero__enLine{ color: var(--gold-500) !important; }
.lg-hero__brand{ font-family: var(--font-display) !important; letter-spacing:.04em !important; }
.lg-hero__skills span{
  background: transparent !important;
  border: 1px solid var(--gold-border) !important;
  border-radius: 0 !important;
  color: var(--brand-800) !important;
  padding: 6px 14px !important;
}
html[data-theme="dark"] .lg-hero__skills span{ color: var(--gold-400) !important; }
.lg-hero__photo img,
.lg-hero__photoEmpty{
  border-radius: 50% !important;
  border: 5px solid var(--gold-500) !important;
  box-shadow:
    0 0 0 10px rgba(198,163,90,.16),
    0 0 0 11px rgba(198,163,90,.42),
    0 26px 60px rgba(11,26,48,.32) !important;
}
.lg-hero__photo::before{
  content:"";
  position:absolute; inset:-26px; z-index:0;
  border-radius:50%;
  background: radial-gradient(circle, rgba(198,163,90,.20), transparent 68%);
  pointer-events:none;
}
.lg-hero__photo img,
.lg-hero__photoEmpty,
.lg-hero__photoCap{ position: relative; z-index: 1; }
.lg-btn{ border-radius: 2px !important; letter-spacing:.02em; }
.lg-btn--gold{ border: 1px solid var(--gold-600) !important; }

.lg-path--feet{
  background: var(--card-bg-strong) !important;
  border-block: 1px solid var(--gold-border) !important;
}
.lg-path__num{
  border-radius: 0 !important;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--brand-800) !important;
  border: 0 !important;
  color: var(--gold-300) !important;
  width: 44px !important; height: 48px !important;
}
.lg-path__step.is-active .lg-path__num{
  background: var(--gold-500) !important;
  color: var(--brand-900) !important;
  animation: none !important;
}
.lg-path__kicker{ color: var(--gold-700) !important; }

.lg-guide{
  border-radius: 0 !important;
  border: 1px solid var(--border) !important;
  border-block-start: 3px solid var(--gold-500) !important;
  box-shadow: none !important;
  background: var(--card-bg-strong) !important;
}
.lg-guide__visual{
  border-radius: 50% !important;
  border-color: var(--gold-500) !important;
}
.lg-guide__step{ color: var(--gold-700) !important; }
.lg-axes__list li{
  border-radius: 0 !important;
  border-block-start: 3px solid var(--brand-800) !important;
  background: var(--card-bg-strong) !important;
}
.lg-axes__n{ color: var(--gold-700) !important; }
.lg-feature, .lg-grade, .lg-stat, .auth-card, .lg-cta__box{
  border-radius: 2px !important;
}
.lg-feature{ border-block-start: 3px solid var(--gold-500); box-shadow: none !important; }
.lg-strip{ background: var(--brand-800) !important; color: var(--gold-300) !important; }
.lg-cta__box{
  background:
    linear-gradient(160deg, rgba(27,58,92,.06), rgba(198,163,90,.12)),
    var(--card-bg-strong) !important;
  border: 1px solid var(--gold-border) !important;
}
.lg-cta__box::after{
  content:"";
  position:absolute; left:16px; right:16px; top:12px; height:8px;
  background-image: var(--greek-key);
  background-repeat: repeat-x;
  background-size: 36px 8px;
  opacity:.7;
  pointer-events:none;
}
.lg-footer__wave{
  height:10px !important;
  background-image: var(--greek-key-dark) !important;
  background-color: #0A1628 !important;
  background-repeat: repeat-x !important;
  background-size: 40px 10px !important;
}
/* نصوص عربية: بلا تباعد حروف حتى لا تتفكك الكلمات */
.lg-section__en, .lg-cta__en, .lg-path__kicker,
.lg-hero__enLine, .lg-hero__photoCapEn, .lg-hdr__tagAr, .lg-brand__sub{
  font-family: var(--font-body) !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
.auth-head__logo{ border: 0 !important; border-radius: 0 !important; background: transparent !important; }
.auth-imgPane__brand{ background: linear-gradient(transparent, rgba(10,22,40,.78)) !important; }
.input{ border-radius: 2px !important; }
.btn-submit{ border-radius: 2px !important; }

/* Path steps stronger visibility (light + dark) */
.lg-path__row { list-style: none; margin: 0; padding: 0; }
.lg-path__foot { opacity: .75 !important; }
.lg-path__foot img { opacity: 1 !important; }
.lg-path__step.is-active .lg-path__foot { opacity: 1 !important; transform: translateY(-2px); }
.lg-path__label { font-size: 16px !important; font-weight: 800 !important; }
.lg-path__hint { font-size: 13px !important; opacity: 1 !important; }
.lg-btn--gold, .btn-submit { color: #132A45 !important; }
.lg-guide__step {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--gold-border);
  background: var(--gold-soft);
  color: var(--gold-700) !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: .04em;
}
