:root {
  --brand-navy: #102A43;
  --brand-navy-soft: #163b5c;
  --brand-gold: #F2A93B;
  --brand-gold-soft: #ffd88d;
  --brand-warm-white: #FBF8F1;
  --brand-slate: #334E68;

  --font-heading: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --font-latin: "Inter", system-ui, sans-serif;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;

  --ease-out: cubic-bezier(.2,.8,.2,1);
}


:root {
  --color-primary: var(--brand-navy);
  --color-accent: var(--brand-gold);
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--brand-gold) 38%, transparent);
}


:root,
:root[data-theme="light"] {
  color-scheme: light;

  --surface-page: #f7f9fc;
  --surface-card: rgba(255,255,255,.88);
  --surface-elevated: #ffffff;
  --surface-muted: #eef3f7;
  --surface-soft-navy: #edf4f9;
  --surface-soft-gold: #fff7e8;

  --text-primary: #102A43;
  --text-secondary: #536b80;
  --text-tertiary: #7890a3;

  --border-subtle: rgba(16,42,67,.10);
  --border-strong: rgba(16,42,67,.18);

  --shadow-card: 0 18px 52px rgba(30, 58, 82, .07);
  --shadow-floating: 0 24px 70px rgba(24, 52, 76, .13);
  --header-glass: rgba(247,249,252,.76);
}


:root[data-theme="dark"] {
  color-scheme: dark;

  --surface-page: #071522;
  --surface-card: rgba(15, 40, 62, .82);
  --surface-elevated: #102a43;
  --surface-muted: #173b5d;
  --surface-soft-navy: #102c45;
  --surface-soft-gold: #302516;

  --text-primary: #f7fafc;
  --text-secondary: #c3d0db;
  --text-tertiary: #8fa5b7;

  --border-subtle: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.16);

  --shadow-card: 0 18px 52px rgba(0,0,0,.20);
  --shadow-floating: 0 28px 80px rgba(0,0,0,.36);
  --header-glass: rgba(7,21,34,.78);
}


* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--surface-page);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--brand-gold) 8%, transparent) 0, transparent 28%),
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--brand-navy) 8%, transparent) 0, transparent 30%),
    var(--surface-page);
  color: var(--text-primary);
}

img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

::selection {
  background: color-mix(in srgb, var(--brand-gold) 28%, transparent);
}


body {
  font-family: var(--font-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.2;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5vw, 4.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.25rem); }
p { margin: 0; color: var(--text-secondary); }
[dir="ltr"] { font-family: var(--font-latin); }


.container {
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.app-main {
  min-height: calc(100vh - 118px);
}

@media (min-width: 1500px) {
  .container {
    width: min(1360px, calc(100% - 4rem));
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1.2rem, 1240px);
  }
}


.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform .18s var(--ease-out),
    box-shadow .18s var(--ease-out),
    background .18s var(--ease-out);
}

.button svg { width: 18px; height: 18px; }

.button-primary {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-soft));
  color: white;
  box-shadow: 0 14px 34px rgba(16,42,67,.18);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(16,42,67,.24);
}

.button-secondary {
  border-color: var(--border-subtle);
  background: var(--surface-elevated);
}

.button-quiet {
  color: var(--text-secondary);
  background: transparent;
}

.button-quiet:hover {
  color: var(--text-primary);
  background: var(--surface-card);
}


.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--surface-page) 88%, transparent);
  backdrop-filter: blur(22px) saturate(140%);
}

.header-main {
  position: relative;
  z-index: 2;
  background: color-mix(in srgb, var(--surface-page) 90%, transparent);
}

.header-main-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto auto minmax(250px, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  padding: .3rem;
  border-radius: 12px;
}

.brand-lockup img {
  width: 138px;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: .1rem;
}

.header-nav a {
  padding: .6rem .72rem;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: .8rem;
  font-weight: 800;
  transition: color .16s var(--ease-out), background .16s var(--ease-out);
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.router-link-active {
  color: var(--text-primary);
  background: var(--surface-card);
}

.header-search {
  min-height: 42px;
  display: grid;
  grid-template-columns: 19px 1fr auto;
  align-items: center;
  gap: .5rem;
  padding: .28rem .35rem .28rem .72rem;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: var(--surface-card);
  box-shadow: 0 5px 18px rgba(16,42,67,.035);
  transition: border-color .16s var(--ease-out), box-shadow .16s var(--ease-out);
}

[dir="rtl"] .header-search {
  padding: .28rem .72rem .28rem .35rem;
}

.header-search:focus-within {
  border-color: color-mix(in srgb, var(--brand-gold) 42%, var(--border-strong));
  box-shadow: 0 8px 24px rgba(16,42,67,.065);
}

.header-search > svg {
  width: 17px;
  height: 17px;
  color: var(--text-tertiary);
  stroke-width: 1.7;
}

.header-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: .78rem;
}

.header-search input::placeholder {
  color: var(--text-tertiary);
}

.header-search button {
  min-height: 32px;
  padding: .35rem .62rem;
  border: 0;
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--text-primary);
  font-size: .68rem;
  font-weight: 850;
  cursor: pointer;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.icon-tool,
.mobile-menu-button {
  width: 40px;
  height: 40px;
  display: none;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-card);
  color: var(--text-secondary);
  cursor: pointer;
}

.icon-tool svg,
.mobile-menu-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
}

.login-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .5rem .72rem;
  border: 0;
  border-radius: 11px;
  background: var(--brand-navy);
  color: white;
  font-size: .74rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(16,42,67,.12);
}

.login-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

/* Brand dropdowns */
.brand-dropdown {
  position: relative;
}

.utility-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .45rem .58rem;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: var(--surface-card);
  color: var(--text-secondary);
  box-shadow: none;
  cursor: pointer;
}

.utility-button:hover {
  color: var(--text-primary);
  background: var(--surface-elevated);
}

.utility-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

.utility-button-label {
  min-width: 27px;
  color: var(--text-primary);
  font-family: var(--font-latin);
  font-size: .68rem;
  font-weight: 850;
}

.chevron {
  color: var(--text-tertiary);
  line-height: 1;
  transition: transform .16s var(--ease-out);
}

.chevron.is-open {
  transform: rotate(180deg);
}

.brand-menu {
  position: absolute;
  inset-block-start: calc(100% + .6rem);
  inset-inline-end: 0;
  width: 258px;
  padding: .5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow-floating);
  z-index: 160;
}

.brand-menu::before {
  content: "";
  position: absolute;
  inset-block-start: -5px;
  inset-inline-end: 20px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: var(--surface-elevated);
  border-inline-start: 1px solid var(--border-subtle);
  border-block-start: 1px solid var(--border-subtle);
}

.brand-menu-item {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px 1fr 22px;
  align-items: center;
  gap: .6rem;
  padding: .55rem .62rem;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text-primary);
  text-align: start;
  cursor: pointer;
}

.brand-menu-item:hover,
.brand-menu-item.is-active {
  background: var(--surface-muted);
}

.brand-menu-leading {
  display: grid;
  place-items: center;
}

.brand-menu-copy {
  display: grid;
  gap: .05rem;
}

.brand-menu-copy strong {
  font-size: .78rem;
  font-weight: 850;
}

.brand-menu-copy small {
  color: var(--text-tertiary);
  font-size: .66rem;
}

.menu-check {
  color: var(--brand-gold);
  font-weight: 900;
  text-align: center;
}

.language-badge {
  width: 32px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft-navy);
  color: var(--brand-navy);
  font-family: var(--font-latin);
  font-size: .65rem;
  font-weight: 900;
}

.theme-dot {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  background: linear-gradient(145deg,#fff 50%,#102a43 50%);
}

.theme-dot[data-theme-option="light"] {
  background: #fff;
}

.theme-dot[data-theme-option="dark"] {
  background: #102a43;
}

/* Seasonal strip */
.campaign-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--surface-soft-gold) 58%, var(--surface-page)),
    color-mix(in srgb, var(--surface-page) 94%, var(--surface-soft-navy))
  );
}

.campaign-strip-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: .65rem;
}

.campaign-mark {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--brand-gold) 16%, transparent);
  color: #97620b;
}

.campaign-mark svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.65;
}

.campaign-strip p {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--text-secondary);
  font-size: .69rem;
}

.campaign-strip p strong {
  color: var(--text-primary);
  white-space: nowrap;
}

.campaign-strip p span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.campaign-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--text-primary);
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
}

[dir="ltr"] .campaign-link span {
  transform: scaleX(-1);
}

/* Mobile search and nav */
.header-search-panel,
.mobile-nav-panel {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  box-shadow: 0 20px 48px rgba(16,42,67,.10);
}

.header-search-panel-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: 20px 1fr auto 38px;
  align-items: center;
  gap: .5rem;
}

.header-search-panel-inner > svg {
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
}

.header-search-panel-inner input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
}

.search-submit-mobile {
  min-height: 38px;
  padding: .45rem .7rem;
  border: 0;
  border-radius: 10px;
  background: var(--brand-navy);
  color: white;
  font-weight: 850;
}

.search-close-mobile {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--text-primary);
}

.search-close-mobile svg {
  width: 16px;
  height: 16px;
}

.mobile-nav-panel-inner {
  padding-block: .7rem;
}

.mobile-nav-panel nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
}

.mobile-nav-panel a {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: .78rem;
  font-weight: 800;
}

.mobile-nav-panel a > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--brand-navy);
}

.mobile-nav-panel svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

.header-panel-enter-active,
.header-panel-leave-active,
.menu-pop-enter-active,
.menu-pop-leave-active {
  transition: opacity .15s var(--ease-out), transform .15s var(--ease-out);
}

.header-panel-enter-from,
.header-panel-leave-to,
.menu-pop-enter-from,
.menu-pop-leave-to {
  opacity: 0;
  transform: translateY(-5px);
}

@media (max-width: 1180px) {
  .header-main-row {
    grid-template-columns: auto auto 1fr auto;
    gap: .7rem;
  }

  .header-nav a {
    padding-inline: .5rem;
    font-size: .73rem;
  }

  .header-search {
    max-width: 330px;
  }

  .utility-button-label,
  .login-button span {
    display: none;
  }

  .utility-button,
  .login-button {
    width: 40px;
    justify-content: center;
    padding: 0;
  }

  .utility-button .chevron {
    display: none;
  }
}

@media (max-width: 920px) {
  .header-main-row {
    min-height: 66px;
    grid-template-columns: 1fr auto;
  }

  .brand-lockup img {
    width: 122px;
  }

  .header-nav,
  .header-search {
    display: none;
  }

  .search-tool-mobile,
  .mobile-menu-button {
    display: grid;
  }

  .campaign-strip-row {
    min-height: 40px;
  }
}

@media (max-width: 560px) {
  .header-tools {
    gap: .28rem;
  }

  .icon-tool,
  .mobile-menu-button,
  .utility-button,
  .login-button {
    width: 37px;
    height: 37px;
    min-height: 37px;
  }

  .brand-lockup img {
    width: 108px;
  }

  .campaign-strip-row {
    grid-template-columns: 25px 1fr auto;
    gap: .42rem;
  }

  .campaign-strip p strong {
    display: none;
  }

  .campaign-strip p span {
    font-size: .62rem;
  }

  .campaign-link {
    font-size: 0;
  }

  .campaign-link span {
    font-size: .9rem;
  }

  .mobile-nav-panel nav {
    grid-template-columns: 1fr;
  }

  .brand-menu {
    width: min(260px, calc(100vw - 1rem));
  }
}


.app-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border-subtle);
  background:
    linear-gradient(180deg, color-mix(in srgb,var(--surface-muted) 55%,transparent), transparent),
    var(--surface-page);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(140px, .7fr));
  gap: 2rem;
  padding-block: 3.2rem 2.2rem;
}

.footer-brand {
  max-width: 390px;
}

.footer-logo {
  display: inline-flex;
}

.footer-logo img {
  width: 148px;
}

.footer-brand p {
  margin-top: .9rem;
  line-height: 1.8;
  font-size: .82rem;
}

.footer-brand > span {
  display: inline-block;
  margin-top: .7rem;
  color: var(--brand-gold);
  font-size: .75rem;
  font-weight: 900;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: .58rem;
}

.footer-column h3 {
  margin-bottom: .25rem;
  color: var(--text-primary);
  font-size: .82rem;
}

.footer-column a,
.footer-column > span {
  display: flex;
  align-items: center;
  gap: .38rem;
  color: var(--text-secondary);
  font-size: .73rem;
  line-height: 1.5;
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-column svg {
  width: 14px;
  height: 14px;
  color: var(--brand-gold);
  stroke-width: 1.7;
}

.footer-bottom {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: .66rem;
}

@media (max-width: 850px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem 1rem;
    padding-block: 2.4rem 1.8rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    min-height: 72px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}


.video-rail,
.teacher-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: .15rem .05rem 1rem;
}

.video-rail::-webkit-scrollbar,
.teacher-rail::-webkit-scrollbar {
  display: none;
}

.video-card {
  width: 318px;
  flex: 0 0 318px;
  scroll-snap-align: start;
}

.video-thumbnail {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, white 7%, transparent);
  border-radius: 17px;
  color: white;
  box-shadow: 0 12px 32px rgba(16,42,67,.08);
  isolation: isolate;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}

.video-thumbnail:hover {
  transform: translateY(-3px);
  box-shadow: 0 19px 48px rgba(16,42,67,.14);
}

.video-thumbnail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 21%, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(145deg, transparent 25%, rgba(0,0,0,.18));
}

.video-thumbnail::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2,13,23,.52), transparent);
}

