/* ═══════════════════════════════════════════════════════════════
   ELPRINS Premium Academy — layout
   Calm · spacious · crest-led · white + royal purple
   ═══════════════════════════════════════════════════════════════ */

.lg-ambient { display: none !important; }

/* Buttons */
.ep-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0.8rem 1.55rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-decoration: none !important;
}
.ep-btn:hover { transform: translateY(-2px); }
.ep-btn--solid {
  background: var(--ep-purple-800);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(42, 18, 72, 0.22);
}
.ep-btn--gold {
  background: linear-gradient(180deg, #E4C65A 0%, #C9A24A 55%, #B08A32 100%);
  color: #1C0B30 !important;
  box-shadow: 0 14px 30px rgba(201, 162, 74, 0.32);
  border-color: rgba(255,255,255,0.12);
}
.ep-btn--ghost {
  background: rgba(255,255,255,0.04);
  color: #fff !important;
  border-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
}
.ep-btn--ghost:hover { background: rgba(255,255,255,0.12); }
.ep-btn--line {
  background: transparent;
  color: var(--ep-purple-800) !important;
  border-color: rgba(42, 18, 72, 0.22);
}
html[data-theme="dark"] .ep-btn--line { color: #fff !important; border-color: rgba(255,255,255,0.28); }

/* ——— Header ——— */
.ep-mast {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--hdr-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hdr-border);
}
.ep-mast__inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ep-mast__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit !important;
  min-width: 0;
}
.ep-mast__crest {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 52px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--ep-gold);
}
.ep-mast__crest img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ep-mast__text { display: flex; flex-direction: column; min-width: 0; }
.ep-mast__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.ep-mast__sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-mast__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ep-mast__nav > a:not(.ep-btn) {
  padding: 8px 12px;
  font-weight: 800;
  color: var(--text-strong) !important;
  border-radius: 999px;
}
.ep-mast__nav > a:not(.ep-btn):hover { background: var(--ep-mist); }
.ep-mast__menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.ep-mast__menu span {
  width: 18px;
  height: 2px;
  background: var(--ep-purple-800);
  border-radius: 2px;
}
html[data-theme="dark"] .ep-mast__menu span { background: #fff; }
.ep-drawer { display: none; }
.ep-drawer.is-open {
  display: block;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
}
.ep-drawer__panel {
  display: grid;
  gap: 8px;
  padding: 14px 16px 18px;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}
.ep-drawer__panel a {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
  background: var(--ep-mist);
  color: var(--text-strong) !important;
}
@media (max-width: 860px) {
  .ep-mast__nav { display: none; }
  .ep-mast__menu { display: flex; }
  .ep-mast__sub { display: none; }
}

/* ——— Hero: premium royal academy ——— */
.ep-hero {
  position: relative;
  min-height: min(90svh, 780px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  padding: clamp(48px, 8vw, 88px) 20px;
  background:
    linear-gradient(155deg, #0F0718 0%, #1C0B30 38%, #2A1248 72%, #3B1A63 100%);
}
.ep-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 380px at 15% 25%, rgba(201,162,74,0.18), transparent 58%),
    radial-gradient(560px 420px at 90% 75%, rgba(99,52,160,0.35), transparent 55%);
}
.ep-hero__ornament {
  position: absolute;
  width: 140px;
  height: 140px;
  pointer-events: none;
  opacity: 0.55;
  border: 1px solid rgba(201,162,74,0.35);
}
.ep-hero__ornament--tl {
  top: 28px;
  inset-inline-start: 28px;
  border-bottom: 0;
  border-inline-end: 0;
}
.ep-hero__ornament--br {
  bottom: 28px;
  inset-inline-end: 28px;
  border-top: 0;
  border-inline-start: 0;
}
.ep-hero__panel {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  animation: epFadeUp .85s ease both;
}
.ep-hero__panel--solo {
  grid-template-columns: 1fr;
  max-width: 720px;
  justify-items: center;
  text-align: center;
}
.ep-hero--text .ep-hero__copy { text-align: center; }
.ep-hero--text .ep-hero__brand::after { margin-inline: auto; }
.ep-hero--text .ep-hero__eyebrow { justify-content: center; }
.ep-hero--text .ep-hero__desc { margin-inline: auto; }
.ep-hero--text .ep-hero__actions,
.ep-hero--text .ep-hero__meta { justify-content: center; }
.ep-hero--text .ep-hero__badge {
  display: inline-block;
  margin: 14px 0 0;
}
.ep-hero__crestWrap {
  display: grid;
  justify-items: center;
  gap: 16px;
}
.ep-hero__ring {
  padding: 16px;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, rgba(201,162,74,0.15), rgba(201,162,74,0.85), rgba(255,255,255,0.25), rgba(201,162,74,0.15));
  box-shadow: 0 34px 70px rgba(0,0,0,0.38);
  animation: epSoftFloat 7s ease-in-out infinite;
}
.ep-hero__crest {
  width: min(420px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.65);
}
.ep-hero__crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.ep-hero__crest--teacher img {
  object-fit: cover;
  object-position: center top;
}
.ep-hero__badge {
  margin: 0;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(201,162,74,0.5);
  background: rgba(16, 8, 24, 0.45);
  color: #F0DEA0;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}
.ep-hero__copy { text-align: start; }
.ep-hero__eyebrow {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #E8D19A;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ep-hero__eyebrow span {
  width: 28px;
  height: 1px;
  background: #C9A24A;
  display: inline-block;
}
.ep-hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.2vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #FFFFFF !important;
  text-shadow: 0 10px 36px rgba(0,0,0,0.35);
}
.ep-hero__brand::after {
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin-top: 16px;
  background: linear-gradient(90deg, #C9A24A, transparent);
}
.ep-hero__teacher {
  margin: 16px 0 0;
  font-size: clamp(1.12rem, 2.4vw, 1.4rem);
  font-weight: 800;
  color: #FFFFFF;
}
.ep-hero__desc {
  margin: 14px 0 0;
  max-width: 38ch;
  color: rgba(255,255,255,0.86);
  font-size: 1.06rem;
  line-height: 1.9;
}
.ep-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.ep-hero__meta {
  list-style: none;
  margin: 26px 0 0;
  padding: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.ep-hero__meta li {
  position: relative;
  padding-inline-start: 14px;
  color: rgba(255,255,255,0.78);
  font-weight: 700;
  font-size: 0.92rem;
}
.ep-hero__meta li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C9A24A;
}
@media (max-width: 900px) {
  .ep-hero__ornament { display: none; }
  .ep-hero__panel {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ep-hero__copy { text-align: center; }
  .ep-hero__brand::after { margin-inline: auto; }
  .ep-hero__eyebrow { justify-content: center; }
  .ep-hero__desc { margin-inline: auto; }
  .ep-hero__actions,
  .ep-hero__meta { justify-content: center; }
  .ep-hero__crest { width: min(300px, 78vw); }
  .ep-hero__ring { padding: 12px; }
}

/* ——— Section heads ——— */
.ep-sec {
  padding: clamp(64px, 9vw, 100px) 0;
  position: relative;
}
.ep-sec--mist {
  background:
    radial-gradient(700px 280px at 50% 0%, rgba(201,162,74,0.08), transparent 60%),
    var(--ep-mist);
}
html[data-theme="dark"] .ep-sec--mist { background: var(--page-bg-alt); }
.ep-sec__head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 44px;
}
.ep-sec__en {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-style: italic;
  color: var(--ep-purple-600);
  letter-spacing: 0.04em;
}
.ep-sec__en::before,
.ep-sec__en::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ep-gold);
}
.ep-sec__title {
  margin: 12px 0 0;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  color: var(--text-strong);
  line-height: 1.25;
}
.ep-sec__sub {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 34ch;
}

