/* ???????????????????????????????????????????????????????????????
   The Legend Edu ? Academic Institute UI (v2)
   Burgundy + Beige ? RTL Arabic ? Professional English academy
   ??????????????????????????????????????????????????????????????? */

.lg-ambient { display: none; }

/* ?? Buttons ?? */
.lg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 4px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.lg-btn--lg { padding: 15px 28px; font-size: 16px; }
.lg-btn--block { width: 100%; }
.lg-btn--solid {
  background: var(--brand-800); color: #faf6ef;
  box-shadow: 0 10px 24px rgba(147, 52, 71, .22);
}
.lg-btn--solid:hover { background: var(--brand-700); transform: translateY(-1px); }
.lg-btn--gold {
  background: #e8dfd0; color: #3a1a22 !important;
  border-color: rgba(196,168,130,.55);
}
.lg-btn--gold:hover { background: #f3ebe3; color: #3a1a22 !important; transform: translateY(-1px); }
.lg-btn--outline {
  background: transparent; color: var(--brand-800);
  border-color: rgba(147, 52, 71, .28);
}
.lg-btn--outline:hover { background: rgba(147,52,71,.06); border-color: var(--brand-700); }
.lg-btn--ghost {
  background: transparent; color: var(--brand-800);
  border-color: transparent;
}
.lg-btn--ghost:hover { background: rgba(147,52,71,.06); }

/* ?? Header (light institute bar) ?? */
.lg-hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .94);
  border-bottom: 1px solid rgba(147, 52, 71, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
}
.lg-hdr__top {
  background: var(--brand-900);
  color: #f0e4d4;
  font-size: 12px; font-weight: 600;
}
.lg-hdr__topInner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 32px; text-align: center;
}
.lg-hdr__tag {
  font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase;
  color: #e8dfd0;
}
.lg-hdr__tagSep { opacity: .5; }
.lg-hdr__tagAr { color: rgba(250,246,239,.78); }

.lg-hdr__bar {
  display: flex; align-items: center; gap: 14px; min-height: 72px;
}
.lg-brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; margin-inline-end: auto; color: inherit;
}
.lg-brand__mark {
  width: 48px; height: 48px; display: grid; place-items: center; flex: none;
  border-radius: 8px; background: var(--brand-800); color: #faf6ef;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .04em;
  overflow: hidden; border: 1px solid rgba(147,52,71,.18);
}
.lg-brand__logo {
  width: 100%; height: 100%; object-fit: contain; display: block;
  background: #fffdf9;
}
.lg-brand__logoFallback {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #faf6ef;
}
.lg-brand__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lg-brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: var(--brand-900); letter-spacing: .02em;
}
.lg-brand__sub { font-size: 12px; font-weight: 700; color: var(--brand-600); }

.lg-hdr__nav { display: flex; align-items: center; gap: 10px; }
.lg-hdr__theme { display: inline-flex; }
.lg-hdr__mobileTheme { display: none; }
.lg-hdr .theme-switch {
  background: rgba(147,52,71,.08); border-color: rgba(147,52,71,.18);
}

