/* =========================================================
   warm-theme.css
   Final global color polish for the warm cream / burgundy / rose
   visual direction. Loaded last so it normalizes older page colors.
   ========================================================= */

:root {
  --accent-50: #fff1ea;
  --accent-100: #f8dfd2;
  --accent-200: #edc3b6;
  --accent-300: #d79087;
  --accent-400: #b96365;
  --brand-burgundy: #7d313f;
  --accent-500: #8f3a48;
  --accent-600: #74313b;
  --accent-700: #5a252f;
  --accent-900: #32141b;

  --brand-100: var(--accent-100);
  --brand-200: var(--accent-200);
  --brand-300: var(--accent-300);
  --brand-400: var(--accent-400);
  --brand-500: var(--accent-500);
  --brand-600: var(--accent-600);
  --brand-700: var(--accent-700);
  --brand-800: var(--accent-900);
  --brand-900: var(--accent-900);

  --bg: #fff7ef;
  --bg-soft: #f6e7dc;
  --bg-muted: #edd8cb;
  --bg-card: #fffdfa;
  --bg-card-2: #fbf0e8;
  --bg-deep: #3a1b24;
  --bg-dark: #281119;
  --bg-darkest: #1a0b10;

  --line: rgba(58, 27, 36, .08);
  --line-soft: rgba(58, 27, 36, .045);
  --line-hard: rgba(58, 27, 36, .14);

  --text: #211316;
  --text-mute: #765f58;
  --text-dim: #aa9288;
  --text-onDark: #fff9f5;
  --text-onDark-mute: rgba(255, 249, 245, .72);
  --text-onDark-dim: rgba(255, 249, 245, .48);

  --shadow-sm:
    0 1px 2px rgba(58, 27, 36, .05),
    0 8px 18px rgba(58, 27, 36, .06);
  --shadow-md:
    0 10px 28px rgba(58, 27, 36, .09),
    0 2px 8px rgba(58, 27, 36, .04);
  --shadow-lg:
    0 30px 72px rgba(58, 27, 36, .13),
    0 12px 28px rgba(58, 27, 36, .06),
    inset 0 1px 0 rgba(255, 255, 255, .7);
  --shadow-card-hover:
    0 34px 78px rgba(58, 27, 36, .15),
    0 12px 32px rgba(143, 58, 72, .1),
    inset 0 1px 0 rgba(255, 255, 255, .78);
  --shadow-brand: 0 16px 36px rgba(143, 58, 72, .28), 0 4px 12px rgba(143, 58, 72, .14);
  --shadow-glow: 0 0 52px rgba(143, 58, 72, .16);
  --ring-accent: rgba(143, 58, 72, .16);
}

html,
body {
  background: var(--bg);
  color: var(--text);
}

body:not(.adminBody):not(.authBody):not(.accountBody) {
  background:
    radial-gradient(circle at 12% 8%, rgba(216, 144, 135, .16), transparent 34%),
    radial-gradient(circle at 88% 4%, rgba(143, 58, 72, .13), transparent 32%),
    linear-gradient(180deg, #fff8f1 0%, #f8eadf 42%, #f4e1d4 100%);
}

::selection {
  background: rgba(143, 58, 72, .22);
  color: var(--text);
}

.btn--primary,
button.btn--primary,
.nav__signin,
.auth__submit,
.checkout__pay,
.admin__buttonPrimary {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700)) !important;
  color: #fffaf6 !important;
  border-color: rgba(143, 58, 72, .28) !important;
  box-shadow: var(--shadow-brand) !important;
}

.btn--primary:hover,
.nav__signin:hover,
.auth__submit:hover,
.checkout__pay:hover,
.admin__buttonPrimary:hover {
  filter: saturate(1.05) brightness(1.02);
}

.btn--ghost,
.btn--outline,
.admin__buttonSecondary {
  color: var(--accent-700) !important;
  border-color: rgba(143, 58, 72, .18) !important;
  background: rgba(255, 253, 250, .74) !important;
}

a {
  color: var(--accent-600);
}

.eyebrow,
.courseCard__cat,
.checkout__eyebrow,
.auth__eyebrow,
.admin__eyebrow {
  color: var(--accent-600) !important;
}

.heroBanner__copy .eyebrow,
.dash__heroCopy .eyebrow,
.section--dark .eyebrow,
.section--burgundy .eyebrow,
.hero__copy .eyebrow {
  color: #fff5ef !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.38) !important;
}

.tag--blue,
.tag--purple,
.tag--green,
.tag--gold {
  background: var(--accent-50) !important;
  color: var(--accent-700) !important;
  border-color: var(--accent-100) !important;
}

.chip.is-active,
.catalogChip.is-active,
.admin__navItem.is-active,
.dash__mainMobileLinks a.is-active {
  background: var(--accent-50) !important;
  color: var(--accent-700) !important;
  border-color: rgba(143, 58, 72, .22) !important;
}

/* dashPage nav active links only */
.dashPage .nav__links a.is-active {
  background: rgba(255, 249, 245, .12) !important;
  color: #fffaf6 !important;
  border-color: transparent !important;
}

input,
textarea,
select,
.checkout__couponInput,
.admin__field input,
.admin__field textarea,
.admin__field select {
  background-color: #fffaf6 !important;
  color: var(--text) !important;
  border-color: rgba(58, 27, 36, .12) !important;
}

input:focus,
textarea:focus,
select:focus,
.checkout__couponInput:focus,
.admin__field input:focus,
.admin__field textarea:focus,
.admin__field select:focus {
  border-color: var(--accent-300) !important;
  box-shadow: 0 0 0 4px rgba(143, 58, 72, .11) !important;
  outline: none !important;
}

/* auth inputs stay glassy semi-transparent, not cream */
.auth__input {
  background: rgba(255, 255, 255, .74) !important;
  color: var(--text) !important;
  border-color: rgba(15, 17, 21, .12) !important;
}

.auth__input:focus {
  background: #fff !important;
  border-color: var(--accent-400) !important;
  box-shadow: 0 0 0 4px var(--accent-50), 0 12px 30px rgba(125, 79, 80, .08) !important;
}

/* footer newsletter input stays glassy on the dark footer, not cream —
   the blanket `input` rule above (line 159) was overriding footer.css's
   translucent-white design with an opaque cream background, leaving the
   semi-transparent white placeholder text almost invisible against it. */
