/* Alprince — dark mode: high-contrast readable text */

html[data-theme="dark"] body.legend-platform {
  color: var(--text);
}

html[data-theme="dark"] body.legend-platform h1,
html[data-theme="dark"] body.legend-platform h2,
html[data-theme="dark"] body.legend-platform h3 {
  color: var(--text-strong);
}

html[data-theme="dark"] .auth-head__title,
html[data-theme="dark"] .auth-head__sub {
  color: #fff !important;
}
html[data-theme="dark"] .auth-head__sub {
  color: #E4DCF0 !important;
}

/* Secondary / body copy — keep bright on purple */
html[data-theme="dark"] .ep-sec__sub,
html[data-theme="dark"] .ep-skill > span:last-child,
html[data-theme="dark"] .ep-path__item p,
html[data-theme="dark"] .ep-feature p,
html[data-theme="dark"] .ep-grade__body p,
html[data-theme="dark"] .auth-head__sub,
html[data-theme="dark"] .auth-foot,
html[data-theme="dark"] .muted {
  color: #E4DCF0 !important;
}

html[data-theme="dark"] .ep-sec__en {
  color: #E8D19A !important;
  opacity: 1;
}

html[data-theme="dark"] .ep-grade__go {
  color: #E8D19A !important;
}

html[data-theme="dark"] .ep-foot__pitch,
html[data-theme="dark"] .ep-foot__col a,
html[data-theme="dark"] .ep-foot__contact span {
  color: rgba(255, 255, 255, 0.88) !important;
}

html[data-theme="dark"] .ep-foot__muted,
html[data-theme="dark"] .ep-foot__bottom {
  color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="dark"] .ep-feature,
html[data-theme="dark"] .ep-grade,
html[data-theme="dark"] .auth-card {
  background: var(--card-bg);
  border-color: var(--border);
}

html[data-theme="dark"] body.legend-platform .acc-student,
html[data-theme="dark"] body.legend-platform .acc-bell,
html[data-theme="dark"] body.legend-platform .acc-burger {
  background: #1C1230 !important;
  border-color: rgba(201,162,74,0.2) !important;
  color: #fff !important;
}
html[data-theme="dark"] body.legend-platform .acc-burger span { background: #E8D19A !important; }

/* Account workspace — full dark surface (no white page behind cards) */
html[data-theme="dark"] body.legend-platform.student-no-header,
html[data-theme="dark"] body.legend-platform .acc-page,
html[data-theme="dark"] body.legend-platform .acc-main,
html[data-theme="dark"] body.legend-platform .acc-main > .container {
  background: #100818 !important;
  color: #F2ECF8 !important;
}

html[data-theme="dark"] body.legend-platform .acc-brand__name {
  color: #fff !important;
}
html[data-theme="dark"] body.legend-platform .acc-brand__sub {
  color: #E8D19A !important;
}

html[data-theme="dark"] body.legend-platform .acc-stat,
html[data-theme="dark"] body.legend-platform .acc-card,
html[data-theme="dark"] body.legend-platform .acc-course {
  background: #1C1230 !important;
  border-color: rgba(201,162,74,0.18) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28) !important;
  color: #F2ECF8 !important;
}

html[data-theme="dark"] body.legend-platform .acc-stat__val,
html[data-theme="dark"] body.legend-platform .acc-stat__lbl,
html[data-theme="dark"] body.legend-platform .acc-card h2,
html[data-theme="dark"] body.legend-platform .acc-card h3,
html[data-theme="dark"] body.legend-platform .acc-course__title,
html[data-theme="dark"] body.legend-platform .acc-sectionTitle {
  color: #fff !important;
}

html[data-theme="dark"] body.legend-platform a.acc-stat {
  color: inherit !important;
}

html[data-theme="dark"] body.legend-platform .acc-stat__lbl,
html[data-theme="dark"] body.legend-platform .acc-card p,
html[data-theme="dark"] body.legend-platform .acc-course__meta,
html[data-theme="dark"] body.legend-platform .muted {
  color: #D8CFE6 !important;
}

/* Mobile drawer icons always visible on purple */
html[data-theme="dark"] body.legend-platform .acc-sidebar .acc-nav__ico,
html[data-theme="dark"] body.legend-platform .acc-sidebar .acc-nav__ico svg,
body.legend-platform .acc-sidebar .acc-nav__ico,
body.legend-platform .acc-sidebar .acc-nav__ico svg {
  color: #E8D19A !important;
  stroke: currentColor !important;
  fill: none !important;
  opacity: 1 !important;
}
body.legend-platform .acc-sidebar .acc-nav__item.is-active .acc-nav__ico,
body.legend-platform .acc-sidebar .acc-nav__item.is-active .acc-nav__ico svg {
  color: #1C0B30 !important;
}
body.legend-platform .acc-sidebar .acc-nav__lbl {
  color: inherit !important;
  opacity: 1 !important;
}

html[data-theme="dark"] body.legend-platform .acc-stat__ico {
  background: rgba(201,162,74,0.12) !important;
  border-color: rgba(201,162,74,0.28) !important;
  color: #E8D19A !important;
}

html[data-theme="dark"] body.legend-platform .acc-input,
html[data-theme="dark"] body.legend-platform .acc-main input,
html[data-theme="dark"] body.legend-platform .acc-main select,
html[data-theme="dark"] body.legend-platform .acc-main textarea {
  background: #180C24 !important;
  border-color: rgba(201,162,74,0.22) !important;
  color: #fff !important;
}

html[data-theme="dark"] body.legend-platform .acc-btn,
html[data-theme="dark"] body.legend-platform .acc-btnx {
  background: #4F2680 !important;
  color: #fff !important;
}

html[data-theme="dark"] body.legend-platform .acc-pill {
  background: #3B1A63 !important;
  color: #fff !important;
}

.platform-logo__img:only-child { display: block !important; }
html[data-theme="dark"] .platform-logo__img--light { display: none; }
html[data-theme="dark"] .platform-logo__img--dark { display: block; }
html:not([data-theme="dark"]) .platform-logo__img--light { display: block; }
html:not([data-theme="dark"]) .platform-logo__img--dark { display: none; }