.video-thumb-navy { background: linear-gradient(135deg,#163b5c,#0a1d2c); }
.video-thumb-teal { background: linear-gradient(135deg,#17666b,#0b3035); }
.video-thumb-green { background: linear-gradient(135deg,#1c6654,#0a3027); }
.video-thumb-plum { background: linear-gradient(135deg,#6b425b,#31202b); }
.video-thumb-rose { background: linear-gradient(135deg,#8a535a,#41272d); }
.video-thumb-gold { background: linear-gradient(135deg,#72521d,#2d2617); }

.video-free-badge,
.video-stage-badge,
.video-duration {
  position: absolute;
  z-index: 2;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .46rem;
  border-radius: 8px;
  font-size: .59rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.video-free-badge {
  inset-block-start: .65rem;
  inset-inline-start: .65rem;
  background: rgba(255,255,255,.92);
  color: #102a43;
}

.video-stage-badge {
  inset-block-start: .65rem;
  inset-inline-end: .65rem;
  background: rgba(5,17,29,.48);
  color: white;
  font-family: var(--font-latin);
}

.video-duration {
  inset-block-end: .65rem;
  inset-inline-end: .65rem;
  background: rgba(5,17,29,.68);
  color: white;
  font-family: var(--font-latin);
}

.video-duration svg {
  width: 12px;
  height: 12px;
}

.video-symbol {
  position: absolute;
  inset-inline-start: 8%;
  inset-block-end: 8%;
  color: rgba(255,255,255,.11);
  font-family: var(--font-latin);
  font-size: clamp(3.8rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
}

.video-play-button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--brand-navy);
  box-shadow: 0 12px 34px rgba(0,0,0,.20);
  transform: scale(.92);
  transition: transform .18s var(--ease-out);
}

.video-thumbnail:hover .video-play-button {
  transform: scale(1);
}

.video-play-button svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}

.video-card-body {
  padding: .75rem .08rem 0;
}

.video-title-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .55rem;
  align-items: start;
}

.video-title-line h3 {
  font-size: .91rem;
  line-height: 1.5;
}

.series-count {
  min-width: max-content;
  padding: .28rem .4rem;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-tertiary);
  font-size: .58rem;
  font-weight: 800;
}

.video-teacher-line {
  display: flex;
  align-items: center;
  gap: .48rem;
  margin-top: .62rem;
}

.teacher-mini-avatar {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-navy);
  color: white;
  font-family: var(--font-latin);
  font-size: .7rem;
  font-weight: 900;
}

.video-teacher-line > div {
  min-width: 0;
  display: grid;
  gap: .02rem;
}

.video-teacher-line strong {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: .67rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.video-teacher-line small {
  color: var(--text-tertiary);
  font-size: .59rem;
}

.video-series-status {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .55rem;
  color: var(--text-tertiary);
  font-size: .59rem;
  font-weight: 750;
}

.video-series-status span {
  display: inline-flex;
  align-items: center;
  gap: .24rem;
}

.video-series-status svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.7;
}

@media (max-width: 560px) {
  .video-card {
    width: 278px;
    flex-basis: 278px;
  }

  .video-title-line {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .series-count {
    width: fit-content;
  }
}


.teacher-card {
  width: 252px;
  flex: 0 0 252px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: var(--surface-card);
  box-shadow: 0 10px 30px rgba(16,42,67,.055);
  scroll-snap-align: start;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}

.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(16,42,67,.11);
}

.teacher-portrait {
  position: relative;
  height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.teacher-portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(16,42,67,.16), transparent);
}

.teacher-portrait-navy { background: linear-gradient(145deg,#e7f0f5,#c7dae6); }
.teacher-portrait-teal { background: linear-gradient(145deg,#e6f3f2,#c7dfdd); }
.teacher-portrait-green { background: linear-gradient(145deg,#ebf5ed,#cee2d3); }
.teacher-portrait-plum { background: linear-gradient(145deg,#f4ebf0,#ddccd6); }
.teacher-portrait-rose { background: linear-gradient(145deg,#f7eded,#e2d0d3); }
.teacher-portrait-gold { background: linear-gradient(145deg,#fff4dc,#e9d9b7); }

.teacher-demo-label {
  position: absolute;
  inset-block-start: .7rem;
  inset-inline-start: .7rem;
  z-index: 2;
  padding: .26rem .42rem;
  border-radius: 8px;
  background: rgba(255,255,255,.76);
  color: #6d7f90;
  font-size: .55rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.teacher-silhouette {
  position: relative;
  width: 140px;
  height: 185px;
  display: block;
}

.teacher-head {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 12px;
  z-index: 2;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--brand-navy);
  color: white;
  font-family: var(--font-latin);
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(16,42,67,.16);
}

[dir="rtl"] .teacher-head {
  transform: translateX(50%);
}

.teacher-body-shape {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-end: 0;
  width: 134px;
  height: 122px;
  transform: translateX(-50%);
  border-radius: 62px 62px 24px 24px;
  background: linear-gradient(180deg,var(--brand-navy),#183e5e);
  box-shadow: 0 18px 38px rgba(16,42,67,.17);
}

[dir="rtl"] .teacher-body-shape {
  transform: translateX(50%);
}

.teacher-verified {
  position: absolute;
  inset-inline-end: .7rem;
  inset-block-end: .7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .3rem .45rem;
  border-radius: 999px;
  background: rgba(239,250,246,.90);
  color: #13795b;
  font-size: .57rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.teacher-verified svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.7;
}

.teacher-card-content {
  padding: .9rem;
}

.teacher-subject {
  color: var(--brand-gold);
  font-size: .61rem;
  font-weight: 900;
}

.teacher-card-content h3 {
  margin-top: .2rem;
  font-size: .9rem;
}

.teacher-location {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-top: .35rem;
  color: var(--text-tertiary);
  font-size: .61rem;
}

.teacher-location svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.7;
}

.teacher-free-link {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-top: .8rem;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-size: .64rem;
  font-weight: 850;
}

.teacher-free-link:hover {
  border-color: color-mix(in srgb,var(--brand-gold) 34%,var(--border-strong));
  background: var(--surface-soft-gold);
}

.teacher-free-link svg {
  width: 14px;
  height: 14px;
  color: var(--brand-gold);
  stroke-width: 1.7;
}

.empty-filter-card {
  width: 252px;
  min-height: 300px;
  flex: 0 0 252px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .7rem;
  padding: 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: 20px;
  background: var(--surface-muted);
  text-align: center;
}

.empty-filter-card svg {
  width: 28px;
  height: 28px;
  color: var(--text-tertiary);
}

.empty-filter-card strong {
  font-size: .76rem;
}

.empty-filter-card button {
  padding: .45rem .65rem;
  border: 0;
  border-radius: 9px;
  background: var(--brand-navy);
  color: white;
  font-size: .65rem;
  font-weight: 850;
}


.quick-finder-wrap {
  position: relative;
  z-index: 3;
  margin-top: -1rem;
}

.quick-finder {
  display: grid;
  grid-template-columns: minmax(260px,.75fr) minmax(0,1.75fr);
  gap: 1.5rem;
  padding: 1.3rem;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  background: color-mix(in srgb,var(--surface-elevated) 93%,transparent);
  box-shadow: 0 22px 60px rgba(16,42,67,.08);
  backdrop-filter: blur(16px);
}

.quick-finder-intro {
  padding: .4rem .35rem;
}

.quick-kicker {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--brand-gold);
  font-size: .65rem;
  font-weight: 900;
}

.quick-kicker svg {
  width: 14px;
  height: 14px;
}

.quick-finder-intro h2 {
  margin-top: .4rem;
  font-size: clamp(1.2rem,2.4vw,1.65rem);
}

.quick-finder-intro p {
  margin-top: .5rem;
  max-width: 420px;
  font-size: .76rem;
  line-height: 1.75;
}

.quick-filter-panel {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: .75rem;
  align-items: stretch;
}

.quick-filter-group {
  padding: .8rem;
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  background: var(--surface-card);
}

.quick-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .6rem;
}

.quick-filter-heading strong {
  font-size: .72rem;
}

.quick-filter-heading span {
  color: var(--text-tertiary);
  font-family: var(--font-latin);
  font-size: .62rem;
  font-weight: 900;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.quick-chips button {
  min-height: 31px;
  padding: .33rem .5rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: .61rem;
  font-weight: 800;
  cursor: pointer;
}

.quick-chips button:hover {
  color: var(--text-primary);
}

.quick-chips button.is-active {
  border-color: color-mix(in srgb,var(--brand-gold) 35%,transparent);
  background: var(--surface-soft-gold);
  color: var(--text-primary);
}

.quick-show-button {
  min-width: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  border: 0;
  border-radius: 15px;
  background: var(--brand-navy);
  color: white;
  font-size: .68rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(16,42,67,.15);
}

.quick-show-button svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 900px) {
  .quick-finder {
    grid-template-columns: 1fr;
  }

  .quick-filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .quick-show-button {
    min-height: 54px;
    grid-column: 1 / -1;
    flex-direction: row;
  }
}

@media (max-width: 580px) {
  .quick-finder {
    padding: .9rem;
    border-radius: 18px;
  }

  .quick-filter-panel {
    grid-template-columns: 1fr;
  }

  .quick-show-button {
    grid-column: auto;
  }
}


.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.course-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), border-color .18s var(--ease-out);
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-floating);
}

.course-card h2 { margin-block: 1rem .55rem; }

.course-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.course-meta,
.subject-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .35rem .6rem;
  border-radius: 9px;
  font-weight: 850;
  font-size: .78rem;
}

.course-meta {
  color: var(--brand-navy);
  background: var(--surface-soft-navy);
}

.subject-pill {
  color: #8b5a08;
  background: var(--surface-soft-gold);
}

.course-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  align-self: flex-start;
  padding: .65rem 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-weight: 850;
  cursor: pointer;
}

.course-link svg { width: 17px; height: 17px; }

.state-card {
  max-width: 620px;
  margin-inline: auto;
  display: grid;
  gap: .8rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.course-skeleton {
  height: 250px;
  border-radius: var(--radius-md);
  background: linear-gradient(100deg, var(--surface-muted) 20%, var(--surface-card) 40%, var(--surface-muted) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  to { background-position-x: -220%; }
}

@media (max-width: 900px) {
  .course-grid,
  .skeleton-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .course-grid,
  .skeleton-grid { grid-template-columns: 1fr; }
}

[dir="rtl"] .course-link svg { transform: scaleX(-1); }


.home-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem,7vw,6.5rem) 2.8rem;
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb,var(--brand-gold) 8%,transparent), transparent 29%),
    radial-gradient(circle at 88% 18%, color-mix(in srgb,var(--brand-navy) 7%,transparent), transparent 31%);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0,.88fr) minmax(420px,1.12fr);
  gap: clamp(2rem,5vw,5rem);
  align-items: center;
}

.home-hero-copy {
  max-width: 650px;
}

.home-eyebrow {
  display: inline-block;
  color: var(--brand-gold);
  font-size: .7rem;
  font-weight: 900;
}

.home-hero h1 {
  margin-top: .55rem;
  font-size: clamp(2.6rem,5.3vw,4.9rem);
  letter-spacing: -.05em;
  line-height: 1.08;
}

.home-hero h1 span {
  color: var(--brand-navy);
  position: relative;
}

:root[data-theme="dark"] .home-hero h1 span {
  color: white;
}

.home-hero h1 span::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  inset-block-end: .06em;
  height: .16em;
  border-radius: 999px;
  background: color-mix(in srgb,var(--brand-gold) 52%,transparent);
}

.home-hero-copy > p {
  max-width: 610px;
  margin-top: 1rem;
  font-size: .98rem;
  line-height: 1.9;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.5rem;
}

.home-hero-actions .button {
  min-height: 47px;
}

[dir="rtl"] .home-hero-actions .button-primary svg,
[dir="rtl"] .section-link svg {
  transform: scaleX(-1);
}

.home-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin-top: 1.25rem;
  color: var(--text-secondary);
  font-size: .65rem;
  font-weight: 750;
}

.home-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.home-trust-row svg {
  width: 14px;
  height: 14px;
  color: var(--brand-gold);
  stroke-width: 1.7;
}

.hero-featured-video {
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  background: var(--surface-elevated);
  box-shadow: 0 28px 78px rgba(16,42,67,.13);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}

.hero-featured-video:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 90px rgba(16,42,67,.17);
}

.hero-video-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: white;
  isolation: isolate;
}

.hero-video-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 18%, rgba(255,255,255,.20), transparent 28%),
    linear-gradient(145deg, transparent 28%, rgba(0,0,0,.18));
}

.hero-video-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  z-index: -1;
  background: linear-gradient(0deg, rgba(4,15,25,.52), transparent);
}

.hero-video-free,
.hero-video-stage,
.hero-video-duration {
  position: absolute;
  z-index: 2;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: .28rem .5rem;
  border-radius: 9px;
  font-size: .62rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.hero-video-free {
  inset-block-start: .8rem;
  inset-inline-start: .8rem;
  background: rgba(255,255,255,.92);
  color: #102a43;
}

.hero-video-stage {
  inset-block-start: .8rem;
  inset-inline-end: .8rem;
  background: rgba(5,17,29,.48);
  color: white;
  font-family: var(--font-latin);
}

.hero-video-duration {
  inset-block-end: .8rem;
  inset-inline-end: .8rem;
  background: rgba(5,17,29,.66);
  color: white;
  font-family: var(--font-latin);
}

.hero-video-symbol {
  position: absolute;
  inset-inline-start: 7%;
  inset-block-end: 3%;
  color: rgba(255,255,255,.10);
  font-family: var(--font-latin);
  font-size: clamp(6rem,12vw,10rem);
  font-weight: 900;
  line-height: 1;
}

.hero-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--brand-navy);
  box-shadow: 0 18px 44px rgba(0,0,0,.23);
}

.hero-video-play svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.7;
}

.hero-video-meta {
  min-height: 78px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: .65rem;
  padding: .8rem .95rem;
}

.hero-video-meta .teacher-mini-avatar {
  width: 38px;
  height: 38px;
}

.hero-video-meta > div {
  min-width: 0;
  display: grid;
  gap: .06rem;
}

.hero-video-meta small {
  color: var(--brand-gold);
  font-size: .59rem;
  font-weight: 900;
}

.hero-video-meta strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: .84rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-video-meta span {
  color: var(--text-tertiary);
  font-size: .62rem;
}

.home-section {
  padding-block: clamp(3.5rem,6vw,5.5rem);
}

.section-title-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.2rem;
}

.section-title-row.compact {
  margin-bottom: 1rem;
}

.section-title-row h2 {
  margin-top: .2rem;
  font-size: clamp(1.45rem,2.7vw,2.15rem);
}

.section-title-row p {
  max-width: 720px;
  margin-top: .45rem;
  font-size: .8rem;
  line-height: 1.7;
}

.section-kicker {
  color: var(--brand-gold);
  font-size: .66rem;
  font-weight: 900;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .55rem;
  color: var(--text-primary);
  font-size: .67rem;
  font-weight: 900;
  white-space: nowrap;
}

.section-link svg {
  width: 14px;
  height: 14px;
}

.section-icon-hint {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: var(--surface-card);
  color: var(--brand-navy);
}

.section-icon-hint svg {
  width: 19px;
  height: 19px;
}

.video-discovery-section {
  scroll-margin-top: 130px;
}

.video-discovery-note {
  max-width: 690px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: .65rem;
  align-items: center;
  margin-top: .55rem;
  padding: .7rem .8rem;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: var(--surface-muted);
}

.video-discovery-note > svg {
  width: 18px;
  height: 18px;
  color: var(--brand-gold);
}

.video-discovery-note p {
  display: grid;
  gap: .04rem;
}

.video-discovery-note strong {
  color: var(--text-primary);
  font-size: .68rem;
}

.video-discovery-note span {
  color: var(--text-secondary);
  font-size: .63rem;
  line-height: 1.55;
}

.teachers-section {
  scroll-margin-top: 130px;
  border-block: 1px solid var(--border-subtle);
  background:
    linear-gradient(180deg,color-mix(in srgb,var(--surface-muted) 55%,transparent),transparent);
}

.wilaya-filter {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  padding-bottom: .15rem;
  scrollbar-width: none;
}

.wilaya-filter::-webkit-scrollbar {
  display: none;
}

.wilaya-filter button {
  min-width: max-content;
  min-height: 34px;
  padding: .38rem .58rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--text-secondary);
  font-size: .61rem;
  font-weight: 800;
  cursor: pointer;
}

.wilaya-filter button.is-active {
  border-color: var(--brand-navy);
  background: var(--brand-navy);
  color: white;
}

.pathway-section {
  padding-block-end: 2rem;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .85rem;
}

.pathway-card {
  position: relative;
  min-height: 225px;
  overflow: hidden;
  padding: 1.15rem;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(16,42,67,.05);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}

.pathway-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(16,42,67,.10);
}

.pathway-bem {
  background: linear-gradient(145deg,#fff7e7,var(--surface-elevated));
}

.pathway-bac {
  background: linear-gradient(145deg,#eaf2f7,var(--surface-elevated));
}

.pathway-level {
  background: linear-gradient(145deg,#edf7f2,var(--surface-elevated));
}

:root[data-theme="dark"] .pathway-bem,
:root[data-theme="dark"] .pathway-bac,
:root[data-theme="dark"] .pathway-level {
  background: var(--surface-card);
}

.pathway-card > span {
  position: absolute;
  inset-inline-end: 1rem;
  inset-block-start: .8rem;
  color: var(--text-tertiary);
  font-family: var(--font-latin);
  font-size: .7rem;
  font-weight: 900;
}

.pathway-card small {
  color: var(--brand-gold);
  font-family: var(--font-latin);
  font-size: .63rem;
  font-weight: 900;
}

.pathway-card h3 {
  margin-top: 1rem;
  font-size: 1.12rem;
}

.pathway-card p {
  max-width: 350px;
  margin-top: .5rem;
  font-size: .73rem;
  line-height: 1.7;
}

.pathway-card > strong {
  position: absolute;
  inset-inline-start: 1.15rem;
  inset-block-end: 1rem;
  font-size: .66rem;
}

@media (max-width: 980px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    max-width: 760px;
  }

  .hero-featured-video {
    max-width: 760px;
  }

  .pathway-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .home-hero {
    padding-block-start: 2.5rem;
  }

  .home-hero h1 {
    font-size: clamp(2.25rem,11vw,3.35rem);
  }

  .home-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-hero-actions .button {
    width: 100%;
  }

  .home-trust-row {
    display: grid;
    gap: .45rem;
  }

  .hero-featured-video {
    border-radius: 18px;
  }

  .section-title-row {
    grid-template-columns: 1fr;
    gap: .6rem;
    align-items: start;
  }

  .section-link,
  .section-icon-hint {
    justify-self: start;
  }

  .pathway-grid {
    grid-template-columns: 1fr;
  }
}


.watch-page {
  padding-block: 1.2rem 4rem;
}

.watch-breadcrumb {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: .35rem;
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: .62rem;
  white-space: nowrap;
}

.watch-breadcrumb a {
  color: var(--text-secondary);
}

.watch-breadcrumb strong {
  overflow: hidden;
  color: var(--text-primary);
  text-overflow: ellipsis;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 360px;
  gap: 1.15rem;
  align-items: start;
}

.watch-main {
  min-width: 0;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 19px;
  background:
    radial-gradient(circle at 70% 20%,rgba(255,255,255,.07),transparent 28%),
    #07121d;
  box-shadow: 0 22px 60px rgba(16,42,67,.12);
}

.lesson-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #07121d;
}

.player-top-status {
  position: absolute;
  inset-block-start: .7rem;
  inset-inline-end: .7rem;
  z-index: 4;
  display: flex;
  gap: .35rem;
  align-items: center;
}

.player-top-status > span {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .28rem .45rem;
  border-radius: 8px;
  background: rgba(5,17,29,.68);
  color: white;
  font-family: var(--font-latin);
  font-size: .59rem;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.player-top-status .player-free {
  background: rgba(242,169,59,.92);
  color: #2d1c00;
  font-family: var(--font-body);
}

.player-top-status .player-paid {
  font-family: var(--font-body);
}

.player-top-status svg {
  width: 12px;
  height: 12px;
}

.player-locked-state {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(145deg,rgba(6,20,32,.92),rgba(14,39,58,.96));
}

.subscription-prompt {
  width: min(520px,100%);
  text-align: center;
  color: white;
}

.subscription-lock {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-inline: auto;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
}

.subscription-lock svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.7;
}

.subscription-kicker {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .8rem;
  color: var(--brand-gold-soft);
  font-size: .62rem;
  font-weight: 900;
}

.subscription-kicker svg {
  width: 13px;
  height: 13px;
}

.subscription-prompt h2 {
  margin-top: .35rem;
  color: white;
  font-size: clamp(1.35rem,3vw,2rem);
}

.subscription-prompt p {
  max-width: 470px;
  margin: .55rem auto 0;
  color: #c8d4de;
  font-size: .75rem;
  line-height: 1.75;
}

.subscription-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}

.subscription-actions .button {
  min-height: 42px;
  font-size: .68rem;
}

.subscription-actions .button-secondary {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: white;
}

.subscription-prompt > small {
  display: block;
  margin-top: .6rem;
  color: #9eb0bf;
  font-size: .58rem;
}

.lesson-primary-info {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-top: .95rem;
}

.lesson-heading > span {
  color: var(--brand-gold);
  font-family: var(--font-latin);
  font-size: .63rem;
  font-weight: 900;
}

.lesson-heading h1 {
  margin-top: .25rem;
  font-size: clamp(1.2rem,2.5vw,1.75rem);
  line-height: 1.4;
}

.next-lesson-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .65rem;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: .66rem;
  font-weight: 850;
  cursor: pointer;
}

.next-lesson-button svg {
  width: 15px;
  height: 15px;
}

[dir="rtl"] .next-lesson-button svg {
  transform: scaleX(-1);
}

.watch-teacher-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: .7rem;
  align-items: center;
  margin-top: .8rem;
  padding: .75rem;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--surface-card);
}

.watch-teacher-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-navy);
  color: white;
  font-family: var(--font-latin);
  font-weight: 900;
}

.watch-teacher-card > div {
  min-width: 0;
  display: grid;
  gap: .05rem;
}

.watch-teacher-card small {
  color: var(--text-tertiary);
  font-size: .56rem;
}

.watch-teacher-card strong {
  font-size: .78rem;
}

.watch-teacher-card div > span {
  display: flex;
  align-items: center;
  gap: .25rem;
  color: var(--text-tertiary);
  font-size: .58rem;
}

.watch-teacher-card div > span svg {
  width: 12px;
  height: 12px;
  color: #13795b;
}

.watch-teacher-free {
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem .55rem;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-size: .6rem;
  font-weight: 850;
}

.watch-teacher-free svg {
  width: 13px;
  height: 13px;
  color: var(--brand-gold);
}

.lesson-detail-card {
  margin-top: .8rem;
  padding: .85rem;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--surface-card);
}

.lesson-tabs {
  display: flex;
  gap: .25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.lesson-tabs button {
  min-height: 34px;
  min-width: max-content;
  padding: .35rem .55rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font-size: .62rem;
  font-weight: 850;
  cursor: pointer;
}

.lesson-tabs button.is-active {
  background: var(--surface-muted);
  color: var(--text-primary);
}

.lesson-detail-card > p {
  margin-top: .7rem;
  max-width: 760px;
  font-size: .72rem;
  line-height: 1.75;
}

.lesson-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .7rem;
  color: var(--text-tertiary);
  font-size: .58rem;
}

.lesson-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.lesson-detail-meta svg {
  width: 12px;
  height: 12px;
}

/* Series sidebar */
.series-panel {
  position: sticky;
  top: 130px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: var(--surface-card);
  box-shadow: 0 14px 38px rgba(16,42,67,.06);
}

.series-panel-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .6rem;
  align-items: start;
  padding: .85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.series-panel-header > div {
  min-width: 0;
}

.series-panel-header span {
  color: var(--text-tertiary);
  font-size: .56rem;
  font-weight: 750;
}

.series-panel-header h2 {
  margin-top: .2rem;
  overflow: hidden;
  font-size: .86rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.series-free-counter {
  min-width: max-content;
  padding: .28rem .42rem;
  border-radius: 8px;
  background: var(--surface-soft-gold);
  color: #8e5b08 !important;
  font-size: .57rem !important;
  font-weight: 900 !important;
}

.series-list {
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.series-lesson {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: .55rem;
  align-items: center;
  padding: .55rem .65rem;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-primary);
  text-align: start;
  cursor: pointer;
  transition: background .15s var(--ease-out);
}

.series-lesson:hover {
  background: var(--surface-muted);
}

.series-lesson.is-active {
  background: color-mix(in srgb,var(--surface-soft-gold) 55%,var(--surface-card));
  box-shadow: inset 3px 0 0 var(--brand-gold);
}

[dir="rtl"] .series-lesson.is-active {
  box-shadow: inset -3px 0 0 var(--brand-gold);
}

.series-lesson.is-locked {
  color: var(--text-secondary);
}

.series-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--text-tertiary);
  font-family: var(--font-latin);
  font-size: .61rem;
  font-weight: 900;
}