.lg-burger {
  display: none; width: 44px; height: 42px; border-radius: 4px;
  background: transparent; border: 1px solid rgba(147,52,71,.2);
  cursor: pointer; padding: 0; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.lg-burger span {
  width: 18px; height: 2px; border-radius: 2px; background: var(--brand-800);
}
.lg-drawer {
  display: none; overflow: hidden; max-height: 0;
  transition: max-height .3s var(--ease);
  background: #faf6ef; border-top: 1px solid rgba(147,52,71,.1);
}
.lg-drawer.is-open { max-height: 280px; }
.lg-drawer__box {
  padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px;
}

/* ?? Hero: editorial split ?? */
.lg-hero {
  position: relative;
  background: #f3ede3;
  border-bottom: 1px solid rgba(147,52,71,.1);
}
.lg-hero__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  min-height: min(86vh, 700px);
  max-width: 1280px;
  margin: 0 auto;
}
.lg-hero__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(36px, 6vw, 72px) clamp(22px, 4vw, 56px);
  animation: lgIn .7s var(--ease) both;
}
.lg-hero__enLine {
  margin: 0 0 14px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand-600);
}
.lg-hero__brand {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02;
  color: var(--brand-900); letter-spacing: -.01em;
}
.lg-hero__brand span { color: var(--brand-600); }
.lg-hero__teacher {
  margin: 14px 0 4px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 2.4vw, 28px); color: var(--brand-700);
}
.lg-hero__teacherAr {
  margin: 0 0 18px; font-size: 15px; font-weight: 700; color: var(--muted-strong);
}
.lg-hero__desc {
  margin: 0 0 26px; max-width: 480px;
  font-size: 17px; line-height: 1.9; color: var(--muted-strong);
}
.lg-hero__skills {
  display: flex; flex-wrap: wrap; gap: 8px 0; margin: 0 0 28px;
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  color: var(--brand-800);
}
.lg-hero__skills span {
  padding: 0 14px;
  border-inline-end: 1px solid rgba(147,52,71,.22);
  letter-spacing: .04em;
}
.lg-hero__skills span:last-child { border-inline-end: 0; }
.lg-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.lg-hero__photo {
  position: relative;
  background: var(--brand-950);
  overflow: hidden;
  min-height: 420px;
  animation: lgIn .8s .08s var(--ease) both;
}
.lg-hero__photo img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(139,46,63,.35), transparent 60%),
    #2a1218;
}
.lg-hero__photoEmpty {
  width: 100%; height: 100%; min-height: 420px;
  display: grid; place-items: center; gap: 10px; text-align: center;
  color: #e8dfd0; padding: 24px;
  background: linear-gradient(160deg, #5c2230, #933447);
}
.lg-hero__photoEmpty strong {
  font-family: var(--font-display); font-size: 72px; font-weight: 700;
}
.lg-hero__photoEmpty span { font-size: 13px; opacity: .8; max-width: 200px; }
.lg-hero__photoCap {
  position: absolute; bottom: 20px; inset-inline-start: 20px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px; background: rgba(250,246,239,.96);
  border-inline-start: 4px solid var(--brand-800);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.lg-hero__photoCapEn {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700);
}
.lg-hero__photoCapAr { font-size: 14px; font-weight: 800; color: var(--brand-900); }

@keyframes lgIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ?? Stats ?? */
.lg-stats {
  background: #fffdf9;
  border-bottom: 1px solid rgba(147,52,71,.1);
  padding: 8px 0;
}
.lg-stats__row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.lg-stat {
  padding: 34px 18px; text-align: center;
  border-inline-start: 1px solid rgba(147,52,71,.1);
}
.lg-stat:first-child { border-inline-start: 0; }
.lg-stat__val {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 4.2vw, 52px); color: var(--brand-800);
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.lg-stat__lbl {
  margin-top: 10px; font-weight: 800; font-size: 15px; color: var(--muted-strong);
}

/* ?? Moving strip ?? */
.lg-strip {
  overflow: hidden; background: var(--brand-900); color: #e8dfd0;
  border-block: 1px solid rgba(232,223,208,.15);
}
.lg-strip__inner {
  display: flex; gap: 36px; width: max-content;
  padding: 12px 0;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  animation: lgStrip 28s linear infinite;
}
@keyframes lgStrip {
  from { transform: translateX(0); }
  to { transform: translateX(-40%); }
}

/* ?? Sections ?? */
.lg-section { padding: 72px 0; background: #faf6ef; }
.lg-section--muted { background: #f3ede3; }
.lg-section--features {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(147,52,71,.06), transparent 55%),
    #faf6ef;
}
.lg-section__head { text-align: center; margin-bottom: 44px; }
.lg-section__head--start { text-align: start; max-width: 640px; }
.lg-section__en {
  margin: 0 0 10px;
  font-family: var(--font-body); font-size: 13px; font-weight: 800;
  letter-spacing: .04em; color: var(--brand-600);
}
.lg-section__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px); color: var(--brand-900); margin: 0 0 10px;
}
.lg-section__sub { margin: 0; color: var(--muted-strong); font-size: 16px; line-height: 1.8; }
.lg-section__rule {
  display: block; width: 64px; height: 3px; margin: 18px auto 0;
  background: linear-gradient(90deg, var(--brand-800), #c4a882);
}

.lg-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.lg-feature {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 26px 30px;
  background: #fffdf9;
  border: 1px solid rgba(147,52,71,.12);
  border-top: 4px solid var(--brand-800);
  box-shadow: 0 10px 28px rgba(92,34,48,.06);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.lg-feature::after {
  content: "";
  position: absolute; inset-inline-end: -20px; bottom: -28px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(147,52,71,.06), transparent 70%);
  pointer-events: none;
}
.lg-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(92,34,48,.12);
  border-color: rgba(147,52,71,.22);
}
.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-display); font-size: 34px; font-weight: 700;
  color: var(--brand-700); line-height: 1; letter-spacing: .04em;
}
.lg-feature__mark {
  width: 48px; height: 48px; display: grid; place-items: center; flex: none;
  border-radius: 50%;
  background: rgba(147,52,71,.08);
  border: 1px solid rgba(147,52,71,.16);
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--brand-800);
}
.lg-feature__ico {
  width: 48px; height: 48px; object-fit: contain;
  padding: 8px; border-radius: 50%;
  background: rgba(147,52,71,.06); border: 1px solid rgba(147,52,71,.12);
}
.lg-feature__title {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--brand-900); margin: 0; line-height: 1.35;
}
.lg-feature__text {
  position: relative; z-index: 1;
  margin: 0; color: var(--muted-strong); line-height: 1.9; font-size: 15px;
}

