/* SkillsPillar design system
   -------------------------------------------------------------- */
:root {
  --bg: #f9f7f2;
  --surface: #ffffff;
  --surface-2: #f3efe6;
  --surface-3: #e9e3d6;
  --border: #e6dfd1;
  --border-strong: #d3cab8;
  --text: #0f1430;
  --text-2: #363b58;
  --muted: #6b6e85;
  --primary: #1b2559;
  --primary-600: #0f1640;
  --primary-50: #eef0f7;
  --primary-100: #dde2f1;
  --on-primary: #ffffff;
  --accent: #3a4db3;
  --ink: #0c1130;
  --ink-2: #172050;
  --gold: #b7862c;
  --gold-2: #d9ae5c;
  --gold-50: #faf2e0;
  --success: #16825a;
  --success-50: #e3f4ea;
  --danger: #c93a45;
  --danger-50: #fbe7e8;
  --warning: #c77c08;
  --warning-50: #fcf0da;
  --info: #2466c9;
  --info-50: #e4eefb;
  --shadow-sm: 0 1px 2px rgba(15, 20, 48, .05);
  --shadow: 0 1px 2px rgba(15, 20, 48, .04), 0 10px 30px -12px rgba(15, 20, 48, .16);
  --shadow-lg: 0 2px 6px rgba(15, 20, 48, .04), 0 30px 60px -20px rgba(15, 20, 48, .28);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --container: 1220px;
  --nav-h: 72px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #090c1a;
  --surface: #10142a;
  --surface-2: #161b36;
  --surface-3: #212747;
  --border: #22284a;
  --border-strong: #323a63;
  --text: #eef0f8;
  --text-2: #c7cbe0;
  --muted: #9095b3;
  --primary: #c8d0ff;
  --primary-600: #e1e6ff;
  --primary-50: #171d3d;
  --primary-100: #232b58;
  --on-primary: #0a0d1c;
  --accent: #9aa8ff;
  --ink: #060814;
  --ink-2: #10152e;
  --gold: #e0b465;
  --gold-2: #f0cd8c;
  --gold-50: #2a2213;
  --success: #3cc68a;
  --success-50: #11281e;
  --danger: #f06b73;
  --danger-50: #2e1518;
  --warning: #f2b441;
  --warning-50: #2c2211;
  --info: #5aa5ff;
  --info-50: #132337;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1, h2 { font-family: var(--font-display); font-weight: 520; letter-spacing: -.02em; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--text); letter-spacing: -.015em; }
h3, h4 { font-weight: 650; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
.display { font-family: var(--font-display); font-weight: 560; letter-spacing: -.02em; font-optical-sizing: auto; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
::selection { background: var(--primary-100); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

.i { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 760px; }
.container-md { max-width: 960px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xs { font-size: .78rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack > * + * { margin-top: 16px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 650; color: var(--gold); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Buttons ------------------------------------------------------ */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 11px;
  font: 600 .92rem/1 var(--font); letter-spacing: -.005em;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { color: var(--btn-fg); border-color: var(--text-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-primary { --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-bd: var(--primary); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { --btn-bg: var(--primary-600); border-color: var(--primary-600); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
:root[data-theme="dark"] .btn-dark { --btn-bg: #f0eff6; --btn-fg: #0c0d13; --btn-bd: #f0eff6; }
.btn-gold { --btn-bg: var(--gold); --btn-fg: #1a1406; --btn-bd: var(--gold); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-danger { --btn-bg: var(--danger-50); --btn-fg: var(--danger); --btn-bd: transparent; }
.btn-success { --btn-bg: var(--success); --btn-fg: #fff; --btn-bd: var(--success); }
.btn-sm { height: 34px; padding: 0 12px; font-size: .84rem; border-radius: 9px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; }

/* Forms --------------------------------------------------------- */
.field { display: block; margin-bottom: 18px; }
.field > label, .label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--text-2); }
.hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px;
  font: 400 .95rem var(--font); color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 11px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.input-group { position: relative; }
.input-group .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-group .input { padding-left: 40px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .93rem; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.error-text { color: var(--danger); font-size: .82rem; margin-top: 5px; }

/* Cards, tags ----------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.card-head h3 { margin: 0; font-size: 1rem; }
.card-body { padding: 22px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.tag-green { background: var(--success-50); color: var(--success); }
.tag-amber { background: var(--warning-50); color: var(--warning); }
.tag-red { background: var(--danger-50); color: var(--danger); }
.tag-blue { background: var(--info-50); color: var(--info); }
.tag-primary { background: var(--primary-50); color: var(--primary); }
.tag-gold { background: var(--gold-50); color: var(--gold); }
.tag .i { width: 13px; height: 13px; }

.avatar { display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; flex-shrink: 0; font-weight: 650; color: #fff; background: hsl(var(--h, 250) 55% 52%); }
.avatar-sm { width: 30px; height: 30px; font-size: .74rem; }
.avatar-md { width: 40px; height: 40px; font-size: .88rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }

/* Alerts & toasts ------------------------------------------------ */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; font-size: .92rem; margin-bottom: 16px; background: var(--info-50); color: var(--text); border: 1px solid color-mix(in srgb, var(--info) 25%, transparent); }
.alert .i { color: var(--info); margin-top: 3px; }
.alert-success { background: var(--success-50); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.alert-success .i { color: var(--success); }
.alert-error { background: var(--danger-50); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-error .i { color: var(--danger); }
.alert-warning { background: var(--warning-50); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.alert-warning .i { color: var(--warning); }

.toasts { position: fixed; z-index: 1000; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 240px; max-width: 360px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: .9rem; animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.2); }
:root[data-theme="dark"] .toast { background: var(--surface-3); }
.toast.out { animation: toast-out .3s ease forwards; }
.toast .toast-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); flex-shrink: 0; }
.toast strong { display: block; font-size: .92rem; }
.toast span { opacity: .75; font-size: .82rem; }
.toast-xp .toast-ic { background: var(--gold); color: #1a1406; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

/* Celebration modal */
.celebrate { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; background: rgba(8, 9, 16, .55); backdrop-filter: blur(6px); animation: fade .25s; padding: 20px; }
.celebrate-card { width: 100%; max-width: 400px; text-align: center; background: var(--surface); border-radius: 24px; padding: 36px 28px 28px; box-shadow: var(--shadow-lg); animation: pop .45s cubic-bezier(.2, .9, .3, 1.3); }
.celebrate-medal { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .45), transparent 45%), var(--c, var(--gold)); box-shadow: 0 0 0 8px color-mix(in srgb, var(--c, var(--gold)) 18%, transparent), 0 16px 32px -10px var(--c, var(--gold)); }
.celebrate-medal .i { width: 44px; height: 44px; }
.celebrate h2 { font-family: var(--font-display); margin-bottom: 6px; }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(10px); } }
@keyframes fade { from { opacity: 0; } }

/* Navbar ------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.nav .container { height: 100%; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(150deg, #1b2559, #0c1130); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(217,174,92,.35), 0 6px 14px -6px rgba(12,17,48,.6); }
.brand-mark svg { width: 20px; height: 20px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 9px; color: var(--text-2); font-weight: 550; font-size: .92rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-search { flex: 1; max-width: 340px; }
.nav-search .input { height: 40px; background: var(--surface); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 650; font-size: .86rem; color: var(--text); }
.nav-pill .i { width: 17px; height: 17px; }
.nav-pill.streak .i { color: #f76b15; }
.nav-pill.xp .i { color: var(--gold); }
.nav-toggle { display: none; }

.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; border-radius: 999px; padding: 2px; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 60; animation: pop .18s ease; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; color: var(--text-2); font: 500 .9rem var(--font); background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); color: var(--text); }
.dropdown-menu .sep { height: 1px; background: var(--border); margin: 6px 4px; }
.dropdown-head { padding: 10px 12px 12px; display: flex; gap: 12px; align-items: center; }

/* Footer -------------------------------------------------------- */
.footer { margin-top: 90px; background: var(--ink); color: #b9b8c6; padding: 64px 0 32px; }
.footer a { color: #d9d8e3; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer h4 { color: #fff; font-size: .88rem; letter-spacing: .02em; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .92rem; }
.footer .brand { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; font-size: .85rem; flex-wrap: wrap; }

/* Hero ---------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 18%, transparent), transparent); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto auto -40% -10%; width: 600px; height: 600px; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 16%, transparent), transparent); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-weight: 520; font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: -.03em; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero-lead { font-size: 1.14rem; color: var(--text-2); max-width: 540px; margin-bottom: 30px; }
.hero-search { display: flex; gap: 8px; padding: 7px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); max-width: 520px; }
.hero-search .input { border: 0; box-shadow: none; height: 46px; }
.hero-proof { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-proof strong { display: block; font-size: 1.5rem; font-family: var(--font-display); font-weight: 600; }
.hero-proof span { color: var(--muted); font-size: .86rem; }

.hero-visual { position: relative; }
.hv-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 18px; }
.hv-main .hv-video { aspect-ratio: 16 / 9; border-radius: 12px; background: linear-gradient(135deg, #1e1b4b, #4f46e5 55%, #c084fc); position: relative; overflow: hidden; display: grid; place-items: center; }
.hv-main .hv-video .play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; color: #4f46e5; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.hv-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .86rem; animation: floaty 6s ease-in-out infinite; }
.hv-float .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.hv-float strong { display: block; }
.hv-f1 { left: -34px; bottom: 58px; }
.hv-f2 { right: -22px; top: -18px; animation-delay: -3s; }
.hv-f3 { right: 20px; bottom: -26px; animation-delay: -1.5s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* Sections ------------------------------------------------------ */
.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-weight: 540; margin-bottom: 6px; }
.section-head p { color: var(--muted); margin: 0; max-width: 560px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cat-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); border-color: var(--border-strong); }
.cat-card .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.cat-card strong { display: block; font-size: .96rem; }
.cat-card span { font-size: .8rem; color: var(--muted); }

.feature { padding: 26px; border-radius: 18px; background: var(--bg); border: 1px solid var(--border); }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

.cta-band { border-radius: 28px; padding: 56px; background: radial-gradient(900px 300px at 90% -20%, rgba(183, 134, 44, .28), transparent), linear-gradient(135deg, #0c1130, #1b2559); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-family: var(--font-display); font-weight: 520; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { color: #c9c8da; margin: 0; }

/* Course cards --------------------------------------------------- */
.course-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; color: var(--text); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); border-color: var(--border-strong); }
.course-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.course-card:hover .course-thumb img { transform: scale(1.04); }
.course-thumb .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .92); background: linear-gradient(135deg, var(--c1, #1b2559), var(--c2, #0c1130)); }
.course-thumb .placeholder .i { width: 46px; height: 46px; opacity: .9; }
.course-thumb .tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.course-thumb .tags .tag { background: rgba(255, 255, 255, .94); color: #1a1a22; backdrop-filter: blur(6px); }
.course-body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.course-cat { font-size: .74rem; font-weight: 650; color: var(--c, var(--primary)); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.course-title { font-size: 1.04rem; font-weight: 650; line-height: 1.35; margin: 0 0 6px; }
.course-sub { color: var(--muted); font-size: .87rem; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); margin-top: auto; }
.course-meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-meta .i { width: 15px; height: 15px; }
.course-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.price { font-weight: 700; font-size: 1.02rem; white-space: nowrap; }
.price del { color: var(--muted); font-weight: 500; font-size: .84rem; margin-left: 6px; }
.price-free { color: var(--success); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; font-size: .85rem; }
.rating .i { color: #f5a524; fill: #f5a524; width: 15px; height: 15px; }

/* Catalog -------------------------------------------------------- */
.page-head { padding: 44px 0 28px; }
.page-head h1 { font-family: var(--font-display); font-weight: 540; }
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--nav-h) + 20px); }
.filter-group { margin-bottom: 24px; }
.filter-group h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.filter-list { display: grid; gap: 2px; }
.filter-list a { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 9px; color: var(--text-2); font-size: .92rem; }
.filter-list a:hover { background: var(--surface-2); color: var(--text); }
.filter-list a.active { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-size: .86rem; font-weight: 550; }
.chip:hover { border-color: var(--text-2); color: var(--text); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
:root[data-theme="dark"] .chip.active { background: #f0eff6; color: #0c0d13; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; }
.pagination a.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.empty .ic .i { width: 28px; height: 28px; }
.empty h3 { color: var(--text); }

/* Course detail --------------------------------------------------- */
.course-hero { background: var(--ink); color: #e6e5ef; padding: 56px 0 60px; position: relative; overflow: hidden; }
.course-hero::before { content: ""; position: absolute; right: -200px; top: -200px; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(183, 134, 44, .22), transparent); }
.course-hero .container { position: relative; }
.course-hero h1 { color: #fff; font-family: var(--font-display); font-weight: 520; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.025em; max-width: 760px; }
.course-hero .lead { font-size: 1.1rem; color: #bdbcd0; max-width: 700px; }
.course-hero .crumbs { font-size: .85rem; margin-bottom: 18px; color: #9e9cb4; }
.course-hero .crumbs a { color: #c9c7ff; }
.course-hero .meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: .9rem; color: #c8c7d8; margin-top: 18px; align-items: center; }
.course-hero .meta span { display: inline-flex; align-items: center; gap: 7px; }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 40px; align-items: start; }
.course-aside { margin-top: -230px; position: sticky; top: calc(var(--nav-h) + 20px); z-index: 2; }
.buy-card { overflow: hidden; }
.buy-card .course-thumb { aspect-ratio: 16 / 10; }
.buy-card .card-body { padding: 24px; }
.buy-card .big-price { font-size: 2rem; font-weight: 750; letter-spacing: -.02em; }
.buy-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: .9rem; color: var(--text-2); }
.buy-card li { display: flex; gap: 10px; align-items: center; }
.buy-card li .i { color: var(--muted); }
.box { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--surface); margin-bottom: 28px; }
.box h2 { font-size: 1.3rem; }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; list-style: none; padding: 0; margin: 0; }
.outcomes li { display: flex; gap: 10px; font-size: .93rem; color: var(--text-2); }
.outcomes .i { color: var(--success); margin-top: 3px; }
.prose { color: var(--text-2); font-size: 1rem; line-height: 1.75; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { border-radius: 12px; margin: 1.2em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 3px solid var(--primary); color: var(--text); font-style: italic; }
.prose pre { background: var(--ink); color: #e8e7f2; padding: 18px; border-radius: 12px; overflow: auto; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.2em; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }

.curriculum details { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--surface); overflow: hidden; }
.curriculum summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 15px 18px; font-weight: 600; background: var(--surface-2); }
.curriculum summary::-webkit-details-marker { display: none; }
.curriculum summary .chev { transition: transform .2s; color: var(--muted); }
.curriculum details[open] summary .chev { transform: rotate(90deg); }
.curriculum summary .muted { margin-left: auto; font-weight: 500; font-size: .83rem; }
.curriculum .lesson-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border); font-size: .92rem; color: var(--text-2); }
.curriculum .lesson-row .i { color: var(--muted); }
.curriculum .lesson-row .dur { margin-left: auto; font-size: .82rem; color: var(--muted); }

.instructor { display: flex; gap: 18px; align-items: flex-start; }
.review-item { padding: 18px 0; border-top: 1px solid var(--border); }
.review-item:first-child { border-top: 0; }
.stars { display: inline-flex; gap: 2px; }
.stars .i { width: 16px; height: 16px; color: var(--border-strong); }
.stars .i.on { color: #f5a524; fill: #f5a524; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { display: none; }
.star-input label { cursor: pointer; color: var(--border-strong); }
.star-input label .i { width: 26px; height: 26px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a524; }
.star-input input:checked ~ label .i, .star-input label:hover .i, .star-input label:hover ~ label .i { fill: #f5a524; }

/* Auth pages ------------------------------------------------------ */
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: radial-gradient(700px 400px at 20% 0%, rgba(183, 134, 44, .3), transparent), linear-gradient(160deg, #0c1130, #1b2559); color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 2.3rem; line-height: 1.12; }
.auth-side ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; color: #cfcde2; }
.auth-side li { display: flex; gap: 12px; align-items: center; }
.auth-side li .i { color: var(--gold); }
.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-family: var(--font-display); font-weight: 540; font-size: 2rem; }

/* Dashboard ---------------------------------------------------- */
.dash-head { padding: 36px 0 8px; }
.dash-head h1 { font-family: var(--font-display); font-weight: 520; font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 4px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.stat .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.stat strong { display: block; font-size: 1.55rem; line-height: 1.1; letter-spacing: -.02em; }
.stat span { font-size: .82rem; color: var(--muted); }

.continue-card { display: grid; grid-template-columns: 260px 1fr; overflow: hidden; }
.continue-card .course-thumb { aspect-ratio: auto; height: 100%; min-height: 180px; }
.continue-card .body { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--primary)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.progress.gold > span { background: linear-gradient(90deg, #e2a93b, #f5c76a); }
.progress-sm { height: 5px; }

.ring { --p: 0; --size: 120px; --thick: 10px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ring-c, var(--primary)) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: var(--thick); border-radius: 50%; background: var(--surface); }
.ring > * { position: relative; text-align: center; line-height: 1.1; }
.ring strong { display: block; font-size: 1.5rem; }
.ring span { font-size: .72rem; color: var(--muted); }

.level-card { padding: 22px; text-align: center; }
.level-card .ring { margin: 4px auto 14px; }
.streak-week { display: flex; justify-content: space-between; gap: 6px; margin-top: 16px; }
.streak-day { flex: 1; text-align: center; font-size: .72rem; color: var(--muted); }
.streak-day .dot { width: 30px; height: 30px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.streak-day.on .dot { background: linear-gradient(145deg, #ff9a3c, #f5484d); color: #fff; }
.streak-day.today .dot { outline: 2px solid var(--primary); outline-offset: 2px; }
.streak-day .i { width: 15px; height: 15px; }

.heatmap { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); grid-auto-columns: 13px; gap: 4px; overflow-x: auto; padding-bottom: 4px; justify-content: start; }
.heatmap i { width: 13px; height: 13px; border-radius: 3px; background: var(--surface-3); }
.heatmap i[data-l="1"] { background: color-mix(in srgb, var(--primary) 30%, var(--surface-3)); }
.heatmap i[data-l="2"] { background: color-mix(in srgb, var(--primary) 55%, var(--surface-3)); }
.heatmap i[data-l="3"] { background: color-mix(in srgb, var(--primary) 80%, var(--surface-3)); }
.heatmap i[data-l="4"] { background: var(--primary); }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px; }
.medal { text-align: center; font-size: .74rem; color: var(--muted); line-height: 1.3; }
.medal .m { width: 56px; height: 56px; margin: 0 auto 7px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .4), transparent 45%), var(--c); box-shadow: 0 8px 18px -8px var(--c); }
.medal.locked .m { background: var(--surface-2); color: var(--border-strong); box-shadow: none; border: 2px dashed var(--border-strong); }
.medal strong { display: block; color: var(--text); font-size: .78rem; }

.my-course { display: grid; grid-template-columns: 150px 1fr auto; gap: 18px; align-items: center; padding: 14px; }
.my-course .course-thumb { border-radius: 12px; }
.my-course h3 { font-size: 1rem; margin-bottom: 4px; }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.list-row:first-child { border-top: 0; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs a, .tabs button { padding: 11px 14px; border: 0; background: none; font: 600 .9rem var(--font); color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tabs a.active, .tabs button.active { color: var(--text); border-bottom-color: var(--primary); }

/* Leaderboard ---------------------------------------------------- */
.podium { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 16px; align-items: end; margin-bottom: 28px; }
.podium .p { text-align: center; padding: 22px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.podium .p1 { padding-top: 34px; background: linear-gradient(180deg, var(--gold-50), var(--surface)); border-color: color-mix(in srgb, var(--gold) 40%, var(--border)); }
.podium .avatar { margin: 0 auto 10px; }
.podium .place { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--gold); }
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table td { padding: 12px 14px; border-top: 1px solid var(--border); }
.lb-table tr.me td { background: var(--primary-50); }
.lb-rank { width: 50px; font-weight: 700; color: var(--muted); }

/* Tables (admin) --------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 650; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }

/* Certificate ------------------------------------------------------ */
.cert-page { padding: 40px 0; }
.certificate { position: relative; aspect-ratio: 1.414; max-width: 1000px; margin: 0 auto; background: #fffdf8; color: #1c1b22; border-radius: 8px; box-shadow: var(--shadow-lg); padding: 5.5%; overflow: hidden; }
.certificate::before { content: ""; position: absolute; inset: 2.2%; border: 2px solid #c9973f; border-radius: 4px; pointer-events: none; }
.certificate::after { content: ""; position: absolute; inset: 3.1%; border: 1px solid rgba(201, 151, 63, .45); border-radius: 2px; pointer-events: none; }
.cert-inner { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: space-between; }
.cert-orn { position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(79, 70, 229, .07), transparent); }
.cert-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; font-size: clamp(.8rem, 1.6vw, 1.05rem); }
.cert-title { font-family: var(--font-display); font-size: clamp(1.4rem, 4.4vw, 3.2rem); letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: #1c1b22; margin: 0; }
.cert-sub { text-transform: uppercase; letter-spacing: .3em; font-size: clamp(.55rem, 1.1vw, .8rem); color: #8a7440; }
.cert-name { font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 5vw, 3.6rem); font-weight: 450; color: #2b2780; margin: .2em 0; border-bottom: 1px solid rgba(0, 0, 0, .15); padding: 0 .8em .15em; }
.cert-course { font-size: clamp(.9rem, 2vw, 1.4rem); font-weight: 650; max-width: 80%; color: #1c1b22; }
.cert-foot { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; font-size: clamp(.55rem, 1.05vw, .82rem); color: #4a4855; }
.cert-sign { border-top: 1px solid rgba(0, 0, 0, .3); padding-top: 6px; }
.cert-seal { width: clamp(64px, 11vw, 110px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .5), transparent 45%), #c9973f; box-shadow: 0 0 0 5px #fffdf8, 0 0 0 7px #c9973f; }
.cert-seal .i { width: 45%; height: 45%; }
.cert-qr { display: flex; gap: 10px; align-items: center; justify-content: flex-end; text-align: left; }
.cert-qr canvas, .cert-qr img, .cert-qr svg { width: clamp(48px, 8vw, 80px) !important; height: auto !important; }

/* Flashcard review ------------------------------------------------ */
.review-shell { max-width: 680px; margin: 0 auto; padding: 36px 0; }
.flip { perspective: 1400px; cursor: pointer; }
.flip-inner { position: relative; min-height: 320px; transition: transform .6s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 36px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 1.3rem; font-weight: 550; line-height: 1.45; }
.flip-face.back { transform: rotateY(180deg); background: linear-gradient(160deg, var(--surface), var(--primary-50)); }
.flip-face .lbl { position: absolute; top: 18px; left: 22px; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 650; }
.grade-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.grade-row .btn { height: 58px; flex-direction: column; gap: 2px; }
.grade-row .btn small { font-weight: 500; opacity: .7; font-size: .72rem; }
.g-again { --btn-bg: var(--danger-50); --btn-fg: var(--danger); --btn-bd: transparent; }
.g-hard { --btn-bg: var(--warning-50); --btn-fg: var(--warning); --btn-bd: transparent; }
.g-good { --btn-bg: var(--success-50); --btn-fg: var(--success); --btn-bd: transparent; }
.g-easy { --btn-bg: var(--info-50); --btn-fg: var(--info); --btn-bd: transparent; }
kbd { font-family: var(--mono); font-size: .75em; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border-strong); border-bottom-width: 2px; background: var(--surface); color: var(--text-2); }

/* Checkout --------------------------------------------------------- */
.pay-methods { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.pay-methods span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); font-size: .8rem; font-weight: 600; color: var(--text-2); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--primary); animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive ------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid, .course-layout, .dash-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .course-aside { margin-top: 0; position: static; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-search { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); padding: 12px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .continue-card { grid-template-columns: 1fr; }
  .continue-card .course-thumb { min-height: 0; aspect-ratio: 16 / 9; }
  .outcomes { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 26px; }
  .nav-pill.xp { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 56px; }
  .hv-float { display: none; }
  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .my-course { grid-template-columns: 90px 1fr; }
  .my-course > :last-child { grid-column: 1 / -1; }
  .podium { grid-template-columns: 1fr; }
  .grade-row { grid-template-columns: repeat(2, 1fr); }
  .toasts { left: 16px; right: 16px; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .nav, .footer, .no-print, .toasts { display: none !important; }
  body { background: #fff; }
}
@media (max-width: 1000px) { .p-hide-mobile { display: none !important; } }
.i.filled { fill: currentColor; }
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }
body > .admin, body > .player { flex: 1 0 auto; width: 100%; }
.lb-rank { white-space: nowrap; }
.footer { margin-top: 90px; }

/* =====================================================================
   Refined premium layer (v1.1)
   ===================================================================== */
.btn-primary { box-shadow: 0 8px 20px -10px rgba(12, 17, 48, .55); }
:root[data-theme="dark"] .btn-primary { box-shadow: none; }
.btn-gold { --btn-bg: linear-gradient(180deg, var(--gold-2), var(--gold)); background: linear-gradient(180deg, var(--gold-2), var(--gold)); --btn-fg: #1a1406; --btn-bd: transparent; box-shadow: 0 8px 22px -10px rgba(183, 134, 44, .8); }
.btn-gold:hover { filter: brightness(1.04); }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { --btn-bd: #fff; color: #fff; }
.nav-links a.active { background: transparent; color: var(--text); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav { background: color-mix(in srgb, var(--bg) 86%, transparent); }
.serif { font-family: var(--font-display); }
.gold { color: var(--gold); }
.lead { font-size: 1.12rem; color: var(--text-2); line-height: 1.65; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 480; letter-spacing: -.025em; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center p { margin: 0 auto; }
.rule-gold { width: 44px; height: 2px; background: var(--gold); border: 0; margin: 0 0 18px; }
.center .rule-gold { margin: 0 auto 18px; }

/* Hero */
.hx { position: relative; overflow: hidden; padding: 80px 0 96px; background:
  radial-gradient(900px 520px at 85% 10%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%); }
.hx::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%); }
.hx-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hx h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 450; margin-bottom: 22px; }
.hx h1 em { font-style: italic; color: var(--gold); font-weight: 420; }
.hx .lead { max-width: 540px; margin-bottom: 32px; }
.hx-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hx-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .88rem; }
.hx-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hx-trust .i { color: var(--gold); }
.hx-stage { position: relative; min-height: 470px; }
.hx-player { position: absolute; left: 0; right: 30px; top: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.hx-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: .76rem; color: var(--muted); }
.hx-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); display: inline-block; }
.hx-bar b { margin-left: 8px; color: var(--text-2); font-weight: 600; }
.hx-video { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; background: radial-gradient(600px 300px at 80% 0%, rgba(217, 174, 92, .35), transparent 60%), linear-gradient(145deg, #1b2559, #0c1130); overflow: hidden; }
.hx-video::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; }
.hx-video .play { position: relative; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; color: #1a1406; background: linear-gradient(180deg, #f0cd8c, #d9ae5c); box-shadow: 0 0 0 10px rgba(217, 174, 92, .18), 0 14px 30px rgba(0, 0, 0, .35); }
.hx-video .play .i { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; }
.hx-video .cap { position: absolute; left: 18px; bottom: 16px; color: #fff; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.01em; }
.hx-video .cap small { display: block; font-family: var(--font); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #d9ae5c; margin-bottom: 4px; }
.hx-meta { padding: 16px 18px 18px; display: grid; gap: 10px; }
.hx-float { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); animation: floaty 7s ease-in-out infinite; }
.hx-quiz { width: 250px; left: -36px; bottom: 6px; padding: 14px; animation-delay: -2s; }
.hx-quiz .q { font-size: .8rem; font-weight: 650; margin-bottom: 8px; }
.hx-quiz .o { display: flex; align-items: center; gap: 8px; font-size: .78rem; padding: 7px 9px; border-radius: 9px; border: 1px solid var(--border); margin-bottom: 6px; color: var(--text-2); }
.hx-quiz .o.ok { border-color: var(--success); background: var(--success-50); color: var(--text); font-weight: 600; }
.hx-quiz .o .i { width: 14px; height: 14px; color: var(--success); margin-left: auto; }
.hx-cert { width: 230px; right: -8px; bottom: -24px; padding: 16px 16px 14px; background: #fffdf7; color: #1c1b22; text-align: center; animation-delay: -4s; }
.hx-cert::before { content: ""; position: absolute; inset: 6px; border: 1px solid #c9973f; border-radius: 11px; pointer-events: none; }
.hx-cert small { display: block; font-size: .56rem; letter-spacing: .24em; text-transform: uppercase; color: #8a7440; }
.hx-cert strong { display: block; font-family: var(--font-display); font-style: italic; font-weight: 450; font-size: 1.3rem; color: #1b2559; margin: 6px 0 2px; }
.hx-cert .seal { width: 30px; height: 30px; margin: 8px auto 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #c9973f; }
.hx-cert .seal .i { width: 16px; height: 16px; }
.hx-chip { right: 2px; top: -6px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: .82rem; animation-delay: -1s; }
.hx-chip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff1e6; color: #e8590c; }
.hx-chip strong { display: block; }

/* Audience */
.aud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.aud a { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform .25s, box-shadow .25s, border-color .25s; }
.aud a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold) 45%, var(--border)); color: var(--text); }
.aud .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-50); color: var(--gold); margin-bottom: 6px; }
.aud h3 { font-size: 1.05rem; margin: 0; }
.aud p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.aud .more { font-size: .85rem; font-weight: 600; color: var(--primary); display: inline-flex; gap: 6px; align-items: center; }

/* Method */
.method { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; background: var(--surface); }
.method > div { padding: 30px 24px; border-right: 1px solid var(--border); position: relative; }
.method > div:last-child { border-right: 0; }
.method .n { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--gold); font-weight: 400; margin-bottom: 18px; }
.method h3 { font-size: 1.05rem; margin-bottom: 6px; }
.method p { font-size: .88rem; color: var(--muted); margin: 0; }
.method .ic { position: absolute; top: 30px; right: 22px; color: var(--border-strong); }
.method .ic .i { width: 26px; height: 26px; }

/* Paths */
.path-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform .25s, box-shadow .25s; }
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.path-top { position: relative; padding: 26px 24px 22px; color: #fff; background: radial-gradient(400px 200px at 100% 0%, color-mix(in srgb, var(--pc, #b7862c) 55%, transparent), transparent 70%), linear-gradient(150deg, #1b2559, #0c1130); min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; }
.path-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.path-top > * { position: relative; }
.path-top .eyebrow { color: var(--gold-2); }
.path-top h3 { color: #fff; font-family: var(--font-display); font-weight: 480; font-size: 1.45rem; margin: 6px 0 0; letter-spacing: -.02em; }
.path-body { padding: 18px 24px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.path-body p { color: var(--muted); font-size: .9rem; margin: 0; }
.path-steps { display: flex; gap: 6px; }
.path-steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); }
.path-steps i.on { background: var(--gold); }

/* Teams band */
.teams-band { background: radial-gradient(800px 400px at 100% 0%, rgba(183, 134, 44, .22), transparent 60%), linear-gradient(160deg, #0c1130, #1b2559); color: #cdd1e6; border-radius: 28px; padding: 64px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.teams-band h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 460; }
.teams-band .eyebrow { color: var(--gold-2); }
.teams-band ul { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; }
.teams-band li { display: flex; gap: 12px; align-items: flex-start; }
.teams-band li .i { color: var(--gold-2); margin-top: 3px; }
.tb-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 20px; backdrop-filter: blur(6px); }
.tb-card .row-between { color: #fff; }
.tb-row { display: grid; grid-template-columns: 32px 1fr 70px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.tb-row .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #0c1130; }
.tb-row .bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-top: 5px; }
.tb-row .bar span { display: block; height: 100%; background: linear-gradient(90deg, #d9ae5c, #f0cd8c); }
.tb-row .pct { text-align: right; color: #fff; font-weight: 600; }

/* Testimonials */
.quote-card { padding: 30px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 18px; }
.quote-card blockquote { margin: 0; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; color: var(--text); font-weight: 420; }
.quote-card blockquote::before { content: "\201C"; display: block; font-size: 3rem; line-height: .6; color: var(--gold); margin-bottom: 10px; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; align-items: start; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--gold); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* Final CTA */
.final-cta { text-align: center; padding: 88px 24px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 260px at 50% 0%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%); }
.final-cta > * { position: relative; }
.final-cta h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 450; }
.final-cta h2 em { font-style: italic; color: var(--gold); }

.stats-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--border); }
.stats-band div { padding: 26px 20px; text-align: center; border-right: 1px solid var(--border); }
.stats-band div:last-child { border-right: 0; }
.stats-band strong { display: block; font-family: var(--font-display); font-weight: 450; font-size: 2.2rem; color: var(--text); }
.stats-band span { color: var(--muted); font-size: .86rem; }

@media (max-width: 1080px) {
  .hx-grid, .teams-band { grid-template-columns: 1fr; }
  .hx-stage { max-width: 560px; margin: 10px auto 0; width: 100%; }
  .aud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method > div { border-bottom: 1px solid var(--border); }
}
@media (max-width: 700px) {
  .hx { padding: 48px 0 64px; }
  .hx-stage { min-height: 330px; }
  .hx-player { right: 0; }
  .hx-quiz, .hx-chip { display: none; }
  .hx-cert { width: 190px; right: -4px; bottom: -40px; }
  .aud, .method, .faq { grid-template-columns: 1fr; }
  .method > div { border-right: 0; }
  .teams-band { padding: 36px 24px; }
  .section { padding: 64px 0; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stats-band div:nth-child(2) { border-right: 0; }
}
.journey { list-style: none; padding: 0; margin: 0; position: relative; }
.journey::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 30px; width: 2px; background: var(--border); }
.journey li { position: relative; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.journey .step { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); background: var(--surface); border: 2px solid var(--border-strong); color: var(--text-2); }
.journey li.done .step { background: var(--success); border-color: var(--success); color: #fff; }
.journey li.next .step { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 5px var(--gold-50); }
.journey li.finish .step { background: var(--gold-50); border-color: var(--gold); color: var(--gold); }
.journey li.finish.done .step { background: var(--gold); color: #fff; }
.journey-card { flex: 1; display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .2s, box-shadow .2s; min-width: 0; }
a.journey-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); color: var(--text); }
@media (max-width: 600px) { .journey-card .thumb-sm { display: none; } .journey-card { flex-wrap: wrap; } }
.thumb-sm { width: 64px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.thumb-sm .course-thumb { aspect-ratio: 16/9; }
.thumb-sm .placeholder .i { width: 20px; height: 20px; }
.path-steps { display: flex; gap: 5px; }
.path-steps i { flex: 1; height: 5px; border-radius: 5px; background: var(--surface-3); }
.path-steps i.on { background: var(--gold); }
/* Course page v1.1 */
.course-hero { background: radial-gradient(900px 500px at 100% 0%, rgba(183, 134, 44, .18), transparent 60%), linear-gradient(160deg, #0c1130, #151d4a); padding: 60px 0 64px; }
.course-hero .lead { color: #bfc3dc; }
.course-hero .crumbs a { color: var(--gold-2); }
.course-hero .crumbs span { color: #5f6590; margin: 0 4px; }
.course-tabs { position: sticky; top: var(--nav-h); z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.course-tabs .container { display: flex; gap: 6px; overflow-x: auto; }
.course-tabs a { padding: 14px 12px; font-weight: 600; font-size: .9rem; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.course-tabs a:hover { color: var(--text); }
.course-tabs a.active { color: var(--text); border-bottom-color: var(--gold); }
@media (min-width: 1081px) { .course-tabs .container { padding-right: 430px; } }
#overview { scroll-margin-top: 140px; }
.course-aside { margin-top: -300px; top: calc(var(--nav-h) + 70px); }
.path-callout { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; background: var(--gold-50); border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--border)); color: var(--text); font-size: .93rem; }
.path-callout > .i:first-child { color: var(--gold); }
.path-callout > .i:last-child { margin-left: auto; color: var(--gold); }
.path-callout:hover { color: var(--text); border-color: var(--gold); }
.skill-chip { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--primary-50); color: var(--primary); font-size: .82rem; font-weight: 600; }
.includes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.includes div { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 2px; }
.includes .i { color: var(--gold); width: 22px; height: 22px; margin-bottom: 6px; }
.includes strong { font-size: 1.3rem; font-family: var(--font-display); font-weight: 500; }
.includes span { font-size: .8rem; color: var(--muted); }
.rating-summary { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center; padding: 18px 0 8px; }
.rating-summary .big { font-size: 3.2rem; line-height: 1; font-weight: 450; }
.rating-summary .bars { display: grid; gap: 6px; }
.rating-summary .bars .i { width: 13px; height: 13px; color: #f5a524; fill: #f5a524; }
.prose.clamp { max-height: 420px; overflow: hidden; position: relative; }
.prose.clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--surface)); }
.prose.clamp.open { max-height: none; }
.prose.clamp.open::after { display: none; }
.preview-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: none; }
.preview-thumb .course-thumb { aspect-ratio: 16 / 10; }
.preview-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(12, 17, 48, .7)); }
.pv-play { position: absolute; z-index: 1; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0c1130; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .2s; }
.pv-play .i { fill: currentColor; margin-left: 3px; }
.preview-thumb:hover .pv-play { transform: translate(-50%, -50%) scale(1.08); }
.pv-lbl { position: absolute; z-index: 1; left: 0; right: 0; bottom: 14px; text-align: center; color: #fff; font-weight: 650; font-size: .9rem; }
.pv-modal { position: fixed; inset: 0; z-index: 1100; background: rgba(6, 8, 20, .75); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.pv-modal[hidden] { display: none; }
.pv-box { width: 100%; max-width: 900px; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); animation: pop .3s ease; }
.pv-frame { aspect-ratio: 16 / 9; background: #000; }
.pv-frame iframe, .pv-frame video { width: 100%; height: 100%; border: 0; display: block; }
.pv-list { display: grid; padding: 8px; max-height: 200px; overflow-y: auto; }
.pv-list button { display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 10px; font: 500 .9rem var(--font); color: var(--text-2); cursor: pointer; }
.pv-list button:hover { background: var(--surface-2); }
.mobile-buy { display: none; }
@media (max-width: 1080px) {
  .course-aside { margin-top: 0; }
  .mobile-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .2); }
  .mobile-buy form { margin: 0; }
  body:has(.mobile-buy) .footer { padding-bottom: 100px; }
}
@media (max-width: 600px) { .includes { grid-template-columns: repeat(2, 1fr); } .rating-summary { grid-template-columns: 1fr; } }
.course-thumb .placeholder { background: #0c1130; }
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cover-icon { position: absolute; left: 16px; bottom: 14px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #f0cd8c; background: rgba(12, 17, 48, .55); border: 1px solid rgba(217, 174, 92, .4); backdrop-filter: blur(4px); }
.cover-icon .i { width: 22px !important; height: 22px !important; opacity: 1 !important; }
.thumb-sm .cover-icon { display: none; }
.course-card:hover .cover-art { transform: scale(1.04); transition: transform .6s ease; }
.flash-wrap { position: fixed; top: calc(var(--nav-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 60; max-width: 640px; }
.flash-wrap .alert { box-shadow: var(--shadow-lg); animation: toast-in .35s ease; background: var(--surface); }
.course-aside { z-index: 35; margin-top: -330px; }
@media (max-width: 1080px) { .course-aside { margin-top: 0; z-index: 2; } }
[hidden] { display: none !important; }
.nav-mobile-only { display: none !important; }
@media (max-width: 860px) {
  .nav.open .nav-links .nav-mobile-only { display: block !important; }
}
@media (max-width: 600px) {
  .nav .container { gap: 10px; }
  .nav-right { gap: 6px; }
  .nav-hide-sm { display: none !important; }
  .brand { font-size: 1rem; }
  .nav-pill { padding: 0 9px; }
}
html, body { overflow-x: clip; }