.series-lesson.is-active .series-number {
  background: var(--brand-navy);
  color: white;
}

.series-lesson-copy {
  min-width: 0;
  display: grid;
  gap: .05rem;
}

.series-lesson-copy strong {
  overflow: hidden;
  font-size: .68rem;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.series-lesson-copy small {
  color: var(--text-tertiary);
  font-family: var(--font-latin);
  font-size: .55rem;
}

.series-access {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .54rem;
  font-weight: 850;
}

.series-access svg {
  width: 12px;
  height: 12px;
}

.series-access.free {
  color: #13795b;
}

.series-access.locked {
  width: 28px;
  height: 28px;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-tertiary);
}

.series-subscribe-card {
  margin: .7rem;
  padding: .75rem;
  border-radius: 13px;
  background: var(--brand-navy);
  color: white;
}

.series-subscribe-card > strong {
  font-size: .72rem;
}

.series-subscribe-card > p {
  margin-top: .25rem;
  color: #c4d1dc;
  font-size: .59rem;
  line-height: 1.55;
}

.series-subscribe-card > button {
  width: 100%;
  min-height: 37px;
  margin-top: .6rem;
  border: 0;
  border-radius: 10px;
  background: var(--brand-gold);
  color: #392500;
  font-size: .62rem;
  font-weight: 900;
  cursor: pointer;
}

.inline-plans {
  display: grid;
  gap: .35rem;
  margin-top: .5rem;
}

.inline-plans > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
  padding: .45rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: rgba(255,255,255,.06);
}

.inline-plans span {
  color: white;
  font-size: .57rem;
}

.inline-plans strong {
  color: #c7d5df;
  font-size: .53rem;
  font-weight: 750;
}

.plans-expand-enter-active,
.plans-expand-leave-active {
  transition: opacity .15s var(--ease-out), transform .15s var(--ease-out);
}

.plans-expand-enter-from,
.plans-expand-leave-to {
  opacity: 0;
  transform: translateY(-4px);
}

@media (max-width: 1050px) {
  .watch-layout {
    grid-template-columns: minmax(0,1fr) 320px;
  }
}

@media (max-width: 880px) {
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .series-panel {
    position: static;
  }

  .series-list {
    max-height: none;
  }
}

@media (max-width: 580px) {
  .watch-page {
    padding-block-start: .5rem;
  }

  .watch-breadcrumb {
    min-height: 36px;
  }

  .player-shell {
    margin-inline: -.6rem;
    border-inline: 0;
    border-radius: 0;
  }

  .lesson-primary-info {
    grid-template-columns: 1fr;
  }

  .next-lesson-button {
    justify-self: start;
  }

  .watch-teacher-card {
    grid-template-columns: 40px 1fr;
  }

  .watch-teacher-free {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .series-panel {
    border-radius: 14px;
  }

  .series-lesson {
    grid-template-columns: 32px 1fr auto;
  }

  .subscription-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .subscription-actions .button {
    width: 100%;
  }
}


/* Runtime release glue */
.app-shell { min-height: 100vh; }
.runtime-toast {
  position: fixed;
  inset-inline-end: 1rem;
  inset-block-end: 1rem;
  z-index: 220;
  max-width: min(360px, calc(100vw - 2rem));
  padding: .75rem .9rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-floating);
  font-size: .7rem;
  font-weight: 800;
}
.subscription-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-top: 1rem;
}
.subscription-checkout-grid button {
  min-height: 86px;
  display: grid;
  gap: .22rem;
  padding: .7rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: white;
  cursor: pointer;
  text-align: start;
}
.subscription-checkout-grid span { font-size: .7rem; font-weight: 900; }
.subscription-checkout-grid strong { color: #bfcdd8; font-size: .58rem; font-weight: 750; }
.subscription-back {
  width: 38px;
  height: 38px;
  margin-top: .65rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: white;
  cursor: pointer;
}
[dir="rtl"] .subscription-back { transform: scaleX(-1); }

.page-hero {
  padding-block: clamp(3.4rem,7vw,5.7rem) 1.6rem;
}
.page-hero h1 { margin-top: .25rem; }
.page-hero p { max-width: 650px; margin-top: .75rem; line-height: 1.75; font-size: .82rem; }
.courses-section { padding-block-start: 1.5rem; }

@media (max-width: 560px) {
  .subscription-checkout-grid { grid-template-columns: 1fr; }
}


/* ===== v0.3.6 release overrides ===== */
/* DOROUS DZ v0.3.6 — study-focus polish */

/* Brand lockup is assembled from approved source assets so dark mode never loses the wordmark. */
.brand-lockup,
.footer-logo {
  text-decoration: none;
}
.brand-composite {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-width: 0;
}
.brand-wordmark {
  width: 92px;
  height: auto;
  object-fit: contain;
}
.brand-mark-shell {
  width: 35px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.brand-mark-image {
  width: 28px;
  max-height: 34px;
  object-fit: contain;
}
:root[data-theme="dark"] .brand-wordmark {
  filter: brightness(0) invert(1);
  opacity: .96;
}
:root[data-theme="dark"] .brand-mark-shell {
  background: rgba(255,255,255,.94);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
:root[data-theme="dark"] .footer-logo .brand-mark-shell {
  background: rgba(255,255,255,.90);
}

/* Dark mode refinement across the product. */
:root[data-theme="dark"] {
  --surface-page: #081722;
  --surface-card: rgba(17, 42, 59, .88);
  --surface-elevated: #102a3c;
  --surface-muted: #17384b;
  --surface-soft-navy: #123149;
  --surface-soft-gold: #332817;
  --text-primary: #f5f8fb;
  --text-secondary: #c6d2dc;
  --text-tertiary: #91a7b7;
  --border-subtle: rgba(226,238,246,.10);
  --border-strong: rgba(226,238,246,.18);
  --shadow-card: 0 16px 46px rgba(0,0,0,.20);
  --shadow-floating: 0 28px 80px rgba(0,0,0,.34);
  --header-glass: rgba(8,23,34,.88);
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 4%, rgba(242,169,59,.055), transparent 27rem),
    radial-gradient(circle at 88% 7%, rgba(74,127,164,.08), transparent 30rem),
    var(--surface-page);
}
:root[data-theme="dark"] .app-header,
:root[data-theme="dark"] .header-main {
  background: color-mix(in srgb,var(--surface-page) 92%,transparent);
}
:root[data-theme="dark"] .hero-featured-video,
:root[data-theme="dark"] .quick-finder,
:root[data-theme="dark"] .video-card,
:root[data-theme="dark"] .teacher-card,
:root[data-theme="dark"] .lesson-detail-card,
:root[data-theme="dark"] .watch-teacher-card,
:root[data-theme="dark"] .series-panel,
:root[data-theme="dark"] .app-footer {
  border-color: var(--border-subtle);
}
:root[data-theme="dark"] .section-icon-hint {
  color: var(--brand-gold-soft);
}

/* Header: icon-led, alive on hover, but not noisy. */
.header-main-row {
  grid-template-columns: auto auto minmax(260px,1fr) auto;
  gap: .85rem;
}
.header-nav {
  gap: .24rem;
}
.header-nav-link {
  position: relative;
  min-height: 43px;
  display: inline-flex !important;
  align-items: center;
  gap: .38rem;
  padding: .38rem .55rem !important;
  border: 1px solid transparent;
  border-radius: 12px !important;
  color: var(--text-secondary) !important;
  overflow: hidden;
  isolation: isolate;
}
.header-nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 20%;
  inset-block-end: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-gold);
  transform: scaleX(0);
  opacity: 0;
  transition: transform .18s var(--ease-out), opacity .18s var(--ease-out);
}
.header-nav-link:hover,
.header-nav-link.router-link-active {
  color: var(--text-primary) !important;
  border-color: var(--border-subtle);
  background: color-mix(in srgb,var(--surface-card) 78%,transparent) !important;
  box-shadow: 0 7px 20px rgba(16,42,67,.055);
  transform: translateY(-1px);
}
.header-nav-link:hover::after,
.header-nav-link.router-link-active::after {
  transform: scaleX(1);
  opacity: 1;
}
.header-nav-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--text-secondary);
  background: color-mix(in srgb,var(--surface-muted) 72%,transparent);
  transition: color .18s var(--ease-out), background .18s var(--ease-out), transform .18s var(--ease-out);
}
.header-nav-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.65;
}
.header-nav-link:hover .header-nav-icon,
.header-nav-link.router-link-active .header-nav-icon {
  color: var(--brand-navy);
  background: var(--surface-soft-gold);
  transform: scale(1.04);
}
:root[data-theme="dark"] .header-nav-link:hover .header-nav-icon,
:root[data-theme="dark"] .header-nav-link.router-link-active .header-nav-icon {
  color: var(--brand-gold-soft);
}
.header-nav-link.is-featured {
  color: var(--text-primary) !important;
  border-color: color-mix(in srgb,var(--brand-gold) 22%,var(--border-subtle));
  background: color-mix(in srgb,var(--surface-soft-gold) 55%,transparent) !important;
}
.header-nav-link.is-featured small {
  position: absolute;
  inset-inline-end: 3px;
  inset-block-start: 1px;
  min-height: 14px;
  display: inline-flex;
  align-items: center;
  padding: 0 .26rem;
  border-radius: 5px;
  background: var(--brand-gold);
  color: #392600;
  font-size: .46rem;
  font-weight: 950;
  line-height: 1;
}
.header-search {
  box-shadow: 0 8px 26px rgba(16,42,67,.045);
}
.header-search:focus-within {
  border-color: color-mix(in srgb,var(--brand-gold) 55%,var(--border-strong));
  box-shadow: 0 10px 32px rgba(16,42,67,.09), 0 0 0 3px color-mix(in srgb,var(--brand-gold) 9%,transparent);
}
.utility-button,
.login-button,
.icon-tool,
.mobile-menu-button {
  transition: transform .16s var(--ease-out), border-color .16s var(--ease-out), box-shadow .16s var(--ease-out), background .16s var(--ease-out);
}
.utility-button:hover,
.icon-tool:hover,
.mobile-menu-button:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: 0 7px 18px rgba(16,42,67,.06);
}
.login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(16,42,67,.18);
}

/* Seasonal strip: compact but active. */
.campaign-strip {
  background:
    radial-gradient(circle at 14% 50%, color-mix(in srgb,var(--brand-gold) 8%,transparent), transparent 15rem),
    linear-gradient(90deg,color-mix(in srgb,var(--surface-soft-gold) 50%,var(--surface-page)),var(--surface-page));
}
.campaign-mark {
  border: 1px solid color-mix(in srgb,var(--brand-gold) 24%,transparent);
  box-shadow: inset 0 0 0 3px color-mix(in srgb,var(--brand-gold) 4%,transparent);
}
.campaign-link {
  min-height: 29px;
  padding: .3rem .52rem;
  border: 1px solid color-mix(in srgb,var(--brand-gold) 22%,var(--border-subtle));
  border-radius: 9px;
  background: color-mix(in srgb,var(--surface-soft-gold) 64%,transparent);
}

/* First glance: stronger study motivation, still calm. */
.home-hero {
  padding-block-start: clamp(3.2rem,6.4vw,5.8rem);
}
.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .55rem;
  border: 1px solid color-mix(in srgb,var(--brand-gold) 18%,var(--border-subtle));
  border-radius: 999px;
  background: color-mix(in srgb,var(--surface-soft-gold) 48%,transparent);
}
.home-eyebrow svg {
  width: 14px;
  height: 14px;
}
.study-motivation-line {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .9rem;
  color: var(--text-secondary);
  font-size: .72rem;
}
.study-motivation-line > span {
  width: 31px;
  height: 2px;
  border-radius: 99px;
  background: var(--brand-gold);
}
.study-motivation-line strong {
  font-weight: 850;
}
.button-assessment {
  border-color: color-mix(in srgb,var(--brand-gold) 32%,var(--border-subtle));
  background: var(--surface-soft-gold);
  color: var(--text-primary);
}
.button-assessment svg {
  color: var(--brand-gold);
}
.button-assessment:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb,var(--brand-gold) 60%,var(--border-strong));
}

/* High-salience study navigator. */
.quick-finder-wrap {
  margin-top: -.65rem;
}
.quick-finder {
  grid-template-columns: minmax(220px,.58fr) minmax(0,1.75fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 26px;
  border-color: color-mix(in srgb,var(--brand-gold) 18%,var(--border-subtle));
  box-shadow: 0 26px 70px rgba(16,42,67,.105);
}
.quick-finder-intro {
  position: relative;
  padding: .7rem .65rem;
}
.quick-finder-intro::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: .4rem;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(var(--brand-gold),color-mix(in srgb,var(--brand-gold) 14%,transparent));
}
.quick-finder-intro h2 {
  font-size: clamp(1.28rem,2.4vw,1.75rem);
}
.quick-progress-text {
  display: inline-flex;
  margin-top: .75rem;
  padding: .32rem .48rem;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: .59rem;
  font-weight: 850;
}
.quick-filter-panel {
  grid-template-columns: minmax(0,1fr) minmax(0,1.35fr) 132px;
  gap: .65rem;
}
.quick-filter-group {
  position: relative;
  overflow: hidden;
  padding: .7rem;
  border-radius: 17px;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), opacity .2s;
}
.quick-filter-group.needs-choice {
  border-color: color-mix(in srgb,var(--brand-gold) 52%,var(--border-subtle));
  box-shadow: 0 0 0 4px color-mix(in srgb,var(--brand-gold) 7%,transparent), 0 12px 34px rgba(16,42,67,.07);
}
.quick-filter-group.needs-choice::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  inset-inline-end: -80px;
  inset-block-start: -100px;
  border-radius: 50%;
  background: color-mix(in srgb,var(--brand-gold) 10%,transparent);
  pointer-events: none;
}
.quick-filter-group.is-muted {
  opacity: .58;
}
.quick-filter-heading {
  justify-content: flex-start;
  gap: .55rem;
}
.quick-filter-heading > div {
  min-width: 0;
  display: grid;
  gap: .02rem;
}
.quick-filter-heading strong {
  font-size: .72rem;
}
.quick-filter-heading small {
  color: var(--text-tertiary);
  font-size: .55rem;
}
.step-orb {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-navy);
  color: white !important;
  font-family: var(--font-latin);
  font-size: .58rem !important;
}
.step-check {
  margin-inline-start: auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f7f1;
  color: #13795b !important;
}
.step-check svg {
  width: 14px;
  height: 14px;
}
.stage-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .38rem;
}
.stage-choice {
  min-height: 55px;
  display: grid;
  align-content: center;
  gap: .05rem;
  padding: .45rem .55rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--text-primary);
  text-align: start;
  cursor: pointer;
  transition: transform .16s var(--ease-out), background .16s, border-color .16s, box-shadow .16s;
}
.stage-choice strong {
  font-size: .69rem;
}
.stage-choice small {
  color: var(--text-tertiary);
  font-family: var(--font-latin);
  font-size: .53rem;
}
.stage-choice:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.stage-choice.is-active {
  border-color: var(--brand-navy);
  background: var(--brand-navy);
  color: white;
  box-shadow: 0 10px 24px rgba(16,42,67,.18);
}
.stage-choice.is-active small {
  color: #d7e3ec;
}
.subject-choice-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .38rem;
}
.subject-choice {
  min-height: 56px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: .35rem;
  padding: .42rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  text-align: start;
  cursor: pointer;
  transition: transform .16s var(--ease-out), border-color .16s, background .16s;
}
.subject-choice:disabled {
  cursor: not-allowed;
}
.subject-choice:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.subject-choice-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-card);
  color: var(--brand-navy);
}
.subject-choice-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.65;
}
.subject-choice strong {
  font-size: .59rem;
}
.subject-choice.is-active {
  border-color: color-mix(in srgb,var(--brand-gold) 58%,var(--border-strong));
  background: var(--surface-soft-gold);
  color: var(--text-primary);
}
.subject-choice.is-active .subject-choice-icon {
  background: var(--brand-gold);
  color: #3c2700;
}
.quick-show-button {
  min-width: 0;
  padding: .7rem;
  opacity: .56;
  transform: none;
}
.quick-show-button:disabled {
  cursor: not-allowed;
}
.quick-show-button.is-ready {
  opacity: 1;
  background: linear-gradient(145deg,var(--brand-navy),#173f62);
  box-shadow: 0 14px 32px rgba(16,42,67,.20);
}
.quick-show-button span {
  font-size: .66rem;
}
.quick-show-button small {
  max-width: 100px;
  color: #d9e5ed;
  font-size: .52rem;
  line-height: 1.35;
  text-align: center;
}

/* Assessment teaser on home. */
.home-assessment-section {
  padding-block: 2.2rem 1rem;
}
.home-assessment-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border: 1px solid color-mix(in srgb,var(--brand-gold) 22%,var(--border-subtle));
  border-radius: 21px;
  background:
    radial-gradient(circle at 10% 50%,color-mix(in srgb,var(--brand-gold) 9%,transparent),transparent 18rem),
    var(--surface-card);
  box-shadow: 0 16px 44px rgba(16,42,67,.065);
  overflow: hidden;
}
.home-assessment-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--brand-navy);
  color: white;
}
.home-assessment-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.55;
}
.home-assessment-card > div:nth-child(2) > span {
  color: var(--brand-gold);
  font-size: .61rem;
  font-weight: 900;
}
.home-assessment-card h2 {
  margin-top: .15rem;
  font-size: clamp(1.05rem,2vw,1.45rem);
}
.home-assessment-card p {
  margin-top: .35rem;
  max-width: 800px;
  font-size: .72rem;
  line-height: 1.6;
}
.assessment-mini-flow {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .55rem;
}
.assessment-mini-flow span {
  padding: .28rem .42rem;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: .54rem;
  font-weight: 800;
}
.home-assessment-cta {
  min-width: 150px;
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: .1rem .35rem;
  padding: .55rem .7rem;
  border-radius: 14px;
  background: var(--brand-gold);
  color: #352300;
  font-size: .68rem;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(242,169,59,.18);
}
.home-assessment-cta svg {
  grid-row: 1 / 3;
  grid-column: 2;
  width: 16px;
  height: 16px;
}
[dir="rtl"] .home-assessment-cta svg {
  transform: scaleX(-1);
}
.home-assessment-cta small {
  font-size: .52rem;
  opacity: .72;
}