.footer__newsletter input {
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.nav,
.nav--slim {
  background: rgba(56, 24, 32, .94) !important;
  color: var(--text-onDark) !important;
  border-color: rgba(255, 249, 245, .08) !important;
}

.nav__links a,
.nav__brand,
.dash__userName {
  color: rgba(255, 249, 245, .82) !important;
}

.nav__links a:hover {
  color: #fffaf6 !important;
}

.promoBar {
  background: linear-gradient(90deg, #96354a, #c76355, #e59d69) !important;
  color: #fffaf6 !important;
}

.hero,
.dash__hero,
.checkoutHero,
.authHero,
.accountHero {
  background:
    radial-gradient(circle at 15% 10%, rgba(216, 144, 135, .22), transparent 35%),
    radial-gradient(circle at 86% 6%, rgba(143, 58, 72, .16), transparent 32%),
    linear-gradient(180deg, #fff8f1 0%, #f7e6da 100%) !important;
}

.courseCard,
.categoryCard,
.kpi,
.admin__panel,
.dash__panel,
.dash__courseCard,
.checkout__summary,
.auth__card,
.account__card,
.instructorProfile__card {
  background: rgba(255, 253, 250, .88) !important;
  border-color: rgba(58, 27, 36, .09) !important;
  box-shadow: var(--shadow-sm);
}

.courseCard:hover,
.categoryCard:hover,
.dash__courseCard:hover,
.admin__panel:hover {
  box-shadow: var(--shadow-card-hover) !important;
}

.courseCard__thumb,
.dash__continueThumb,
.checkout__courseThumb,
.coursePlayer__heroThumb {
  background: var(--course-bg, linear-gradient(135deg, var(--accent-500), var(--accent-700))) !important;
}

.courseCard__sale,
.courseCard__ribbon,
.dash__continueRibbon,
.checkout__secureBadge {
  background: linear-gradient(135deg, #f5c27b, #c45d57) !important;
  color: #381820 !important;
}

.ctaBand,
.admin__sidebar,
.dash__continueCard {
  background:
    radial-gradient(circle at 18% 18%, rgba(216, 144, 135, .14), transparent 34%),
    linear-gradient(180deg, #3a1b24 0%, #281119 58%, #1a0b10 100%) !important;
  color: var(--text-onDark) !important;
}

.footer {
  background:
    radial-gradient(circle at 18% -12%, rgba(255, 214, 198, 0.48), transparent 55%),
    radial-gradient(circle at 80% -30%, rgba(220, 140, 152, 0.44), transparent 52%),
    linear-gradient(180deg, #33101d 0%, #240a14 60%, #1a070f 100%) !important;
  color: var(--text-onDark) !important;
}

.progressFill,
.dash__progressFill,
.admin__progressFill {
  background: linear-gradient(90deg, var(--accent-500), #d98545) !important;
}

.checkout__status--error,
.auth__message--error,
.admin__status[data-state="error"] {
  background: #fff1ed !important;
  border-color: rgba(150, 53, 74, .2) !important;
  color: #793141 !important;
}

.checkout__status--success,
.auth__message--success,
.admin__status[data-state="ok"] {
  background: #fff6e8 !important;
  border-color: rgba(217, 133, 69, .24) !important;
  color: #74421e !important;
}

/* =========================================================
   STUDENT DASHBOARD POLISH
   ========================================================= */

.dashPage {
  background:
    radial-gradient(circle at 8% -8%, rgba(216, 144, 135, .24), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(143, 58, 72, .18), transparent 32%),
    linear-gradient(180deg, #fff8f1 0%, #f7e6da 46%, #f2dccd 100%) !important;
}

.dashPage::before {
  opacity: .16 !important;
}

.dashPage .nav.nav--slim {
  background:
    linear-gradient(180deg, rgba(58, 27, 36, .98) 0%, rgba(40, 17, 25, .96) 100%) !important;
  border-bottom: 1px solid rgba(255, 249, 245, .08) !important;
  box-shadow: 0 12px 38px rgba(40, 17, 25, .18) !important;
  backdrop-filter: blur(18px);
}

.dashPage .nav__logo {
  mix-blend-mode: normal !important;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.dashPage .nav__links {
  background: transparent;
  border: 0;
  padding: 0;
}

.dashPage .nav__links a {
  position: relative;
  padding: 6px 0;
  border-radius: 0;
  background: transparent !important;
  color: rgba(255, 245, 240, .88) !important;
}

.dashPage .nav__links a:hover,
.dashPage .nav__links a.is-active {
  background: transparent !important;
  color: #ffffff !important;
}

.dashPage .nav__links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-400);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--duration-hover) var(--ease-out);
}

.dashPage .nav__links a:hover::after,
.dashPage .nav__links a.is-active::after {
  width: 100%;
}

.dashPage .nav__links {
  gap: 24px !important;
}

.dashPage .dash__hero {
  background:
    radial-gradient(circle at 14% 16%, rgba(245, 194, 123, .16), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(216, 144, 135, .18), transparent 34%),
    linear-gradient(135deg, #4a1f2c 0%, #2f141d 48%, #18090e 100%) !important;
  color: var(--text-onDark) !important;
  border-radius: 0 0 42px 42px !important;
  box-shadow: 0 30px 70px rgba(58, 27, 36, .20);
}

.dashPage .dash__hero::after {
  opacity: .18 !important;
  mix-blend-mode: screen;
}

.dashPage .dash__hero::before {
  background:
    linear-gradient(90deg, rgba(255, 249, 245, .06), transparent 48%),
    radial-gradient(circle at 72% 80%, rgba(245, 194, 123, .14), transparent 32%) !important;
}

.dashPage .dash__hero .eyebrow {
  background: rgba(255, 249, 245, .11) !important;
  border-color: rgba(255, 249, 245, .18) !important;
  color: #f5c27b !important;
}

.dashPage .dash__title,
.dashPage .dash__hero h1,
.dashPage .dash__hero h2 {
  color: #fffaf6 !important;
  text-shadow: 0 14px 36px rgba(0, 0, 0, .24);
}

.dashPage .dash__title em {
  color: #f5c27b !important;
}

.dashPage .dash__lead {
  color: rgba(255, 249, 245, .72) !important;
}

.dashPage .dash__heroActions .btn--ghost {
  background: rgba(255, 249, 245, .1) !important;
  color: #fffaf6 !important;
  border-color: rgba(255, 249, 245, .18) !important;
}

.dashPage .dash__continueCard {
  background:
    linear-gradient(180deg, rgba(255, 249, 245, .16), rgba(255, 249, 245, .08)) !important;
  border: 1px solid rgba(255, 249, 245, .18) !important;
  box-shadow:
    0 34px 80px rgba(0, 0, 0, .26),
    inset 0 1px 0 rgba(255, 255, 255, .16) !important;
  backdrop-filter: blur(18px);
}

.dashPage .dash__continueBody,
.dashPage .dash__continueTitle,
.dashPage .dash__continueMeta,
.dashPage .dash__continueSubtitle {
  color: rgba(255, 249, 245, .78) !important;
}

.dashPage .dash__continueTitle,
.dashPage .dash__continueBody strong {
  color: #fffaf6 !important;
}

.dashPage .dash__stats,
.dashPage .dash__statsGrid {
  margin-top: clamp(18px, 3vw, 28px);
}

.dashPage .dash__stat {
  background:
    linear-gradient(180deg, rgba(255, 253, 250, .92), rgba(255, 247, 239, .86)) !important;
  border: 1px solid rgba(58, 27, 36, .08) !important;
  box-shadow: 0 18px 46px rgba(58, 27, 36, .09) !important;
  border-radius: 24px !important;
}

.dashPage .dash__stat strong {
  color: var(--accent-700) !important;
}

.dashPage .dash__view {
  padding-top: clamp(42px, 6vw, 72px);
}

.dashPage .dash__sectionHead {
  align-items: end;
  margin-bottom: 24px;
}

.dashPage .dash__sectionHead h2 {
  color: var(--text) !important;
  letter-spacing: -.04em;
}

.dashPage .dash__tabs {
  padding: 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 250, .72);
  border: 1px solid rgba(58, 27, 36, .08);
  box-shadow: var(--shadow-sm);
}

.dashPage .dash__tab {
  border-radius: var(--radius-pill);
  color: var(--text-mute);
}

.dashPage .dash__tab.is-active {
  background: linear-gradient(135deg, var(--accent-50), #fffaf6) !important;
  color: var(--accent-700) !important;
  box-shadow: 0 10px 24px rgba(143, 58, 72, .12);
}

.dashPage .dash__courseTabs,
.dashPage .dash__availableGrid,
.dashPage .dash__panelOverview {
  gap: 18px;
}

.dashPage .dash__courseCard {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, .96), rgba(255, 247, 239, .88)) !important;
  border: 1px solid rgba(58, 27, 36, .09) !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 44px rgba(58, 27, 36, .09) !important;
}

.dashPage .dash__courseCard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-500), #d98545);
  opacity: .86;
}

.dashPage .dash__courseCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(58, 27, 36, .15) !important;
}

.dashPage .dash__courseIcon {
  background:
    radial-gradient(circle at 32% 26%, rgba(245, 194, 123, .38), transparent 32%),
    linear-gradient(135deg, var(--accent-500), var(--accent-700)) !important;
  color: #fffaf6 !important;
  box-shadow: 0 18px 34px rgba(143, 58, 72, .18);
}

.dashPage .dash__courseBadge {
  background: var(--accent-50) !important;
  color: var(--accent-700) !important;
  border: 1px solid var(--accent-100) !important;
}

.dashPage .dash__courseStatus {
  color: var(--text-mute) !important;
}

.dashPage .dash__progress,
.dashPage .dash__courseCardProgress {
  background: rgba(58, 27, 36, .08) !important;
}

.dashPage .dash__coursePanel,
.dashPage .dash__modulePanel,
.dashPage .dash__lessonPanel,
.dashPage .dash__quizCard,
.dashPage .dash__playlistCard,
.dashPage .dash__assignmentCard,
.dashPage .dash__certificateCard,
.dashPage .dash__supportCard {
  background:
    linear-gradient(180deg, rgba(255, 253, 250, .95), rgba(255, 247, 239, .88)) !important;
  border: 1px solid rgba(58, 27, 36, .09) !important;
  box-shadow: 0 20px 52px rgba(58, 27, 36, .10) !important;
  border-radius: 28px !important;
}

.dashPage .dash__coursePanel section {
  background:
    linear-gradient(180deg, #fffaf6, #f8eadf) !important;
  border-color: rgba(58, 27, 36, .08) !important;
}

.dashPage .dash__courseInstructor {
  background:
    linear-gradient(135deg, #fffaf6, #f4ded1) !important;
  border-color: rgba(143, 58, 72, .12) !important;
}

.dashPage .dash__quizEmpty,
.dashPage .dash__empty {
  background:
    linear-gradient(180deg, rgba(255, 253, 250, .9), rgba(255, 247, 239, .78));
  border: 1px dashed rgba(143, 58, 72, .18);
  border-radius: 28px;
}

@media (max-width: 768px) {
  .dashPage .nav__links,
  .dashPage .nav__links.is-open {
    position: fixed !important;
    inset: 68px 0 auto 0 !important;
    background: rgba(40, 17, 25, .98) !important;
    border-radius: 0 0 28px 28px !important;
    border: 1px solid rgba(255, 249, 245, .08) !important;
    border-top: 0 !important;
    padding: 8px 8px 18px !important;
    gap: 2px !important;
    display: none;
    flex-direction: column !important;
    align-items: stretch !important;
    backdrop-filter: blur(18px);
  }

  .dashPage .nav__links.is-open {
    display: flex !important;
  }

  .dashPage .nav__links a {
    padding: 14px 18px !important;
    border-radius: 14px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: rgba(255, 249, 245, .78) !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(255, 249, 245, .06) !important;
  }

  .dashPage .nav__links a:last-child {
    border-bottom: 0 !important;
  }

  .dashPage .nav__links a:hover,
  .dashPage .nav__links a.is-active {
    background: rgba(255, 249, 245, .10) !important;
    color: #fffaf6 !important;
  }

  .dashPage .dash__hero {
    border-radius: 0 0 28px 28px !important;
  }

  .dashPage .dash__sectionHead {
    align-items: flex-start;
  }
}

/* =========================================================
   ADMIN DASHBOARD POLISH
   ========================================================= */

.adminBody {
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 144, 135, .20), transparent 32%),
    radial-gradient(circle at 92% 6%, rgba(143, 58, 72, .13), transparent 30%),
    linear-gradient(180deg, #fff8f1 0%, #f6e6da 52%, #efd7c8 100%) !important;
}

.adminBody::before {
  opacity: .12 !important;
  filter: sepia(.25) saturate(.8);
}

.admin__sidebar {
  background:
    radial-gradient(circle at 18% 8%, rgba(245, 194, 123, .14), transparent 30%),
    radial-gradient(circle at 80% 44%, rgba(216, 144, 135, .12), transparent 30%),
    linear-gradient(180deg, #4a1f2c 0%, #331620 48%, #1b0b10 100%) !important;
  border-right: 1px solid rgba(255, 249, 245, .08) !important;
  box-shadow: 18px 0 54px rgba(58, 27, 36, .18);
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 194, 123, .46) rgba(255, 255, 255, .06);
}

.admin__sidebar::-webkit-scrollbar {
  width: 8px;
}

.admin__sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .05);
}

.admin__sidebar::-webkit-scrollbar-thumb {
  background: rgba(245, 194, 123, .42);
  border-radius: 999px;
  border: 2px solid rgba(58, 27, 36, .5);
}

.admin__sidebar::before {
  opacity: .12 !important;
  mix-blend-mode: screen !important;
}

.admin__brand {
  min-height: 76px;
  gap: 10px !important;
  padding-bottom: 12px !important;
  border-bottom-color: rgba(255, 249, 245, .10) !important;
}

.admin__brand img {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain;
  padding: 3px;
  border-radius: 0;
  mix-blend-mode: normal !important;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .20));
}