/* Skills — premium tiles */
.ep-skills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.ep-skill {
  text-align: center;
  padding: 28px 18px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #F7F2FC 100%);
  border: 1px solid rgba(42, 18, 72, 0.1);
  box-shadow: 0 12px 28px rgba(28, 11, 48, 0.06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
html[data-theme="dark"] .ep-skill {
  background: linear-gradient(180deg, #1C1230, #160C24);
  border-color: rgba(201,162,74,0.18);
}
.ep-skill:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(28, 11, 48, 0.12);
  border-color: rgba(201,162,74,0.45);
}
.ep-skill__ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2A1248;
  background: rgba(42, 18, 72, 0.06);
  border: 1px solid rgba(201,162,74,0.4);
}
html[data-theme="dark"] .ep-skill__ico {
  color: #E8D19A;
  background: rgba(201,162,74,0.1);
}
.ep-skill__ico svg { width: 26px; height: 26px; }
.ep-skill strong {
  display: block;
  font-family: var(--font-en);
  font-size: 1.2rem;
  color: var(--text-strong);
  font-weight: 700;
}
.ep-skill > span:last-child {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}
@media (max-width: 900px) {
  .ep-skills { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .ep-skills { grid-template-columns: 1fr; }
}

/* Path — premium step cards */
.ep-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
}
.ep-path__item {
  position: relative;
  text-align: start;
  padding: 26px 22px 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(42, 18, 72, 0.1);
  box-shadow: 0 14px 30px rgba(28, 11, 48, 0.06);
  overflow: hidden;
}
html[data-theme="dark"] .ep-path__item {
  background: #1C1230;
  border-color: rgba(201,162,74,0.16);
}
.ep-path__item::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #2A1248, #C9A24A);
}
.ep-path__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #C9A24A;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 14px;
}
.ep-path__ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #2A1248;
  background: rgba(42, 18, 72, 0.06);
  border: 1px solid rgba(201,162,74,0.35);
}
html[data-theme="dark"] .ep-path__ico {
  color: #E8D19A;
  background: rgba(201,162,74,0.1);
}
.ep-path__ico svg { width: 22px; height: 22px; }
.ep-path__item strong {
  display: block;
  font-size: 1.2rem;
  color: var(--text-strong);
  margin-bottom: 8px;
}
.ep-path__item p {
  margin: 0;
  max-width: none;
  color: var(--muted);
  line-height: 1.8;
}
@media (max-width: 860px) {
  .ep-path { grid-template-columns: 1fr; }
}