/* Assessment page */
.assessment-page {
  min-height: calc(100vh - 170px);
  padding-block: clamp(2rem,5vw,4.5rem) 5rem;
}
.assessment-shell {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(420px,1.2fr);
  gap: clamp(2rem,5vw,5rem);
  align-items: center;
}
.assessment-setup-copy {
  max-width: 620px;
}
.assessment-kicker {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  color: var(--brand-gold);
  font-size: .68rem;
  font-weight: 900;
}
.assessment-kicker svg {
  width: 15px;
  height: 15px;
}
.assessment-setup-copy h1,
.assessment-result-shell h1 {
  margin-top: .55rem;
  font-size: clamp(2rem,4.6vw,4rem);
  line-height: 1.12;
}
.assessment-setup-copy > p {
  margin-top: 1rem;
  max-width: 590px;
  font-size: .88rem;
  line-height: 1.85;
}
.assessment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}
.assessment-badges span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem .55rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--text-secondary);
  font-size: .62rem;
  font-weight: 800;
}
.assessment-badges svg {
  width: 13px;
  height: 13px;
  color: var(--brand-gold);
}
.assessment-setup-card {
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  background: var(--surface-card);
  box-shadow: var(--shadow-floating);
}
.assessment-step {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .55rem;
}
.assessment-step > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-navy);
  color: white;
  font-family: var(--font-latin);
  font-size: .58rem;
  font-weight: 900;
}
.assessment-step strong {
  font-size: .72rem;
}
.assessment-stage-grid,
.assessment-subject-grid {
  display: grid;
  gap: .45rem;
  margin-bottom: 1rem;
}
.assessment-stage-grid {
  grid-template-columns: repeat(4,1fr);
}
.assessment-subject-grid {
  grid-template-columns: repeat(5,1fr);
}
.assessment-stage-grid button,
.assessment-subject-grid button {
  min-height: 62px;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform .16s, border-color .16s, background .16s;
}
.assessment-stage-grid button:hover,
.assessment-subject-grid button:hover {
  transform: translateY(-2px);
}
.assessment-stage-grid button.is-active,
.assessment-subject-grid button.is-active {
  border-color: color-mix(in srgb,var(--brand-gold) 48%,var(--border-strong));
  background: var(--surface-soft-gold);
  color: var(--text-primary);
}
.assessment-stage-grid strong,
.assessment-subject-grid strong {
  font-size: .62rem;
}
.assessment-stage-grid small {
  display: block;
  margin-top: .12rem;
  color: var(--text-tertiary);
  font-family: var(--font-latin);
  font-size: .5rem;
}
.assessment-subject-grid button {
  display: grid;
  place-items: center;
  gap: .2rem;
  padding: .45rem;
}
.assessment-subject-grid button > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-card);
  color: var(--brand-navy);
}
.assessment-subject-grid svg {
  width: 14px;
  height: 14px;
}
.assessment-start-button {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: .05rem .5rem;
  padding: .6rem .8rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(145deg,var(--brand-navy),#173f62);
  color: white;
  text-align: start;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 13px 30px rgba(16,42,67,.18);
}
.assessment-start-button svg {
  grid-row: 1 / 3;
  width: 20px;
  height: 20px;
  color: var(--brand-gold);
}
.assessment-start-button small {
  color: #cbd8e1;
  font-size: .52rem;
}
.assessment-quiz-layout {
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  gap: 1rem;
  align-items: start;
}
.assessment-side,
.assessment-question-card,
.assessment-score-card,
.assessment-recommendation {
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}
.assessment-side {
  position: sticky;
  top: 142px;
  padding: 1rem;
}
.assessment-side h2 {
  margin-top: .45rem;
  font-size: 1rem;
}
.assessment-side p {
  margin-top: .55rem;
  font-size: .64rem;
}
.assessment-side > button {
  margin-top: 1rem;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: .58rem;
  font-weight: 800;
  cursor: pointer;
}
.assessment-progress {
  height: 6px;
  margin-top: .7rem;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}
.assessment-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,var(--brand-gold),#ffd782);
  transition: width .25s var(--ease-out);
}
.assessment-question-card {
  padding: clamp(1rem,3vw,2rem);
}
.question-skill {
  display: inline-flex;
  padding: .32rem .48rem;
  border-radius: 8px;
  background: var(--surface-soft-gold);
  color: #8f5c06;
  font-size: .58rem;
  font-weight: 900;
}
.assessment-question-card h1 {
  max-width: 860px;
  margin-top: .7rem;
  font-size: clamp(1.25rem,2.7vw,2rem);
  line-height: 1.55;
}
.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-top: 1.2rem;
}
.answer-grid button {
  min-height: 68px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: .55rem;
  padding: .65rem;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--surface-muted);
  color: var(--text-primary);
  text-align: start;
  cursor: pointer;
  transition: transform .16s, border-color .16s, background .16s;
}
.answer-grid button:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.answer-grid button > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-card);
  font-family: var(--font-latin);
  font-size: .62rem;
  font-weight: 900;
}
.answer-grid button strong {
  font-size: .72rem;
}
.answer-grid button.is-correct {
  border-color: rgba(19,121,91,.38);
  background: rgba(19,121,91,.10);
}
.answer-grid button.is-wrong {
  border-color: rgba(180,70,70,.38);
  background: rgba(180,70,70,.10);
}
.answer-feedback {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .7rem;
  align-items: start;
  margin-top: 1rem;
  padding: .8rem;
  border-radius: 14px;
}
.answer-feedback.is-correct {
  background: rgba(19,121,91,.09);
}
.answer-feedback.is-wrong {
  background: color-mix(in srgb,var(--surface-soft-gold) 70%,transparent);
}
.answer-feedback > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-card);
  color: var(--brand-gold);
}
.answer-feedback svg {
  width: 19px;
  height: 19px;
}
.answer-feedback strong {
  font-size: .72rem;
}
.answer-feedback p {
  margin-top: .25rem;
  font-size: .65rem;
  line-height: 1.6;
}
.answer-feedback a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .55rem;
  padding: .4rem .55rem;
  border-radius: 9px;
  background: var(--brand-navy);
  color: white;
  font-size: .59rem;
  font-weight: 900;
}
.answer-feedback a svg {
  width: 13px;
  height: 13px;
}
.assessment-next-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  padding: .5rem .7rem;
  border: 0;
  border-radius: 11px;
  background: var(--brand-navy);
  color: white;
  font-size: .63rem;
  font-weight: 900;
  cursor: pointer;
}
.assessment-next-button svg {
  width: 14px;
  height: 14px;
}
[dir="rtl"] .assessment-next-button svg {
  transform: scaleX(-1);
}
.assessment-result-shell {
  max-width: 1020px;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 1rem;
}
.assessment-score-card,
.assessment-recommendation {
  padding: 1.2rem;
}
.score-ring {
  --score: 0deg;
  position: relative;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  margin: 1rem auto;
  border-radius: 50%;
  background: conic-gradient(var(--brand-gold) var(--score), var(--surface-muted) 0);
}
.score-ring::after {
  content: "";
  position: absolute;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--surface-card);
}
.score-ring strong {
  position: relative;
  z-index: 1;
  font-family: var(--font-latin);
  font-size: 1.3rem;
}
.assessment-score-card h1 {
  font-size: 1.4rem;
  text-align: center;
}
.assessment-score-card > p {
  margin-top: .55rem;
  font-size: .68rem;
  line-height: 1.6;
  text-align: center;
}
.assessment-score-card > button {
  width: 100%;
  min-height: 40px;
  margin-top: .9rem;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--text-primary);
  cursor: pointer;
}
.assessment-recommendation > span {
  color: var(--brand-gold);
  font-size: .61rem;
  font-weight: 900;
}
.assessment-recommendation h2 {
  margin-top: .25rem;
  font-size: 1.25rem;
}
.assessment-recommendation > p {
  margin-top: .45rem;
  font-size: .7rem;
  line-height: 1.65;
}
.assessment-recommendation > a {
  width: fit-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .75rem;
  padding: .45rem .65rem;
  border-radius: 10px;
  background: var(--brand-navy);
  color: white;
  font-size: .62rem;
  font-weight: 900;
}
.assessment-recommendation > a svg {
  width: 14px;
  height: 14px;
}
.deep-diagnostic {
  margin-top: 1rem;
  padding: .8rem;
  border: 1px solid color-mix(in srgb,var(--brand-gold) 22%,var(--border-subtle));
  border-radius: 13px;
  background: var(--surface-soft-gold);
}
.deep-diagnostic strong {
  font-size: .68rem;
}
.deep-diagnostic p {
  margin-top: .25rem;
  font-size: .6rem;
  line-height: 1.55;
}
.deep-diagnostic button {
  margin-top: .5rem;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: .58rem;
  font-weight: 900;
  cursor: pointer;
}

/* Mobile header becomes a discovery drawer instead of a plain list. */
.mobile-nav-hero {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .65rem;
  align-items: center;
  margin-bottom: .75rem;
  padding: .7rem;
  border-radius: 14px;
  background: var(--surface-soft-gold);
}
.mobile-nav-hero > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-navy);
  color: white;
}
.mobile-nav-hero svg {
  width: 18px;
  height: 18px;
}
.mobile-nav-hero div {
  display: grid;
  gap: .1rem;
}
.mobile-nav-hero strong {
  font-size: .7rem;
}
.mobile-nav-hero small {
  color: var(--text-secondary);
  font-size: .55rem;
}
.mobile-nav-panel .header-nav-link {
  min-height: 58px;
  width: 100%;
  justify-content: flex-start;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
}
.mobile-nav-panel .header-nav-link.is-featured {
  border-color: color-mix(in srgb,var(--brand-gold) 30%,var(--border-subtle));
  background: var(--surface-soft-gold) !important;
}
.mobile-utilities {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .45rem;
  margin-top: .75rem;
}
.mobile-utilities button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: .58rem;
  font-weight: 850;
  cursor: pointer;
}
.mobile-utilities svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 1180px) {
  .header-nav-link {
    padding-inline: .42rem !important;
  }
  .header-nav-link > span:nth-child(2) {
    font-size: .69rem;
  }
  .header-nav-icon {
    width: 27px;
    height: 27px;
  }
}
@media (max-width: 920px) {
  .brand-wordmark { width: 84px; }
  .brand-mark-shell { width: 33px;height:37px; }
  .quick-finder { grid-template-columns: 1fr; }
  .quick-filter-panel { grid-template-columns: 1fr 1.25fr; }
  .quick-show-button { grid-column: 1 / -1; min-height: 58px; flex-direction: row; display:flex; }
  .quick-show-button small { max-width:none; }
  .assessment-shell { grid-template-columns: 1fr; }
  .assessment-setup-copy { max-width: 760px; }
  .assessment-quiz-layout { grid-template-columns: 1fr; }
  .assessment-side { position: static; }
  .assessment-result-shell { grid-template-columns: 1fr; }
  .home-assessment-card { grid-template-columns: 50px 1fr; }
  .home-assessment-cta { grid-column: 1 / -1; width:100%; }
}
@media (max-width: 560px) {
  .brand-wordmark { width: 74px; }
  .brand-mark-shell { width:30px;height:34px; }
  .brand-mark-image { width:24px;max-height:29px; }
  .header-tools .brand-dropdown,
  .header-tools .login-button { display:none; }
  .header-tools { gap:.3rem; }
  .campaign-strip p strong { display:none; }
  .campaign-link { font-size:0;min-width:30px;justify-content:center; }
  .campaign-link span { font-size:.9rem; }
  .home-hero { padding-block-start:2.5rem; }
  .home-hero h1 { font-size:clamp(2.2rem,11vw,3.25rem); }
  .study-motivation-line { font-size:.65rem; }
  .quick-finder-wrap { margin-top:-.25rem; }
  .quick-finder { padding:.75rem;border-radius:20px; }
  .quick-filter-panel { grid-template-columns:1fr; }
  .subject-choice-grid { grid-template-columns:1fr 1fr; }
  .stage-choice-grid { grid-template-columns:1fr 1fr; }
  .quick-show-button { grid-column:auto; }
  .home-assessment-card { grid-template-columns:44px 1fr;padding:.8rem; }
  .home-assessment-icon { width:44px;height:44px;border-radius:13px; }
  .assessment-mini-flow { display:none; }
  .assessment-stage-grid { grid-template-columns:1fr 1fr; }
  .assessment-subject-grid { grid-template-columns:1fr 1fr; }
  .answer-grid { grid-template-columns:1fr; }
  .assessment-question-card { padding:.9rem; }
  .assessment-question-card h1 { font-size:1.18rem; }
  .answer-feedback { grid-template-columns:34px 1fr;padding:.7rem; }
  .answer-feedback > span { width:32px;height:32px; }
  .mobile-nav-panel nav { grid-template-columns:1fr 1fr;gap:.45rem; }
}


/* ===== DOROUS DZ v0.3.7 ===== */
/* v0.3.7 — balanced header + one-tap language/theme */
.app-header-v037 .header-main-row {
  min-height: 68px;
  grid-template-columns: 118px auto minmax(290px,1fr) auto;
  gap: .72rem;
}
.app-header-v037 .brand-lockup { padding: .15rem; overflow: visible; }
.app-header-v037 .brand-composite { gap: .32rem; }
.app-header-v037 .brand-wordmark { width: 78px; }
.app-header-v037 .brand-mark-shell { width: 31px; height: 35px; border-radius: 9px; }
.app-header-v037 .brand-mark-image { width: 25px; max-height: 30px; }
.app-header-v037 .header-nav { gap: .12rem; }
.app-header-v037 .header-nav-link {
  min-height: 39px;
  padding: .33rem .44rem !important;
  border-radius: 11px !important;
}
.app-header-v037 .header-nav-icon { width: 27px; height: 27px; border-radius: 8px; }
.app-header-v037 .header-nav-icon svg { width: 14px; height: 14px; }
.app-header-v037 .header-search { min-height: 40px; max-width: 520px; }
.app-header-v037 .header-tools { gap: .32rem; }

.cycle-control {
  min-height: 40px;
  display: inline-grid;
  grid-template-columns: 28px auto;
  align-items: center;
  gap: .42rem;
  padding: .34rem .5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--surface-card);
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(16,42,67,.035);
  transition: transform .16s var(--ease-out), border-color .16s, background .16s, box-shadow .16s;
}
.cycle-control:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb,var(--brand-gold) 30%,var(--border-strong));
  box-shadow: 0 8px 22px rgba(16,42,67,.065);
}
.cycle-visual {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-muted);
  overflow: hidden;
}
.cycle-visual svg:not(.locale-flag) { width: 15px; height: 15px; stroke-width: 1.65; }
.locale-flag {
  width: 21px;
  height: 14px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(16,42,67,.1);
}
.cycle-copy {
  min-width: 0;
  display: grid;
  gap: 0;
  text-align: start;
}
.cycle-copy strong { font-size: .62rem; line-height: 1.1; white-space: nowrap; }
.cycle-copy small { color: var(--text-tertiary); font-size: .48rem; line-height: 1.2; white-space: nowrap; }
.language-cycle { min-width: 88px; }
.theme-cycle { min-width: 102px; }
.cycle-control.is-compact { width: 100%; grid-template-columns: 30px 1fr; min-height: 46px; }

.mobile-profile-context {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: .55rem;
  align-items: center;
  margin-bottom: .65rem;
  padding: .65rem;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--surface-soft-gold);
}
.mobile-profile-context > span {
  width: 36px;height:36px;display:grid;place-items:center;border-radius:11px;background:var(--brand-navy);color:#fff;
}
.mobile-profile-context svg { width:16px;height:16px; }
.mobile-profile-context div { display:grid; gap:.04rem; min-width:0; }
.mobile-profile-context strong { font-size:.67rem; white-space:nowrap; overflow:hidden;text-overflow:ellipsis; }
.mobile-profile-context small { color:var(--text-secondary);font-size:.5rem;line-height:1.35; }
.mobile-profile-context button {
  min-height:31px;padding:.3rem .45rem;border:1px solid var(--border-subtle);border-radius:9px;background:var(--surface-card);
  color:var(--text-primary);font-size:.54rem;font-weight:850;cursor:pointer;
}
.mobile-login-control {
  min-height:46px;display:flex;align-items:center;justify-content:center;gap:.35rem;border:1px solid var(--border-subtle);
  border-radius:11px;background:var(--brand-navy);color:#fff;font-size:.58rem;font-weight:850;cursor:pointer;
}
.mobile-login-control svg { width:15px;height:15px; }