.admin__brand strong,
.admin__navItem {
  color: rgba(255, 249, 245, .92) !important;
}

.admin__brand em,
.admin__navLabel {
  color: rgba(245, 194, 123, .78) !important;
  text-shadow: none !important;
}

.admin__nav {
  gap: 2px !important;
  padding-right: 2px;
  padding-bottom: 16px;
}

.admin__navLabel {
  margin: 14px 0 6px !important;
}

.admin__navItem {
  min-height: 40px;
  padding-block: 9px !important;
  border: 1px solid transparent !important;
  text-shadow: none !important;
  color: rgba(255, 239, 232, .85) !important;
}

.admin__navItem:hover,
.admin__navItem.is-active {
  background: rgba(255, 249, 245, .12) !important;
  border-color: rgba(255, 249, 245, .13) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  color: #fffaf4 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .35) !important;
  font-weight: 700 !important;
}

.admin__navItem.is-active svg,
.admin__navItem:hover svg {
  color: #f5c27b !important;
  opacity: 1 !important;
}

.admin__navCount {
  background: rgba(245, 194, 123, .14) !important;
  border-color: rgba(245, 194, 123, .22) !important;
  color: #fff7ef !important;
}

.admin__sidebarFoot {
  margin-top: auto;
  padding-top: 12px !important;
  padding-bottom: 14px;
  gap: 10px !important;
  border-top-color: rgba(255, 249, 245, .10) !important;
}

.admin__me {
  background: rgba(255, 249, 245, .09) !important;
  border-color: rgba(255, 249, 245, .12) !important;
}

.admin__me strong {
  color: #fffaf6 !important;
}

.admin__me span,
.admin__backLink {
  color: rgba(255, 249, 245, .62) !important;
}

.admin__main {
  background: transparent !important;
}

.admin__top {
  background: rgba(255, 253, 250, .82) !important;
  border-bottom: 1px solid rgba(58, 27, 36, .08) !important;
  box-shadow: 0 18px 52px rgba(58, 27, 36, .08) !important;
  backdrop-filter: blur(22px) saturate(1.2) !important;
}

.admin__topTitle h1,
.admin__h2,
.admin__pageHead h2 {
  color: var(--text) !important;
  letter-spacing: -.04em;
}

.admin__content {
  background: transparent !important;
}

.admin__view {
  animation: adminWarmFade .36s ease both;
}

@keyframes adminWarmFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin__panel,
.admin__card,
.admin__quickItem,
.admin__uploadCard,
.admin__form,
.admin__tableWrap,
.admin__empty,
.admin__modalCard {
  background: rgba(255, 255, 255, .82) !important;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 4px 24px rgba(58, 27, 36, .08),
    0 18px 46px rgba(58, 27, 36, .06) !important;
  backdrop-filter: blur(20px) saturate(1.15) !important;
  border-radius: 28px !important;
}

.admin__panel:hover,
.admin__quickItem:hover,
.admin__uploadCard:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 8px 32px rgba(58, 27, 36, .10),
    0 24px 56px rgba(58, 27, 36, .08) !important;
}

.kpi,
.adminBody .kpi {
  background: rgba(255, 255, 255, .78) !important;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  border-radius: 26px !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 4px 20px rgba(58, 27, 36, .07),
    0 14px 36px rgba(58, 27, 36, .05) !important;
  backdrop-filter: blur(20px) saturate(1.15) !important;
}

.kpi strong,
.adminBody .kpi strong {
  color: var(--accent-700) !important;
}

.admin__table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.admin__table thead th {
  background:
    linear-gradient(180deg, rgba(255, 241, 234, .96), rgba(255, 250, 246, .78)) !important;
  color: var(--accent-700) !important;
  border-bottom-color: rgba(143, 58, 72, .12) !important;
}