/* Features — elevated cards */
.ep-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ep-feature {
  position: relative;
  padding: 28px 24px 26px;
  background: #fff;
  border: 1px solid rgba(42, 18, 72, 0.1);
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(28, 11, 48, 0.06);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
html[data-theme="dark"] .ep-feature {
  background: #1C1230;
  border-color: rgba(201,162,74,0.16);
}
.ep-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(28, 11, 48, 0.12);
}
.ep-feature__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ep-feature__n {
  font-family: var(--font-display);
  color: #C9A24A;
  font-weight: 700;
  font-size: 1.35rem;
}
.ep-feature__mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #E8D19A, #C9A24A);
  box-shadow: 0 0 0 6px rgba(201,162,74,0.12);
}
.ep-feature h3 {
  margin: 0;
  font-size: 1.22rem;
  color: var(--text-strong);
}
.ep-feature p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.85;
}
@media (max-width: 860px) { .ep-features { grid-template-columns: 1fr; } }

/* Grades */
.ep-grades {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ep-grade {
  display: flex;
  flex-direction: column;
  background: var(--ep-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: inherit !important;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease;
}
html[data-theme="dark"] .ep-grade { background: var(--card-bg); }
.ep-grade:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.ep-grade__media {
  aspect-ratio: 16/11;
  background: linear-gradient(145deg, #2A1248, #4F2680);
  overflow: hidden;
}
.ep-grade__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}
.ep-grade__body { padding: 18px 20px 22px; }
.ep-grade__body h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-strong);
}
.ep-grade__body p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.ep-grade__go {
  display: inline-block;
  margin-top: 14px;
  font-weight: 800;
  color: var(--ep-purple-700);
}
html[data-theme="dark"] .ep-grade__go {
  color: #E8D19A;
}
@media (max-width: 860px) { .ep-grades { grid-template-columns: 1fr; } }

/* Stats */
.ep-stats {
  padding: 48px 0;
  background: var(--ep-purple-900);
  color: #fff;
}
.ep-stats__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.ep-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--ep-gold);
}
.ep-stats span { color: rgba(255,255,255,0.82); font-weight: 700; }
@media (max-width: 700px) { .ep-stats__row { grid-template-columns: 1fr; gap: 28px; } }

