/* Avenue3 Academy — one stylesheet. Colour and font tokens first. */
@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --navy: #0B2447;
  --navy-2: #12305C;
  --navy-3: #1B3F75;
  --ink: #0B1730;
  --text: #33415A;
  --muted: #66748B;
  --line: #E4E9F1;
  --line-2: #EEF2F7;
  --bg: #F5F7FB;
  --card: #FFFFFF;
  --site: #FFFFFF;
  --footer: #071A35;
  --red: #E11D2E;
  --red-d: #C2121F;
  --red-soft: #FDECEE;
  --red-tint: #FF8A94;
  --sky: #DCE8FB;
  --sky-ink: #1D4E9E;
  --ok: #157347; --ok-soft: #E5F5EC;
  --warn: #A35B00; --warn-soft: #FFF2DC;
  --bad: #C2121F; --bad-soft: #FDECEE;
  --font: "Jakarta", "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r: 16px; --r-sm: 11px; --r-lg: 24px;
  --shadow: 0 1px 2px rgba(11, 23, 48, .05), 0 6px 24px rgba(11, 23, 48, .06);
  --shadow-lg: 0 24px 60px rgba(11, 23, 48, .16);
  --wrap: 1200px;
  --tap: 46px;
  --header: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--sky-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; overflow-wrap: break-word; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { flex: none; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 999; background: var(--card); padding: 8px 14px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ───── Buttons ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 22px; border-radius: 12px; border: 1.5px solid transparent;
  background: var(--navy); color: #fff; font-weight: 700; font-size: .975rem; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: transform .15s, background .15s, box-shadow .15s, border-color .15s; }
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); box-shadow: 0 8px 22px color-mix(in srgb, var(--red) 28%, transparent); }
.btn-primary:hover { background: var(--red-d); box-shadow: 0 10px 26px color-mix(in srgb, var(--red) 34%, transparent); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); border-color: #CBD5E1; }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-light:hover { background: rgba(255, 255, 255, .18); }
.btn-danger { background: var(--card); color: var(--bad); border-color: color-mix(in srgb, var(--red) 30%, #fff); }
.btn-danger:hover { background: var(--bad-soft); }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: .9rem; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--sky-ink); font-weight: 600; cursor: pointer; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--bg); text-decoration: none; }