:root[data-theme="dark"] .cycle-control { background: color-mix(in srgb,var(--surface-card) 88%,#fff 2%); }
:root[data-theme="dark"] .cycle-visual { background: color-mix(in srgb,var(--surface-muted) 90%,#fff 3%); }

/* Sponsored teacher/course ticker — clearly separated from organic ranking */
.sponsored-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  background:
    linear-gradient(90deg,color-mix(in srgb,var(--surface-soft-gold) 45%,var(--surface-page)),var(--surface-page));
}
.sponsored-strip-shell { position: relative; min-height: 39px; overflow: hidden; }
.sponsored-slot {
  min-height: 39px;
  display: grid;
  align-items: center;
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
}
.sponsored-slot.is-changing { opacity: 0; transform: translateY(4px); }
.sponsored-ad-inner {
  display: grid;
  grid-template-columns: auto 27px minmax(0,1fr) auto;
  align-items: center;
  gap: .55rem;
  min-height: 39px;
}
.sponsored-label {
  display: inline-flex;align-items:center;gap:.28rem;min-height:24px;padding:.2rem .38rem;border-radius:8px;
  background:color-mix(in srgb,var(--brand-gold) 15%,transparent);color:#8b5a08;font-size:.5rem;font-weight:900;white-space:nowrap;
}
.sponsored-label svg { width:12px;height:12px; }
.sponsored-avatar {
  width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:var(--brand-navy);color:#fff;
  font-family:var(--font-latin);font-size:.62rem;font-weight:900;
}
.sponsored-ad-inner p { min-width:0;display:flex;align-items:center;gap:.48rem; }
.sponsored-ad-inner p small {
  color:var(--text-tertiary);font-size:.5rem;white-space:nowrap;
}
.sponsored-ad-inner p strong {
  min-width:0;color:var(--text-primary);font-size:.61rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.sponsored-cta {
  display:inline-flex;align-items:center;gap:.25rem;min-height:27px;padding:.28rem .46rem;border:1px solid color-mix(in srgb,var(--brand-gold) 22%,var(--border-subtle));
  border-radius:9px;background:var(--surface-card);color:var(--text-primary);font-size:.54rem;font-weight:900;white-space:nowrap;
}
[dir="ltr"] .sponsored-cta span { transform:scaleX(-1); }
.sponsored-progress {
  position:absolute;inset-inline-start:0;inset-block-end:0;height:2px;width:100%;transform-origin:inline-start;
  background:linear-gradient(90deg,var(--brand-gold),color-mix(in srgb,var(--brand-gold) 8%,transparent));
  animation:sponsored-progress 7.2s linear infinite;
}
.sponsored-strip-shell:hover .sponsored-progress { animation-play-state:paused; }
@keyframes sponsored-progress { from{transform:scaleX(0)} to{transform:scaleX(1)} }

:root[data-theme="dark"] .sponsored-strip {
  background:linear-gradient(90deg,color-mix(in srgb,var(--surface-soft-gold) 55%,var(--surface-page)),var(--surface-page));
}
:root[data-theme="dark"] .sponsored-label { color:var(--brand-gold-soft); }

/* First-visit profile — floating, non-blocking, asks only for stage/year/wilaya */
.profile-onboarding {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 16px;
  z-index: 240;
  display: flex;
  justify-content: center;
  padding-inline: 1rem;
  pointer-events: none;
}
.profile-onboarding-card {
  width: min(980px,calc(100vw - 2rem));
  max-height: min(620px,calc(100vh - 32px));
  overflow: auto;
  pointer-events: auto;
  border: 1px solid color-mix(in srgb,var(--brand-gold) 28%,var(--border-subtle));
  border-radius: 24px;
  background: color-mix(in srgb,var(--surface-elevated) 97%,transparent);
  box-shadow: 0 34px 100px rgba(16,42,67,.22);
  backdrop-filter: blur(22px) saturate(145%);
}
.profile-onboarding-head {
  display: grid;
  grid-template-columns: 48px 1fr 36px;
  gap: .8rem;
  align-items: start;
  padding: 1rem 1rem .8rem;
  border-bottom: 1px solid var(--border-subtle);
}
.profile-onboarding-icon {
  width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:var(--brand-navy);color:#fff;
  box-shadow:0 12px 28px rgba(16,42,67,.18);
}
.profile-onboarding-icon svg { width:20px;height:20px; }
.profile-onboarding-head > div { min-width:0;display:grid;gap:.15rem; }
.profile-onboarding-head > div > span { color:var(--brand-gold);font-size:.57rem;font-weight:900; }
.profile-onboarding-head h2 { font-size:1.05rem;line-height:1.3; }
.profile-onboarding-head p { max-width:720px;color:var(--text-secondary);font-size:.65rem;line-height:1.55; }
.profile-later-x {
  width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--border-subtle);border-radius:10px;background:var(--surface-muted);cursor:pointer;
}
.profile-later-x svg { width:15px;height:15px; }

.profile-onboarding-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  padding: .8rem 1rem;
}
.profile-step {
  min-width:0;
  padding: .8rem;
  border: 1px solid var(--border-subtle);
  border-radius: 17px;
  background: color-mix(in srgb,var(--surface-muted) 48%,transparent);
}
.profile-step-title {
  display:grid;grid-template-columns:31px 1fr;gap:.5rem;align-items:center;margin-bottom:.7rem;
}
.profile-step-title > span {
  width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:var(--brand-navy);color:#fff;
  font-family:var(--font-latin);font-size:.56rem;font-weight:900;
}
.profile-step-title div { display:grid;gap:.02rem; }
.profile-step-title strong { font-size:.7rem; }
.profile-step-title small { color:var(--text-tertiary);font-size:.52rem; }

.profile-stage-grid {
  display:grid;grid-template-columns:repeat(4,1fr);gap:.35rem;
}
.profile-stage-grid button {
  min-height:58px;display:grid;grid-template-columns:27px 1fr;gap:.35rem;align-items:center;padding:.4rem;
  border:1px solid var(--border-subtle);border-radius:12px;background:var(--surface-card);color:var(--text-primary);text-align:start;cursor:pointer;
  transition:transform .15s,border-color .15s,background .15s;
}
.profile-stage-grid button:hover { transform:translateY(-1px);border-color:var(--border-strong); }
.profile-stage-grid button > span { width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:var(--surface-muted); }
.profile-stage-grid svg { width:14px;height:14px; }
.profile-stage-grid strong { font-size:.57rem; }
.profile-stage-grid button.is-active { border-color:var(--brand-navy);background:var(--brand-navy);color:#fff; }
.profile-stage-grid button.is-active > span { background:rgba(255,255,255,.12);color:var(--brand-gold-soft); }

.profile-year-rail {
  display:flex;gap:.35rem;overflow-x:auto;margin-top:.55rem;padding-bottom:.1rem;scrollbar-width:none;
}
.profile-year-rail::-webkit-scrollbar{display:none}
.profile-year-rail button {
  flex:0 0 auto;min-width:90px;min-height:45px;display:grid;gap:.03rem;align-content:center;padding:.35rem .5rem;
  border:1px solid var(--border-subtle);border-radius:10px;background:var(--surface-card);color:var(--text-primary);text-align:start;cursor:pointer;
}
.profile-year-rail strong { font-size:.54rem; }
.profile-year-rail small { color:var(--text-tertiary);font-family:var(--font-latin);font-size:.47rem; }
.profile-year-rail button.is-active { border-color:color-mix(in srgb,var(--brand-gold) 60%,var(--brand-navy));background:var(--surface-soft-gold); }
.profile-year-rail button.is-active small { color:#8b5a08; }

.profile-wilaya-search {
  min-height:39px;display:grid;grid-template-columns:17px 1fr;align-items:center;gap:.4rem;padding:.25rem .55rem;
  border:1px solid var(--border-subtle);border-radius:11px;background:var(--surface-card);
}
.profile-wilaya-search svg { width:15px;height:15px;color:var(--text-tertiary); }
.profile-wilaya-search input { min-width:0;border:0;outline:0;background:transparent;color:var(--text-primary);font-size:.62rem; }
.profile-wilaya-results {
  display:grid;grid-template-columns:repeat(4,1fr);gap:.32rem;max-height:150px;overflow:auto;margin-top:.5rem;padding-inline-end:.1rem;
}
.profile-wilaya-choice {
  min-height:39px;display:grid;grid-template-columns:22px 1fr 14px;align-items:center;gap:.28rem;padding:.3rem .38rem;
  border:1px solid var(--border-subtle);border-radius:9px;background:var(--surface-card);color:var(--text-primary);text-align:start;cursor:pointer;
}
.profile-wilaya-choice > span { color:var(--text-tertiary);font-family:var(--font-latin);font-size:.47rem; }
.profile-wilaya-choice strong { font-size:.53rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.profile-wilaya-choice svg { width:12px;height:12px;color:#13795b; }
.profile-wilaya-choice.is-active { border-color:#13795b;background:#edf8f3; }
:root[data-theme="dark"] .profile-wilaya-choice.is-active { background:#123a31;color:#fff; }

.profile-show-all {
  margin-top:.45rem;padding:.3rem 0;border:0;background:transparent;color:var(--text-secondary);font-size:.53rem;font-weight:850;cursor:pointer;
}
.profile-onboarding-footer {
  display:grid;grid-template-columns:1fr auto;gap:1rem;align-items:center;padding:.75rem 1rem 1rem;border-top:1px solid var(--border-subtle);
}
.profile-privacy { display:flex;align-items:flex-start;gap:.4rem;color:var(--text-tertiary);font-size:.51rem;line-height:1.5; }
.profile-privacy svg { flex:0 0 auto;width:14px;height:14px;color:#13795b; }
.profile-actions { display:flex;align-items:center;gap:.4rem; }
.profile-later,.profile-save {
  min-height:38px;padding:.42rem .68rem;border-radius:11px;font-size:.58rem;font-weight:850;cursor:pointer;
}
.profile-later { border:1px solid var(--border-subtle);background:var(--surface-muted);color:var(--text-secondary); }
.profile-save { display:flex;align-items:center;gap:.35rem;border:0;background:var(--brand-navy);color:#fff;opacity:.42;cursor:not-allowed; }
.profile-save.is-ready { opacity:1;cursor:pointer;box-shadow:0 10px 26px rgba(16,42,67,.16); }
.profile-save svg { width:14px;height:14px; }
[dir="rtl"] .profile-save svg { transform:scaleX(-1); }

:root[data-theme="dark"] .profile-onboarding-card { background:color-mix(in srgb,var(--surface-elevated) 96%,#000 2%); }

/* Stage → year → subject navigator */
.quick-finder-v037 {
  grid-template-columns:minmax(220px,.52fr) minmax(0,1.85fr);
  align-items:stretch;
}
.quick-filter-panel-v037 {
  grid-template-columns:minmax(0,1.45fr) minmax(0,.95fr) 128px;
}
.education-stage-group {
  min-width:0;padding:.7rem;border:1px solid var(--border-subtle);border-radius:17px;background:var(--surface-card);
}
.education-stage-group.needs-choice {
  border-color:color-mix(in srgb,var(--brand-gold) 55%,var(--border-subtle));
  box-shadow:0 0 0 4px color-mix(in srgb,var(--brand-gold) 7%,transparent),0 12px 34px rgba(16,42,67,.06);
}
.education-stage-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:.35rem;margin-top:.5rem; }
.education-stage-choice {
  min-height:54px;display:grid;grid-template-columns:27px 1fr;gap:.33rem;align-items:center;padding:.38rem;
  border:1px solid var(--border-subtle);border-radius:11px;background:var(--surface-muted);color:var(--text-primary);text-align:start;cursor:pointer;
  transition:transform .15s,border-color .15s,background .15s,box-shadow .15s;
}
.education-stage-choice:hover { transform:translateY(-2px);border-color:var(--border-strong); }
.education-stage-choice > span { width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:var(--surface-card);color:var(--brand-navy); }
.education-stage-choice svg { width:14px;height:14px; }
.education-stage-choice strong { font-size:.56rem; }
.education-stage-choice.is-active { background:var(--brand-navy);color:#fff;border-color:var(--brand-navy);box-shadow:0 8px 20px rgba(16,42,67,.15); }
.education-stage-choice.is-active > span { background:rgba(255,255,255,.12);color:var(--brand-gold-soft); }

.year-reveal { max-height:0;overflow:hidden;opacity:0;transition:max-height .22s var(--ease-out),opacity .18s,margin .18s; }
.year-reveal.is-visible { max-height:110px;opacity:1;margin-top:.55rem; }
.year-reveal-label { display:block;margin-bottom:.28rem;color:var(--text-tertiary);font-size:.49rem;font-weight:800; }
.year-choice-rail { display:flex;gap:.3rem;overflow-x:auto;scrollbar-width:none;padding-bottom:.08rem; }
.year-choice-rail::-webkit-scrollbar{display:none}
.year-choice {
  flex:0 0 auto;min-width:94px;min-height:44px;display:grid;gap:.02rem;align-content:center;padding:.32rem .45rem;
  border:1px solid var(--border-subtle);border-radius:10px;background:var(--surface-muted);color:var(--text-primary);text-align:start;cursor:pointer;
}
.year-choice strong { font-size:.52rem; }
.year-choice small { color:var(--text-tertiary);font-family:var(--font-latin);font-size:.46rem; }
.year-choice.is-active { border-color:color-mix(in srgb,var(--brand-gold) 55%,var(--brand-navy));background:var(--surface-soft-gold); }
.year-choice.is-active small { color:#8b5a08; }
.quick-finder-v037 .subject-choice-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }

.home-profile-chip {
  width:fit-content;max-width:100%;display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:.45rem;align-items:center;margin-top:1rem;padding:.42rem .5rem;
  border:1px solid var(--border-subtle);border-radius:12px;background:var(--surface-card);color:var(--text-primary);text-align:start;cursor:pointer;
  box-shadow:0 8px 24px rgba(16,42,67,.045);
}
.home-profile-chip > svg { width:16px;height:16px;color:var(--brand-gold);justify-self:center; }
.home-profile-chip > span { min-width:0;display:grid;gap:.02rem; }
.home-profile-chip small { color:var(--text-tertiary);font-size:.47rem; }
.home-profile-chip strong { font-size:.6rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.home-profile-chip em { font-style:normal;color:var(--brand-navy);font-size:.5rem;font-weight:900; }
:root[data-theme="dark"] .home-profile-chip em { color:var(--brand-gold-soft); }

/* DOROUS differentiated tools */
.smart-tools-section {
  padding-block:3rem;
  border-block:1px solid var(--border-subtle);
  background:linear-gradient(180deg,color-mix(in srgb,var(--surface-muted) 48%,transparent),transparent);
}
.smart-tools-title { margin-bottom:1rem; }
.smart-tools-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:.7rem; }
.smart-tool-card {
  position:relative;min-height:200px;display:flex;flex-direction:column;align-items:flex-start;padding:1rem;
  border:1px solid var(--border-subtle);border-radius:18px;background:var(--surface-card);color:var(--text-primary);text-align:start;
  box-shadow:0 10px 30px rgba(16,42,67,.045);cursor:pointer;overflow:hidden;transition:transform .18s,box-shadow .18s,border-color .18s;
}
.smart-tool-card::after {
  content:"";position:absolute;width:110px;height:110px;border-radius:50%;inset-inline-end:-55px;inset-block-end:-62px;background:color-mix(in srgb,var(--brand-gold) 8%,transparent);
}
.smart-tool-card:hover { transform:translateY(-4px);border-color:var(--border-strong);box-shadow:0 18px 46px rgba(16,42,67,.09); }
.smart-tool-card > span {
  width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--surface-soft-gold);color:var(--brand-navy);
}
.smart-tool-card > span svg { width:19px;height:19px; }
.smart-tool-card > small { margin-top:.7rem;color:var(--brand-gold);font-size:.52rem;font-weight:900; }
.smart-tool-card h3 { margin-top:.22rem;font-size:.88rem; }
.smart-tool-card p { margin-top:.45rem;color:var(--text-secondary);font-size:.64rem;line-height:1.6; }
.smart-tool-card > strong { margin-top:auto;padding-top:.8rem;color:var(--text-primary);font-size:.56rem; }
.smart-tool-card.is-live { border-color:color-mix(in srgb,var(--brand-gold) 26%,var(--border-subtle)); }
:root[data-theme="dark"] .smart-tool-card > span { color:var(--brand-gold-soft); }

/* Local-first teacher discovery */
.teacher-section-heading { align-items:center; }
.teacher-location-control {
  min-width:145px;min-height:42px;display:grid;grid-template-columns:24px 1fr auto;gap:.4rem;align-items:center;padding:.38rem .48rem;
  border:1px solid var(--border-subtle);border-radius:12px;background:var(--surface-card);color:var(--text-primary);cursor:pointer;
}
.teacher-location-control > svg { width:15px;height:15px;color:var(--brand-gold); }
.teacher-location-control span { font-size:.59rem;font-weight:850;text-align:start; }
.teacher-location-control small { color:var(--text-tertiary);font-size:.48rem; }
.teacher-discovery-toolbar {
  display:flex;align-items:center;gap:.38rem;margin-bottom:.8rem;overflow-x:auto;scrollbar-width:none;
}
.teacher-discovery-toolbar::-webkit-scrollbar{display:none}
.teacher-discovery-toolbar button {
  flex:0 0 auto;min-height:34px;display:inline-flex;align-items:center;gap:.3rem;padding:.34rem .52rem;border:1px solid var(--border-subtle);
  border-radius:999px;background:var(--surface-card);color:var(--text-secondary);font-size:.55rem;font-weight:850;cursor:pointer;
}
.teacher-discovery-toolbar button svg { width:13px;height:13px; }
.teacher-discovery-toolbar button.is-active { background:var(--brand-navy);border-color:var(--brand-navy);color:#fff; }
.teacher-discovery-toolbar > span {
  margin-inline-start:auto;min-width:max-content;display:inline-flex;align-items:center;gap:.3rem;color:var(--text-tertiary);font-size:.48rem;
}
.teacher-discovery-toolbar > span svg { width:13px;height:13px;color:#13795b; }

.teacher-portrait { position:relative; }
.teacher-local-badge {
  position:absolute;inset-inline-start:.6rem;inset-block-end:.6rem;z-index:3;display:inline-flex;align-items:center;gap:.25rem;padding:.3rem .45rem;
  border-radius:999px;background:rgba(16,42,67,.90);color:#fff;font-size:.48rem;font-weight:900;backdrop-filter:blur(8px);
}
.teacher-local-badge svg { width:11px;height:11px;color:var(--brand-gold-soft); }
.teacher-card.is-local-teacher { border-color:color-mix(in srgb,var(--brand-gold) 30%,var(--border-subtle));box-shadow:0 15px 44px rgba(16,42,67,.075); }
.teacher-ranking-note {
  display:flex;align-items:flex-start;gap:.28rem;margin-top:.45rem;padding:.4rem;border-radius:9px;background:var(--surface-muted);color:var(--text-tertiary);
}
.teacher-ranking-note svg { flex:0 0 auto;width:12px;height:12px;color:var(--brand-gold); }
.teacher-ranking-note span { font-size:.46rem;line-height:1.45; }

.personalized-empty {
  min-height:150px;display:grid;grid-template-columns:42px 1fr auto;gap:.7rem;align-items:center;padding:1rem;border:1px dashed var(--border-strong);
  border-radius:17px;background:var(--surface-muted);
}
.personalized-empty > svg { width:20px;height:20px;color:var(--brand-gold);justify-self:center; }
.personalized-empty div { display:grid;gap:.18rem; }
.personalized-empty strong { font-size:.7rem; }
.personalized-empty p { font-size:.59rem;line-height:1.55; }
.personalized-empty a { min-height:36px;display:flex;align-items:center;padding:.4rem .55rem;border-radius:10px;background:var(--brand-navy);color:#fff;font-size:.54rem;font-weight:850; }

/* v0.3.7 responsive */
@media (max-width: 1380px) {
  .app-header-v037 .header-main-row { grid-template-columns:108px auto minmax(220px,1fr) auto; gap:.5rem; }
  .app-header-v037 .header-nav-link { padding-inline:.34rem !important; }
  .app-header-v037 .header-nav-link > span:nth-child(2) { font-size:.64rem; }
  .app-header-v037 .header-search { max-width:360px; }
  .cycle-copy small { display:none; }
  .language-cycle { min-width:68px; }
  .theme-cycle { min-width:76px; }
}
@media (max-width: 1120px) {
  .app-header-v037 .header-main-row { grid-template-columns:1fr auto; }
  .app-header-v037 .header-nav,.app-header-v037 .header-search { display:none; }
  .app-header-v037 .search-tool-mobile,.app-header-v037 .mobile-menu-button { display:grid; }
  .app-header-v037 .brand-wordmark { width:76px; }
  .app-header-v037 .header-tools .cycle-control { width:40px;min-width:40px;padding:0;grid-template-columns:1fr; }
  .app-header-v037 .header-tools .cycle-copy { display:none; }
  .quick-finder-v037 { grid-template-columns:1fr; }
  .quick-filter-panel-v037 { grid-template-columns:1.25fr .85fr; }
  .quick-filter-panel-v037 .quick-show-button { grid-column:1 / -1;min-height:56px;flex-direction:row;display:flex; }
  .smart-tools-grid { grid-template-columns:1fr 1fr; }
  .profile-onboarding-body { grid-template-columns:1fr; }
  .profile-onboarding-card { max-height:calc(100vh - 24px); }
}
@media (max-width: 720px) {
  .app-header-v037 .header-tools .cycle-control { display:none; }
  .sponsored-ad-inner { grid-template-columns:auto 25px minmax(0,1fr) auto;gap:.38rem; }
  .sponsored-ad-inner p small { display:none; }
  .sponsored-label strong { display:none; }
  .sponsored-label { width:25px;padding:0;justify-content:center; }
  .sponsored-cta { font-size:0;width:29px;padding:0;justify-content:center; }
  .sponsored-cta span { font-size:.85rem; }
  .education-stage-grid { grid-template-columns:1fr 1fr; }
  .quick-filter-panel-v037 { grid-template-columns:1fr; }
  .quick-filter-panel-v037 .quick-show-button { grid-column:auto; }
  .profile-onboarding { inset-block-end:8px;padding-inline:.5rem; }
  .profile-onboarding-card { width:calc(100vw - 1rem);border-radius:20px; }
  .profile-onboarding-head { grid-template-columns:40px 1fr 32px;padding:.8rem;gap:.6rem; }
  .profile-onboarding-icon { width:39px;height:39px;border-radius:12px; }
  .profile-onboarding-head h2 { font-size:.88rem; }
  .profile-onboarding-body { padding:.65rem;gap:.55rem; }
  .profile-step { padding:.65rem; }
  .profile-stage-grid { grid-template-columns:1fr 1fr; }
  .profile-wilaya-results { grid-template-columns:1fr 1fr;max-height:135px; }
  .profile-onboarding-footer { grid-template-columns:1fr;padding:.65rem;gap:.55rem; }
  .profile-actions { display:grid;grid-template-columns:1fr 1fr; }
  .profile-later,.profile-save { width:100%;justify-content:center; }
  .smart-tools-grid { grid-template-columns:1fr; }
  .smart-tool-card { min-height:165px; }
  .teacher-section-heading { grid-template-columns:1fr; }
  .teacher-location-control { width:100%; }
  .teacher-discovery-toolbar > span { display:none; }
  .personalized-empty { grid-template-columns:34px 1fr; }
  .personalized-empty a { grid-column:1 / -1;justify-content:center; }
}
@media (max-width: 480px) {
  .app-header-v037 .brand-wordmark { width:70px; }
  .app-header-v037 .brand-mark-shell { width:29px;height:32px; }
  .app-header-v037 .brand-mark-image { width:23px;max-height:27px; }
  .app-header-v037 .header-main-row { min-height:62px; }
  .mobile-utilities { grid-template-columns:1fr 1fr 1fr; }
  .mobile-utilities .cycle-control { width:100%;min-width:0; }
  .profile-year-rail button { min-width:84px; }
  .year-choice { min-width:88px; }
  .quick-finder-intro h2 { font-size:1.18rem; }
}


/* ===== v0.3.8 release overrides ===== */
/* Curriculum precision + DOROUS Flex monetization */

.quick-finder-v038 {
  grid-template-columns:minmax(225px,.48fr) minmax(0,1.9fr);
  align-items:stretch;
}
.quick-filter-panel-v038 {
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr);
  grid-auto-rows:auto;
  gap:.6rem;
}
.quick-filter-panel-v038 .education-stage-group {
  grid-column:1 / -1;
}
.quick-filter-panel-v038 .subject-picker,
.quick-filter-panel-v038 .term-picker,
.quick-filter-panel-v038 .unit-picker {
  min-height:150px;
}
.quick-filter-panel-v038 .quick-show-button {
  grid-column:1 / -1;
  min-height:58px;
  display:grid;
  grid-template-columns:22px auto minmax(0,1fr);
  justify-content:center;
  align-items:center;
  gap:.5rem;
  border-radius:14px;
}
.quick-filter-panel-v038 .quick-show-button svg {
  width:16px;height:16px;
}
.quick-filter-panel-v038 .quick-show-button small {
  max-width:none;
  text-align:start;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.term-picker,.unit-picker {
  border:1px solid var(--border-subtle);
  background:var(--surface-card);
}
.term-choice-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.36rem;
  margin-top:.5rem;
}
.term-choice {
  min-height:58px;
  display:grid;
  grid-template-columns:28px 1fr;
  align-items:center;
  gap:.38rem;
  padding:.42rem;
  border:1px solid var(--border-subtle);
  border-radius:12px;
  background:var(--surface-muted);
  color:var(--text-primary);
  text-align:start;
  cursor:pointer;
  transition:transform .15s,border-color .15s,background .15s,box-shadow .15s;
}
.term-choice:disabled,.unit-choice:disabled { cursor:not-allowed;opacity:.62; }
.term-choice:not(:disabled):hover,.unit-choice:not(:disabled):hover {
  transform:translateY(-2px);
  border-color:var(--border-strong);
}
.term-choice > span {
  width:28px;height:28px;display:grid;place-items:center;border-radius:9px;
  background:var(--surface-card);color:var(--brand-navy);
  font-family:var(--font-latin);font-size:.54rem;font-weight:900;
}
.term-choice strong { font-size:.56rem;line-height:1.3; }
.term-choice.is-active {
  border-color:color-mix(in srgb,var(--brand-gold) 58%,var(--border-strong));
  background:var(--surface-soft-gold);
  box-shadow:0 8px 22px rgba(16,42,67,.07);
}
.term-choice.is-active > span {
  background:var(--brand-gold);color:#392500;
}
.unit-choice-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:.32rem;
  margin-top:.5rem;
}
.unit-choice {
  min-height:45px;
  display:grid;
  grid-template-columns:30px 1fr;
  align-items:center;
  gap:.42rem;
  padding:.35rem .48rem;
  border:1px solid var(--border-subtle);
  border-radius:11px;
  background:var(--surface-muted);
  color:var(--text-primary);
  text-align:start;
  cursor:pointer;
  transition:transform .15s,border-color .15s,background .15s,box-shadow .15s;
}
.unit-choice > span {
  width:28px;height:28px;display:grid;place-items:center;border-radius:8px;
  background:var(--surface-card);color:var(--text-tertiary);
  font-family:var(--font-latin);font-size:.49rem;font-weight:900;
}
.unit-choice strong { font-size:.56rem;line-height:1.35; }
.unit-choice.is-active {
  border-color:color-mix(in srgb,#2f8f73 44%,var(--border-strong));
  background:color-mix(in srgb,#e8f7f1 72%,var(--surface-card));
  box-shadow:0 7px 20px rgba(19,121,91,.08);
}
.unit-choice.is-active > span {
  background:#13795b;color:#fff;
}
:root[data-theme="dark"] .unit-choice.is-active {
  background:color-mix(in srgb,#153f34 80%,var(--surface-card));
}
.video-kind-tag {
  padding:.24rem .38rem;
  border-radius:8px;
  background:var(--surface-soft-gold);
  color:#8b5a08;
  font-size:.49rem;
  font-weight:900;
}

/* Flex subscription model */
.flex-access-section {
  padding-block:3.6rem;
  border-block:1px solid var(--border-subtle);
  background:
    radial-gradient(circle at 8% 20%,color-mix(in srgb,var(--brand-gold) 8%,transparent),transparent 260px),
    linear-gradient(180deg,color-mix(in srgb,var(--surface-muted) 34%,transparent),transparent);
}
.flex-access-shell {
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);
  gap:1rem;
  align-items:stretch;
}
.flex-access-copy {
  position:relative;
  padding:1.35rem 1.4rem;
  border:1px solid var(--border-subtle);
  border-radius:22px;
  background:var(--surface-card);
  box-shadow:0 14px 40px rgba(16,42,67,.055);
  overflow:hidden;
}
.flex-access-copy::after {
  content:"";
  position:absolute;
  width:180px;height:180px;
  inset-inline-end:-100px;inset-block-end:-115px;
  border-radius:50%;
  background:color-mix(in srgb,var(--brand-gold) 10%,transparent);
}
.flex-kicker {
  position:relative;z-index:1;
  display:inline-flex;align-items:center;gap:.38rem;
  color:var(--brand-gold);
  font-family:var(--font-latin);
  font-size:.62rem;font-weight:900;
}
.flex-kicker svg { width:14px;height:14px; }
.flex-kicker em {
  margin-inline-start:.25rem;
  padding:.23rem .38rem;
  border-radius:999px;
  background:var(--surface-soft-gold);
  color:#8b5a08;
  font-family:var(--font-body);
  font-style:normal;
  font-size:.48rem;
}
.flex-access-copy h2 {
  position:relative;z-index:1;
  max-width:760px;
  margin-top:.55rem;
  font-size:clamp(1.35rem,3vw,2.2rem);
}
.flex-access-copy p {
  position:relative;z-index:1;
  max-width:760px;
  margin-top:.65rem;
  color:var(--text-secondary);
  font-size:.72rem;
  line-height:1.75;
}
.flex-content-types {
  position:relative;z-index:1;
  display:flex;flex-wrap:wrap;gap:.45rem;
  margin-top:1rem;
}
.flex-content-types > span {
  min-height:40px;
  display:inline-flex;align-items:center;gap:.35rem;
  padding:.42rem .6rem;
  border:1px solid var(--border-subtle);
  border-radius:11px;
  background:var(--surface-muted);
}
.flex-content-types svg { width:15px;height:15px;color:var(--brand-navy); }
.flex-content-types strong { font-size:.55rem; }

.flex-balance-card {
  position:relative;
  display:flex;
  flex-direction:column;
  padding:1.15rem;
  border:1px solid color-mix(in srgb,var(--brand-gold) 32%,var(--border-subtle));
  border-radius:22px;
  background:linear-gradient(150deg,var(--surface-soft-gold),var(--surface-card) 62%);
  box-shadow:0 18px 48px rgba(16,42,67,.08);
  overflow:hidden;
}
.flex-balance-label {
  color:#8b5a08;
  font-size:.56rem;
  font-weight:900;
}
.flex-hour-visual {
  display:flex;align-items:baseline;gap:.4rem;
  margin-top:.55rem;
}
.flex-hour-visual > span {
  font-family:var(--font-latin);
  font-size:2.5rem;
  line-height:1;
  font-weight:900;
  color:var(--brand-navy);
}
.flex-hour-visual small {
  color:var(--text-secondary);
  font-size:.55rem;
  font-weight:800;
}
.flex-balance-card ul {
  display:grid;gap:.42rem;
  margin:.85rem 0 0;
  padding:0;
  list-style:none;
}
.flex-balance-card li {
  display:flex;align-items:flex-start;gap:.35rem;
  color:var(--text-secondary);
  font-size:.56rem;
  line-height:1.5;
}
.flex-balance-card li svg { width:14px;height:14px;flex:0 0 auto;color:#13795b; }
.flex-balance-card > button {
  min-height:42px;
  display:flex;align-items:center;justify-content:center;gap:.4rem;
  margin-top:auto;
  padding:.5rem .65rem;
  border:0;
  border-radius:11px;
  background:var(--brand-navy);
  color:#fff;
  font-size:.58rem;
  font-weight:900;
  cursor:pointer;
}
.flex-balance-card > button svg { width:14px;height:14px; }
[dir="rtl"] .flex-balance-card > button svg { transform:scaleX(-1); }

.flex-info-strip {
  margin-top:.7rem;
  display:grid;
  grid-template-columns:1fr 34px;
  align-items:start;
  gap:.7rem;
  padding:.8rem .9rem;
  border:1px solid var(--border-subtle);
  border-radius:15px;
  background:var(--surface-card);
  box-shadow:0 10px 30px rgba(16,42,67,.04);
}
.flex-info-strip[hidden] { display:none; }
.flex-info-strip strong { font-size:.62rem; }
.flex-info-strip p { margin-top:.2rem;color:var(--text-secondary);font-size:.58rem;line-height:1.6; }
.flex-info-strip button {
  width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--border-subtle);
  border-radius:9px;background:var(--surface-muted);color:var(--text-secondary);cursor:pointer;
}
.flex-info-strip button svg { width:14px;height:14px; }

/* Watch paywall simplified to one decision */
.flex-subscription-prompt .subscription-actions {
  max-width:420px;
  margin-inline:auto;
}
.flex-checkout-card {
  position:relative;
  max-width:430px;
  margin:.9rem auto 0;
  padding:.85rem;
  border:1px solid rgba(255,255,255,.15);
  border-radius:15px;
  background:rgba(255,255,255,.08);
  text-align:start;
}
.flex-checkout-recommended {
  position:absolute;
  inset-inline-end:.7rem;
  inset-block-start:.7rem;
  padding:.25rem .38rem;
  border-radius:999px;
  background:var(--brand-gold);
  color:#392500;
  font-size:.48rem;
  font-weight:900;
}
.flex-checkout-card > div {
  display:grid;gap:.12rem;
  padding-inline-end:80px;
}
.flex-checkout-card > div strong { color:#fff;font-size:.78rem; }
.flex-checkout-card > div small { color:#c3d1dc;font-size:.55rem; }
.flex-checkout-card ul {
  display:grid;gap:.35rem;
  margin:.7rem 0 0;
  padding:0;
  list-style:none;
}
.flex-checkout-card li {
  display:flex;align-items:flex-start;gap:.32rem;
  color:#cbd8e1;
  font-size:.54rem;
  line-height:1.45;
}
.flex-checkout-card li svg { width:13px;height:13px;color:#8fe2c4;flex:0 0 auto; }
.flex-checkout-card > button {
  width:100%;
  min-height:40px;
  margin-top:.75rem;
  border:0;
  border-radius:10px;
  background:var(--brand-gold);
  color:#392500;
  font-size:.6rem;
  font-weight:900;
  cursor:pointer;
}
.flex-topup-link {
  margin-top:.55rem;
  border:0;
  background:transparent;
  color:#b6c8d6;
  font-size:.54rem;
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
}
.flex-inline-plan > div {
  grid-template-columns:1fr;
}
.flex-inline-plan small {
  color:#9fb4c4;
  font-size:.49rem;
}

/* Dark mode tune */
:root[data-theme="dark"] .term-choice.is-active {
  background:color-mix(in srgb,#4a3516 72%,var(--surface-card));
}
:root[data-theme="dark"] .flex-access-section {
  background:
    radial-gradient(circle at 8% 20%,rgba(242,169,59,.055),transparent 260px),
    linear-gradient(180deg,rgba(255,255,255,.018),transparent);
}
:root[data-theme="dark"] .flex-balance-card {
  background:linear-gradient(150deg,color-mix(in srgb,#493417 58%,var(--surface-card)),var(--surface-card) 72%);
}
:root[data-theme="dark"] .flex-hour-visual > span,
:root[data-theme="dark"] .flex-content-types svg {
  color:var(--brand-gold-soft);
}

@media (max-width:980px) {
  .quick-finder-v038 { grid-template-columns:1fr; }
  .quick-filter-panel-v038 { grid-template-columns:1fr 1fr; }
  .flex-access-shell { grid-template-columns:1fr; }
}
@media (max-width:680px) {
  .quick-filter-panel-v038 { grid-template-columns:1fr; }
  .quick-filter-panel-v038 .education-stage-group,
  .quick-filter-panel-v038 .quick-show-button { grid-column:auto; }
  .term-choice-grid { grid-template-columns:1fr 1fr 1fr; }
  .quick-filter-panel-v038 .quick-show-button {
    grid-template-columns:18px 1fr;
    text-align:start;
  }
  .quick-filter-panel-v038 .quick-show-button small {
    grid-column:1 / -1;
    white-space:normal;
  }
  .flex-access-section { padding-block:2.5rem; }
  .flex-content-types { display:grid;grid-template-columns:1fr; }
}
@media (max-width:430px) {
  .education-stage-grid { grid-template-columns:1fr 1fr; }
  .term-choice-grid { grid-template-columns:1fr; }
  .unit-choice-grid { grid-template-columns:1fr; }
  .flex-hour-visual > span { font-size:2.15rem; }
}


/* =========================================================
   DOROUS DZ v0.3.9 — clarity, public preview, assessment
   ========================================================= */
.language-control-wrap{position:relative;min-width:118px}.language-dropdown-trigger{min-height:42px;width:100%;display:grid;grid-template-columns:30px 1fr 18px;gap:.48rem;align-items:center;padding:.42rem .55rem;border:1px solid var(--border-subtle);border-radius:13px;background:var(--surface-card);color:var(--text-primary);cursor:pointer;box-shadow:0 5px 16px rgba(16,42,67,.035);transition:.18s}.language-dropdown-trigger:hover,.language-dropdown-trigger.is-open{border-color:color-mix(in srgb,var(--brand-gold) 45%,var(--border-strong));transform:translateY(-1px);box-shadow:0 10px 24px rgba(16,42,67,.07)}.language-trigger-flag,.language-flag-shell{width:28px;height:20px;display:grid;place-items:center;border-radius:5px;overflow:hidden;border:1px solid rgba(16,42,67,.12);box-shadow:0 2px 6px rgba(16,42,67,.08);background:#fff}.locale-flag{width:100%;height:100%;display:block}.language-trigger-copy{display:grid;text-align:start;line-height:1.15}.language-trigger-copy strong{font-size:.76rem}.language-trigger-copy small{font-size:.56rem;color:var(--text-tertiary);font-family:var(--font-latin)}.language-trigger-chevron{color:var(--text-tertiary);font-size:.9rem;transition:transform .16s}.language-dropdown-trigger.is-open .language-trigger-chevron{transform:rotate(180deg)}.language-dropdown-menu{inset-inline-end:0;inset-block-start:calc(100% + .55rem);width:238px;z-index:180}.language-menu-item{grid-template-columns:34px 1fr 22px;min-height:58px}.language-menu-item .brand-menu-copy small{font-size:.65rem}.language-control-wrap.is-compact{width:100%}.language-control-wrap.is-compact .language-dropdown-menu{position:static;width:100%;margin-top:.4rem;box-shadow:none}

.sponsored-strip{background:linear-gradient(90deg,color-mix(in srgb,var(--surface-soft-gold) 54%,var(--surface-page)),color-mix(in srgb,var(--surface-soft-navy) 46%,var(--surface-page)));border-block:1px solid color-mix(in srgb,var(--brand-gold) 15%,var(--border-subtle))}.sponsored-strip-shell{min-height:62px}.sponsored-ad-visual{min-height:62px;display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:.8rem;align-items:center;padding:.35rem .2rem;text-decoration:none;color:inherit}.sponsored-media{position:relative;width:92px;height:50px;border-radius:11px;overflow:hidden;background:var(--surface-muted);box-shadow:0 6px 18px rgba(16,42,67,.09)}.sponsored-media img{width:100%;height:100%;object-fit:cover;display:block}.sponsored-media>span{position:absolute;inset-inline-start:5px;inset-block-start:5px;padding:.16rem .3rem;border-radius:6px;background:rgba(10,25,38,.78);color:#fff;font-size:.5rem;font-weight:900;backdrop-filter:blur(5px)}.sponsored-copy{min-width:0;display:grid;gap:.12rem}.sponsored-copy small{color:var(--text-tertiary);font-size:.61rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sponsored-copy strong{font-size:.79rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sponsored-ad-visual .sponsored-cta{display:inline-flex;align-items:center;gap:.3rem;min-height:34px;padding:.35rem .55rem;border:1px solid var(--border-subtle);border-radius:10px;background:var(--surface-elevated);font-size:.66rem;font-weight:900}.sponsored-ad-visual .sponsored-cta b{font-size:.85rem}[dir="rtl"] .sponsored-ad-visual .sponsored-cta b{transform:scaleX(-1)}.sponsored-progress{height:2px}

.quick-finder-v039{padding:0;border:0;background:transparent;box-shadow:none;display:block}.finder-header-v039{margin-bottom:.9rem}.finder-header-v039>div>span{display:inline-flex;align-items:center;gap:.35rem;color:var(--brand-gold);font-size:.67rem;font-weight:900}.finder-header-v039 svg{width:15px;height:15px}.finder-header-v039 h2{margin-top:.2rem;font-size:clamp(1.25rem,2.6vw,1.8rem)}.finder-header-v039 p{margin-top:.35rem;max-width:760px;font-size:.78rem;line-height:1.65}.finder-stepper{display:grid;grid-template-columns:repeat(4,1fr);gap:.45rem;margin-bottom:.6rem}.finder-step{min-height:58px;display:grid;grid-template-columns:28px 1fr;gap:.55rem;align-items:center;padding:.48rem .55rem;border:1px solid var(--border-subtle);border-radius:13px;background:var(--surface-card);text-align:start;color:var(--text-primary);cursor:pointer}.finder-step>span{width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:var(--surface-muted);color:var(--text-tertiary);font-family:var(--font-latin);font-size:.66rem;font-weight:900}.finder-step>span svg{width:14px;height:14px}.finder-step div{min-width:0;display:grid;gap:.05rem}.finder-step small{font-size:.55rem;color:var(--text-tertiary)}.finder-step strong{font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.finder-step.is-current{border-color:color-mix(in srgb,var(--brand-gold) 44%,var(--border-strong));background:var(--surface-soft-gold);box-shadow:0 8px 24px rgba(242,169,59,.09)}.finder-step.is-current>span{background:var(--brand-gold);color:#352100}.finder-step.is-done>span{background:var(--brand-navy);color:#fff}.finder-step.is-locked{opacity:.55;cursor:default}.finder-focus-card{padding:1rem;border:1px solid var(--border-subtle);border-radius:20px;background:var(--surface-card);box-shadow:0 14px 42px rgba(16,42,67,.055)}.finder-focus-head{display:flex;align-items:center;gap:.7rem;margin-bottom:.8rem}.finder-focus-head>span{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--brand-navy);color:#fff;font-family:var(--font-latin);font-size:.72rem;font-weight:900}.finder-focus-head>div{display:grid;gap:.1rem}.finder-focus-head strong{font-size:.9rem}.finder-focus-head small{font-size:.64rem;color:var(--text-tertiary)}.finder-stage-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.55rem}.finder-stage-card{min-height:78px;display:grid;grid-template-columns:35px 1fr;align-items:center;gap:.5rem;padding:.65rem;border:1px solid var(--border-subtle);border-radius:14px;background:var(--surface-elevated);color:var(--text-primary);cursor:pointer}.finder-stage-card>span{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:var(--surface-muted);color:var(--brand-navy)}.finder-stage-card svg{width:18px;height:18px}.finder-stage-card strong{font-size:.77rem}.finder-stage-card.is-active{border-color:var(--brand-gold);background:var(--surface-soft-gold)}.finder-year-rail{display:flex;gap:.45rem;overflow:auto;margin-top:.7rem;padding-bottom:.1rem;scrollbar-width:none}.finder-year{min-width:125px;display:grid;gap:.08rem;padding:.55rem .65rem;border:1px solid var(--border-subtle);border-radius:12px;background:var(--surface-elevated);color:var(--text-primary);text-align:start;cursor:pointer}.finder-year strong{font-size:.72rem}.finder-year small{font-size:.58rem;color:var(--text-tertiary)}.finder-year.is-active{background:var(--brand-navy);color:#fff}.finder-year.is-active small{color:#cbd7e0}.finder-subject-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:.5rem}.finder-subject{min-height:76px;display:grid;place-items:center;gap:.3rem;padding:.55rem;border:1px solid var(--border-subtle);border-radius:14px;background:var(--surface-elevated);color:var(--text-primary);cursor:pointer}.finder-subject>span{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:var(--surface-soft-navy);color:var(--brand-navy)}.finder-subject svg{width:18px;height:18px}.finder-subject strong{font-size:.7rem}.finder-subject.is-active{border-color:var(--brand-gold);background:var(--surface-soft-gold)}.finder-term-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.55rem}.finder-term{min-height:72px;display:flex;align-items:center;gap:.65rem;padding:.65rem;border:1px solid var(--border-subtle);border-radius:14px;background:var(--surface-elevated);color:var(--text-primary);cursor:pointer}.finder-term span{font-family:var(--font-latin);font-size:1.15rem;color:var(--brand-gold);font-weight:900}.finder-term strong{font-size:.78rem}.finder-term.is-active{border-color:var(--brand-gold);background:var(--surface-soft-gold)}.finder-unit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}.finder-unit{min-height:76px;display:grid;grid-template-columns:30px 1fr;column-gap:.55rem;align-items:center;padding:.6rem;border:1px solid var(--border-subtle);border-radius:14px;background:var(--surface-elevated);color:var(--text-primary);text-align:start;cursor:pointer}.finder-unit>span{grid-row:1/3;width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:var(--surface-muted);color:var(--brand-navy)}.finder-unit svg{width:16px;height:16px}.finder-unit strong{font-size:.72rem}.finder-unit small{font-size:.56rem;color:var(--text-tertiary)}.finder-unit.is-active{border-color:var(--brand-gold);background:var(--surface-soft-gold)}.finder-result-button{width:100%;min-height:56px;margin-top:.7rem;display:grid;grid-template-columns:30px 1fr 22px;gap:.6rem;align-items:center;padding:.55rem .7rem;border:0;border-radius:14px;background:var(--brand-navy);color:#fff;text-align:start;cursor:pointer}.finder-result-button>svg{width:18px;height:18px}.finder-result-button span{display:grid;gap:.05rem}.finder-result-button strong{font-size:.76rem}.finder-result-button small{font-size:.59rem;color:#c7d5df}

.public-preview-section{padding-block:3rem;background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--surface-muted) 48%,transparent),transparent)}.public-preview-rail{display:flex;gap:.8rem;overflow:auto;scrollbar-width:none;padding:.1rem 0 1rem}.public-preview-card{flex:0 0 300px;border:1px solid var(--border-subtle);border-radius:17px;background:var(--surface-card);overflow:hidden;box-shadow:0 10px 30px rgba(16,42,67,.05)}.public-preview-thumb{position:relative;display:block;aspect-ratio:16/9;background:var(--brand-navy);overflow:hidden}.public-preview-thumb img{width:100%;height:100%;object-fit:cover}.public-preview-thumb:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(3,16,28,.3),transparent 55%)}.public-preview-play{position:absolute;z-index:2;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:45px;height:45px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.94);color:var(--brand-navy);box-shadow:0 10px 26px rgba(0,0,0,.22)}.public-preview-play svg{width:19px;height:19px}.public-preview-badge{position:absolute;z-index:2;inset-inline-start:.55rem;inset-block-start:.55rem;padding:.24rem .4rem;border-radius:7px;background:rgba(5,21,34,.78);color:#fff;font-size:.55rem;font-weight:900}.public-preview-body{padding:.75rem}.public-preview-body>small{color:var(--brand-gold);font-size:.58rem;font-weight:900}.public-preview-body h3{margin-top:.2rem;font-size:.84rem;line-height:1.45;min-height:2.45em}.public-preview-teacher{display:flex;align-items:center;gap:.45rem;margin-top:.65rem}.public-preview-teacher>span{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:var(--brand-navy);color:#fff;font-weight:900}.public-preview-teacher>div{display:grid;min-width:0}.public-preview-teacher strong{font-size:.63rem}.public-preview-teacher small{font-size:.53rem;color:var(--text-tertiary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.public-teacher-rail{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;margin-top:1rem}.public-teacher-card{display:grid;grid-template-columns:120px 1fr;min-height:150px;border:1px solid var(--border-subtle);border-radius:17px;background:var(--surface-card);overflow:hidden}.public-teacher-photo{position:relative;display:block;overflow:hidden;background:var(--surface-muted)}.public-teacher-photo img{width:100%;height:100%;object-fit:cover}.public-teacher-photo>span{position:absolute;inset-inline:5px;inset-block-end:5px;padding:.2rem .3rem;border-radius:6px;background:rgba(5,21,34,.75);color:#fff;font-size:.48rem}.public-teacher-card>div{padding:.75rem}.public-teacher-card>div>small{color:var(--brand-gold);font-size:.56rem;font-weight:900}.public-teacher-card h3{margin-top:.15rem;font-size:.85rem}.public-teacher-card p{margin-top:.35rem;font-size:.59rem;line-height:1.5}.public-teacher-card>div>a{display:inline-flex;align-items:center;gap:.25rem;margin-top:.55rem;font-size:.58rem;font-weight:900}.public-teacher-card>div>a svg{width:13px;height:13px}.public-watch-page{padding-block:1.2rem 5rem}.public-watch-breadcrumb{display:flex;gap:.4rem;align-items:center;color:var(--text-tertiary);font-size:.66rem;margin-bottom:.8rem}.public-watch-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:1rem;align-items:start}.public-embed-shell{aspect-ratio:16/9;border-radius:18px;overflow:hidden;background:#000;box-shadow:0 18px 50px rgba(16,42,67,.12)}.public-embed-shell iframe{width:100%;height:100%;border:0}.public-watch-info{padding:.85rem .1rem}.public-watch-info>span{color:var(--brand-gold);font-size:.6rem;font-weight:900}.public-watch-info h1{margin-top:.25rem;font-size:1.35rem}.public-watch-info p{margin-top:.3rem;font-size:.72rem}.public-watch-note{padding:1rem;border:1px solid var(--border-subtle);border-radius:17px;background:var(--surface-card);position:sticky;top:92px}.public-watch-note>span{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--surface-soft-gold);color:var(--brand-navy)}.public-watch-note svg{width:20px;height:20px}.public-watch-note h2{margin-top:.7rem;font-size:1rem}.public-watch-note p,.public-watch-note li{font-size:.65rem;line-height:1.6;color:var(--text-secondary)}.public-watch-note ul{padding-inline-start:1.1rem;margin:.65rem 0 0}

.teacher-evaluation-section{padding-block:2.5rem}.teacher-eval-shell{padding:1.15rem;border:1px solid var(--border-subtle);border-radius:20px;background:var(--surface-card);box-shadow:0 12px 34px rgba(16,42,67,.045)}.teacher-eval-copy>span{display:inline-flex;align-items:center;gap:.35rem;color:var(--brand-gold);font-size:.62rem;font-weight:900}.teacher-eval-copy svg{width:15px;height:15px}.teacher-eval-copy h2{margin-top:.25rem;font-size:1.2rem}.teacher-eval-copy p{margin-top:.35rem;max-width:820px;font-size:.72rem;line-height:1.6}.teacher-eval-parts{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;margin-top:.85rem}.teacher-eval-parts article{position:relative;min-height:125px;padding:.8rem;border:1px solid var(--border-subtle);border-radius:15px;background:var(--surface-elevated)}.teacher-eval-parts article>strong{position:absolute;inset-inline-end:.7rem;inset-block-start:.55rem;font-family:var(--font-latin);font-size:1.35rem;color:color-mix(in srgb,var(--brand-gold) 72%,var(--text-primary));}.teacher-eval-parts article>span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:var(--surface-muted);color:var(--brand-navy)}.teacher-eval-parts svg{width:17px;height:17px}.teacher-eval-parts h3{margin-top:.55rem;font-size:.8rem}.teacher-eval-parts p{margin-top:.25rem;font-size:.6rem;line-height:1.5}.teacher-eval-shell>small{display:block;margin-top:.65rem;color:var(--text-tertiary);font-size:.57rem}

.assessment-v039{padding-block:2rem 5rem}.assessment-v039-layout{display:grid;grid-template-columns:minmax(320px,.78fr) minmax(0,1.22fr);gap:1.2rem;align-items:start}.assessment-v039-copy{position:sticky;top:90px}.assessment-v039-copy h1{margin-top:.45rem;font-size:clamp(1.7rem,3.4vw,2.8rem)}.assessment-v039-copy>p{margin-top:.65rem;line-height:1.75;font-size:.8rem}.archive-readiness{display:flex;align-items:center;gap:.6rem;margin-top:1rem;padding:.7rem;border:1px solid var(--border-subtle);border-radius:14px;background:var(--surface-soft-navy)}.archive-readiness strong{font-family:var(--font-latin);font-size:1rem;color:var(--brand-navy)}.archive-readiness span{font-size:.62rem;color:var(--text-secondary)}.assessment-principle{display:flex;gap:.6rem;margin-top:.65rem;padding:.7rem;border-radius:14px;background:var(--surface-soft-gold)}.assessment-principle>svg{width:18px;height:18px;color:var(--brand-gold);flex:0 0 auto}.assessment-principle p{display:grid;gap:.12rem}.assessment-principle strong{font-size:.68rem}.assessment-principle span{font-size:.58rem;color:var(--text-secondary)}.assessment-wizard-card{padding:.9rem;border:1px solid var(--border-subtle);border-radius:20px;background:var(--surface-card);box-shadow:0 16px 48px rgba(16,42,67,.06)}.assessment-profile-shortcut{display:flex;gap:.5rem;align-items:center;padding:.55rem;border-radius:12px;background:var(--surface-muted);margin-bottom:.65rem}.assessment-profile-shortcut>svg{width:16px;height:16px;color:var(--brand-gold)}.assessment-profile-shortcut span{display:grid}.assessment-profile-shortcut small{font-size:.52rem;color:var(--text-tertiary)}.assessment-profile-shortcut strong{font-size:.65rem}.assessment-choice-block{padding:.65rem 0;border-top:1px solid var(--border-subtle)}.assessment-choice-block:first-of-type{border-top:0}.assessment-choice-title{display:flex;align-items:center;gap:.45rem;margin-bottom:.5rem}.assessment-choice-title>span{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:var(--brand-navy);color:#fff;font-family:var(--font-latin);font-size:.58rem;font-weight:900}.assessment-choice-title strong{font-size:.72rem}.assessment-stage-v039{display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem}.assessment-stage-v039 button,.assessment-year-v039 button,.assessment-term-v039 button,.assessment-subject-v039 button,.assessment-unit-v039 button,.assessment-mode-v039 button{border:1px solid var(--border-subtle);border-radius:12px;background:var(--surface-elevated);color:var(--text-primary);cursor:pointer}.assessment-stage-v039 button{min-height:68px;display:grid;place-items:center;gap:.25rem;padding:.45rem}.assessment-stage-v039 svg{width:18px;height:18px;color:var(--brand-navy)}.assessment-stage-v039 strong{font-size:.64rem}.assessment-year-v039{display:flex;gap:.35rem;overflow:auto;scrollbar-width:none}.assessment-year-v039 button{min-width:110px;padding:.48rem .55rem;text-align:start;display:grid;gap:.04rem}.assessment-year-v039 strong{font-size:.62rem}.assessment-year-v039 small{font-size:.52rem;color:var(--text-tertiary)}.assessment-choice-row{display:grid;grid-template-columns:.7fr 1.3fr;gap:.65rem}.assessment-term-v039{display:grid;grid-template-columns:1fr;gap:.35rem}.assessment-term-v039 button{min-height:40px;font-size:.62rem;font-weight:850}.assessment-subject-v039{display:grid;grid-template-columns:repeat(3,1fr);gap:.35rem}.assessment-subject-v039 button{min-height:52px;display:grid;place-items:center;gap:.15rem;padding:.35rem}.assessment-subject-v039 button>svg{width:16px;height:16px;color:var(--brand-navy)}.assessment-subject-v039 strong{font-size:.57rem}.assessment-unit-v039{display:grid;grid-template-columns:repeat(2,1fr);gap:.35rem}.assessment-unit-v039 button{min-height:60px;display:grid;grid-template-columns:25px 1fr;column-gap:.4rem;align-items:center;padding:.45rem;text-align:start}.assessment-unit-v039 button>svg{grid-row:1/3;width:15px;height:15px;color:var(--brand-gold)}.assessment-unit-v039 strong{font-size:.59rem}.assessment-unit-v039 small{font-size:.5rem;color:var(--text-tertiary)}.assessment-mode-v039{display:grid;grid-template-columns:repeat(3,1fr);gap:.35rem}.assessment-mode-v039 button{position:relative;min-height:70px;display:grid;gap:.15rem;padding:.45rem;text-align:start}.assessment-mode-v039 strong{font-size:.6rem}.assessment-mode-v039 small{font-size:.49rem;color:var(--text-tertiary);line-height:1.4}.assessment-mode-v039 em{position:absolute;inset-inline-end:.35rem;inset-block-start:.35rem;font-style:normal;padding:.12rem .25rem;border-radius:6px;background:var(--surface-soft-gold);color:#875600;font-size:.44rem;font-weight:900}.assessment-stage-v039 .is-active,.assessment-year-v039 .is-active,.assessment-term-v039 .is-active,.assessment-subject-v039 .is-active,.assessment-unit-v039 .is-active,.assessment-mode-v039 .is-active{border-color:var(--brand-gold);background:var(--surface-soft-gold)}.assessment-start-v039{width:100%;min-height:56px;display:grid;grid-template-columns:28px 1fr 20px;gap:.5rem;align-items:center;margin-top:.7rem;padding:.55rem .65rem;border:0;border-radius:14px;background:var(--brand-navy);color:#fff;text-align:start;cursor:pointer}.assessment-start-v039:disabled{opacity:.45;cursor:not-allowed}.assessment-start-v039>svg{width:17px;height:17px}.assessment-start-v039 span{display:grid}.assessment-start-v039 strong{font-size:.7rem}.assessment-start-v039 small{font-size:.52rem;color:#c9d6df}.question-origin{display:grid;gap:.08rem;padding:.5rem;margin:.6rem 0;border-radius:10px;background:var(--surface-muted)}.question-origin strong{font-family:var(--font-latin);font-size:.8rem;color:var(--brand-gold)}.question-origin span{font-size:.52rem;color:var(--text-tertiary)}.unit-score-list{display:grid;gap:.35rem;margin-top:.7rem}.unit-score-row{display:grid;grid-template-columns:1fr 110px 34px;gap:.45rem;align-items:center;font-size:.58rem}.unit-score-row>div{height:6px;border-radius:999px;background:var(--surface-muted);overflow:hidden}.unit-score-row i{display:block;height:100%;background:var(--brand-gold)}.assessment-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:.35rem;margin-top:.75rem}.assessment-result-actions button{min-height:40px;border:1px solid var(--border-subtle);border-radius:10px;background:var(--surface-elevated);color:var(--text-primary);font-size:.59rem;font-weight:850;cursor:pointer}

:root[data-theme="dark"] .language-trigger-flag,:root[data-theme="dark"] .language-flag-shell{border-color:rgba(255,255,255,.14)}:root[data-theme="dark"] .sponsored-strip{background:linear-gradient(90deg,#0b1d2c,#10283b)}:root[data-theme="dark"] .finder-focus-card,:root[data-theme="dark"] .public-preview-card,:root[data-theme="dark"] .public-teacher-card,:root[data-theme="dark"] .teacher-eval-shell,:root[data-theme="dark"] .assessment-wizard-card{box-shadow:none}

@media(max-width:980px){.finder-stage-grid{grid-template-columns:repeat(2,1fr)}.finder-subject-grid{grid-template-columns:repeat(3,1fr)}.public-teacher-rail{grid-template-columns:1fr 1fr}.public-watch-layout{grid-template-columns:1fr}.public-watch-note{position:static}.assessment-v039-layout{grid-template-columns:1fr}.assessment-v039-copy{position:static}.assessment-choice-row{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.language-control-wrap{min-width:0}.header-tools>.language-control-wrap{display:none}.sponsored-strip-shell{min-height:52px}.sponsored-ad-visual{min-height:52px;grid-template-columns:62px minmax(0,1fr) 30px;gap:.45rem}.sponsored-media{width:62px;height:42px;border-radius:9px}.sponsored-copy small{font-size:.5rem}.sponsored-copy strong{font-size:.62rem}.sponsored-ad-visual .sponsored-cta{width:30px;min-height:30px;padding:0;justify-content:center;font-size:0}.sponsored-ad-visual .sponsored-cta b{font-size:.8rem}.finder-stepper{display:flex;overflow:auto;scrollbar-width:none}.finder-step{min-width:138px}.finder-focus-card{padding:.75rem}.finder-stage-grid{grid-template-columns:1fr 1fr}.finder-subject-grid{grid-template-columns:1fr 1fr}.finder-term-grid{grid-template-columns:1fr}.finder-unit-grid{grid-template-columns:1fr}.public-preview-card{flex-basis:265px}.public-teacher-rail{grid-template-columns:1fr}.public-teacher-card{grid-template-columns:105px 1fr}.teacher-eval-parts{grid-template-columns:1fr}.assessment-stage-v039{grid-template-columns:1fr 1fr}.assessment-choice-row{grid-template-columns:1fr}.assessment-subject-v039{grid-template-columns:1fr 1fr}.assessment-unit-v039{grid-template-columns:1fr}.assessment-mode-v039{grid-template-columns:1fr}.assessment-result-actions{grid-template-columns:1fr}}


/* =========================================================
   DOROUS DZ v0.3.10 TEST — header / ads / onboarding polish
   ========================================================= */

/* Header brand balance */
.app-header-v037 .header-main-row{
  min-height:70px;
  grid-template-columns:152px auto minmax(300px,1fr) auto;
  column-gap:.72rem;
}
.app-header-v037 .brand-lockup{
  width:148px;min-width:148px;height:56px;padding:0!important;display:flex;align-items:center;justify-content:flex-start;overflow:visible;
}
.app-header-v037 .brand-composite{height:52px;display:flex;align-items:center;gap:.38rem;transform:none!important}
.app-header-v037 .brand-wordmark{width:99px!important;height:auto!important;object-fit:contain;display:block}
.app-header-v037 .brand-mark-shell{width:38px!important;height:45px!important;border-radius:11px;display:grid;place-items:center;flex:0 0 auto}
.app-header-v037 .brand-mark-image{width:32px!important;max-height:41px!important;object-fit:contain}
:root[data-theme="dark"] .app-header-v037 .brand-wordmark{filter:brightness(0) invert(1);opacity:.96}

/* Modern utility controls */
.utility-control-wrap{position:relative;display:inline-flex;min-width:0}
.utility-trigger{
  min-height:42px;border:1px solid var(--border-subtle);border-radius:13px;background:var(--surface-card);color:var(--text-primary);
  box-shadow:0 5px 16px rgba(16,42,67,.035);cursor:pointer;transition:transform .16s,border-color .16s,box-shadow .16s,background .16s;
}
.utility-trigger:hover,.utility-trigger.is-open{transform:translateY(-1px);border-color:color-mix(in srgb,var(--brand-gold) 42%,var(--border-strong));box-shadow:0 10px 24px rgba(16,42,67,.075)}
.language-dropdown-trigger.utility-trigger{width:74px;display:grid;grid-template-columns:29px 1fr 12px;gap:.35rem;align-items:center;padding:.3rem .42rem}
.language-trigger-orb{width:29px;height:29px;border-radius:50%;overflow:hidden;display:grid;place-items:center;box-shadow:0 0 0 1px var(--border-subtle),0 4px 10px rgba(16,42,67,.08);background:#fff}
.language-trigger-orb .locale-flag{width:43px;height:29px;max-width:none}
.utility-trigger-copy{display:grid;min-width:0;text-align:start;line-height:1.05}
.utility-trigger-copy strong{font-family:var(--font-latin);font-size:.66rem;font-weight:900}
.utility-trigger-copy small{display:none;color:var(--text-tertiary);font-size:.5rem}
.utility-chevron{font-size:.78rem;color:var(--text-tertiary);transition:transform .16s}.is-open .utility-chevron{transform:rotate(180deg)}

.theme-dropdown-trigger.utility-trigger{width:43px;height:42px;display:grid;place-items:center;padding:0;position:relative}
.theme-trigger-orb{width:30px;height:30px;border-radius:10px;background:var(--surface-muted);display:grid;place-items:center;color:var(--text-secondary)}
.theme-trigger-orb svg{width:16px;height:16px;stroke-width:1.7}
.theme-dropdown-trigger .utility-trigger-copy{display:none}.theme-state-dot{position:absolute;inset-inline-end:7px;inset-block-end:6px;width:6px;height:6px;border-radius:50%;background:var(--brand-gold);box-shadow:0 0 0 2px var(--surface-card)}
.utility-popover{position:absolute!important;inset-inline-end:0!important;inset-block-start:calc(100% + .55rem)!important;z-index:220!important;border:1px solid var(--border-subtle)!important;border-radius:16px!important;background:var(--surface-elevated)!important;box-shadow:0 22px 60px rgba(16,42,67,.14)!important;padding:.42rem!important}
.language-dropdown-menu{width:220px!important}
.language-menu-item{position:relative;width:100%;min-height:56px;display:grid!important;grid-template-columns:34px 1fr 30px!important;gap:.58rem;align-items:center;padding:.5rem!important;border:0!important;border-radius:12px!important;background:transparent!important;color:var(--text-primary)!important;text-align:start;cursor:pointer}
.language-menu-item:hover,.language-menu-item.is-active{background:var(--surface-muted)!important}
.language-flag-orb{width:32px;height:32px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#fff;box-shadow:0 0 0 1px var(--border-subtle)}
.language-flag-orb .locale-flag{width:48px;height:32px;max-width:none}
.language-menu-copy{display:grid;gap:.06rem}.language-menu-copy strong{font-size:.72rem}.language-menu-copy small{font-size:.54rem;color:var(--text-tertiary)}
.language-code{font-family:var(--font-latin);font-size:.57rem;font-weight:900;color:var(--text-tertiary)}
.utility-check{position:absolute;inset-inline-end:8px;inset-block-start:8px;width:17px;height:17px;display:grid;place-items:center;border-radius:50%;background:var(--brand-gold);color:#2b1b00}.utility-check svg{width:10px;height:10px;stroke-width:2.2}
.theme-dropdown-menu{width:236px!important}
.theme-menu-item{width:100%;min-height:58px;display:grid;grid-template-columns:36px 1fr 20px;gap:.58rem;align-items:center;padding:.5rem;border:0;border-radius:12px;background:transparent;color:var(--text-primary);text-align:start;cursor:pointer}
.theme-menu-item:hover,.theme-menu-item.is-active{background:var(--surface-muted)}
.theme-menu-icon{width:34px;height:34px;border-radius:11px;background:var(--surface-soft-navy);display:grid;place-items:center;color:var(--brand-navy)}
.theme-menu-icon svg{width:17px;height:17px}.theme-menu-item>span:nth-child(2){display:grid;gap:.05rem}.theme-menu-item strong{font-size:.69rem}.theme-menu-item small{font-size:.52rem;color:var(--text-tertiary)}.theme-menu-item em{font-style:normal;color:var(--brand-gold);display:grid;place-items:center}.theme-menu-item em svg{width:13px;height:13px}
:root[data-theme="dark"] .theme-menu-icon{background:color-mix(in srgb,var(--surface-muted) 88%,#fff 2%);color:var(--brand-gold-soft)}

/* Sponsored strip — guaranteed visible even if external photo fails */
.sponsored-strip-v0310{min-height:60px!important;display:block!important;background:linear-gradient(90deg,color-mix(in srgb,var(--surface-soft-gold) 58%,var(--surface-page)),color-mix(in srgb,var(--surface-soft-navy) 48%,var(--surface-page)))!important}
.sponsored-strip-v0310 .sponsored-strip-shell{min-height:60px!important;overflow:hidden!important;display:block!important}
.sponsored-strip-v0310 .sponsored-slot{min-height:58px!important;display:block!important;opacity:1!important;visibility:visible!important;transform:none!important}
.sponsored-strip-v0310 .sponsored-ad-visual{min-height:58px!important;height:58px!important;display:grid!important;grid-template-columns:76px minmax(0,1fr) auto!important;gap:.75rem!important;align-items:center!important;padding:.25rem 0!important;opacity:1!important;visibility:visible!important}
.sponsored-strip-v0310 .sponsored-media{position:relative;width:76px!important;height:48px!important;border-radius:12px!important;overflow:hidden;background:linear-gradient(145deg,var(--brand-navy),#234d6f)!important;display:grid;place-items:center}
.sponsored-media-fallback{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-family:var(--font-latin);font-size:1.1rem;font-weight:900;opacity:.92}
.sponsored-strip-v0310 .sponsored-media img{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;background:transparent}.sponsored-strip-v0310 .sponsored-media img[hidden]{display:none!important}
.sponsored-strip-v0310 .sponsored-media>span:last-child{z-index:2;inset-inline-start:4px;inset-block-start:4px;font-size:.46rem}
.sponsored-strip-v0310 .sponsored-copy{display:grid!important;gap:.08rem!important;min-width:0}.sponsored-strip-v0310 .sponsored-copy small{font-size:.56rem!important;color:var(--text-tertiary)!important}.sponsored-strip-v0310 .sponsored-copy strong{font-size:.72rem!important;color:var(--text-primary)!important}
.sponsored-strip-v0310 .sponsored-cta{min-height:32px!important;padding:.3rem .52rem!important;background:var(--surface-elevated)!important;color:var(--text-primary)!important;border:1px solid color-mix(in srgb,var(--brand-gold) 24%,var(--border-subtle))!important;border-radius:10px!important;font-size:.58rem!important}
.sponsored-fallback{min-height:58px;display:flex;align-items:center;justify-content:center;gap:.45rem;color:var(--text-secondary)}

/* First-visit onboarding — progressive, compact, current-product feel */
.profile-onboarding-v0310{inset:0!important;align-items:center!important;justify-content:center!important;padding:16px!important;background:rgba(8,24,38,.10);backdrop-filter:blur(5px);pointer-events:auto!important}
.profile-modern-card{width:min(790px,calc(100vw - 32px))!important;max-height:min(560px,calc(100vh - 32px))!important;border-radius:24px!important;border:1px solid color-mix(in srgb,var(--brand-gold) 26%,var(--border-subtle))!important;background:color-mix(in srgb,var(--surface-elevated) 98%,transparent)!important;box-shadow:0 30px 90px rgba(16,42,67,.18)!important;overflow:auto!important}
.profile-modern-progress{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:10px 12px 0}.profile-modern-progress span{height:3px;border-radius:999px;background:var(--surface-muted)}.profile-modern-progress span.is-active{background:linear-gradient(90deg,var(--brand-gold),#ffd98f)}
.profile-modern-head{display:grid;grid-template-columns:1fr 34px;gap:.8rem;align-items:start;padding:1rem 1.05rem .8rem;border-bottom:1px solid var(--border-subtle)}
.profile-modern-brand{display:grid;grid-template-columns:44px 1fr;gap:.72rem;align-items:start}.profile-modern-brand>span{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,var(--brand-navy),#1c4566);color:#fff;box-shadow:0 10px 28px rgba(16,42,67,.14)}.profile-modern-brand>span svg{width:18px;height:18px}.profile-modern-brand>div{display:grid;gap:.12rem}.profile-modern-brand small{color:var(--brand-gold);font-size:.55rem;font-weight:900}.profile-modern-brand h2{font-size:1.15rem;line-height:1.28}.profile-modern-brand p{max-width:620px;color:var(--text-secondary);font-size:.66rem;line-height:1.55}
.profile-modern-body{padding:.9rem 1.05rem}.profile-modern-step{display:grid;gap:.72rem}.modern-stage-grid{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:.5rem!important}.modern-stage-grid button{position:relative;min-height:82px!important;display:grid!important;grid-template-columns:36px 1fr!important;gap:.5rem!important;padding:.65rem!important;border-radius:15px!important;background:var(--surface-card)!important}.modern-stage-grid button>span{width:34px!important;height:34px!important;border-radius:11px!important;background:var(--surface-muted)!important}.modern-stage-grid button strong{font-size:.7rem!important}.modern-stage-grid button em{position:absolute;inset-inline-end:7px;inset-block-start:7px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:var(--brand-gold);color:#2c1b00}.modern-stage-grid button em svg{width:11px;height:11px}.modern-stage-grid button.is-active{border-color:var(--brand-gold)!important;background:var(--surface-soft-gold)!important;box-shadow:0 8px 24px rgba(242,169,59,.09)}
.profile-year-block{display:grid;gap:.42rem;padding-top:.15rem}.profile-year-block>span{color:var(--text-tertiary);font-size:.56rem;font-weight:850}.modern-year-rail{margin-top:0!important;display:flex!important;gap:.42rem!important;overflow:auto!important;scrollbar-width:none}.modern-year-rail button{min-width:126px!important;min-height:58px!important;border-radius:13px!important;padding:.52rem .6rem!important}.modern-year-rail button.is-active{background:var(--brand-navy)!important;color:#fff!important;border-color:var(--brand-navy)!important}.modern-year-rail button strong{font-size:.68rem!important}.modern-year-rail button small{font-size:.53rem!important}
.profile-selection-summary{width:100%;min-height:55px;display:grid;grid-template-columns:26px 1fr auto;gap:.55rem;align-items:center;padding:.48rem .6rem;border:1px solid var(--border-subtle);border-radius:13px;background:var(--surface-soft-gold);color:var(--text-primary);text-align:start;cursor:pointer}.profile-selection-summary>svg{width:15px;height:15px}.profile-selection-summary span{display:grid;gap:.02rem}.profile-selection-summary small{font-size:.5rem;color:var(--text-tertiary)}.profile-selection-summary strong{font-size:.66rem}.profile-selection-summary em{font-style:normal;font-size:.54rem;font-weight:900;color:#8b5a08}
.modern-wilaya-search{min-height:48px!important;border-radius:14px!important;background:var(--surface-card)!important}.modern-wilaya-results{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:.4rem!important;max-height:190px!important;overflow:auto!important;padding:.05rem!important}.modern-wilaya-results .profile-wilaya-choice{min-height:46px!important;border-radius:12px!important;padding:.42rem .5rem!important;background:var(--surface-card)!important}.modern-wilaya-results .profile-wilaya-choice.is-active{border-color:var(--brand-gold)!important;background:var(--surface-soft-gold)!important}.modern-show-all{justify-self:start!important;margin-top:.05rem!important}
.profile-modern-footer{display:grid;grid-template-columns:1fr auto;gap:.8rem;align-items:center;padding:.75rem 1.05rem 1rem;border-top:1px solid var(--border-subtle)}.modern-profile-privacy{min-width:0;padding:0!important;background:transparent!important}.modern-profile-privacy span{font-size:.52rem!important;line-height:1.45}.modern-profile-actions{display:flex!important;gap:.4rem!important}.modern-profile-actions button{min-height:40px!important;border-radius:11px!important;font-size:.58rem!important}.modern-profile-actions .profile-save{min-width:136px!important}

:root[data-theme="dark"] .profile-onboarding-v0310{background:rgba(2,10,17,.22)}
:root[data-theme="dark"] .profile-modern-card{background:color-mix(in srgb,var(--surface-elevated) 98%,#000 2%)!important}

@media(max-width:1180px){.app-header-v037 .header-main-row{grid-template-columns:138px auto minmax(250px,1fr) auto}.app-header-v037 .brand-lockup{width:134px;min-width:134px}.app-header-v037 .brand-wordmark{width:90px!important}.app-header-v037 .brand-mark-shell{width:35px!important;height:42px!important}.header-search{max-width:430px!important}}
@media(max-width:980px){.app-header-v037 .header-main-row{grid-template-columns:130px minmax(220px,1fr) auto}.app-header-v037 .header-nav{display:none}.app-header-v037 .brand-lockup{width:126px;min-width:126px}.app-header-v037 .brand-wordmark{width:84px!important}.app-header-v037 .brand-mark-shell{width:33px!important;height:40px!important}}
@media(max-width:700px){
  .app-header-v037 .header-main-row{grid-template-columns:112px 1fr auto!important;min-height:64px!important}.app-header-v037 .brand-lockup{width:108px;min-width:108px;height:48px}.app-header-v037 .brand-wordmark{width:72px!important}.app-header-v037 .brand-mark-shell{width:29px!important;height:35px!important}.app-header-v037 .brand-mark-image{width:25px!important;max-height:32px!important}
  .header-tools>.utility-control-wrap{display:none!important}.sponsored-strip-v0310 .sponsored-ad-visual{grid-template-columns:54px minmax(0,1fr) 30px!important;height:52px!important;min-height:52px!important}.sponsored-strip-v0310 .sponsored-media{width:54px!important;height:40px!important;border-radius:9px!important}.sponsored-strip-v0310 .sponsored-copy small{display:none!important}.sponsored-strip-v0310 .sponsored-copy strong{font-size:.6rem!important}.sponsored-strip-v0310 .sponsored-cta{width:30px!important;min-height:30px!important;padding:0!important;justify-content:center!important;font-size:0!important}.sponsored-strip-v0310 .sponsored-cta b{font-size:.8rem!important}
  .profile-onboarding-v0310{align-items:flex-end!important;padding:8px!important;background:rgba(8,24,38,.08)}.profile-modern-card{width:calc(100vw - 16px)!important;max-height:calc(100vh - 16px)!important;border-radius:22px!important}.profile-modern-head{padding:.8rem .8rem .65rem}.profile-modern-brand{grid-template-columns:38px 1fr;gap:.55rem}.profile-modern-brand>span{width:37px;height:37px;border-radius:11px}.profile-modern-brand h2{font-size:.92rem}.profile-modern-brand p{font-size:.58rem}.profile-modern-body{padding:.7rem .8rem}.modern-stage-grid{grid-template-columns:1fr 1fr!important}.modern-stage-grid button{min-height:67px!important}.modern-wilaya-results{grid-template-columns:1fr 1fr!important;max-height:220px!important}.profile-modern-footer{grid-template-columns:1fr;padding:.65rem .8rem .8rem;gap:.55rem}.modern-profile-actions{display:grid!important;grid-template-columns:.7fr 1.3fr!important}.modern-profile-actions button{width:100%!important}.utility-control-wrap.is-compact{width:100%;display:block}.utility-control-wrap.is-compact .utility-trigger{width:100%!important;grid-template-columns:32px 1fr 14px!important}.utility-control-wrap.is-compact .utility-trigger-copy{display:grid!important}.utility-control-wrap.is-compact .utility-popover{position:static!important;width:100%!important;margin-top:.35rem!important;box-shadow:none!important}
}