/* Finale CTA — full-bleed premium band */
.ep-finale {
  position: relative;
  padding: clamp(52px, 7vw, 84px) 20px;
  background:
    radial-gradient(700px 280px at 20% 0%, rgba(201,162,74,0.16), transparent 55%),
    linear-gradient(135deg, #12081F 0%, #1C0B30 45%, #2A1248 100%);
  color: #fff;
  border-block: 1px solid rgba(201,162,74,0.22);
}
.ep-finale__inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1.4fr auto;
  gap: 28px;
  align-items: center;
}
.ep-finale__inner--nologo {
  grid-template-columns: 1.4fr auto;
}
.ep-finale__crest {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 3px #C9A24A, 0 16px 34px rgba(0,0,0,0.28);
}
.ep-finale__crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.ep-finale__en {
  margin: 0;
  color: #E8D19A;
  font-family: var(--font-en);
  font-style: italic;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.ep-finale__copy h2 {
  margin: 8px 0 0;
  max-width: 16ch;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  color: #FFFFFF !important;
  line-height: 1.25;
}
.ep-finale__copy p {
  margin: 10px 0 0;
  max-width: 40ch;
  color: rgba(255,255,255,0.82);
  font-size: 1.02rem;
}
.ep-finale__cta {
  display: grid;
  gap: 12px;
  justify-items: stretch;
  min-width: 210px;
}
.ep-finale__link {
  text-align: center;
  color: rgba(255,255,255,0.78) !important;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ep-finale__link:hover { color: #E8D19A !important; }
@media (max-width: 900px) {
  .ep-finale__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .ep-finale__copy h2,
  .ep-finale__copy p { margin-inline: auto; }
  .ep-finale__cta { width: min(280px, 100%); }
}

/* Footer — premium brand bar + columns */
.ep-foot {
  position: relative;
  background: #0C0614;
  color: rgba(255,255,255,0.82);
  padding: 0 0 22px;
}
.ep-foot__shine {
  height: 2px;
  background: linear-gradient(90deg, transparent, #C9A24A 20%, #E8D19A 50%, #C9A24A 80%, transparent);
}
.ep-foot__inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 42px;
}
.ep-foot__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
.ep-foot__brandLink {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit !important;
}
.ep-foot__logo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 2px #C9A24A;
  flex: 0 0 78px;
}
.ep-foot__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.ep-foot__brandText {
  display: grid;
  gap: 2px;
}
.ep-foot__brandText strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: #fff;
  letter-spacing: 0.06em;
}
.ep-foot__brandText em {
  font-style: normal;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
}
.ep-foot__brandText span {
  color: #E8D19A;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.92rem;
}
.ep-foot__pitch {
  margin: 0;
  color: rgba(255,255,255,0.68);
  line-height: 1.8;
  max-width: 36ch;
  justify-self: end;
  text-align: start;
}
.ep-foot__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 28px;
}
.ep-foot__col h3 {
  margin: 0 0 14px;
  color: #E8D19A !important;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.ep-foot__col nav,
.ep-foot__contact {
  display: grid;
  gap: 10px;
}
.ep-foot__col a,
.ep-foot__contact span {
  color: rgba(255,255,255,0.86) !important;
  font-weight: 700;
  width: fit-content;
  transition: color .18s ease;
}
.ep-foot__col a:hover { color: #E8D19A !important; }
.ep-foot__socials {
  display: grid;
  gap: 12px;
  margin-bottom: 6px;
}
.ep-foot__social {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.92) !important;
}
.ep-foot__socialIco {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  padding: 3px;
  flex: 0 0 28px;
}
.ep-foot__social:hover .ep-foot__socialIco {
  background: rgba(201,162,74,0.18);
}
.ep-foot__phone { direction: ltr; text-align: start; font-variant-numeric: tabular-nums; }
.ep-foot__muted { color: rgba(255,255,255,0.5); font-size: 0.92rem; }
.ep-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.86rem;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 860px) {
  .ep-foot__top,
  .ep-foot__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ep-foot__brandLink { justify-content: center; }
  .ep-foot__brandText { text-align: start; }
  .ep-foot__pitch {
    justify-self: center;
    text-align: center;
  }
  .ep-foot__col nav,
  .ep-foot__contact { justify-items: center; }
  .ep-foot__col a { width: auto; }
  .ep-foot__bottom { justify-content: center; text-align: center; }
}

/* ——— Auth (login / register) — premium split ——— */
.auth-page {
  min-height: calc(100svh - 76px);
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 48px) 16px 56px;
  background:
    radial-gradient(820px 420px at 85% 10%, rgba(201,162,74,0.12), transparent 55%),
    radial-gradient(700px 360px at 10% 90%, rgba(79,38,128,0.12), transparent 55%),
    var(--ep-snow);
}
html[data-theme="dark"] .auth-page {
  background:
    radial-gradient(820px 420px at 85% 10%, rgba(201,162,74,0.14), transparent 55%),
    radial-gradient(700px 360px at 10% 90%, rgba(79,38,128,0.28), transparent 55%),
    var(--page-bg);
}
.auth-wrap {
  width: min(1080px, 100%);
}
.auth-card {
  background: var(--ep-white);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
  padding: 0;
  overflow: hidden;
}
html[data-theme="dark"] .auth-card { background: var(--card-bg); }

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  min-height: min(640px, calc(100svh - 140px));
}
.auth-page--register .auth-grid {
  min-height: min(760px, calc(100svh - 120px));
}