/* ?? Grades ?? */
.lg-section--grades {
  background:
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(147,52,71,.06), transparent 55%),
    #f3ede3;
  padding: 80px 0;
}
.lg-grades {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}
.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: 820px; }
.lg-grades--count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lg-grade {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fffdf9; border: 1px solid rgba(147,52,71,.12);
  box-shadow: 0 12px 32px rgba(92,34,48,.08);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.lg-grade:hover {
  transform: translateY(-6px);
  border-color: var(--brand-700);
  box-shadow: 0 22px 48px rgba(92,34,48,.14);
}
.lg-grade__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(160deg, #5c2230, #933447);
}
.lg-grade__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s var(--ease);
}
.lg-grade:hover .lg-grade__media img { transform: scale(1.06); }
.lg-grade__mediaEmpty {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 48px; font-weight: 700; color: #e8dfd0;
}
.lg-grade__badge {
  position: absolute; top: 14px; inset-inline-start: 14px;
  padding: 6px 12px;
  background: rgba(250,246,239,.95); color: var(--brand-800);
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  border-inline-start: 3px solid var(--brand-800);
}
.lg-grade__body {
  padding: 22px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border-top: 4px solid var(--brand-800);
  min-height: 92px;
}
.lg-grade__copy { min-width: 0; }
.lg-grade__name {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--brand-900); margin: 0 0 4px; line-height: 1.3;
}
.lg-grade__hint {
  margin: 0; font-size: 13px; font-weight: 700; color: var(--muted-strong);
}
.lg-grade__cta {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--brand-800); color: #faf6ef;
  font-size: 13px; font-weight: 800;
  transition: background .2s;
}
.lg-grade:hover .lg-grade__cta { background: var(--brand-700); }

/* ?? CTA ?? */
.lg-cta { padding: 24px 0 80px; background: #faf6ef; }
.lg-cta__box {
  text-align: center; padding: 56px 28px;
  background: var(--brand-900); color: #faf6ef;
  border: 1px solid rgba(232,223,208,.2);
}
.lg-cta__en {
  margin: 0 0 12px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #e8dfd0;
}
.lg-cta__title {
  margin: 0 0 12px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3.4vw, 36px); color: #fff;
}
.lg-cta__sub {
  margin: 0 auto 24px; max-width: 560px;
  color: rgba(250,246,239,.8); font-size: 16px; line-height: 1.8;
}

