/* ՇՄԶ — shmz.am
   Brand: plum → orchid gradient from the stethoscope logo; Arm Hmk's Bebas Neue capitals for big
   headlines (as on the banners), Montserrat Arm for everything else; the stethoscope tube-and-bell
   as the signature progress motif. */

@font-face {
  font-family: "Montserrat Arm";
  src: url("../fonts/montserrat-arm-400.ee0d1839586e.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat Arm";
  src: url("../fonts/montserrat-arm-500.6070953b9fa9.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat Arm";
  src: url("../fonts/montserrat-arm-600.8ed66068df7e.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat Arm";
  src: url("../fonts/montserrat-arm-700.4483b5550080.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat Arm";
  src: url("../fonts/montserrat-arm-800.a0d9e664896a.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Arm Bebas";
  src: url("../fonts/arm-bebas-neue.83dc23b3ddb2.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --plum: #2B0B45;
  --violet: #4E1577;
  --violet-2: #6A1F9A;
  --orchid: #A13FC4;
  --mist: #F5EEF9;
  --mist-2: #EDE2F4;
  --paper: #FFFFFF;
  --page: #FBF9FD;
  --ink: #251D2E;
  --muted: #6B6076;
  --line: #E8DFF0;
  --line-2: #D6C4E4;
  --ok: #17704D; --ok-bg: #E4F3EB;
  --warn: #8F5400; --warn-bg: #FFF3DD;
  --bad: #A8231B; --bad-bg: #FCE8E6;
  --grad: linear-gradient(105deg, #461068 0%, #63198F 48%, #A13FC4 100%);
  --r-xl: 28px; --r-lg: 20px; --r: 14px; --r-sm: 10px;
  --lift: 0 1px 2px rgba(43, 11, 69, .05), 0 12px 32px -16px rgba(43, 11, 69, .28);
  --font: "Montserrat Arm", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Arm Bebas", "Montserrat Arm", "Arial Narrow", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --tabbar-h: 0px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.65; color: var(--ink);
  background: var(--page); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--orchid); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; color: var(--plum); font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--orchid) 60%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--mist-2); }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.i-sm { width: 16px; height: 16px; }
.i-xs { width: 12px; height: 12px; }
#i-play path { fill: currentColor; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 18px; color: var(--muted); }
.mt { margin-top: 32px; }
.ok { color: var(--ok); }
.warn { color: var(--warn); font-weight: 700; }
.nowrap { white-space: nowrap; }

/* Type scale */
.display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em;
  line-height: .98; font-size: clamp(44px, 5.4vw, 72px); margin: 0;
}
.display--page { font-size: clamp(40px, 5vw, 62px); color: var(--plum); }
.h1 { font-size: clamp(26px, 3vw, 34px); }
.h2 { font-size: clamp(23px, 2.4vw, 28px); }
.h3 { font-size: 21px; }
.h4 { font-size: 17px; }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Buttons */
.btn {
  --bg: var(--paper); --fg: var(--violet); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg);
  font-weight: 650; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .05s;
}
.btn:hover { color: var(--fg); border-color: var(--violet); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn--primary { --bg: var(--violet); --fg: #fff; --bd: var(--violet); background: var(--grad); border-color: transparent; }
.btn--primary:hover { --fg: #fff; filter: brightness(1.07); }
.btn--ghost { --bg: transparent; }
.btn--white { --bg: #fff; --fg: var(--violet); --bd: #fff; text-transform: uppercase; font-weight: 800; letter-spacing: .03em; font-size: 14px; }
.btn--white:hover { --fg: var(--plum); border-color: #fff; }
.btn--outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.55); }
.btn--outline-light:hover { --fg: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
.btn--light { --bg: rgba(255,255,255,.12); --fg: #fff; --bd: rgba(255,255,255,.35); }
.btn--light:hover { --fg: #fff; border-color: #fff; }
.btn--sm { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn--xs { min-height: 30px; padding: 4px 10px; font-size: 13px; border-width: 1px; }
.btn--lg { min-height: 52px; padding: 13px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.iconbtn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0;
  background: transparent; color: var(--violet); cursor: pointer; text-decoration: none;
}
.iconbtn:hover { background: var(--mist); color: var(--violet); }

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--violet); text-decoration: none; }
.brand__mark { width: 42px; height: 42px; }
.brand__text { display: grid; line-height: 1; }
.brand__word {
  font-family: var(--display); font-weight: 400; font-size: 40px; letter-spacing: .02em; line-height: .85;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__org { font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--violet); margin-top: 3px; line-height: 1.15; }
.brand--light, .brand--light .brand__org { color: #fff; }
.brand--light .brand__word { background: none; color: #fff; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.topbar__brand { text-decoration: none; flex: none; }
.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a {
  padding: 8px 11px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px;
  white-space: nowrap;
}
.shesht { margin: 0 -.08em; }
.mainnav a:hover { background: var(--mist); color: var(--violet); }
.mainnav a[aria-current="page"] { color: var(--violet); box-shadow: inset 0 -2px 0 var(--orchid); border-radius: 0; }
.mainnav__staff { color: var(--violet) !important; }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.navtoggle { display: none; }
.mainnav__login { display: none; }

.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 999px; border: 1px solid var(--line); }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu__name { font-weight: 600; font-size: 14px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu__pop {
  position: absolute; right: 0; top: calc(100% + 8px); width: 270px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--lift); padding: 8px; display: grid;
}
.usermenu__pop a, .usermenu__pop button {
  display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink);
  border: 0; background: none; width: 100%; text-align: left; cursor: pointer; font-size: 15px;
}
.usermenu__pop a:hover, .usermenu__pop button:hover { background: var(--mist); color: var(--violet); }
.usermenu__who { display: grid; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.usermenu__who span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.avatar {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff;
  font-weight: 700; font-size: 13px; flex: none;
}
.avatar--lg { width: 64px; height: 64px; font-size: 22px; }

/* Toasts */
.toasts { position: fixed; top: 84px; right: 16px; z-index: 60; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 12px 12px 16px; border-radius: var(--r); background: #fff;
  border: 1px solid var(--line); border-left: 4px solid var(--violet); box-shadow: var(--lift); font-size: 15px;
  animation: toast-in .25s ease-out;
}
.toast--success { border-left-color: var(--ok); }
.toast--warning { border-left-color: #D98A00; }
.toast--error { border-left-color: var(--bad); }
.toast__x { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--grad); color: #fff; padding: clamp(40px, 6vw, 72px) 0 0; isolation: isolate; }
.hero__stetho { position: absolute; left: -6%; top: -8%; width: min(720px, 80vw); color: rgba(255,255,255,.07); z-index: -1; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.hero__copy { padding-bottom: 48px; }
.hero__org { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .8; margin-bottom: 18px; max-width: 34em; }
.hero h1 { color: #fff; max-width: 17ch; font-size: clamp(44px, 5vw, 70px); }
.hero__lead { font-size: 18px; max-width: 34em; margin: 22px 0 28px; color: rgba(255,255,255,.88); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__photo { align-self: end; margin-right: calc(var(--gutter) * -1); }
.hero__photo img {
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect;
}
.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid rgba(255,255,255,.22);
}
.hero__stats div { padding: 18px 0 22px; display: flex; flex-direction: column-reverse; }
.hero__stats div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.22); }
.hero__stats dt { font-size: 14px; opacity: .82; }
.hero__stats dd { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(38px, 4.4vw, 56px); line-height: 1; letter-spacing: .02em; }

/* Sections */
.section { padding: clamp(44px, 6vw, 80px) 0; }
.section--tint { background: var(--mist); }
.section__head { margin-bottom: 28px; max-width: 720px; }
.section__head--row { display: flex; justify-content: space-between; align-items: baseline; max-width: none; gap: 16px; }
.section__head .h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(34px, 3.6vw, 44px); line-height: 1; }

/* Group tiles */
.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gtile {
  position: relative; display: grid; gap: 4px; padding: 22px 22px 20px; border-radius: var(--r-lg); background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s;
}
.gtile:hover { border-color: var(--orchid); color: var(--ink); transform: translateY(-2px); }
.gtile__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--mist); color: var(--violet); margin-bottom: 12px; }
.gtile__icon .i { width: 28px; height: 28px; stroke-width: 1.6; }
.gtile__level { font-size: 13px; color: var(--muted); }
.gtile__name { font-size: 19px; line-height: 1.25; color: var(--plum); }
.gtile__count { font-size: 14px; color: var(--violet); font-weight: 600; margin-top: 6px; }

/* Course cards */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.ccard { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.ccard__cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--grad); color: #fff; overflow: hidden; }
.ccard__cover img { width: 100%; height: 100%; object-fit: cover; }
.ccard__cover--pdf { background: linear-gradient(105deg, #3D1060, #7C2FA3); }
.ccard__cover--book { background: linear-gradient(105deg, #2B0B45, #63198F); }
.ccard__cover--mixed { background: linear-gradient(105deg, #4E1577, #B654D0); }
.ccard__art { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); }
.ccard__art .i { width: 28px; height: 28px; }
.ccard__cover--video .ccard__art .i { fill: currentColor; stroke: none; margin-left: 3px; }
.ccard__code { position: absolute; left: 14px; bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .04em; opacity: .85; }
.ccard__format { position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--violet); }
.ccard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ccard__groups { display: flex; flex-wrap: wrap; gap: 6px; }
.ccard__groups span { font-size: 12px; color: var(--violet); background: var(--mist); padding: 2px 8px; border-radius: 6px; }
.ccard__title { font-size: 18px; line-height: 1.3; margin: 2px 0 0; }
.ccard__title a { color: var(--plum); text-decoration: none; }
.ccard__title a:hover { color: var(--violet); }
.ccard__title a::after { content: ""; position: absolute; inset: 0; }
.ccard { position: relative; }
.ccard__lecturer { font-size: 14px; color: var(--muted); margin: 0; }
.ccard__meta { list-style: none; padding: 10px 0 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.ccard__meta li { display: inline-flex; align-items: center; gap: 5px; }
.ccard__price { color: var(--violet); font-weight: 700; }
.ccard__mine { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ccard__mine .tube { flex: 1; }
.ccard__pct { font-size: 13px; font-weight: 700; color: var(--violet); }

/* Signature: stethoscope tube progress — a line that ends in the bell */
.tube { position: relative; height: 6px; border-radius: 3px; background: var(--mist-2); min-width: 60px; }
.tube > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--grad); max-width: 100%; }
.tube > i::after {
  content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: var(--orchid); box-shadow: 0 0 0 3px #fff;
}
.tube > i[style="width:0%"]::after { background: var(--line-2); }

/* Journey */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.journey::before { content: ""; position: absolute; left: 12px; right: calc(25% - 35px); top: 11px; height: 4px; border-radius: 2px; background: var(--grad); }
.journey li { position: relative; padding-top: 44px; }
.journey__dot { position: absolute; top: 0; left: 0; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--violet-2); }
.journey__dot--end { width: 34px; height: 34px; top: -4px; background: var(--orchid); border-color: #fff; box-shadow: 0 0 0 4px var(--orchid); }
.journey h3 { font-size: 19px; }
.journey p { color: var(--muted); margin: 0; font-size: 15px; }

/* Verify band */
.verifyband {
  display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 24px; align-items: center; padding: 28px 32px;
  border-radius: var(--r-xl); border: 1.5px solid var(--line-2); background: #fff;
}
.verifyband h2 { display: flex; align-items: center; gap: 10px; }
.verifyband p { margin: 0; color: var(--muted); }
.verifyband__field { display: flex; gap: 10px; }
.verifyband__field .input { flex: 1; }

/* Footer */
.footer { background: var(--plum); color: rgba(255,255,255,.82); padding: 48px 0 24px; margin-top: 40px; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer__brand p { margin-top: 14px; font-size: 14px; max-width: 30ch; }
.footer__brand a { text-decoration: none; }
.footer__col { display: grid; gap: 8px; align-content: start; font-size: 14px; }
.footer__col strong { color: #fff; font-size: 15px; margin-bottom: 4px; }
.footer__col a, .footer__col span { color: rgba(255,255,255,.82); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__app p { margin: 0 0 6px; }
.footer__app .btn { justify-self: start; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 18px; font-size: 13px; color: rgba(255,255,255,.6); }

/* Page head + crumbs */
.pagehead { padding: 28px 0 22px; background: linear-gradient(180deg, var(--mist), var(--page)); }
.pagehead--course { padding: 18px 0 0; background: none; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--violet); }

/* Catalog */
.catalog { padding-bottom: 40px; }
.filters { display: grid; gap: 14px; margin-bottom: 22px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 9px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line-2); color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: 14.5px;
}
.chip:hover { border-color: var(--violet); color: var(--violet); }
.chip.is-on { background: var(--grad); color: #fff; border-color: transparent; }
.filters__row { display: flex; gap: 10px; flex-wrap: wrap; }
.search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 16px; color: var(--muted); }
.search:focus-within { border-color: var(--violet); }
.search input { border: 0; outline: 0; background: none; height: 44px; flex: 1; min-width: 0; }
.select select { height: 44px; border-radius: 999px; border: 1.5px solid var(--line-2); padding: 0 38px 0 16px; background: #fff; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234E1577' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.catalog__count { margin: 0 0 14px; font-size: 14px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 28px 0; }
.pager a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 600; }

/* Empty states */
.empty { text-align: center; padding: 56px 20px; display: grid; justify-items: center; gap: 6px; }
.empty > .i { width: 44px; height: 44px; color: var(--orchid); stroke-width: 1.4; margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 40ch; }
.empty--inline { text-align: left; display: flex; gap: 16px; align-items: center; padding: 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); justify-items: start; }
.empty--inline > .i { margin: 0; width: 36px; height: 36px; }
.empty--inline p { margin: 2px 0 0; font-size: 14px; }
.empty--inline .btn { margin-left: auto; }

/* Course detail */
.course { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; padding-top: 10px; padding-bottom: 48px; align-items: start; }
.course__main { display: grid; gap: 28px; min-width: 0; }
.coursecard { border-radius: var(--r-xl); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.coursecard__media { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--grad); color: #fff; }
.coursecard__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.coursecard__media .ccard__art { width: 84px; height: 84px; }
.coursecard__preview { position: absolute; right: 16px; bottom: 16px; display: inline-flex; gap: 8px; align-items: center; background: #fff; color: var(--violet); padding: 8px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 14px; }
.coursecard__preview .i { fill: currentColor; stroke: none; width: 14px; height: 14px; }
.lecturer { display: flex; gap: 14px; align-items: center; padding: 16px 20px; }
.lecturer__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--mist-2); }
.lecturer__photo--blank { display: grid; place-items: center; background: var(--mist); color: var(--violet); }
.lecturer strong { display: block; color: var(--plum); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.lecturer__title { display: block; color: var(--orchid); font-size: 14px; font-weight: 600; }
.lecturer p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.course__head .h1 { margin-top: 8px; }
.course__head .lead { margin-bottom: 12px; }
.course__groups { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--violet); background: var(--mist); padding: 3px 10px; border-radius: 6px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; padding: 3px 11px; border-radius: 999px; background: var(--mist); color: var(--violet); white-space: nowrap; }
.pill--ok, .pill--passed { background: var(--ok-bg); color: var(--ok); }
.pill--warn, .pill--pending, .pill--exam { background: var(--warn-bg); color: var(--warn); }
.pill--bad, .pill--failed { background: var(--bad-bg); color: var(--bad); }
.pill--muted { background: #F0EEF2; color: var(--muted); }
.pill--learning { background: var(--mist); color: var(--violet); }

.prose { max-width: 70ch; }
.prose p, .prose li { color: #3A3144; }
.prose--page { padding-top: 12px; padding-bottom: 32px; }
.prose ul { padding-left: 1.2em; }
.outcomes ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.outcomes li { display: flex; gap: 10px; align-items: flex-start; }
.outcomes li .i { color: var(--ok); margin-top: 4px; }

/* Path — the syllabus drawn as a stethoscope tube with bell nodes */
.path { list-style: none; margin: 0; padding: 0; position: relative; }
.path__item { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 0 0 18px; }
.path__item::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 3px; border-radius: 2px; background: var(--mist-2); }
.path__item:last-child::before { display: none; }
.path__item.is-done::before { background: var(--violet-2); }
.path__node {
  flex: none; width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700;
  background: #fff; border: 2.5px solid var(--line-2); color: var(--muted); position: relative; z-index: 1;
}
.path__item.is-done .path__node { background: var(--violet-2); border-color: var(--violet-2); color: #fff; }
.path__item.is-current .path__node { border-color: var(--orchid); color: var(--orchid); box-shadow: 0 0 0 4px var(--mist-2); }
.path__item--exam .path__node { border-style: dashed; }
.path__item--cert .path__node { background: var(--mist); border-color: var(--orchid); color: var(--orchid); }
.path__item--cert.is-done .path__node { background: var(--orchid); color: #fff; }
.path__body { display: grid; gap: 2px; padding-top: 4px; min-width: 0; flex: 1; text-decoration: none; color: var(--ink); }
.path__body > a, .path__body > span:first-child { font-weight: 600; color: var(--plum); text-decoration: none; }
.path__body > a:hover { color: var(--violet); text-decoration: underline; }
.path__meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 400 !important; }
.path__lock { color: var(--muted); padding-top: 6px; }
.path--compact .path__item { padding-bottom: 6px; }
.path--compact .path__item::before { top: 30px; }
.path--compact .path__body { padding: 4px 8px 8px; border-radius: 10px; margin-left: -4px; }
.path--compact a.path__body:hover { background: var(--mist); }
.path--compact a.path__body[aria-current] { background: var(--mist); }
.path--compact .path__body > span:first-child { font-size: 15px; line-height: 1.35; }

/* Fact card (course sidebar) */
.course__side { position: sticky; top: 90px; display: grid; gap: 16px; }
.factcard { background: #fff; border-radius: var(--r-xl); border: 1px solid var(--line); box-shadow: var(--lift); overflow: hidden; }
.facts { margin: 0; padding: 8px 22px; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; flex-wrap: wrap; }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 700; color: var(--plum); text-align: right; }
.facts__credits dd strong { font-family: var(--display); font-weight: 400; font-size: 38px; color: var(--violet); line-height: 1; }
.facts__credits ul { list-style: none; padding: 0; margin: 6px 0 0; width: 100%; display: grid; gap: 4px; }
.facts__credits li { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 6px 10px; background: var(--page); border-radius: 8px; }
.facts__credits li b { color: var(--ink); }
.stars { color: #E2B33C; letter-spacing: 1px; }
.star { color: var(--line-2); }
.star.on { color: #E2B33C; }
.factcard__cta { padding: 18px 22px 8px; display: grid; gap: 10px; }
.factcard__cta form { margin: 0; }
.factcard__cta .small { margin: 0; text-align: center; }
.factcard__progress { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.factcard__progress .tube { flex: 1; }
.factcard__foot { margin: 0; padding: 12px 22px 18px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

.ratecard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; display: grid; gap: 10px; }
.rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate input { position: absolute; opacity: 0; pointer-events: none; }
.rate label { font-size: 30px; line-height: 1; color: var(--line-2); cursor: pointer; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { color: #E2B33C; }
.rate input:focus-visible + label { outline: 2px solid var(--orchid); border-radius: 4px; }

/* Notes */
.note { padding: 14px 16px; border-radius: var(--r); background: var(--mist); color: var(--plum); font-size: 15px; display: block; }
.note p { margin: 6px 0 0; }
.note ul { margin: 6px 0 0; padding-left: 1.2em; }
.note--ok { background: var(--ok-bg); color: #0F4D35; }
.note--warn { background: var(--warn-bg); color: #5E3800; }
.note--bad { background: var(--bad-bg); color: #6E140F; }
.note--link { display: flex; gap: 10px; align-items: center; text-decoration: none; margin-bottom: 20px; font-weight: 600; }

/* Player */
.page-player { background: #fff; }
.page-player .topbar { position: static; }
.player__bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 8px var(--gutter);
  background: var(--plum); color: #fff;
}
.player__bar .iconbtn { color: #fff; }
.player__bar .iconbtn:hover { background: rgba(255,255,255,.12); }
.player__crumb { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.player__course { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__count { font-size: 13px; opacity: .75; }
.player__prog { display: flex; align-items: center; gap: 10px; width: 220px; font-size: 13px; font-weight: 700; }
.player__prog .tube { flex: 1; background: rgba(255,255,255,.2); }
.player__prog .tube > i::after { box-shadow: 0 0 0 3px var(--plum); background: #fff; }
.player__toggle { display: none; }
.player__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: calc(100vh - 128px); }
.player__stage { min-width: 0; background: var(--page); }
.vframe { position: relative; background: #120319; aspect-ratio: 16 / 9; max-height: 74vh; width: 100%; }
.vframe video, .vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vframe--empty { display: grid; place-items: center; color: rgba(255,255,255,.7); }
.lessoninfo { padding: 24px clamp(16px, 3vw, 36px) 40px; max-width: 980px; }
.lessoninfo__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.lessoninfo__head .h2 { margin-top: 8px; }
.complete { margin: 4px 0 0; }
.lessonnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.syllabus { border-left: 1px solid var(--line); background: #fff; padding: 18px 18px 40px; overflow-y: auto; max-height: calc(100vh - 58px); position: sticky; top: 58px; }
.syllabus__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; padding: 0 4px; }
.linkcard { display: flex; gap: 16px; align-items: center; margin: 24px clamp(16px, 3vw, 36px) 0; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); flex-wrap: wrap; }
.linkcard > .i { width: 34px; height: 34px; color: var(--orchid); }
.linkcard div { flex: 1; min-width: 200px; }
.linkcard p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* PDF reader */
.reader { display: flex; flex-direction: column; height: min(82vh, 1100px); background: #E9E4EE; }
.reader__tools { display: flex; align-items: center; gap: 12px; padding: 6px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.reader__page { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.reader__zoom { display: flex; gap: 2px; margin-left: auto; }
.reader__pages { flex: 1; overflow: auto; padding: 16px; display: grid; justify-items: center; gap: 14px; align-content: start; -webkit-overflow-scrolling: touch; }
.reader__pages canvas { background: #fff; box-shadow: 0 2px 10px rgba(43,11,69,.18); max-width: none; }
.reader__ph { background: #fff; box-shadow: 0 2px 10px rgba(43,11,69,.12); }
.reader__loading { padding: 40px; color: var(--muted); }
.reader:fullscreen { height: 100vh; }

/* Exam */
.page-exam { background: var(--page); }
.page-exam .topbar { position: static; }
.exam { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter) 120px; }
.exam__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 14px; }
.exam__title { display: grid; }
.exam__title strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 30px; letter-spacing: .02em; color: var(--plum); line-height: 1; }
.exam__title span { color: var(--muted); font-size: 14px; }
.exam__timer { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--plum); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.exam__timer.is-low { background: var(--bad); }
.exam__dots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.exam__dot { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.exam__dot.is-answered { background: var(--mist-2); border-color: var(--mist-2); color: var(--violet); }
.exam__dot.is-current { border-color: var(--violet); color: var(--violet); box-shadow: 0 0 0 3px var(--mist-2); }
.qcard { border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; padding: clamp(20px, 4vw, 34px); margin: 0 0 16px; min-width: 0; }
.qcard__n { font-size: 14px; font-weight: 700; color: var(--orchid); padding: 0; margin-bottom: 8px; }
.qcard__text { font-size: 20px; line-height: 1.45; color: var(--plum); font-weight: 600; margin-bottom: 18px; }
.qcard__hint { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--warn); margin: -8px 0 14px; }
.qcard__opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: var(--r); border: 1.5px solid var(--line); cursor: pointer; background: #fff; transition: border-color .12s, background-color .12s; }
.opt:hover { border-color: var(--line-2); background: var(--page); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); margin-top: 2px; display: grid; place-items: center; }
.opt input[type="checkbox"] + .opt__mark { border-radius: 6px; }
.opt input:checked + .opt__mark { border-color: var(--violet); background: var(--violet); box-shadow: inset 0 0 0 3px #fff; }
.opt input[type="checkbox"]:checked + .opt__mark { box-shadow: none; background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.opt:has(input:checked) { border-color: var(--violet); background: var(--mist); }
.opt input:focus-visible + .opt__mark { outline: 3px solid var(--mist-2); outline-offset: 2px; }
.opt__text { font-size: 16px; }
.qcard--review { text-align: center; }
.exam__nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(var(--gutter), calc((100vw - 820px) / 2 + var(--gutter))); padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
.exam__count { font-size: 14px; color: var(--muted); }
.js .exam .qcard[data-q] { display: none; }
.js .exam .qcard[data-q].is-active { display: block; }

/* Result */
.panelcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 40px); margin: 28px 0; }
.examintro, .result, .verify { text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px; }
.examintro > *, .result > *, .verify > * { max-width: 100%; }
.examintro__icon { width: 64px; height: 64px; border-radius: 20px; background: var(--mist); color: var(--violet); display: grid; place-items: center; margin-bottom: 8px; }
.examintro__icon .i { width: 30px; height: 30px; }
.rules { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 8px; text-align: left; width: 100%; max-width: 520px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--page); border-radius: var(--r); }
.rules li .i { color: var(--orchid); margin-top: 2px; }
.attempts { width: 100%; margin-top: 24px; text-align: left; }
.score { --p: 0; position: relative; width: 150px; height: 150px; margin-bottom: 8px; }
.score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score circle { fill: none; stroke-width: 10; }
.score__track { stroke: var(--mist-2); }
.score__fill { stroke: url(#g-brand); stroke-linecap: round; stroke-dasharray: var(--p) 100; transition: stroke-dasharray 1s ease-out; }
.result--fail .score__fill { stroke: var(--warn); }
.score__num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score__num strong { font-family: var(--display); font-weight: 400; font-size: 54px; color: var(--plum); line-height: 1; letter-spacing: .02em; }
.score__num span { font-size: 14px; color: var(--muted); }
.result__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin: 10px 0; }
.result__actions form { margin: 0; }
.review { display: grid; gap: 12px; margin-bottom: 40px; }
.rv { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: var(--r); padding: 16px 18px; }
.rv--bad { border-left-color: var(--bad); }
.rv__q { font-weight: 600; color: var(--plum); }
.rv ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.rv li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.rv li .i { margin-top: 3px; }
.rv li.is-correct { color: var(--ok); font-weight: 600; }
.rv li.is-wrong { color: var(--bad); text-decoration: line-through; }
.rv__ex { margin: 10px 0 0; font-size: 14px; color: var(--muted); padding: 10px 12px; background: var(--page); border-radius: 10px; }

/* Learner dashboard */
.pagehead--me { padding: 32px 0; }
.mehead { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.mehead__who { display: flex; gap: 16px; align-items: center; }
.mehead__who .h1 { margin: 0; }
.mehead__who p { margin: 2px 0 0; }
.mestats { display: flex; gap: 10px; margin: 0; }
.mestats div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 18px; min-width: 120px; }
.mestats div:first-child { background: var(--grad); color: #fff; border: 0; }
.mestats dt { font-size: 13px; opacity: .8; }
.mestats dd { margin: 0; font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: .02em; }
.mestats small { font-size: 12px; opacity: .8; }
.mygrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding-top: 8px; padding-bottom: 40px; align-items: start; }
.rowcard { display: flex; gap: 16px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 12px; }
.rowcard__cover { flex: none; width: 128px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--grad); color: #fff; }
.rowcard__cover img { width: 100%; height: 100%; object-fit: cover; }
.rowcard__cover .ccard__art { width: 44px; height: 44px; }
.rowcard__cover .ccard__art .i { width: 20px; height: 20px; }
.rowcard__body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.rowcard__body h3 { font-size: 17px; margin: 0; }
.rowcard__body h3 a { color: var(--plum); text-decoration: none; }
.rowcard__body p { margin: 0; }
.rowcard__prog { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; color: var(--violet); }
.rowcard__prog .tube { flex: 1; max-width: 360px; }
.rowcard--done { padding: 14px 18px; }
.sidecard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin-bottom: 16px; display: grid; gap: 6px; }
.sidecard__head { display: flex; justify-content: space-between; align-items: baseline; }
.certrow, .recrow { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.certrow:hover, .recrow:hover { background: var(--mist); color: var(--ink); }
.certrow__icon { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--mist); color: var(--orchid); }
.certrow span:last-child, .recrow { display: grid; gap: 1px; }
.certrow strong, .recrow strong { font-size: 14px; line-height: 1.35; color: var(--plum); }
.certrow small, .recrow small { font-size: 13px; color: var(--muted); }

/* Certificates page */
.certgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; padding: 8px 0 40px; }
.cert { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; display: grid; gap: 10px; overflow: hidden; }
.cert::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad); }
.cert__top { display: flex; justify-content: space-between; align-items: center; }
.cert__icon { width: 44px; height: 44px; border-radius: 14px; background: var(--mist); color: var(--orchid); display: grid; place-items: center; }
.cert__no { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.cert__title { font-size: 18px; line-height: 1.35; margin: 4px 0; }
.cert__meta { display: flex; gap: 22px; margin: 0; }
.cert__meta dt { font-size: 12px; color: var(--muted); }
.cert__meta dd { margin: 0; font-weight: 700; color: var(--plum); }
.cert__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.cert--revoked { opacity: .7; }

/* Verify */
.verify__form { display: flex; gap: 10px; width: 100%; max-width: 560px; margin: 8px 0; }
.verify__form .input { flex: 1; }
.verifyres__status { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); margin-bottom: 18px; }
.verifyres__status .i { width: 36px; height: 36px; }
.verifyres__status div { display: grid; }
.verifyres__status strong { font-size: 19px; }
.verifyres--ok .verifyres__status { background: var(--ok-bg); color: var(--ok); }
.verifyres--bad .verifyres__status { background: var(--bad-bg); color: var(--bad); }
.kv { margin: 0; display: grid; }
.kv div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: 15px; }
.kv dd { margin: 0; font-weight: 600; color: var(--plum); }

/* Contact */
.contactgrid { display: grid; gap: 12px; padding: 12px 0 40px; }
.contact { display: flex; gap: 14px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--plum); font-weight: 600; }
.contact .i { color: var(--orchid); width: 26px; height: 26px; }
.contact span { display: grid; }
.contact small { font-weight: 400; color: var(--muted); }

/* Auth */
.page-auth { background: #fff; }
.auth { display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr); min-height: calc(100vh - 71px); }
.auth__art { position: relative; overflow: hidden; background: var(--grad); color: #fff; padding: clamp(32px, 5vw, 64px); display: flex; align-items: flex-end; isolation: isolate; }
.auth__stetho { position: absolute; right: -18%; top: -6%; width: 110%; color: rgba(255,255,255,.08); z-index: -1; }
.auth__copy { display: grid; gap: 22px; max-width: 460px; }
.display--auth { font-size: clamp(40px, 4.4vw, 60px); color: #fff; }
.auth__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.auth__list li { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.9); }
.auth__main { display: flex; justify-content: center; padding: clamp(24px, 5vw, 64px) var(--gutter); }
.auth__box { width: 100%; max-width: 440px; }
.auth__box--wide { max-width: 720px; }

/* Forms */
.form { display: grid; gap: 16px; margin-top: 18px; }
.form__sect { font-size: 15px; font-weight: 700; color: var(--orchid); margin: 10px 0 -4px; padding-top: 14px; border-top: 1px solid var(--line); }
.form__sect:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form__row { display: flex; align-items: center; gap: 12px; }
.form__row--between { justify-content: space-between; flex-wrap: wrap; }
.form__note { margin: -8px 0 0; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > label, .field > legend { font-size: 14px; font-weight: 600; color: var(--plum); padding: 0; }
.req { color: var(--orchid); }
.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff;
  font-size: 16px; transition: border-color .12s, box-shadow .12s;
}
.input:hover { border-color: #C5AEDA; }
.input:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px var(--mist-2); }
.input--lg { min-height: 54px; font-size: 18px; }
textarea.input { min-height: 80px; resize: vertical; }
select.input { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234E1577' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.input:disabled { background: var(--page); color: var(--muted); }
.help { font-size: 13px; color: var(--muted); }
.err { font-size: 13px; color: var(--bad); font-weight: 600; }
.has-error .input { border-color: var(--bad); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--violet); flex: none; }
.groupcards { border: 0; padding: 0; margin: 0; }
.groupcards legend { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--plum); }
.groupcards__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.groupcard { position: relative; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); border: 1.5px solid var(--line-2); cursor: pointer; background: #fff; }
.groupcard input { position: absolute; opacity: 0; pointer-events: none; }
.groupcard__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--mist); color: var(--violet); }
.groupcard__text { display: grid; line-height: 1.25; }
.groupcard__text strong { font-size: 15px; color: var(--plum); }
.groupcard__text small { font-size: 12px; color: var(--muted); }
.groupcard:has(input:checked) { border-color: var(--violet); background: var(--mist); box-shadow: 0 0 0 3px var(--mist-2); }
.groupcard:has(input:checked) .groupcard__icon { background: var(--grad); color: #fff; }
.groupcard:has(input:focus-visible) { outline: 3px solid var(--mist-2); outline-offset: 2px; }
.logoutrow { margin: -12px 0 40px; text-align: center; }
.dropzone { display: grid; justify-items: center; gap: 6px; padding: 28px; border: 2px dashed var(--line-2); border-radius: var(--r-lg); text-align: center; color: var(--muted); cursor: pointer; }
.dropzone .i { width: 30px; height: 30px; color: var(--orchid); }
.dropzone input { font-size: 14px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--page); white-space: nowrap; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table--data tbody tr:hover { background: #FCFAFE; }
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table tr.is-muted td { color: var(--muted); }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cellstack { display: grid; }
.cellstack small { color: var(--muted); font-size: 13px; }
.minitube { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 120px; }
.minitube .tube { flex: 1; }

/* Panel */
.page-panel { background: var(--page); }
.pnl { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 71px); }
.pnl__side { background: #fff; border-right: 1px solid var(--line); padding: 18px 12px; }
.pnl__side nav { position: sticky; top: 86px; display: grid; gap: 2px; }
.pnl__side a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.pnl__side a:hover { background: var(--mist); color: var(--violet); }
.pnl__side a[aria-current="page"] { background: var(--grad); color: #fff; }
.pnl__main { padding: 24px clamp(16px, 3vw, 36px) 60px; min-width: 0; display: grid; gap: 20px; align-content: start; }
.pnl__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pnl__head .h1 { margin: 0; }
.pnl__head p { margin: 4px 0 0; }
.pnl__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pnl__grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pnl__grid2--side { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpis--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { display: grid; gap: 4px; align-content: start; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); }
a.kpi:hover { border-color: var(--orchid); color: var(--ink); }
.kpi__label { font-size: 14px; color: var(--muted); font-weight: 600; }
.kpi__num { font-family: var(--display); font-weight: 400; font-size: 54px; line-height: 1; color: var(--plum); letter-spacing: .02em; }
.kpi__split { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.kpi__split b { color: var(--ink); }
.kpi__foot { font-size: 13px; color: var(--violet); font-weight: 600; }
.kpi--accent { background: var(--grad); border: 0; color: #fff; }
.kpi--accent .kpi__label, .kpi--accent .kpi__split, .kpi--accent .kpi__foot, .kpi--accent .kpi__num, .kpi--accent .kpi__split b { color: #fff; }
a.kpi--accent:hover { color: #fff; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; min-width: 0; }
.pcard--flush { padding: 0; overflow: hidden; }
.pcard__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.pcard__foot { padding: 14px 16px; border-top: 1px solid var(--line); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 18px; }
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.bars__col i { display: block; width: 100%; max-width: 34px; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--grad); }
.bars__col small { font-size: 11px; color: var(--muted); }
.bars__n { font-size: 12px; font-weight: 700; color: var(--plum); }
.hbars { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.hbars a, .hbars__row { display: grid; grid-template-columns: minmax(0, 1fr) 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.hbars a:hover { background: var(--mist); }
.hbars__label { font-size: 14px; font-weight: 600; line-height: 1.25; }
.hbars__label small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.hbars__track { height: 10px; background: var(--mist-2); border-radius: 5px; overflow: hidden; }
.hbars__track i { display: block; height: 100%; background: var(--grad); border-radius: 5px; }
.hbars b { font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.pfilters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.pfilters .input { width: auto; flex: 1 1 180px; min-height: 42px; font-size: 15px; }
.pfilters input[type="search"] { flex: 2 1 260px; }
.pfilters__date { display: grid; gap: 2px; font-size: 12px; color: var(--muted); flex: 0 1 160px; }
.pfilters__date .input { width: 100%; }

/* Payment dialog */
.factcard__secure { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 0; }
.paydlg { border: 0; padding: 0; border-radius: var(--r-xl); width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px);
  box-shadow: 0 30px 80px -20px rgba(43,11,69,.5); color: var(--ink); }
.paydlg::backdrop { background: rgba(43, 11, 69, .55); backdrop-filter: blur(3px); }
.paydlg[open] { animation: dlg-in .22s ease-out; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.paydlg__in { display: grid; gap: 16px; padding: 22px 24px 20px; }
.paydlg__head { display: flex; justify-content: space-between; align-items: center; }
.paydlg__head .h3 { margin: 0; }
.paydlg__course { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--page); border: 1px solid var(--line); }
.paydlg__thumb { flex: none; width: 76px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--grad); color: #fff; }
.paydlg__thumb img { width: 100%; height: 100%; object-fit: cover; }
.paydlg__thumb .i { width: 22px; height: 22px; }
.paydlg__course div { display: grid; gap: 2px; min-width: 0; }
.paydlg__course strong { color: var(--plum); line-height: 1.35; font-size: 15px; }
.paydlg__course small { color: var(--muted); font-size: 13px; }
.paydlg__sum { margin: 0; display: grid; }
.paydlg__sum div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 14.5px; }
.paydlg__sum dt { color: var(--muted); }
.paydlg__sum dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.paydlg__total { border-bottom: 0 !important; align-items: baseline; padding-top: 12px !important; }
.paydlg__total dt { color: var(--plum) !important; font-weight: 700; }
.paydlg__in:focus { outline: none; }
.paydlg__total dd { white-space: nowrap; font-family: var(--display); font-weight: 400 !important; font-size: 40px; color: var(--violet); line-height: 1; letter-spacing: .02em; }
.paydlg__secure { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--ok-bg); color: #0F4D35; }
.paydlg__secure .i { flex: none; margin-top: 2px; }
.paydlg__secure p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.paydlg__secure strong { display: block; font-size: 14px; margin-bottom: 2px; }
.paydlg__fine { margin: -6px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.payres, .demopay { text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px; }
.payres > *, .demopay > * { max-width: 100%; }
.payres__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--violet); margin-bottom: 6px; }
.payres__icon .i { width: 34px; height: 34px; stroke-width: 2.2; }
.payres--paid .payres__icon { background: var(--ok-bg); color: var(--ok); }
.payres--failed .payres__icon, .payres--cancelled .payres__icon { background: var(--bad-bg); color: var(--bad); }
.payres--pending .payres__icon { background: var(--warn-bg); color: var(--warn); }
.payres__kv, .demopay .kv { width: 100%; max-width: 520px; text-align: left; margin: 10px 0; }
.pill--pay-paid { background: var(--ok-bg); color: var(--ok); }
.pill--pay-pending { background: var(--warn-bg); color: var(--warn); }
.pill--pay-failed, .pill--pay-cancelled { background: var(--bad-bg); color: var(--bad); }
.pill--pay-refunded { background: #F0EEF2; color: var(--muted); }

/* Mobile tab bar + iOS install hint */
.tabbar { display: none; }
.iosinstall { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--tabbar-h)); z-index: 70; display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 18px; background: var(--plum); color: #fff; border-radius: var(--r-lg); box-shadow: var(--lift); }
.iosinstall[hidden] { display: none; }
.iosinstall p { margin: 0; font-size: 14px; }
.iosinstall strong { display: block; }
.iosinstall .iconbtn { color: #fff; flex: none; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .mainnav a { padding: 8px 7px; font-size: 13.5px; }
  .course { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
  .kpis, .kpis--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player__grid { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 1000px) {
  .navtoggle { display: inline-grid; }
  .topbar__actions { margin-left: auto; }
  .mainnav {
    position: fixed; inset: 71px 0 auto 0; display: none; flex-direction: column; background: #fff; padding: 10px var(--gutter) 18px;
    border-bottom: 1px solid var(--line); box-shadow: var(--lift); margin: 0;
  }
  .mainnav.is-open { display: flex; }
  .mainnav a { padding: 12px; font-size: 16px; }
  .mainnav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orchid); background: var(--mist); border-radius: 0 10px 10px 0; }
}

@media (max-width: 900px) {
  .mainnav {
    position: fixed; inset: 71px 0 auto 0; display: none; flex-direction: column; background: #fff; padding: 10px var(--gutter) 18px;
    border-bottom: 1px solid var(--line); box-shadow: var(--lift); margin: 0;
  }
  .mainnav.is-open { display: flex; }
  .mainnav a { padding: 12px; font-size: 16px; }
  .mainnav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orchid); background: var(--mist); border-radius: 0 10px 10px 0; }
  .topbar__actions { margin-left: auto; }
  .usermenu__name { display: none; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 8px; }
  .hero__photo { margin: 0 calc(var(--gutter) * -1); }
  .hero h1 { max-width: 16ch; }
  .groups { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey::before { left: 11px; right: auto; top: 12px; bottom: 24px; width: 4px; height: auto; }
  .journey li { padding: 0 0 22px 48px; }
  .journey__dot--end { left: -4px; }
  .verifyband { grid-template-columns: 1fr; padding: 22px; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .course { grid-template-columns: 1fr; }
  .course__side { position: static; order: -1; }
  .coursecard__media { aspect-ratio: 16 / 9; }
  .outcomes ul { grid-template-columns: 1fr; }
  .mygrid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__art { padding: 28px var(--gutter); min-height: 0; }
  .auth__copy { gap: 14px; }
  .auth__list, .auth__art .brand { display: none; }
  .display--auth { font-size: 34px; }
  .pnl { grid-template-columns: 1fr; }
  .pnl__side { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; position: sticky; top: 71px; z-index: 20; }
  .pnl__side nav { display: flex; overflow-x: auto; position: static; scrollbar-width: none; }
  .pnl__side a { flex: none; padding: 8px 12px; font-size: 14px; }
  .pnl__grid2, .pnl__grid2--side { grid-template-columns: 1fr; }

  .player__grid { grid-template-columns: 1fr; }
  .player__toggle { display: inline-grid; }
  .player__prog { width: 110px; }
  .syllabus {
    position: fixed; inset: 58px 0 var(--tabbar-h) auto; width: min(380px, 92vw); z-index: 35; max-height: none;
    transform: translateX(105%); transition: transform .25s ease; box-shadow: var(--lift);
  }
  .syllabus.is-open { transform: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-xs { display: none; }
  .mainnav .mainnav__login { display: block; }
  .topbar__in { min-height: 62px; gap: 10px; }
  .mainnav { top: 62px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__word { font-size: 34px; }
  .brand__org { font-size: 6.2px; }
  .hero__lead { font-size: 16px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__stats div + div { padding-left: 12px; }
  .hero__stats dt { font-size: 12px; }
  .groups { gap: 10px; }
  .gtile { padding: 16px; }
  .gtile__icon { width: 44px; height: 44px; margin-bottom: 6px; }
  .gtile__name { font-size: 16px; }
  .cgrid { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr; }
  .form__grid, .form__grid--3, .groupcards__grid { grid-template-columns: 1fr; }
  .verifyband__field, .verify__form { flex-direction: column; }
  .kv div { grid-template-columns: 1fr; gap: 2px; }
  .mestats { width: 100%; }
  .mestats div { flex: 1; min-width: 0; padding: 10px 12px; }
  .mestats dd { font-size: 36px; }
  .rowcard { flex-wrap: wrap; }
  .rowcard__cover { width: 84px; }
  .rowcard__cta { width: 100%; }
  .rowcard__cta .btn { width: 100%; }
  .empty--inline { flex-direction: column; align-items: flex-start; }
  .empty--inline .btn { margin: 0; width: 100%; }
  .lessonnav .btn { padding: 10px 14px; font-size: 14px; }
  .qcard__text { font-size: 17px; }
  .exam__dot { width: 30px; height: 30px; }
  .exam__countword { display: none; }
  .exam__nav .btn { padding: 10px 14px; }
  .kpi__num { font-size: 44px; }
  .toasts { top: auto; bottom: calc(16px + var(--tabbar-h)); left: 16px; right: 16px; max-width: none; }
  .paydlg { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92vh; }
  .paydlg__in { padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); gap: 14px; }
  .paydlg__total dd { font-size: 34px; }

  /* App-like bottom tab bar for signed-in learners */
  body.has-tabbar { --tabbar-h: 64px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .has-tabbar .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
  }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; }
  .tabbar a .i { width: 23px; height: 23px; }
  .tabbar a[aria-current="page"] { color: var(--violet); }
  .tabbar a[aria-current="page"] .i { stroke-width: 2.2; }
  .has-tabbar .footer { padding-bottom: 24px; }
  .page-exam.has-tabbar .tabbar, .page-player.has-tabbar .tabbar { display: none; }
  .page-exam.has-tabbar, .page-player.has-tabbar { --tabbar-h: 0px; padding-bottom: 0; }
  .player__prog { display: none; }
  .page-player .topbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .footer, .tabbar, .toasts { display: none !important; }
}