/* ───── Pills, chips ───── */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--line-2); color: var(--text); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad, .pill.red { background: var(--bad-soft); color: var(--bad); }
.pill.navy { background: var(--navy); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: var(--card); color: var(--ink); box-shadow: 0 2px 10px rgba(11, 23, 48, .12); white-space: nowrap; }
.chip-online .ic { color: var(--red); }
.chip-live .ic { color: #7C3AED; }
.chip-in_person .ic { color: var(--ok); }
.chip-hybrid .ic { color: var(--sky-ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }

/* ───── Toasts ───── */
.toasts { position: fixed; z-index: 300; left: 50%; top: 16px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 460px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .95rem; animation: toastIn .35s ease, toastOut .4s ease 5.6s forwards; }
.toast-ok .ic { color: #4ADE80; }
.toast-err { background: var(--red-d); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); visibility: hidden; } }

/* ═════════ PUBLIC SITE ═════════ */
.site { background: var(--site); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 1.32rem; letter-spacing: -.035em; }
.brand-mark { display: inline-flex; color: var(--navy); }
.brand.on-dark, .on-dark .brand { color: #fff; }
.brand.on-dark .brand-mark rect, .on-dark .brand-mark rect { fill: #fff; }
.brand.on-dark .brand-mark path, .on-dark .brand-mark path { fill: var(--navy); }
.brand-link:hover { text-decoration: none; }
/* Uploaded logo (Admin → Website → Branding & images) */
.brand-img img { height: 36px; width: auto; max-width: 200px; object-fit: contain; }
.brand-img .lg-light { display: none; }
.on-dark .brand-img:has(.lg-light) .lg-normal, .brand-img.on-dark:has(.lg-light) .lg-normal,
.site-header.on-dark:not(.scrolled) .brand-img:has(.lg-light) .lg-normal { display: none; }
.on-dark .brand-img .lg-light, .brand-img.on-dark .lg-light, .site-header.on-dark:not(.scrolled) .brand-img .lg-light { display: block; }
.on-dark .brand-img:not(:has(.lg-light)) .lg-normal, .brand-img.on-dark:not(:has(.lg-light)) .lg-normal,
.site-header.on-dark:not(.scrolled) .brand-img:not(:has(.lg-light)) .lg-normal { filter: brightness(0) invert(1); }
.nav-open .site-header.on-dark .brand-img .lg-normal { display: block !important; filter: none !important; }
.nav-open .site-header.on-dark .brand-img .lg-light { display: none !important; }
.side .brand-img img { height: 32px; max-width: 190px; }
.tb-icon { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; display: block; }
.cert .brand-img img { height: 4.6cqw; max-width: 30cqw; }
.cert-sign { display: flex; flex-direction: column; align-items: flex-start; }
.cert-sign img { height: 5cqw; width: auto; max-width: 22cqw; object-fit: contain; margin-bottom: .4cqw; }
.cert-sign span { border-top: .12cqw solid var(--line); padding-top: .5cqw; display: block; min-width: 16cqw; }

.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--site) 86%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header.on-dark { position: fixed; left: 0; right: 0; background: transparent; }
.site-header.on-dark:not(.scrolled) .brand { color: #fff; }
.site-header.on-dark:not(.scrolled) .brand-mark rect { fill: #fff; }
.site-header.on-dark:not(.scrolled) .brand-mark path { fill: var(--navy); }
.site-header.on-dark:not(.scrolled) .nav-links a, .site-header.on-dark:not(.scrolled) .nav-signin, .site-header.on-dark:not(.scrolled) .nav-toggle { color: #fff; }
.site-header.on-dark.scrolled { background: color-mix(in srgb, var(--site) 92%, transparent); }
.nav { display: flex; align-items: center; gap: 20px; height: var(--header); }
.nav-links { display: flex; gap: 4px; margin-left: 18px; }
.nav-links a { padding: 8px 13px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { text-decoration: none; background: color-mix(in srgb, var(--navy) 6%, transparent); }
.nav-links a.on { color: var(--ink); background: color-mix(in srgb, var(--navy) 7%, transparent); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-signin { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.nav-signin:hover { text-decoration: none; background: color-mix(in srgb, var(--navy) 6%, transparent); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); cursor: pointer; place-items: center; }
.nav-drawer { display: none; }
.nav-toggle .nt-close, .nav-open .nav-toggle .nt-open { display: none; }
.nav-open .nav-toggle .nt-close { display: inline-flex; }
.nav-toggle span { display: inline-flex; }

@media (max-width: 960px) {
  .nav-links, .nav-btn { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav-signin span { display: none; }
  .nav-signin:not(:has(.ic)) { display: none; }
  .nav-drawer { position: fixed; z-index: 99; inset: var(--header) 0 0 0; background: var(--site); padding: 12px 20px 28px; display: flex; flex-direction: column; overflow: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .22s; }
  .nav-open .nav-drawer { transform: none; opacity: 1; visibility: visible; }
  .nav-open .site-header { background: var(--site); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--line); }
  .nav-open .site-header.on-dark .brand { color: var(--navy); }
  .nav-open .site-header.on-dark .brand-mark rect { fill: var(--navy); }
  .nav-open .site-header.on-dark .brand-mark path { fill: #fff; }
  .nav-open .site-header.on-dark .nav-toggle, .nav-open .site-header.on-dark .nav-signin { color: var(--ink); }
  .nav-drawer nav a { display: flex; align-items: center; justify-content: space-between; padding: 17px 4px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-weight: 700; font-size: 1.15rem; }
  .nav-drawer nav a .ic { color: var(--muted); }
  .nav-drawer nav a.on { color: var(--red); }
  .drawer-cta { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
  body.nav-open { overflow: hidden; }
}

/* Hero */
.hero { position: relative; background: var(--navy); color: #C9D6EA; overflow: hidden; padding: calc(var(--header) + 56px) 0 84px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 400px at 85% 15%, color-mix(in srgb, var(--red) 32%, transparent), transparent 60%), radial-gradient(700px 500px at 10% 100%, rgba(59, 130, 246, .22), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  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: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero .eyebrow { color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); padding: 7px 13px; border-radius: 99px; letter-spacing: .04em; text-transform: none; font-weight: 700; font-size: .85rem; }
.hero .eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 25%, transparent); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; margin: 22px 0 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(92deg, #fff 0%, var(--red-tint) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text { font-size: 1.14rem; max-width: 560px; color: #C2D0E6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero-formats { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; font-weight: 600; color: #DCE6F5; }
.hero-formats span { display: inline-flex; align-items: center; gap: 8px; }
.hero-formats .ic { color: var(--red-tint); }

.hero-visual { position: relative; padding: 20px 10px 30px; }
.hv-player { position: relative; background: var(--card); border-radius: 22px; box-shadow: 0 40px 90px rgba(0, 0, 0, .4); overflow: hidden; transform: rotate(-1.5deg); }
.hv-screen { aspect-ratio: 16 / 9; position: relative; background: linear-gradient(135deg, var(--navy-3) 0%, var(--navy) 55%, color-mix(in srgb, var(--red) 30%, var(--navy)) 100%); display: grid; place-items: center; }
.hv-screen::before { content: ""; position: absolute; inset: 18px; border-radius: 12px; border: 1px dashed rgba(255,255,255,.14); }
.hv-screen .hv-code { position: absolute; left: 30px; top: 30px; display: grid; gap: 8px; }
.hv-screen .hv-code i { display: block; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .16); }
.hv-play { width: 74px; height: 74px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 0 0 12px color-mix(in srgb, var(--red) 22%, transparent); position: relative; }
.hv-play::after { content: ""; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.hv-bar { padding: 16px 20px 20px; }
.hv-bar strong { display: block; color: var(--ink); font-size: 1rem; }
.hv-bar small { color: var(--muted); font-size: .85rem; }
.hv-track { height: 7px; border-radius: 9px; background: var(--line-2); margin-top: 12px; overflow: hidden; }
.hv-track i { display: block; height: 100%; width: 64%; border-radius: 9px; background: linear-gradient(90deg, var(--red), color-mix(in srgb, var(--red) 60%, #fff)); }
.hv-photo { border-radius: 26px; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, .4); aspect-ratio: 4 / 3; transform: rotate(-1.5deg); background: var(--navy-2); }
.hv-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--navy); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.ap-chips { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ap-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; background: rgba(255, 255, 255, .94); color: var(--ink); font-weight: 700; font-size: .85rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.ap-chips .ic { color: var(--ok); }
.q-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.hv-float { position: absolute; display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg); color: var(--ink); font-weight: 700; font-size: .92rem; line-height: 1.3; animation: float 6s ease-in-out infinite; }
.hv-float small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }
.hv-float .hf-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.hv-cert { right: -6px; bottom: -6px; }
.hv-cert .hf-ic { background: var(--ok-soft); color: var(--ok); }
.hv-live { left: -14px; top: -2px; animation-delay: -3s; }
.hv-live .hf-ic { background: var(--red-soft); color: var(--red); }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Sections */
.section { padding: 88px 0; }
.section.tint { background: var(--bg); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; margin: 10px 0 0; max-width: 720px; }
.section-head p { max-width: 560px; margin: 12px 0 0; color: var(--muted); font-size: 1.05rem; }
.center { text-align: center; }
.section-head.center { flex-direction: column; align-items: center; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; min-width: 0; }
.cat-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.cat-card .cat-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sky); color: var(--sky-ink); }
.cat-card:nth-child(4n+2) .cat-ic { background: var(--red-soft); color: var(--red); }
.cat-card:nth-child(4n+3) .cat-ic { background: var(--ok-soft); color: var(--ok); }
.cat-card:nth-child(4n+4) .cat-ic { background: #EEE8FD; color: #6D28D9; }
.cat-card strong { font-size: 1.06rem; }
.cat-card small { color: var(--muted); font-weight: 600; display: flex; align-items: center; justify-content: space-between; }

/* Course cards */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; color: var(--text); transition: transform .22s, box-shadow .22s, border-color .22s; min-width: 0; }
.course-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 20px 44px rgba(11, 23, 48, .12); border-color: transparent; }
.cc-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.cc-media .chip { position: absolute; left: 12px; bottom: 12px; }
.cc-flag { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 5px; background: var(--red); color: #fff; font-size: .74rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; }
.cover-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.course-card:hover .cover-img, .course-card:hover .cover-gen i { transform: scale(1.04); }
.cover-gen { position: relative; width: 100%; height: 100%; padding: 18px 20px; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; overflow: hidden; color: #fff; isolation: isolate; }
.cover-gen .cg-cat { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.cover-gen .cg-title { font-size: 1.32rem; font-weight: 800; line-height: 1.15; letter-spacing: -.03em; max-width: 85%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cover-gen i { position: absolute; z-index: -1; width: 220px; height: 220px; right: -60px; bottom: -90px; border-radius: 50%; border: 34px solid rgba(255, 255, 255, .1); transition: transform .5s; }
.cover-gen::after { content: ""; position: absolute; z-index: -1; width: 90px; height: 90px; right: 34px; bottom: 50px; border-radius: 22px; background: rgba(255, 255, 255, .1); transform: rotate(18deg); }
.cover-gen.c1 { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); }
.cover-gen.c2 { background: linear-gradient(135deg, var(--navy-2) 0%, #2563EB 120%); }
.cover-gen.c3 { background: linear-gradient(135deg, #0F3D2E 0%, #157347 110%); }
.cover-gen.c4 { background: linear-gradient(135deg, color-mix(in srgb, var(--red) 30%, #000) 0%, var(--red-d) 110%); }
.cc-body { display: flex; flex-direction: column; padding: 20px 22px 22px; flex: 1; min-width: 0; }
.cc-cat { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cc-body h3 { font-size: 1.17rem; margin: 8px 0 8px; letter-spacing: -.025em; }
.cc-body p { color: var(--muted); font-size: .94rem; margin: 0 0 14px; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.cc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cc-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-inst { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--ink); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cc-price { font-weight: 800; font-size: 1.2rem; color: var(--ink); white-space: nowrap; }
.cc-price s { font-weight: 600; font-size: .9rem; color: var(--muted); margin-right: 8px; }
.av-xs, .cc-inst img, .cc-inst .initials { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.initials { display: inline-grid; place-items: center; background: var(--sky); color: var(--sky-ink); font-weight: 800; font-size: .78rem; }

/* Formats */
.format-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.format { padding: 26px 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; min-width: 0; }
.format .f-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: var(--red-soft); color: var(--red); }
.format:nth-child(2) .f-ic { background: #EEE8FD; color: #6D28D9; }
.format:nth-child(3) .f-ic { background: var(--ok-soft); color: var(--ok); }
.format:nth-child(4) .f-ic { background: var(--sky); color: var(--sky-ink); }
.format h3 { font-size: 1.12rem; margin-bottom: 6px; }
.format p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); min-width: 0; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .45); margin-bottom: 14px; line-height: 1; }
.step h3 { color: #fff; font-size: 1.2rem; }
.step p { margin: 0; color: #B7C6DD; }
.dark { background: var(--navy); color: #C2D0E6; position: relative; overflow: hidden; }
.dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0, color-mix(in srgb, var(--red) 25%, transparent), transparent 60%); pointer-events: none; }
.dark .section-head h2 { color: #fff; }
.dark .section-head p { color: #AFC0DA; }
.dark .eyebrow { color: var(--red-tint); }

/* Industries */
.industries { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.industries span { padding: 12px 20px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-weight: 700; color: var(--ink); }

/* Testimonials */
.quote-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.quote { background: var(--card); border-radius: var(--r-lg); padding: 34px; border: 1px solid var(--line); position: relative; min-width: 0; }
.quote .q-mark { color: var(--red); margin-bottom: 10px; }
.quote blockquote { margin: 0 0 22px; font-size: 1.22rem; font-weight: 600; color: var(--ink); line-height: 1.5; letter-spacing: -.015em; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption .initials { width: 44px; height: 44px; border-radius: 50%; font-size: .9rem; }
.quote figcaption strong { display: block; color: var(--ink); }
.quote figcaption small { color: var(--muted); }
.quote.solo { max-width: 860px; margin: 0 auto; text-align: center; padding: 48px 40px; }
.quote.solo blockquote { font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
.quote.solo figcaption { justify-content: center; text-align: left; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.svc { display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); color: var(--text); transition: .2s; min-width: 0; }
.svc:hover { text-decoration: none; border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.svc .s-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--navy); color: #fff; margin-bottom: 18px; }
.svc h3 { font-size: 1.12rem; }
.svc p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.svc .more { margin-top: auto; font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; }

/* CTA band */
.cta-band { position: relative; border-radius: 30px; padding: 56px; background: linear-gradient(120deg, var(--red) 0%, var(--red-d) 100%); color: color-mix(in srgb, var(--red) 12%, #fff); overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .08); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; margin: 0 0 8px; }
.cta-band p { margin: 0; font-size: 1.08rem; max-width: 540px; }
.cta-band .btn-white { background: var(--card); color: var(--red-d); }
.cta-band .btn-white:hover { background: color-mix(in srgb, var(--red) 6%, #fff); }

/* Page hero (inner pages) */
.page-hero { background: var(--bg); padding: 56px 0 44px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--red) 10%, transparent), transparent 65%); pointer-events: none; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -.04em; margin: 10px 0 10px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span::before { content: "/"; margin-right: 8px; opacity: .5; }

/* Catalogue filters */
.filters { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; margin: -26px 0 28px; position: relative; z-index: 2; background: var(--card); padding: 12px; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.filters .search { position: relative; }
.filters .search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filters .search input { padding-left: 44px; }
.filters select { min-width: 170px; }
.cat-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 26px; scrollbar-width: none; }
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pills a { flex: none; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-weight: 700; color: var(--text); font-size: .92rem; }
.cat-pills a:hover { text-decoration: none; border-color: #CBD5E1; }
.cat-pills a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cat-pills a small { opacity: .65; margin-left: 4px; }
.result-count { color: var(--muted); font-weight: 600; margin-bottom: 18px; }

/* Course page */
.course-hero { background: var(--navy); color: #C2D0E6; padding: 44px 0 56px; position: relative; overflow: hidden; }
.course-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 300px at 80% 0, color-mix(in srgb, var(--red) 28%, transparent), transparent 60%); pointer-events: none; }
.course-hero .crumbs, .course-hero .crumbs a { color: #9FB2CF; }
.course-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.04em; margin: 16px 0 12px; }
.course-hero .lead { font-size: 1.12rem; color: #C9D6EA; max-width: 680px; }
.ch-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 22px; }
.ch-meta span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #E4ECF8; font-size: .88rem; font-weight: 600; }
.ch-inst { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; }
.ch-inst img, .ch-inst .initials { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.ch-inst small { display: block; color: #9FB2CF; font-weight: 600; }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; align-items: start; }
.course-layout .ch-col { max-width: 720px; }
.buy-card { position: sticky; top: calc(var(--header) + 18px); margin-top: -260px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 3; border: 1px solid var(--line); }
.buy-media { aspect-ratio: 16 / 9; position: relative; background: var(--navy); }
.buy-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.buy-media .play-intro { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 23, 48, .25); border: 0; cursor: pointer; color: #fff; }
.buy-media .play-intro span { display: inline-flex; align-items: center; gap: 8px; background: rgba(11, 23, 48, .75); padding: 10px 16px; border-radius: 99px; font-weight: 700; backdrop-filter: blur(6px); }
.buy-body { padding: 24px; }
.buy-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.buy-price strong { font-size: 2.2rem; color: var(--ink); font-weight: 800; letter-spacing: -.04em; }
.buy-price s { color: var(--muted); font-weight: 600; }
.buy-price .pill { margin-left: auto; }
.buy-tax { color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.buy-includes { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 11px; font-size: .94rem; }
.buy-includes li { display: flex; gap: 10px; align-items: flex-start; }
.buy-includes .ic { color: var(--ok); margin-top: 2px; }
.session-pick { display: grid; gap: 10px; margin-bottom: 16px; }
.session-opt { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 13px; border: 1.5px solid var(--line); cursor: pointer; transition: .15s; }
.session-opt:hover { border-color: #CBD5E1; }
.session-opt input { margin-top: 4px; accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.session-opt:has(input:checked) { border-color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--card)); }
.session-opt.full { opacity: .55; cursor: not-allowed; }
.session-opt strong { display: block; color: var(--ink); font-size: .95rem; }
.session-opt small { display: block; color: var(--muted); font-size: .83rem; line-height: 1.45; }
.session-opt .seats { color: var(--red); font-weight: 700; }
.c-section { margin-top: 44px; }
.c-section h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.learn-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.check-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.check-grid li { display: flex; gap: 10px; align-items: flex-start; }
.check-grid .ic { color: var(--ok); margin-top: 3px; }
.prose { color: var(--text); font-size: 1.02rem; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose p:last-child { margin-bottom: 0; }

.curriculum { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cur-sec + .cur-sec { border-top: 1px solid var(--line); }
.cur-sec summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: var(--bg); font-weight: 700; color: var(--ink); }
.cur-sec summary::-webkit-details-marker { display: none; }
.cur-sec summary .ic:first-child { transition: transform .2s; color: var(--muted); }
.cur-sec[open] summary .ic:first-child { transform: rotate(180deg); }
.cur-sec summary small { margin-left: auto; color: var(--muted); font-weight: 600; white-space: nowrap; }
.cur-sec ol { list-style: none; margin: 0; padding: 6px 0; }
.cur-sec li { display: flex; align-items: center; gap: 12px; padding: 11px 20px; font-size: .96rem; }
.cur-sec li .ic { color: var(--muted); }
.cur-sec li .l-title { flex: 1; min-width: 0; }
.cur-sec li a.l-title { color: var(--sky-ink); font-weight: 600; }
.cur-sec li small { color: var(--muted); white-space: nowrap; }
.cur-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cur-head span { color: var(--muted); font-weight: 600; font-size: .93rem; }

.sess-table { display: grid; gap: 12px; }
.sess-row { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); }
.sess-date { width: 64px; text-align: center; border-radius: 14px; background: var(--red-soft); color: var(--red); padding: 8px 0; line-height: 1.1; }
.sess-date b { display: block; font-size: 1.45rem; font-weight: 800; }
.sess-date small { font-weight: 800; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.sess-row strong { color: var(--ink); display: block; }
.sess-row .muted { font-size: .9rem; }
.inst-box { display: flex; gap: 22px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.inst-box .ib-photo img, .inst-box .ib-photo .initials { width: 92px; height: 92px; border-radius: 24px; object-fit: cover; font-size: 1.6rem; }
.inst-box h3 { margin-bottom: 2px; }
.inst-box .hl { color: var(--red); font-weight: 700; font-size: .92rem; margin-bottom: 10px; }
.mobile-buy { display: none; }

/* About / content pages */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.panel-art { position: relative; border-radius: 30px; background: var(--navy); padding: 36px; color: #C9D6EA; overflow: hidden; isolation: isolate; }
.panel-art::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(400px 260px at 100% 0, color-mix(in srgb, var(--red) 35%, transparent), transparent 60%); }
.panel-art .big { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; margin-bottom: 26px; }
.panel-art ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.panel-art li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: #fff; font-weight: 600; }
.panel-art li .ic { color: var(--red-tint); }
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
.contact-grid > * { min-width: 0; }
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--text); }
.info-item:hover { text-decoration: none; border-color: #CBD5E1; }
.info-item .ii-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); flex: none; }
.info-item strong { display: block; color: var(--ink); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--text); display: flex; flex-direction: column; }
.post-card:hover { text-decoration: none; box-shadow: var(--shadow); }
.post-card .pc-img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--navy-3)); }
.post-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card .pc-body { padding: 20px 22px; }
.post-card h3 { font-size: 1.12rem; }
.article { max-width: 760px; margin: 0 auto; }
.article .prose { font-size: 1.1rem; line-height: 1.75; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 32px; }

/* Verify */
.verify-card { max-width: 560px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); }
.verify-result { margin-top: 22px; padding: 20px; border-radius: var(--r); display: flex; gap: 14px; align-items: flex-start; }
.verify-result.ok { background: var(--ok-soft); color: #0F5132; }
.verify-result.bad { background: var(--bad-soft); color: var(--bad); }
.verify-result strong { color: inherit; display: block; font-size: 1.05rem; }

/* Footer */
.site-footer { background: var(--footer); color: #9FB0CA; padding: 64px 0 0; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.foot-grid > * { min-width: 0; }
.foot-brand p { margin: 16px 0 18px; max-width: 280px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer a { display: flex; gap: 10px; align-items: flex-start; color: #B7C5DB; padding: 5px 0; font-size: .95rem; }
.site-footer a .ic { margin-top: 3px; color: var(--red-tint); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); padding: 0; }
.socials a .ic { margin: 0; color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 20px; margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; }
.foot-bottom span { display: flex; gap: 18px; }
.foot-bottom a { display: inline; padding: 0; font-size: .88rem; }

/* ───── Forms ───── */
.form { display: grid; gap: 16px; }
.form h2 { font-size: 1.1rem; margin: 10px 0 0; }
label, .label { display: grid; gap: 7px; font-weight: 700; font-size: .9rem; color: var(--ink); min-width: 0; }
label small, .hint { font-weight: 500; color: var(--muted); font-size: .84rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: var(--tap); padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-size: 1rem; font-weight: 500; color: var(--ink); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2366748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy-3) 12%, transparent); }
input[type=file] { font-size: .9rem; max-width: 100%; width: 100%; min-width: 0; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: end; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin: 1px 0 0; flex: none; }
.check span small { display: block; }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.input-prefix input { padding-left: 30px; }
.note { padding: 13px 16px; border-radius: 12px; background: var(--sky); color: var(--sky-ink); font-weight: 600; font-size: .93rem; }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.note.err { background: var(--bad-soft); color: var(--bad); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.seg label { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 700; position: relative; }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg label .ic { color: var(--muted); }
.seg label small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.seg label:has(input:checked) { border-color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--card)); }
.seg label:has(input:checked) .ic { color: var(--red); }
.seg label:has(input:focus-visible) { box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 15%, transparent); }

/* ───── Auth pages ───── */
.auth-body { background: var(--bg); min-height: 100vh; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-art { position: relative; background: var(--navy); color: #C9D6EA; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; }
.auth-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 360px at 90% 10%, color-mix(in srgb, var(--red) 35%, transparent), transparent 60%), radial-gradient(500px 360px at 0 100%, rgba(59, 130, 246, .2), transparent 60%); }
.auth-art h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; max-width: 460px; }
.auth-art .quote { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
.auth-art .quote blockquote { color: #fff; font-size: 1.08rem; }
.auth-art .quote strong { color: #fff; }
.auth-art .quote small { color: #9FB2CF; }
.auth-wrap { display: flex; align-items: center; justify-content: center; padding: 40px 20px; min-height: 100vh; }
.auth-split .auth-wrap { min-height: 0; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.boxed, .msg-card { background: var(--card); border-radius: var(--r-lg); padding: 34px 30px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth-card h1 { font-size: 1.85rem; font-weight: 800; letter-spacing: -.035em; margin: 22px 0 6px; }
.auth-card > p.muted { margin-bottom: 26px; }
.auth-alt { text-align: center; margin-top: 22px; color: var(--muted); font-weight: 600; }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 50px; }
.pass-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 10px; display: grid; place-items: center; }
.msg-card { text-align: center; }
.msg-ic { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 16px; display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; background: var(--bad-soft); color: var(--bad); }
.msg-ic.ok { background: var(--ok-soft); color: var(--ok); }
.installer { max-width: 640px; margin: 0 auto; padding: 40px 20px; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.checks .ok { color: var(--ok); }
.checks .bad { color: var(--bad); }

/* ═════════ PANELS (admin, instructor, student) ═════════ */
.panel { background: var(--bg); }
.side { position: fixed; left: 0; top: 0; bottom: 0; width: 256px; background: var(--navy); color: #C2D0E6; padding: 22px 14px; display: flex; flex-direction: column; z-index: 50; }
.side-brand { padding: 4px 10px 6px; }
.side-brand:hover { text-decoration: none; }
.side-area { display: inline-block; margin: 6px 10px 22px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red-tint); }
.side nav { display: grid; gap: 3px; overflow-y: auto; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #B7C5DB; font-weight: 600; font-size: .95rem; }
.side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.side nav a.on { background: #fff; color: var(--navy); }
.side nav a.on .ic { color: var(--red); }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px 4px; border-top: 1px solid rgba(255, 255, 255, .08); }
.side-user .avatar img, .side-user .avatar .initials { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; }
.su-text { min-width: 0; flex: 1; line-height: 1.25; }
.su-text strong { display: block; color: #fff; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-text small { color: #8FA3C2; font-size: .78rem; }
.side-out { color: #8FA3C2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }
.side-out:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.panel-main { margin-left: 256px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 32px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); min-height: 76px; }
.tb-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tb-title { min-width: 0; }
.tb-title h1 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-title p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-brand { display: none; }
.tb-back { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); flex: none; }
.tb-actions { display: flex; gap: 8px; flex: none; }
.content { padding: 28px 32px 60px; width: 100%; max-width: 1180px; }
.content.wide { max-width: none; }
.tabbar { display: none; }

.card { background: var(--card); border-radius: var(--r); border: 1px solid var(--line); padding: 22px; min-width: 0; }
.card + .card { margin-top: 16px; }
.card.todo { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, var(--card)); }
.card.todo .list > a, .card.todo strong { color: var(--ink); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2, .card h2 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.card-head a { font-weight: 700; font-size: .9rem; }
.card.flush { padding: 0; overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.stack { display: grid; gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; min-width: 0; }
.stat small { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.stat strong { display: block; font-size: 1.85rem; font-weight: 800; color: var(--ink); letter-spacing: -.035em; margin-top: 6px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.stat.hl { background: var(--navy); border-color: var(--navy); }
.stat.hl small, .stat.hl span { color: #9FB2CF; }
.stat.hl strong { color: #fff; }

/* Lists and tables */
.list { list-style: none; margin: 0; padding: 0; }
.list > li, .list > a { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line-2); color: var(--text); min-width: 0; }
.list > li:first-child, .list > a:first-child { border-top: 0; }
.list > a:hover { background: color-mix(in srgb, var(--bg) 60%, var(--card)); text-decoration: none; }
.li-main { flex: 1; min-width: 0; }
.li-main strong { display: block; color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-main small { display: block; color: var(--muted); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-end { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.li-end strong { color: var(--ink); }
.li-thumb { width: 64px; height: 40px; border-radius: 9px; overflow: hidden; flex: none; background: var(--navy); }
.li-thumb .cover-gen { padding: 6px 7px; }
.li-thumb .cover-gen .cg-title { font-size: .5rem; }
.li-thumb .cover-gen .cg-cat { display: none; }
.av-xl img, .av-xl .initials { width: 96px; height: 96px; border-radius: 26px; object-fit: cover; font-size: 1.8rem; display: grid; }
.li-av img, .li-av .initials { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: none; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tbl th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, var(--card)); white-space: nowrap; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl a.row-link { color: var(--ink); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.toolbar .search { flex: 1; min-width: 200px; position: relative; }
.toolbar .search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.toolbar .search input { padding-left: 42px; }
.toolbar select { width: auto; min-width: 150px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 12px 14px; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: .95rem; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--red); }
.tabs a small { background: var(--line-2); border-radius: 99px; padding: 1px 8px; margin-left: 6px; font-size: .76rem; }
.empty { text-align: center; padding: 48px 24px; }
.empty-ic { width: 60px; height: 60px; border-radius: 18px; display: inline-grid; place-items: center; background: var(--red-soft); color: var(--red); margin-bottom: 14px; }
.empty h3 { font-size: 1.15rem; margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 18px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; font-size: .95rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; min-width: 0; }
.progress { height: 8px; border-radius: 9px; background: var(--line-2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--red), color-mix(in srgb, var(--red) 60%, #fff)); }
.progress.done i { background: var(--ok); }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding-top: 10px; }
.bar-chart div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bar-chart i { display: block; width: 100%; max-width: 38px; border-radius: 8px 8px 4px 4px; background: #D6E2F5; min-height: 4px; }
.bar-chart div.now i { background: var(--red); }
.bar-chart small { font-size: .74rem; color: var(--muted); font-weight: 700; }

/* Course editor */
.builder-sec { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.builder-sec + .builder-sec { margin-top: 14px; }
.bs-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: color-mix(in srgb, var(--bg) 60%, var(--card)); border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
.bs-head strong { flex: 1; min-width: 0; color: var(--ink); }
.bs-lessons { list-style: none; margin: 0; padding: 0; }
.bs-lessons li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.bs-lessons li:last-child { border-bottom: 0; }
.bs-lessons .ic { color: var(--muted); }
.bs-lessons .l-main { flex: 1; min-width: 0; }
.bs-lessons .l-main strong { display: block; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-lessons .l-main small { color: var(--muted); }
.bs-foot { padding: 12px 16px; }
.order-btns { display: flex; gap: 4px; }
.order-btns button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.order-btns button:hover { color: var(--ink); background: var(--bg); }
.yt-preview { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--navy); }
.yt-preview iframe { width: 100%; height: 100%; border: 0; }
.cover-edit { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--navy); margin-bottom: 10px; }
.cover-edit img, .cover-edit .cover-gen { width: 100%; height: 100%; object-fit: cover; }
.secret-field { display: flex; gap: 8px; }
.secret-field input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
.code-line { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.code-line code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.mode-switch label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 11px; cursor: pointer; font-weight: 800; color: var(--muted); }
.mode-switch input { position: absolute; opacity: 0; }
.mode-switch label:has(input:checked) { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(11, 23, 48, .08); }
.mode-switch label.live:has(input:checked) { color: var(--ok); }
.mode-switch label.test:has(input:checked) { color: var(--warn); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* Branding & images */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.brand-grid > * { min-width: 0; }
.brand-prev { border-radius: 14px; border: 1px dashed #CBD5E1; background: repeating-conic-gradient(#F1F4F9 0% 25%, #fff 0% 50%) 0 0 / 18px 18px; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; overflow: hidden; }
.brand-prev img { max-width: 100%; max-height: 90px; object-fit: contain; }
.brand-prev.dark { background: var(--navy); border-color: var(--navy); }
.brand-prev.dark .bp-note { color: #9FB2CF; }
.brand-prev.icon img { width: 96px; height: 96px; border-radius: 22px; object-fit: cover; box-shadow: var(--shadow); }
.brand-prev.photo { padding: 0; aspect-ratio: 16 / 9; min-height: 0; }
.brand-prev.photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.brand-prev.sign { background: var(--card); }
.bp-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.brand-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; display: inline-flex; grid-auto-flow: column; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pal-save-bottom { display: none; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches span { width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgba(0, 0, 0, .08); }
.palette-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.palette-side { position: sticky; top: 96px; display: grid; gap: 16px; }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.preset { display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; font-size: .88rem; cursor: pointer; text-align: left; }
.preset:hover { border-color: var(--muted); }
.preset.on { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.preset-sw { display: flex; height: 28px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .08); }
.preset-sw span { flex: 1; }
.color-rows { display: grid; gap: 4px; }
.color-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 110px 40px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.color-row:first-child { border-top: 0; }
.color-row input[type=color] { width: 48px; height: 44px; padding: 3px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.color-row input[type=text] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; font-size: .9rem; padding: 8px 10px; min-height: 42px; }
.cr-text { min-width: 0; line-height: 1.3; }
.cr-text strong { display: block; color: var(--ink); font-size: .95rem; }
.cr-text small { color: var(--muted); font-size: .8rem; }
.pal-preview { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--site); font-size: .8rem; }
.pp-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--site); border-bottom: 1px solid var(--line); }
.pp-logo { font-weight: 800; color: var(--navy); }
.pp-nav { color: var(--text); flex: 1; }
.pp-btn { display: inline-block; background: var(--red); color: #fff; font-weight: 700; padding: 7px 12px; border-radius: 9px; width: fit-content; }
.pp-btn.sm { padding: 4px 9px; font-size: .72rem; }
.pp-hero { background: var(--navy); color: rgba(255, 255, 255, .75); padding: 18px 14px; display: grid; gap: 6px; }
.pp-hero b { color: #fff; font-size: 1.15rem; letter-spacing: -.02em; }
.pp-body { background: var(--bg); padding: 14px; }
.pp-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 4px; }
.pp-card small { color: var(--muted); font-weight: 700; font-size: .66rem; letter-spacing: .06em; }
.pp-card b { color: var(--ink); font-size: .95rem; }
.pp-card span { color: var(--text); }
.pp-card a { color: var(--sky-ink); font-weight: 700; }
.pp-pills { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.pp-pills i { font-style: normal; font-weight: 700; font-size: .68rem; padding: 2px 8px; border-radius: 99px; }
.pp-pills .ok { background: var(--ok-soft); color: var(--ok); }
.pp-pills .warn { background: var(--warn-soft); color: var(--warn); }
.pp-pills .bad { background: var(--bad-soft); color: var(--bad); }
.pp-foot { background: var(--footer); color: rgba(255, 255, 255, .7); padding: 10px 12px; }
.contrast { margin-top: 14px; display: grid; gap: 6px; font-size: .84rem; }
.contrast strong { color: var(--ink); }
.contrast div { display: flex; justify-content: space-between; gap: 10px; color: var(--text); }
.contrast div b { white-space: nowrap; }
.contrast .ok b { color: var(--ok); }
.contrast .low b { color: var(--bad); }
@media (max-width: 1000px) { .palette-layout { grid-template-columns: minmax(0, 1fr); } .palette-side { position: static; order: -1; } .pal-save-bottom { display: block; } }
@media (max-width: 640px) { .color-row { grid-template-columns: 44px minmax(0, 1fr) 92px; } .color-row .icon-btn { display: none; } .presets { grid-template-columns: 1fr 1fr; } }

/* Student learning */
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.learn-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; color: var(--text); }
.learn-card:hover { text-decoration: none; box-shadow: var(--shadow); }
.learn-card .lc-media { aspect-ratio: 16 / 8; position: relative; background: var(--navy); overflow: hidden; }
.learn-card .lc-media .chip { position: absolute; left: 12px; bottom: 12px; }
.learn-card .lc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.learn-card h3 { font-size: 1.08rem; margin: 0; }
.learn-card .lc-foot { display: flex; justify-content: space-between; align-items: center; font-size: .86rem; font-weight: 700; color: var(--muted); margin-top: auto; }
.continue { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: var(--navy); border-radius: var(--r-lg); overflow: hidden; color: #C9D6EA; margin-bottom: 26px; }
.continue .ct-media { aspect-ratio: 16 / 9; }
.continue .ct-body { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.continue h2 { color: #fff; font-size: 1.4rem; margin: 0; }
.continue .eyebrow { color: var(--red-tint); }
.continue .progress { background: rgba(255, 255, 255, .12); max-width: 360px; }

.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.player { background: #000; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; position: relative; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #C9D6EA; background: linear-gradient(135deg, var(--navy), var(--navy-3)); padding: 20px; }
.lesson-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 22px 0 10px; flex-wrap: wrap; }
.lesson-head h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 0; }
.lesson-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.outline { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; position: sticky; top: 96px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; }
.outline-head { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.outline-head strong { display: block; color: var(--ink); line-height: 1.3; margin-bottom: 10px; }
.outline-head small { display: block; color: var(--muted); font-weight: 700; margin-top: 8px; }
.outline-body { overflow-y: auto; }
.outline-sec > span { display: block; padding: 14px 20px 6px; font-size: .76rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.outline a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 20px; color: var(--text); font-size: .93rem; font-weight: 600; line-height: 1.4; }
.outline a:hover { background: var(--bg); text-decoration: none; }
.outline a.on { background: var(--red-soft); color: var(--red-d); }
.outline a .lo-ic { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; margin-top: 1px; }
.outline a.done .lo-ic { background: var(--ok); border-color: var(--ok); color: #fff; }
.outline a .lo-t { flex: 1; min-width: 0; }
.outline a small { color: var(--muted); font-weight: 600; }
.files { display: grid; gap: 10px; margin-top: 18px; }
.file-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; }
.file-link:hover { text-decoration: none; border-color: #CBD5E1; }
.file-link .ic:first-child { color: var(--red); }
.file-link .ic:last-child { margin-left: auto; color: var(--muted); }
.session-box { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.session-box .sb-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); flex: none; }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.co-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.co-card + .co-card { margin-top: 18px; }
.co-card h2 { font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.co-card h2 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .82rem; }
.summary { position: sticky; top: calc(var(--header) + 18px); }
.sum-course { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); margin-bottom: 16px; }
.sum-course .li-thumb { width: 96px; height: 60px; border-radius: 12px; }
.sum-course strong { display: block; color: var(--ink); line-height: 1.3; }
.sum-lines { display: grid; gap: 10px; font-size: .96rem; }
.sum-lines div { display: flex; justify-content: space-between; gap: 12px; }
.sum-lines .total { padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.coupon-row { display: flex; gap: 8px; margin-top: 16px; }
.coupon-row input { text-transform: uppercase; }
#payment-element { min-height: 160px; }
.pay-error { color: var(--bad); font-weight: 700; margin-top: 12px; min-height: 1em; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .85rem; font-weight: 600; margin-top: 14px; }
.result-card { max-width: 560px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px 32px; box-shadow: var(--shadow); }
.result-card .r-ic { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.result-card.wait .r-ic { background: var(--warn-soft); color: var(--warn); }
.result-card.fail .r-ic { background: var(--bad-soft); color: var(--bad); }
.result-card h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; }

/* Certificate */
.cert-page { background: #E9EDF4; min-height: 100vh; padding: 30px 16px; }
.cert-tools { max-width: 1000px; margin: 0 auto 18px; display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.cert { max-width: 1000px; margin: 0 auto; aspect-ratio: 1.414 / 1; background: var(--card); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); border-radius: 6px; container-type: inline-size; }
.cert-inner { position: absolute; inset: 3.2cqw; border: .25cqw solid var(--navy); padding: 5cqw 6cqw; display: flex; flex-direction: column; }
.cert-inner::before { content: ""; position: absolute; inset: .8cqw; border: .1cqw solid #C9D3E3; pointer-events: none; }
.cert-corner { position: absolute; width: 34cqw; height: 34cqw; right: -12cqw; top: -12cqw; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--red) 12%, transparent), transparent 65%); }
.cert .brand { font-size: 2.6cqw; }
.cert .brand-mark svg { width: 3.4cqw; height: 3.4cqw; }
.cert-kicker { margin-top: 5cqw; font-size: 1.3cqw; letter-spacing: .4em; text-transform: uppercase; font-weight: 800; color: var(--red); }
.cert-title { font-size: 4.6cqw; font-weight: 800; color: var(--ink); letter-spacing: -.04em; margin: 1cqw 0 3cqw; line-height: 1.05; }
.cert-to { font-size: 1.5cqw; color: var(--muted); font-weight: 600; }
.cert-name { font-size: 5cqw; font-weight: 800; color: var(--navy); letter-spacing: -.035em; line-height: 1.1; margin: .6cqw 0 2.4cqw; border-bottom: .15cqw solid var(--line); padding-bottom: 1.6cqw; }
.cert-course { font-size: 1.7cqw; color: var(--text); line-height: 1.5; max-width: 70cqw; }
.cert-course strong { color: var(--ink); }
.cert-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 3cqw; }
.cert-foot div { font-size: 1.2cqw; color: var(--muted); font-weight: 600; line-height: 1.5; }
.cert-foot strong { display: block; font-size: 1.5cqw; color: var(--ink); }
.cert-foot .cert-seal { width: 11cqw; height: 11cqw; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 1.1cqw; letter-spacing: .12em; line-height: 1.3; box-shadow: 0 0 0 .7cqw #fff, 0 0 0 .9cqw var(--red); text-transform: uppercase; }
.cert-seal .ic { width: 3.4cqw; height: 3.4cqw; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  .cert-page { padding: 0; background: var(--card); }
  .cert-tools { display: none; }
  .cert { box-shadow: none; border-radius: 0; max-width: none; width: 100vw; }
}

/* Confirm dialog */
.ask { position: fixed; inset: 0; z-index: 400; background: rgba(11, 23, 48, .5); display: grid; place-items: center; padding: 20px; animation: fadeIn .15s; }
.ask-box { background: var(--card); border-radius: 20px; padding: 26px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.ask-box h3 { font-size: 1.2rem; }
.ask-box p { color: var(--muted); }
.ask-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
@keyframes fadeIn { from { opacity: 0; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hv-float { animation: none; } html { scroll-behavior: auto; } }

/* ═════════ RESPONSIVE ═════════ */
@media (max-width: 1100px) {
  .course-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .side { display: none; }
  .panel-main { margin-left: 0; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .topbar { padding: 12px 18px; min-height: 64px; }
  .tb-brand { display: inline-flex; }
  .tb-brand .brand-name { display: none; }
  .site-header .brand-img img { height: 30px; max-width: 150px; }
  .tb-title h1 { font-size: 1.2rem; }
  .content { padding: 18px 16px 40px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: color-mix(in srgb, var(--card) 96%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: var(--muted); font-size: .7rem; font-weight: 700; min-width: 0; border-radius: 12px; }
  .tabbar a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tabbar a.on { color: var(--red); }
  .tabbar a:hover { text-decoration: none; }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .player-layout { grid-template-columns: 1fr; }
  .outline { position: static; max-height: none; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .continue { grid-template-columns: 1fr; }
  .continue .ct-media { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .course-layout { grid-template-columns: 1fr; }
  .buy-card { position: static; margin-top: 0; }
  .course-layout .buy-wrap { order: -1; margin-top: -40px; }
  .mobile-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(11, 23, 48, .08); transform: translateY(110%); transition: transform .25s; }
  .mobile-buy.show { transform: none; }
  .mobile-buy strong { font-size: 1.35rem; color: var(--ink); font-weight: 800; }
  .mobile-buy small { display: block; color: var(--muted); font-weight: 600; font-size: .8rem; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .cat-grid, .format-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header: 64px; }
  .wrap { padding: 0 18px; }
  .section { padding: 60px 0; }
  .hero { padding: calc(var(--header) + 34px) 0 60px; }
  .hero-text { font-size: 1.04rem; }
  .hero-actions .btn { flex: 1; }
  .hv-live { left: -4px; top: -10px; }
  .hv-cert { right: -2px; bottom: -4px; }
  .hv-float { padding: 9px 12px; font-size: .82rem; }
  .hv-float .hf-ic { width: 32px; height: 32px; border-radius: 10px; }
  .hv-play { width: 56px; height: 56px; }
  .hv-play::after { border-left-width: 17px; border-top-width: 11px; border-bottom-width: 11px; }
  .course-grid, .post-grid, .cat-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-card { padding: 16px; }
  .format-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .format { padding: 18px 16px; }
  .format .f-ic { width: 42px; height: 42px; border-radius: 13px; margin-bottom: 12px; }
  .filters { grid-template-columns: 1fr 1fr; margin-top: -22px; }
  .filters .search { grid-column: 1 / -1; }
  .filters select { min-width: 0; }
  .check-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 26px; border-radius: 24px; }
  .cta-band .btn { width: 100%; }
  .quote, .quote.solo { padding: 28px 22px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .row2, .row3 { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .stats { gap: 10px; }
  .stat { padding: 14px 16px; }
  .stat strong { font-size: 1.4rem; }
  .inst-box { flex-direction: column; }
  .sess-row { grid-template-columns: auto 1fr; }
  .sess-row > :last-child { grid-column: 1 / -1; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .co-card { padding: 20px 18px; }
  .tb-actions .btn:has(.ic) span { display: none; }
  .tb-actions .btn:has(.ic) { padding: 0 12px; }
  .list > li, .list > a { padding: 13px 16px; }
  .card { padding: 18px 16px; }
  .card.flush { padding: 0; }
  .tbl.stack-sm thead { display: none; }
  .tbl.stack-sm tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 16px; border-bottom: 1px solid var(--line-2); gap: 2px 12px; }
  .tbl.stack-sm td { border: 0; padding: 0; }
  .tbl.stack-sm td.num { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .tbl.stack-sm td.hide-sm { display: none; }
  .verify-card { padding: 24px 20px; }
  .auth-card.boxed { padding: 26px 20px; }
  .page-hero { padding: 40px 0 36px; }
}