.admin__table tbody tr:hover {
  background: rgba(143, 58, 72, .045) !important;
}

.admin__tableAvatar,
.admin__tableCode,
.admin__meAvatar {
  background:
    radial-gradient(circle at 30% 25%, rgba(245, 194, 123, .38), transparent 34%),
    linear-gradient(135deg, var(--accent-500), var(--accent-700)) !important;
  color: #fffaf6 !important;
}

.admin__rowBar {
  background: rgba(58, 27, 36, .08) !important;
  border-color: rgba(58, 27, 36, .09) !important;
}

.admin__rowBar i {
  background: linear-gradient(90deg, var(--accent-500), #d98545) !important;
}

.admin__search {
  background: rgba(255, 250, 246, .82) !important;
  border-color: rgba(58, 27, 36, .10) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.admin__search:focus-within {
  border-color: var(--accent-300) !important;
  box-shadow: 0 0 0 4px rgba(143, 58, 72, .10), inset 0 1px 0 rgba(255, 255, 255, .7) !important;
}

/* =========================================================
   INSTRUCTOR DASHBOARD POLISH
   ========================================================= */

.instructorDashboardPage {
  background:
    radial-gradient(circle at 10% -10%, rgba(245, 194, 123, .18), transparent 34%),
    radial-gradient(circle at 92% 2%, rgba(216, 144, 135, .22), transparent 34%),
    linear-gradient(180deg, #fff8f1 0%, #f7e6da 48%, #f0d7c8 100%) !important;
}

.instructorDashboardPage .admin__content {
  gap: 18px;
  padding-top: 20px;
}

.instructorDashboardPage #view-overview>.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(18px, 2vw, 28px);
}

.instructorDashboardPage #view-overview .admin__kpis {
  gap: 14px;
}

.instructorDashboardPage #view-overview .kpi {
  min-height: 172px;
  padding: 20px;
  border-radius: 22px;
}

.instructorDashboardPage #view-overview .kpi__value {
  margin: 10px 0 4px;
  font-size: clamp(1.55rem, 2vw, 1.9rem);
}

.instructorDashboardPage #view-overview .admin__grid {
  gap: 18px;
}

.instructorDashboardPage #view-overview .admin__card {
  border-radius: 22px;
  padding: 22px;
}

.instructorDashboardPage #view-overview .admin__cardHead {
  margin-bottom: 16px;
}

.instructorDashboardPage #view-overview .admin__quick {
  grid-template-columns: 1fr;
}

.instructorDashboardPage #view-overview .admin__quickItem {
  min-height: 0;
  padding: 14px;
}

.instructorDashboardPage .dash__hero {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.instructorDashboardPage .dash__heroGrid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 18px;
  padding: 0 !important;
}

.instructorDashboardPage .dash__heroCopy,
.instructorDashboardPage .dash__continueCard,
.instructorDashboardPage .admin__panel,
.instructorDashboardPage #insCourseForm,
.instructorDashboardPage .dash__stat,
.instructorDashboardPage .dash__courseCard,
.instructorDashboardPage .courseCard,
.instructorDashboardPage .dash__empty {
  background: rgba(255, 255, 255, .78) !important;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  border-radius: 26px !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 12px 34px rgba(58, 27, 36, .08),
    0 22px 58px rgba(58, 27, 36, .06) !important;
}

.instructorDashboardPage .dash__heroCopy {
  padding: clamp(22px, 4vw, 34px);
}

.instructorDashboardPage .dash__hero .eyebrow {
  color: var(--accent-600) !important;
}

.instructorDashboardPage .dash__title {
  color: var(--text) !important;
  font-size: clamp(2rem, 4vw, 3.6rem) !important;
}

.instructorDashboardPage .dash__lead {
  color: rgba(58, 27, 36, .68) !important;
}

.instructorDashboardPage .dash__continueCard {
  color: var(--text);
}

.instructorDashboardPage .instructorImpactCard {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: clamp(22px, 4vw, 34px) !important;
}

.instructorDashboardPage .instructorImpactCard .dash__continueRibbon {
  position: static;
  width: max-content;
  margin-bottom: 12px;
}

.instructorDashboardPage .instructorImpactCard__lead {
  margin: 0 0 22px;
  color: rgba(58, 27, 36, .66);
  font-weight: 700;
}

.instructorDashboardPage .instructorImpactCard .dash__continueBody {
  padding: 0;
}

.instructorDashboardPage .instructorImpactCard .dash__statRow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.instructorDashboardPage .dash__statRow {
  gap: 14px;
}

.instructorDashboardPage .dash__statItem {
  padding: 14px 10px;
  border-radius: 18px;
  background: rgba(255, 249, 245, .10);
  border: 1px solid rgba(255, 249, 245, .12);
}

.instructorDashboardPage #insCourseForm {
  padding: clamp(22px, 4vw, 34px);
}

.instructorDashboardPage .admin__field {
  color: var(--text) !important;
}

.instructorDashboardPage .courseCard {
  overflow: hidden;
}

.instructorDashboardPage .courseCard__thumb {
  min-height: 170px;
}

.instructorDashboardPage .dash__panelOverview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.instructorDashboardPage .dash__view {
  display: none;
}

.instructorDashboardPage .dash__view.is-active {
  display: block;
  animation: adminWarmFade .36s ease both;
}

.instructorDashboardPage .dash__view>.container,
.instructorDashboardPage .dash__hero>.container {
  max-width: none;
  width: 100%;
}

.instructorDashboardPage .dash__sectionHead {
  margin-bottom: 18px;
}

.instructorDashboardPage .dash__statsGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 18px;
}

.instructorDashboardPage .dash__stat {
  padding: 22px;
}

.instructorDashboardPage .instructorManagePanel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(22px, 4vw, 34px) !important;
}

.instructorDashboardPage .instructorManagePanel h3 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -.035em;
  color: var(--text);
}

.instructorDashboardPage .instructorManagePanel p {
  margin: 0;
  max-width: 58ch;
  color: rgba(58, 27, 36, .66);
  font-weight: 600;
  line-height: 1.6;
}

.instructorDashboardPage .dash__continueThumb {
  min-height: 128px;
  border-radius: 22px;
}

@media (max-width: 1100px) {
  .instructorDashboardPage #view-overview .admin__kpis,
  .instructorDashboardPage #view-overview .admin__grid--2-1,
  .instructorDashboardPage #view-overview .admin__grid--1-1 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 920px) {
  .instructorDashboardPage .dash__heroGrid,
  .instructorDashboardPage .dash__statsGrid,
  .instructorDashboardPage #view-overview .admin__kpis,
  .instructorDashboardPage #view-overview .admin__grid--2-1,
  .instructorDashboardPage #view-overview .admin__grid--1-1 {
    grid-template-columns: 1fr;
  }
}

.admin__instructorSummaryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.admin__instructorSummaryCard {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(58, 27, 36, .09);
  background: linear-gradient(180deg, rgba(255, 253, 250, .95), rgba(255, 247, 239, .88));
  box-shadow: 0 16px 42px rgba(58, 27, 36, .08);
}

.admin__instructorSummaryHead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.admin__instructorSummaryHead strong,
.admin__instructorSummaryHead span {
  display: block;
}

.admin__instructorSummaryHead span {
  color: var(--text-mute);
  font-size: .84rem;
}

.admin__instructorCourseMiniList {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

/* ---- pending application cards ---- */
.adminAppCard {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .88) !important;
  border: 1px solid rgba(255, 255, 255, .6) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 4px 20px rgba(58, 27, 36, .06),
    0 12px 32px rgba(58, 27, 36, .04) !important;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.adminAppCard__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.adminAppCard__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .82rem;
  font-weight: 700;
  color: #fffaf6;
  background:
    radial-gradient(circle at 30% 25%, rgba(245, 194, 123, .45), transparent 40%),
    linear-gradient(135deg, var(--accent-500), var(--accent-700));
  flex-shrink: 0;
}