.auth-formPane {
  padding: clamp(28px, 4vw, 44px) clamp(22px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-kicker {
  margin: 0 0 10px;
  font-family: var(--font-en);
  font-style: italic;
  color: #C9A24A;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.auth-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  margin-bottom: 22px;
}
.auth-head__logo,
.auth-head .platform-logo__img,
.auth-head img {
  display: none !important;
}
.auth-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  color: var(--text-strong);
  line-height: 1.2;
}
.auth-head__sub {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 36ch;
  font-weight: 600;
  line-height: 1.75;
  font-size: 0.98rem;
}

.auth-form { width: 100%; }
.fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: grid; gap: 8px; margin-bottom: 14px; text-align: start; }
.fgrid .field { margin-bottom: 0; }
.fgrid + .field,
.fgrid + .fgrid { margin-top: 14px; }
.label { font-weight: 800; color: var(--text-strong); font-size: 0.92rem; }
.hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.input,
.auth-formPane input,
.auth-formPane select {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--field-border);
  background: var(--field-bg);
  color: var(--field-text);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus,
.auth-formPane input:focus,
.auth-formPane select:focus {
  outline: none;
  border-color: var(--ep-purple-600);
  box-shadow: 0 0 0 3px rgba(79, 38, 128, 0.14);
}
.auth-actions {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}
.btn-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #2A1248 0%, #4F2680 100%);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(42, 18, 72, 0.28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 34px rgba(42, 18, 72, 0.34);
}
.auth-forgot {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0 auto;
  cursor: pointer;
  color: var(--ep-purple-700);
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
}
html[data-theme="dark"] .auth-forgot { color: #E8D19A; }
.auth-foot {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  font-weight: 600;
}
.auth-link {
  color: var(--ep-purple-700) !important;
  font-weight: 800;
}
html[data-theme="dark"] .auth-link { color: #E8D19A !important; }

/* Image panel */
.auth-imgPane {
  position: relative;
  display: grid;
  min-height: 100%;
  background:
    radial-gradient(520px 320px at 30% 20%, rgba(201,162,74,0.22), transparent 55%),
    linear-gradient(160deg, #0F0718 0%, #2A1248 55%, #3B1A63 100%);
  overflow: hidden;
}
.auth-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.auth-imgPane__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,7,24,0.15) 0%, rgba(15,7,24,0.35) 45%, rgba(15,7,24,0.88) 100%),
    linear-gradient(90deg, rgba(15,7,24,0.25), transparent 40%);
  pointer-events: none;
}
.auth-imgPane__brand {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 28px 26px 32px;
  color: #fff;
  display: grid;
  gap: 4px;
}
.auth-imgPane__brand strong {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  letter-spacing: 0.02em;
}
.auth-imgPane__brand span {
  color: #E8D19A;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.95rem;
}
.auth-imgPane__brand em {
  margin-top: 4px;
  font-style: normal;
  font-weight: 700;
  color: rgba(255,255,255,0.86);
  font-size: 0.95rem;
}
.auth-imgFallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  color: rgba(255,255,255,0.88);
}
.auth-imgFallback__mark {
  width: 72px;
  height: 72px;
  margin-inline: auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: #E8D19A;
  border: 1px solid rgba(201,162,74,0.45);
  background: rgba(201,162,74,0.08);
}
.auth-imgFallback p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

@media (max-width: 920px) {
  .auth-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .auth-page--register .auth-grid { min-height: 0; }
  .auth-imgPane {
    min-height: 240px;
    order: -1;
  }
  .auth-formPane {
    padding: 26px 20px 30px;
  }
  .fgrid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .auth-card { border-radius: 22px; }
  .auth-imgPane { min-height: 200px; }
}

.phy-toast {
  position: fixed;
  z-index: 9999;
  inset-inline: 16px;
  top: 16px;
  max-width: 420px;
  margin-inline: auto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.phy-toast__icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  background: var(--danger-soft-bg); color: var(--danger);
}
.phy-toast--success .phy-toast__icon { background: var(--success-soft-bg); color: var(--success); }
.phy-toast__title { color: var(--text-strong); }
.phy-toast__msg, .phy-toast__list { margin: 4px 0 0; color: var(--muted); }
.phy-toast__close {
  margin-inline-start: auto; border: 0; background: transparent;
  font-size: 1.2rem; cursor: pointer; color: var(--muted);
}

/* Legacy class bridges used by old snippets */
.lg-btn { display: inline-flex; }
.lg-hdr, .lg-hero, .lg-path, .lg-guides, .lg-footer { /* superseded by ep-* */ }