/* ?? Footer ?? */
.lg-footer { background: #12080b; color: rgba(250,246,239,.82); }
.lg-footer__inner { padding: 48px 20px 24px; }
.lg-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px;
}
.lg-footer__logoLink {
  display: inline-flex; width: 64px; height: 64px; margin: 0 0 14px;
  border-radius: 10px; overflow: hidden; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(232,223,208,.25);
}
.lg-footer__logoImg {
  width: 100%; height: 100%; object-fit: contain; display: block; background: #fffdf9;
}
.lg-footer__logoFallback,
.lg-footer__mark {
  width: 64px; height: 64px; display: grid; place-items: center; margin: 0;
  background: var(--brand-700); color: #faf6ef;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
}
.lg-footer__name {
  margin: 0 0 8px; font-family: var(--font-display); font-size: 22px;
  font-weight: 700; color: #fff;
}
.lg-footer__tag { margin: 0 0 16px; line-height: 1.8; max-width: 360px; }
.lg-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.lg-footer__nav a { color: #e8dfd0; font-weight: 700; font-size: 14px; }
.lg-footer__nav a:hover { color: #fff; }
.lg-footer__heading {
  margin: 0 0 14px; font-family: var(--font-display); font-size: 16px;
  font-weight: 700; color: #e8dfd0;
}
.lg-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lg-footer__link {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(250,246,239,.82); font-weight: 600;
}
.lg-footer__link:hover { color: #fff; }
.lg-footer__linkIco { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
.lg-footer__phones { display: grid; gap: 8px; }
.lg-footer__phone {
  color: rgba(250,246,239,.85); font-weight: 700; direction: ltr;
  justify-self: start;
}
.lg-footer__phone:hover { color: #e8dfd0; }
.lg-footer__bottom {
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid rgba(250,246,239,.1);
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
}
.lg-footer__copy, .lg-footer__dev { margin: 0; font-size: 13px; color: rgba(250,246,239,.55); }

/* ?? Auth ?? */
.auth-page { padding: 40px 0 64px; position: relative; z-index: 1; }
.auth-card {
  overflow: hidden; background: #fffdf9;
  border: 1px solid rgba(147,52,71,.12);
  box-shadow: 0 18px 48px rgba(92,34,48,.1);
}
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.auth-formPane { padding: 40px 36px; background: #fffdf9; }
.auth-step { display: none; }
.auth-head { text-align: start; margin-bottom: 24px; }
.auth-head__logo {
  width: 56px; height: 56px; margin: 0 0 14px; border-radius: 4px;
  display: grid; place-items: center; overflow: hidden;
  background: var(--brand-800); color: #faf6ef;
}
.auth-head__logo img { width: 100%; height: 100%; object-fit: contain; }
.auth-head__logoFallback {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
}
.auth-head__title {
  font-family: var(--font-display); font-weight: 700; font-size: 28px;
  color: var(--brand-900);
}
.auth-head__sub { color: var(--muted-strong); margin-top: 8px; font-size: 15px; line-height: 1.8; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-weight: 700; font-size: 14px; color: var(--text-strong); }
.input {
  width: 100%; padding: 13px 15px; border-radius: 4px;
  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(--brand-600); box-shadow: 0 0 0 4px var(--primary-weak); }
.center-area { display: flex; flex-direction: column; gap: 16px; }
.btn-submit {
  margin-top: 6px; width: 100%; padding: 15px 20px; border: none; border-radius: 4px;
  background: var(--brand-800); color: #faf6ef; font-family: var(--font-body);
  font-weight: 800; font-size: 16px; cursor: pointer;
}
.btn-submit:hover { background: var(--brand-700); }
.auth-foot { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted-strong); font-size: 14px; }
.auth-link { color: var(--brand-700); font-weight: 800; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }
.auth-link:hover { text-decoration: underline; }

.auth-imgPane {
  position: relative; overflow: hidden; display: grid; place-items: center; padding: 28px;
  background: linear-gradient(160deg, #12080b, #933447);
}
.auth-imgPane__symbols { position: absolute; inset: 0; opacity: .12; pointer-events: none; }
.auth-imgPane__symbols span {
  position: absolute; font-family: var(--font-display); font-size: 28px; font-weight: 700;
  color: #e8dfd0; border: 1px solid currentColor; width: 52px; height: 52px;
  display: grid; place-items: center;
}
.auth-imgPane__symbols span:nth-child(1){ top: 12%; inset-inline-start: 12%; }
.auth-imgPane__symbols span:nth-child(2){ top: 22%; inset-inline-end: 14%; }
.auth-imgPane__symbols span:nth-child(3){ bottom: 28%; inset-inline-start: 18%; }
.auth-imgPane__symbols span:nth-child(4){ bottom: 14%; inset-inline-end: 16%; }
.auth-img { position: relative; z-index: 1; max-width: 100%; max-height: 420px; border: 2px solid rgba(232,223,208,.35); }
.auth-imgFallback { position: relative; z-index: 1; text-align: center; color: #faf6ef; display: grid; gap: 12px; place-items: center; }
.auth-imgFallback__hero {
  width: 110px; height: 110px; display: grid; place-items: center;
  border: 2px solid rgba(232,223,208,.4);
  font-family: var(--font-display); font-size: 34px; font-weight: 700; color: #e8dfd0;
}
.auth-imgFallback p { max-width: 240px; font-size: 14px; opacity: .85; }
.auth-imgPane__brand {
  position: absolute; bottom: 24px; inset-inline: 24px; z-index: 2; text-align: center;
  font-family: var(--font-display); color: #faf6ef;
}
.auth-imgPane__brand strong { display: block; font-size: 22px; margin-bottom: 4px; }
.auth-imgPane__brand span { font-size: 13px; color: #e8dfd0; }

/* Toasts ? ???? ?????? ?????? ??? ?? ?????? ?????? */
.phy-alert { border-radius: 8px; padding: 16px 20px; margin-bottom: 20px; background: rgba(192,57,43,.1); border: 1px solid rgba(192,57,43,.4); 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(440px, calc(100vw - 24px));
  max-height: min(46vh, 340px);
  display: flex; gap: 13px; align-items: flex-start;
  padding: 17px 18px 19px; border-radius: 10px;
  background: color-mix(in srgb, var(--card-bg-strong) 96%, transparent);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--toast-accent);
  box-shadow: 0 22px 54px rgba(92,34,48,.28);
  transform: translateX(-50%);
  animation: authToastIn .38s var(--ease-bounce) both; overflow: hidden;
}
/* ????? ??? "??? ??????" ?????? */
.phy-toast--top {
  top: auto !important;
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 16px)) !important;
}
.phy-toast--success { --toast-accent: var(--success); }
.phy-toast--error { --toast-accent: var(--danger); }
.phy-toast__icon {
  width: 36px; height: 36px; 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; max-height: min(38vh, 280px); overflow-y: auto; }
.phy-toast__title { display: block; font-weight: 800; color: var(--text-strong); }
.phy-toast__msg { margin: 4px 0 0; color: var(--muted-strong); font-size: 14px; line-height: 1.7; }
.phy-toast__list { margin: 7px 0 0; padding-inline-start: 19px; color: var(--muted-strong); font-size: 14px; }
.phy-toast__close {
  width: 30px; height: 30px; margin-inline-start: auto; 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: 19px;
}
.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 .32s var(--ease) both; pointer-events: none; }
@keyframes phyToastBar { to { transform: scaleX(0); } }
@keyframes authToastIn {
  from { opacity: 0; transform: translate(-50%, 18px) scale(.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes authToastOut { to { opacity: 0; transform: translate(-50%, 14px) scale(.97); } }

/* ?? Dark mode ?? */
html[data-theme="dark"] .lg-hdr {
  background: rgba(20, 16, 18, .94);
  border-bottom-color: rgba(243,235,227,.1);
  color: var(--text);
}
html[data-theme="dark"] .lg-brand__name { color: #fff8f0; }
html[data-theme="dark"] .lg-brand__sub { color: var(--gold-400); }
html[data-theme="dark"] .lg-btn--ghost,
html[data-theme="dark"] .lg-btn--outline { color: #f3ebe3; border-color: rgba(243,235,227,.22); }
html[data-theme="dark"] .lg-btn--outline:hover,
html[data-theme="dark"] .lg-btn--ghost:hover { background: rgba(243,235,227,.06); }
html[data-theme="dark"] .lg-burger { border-color: rgba(243,235,227,.2); }
html[data-theme="dark"] .lg-burger span { background: #f3ebe3; }
html[data-theme="dark"] .lg-drawer { background: #1c1618; border-top-color: rgba(243,235,227,.1); }
html[data-theme="dark"] .lg-hdr .theme-switch {
  background: rgba(243,235,227,.08); border-color: rgba(243,235,227,.16);
}

html[data-theme="dark"] .lg-hero { background: #141014; border-bottom-color: rgba(243,235,227,.08); }
html[data-theme="dark"] .lg-hero__enLine { color: var(--gold-400); }
html[data-theme="dark"] .lg-hero__brand { color: #fff8f0; }
html[data-theme="dark"] .lg-hero__brand span { color: var(--gold-400); }
html[data-theme="dark"] .lg-hero__teacher { color: var(--brand-400); }
html[data-theme="dark"] .lg-hero__teacherAr,
html[data-theme="dark"] .lg-hero__desc { color: var(--muted-strong); }
html[data-theme="dark"] .lg-hero__skills { color: #f0d4da; }
html[data-theme="dark"] .lg-hero__skills span { border-color: rgba(243,235,227,.18); }
html[data-theme="dark"] .lg-hero__photo img { background: #3a1a22; }
html[data-theme="dark"] .lg-hero__photoCap { background: rgba(52,42,48,.96); }
html[data-theme="dark"] .lg-hero__photoCapEn { color: var(--gold-400); }
html[data-theme="dark"] .lg-hero__photoCapAr { color: #fff8f0; }

html[data-theme="dark"] .lg-stats { background: #1c1618; border-bottom-color: rgba(243,235,227,.08); }
html[data-theme="dark"] .lg-stat { border-color: rgba(243,235,227,.08); }
html[data-theme="dark"] .lg-stat__val { color: #f5e8d4; }
html[data-theme="dark"] .lg-section--grades {
  background:
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(196,90,110,.12), transparent 55%),
    #1a1416;
}
html[data-theme="dark"] .lg-grade {
  background: #221c1e; border-color: rgba(243,235,227,.12);
}
html[data-theme="dark"] .lg-grade__name { color: #fff8f0; }
html[data-theme="dark"] .lg-grade__hint { color: #d8c8ba; }
html[data-theme="dark"] .lg-grade__badge {
  background: rgba(34,28,30,.95); color: #e2c9a8; border-color: #e2c9a8;
}
html[data-theme="dark"] .lg-brand__mark {
  background: #2a2226; border-color: rgba(226,201,168,.3);
}
html[data-theme="dark"] .lg-brand__logo { background: #221c1e; }
html[data-theme="dark"] .lg-section { background: #141014; }
html[data-theme="dark"] .lg-section--muted { background: #1a1416; }
html[data-theme="dark"] .lg-section__title,
html[data-theme="dark"] .lg-feature__title,
html[data-theme="dark"] .lg-grade__name { color: #fff8f0; }
html[data-theme="dark"] .lg-section__en { color: var(--gold-400); }
html[data-theme="dark"] .lg-section__sub,
html[data-theme="dark"] .lg-feature__text,
html[data-theme="dark"] .lg-stat__lbl,
html[data-theme="dark"] .lg-hero__desc,
html[data-theme="dark"] .lg-hero__teacherAr,
html[data-theme="dark"] .auth-head__sub,
html[data-theme="dark"] .auth-foot { color: #f0e4d8 !important; font-weight: 700; }
html[data-theme="dark"] .lg-section__title,
html[data-theme="dark"] .lg-feature__title,
html[data-theme="dark"] .lg-grade__name,
html[data-theme="dark"] .auth-head__title,
html[data-theme="dark"] .lg-brand__name { color: #ffffff !important; font-weight: 800; }
html[data-theme="dark"] .lg-section--features {
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(196,90,110,.12), transparent 55%),
    #141014;
}
html[data-theme="dark"] .lg-feature {
  background: #221c1e;
  border-color: rgba(243,235,227,.1);
  border-top-color: var(--gold-500);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
html[data-theme="dark"] .lg-feature:hover {
  border-color: rgba(226,201,168,.28);
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
html[data-theme="dark"] .lg-feature__num { color: var(--gold-400); }
html[data-theme="dark"] .lg-feature__mark,
html[data-theme="dark"] .lg-feature__ico {
  background: rgba(226,180,189,.1);
  border-color: rgba(226,180,189,.22);
  color: var(--gold-300);
}
html[data-theme="dark"] .lg-grade {
  background: #221c1e; border-color: rgba(243,235,227,.1);
}
html[data-theme="dark"] .lg-cta { background: #1a1416; }
html[data-theme="dark"] .lg-cta__box {
  background: linear-gradient(160deg, #933447, #b85066) !important;
  color: #fff8f0 !important;
  border-color: rgba(245,232,212,.35) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
html[data-theme="dark"] .lg-cta__en {
  color: #fff4e6 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
html[data-theme="dark"] .lg-cta__title {
  color: #ffffff !important;
  font-weight: 800 !important;
}
html[data-theme="dark"] .lg-cta__sub {
  color: #fff8f0 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}
html[data-theme="dark"] .lg-btn--gold,
html[data-theme="dark"] .lg-cta .lg-btn--gold {
  background: #fff8f0 !important;
  color: #3a1a22 !important;
  border-color: #e2c9a8 !important;
  font-weight: 800 !important;
}
html[data-theme="dark"] .lg-btn--gold:hover,
html[data-theme="dark"] .lg-cta .lg-btn--gold:hover {
  background: #ffffff !important;
  color: #3a1a22 !important;
}
html[data-theme="dark"] .lg-btn--solid {
  color: #fff8f0 !important;
}
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .auth-formPane { background: #221c1e; border-color: rgba(243,235,227,.1); }
html[data-theme="dark"] .auth-head__title { color: #fff8f0; }
html[data-theme="dark"] .auth-head__sub,
html[data-theme="dark"] .auth-foot { color: var(--muted-strong); }

/* ?? Responsive ?? */
@media (max-width: 1024px) {
  .lg-grades,
  .lg-grades--count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
}
@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-brand { margin-inline-end: 0; }

  .lg-hero__stage { grid-template-columns: 1fr; min-height: 0; }
  .lg-hero__photo { order: -1; min-height: 360px; max-height: 480px; }
  .lg-hero__photo img { object-fit: contain; }
  .lg-hero__copy { text-align: center; padding: 32px 20px 40px; }
  .lg-hero__desc { margin-inline: auto; }
  .lg-hero__skills { justify-content: center; }
  .lg-hero__actions { justify-content: center; }
  .lg-hero__photoCap {
    inset-inline: 16px; bottom: 16px; width: auto;
  }

  .lg-section__head--start { text-align: center; margin-inline: auto; }
  .lg-features { grid-template-columns: 1fr; }
  .lg-grades,
  .lg-grades--count-2,
  .lg-grades--count-4 { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .lg-grade__name { font-size: 20px; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-imgPane { order: -1; min-height: 220px; max-height: 260px; }
  .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; }
}
@media (max-width: 560px) {
  .lg-hdr__tagAr { display: none; }
  .lg-brand__sub { display: none; }
  .lg-brand__name { font-size: 16px; }
  .lg-stats__row { grid-template-columns: 1fr; }
  .lg-stat { border-inline-start: 0; border-top: 1px solid rgba(147,52,71,.1); }
  .lg-stat:first-child { border-top: 0; }
  .lg-stat__val { font-size: 40px; }
  .fgrid { grid-template-columns: 1fr; }
  .lg-footer__grid { grid-template-columns: 1fr; }
  .lg-hero__skills span { padding-inline: 10px; font-size: 13px; }
}

/* Typography boost ? larger and bolder */
body.legend-platform {
  font-size: 17px !important;
  font-weight: 700 !important;
}
.lg-btn { font-size: 16px; font-weight: 800; }
.lg-btn--lg { font-size: 18px; font-weight: 800; }
.lg-brand__name { font-size: 18px !important; font-weight: 800 !important; }
.lg-brand__sub { font-size: 13px !important; font-weight: 800 !important; }
.lg-hdr__nav a { font-size: 15px; font-weight: 800; }
.lg-hdr__top { font-size: 13px; font-weight: 700; }
.lg-hero__kicker { font-size: 14px !important; font-weight: 800 !important; }
.lg-hero__title { font-weight: 800 !important; }
.lg-hero__desc,
.lg-hero__lead { font-size: 17px !important; font-weight: 700 !important; }
.lg-section__kicker { font-size: 14px !important; font-weight: 800 !important; }
.lg-section__title { font-weight: 800 !important; }
.lg-section__sub,
.lg-feature__text,
.lg-feature p,
.lg-grade__meta,
.lg-footer__copy,
.lg-footer__dev { font-size: 15px !important; font-weight: 700 !important; }
.lg-feature__title,
.lg-grade__name { font-weight: 800 !important; }
.lg-grade__name { font-size: 22px !important; }
.lg-footer__nav a { font-size: 15px !important; font-weight: 800 !important; }
.label,
.auth-head__sub,
.auth-foot,
.phy-toast__msg,
.phy-toast__list { font-size: 16px !important; font-weight: 700 !important; }
.auth-head h1,
.auth-head__title { font-weight: 800 !important; }
.field,
input.field,
textarea.field,
select.field,
.auth-formPane input,
.auth-formPane select,
.auth-formPane textarea { font-size: 16px !important; font-weight: 700 !important; }