.adminAppCard__meta {
  flex: 1;
  min-width: 0;
}

.adminAppCard__meta strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.3;
}

.adminAppCard__meta span {
  display: block;
  font-size: .84rem;
  color: var(--text-mute);
  margin-top: 2px;
}

.adminAppCard__time {
  font-size: .78rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.adminAppCard__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.adminAppCard__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.adminAppCard__fields > div,
.adminAppCard__idea {
  background: rgba(255, 250, 246, .72);
  border: 1px solid rgba(58, 27, 36, .07);
  border-radius: 14px;
  padding: 12px 14px;
}

.adminAppCard__fields label,
.adminAppCard__idea label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.adminAppCard__fields p,
.adminAppCard__idea p {
  margin: 0;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.4;
}

.adminAppCard__actions {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}

.admin__instructorCourseMiniList li {
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(143, 58, 72, .06);
  color: var(--text-mute);
  font-size: .88rem;
}

/* =========================================================
   FIX FLOATING WHITE BOXES
   Elements that inherit #fff or var(--bg) and show
   as unwanted light patches on dark surfaces.
   ========================================================= */

/* nav profile icon (not signed-in) should not be cream on dark nav */
.nav__profileIcon:not(.is-signedIn) {
  background: rgba(255, 249, 245, .10) !important;
  border-color: rgba(255, 249, 245, .22) !important;
  color: rgba(255, 249, 245, .85) !important;
}

.nav__profileIcon:not(.is-signedIn):hover {
  background: rgba(255, 249, 245, .18) !important;
  border-color: rgba(255, 249, 245, .35) !important;
  color: #fffaf6 !important;
}

/* ensure chips / tags never show as raw white */
.chip,
.catalogChip,
.tag {
  background: rgba(143, 58, 72, .08) !important;
  color: var(--accent-700) !important;
  border-color: rgba(143, 58, 72, .14) !important;
}

/* cards and panels should use warm cream, not stark white */
.card,
.courseCard,
.lessonCard,
.admin__card,
.admin__panel,
.kpi,
.admin__form,
.admin__tableWrap,
.admin__uploadCard,
.admin__empty,
.admin__modalCard,
.account__panel,
.account__sidebar,
.checkout__panel {
  background:
    linear-gradient(180deg, rgba(255, 253, 250, .96), rgba(255, 247, 239, .90)) !important;
  border-color: rgba(58, 27, 36, .09) !important;
}

/* search inputs inside dark nav must stay dark, not cream */
.nav__search {
  background: rgba(255, 249, 245, .10) !important;
  border-color: rgba(255, 249, 245, .18) !important;
  color: rgba(255, 249, 245, .85) !important;
}

/* dark lead form inputs must stay glassy, not cream */
.leadForm--onDark,
.leadForm--onDark input {
  background: rgba(255, 255, 255, .09) !important;
  border-color: rgba(255, 255, 255, .22) !important;
  color: #fff !important;
  backdrop-filter: blur(12px) saturate(1.25);
}

.leadForm--onDark input::placeholder {
  color: rgba(255, 255, 255, .78) !important;
}

.leadForm--onDark:focus-within {
  border-color: rgba(255, 255, 255, .40) !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .08) !important;
}

/* mobile nav menu must be dark so white text is readable */
@media (max-width: 880px) {
  .nav__links,
  .nav__links.is-open {
    background:
      linear-gradient(180deg, rgba(58, 27, 36, .98) 0%, rgba(40, 17, 25, .98) 100%) !important;
    border-color: rgba(255, 249, 245, .10) !important;
    box-shadow: 0 24px 60px rgba(40, 17, 25, .35) !important;
  }

  .nav__links a {
    color: rgba(255, 249, 245, .82) !important;
    border-bottom-color: rgba(255, 249, 245, .08) !important;
  }

  .nav__links a:hover,
  .nav__links a.is-active {
    color: #fffaf6 !important;
  }
}

.nav__search input {
  background: transparent !important;
  color: rgba(255, 249, 245, .90) !important;
}

.nav__search input::placeholder {
  color: rgba(255, 249, 245, .55) !important;
}

/* =========================================================
   ACCOUNT PAGE RESPONSIVE CLEANUP
   Desktop: remove the hero header (redundant with sidebar)
   Mobile: remove sidebar tabs, show all panels stacked
   ========================================================= */

@media (min-width: 981px) {
  .accountPage .account__hero {
    display: none !important;
  }

  .accountPage .account__mobileLinks {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .accountPage .account__sidebar {
    display: none !important;
  }

  .accountPage .account__layout {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .accountPage .account__panelHost {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
  }

  .accountPage .account__panel {
    display: block !important;
    margin-bottom: 0;
    border-radius: 22px !important;
  }

  .accountPage .account__panelHead {
    margin-bottom: 18px !important;
  }

  .accountPage .account__panelTitle {
    font-size: 1.25rem !important;
  }
}

/* =========================================================
   STUDENT DASHBOARD FINAL REFINEMENT
   Larger, cleaner layout for the learner home.
   ========================================================= */

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav.nav--slim .nav__inner {
  min-height: 74px !important;
  gap: 18px;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links {
  gap: clamp(14px, 1.6vw, 26px) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  flex-wrap: nowrap !important;
}

/* Tighten link spacing on narrower desktops so every label stays on one
   row with clear separation before the burger menu takes over. */
@media (max-width: 1280px) {
  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links {
    gap: 16px !important;
  }
}

@media (max-width: 1120px) {
  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links {
    gap: 13px !important;
  }
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links a {
  padding: 6px 0 !important;
  font-size: .92rem !important;
  font-weight: 600 !important;
  letter-spacing: -.01em;
}

/* Responsive font-size (placed after the base rule so it wins the cascade). */
@media (max-width: 1280px) {
  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links a {
    font-size: .88rem !important;
  }
}
@media (max-width: 1120px) {
  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links a {
    font-size: .84rem !important;
  }
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__desktopCta {
  gap: 14px;
  padding-left: 10px;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__avatar {
  width: 42px !important;
  height: 42px !important;
  border: 1px solid rgba(255, 249, 245, .18);
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700)) !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .signOutButton {
  min-height: 42px;
  padding-inline: 18px;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__hero {
  min-height: 560px;
  padding: clamp(70px, 8vw, 104px) 0 clamp(88px, 9vw, 124px) !important;
  border-radius: 0 0 56px 56px !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__heroGrid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .72fr) !important;
  gap: clamp(52px, 7vw, 96px) !important;
  align-items: center !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__heroCopy {
  max-width: 650px;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__hero .eyebrow {
  padding: 7px 13px;
  font-size: .76rem;
  letter-spacing: .18em;
  margin-bottom: 20px !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__title {
  font-size: clamp(3.2rem, 6.2vw, 5.7rem) !important;
  line-height: .92 !important;
  max-width: 720px;
  margin-bottom: 20px !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__lead {
  max-width: 560px;
  font-size: 1.08rem !important;
  line-height: 1.8 !important;
  color: rgba(255, 249, 245, .78) !important;
  margin-bottom: 28px !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__heroActions {
  gap: 14px !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__heroActions .btn {
  min-height: 50px;
  padding-inline: 24px;
  border-radius: 999px;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__continueCard {
  width: min(430px, 100%) !important;
  justify-self: end;
  border-radius: 34px !important;
  padding: 18px !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__continueCard--empty {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 249, 245, .12), transparent 36%),
    linear-gradient(145deg, rgba(93, 60, 62, .96) 0%, rgba(83, 50, 51, .96) 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__continueCard--empty::before {
  display: none !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__continueThumb {
  min-height: 230px !important;
  border-radius: 24px !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__continueBody {
  padding: 20px 4px 0 !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__continueTitle,
body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) #dashContinueLessonTitle {
  font-size: 1.35rem !important;
  line-height: 1.2 !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__statsGrid {
  transform: translateY(-48px);
  margin-bottom: -22px;
  position: relative;
  z-index: 3;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__stat {
  min-height: 132px;
  padding: 26px !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__stat strong {
  font-size: clamp(2rem, 3.2vw, 3rem) !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__view {
  padding-top: clamp(24px, 4vw, 52px) !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__sectionHead {
  margin-bottom: 30px !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__sectionHead h2 {
  font-size: clamp(2.1rem, 3.6vw, 3.4rem) !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__courseTabs,
body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__availableGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__courseCard {
  min-height: 260px;
  padding: 30px !important;
  border-radius: 34px !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__courseCard h3 {
  font-size: 1.35rem !important;
  line-height: 1.18 !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__courseCard p {
  font-size: .98rem !important;
  line-height: 1.65 !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__quizEmpty,
body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__empty {
  max-width: 560px;
  margin: 0 auto;
  padding: 58px 34px !important;
  box-shadow: 0 20px 58px rgba(58, 27, 36, .10);
}

@media (max-width: 980px) {
  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__heroGrid {
    grid-template-columns: 1fr !important;
  }

  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__continueCard {
    justify-self: stretch;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__hero {
    min-height: auto;
    padding: 44px 0 58px !important;
    border-radius: 0 0 32px 32px !important;
  }

  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__title {
    font-size: clamp(2.35rem, 12vw, 3.6rem) !important;
  }

  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__lead {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
  }

  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__statsGrid {
    transform: none;
    margin-bottom: 0;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 12% -8%, rgba(245, 194, 123, .16), transparent 32%),
    radial-gradient(circle at 92% 2%, rgba(143, 58, 72, .12), transparent 30%),
    linear-gradient(180deg, #fffaf6 0%, #f7e6da 48%, #f3dccd 100%) !important;
  color: var(--text) !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(143, 58, 72, .22);
  color: var(--accent-900);
}

.container {
  width: min(calc(100% - 40px), var(--container));
}

.section {
  position: relative;
}

.sectionHead h2,
.heroBanner__title,
.dash__title,
.ctaBand__title,
.admin__topTitle h1 {
  letter-spacing: -.045em !important;
}

.sectionHead__lead,
.heroBanner__lead,
.dash__lead,
.courseCard__desc,
.landingCourseCard__desc {
  color: rgba(58, 27, 36, .68) !important;
}

.nav:not(.nav--slim) .nav__links a,
.nav:not(.nav--slim) .nav__signin {
  color: rgba(255, 245, 240, 0.88) !important;
}

.nav:not(.nav--slim) .nav__links a:hover,
.nav:not(.nav--slim) .nav__signin:hover {
  color: #ffffff !important;
}

.nav__brand {
  min-width: max-content;
}

/* Homepage navbar: pill container around links (to match dashboard style) */
/* Remove pill container on homepage navbar links */
.nav:not(.nav--slim) .nav__links {
  background: transparent;
  border: 0;
  padding: 0;
}

.nav__logo {
  height: clamp(60px, 5.5vw, 76px) !important;
  width: auto !important;
  mix-blend-mode: normal !important;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.nav:not(.nav--slim) .nav__inner {
  min-height: 96px !important;
}

.nav.nav--slim .nav__inner {
  min-height: 88px !important;
}

.nav.nav--slim .nav__logo {
  height: clamp(58px, 5vw, 72px) !important;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.nav__links a,
.nav__signin,
.btn {
  transition:
    transform .24s var(--ease-hover),
    box-shadow .3s var(--ease-hover),
    background .24s var(--ease-hover),
    border-color .24s var(--ease-hover),
    color .24s var(--ease-hover) !important;
}

.nav__links a:hover,
.nav__signin:hover {
  color: var(--accent-700) !important;
}

.heroBanner {
  min-height: min(860px, calc(100vh - 0px));
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 16% 16%, rgba(245, 194, 123, .22), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(143, 58, 72, .18), transparent 34%),
    linear-gradient(135deg, #fffaf6 0%, #f7e3d6 52%, #efd1bf 100%) !important;
}

.heroBanner__title {
  font-size: clamp(3.3rem, 7.4vw, 7rem) !important;
  line-height: .9 !important;
  max-width: 760px;
}

.heroBanner__lead {
  max-width: 650px !important;
  font-size: clamp(1.05rem, 1.6vw, 1.24rem) !important;
  line-height: 1.82 !important;
}

.heroBanner__ctaBand,
.heroSearch,
.heroBanner__trust {
  filter: drop-shadow(0 18px 38px rgba(58, 27, 36, .08));
}

.heroSearch {
  background: rgba(255, 255, 255, .86) !important;
  border-color: rgba(255, 255, 255, .72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    0 18px 52px rgba(58, 27, 36, .10) !important;
  backdrop-filter: blur(18px) saturate(1.15);
}

.heroSearch input,
.auth__field input,
.account__field input,
.admin__field input,
.admin__field textarea,
.admin__field select {
  background: rgba(255, 255, 255, .86) !important;
  border-color: rgba(58, 27, 36, .10) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8) !important;
}

.heroCard,
.courseCard,
.landingCourseCard,
.categoryCard,
.testimonialCard,
.faq__item,
.outcomeCard,
.priceCard,
.auth__card,
.account__card,
.checkout__summary,
.dash__panel,
.dash__courseCard,
.admin__panel,
.admin__card {
  background: rgba(255, 255, 255, .82) !important;
  border: 1px solid rgba(255, 255, 255, .62) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    0 5px 22px rgba(58, 27, 36, .07),
    0 22px 58px rgba(58, 27, 36, .07) !important;
  backdrop-filter: blur(18px) saturate(1.12);
}

.heroCard:hover,
.courseCard:hover,
.landingCourseCard:hover,
.categoryCard:hover,
.testimonialCard:hover,
.outcomeCard:hover,
.priceCard:hover,
.dash__courseCard:hover,
.admin__panel:hover,
.admin__card:hover {
  transform: translateY(-8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 12px 34px rgba(58, 27, 36, .10),
    0 32px 78px rgba(58, 27, 36, .10) !important;
}

.landingCourseCard,
.courseCard,
.dash__courseCard {
  overflow: hidden;
}

.landingCourseCard::after,
.courseCard::after,
.dash__courseCard::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-500), #d98545, #f5c27b);
  opacity: .74;
  pointer-events: none;
}

.landingCourseCard__icon,
.courseCard__icon,
.dash__courseIcon,
.categoryCard__icon {
  background:
    radial-gradient(circle at 32% 22%, rgba(245, 194, 123, .44), transparent 34%),
    linear-gradient(135deg, rgba(143, 58, 72, .12), rgba(255, 255, 255, .92)) !important;
  border-color: rgba(143, 58, 72, .15) !important;
}

.stats,
.ctaBand {
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .10) inset;
}

.dashPage .dash__statsGrid,
.admin__kpiGrid,
.kpiGrid {
  gap: clamp(14px, 2vw, 22px) !important;
}

.dash__stat,
.kpi,
.admin__quickItem,
.dash__panelOverview,
.dash__coursePanelHead,
.dash__modules,
.dash__empty,
.dash__quizEmpty {
  background: rgba(255, 255, 255, .78) !important;
  border: 1px solid rgba(255, 255, 255, .58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    0 16px 44px rgba(58, 27, 36, .08) !important;
  backdrop-filter: blur(18px) saturate(1.12);
}

.dash__stat strong,
.kpi strong,
.admin__metricValue {
  background: linear-gradient(135deg, var(--accent-700), #b36a43);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.dashPage .nav.nav--slim {
  box-shadow: 0 14px 44px rgba(24, 9, 14, .24) !important;
}

.dashPage .dash__hero,
.instructorDashboardPage .dash__hero {
  position: relative;
  overflow: hidden;
}

.admin__sidebar {
  position: relative;
}

.dashPage .dash__hero::after,
.instructorDashboardPage .dash__hero::after,
.admin__sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 82%);
  pointer-events: none;
}

.admin__top,
.dashPage .nav.nav--slim,
.nav:not(.nav--slim) {
  backdrop-filter: blur(22px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.18) !important;
}

.admin__tableWrap,
.dash__modules,
.faq__list {
  overflow: hidden;
}

.admin__table tbody tr,
.dash__lessonRow,
.faq__item {
  transition: background .22s var(--ease-hover), transform .22s var(--ease-hover) !important;
}

.admin__table tbody tr:hover,
.dash__lessonRow:hover {
  background: rgba(143, 58, 72, .05) !important;
}

.promoBar {
  background: linear-gradient(90deg, #3a1b24, #5a2532, #3a1b24) !important;
  box-shadow: 0 10px 30px rgba(58, 27, 36, .16);
}

.footer {
  border-top: 1px solid rgba(255, 249, 245, .08) !important;
}

@media (max-width: 980px) {
  .heroBanner {
    min-height: auto;
    padding-block: 78px 58px !important;
  }

  .heroBanner__grid,
  .dash__heroGrid {
    gap: 34px !important;
  }

  .heroBanner__title {
    font-size: clamp(2.85rem, 13vw, 4.8rem) !important;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }
}

@media (max-width: 640px) {
  .heroBanner__ctaBand,
  .dash__heroActions {
    align-items: stretch !important;
  }

  .heroBanner__ctaBand .btn,
  .dash__heroActions .btn,
  .heroSearch button {
    width: 100%;
    justify-content: center;
  }

  .heroSearch {
    border-radius: 24px !important;
    align-items: stretch !important;
  }

  .heroSearch input {
    min-height: 48px;
  }

  .landingCourseCard,
  .courseCard,
  .dash__courseCard,
  .admin__panel,
  .admin__card {
    border-radius: 24px !important;
  }
}

/* =========================================================
   Dashboard navbar — match homepage layout & centering
   Brand (left) | centered links | CTA (right)
   ========================================================= */
.dashPage .nav .nav__inner {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  column-gap: 20px;
}
.dashPage .nav .nav__brand { grid-column: 1; }
.dashPage .nav .nav__links {
  grid-column: 2;
  justify-self: start;
  margin-left: 0 !important;
  flex: 0 1 auto !important;
}
.dashPage .nav .nav__cta {
  grid-column: 3;
  justify-self: end;
}
.dashPage .nav .nav__fill { display: none !important; }

/* =========================================================
   Admin Overview — never stuck blank on load.
   Cards visible by default; the existing adminFadeUp animation
   (fired by .is-active) still replays the fade-in from opacity:0.
   ========================================================= */
.admin__view .kpi,
.admin__view .admin__card {
  opacity: 1;
  transform: none;
}

/* Revenue trend chart keeps its draw-in animation (line stroke, area fade,
   dot pop) which is driven by .admin__view.is-active in admin.css. The boot
   sequence now reliably adds is-active on load, so the chart animates in
   from hidden rather than appearing instantly. */

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav.nav--slim .nav__inner {
  display: grid !important;
  grid-template-columns: clamp(76px, 9vw, 112px) minmax(0, 1fr) clamp(148px, 15vw, 190px) !important;
  align-items: center !important;
  min-height: 78px !important;
  height: auto !important;
  gap: clamp(12px, 1.8vw, 24px) !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__brand {
  justify-self: start !important;
  min-width: 0 !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__brand::before {
  inset: -6px -8px !important;
  border-radius: 16px !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav.nav--slim .nav__logo {
  height: clamp(50px, 4.8vw, 66px) !important;
  max-width: 76px !important;
  object-fit: contain !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__fill {
  display: none !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links {
  justify-self: center !important;
  justify-content: center !important;
  align-items: center !important;
  width: min(100%, 980px) !important;
  min-width: 0 !important;
  gap: clamp(10px, 1.15vw, 22px) !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  flex: none !important;
  flex-wrap: nowrap !important;
}

/* The rule above is desktop-only centered-nav styling with no media
   query guard, so it never turned off at mobile widths — its higher
   selector specificity beat the actual mobile dropdown block (~line 578),
   shrink-wrapping and centering the open hamburger menu on student/
   instructor dashboard pages instead of letting it stretch edge-to-edge
   (same root cause as the homepage nav fix in navbar.css). */
@media (max-width: 768px) {
  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links {
    width: auto !important;
    justify-self: stretch !important;
  }
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links a {
  padding: 8px 0 !important;
  font-size: clamp(.78rem, .78vw, .92rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.015em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links a::after {
  display: block !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  transform: scaleX(0) translateZ(0) !important;
  transform-origin: center !important;
  opacity: 0 !important;
  transition:
    transform var(--duration-hover) var(--ease-out),
    opacity var(--duration-hover-micro) var(--ease-hover) !important;
  will-change: transform, opacity;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links a:hover,
body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links a.is-active {
  color: #fffaf6 !important;
  text-shadow: 0 0 14px rgba(255, 249, 245, .24);
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links a:hover::after,
body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links a.is-active::after {
  opacity: 1 !important;
  transform: scaleX(1) translateZ(0) !important;
}

/* The avatar (dash__avatar) already links to Account whenever the
   horizontal nav is showing (>1400px, same range the avatar is
   visible in) — hiding this duplicate text link there stops it
   padding out an already-tight row. It reappears in the mobile
   dropdown at ≤1400px, where the avatar itself is hidden below 760px
   and this becomes the only way to reach account settings. */
.dash__navAccountLink {
  display: none !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__desktopCta {
  justify-self: end !important;
  display: inline-flex !important;
  gap: 10px !important;
  padding-left: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__avatar {
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px !important;
  border: 1px solid rgba(255, 249, 245, .18);
  background: linear-gradient(135deg, var(--accent-500), var(--accent-700)) !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .signOutButton {
  min-height: 40px !important;
  padding-inline: 16px !important;
  white-space: nowrap !important;
}

/* Raised from 1220px: the horizontal nav (Home, My Courses, Playlists,
   Live Classes, Assignments, Quizzes, Certificates, Favorites, Support)
   was still cramped at common laptop widths even after this tightening
   step — most real screens now get the clean hamburger dropdown below
   instead (see the 1400px switch-over query). */
@media (max-width: 1600px) {
  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav.nav--slim .nav__inner {
    grid-template-columns: 82px minmax(0, 1fr) 156px !important;
    gap: 14px !important;
  }

  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links {
    gap: 10px !important;
  }

  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links a {
    font-size: .78rem !important;
  }

  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .signOutButton {
    padding-inline: 13px !important;
  }
}

/* Raised from 1080px so the full-width horizontal nav switches to the
   hamburger dropdown at more common desktop/laptop widths — that row
   has up to 9 links plus the avatar and Sign out button, which reads
   as cramped well above the old threshold. */
@media (max-width: 1400px) {
  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav.nav--slim .nav__inner {
    display: flex !important;
    min-height: 68px !important;
  }

  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__brand {
    margin-right: auto !important;
  }

  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links {
    position: fixed !important;
    inset: 68px 0 auto 0 !important;
    z-index: 999 !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-height: calc(100vh - 68px) !important;
    overflow-y: auto !important;
    gap: 0 !important;
    padding: 12px clamp(18px, 5vw, 34px) 20px !important;
    background: linear-gradient(180deg, rgba(58, 27, 36, .98), rgba(40, 17, 25, .98)) !important;
    border-top: 1px solid rgba(255, 249, 245, .10) !important;
    border-bottom: 1px solid rgba(255, 249, 245, .10) !important;
    box-shadow: 0 24px 60px rgba(40, 17, 25, .35) !important;
    backdrop-filter: blur(18px) !important;
  }

  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links.is-open {
    display: flex !important;
  }

  .dash__navAccountLink {
    display: block !important;
  }

  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__links a {
    padding: 14px 18px !important;
    border-radius: 14px !important;
    border-bottom: 1px solid rgba(255, 249, 245, .08) !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
  }

  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__desktopCta {
    margin-left: 0 !important;
  }

  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav__burger {
    display: inline-flex !important;
  }
}

@media (max-width: 760px) {
  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__desktopCta {
    display: none !important;
  }

  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav.nav--slim .nav__logo {
    height: 50px !important;
  }
}

.nav__brand {
  transform: translateX(-10px) !important;
}

.nav__brand::before {
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 8px 22px rgba(0,0,0,.20) !important;
}

.nav__logo {
  height: clamp(46px, 4.6vw, 62px) !important;
  max-width: 72px !important;
  object-fit: contain !important;
}

.nav.nav--slim .nav__logo,
.dashPage .nav.nav--slim .nav__logo,
body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav.nav--slim .nav__logo {
  height: clamp(44px, 4.2vw, 58px) !important;
  max-width: 68px !important;
}

@media (max-width: 880px) {
  .nav__brand {
    transform: translateX(-4px) !important;
  }

  .nav__logo,
  .dashPage .nav__logo,
  .accountPage .nav__logo,
  body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .nav.nav--slim .nav__logo {
    height: 34px !important;
    max-width: 46px !important;
  }
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__stat strong,
body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__stat strong[data-counter] {
  font-family: Inter, var(--font-body), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-variant-numeric: tabular-nums lining-nums !important;
  font-feature-settings: "tnum" 1, "lnum" 1, "zero" 1 !important;
  letter-spacing: -0.035em !important;
}

body.dashPage:not(.instructorDashboardPage):not(.coursePlayerPage) .dash__hero {
  border-radius: 0 !important;
}

.heroBanner {
  background:
    radial-gradient(circle at 18% 18%, rgba(143, 58, 72, .34), transparent 36%),
    radial-gradient(circle at 82% 14%, rgba(255, 224, 213, .13), transparent 34%),
    linear-gradient(180deg, #7d4f50 0%, #6b4243 100%) !important;
}

.heroBanner__title {
  color: #fff8f2 !important;
  text-shadow: 0 2px 18px rgba(40, 17, 25, .18) !important;
}

.heroBanner__title em {
  color: #9b1f35 !important;
}

.heroBanner__lead {
  color: rgba(255, 244, 238, .84) !important;
}

.heroBanner__lead strong {
  color: #fff !important;
}

.heroBanner__copy .eyebrow {
  color: #fff5ef !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .38) !important;
}

.heroBanner__trust li {
  color: rgba(255, 244, 238, .76) !important;
}

.heroBanner__trust strong {
  color: #fff8f2 !important;
}

body.coursePlayerPage {
  background:
    radial-gradient(circle at 14% 8%, rgba(216, 144, 135, .16), transparent 34%),
    radial-gradient(circle at 88% 4%, rgba(143, 58, 72, .10), transparent 30%),
    linear-gradient(180deg, #fff8f1 0%, #f7e6da 44%, #f3dfcf 100%) !important;
}

body.coursePlayerPage .coursePlayerLms__sidebar,
body.coursePlayerPage .coursePlayerLms__watch {
  background:
    linear-gradient(180deg, rgba(255, 253, 250, .96) 0%, rgba(255, 247, 239, .9) 100%) !important;
  border-color: rgba(125, 79, 80, .14) !important;
}

body.coursePlayerPage .coursePlayer__playerContainer {
  background: linear-gradient(180deg, #17070d 0%, #0f0509 100%) !important;
}

body.coursePlayerPage .coursePlayer__lesson.is-active {
  background: linear-gradient(135deg, var(--accent-50), #fffaf6) !important;
}

body.checkoutPage {
  background:
    radial-gradient(circle at 12% 8%, rgba(216, 144, 135, .16), transparent 34%),
    radial-gradient(circle at 90% 4%, rgba(143, 58, 72, .10), transparent 30%),
    linear-gradient(180deg, #fff8f1 0%, #f7e7da 44%, #f3dfcf 100%) !important;
}

body.checkoutPage .checkout {
  padding: 2rem 0 4rem;
}

body.checkoutPage .checkout__grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  gap: 22px;
}

body.checkoutPage .checkout__summary,
body.checkoutPage .checkout__panel {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(125, 79, 80, .12) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 28px 72px rgba(37, 20, 28, .10) !important;
}

body.checkoutPage .checkout__summary {
  padding: 28px;
  background:
    radial-gradient(circle at 18% 10%, rgba(143, 58, 72, .08), transparent 28%),
    linear-gradient(180deg, rgba(255, 253, 250, .96), rgba(255, 247, 239, .90)) !important;
}

body.checkoutPage .checkout__summary::before,
body.checkoutPage .checkout__panel::before {
  content: "";
  position: absolute;
  inset: auto -10% -34% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 58, 72, .10), transparent 68%);
  pointer-events: none;
}

body.checkoutPage .checkout__summary::before {
  top: -110px;
  right: -90px;
  inset: auto;
}

body.checkoutPage .checkout__title {
  font-size: clamp(2.35rem, 4.6vw, 4rem) !important;
  color: #2c1820 !important;
}

body.checkoutPage .checkout__lead {
  font-size: 1.08rem !important;
  line-height: 1.75 !important;
}

body.checkoutPage .checkout__courseCard {
  padding: 18px !important;
  border-radius: 28px !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, .98), rgba(255, 247, 239, .94)) !important;
  border: 1px solid rgba(125, 79, 80, .12) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 18px 44px rgba(37, 20, 28, .08) !important;
}

body.checkoutPage .checkout__courseThumb {
  border-radius: 24px !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    0 16px 30px rgba(15, 17, 21, .18) !important;
}

body.checkoutPage .checkout__courseCode {
  letter-spacing: .02em !important;
}

body.checkoutPage .checkout__features {
  gap: 10px !important;
}

body.checkoutPage .checkout__features li {
  padding: 12px 14px !important;
  border-radius: 18px !important;
  background: rgba(255, 253, 250, .82) !important;
  border: 1px solid rgba(125, 79, 80, .08) !important;
  box-shadow: var(--shadow-sm) !important;
}

body.checkoutPage .checkout__panel {
  background:
    radial-gradient(circle at 14% 8%, rgba(216, 144, 135, .06), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 250, .98), rgba(255, 247, 239, .92)) !important;
}

body.checkoutPage .checkout__panelInner {
  padding: 26px !important;
  gap: 12px !important;
}

body.checkoutPage .checkout__panelTitle {
  color: var(--accent-700) !important;
  letter-spacing: .12em !important;
}

body.checkoutPage .checkout__priceRow {
  padding: 9px 0 !important;
}

body.checkoutPage .checkout__priceRow--total {
  margin-top: 6px !important;
  padding-top: 18px !important;
}

body.checkoutPage .checkout__priceRowValue--total {
  font-size: 2rem !important;
}

body.checkoutPage .checkout__coupon {
  margin-top: 10px !important;
  padding-top: 12px !important;
}

body.checkoutPage .checkout__couponRow {
  display: flex;
  gap: 10px;
}

body.checkoutPage .checkout__couponInput {
  background: rgba(255, 255, 255, .92) !important;
  border-color: rgba(125, 79, 80, .16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

body.checkoutPage .checkout__couponApplied,
body.checkoutPage .checkout__status {
  border-radius: 16px !important;
}

body.checkoutPage .checkout__status {
  padding: 14px 16px !important;
}

body.checkoutPage .checkout__trust {
  gap: 8px !important;
}

body.checkoutPage .checkout__trust li {
  padding: 10px 12px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .72) !important;
  border: 1px solid rgba(125, 79, 80, .08) !important;
}

body.checkoutPage .checkout__payBtn {
  min-height: 54px;
  border-radius: 999px !important;
}

@media (max-width: 920px) {
  body.checkoutPage .checkout__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body.checkoutPage .checkout__summary {
    padding: 24px !important;
    border-radius: 28px !important;
  }

  body.checkoutPage .checkout__panel {
    border-radius: 28px !important;
  }
}

@media (max-width: 640px) {
  body.checkoutPage .checkout {
    padding: 1.8rem 0 3.5rem;
  }

  body.checkoutPage .checkout__summary,
  body.checkoutPage .checkout__panelInner {
    padding: 20px !important;
  }

  body.checkoutPage .checkout__courseCard {
    grid-template-columns: 1fr;
  }

  body.checkoutPage .checkout__courseThumb {
    aspect-ratio: 16 / 7;
  }

  body.checkoutPage .checkout__priceRowValue--total {
    font-size: 1.7rem !important;
  }
}
