/* Cornelis LMS - front end. Brand: deep navy + AWS orange, teal accents.
   Fonts are bundled (assets/fonts, SIL OFL) so pages make no outside requests.
   Animations are CSS only and switch off for visitors who ask for reduced motion. */
@font-face { font-family: "Jakarta"; src: url(fonts/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains"; src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

.clms, body.clms-site, body.clms-player-body {
  --ink: #0b1324;
  --ink-2: #111c33;
  --ink-3: #1b2a4a;
  --orange: #ff9900;
  --orange-2: #ffb547;
  --orange-d: #e07800;
  --teal: #2dd4bf;
  --violet: #8b5cf6;
  --text: #0f172a;
  --muted: #5b6577;
  --line: #e6e9f0;
  --soft: #f6f7fb;
  --ok: #16a34a;
  --err: #dc2626;
  --r: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -10px rgba(15, 23, 42, .12);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, .05), 0 30px 60px -20px rgba(15, 23, 42, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: "Jakarta", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains", ui-monospace, "Cascadia Code", Consolas, monospace;
}
body.clms-site { margin: 0; background: #fff; color: var(--text); font-family: var(--sans); }
.clms { color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.clms *, .clms *::before, .clms *::after { box-sizing: inherit; }
.clms h1, .clms h2, .clms h3, .clms h4 { font-family: var(--sans); color: var(--text); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 800; }
.clms p { margin: 0 0 1em; }
.clms a { color: inherit; }
.clms-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.clms-muted { color: var(--muted); }
.clms-icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.clms-gradient-text { background: linear-gradient(100deg, var(--orange-2), var(--orange) 45%, #ff6a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.clms-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-d); margin-bottom: 12px; }
.clms-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.clms-skip:focus { left: 8px; }

/* ---------- buttons & links ---------- */
.clms-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, var(--orange-2), var(--orange) 60%, #ff8a00); color: #1a1205 !important; font: 700 15.5px/1.2 var(--sans);
  padding: 13px 22px; text-decoration: none !important; position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 8px 20px -6px rgba(255, 140, 0, .55); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.clms-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transform: translateX(-120%); }
.clms-btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 14px 28px -8px rgba(255, 140, 0, .65); }
.clms-btn:hover::after { transform: translateX(120%); transition: transform .7s ease; }
.clms-btn .clms-icon { transition: transform .2s var(--ease); }
.clms-btn:hover .clms-icon:last-child { transform: translateX(3px); }
.clms-btn--lg { padding: 16px 26px; font-size: 16.5px; border-radius: 14px; }
.clms-btn--small { padding: 9px 15px; font-size: 14px; border-radius: 10px; }
.clms-btn--block { width: 100%; }
.clms-btn--ghost { background: #fff; color: var(--text) !important; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.clms-btn--ghost:hover { border-color: #cfd6e3; box-shadow: var(--shadow); }
.clms-btn--glass { background: rgba(255,255,255,.08); color: #fff !important; border: 1px solid rgba(255,255,255,.18); box-shadow: none; backdrop-filter: blur(8px); }
.clms-btn--glass:hover { background: rgba(255,255,255,.14); box-shadow: none; }
.clms-btn--dark { background: var(--ink); color: #fff !important; box-shadow: 0 12px 30px -10px rgba(11,19,36,.6); }
.clms-btn--dark:hover { box-shadow: 0 18px 36px -12px rgba(11,19,36,.7); }
.clms-btn:focus-visible, .clms a:focus-visible, .clms button:focus-visible, .clms summary:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
.clms-arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--text); text-decoration: none; }
.clms-arrow-link .clms-icon { transition: transform .2s var(--ease); color: var(--orange-d); }
.clms-arrow-link:hover { color: var(--orange-d); }
.clms-arrow-link:hover .clms-icon { transform: translateX(4px); }

/* ---------- notices, chips, badges ---------- */
.clms-notice { border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 15px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-sm); animation: clms-drop .5s var(--ease) both; }
.clms-notice::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.clms-notice--ok { background: #f0fdf4; border-color: #bbf7d0; } .clms-notice--ok::before { background: var(--ok); }
.clms-notice--info { background: #fff8eb; border-color: #fde4b8; } .clms-notice--info::before { background: var(--orange); }
.clms-notice--error { background: #fef2f2; border-color: #fecaca; } .clms-notice--error::before { background: var(--err); }
.clms-badge { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 5px 11px; margin-bottom: 12px; }
.clms-badge--legacy { background: #e9ecf3; color: #4a5470; }
.clms-hero .clms-badge--legacy { background: rgba(255,255,255,.12); color: #dbe4f3; }
.clms-tag { font-style: normal; font-size: 11.5px; font-weight: 700; color: #b45309; background: #fff3dc; border: 1px solid #fde2ad; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.clms-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.clms-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); font-weight: 600; }
.clms-meta li { display: inline-flex; align-items: center; gap: 6px; }
.clms-meta .clms-icon { color: var(--orange-d); }
.clms-meta--hero { color: #cdd6e6; font-size: 15px; gap: 10px 22px; margin-top: 22px; }
.clms-meta--hero .clms-icon { color: var(--orange-2); }

/* ---------- top bar ---------- */
.clms-topbar { position: sticky; top: 0; z-index: 50; background: var(--ink); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.07); transition: background .3s, box-shadow .3s; }
.admin-bar .clms-topbar { top: 32px; }
.clms-topbar.is-scrolled { background: rgba(11, 19, 36, .92); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.clms-topbar__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.clms-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: #fff !important; margin-right: auto; }
.clms-logo__mark { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 6px 14px rgba(255,140,0,.35)); }
.clms-logo__text { font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.clms-logo__text strong { font-weight: 800; }
.clms-logo__text span { font-weight: 500; opacity: .75; }
.clms-topbar__nav { display: flex; align-items: center; gap: 6px; }
.clms-topbar__nav > a { color: #cdd6e6; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.clms-topbar__nav > a:hover, .clms-topbar__nav > a[aria-current] { color: #fff; background: rgba(255,255,255,.07); }
.clms-topbar__account { display: flex; align-items: center; gap: 10px; margin-left: 12px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.12); }
.clms-topbar__quiet { display: inline-flex; align-items: center; gap: 6px; color: #cdd6e6 !important; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 10px; }
.clms-topbar__quiet:hover { color: #fff !important; }
.clms-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 800; color: #1a1205 !important; text-decoration: none; background: linear-gradient(135deg, var(--orange-2), var(--orange)); box-shadow: 0 0 0 3px rgba(255,153,0,.25); }
.clms-topbar__burger { display: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.clms-topbar__burger .clms-icon { width: 22px; height: 22px; }

/* ---------- hero (shared dark band) ---------- */
.clms-hero, .clms-dash-hero, .clms-auth__art {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(1200px 600px at 80% -10%, #1d2f57 0%, transparent 60%), linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}
.clms-hero::before, .clms-dash-hero::before, .clms-auth__art::before { /* faint grid fading out */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000 20%, transparent 75%);
}
.clms-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.clms-hero__bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: clms-drift 18s ease-in-out infinite alternate; }
.clms-hero__bg i:nth-child(1) { width: 520px; height: 520px; right: -120px; top: -180px; background: radial-gradient(circle, rgba(255,153,0,.55), transparent 65%); }
.clms-hero__bg i:nth-child(2) { width: 460px; height: 460px; left: -160px; bottom: -220px; background: radial-gradient(circle, rgba(45,212,191,.40), transparent 65%); animation-duration: 22s; animation-delay: -6s; }
.clms-hero__bg i:nth-child(3) { width: 380px; height: 380px; left: 40%; top: 30%; background: radial-gradient(circle, rgba(139,92,246,.30), transparent 65%); animation-duration: 26s; animation-delay: -12s; }
.clms-hero h1, .clms-dash-hero h1 { color: #fff; }
.clms-hero .clms-lead { color: #b9c4d8; font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.65; max-width: 600px; }
.clms-hero__text > * { animation: clms-rise .8s var(--ease) both; }
.clms-hero__text > *:nth-child(2) { animation-delay: .08s; }
.clms-hero__text > *:nth-child(3) { animation-delay: .16s; }
.clms-hero__text > *:nth-child(4) { animation-delay: .24s; }
.clms-hero__text > *:nth-child(n+5) { animation-delay: .32s; }

.clms-hero--home { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px); }
.clms-hero--home .clms-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.clms-hero--home h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -.04em; margin: 20px 0 22px; }
.clms-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; color: #dbe4f3 !important; text-decoration: none; font-size: 14px; font-weight: 600; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: background .2s, border-color .2s; }
.clms-pill:hover { background: rgba(255,255,255,.1); border-color: rgba(255,153,0,.5); }
.clms-pill__tag { background: linear-gradient(135deg, var(--orange-2), var(--orange)); color: #1a1205; font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.clms-pill .clms-icon { color: var(--orange-2); }
.clms-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 26px; }
.clms-hero__points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: #cdd6e6; font-weight: 600; font-size: 15px; }
.clms-hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.clms-hero__points .clms-icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(45, 212, 191, .16); color: var(--teal); stroke-width: 3; }

/* hero showcase: lesson window + terminal + floating chips */
.clms-showcase { position: relative; width: 100%; max-width: 560px; justify-self: end; aspect-ratio: 1.12; animation: clms-rise 1s var(--ease) .2s both; }
.clms-showcase__glow { position: absolute; inset: 10% 5% 0; background: radial-gradient(closest-side, rgba(255,153,0,.35), transparent); filter: blur(30px); }
.clms-window { position: absolute; left: 0; right: 6%; top: 4%; border-radius: 16px; overflow: hidden; background: #0e1830; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04) inset; transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); animation: clms-tilt 9s ease-in-out infinite alternate; }
.clms-window__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07); }
.clms-window__bar i, .clms-term__bar i, .clms-mini-code__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.clms-window__bar i:nth-child(2), .clms-term__bar i:nth-child(2), .clms-mini-code__bar i:nth-child(2) { background: #febc2e; }
.clms-window__bar i:nth-child(3), .clms-term__bar i:nth-child(3), .clms-mini-code__bar i:nth-child(3) { background: #28c840; }
.clms-window__bar span { margin-left: 10px; font-size: 12px; color: #8fa0bd; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clms-window__body { padding: 14px; }
.clms-console { display: flex; gap: 12px; background: #f4f6fa; border-radius: 10px; padding: 12px; min-height: 210px; position: relative; overflow: hidden; }
.clms-console__side { width: 22%; display: grid; gap: 9px; align-content: start; padding-top: 4px; }
.clms-console__side b { height: 8px; border-radius: 4px; background: #d6dce7; }
.clms-console__side b.is-on { background: var(--orange); width: 80%; }
.clms-console__main { flex: 1; display: grid; gap: 8px; align-content: start; position: relative; }
.clms-console__head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 800; color: #16191f; margin-bottom: 4px; }
.clms-console__head em { font-style: normal; font-size: 10.5px; font-weight: 700; background: var(--orange); color: #16191f; padding: 4px 9px; border-radius: 6px; }
.clms-console__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1px solid #e3e7ee; border-radius: 7px; padding: 9px 10px; font-size: 11.5px; color: #16191f; font-weight: 600; }
.clms-console__row--new { animation: clms-row-in .6s var(--ease) 1.1s both; }
.clms-console__name { font-family: var(--mono); font-weight: 500; font-size: 11px; }
.clms-state { position: relative; display: inline-grid; font-size: 10.5px; font-weight: 700; padding: 3px 8px 3px 18px; border-radius: 999px; }
.clms-state::before { content: ""; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: currentColor; }
.clms-state--run { color: #067647; background: #dcfae6; }
.clms-state--stop { color: #6b7280; background: #eef0f3; }
.clms-state--boot { color: #067647; background: #dcfae6; animation: clms-boot-bg 7s ease-in-out infinite; }
.clms-state--boot i { grid-area: 1 / 1; font-style: normal; }
.clms-state--boot i:first-child { color: #b54708; animation: clms-boot-a 7s ease-in-out infinite; }
.clms-state--boot i:last-child { animation: clms-boot-b 7s ease-in-out infinite; }
.clms-highlight { position: absolute; left: -4px; right: -4px; top: 76px; height: 40px; border: 2.5px solid var(--orange); border-radius: 9px; box-shadow: 0 0 0 4px rgba(255,153,0,.2); animation: clms-hl 7s ease-in-out infinite; }
.clms-window__player { display: flex; align-items: center; gap: 12px; padding: 12px 4px 2px; color: #8fa0bd; font-size: 12px; font-weight: 600; }
.clms-window__play { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #1a1205; }
.clms-window__play .clms-icon { width: 30px; height: 30px; }
.clms-window__play .clms-icon circle { display: none; }
.clms-window__track { flex: 1; height: 5px; border-radius: 9px; background: rgba(255,255,255,.12); overflow: hidden; }
.clms-window__track span { display: block; height: 100%; width: 62%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--orange-2)); animation: clms-track 7s linear infinite; }
.clms-term { position: absolute; left: -6%; bottom: 2%; width: 62%; border-radius: 14px; background: rgba(9, 14, 28, .92); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px -18px rgba(0,0,0,.7); backdrop-filter: blur(10px); padding: 0 0 14px; animation: clms-float 7s ease-in-out infinite; }
.clms-term__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 10px; }
.clms-term__bar em, .clms-mini-code__bar em { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700; color: #cbd5e1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 2px 8px; border-radius: 6px; }
.clms-term code { display: block; font-family: var(--mono); font-size: 12px; color: #e2e8f0; padding: 2px 14px; white-space: nowrap; overflow: hidden; }
.clms-term code b { color: var(--teal); font-weight: 500; }
.clms-term__line span { display: inline-block; vertical-align: bottom; overflow: hidden; white-space: nowrap; width: 0; border-right: 2px solid var(--orange-2); animation: clms-type 7s steps(26) infinite, clms-caret .8s step-end infinite; }
.clms-term__out { color: #94a3b8 !important; opacity: 0; animation: clms-out 7s ease infinite; }
.clms-term__out span { color: #4ade80; }
.clms-chip-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(255,255,255,.97); color: var(--text); box-shadow: 0 20px 40px -14px rgba(0,0,0,.5); font-size: 13px; line-height: 1.25; }
.clms-chip-float strong { display: block; font-weight: 800; font-size: 13px; }
.clms-chip-float small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.clms-chip-float--a { right: 0; top: 0; animation: clms-float 6s ease-in-out -2s infinite; }
.clms-chip-float--b { right: -2%; bottom: 14%; animation: clms-float 8s ease-in-out -4s infinite; }
.clms-chip-float__dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #dcfae6; color: #067647; }
.clms-chip-float__dot .clms-icon { stroke-width: 3; }
.clms-ring { width: 36px; height: 36px; transform: rotate(-90deg); flex: none; }
.clms-ring circle { fill: none; stroke: #e8ebf2; stroke-width: 4; }
.clms-ring .clms-ring__val { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 97.4; animation: clms-ring 7s var(--ease) infinite; }

/* ---------- stat band ---------- */
.clms-statband { position: relative; margin-top: -44px; z-index: 2; }
.clms-statband__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 8px; }
.clms-statband__grid > div { padding: 18px 24px; display: grid; gap: 2px; }
.clms-statband__grid > div + div { border-left: 1px solid var(--line); }
.clms-statband strong { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; background: linear-gradient(135deg, var(--ink-3), var(--orange-d)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.clms-statband__grid > div > span { color: var(--muted); font-weight: 600; font-size: 14.5px; }

/* ---------- sections ---------- */
.clms-section { padding: clamp(64px, 8vw, 104px) 0; }
.clms-section--tint { background: linear-gradient(180deg, var(--soft), #fff); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clms-section__head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.clms-section__head h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.035em; }
.clms-section__head p { color: var(--muted); font-size: 17.5px; margin: 0; }

/* ---------- course cards ---------- */
.clms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.clms-course-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.clms-course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: #d9dee8; }
.clms-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.clms-cover svg, .clms-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.clms-course-card:hover .clms-cover > svg, .clms-course-card:hover .clms-cover > img, .clms-dash-course:hover .clms-cover > svg { transform: scale(1.07); }
.clms-cover__title { color: #fff; font: 800 20px/1.2 var(--sans); letter-spacing: -.02em; }
.clms-cover__badge { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(11,19,36,.55); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); padding: 4px 11px; border-radius: 999px; }
.clms-cover__badge--ok { background: rgba(22,163,74,.85); }
.clms-course-card__body { padding: 22px 24px 22px; display: flex; flex-direction: column; flex: 1; gap: 12px; }
.clms-course-card__body h3 { font-size: 21px; margin: 0; }
.clms-course-card__body h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.clms-course-card:hover h3 a { background-size: 100% 2px; }
.clms-course-card__body p { margin: 0; font-size: 15px; }
.clms-course-card__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.clms-price { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.clms-price--free { color: var(--ok); }

/* ---------- how it works ---------- */
.clms-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; position: relative; }
.clms-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px 28px; box-shadow: var(--shadow); counter-increment: step; }
.clms-steps li::after { content: "0" counter(step); position: absolute; right: 22px; top: 18px; font-size: 44px; font-weight: 800; letter-spacing: -.04em; color: #eef1f6; }
.clms-steps h3 { font-size: 20px; margin: 18px 0 8px; }
.clms-steps p { color: var(--muted); margin: 0; }
.clms-steps__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, var(--ink-3), var(--ink)); box-shadow: 0 10px 22px -8px rgba(11,19,36,.55); }
.clms-steps li:nth-child(2) .clms-steps__icon { background: linear-gradient(135deg, var(--orange-2), var(--orange-d)); color: #1a1205; box-shadow: 0 10px 22px -8px rgba(255,140,0,.6); }
.clms-steps li:nth-child(3) .clms-steps__icon { background: linear-gradient(135deg, #34d399, #0d9488); box-shadow: 0 10px 22px -8px rgba(13,148,136,.6); }
.clms-steps__icon .clms-icon { width: 26px; height: 26px; }

/* ---------- bento ---------- */
.clms-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.clms-bento__card { position: relative; overflow: hidden; border-radius: 22px; padding: 30px; background: var(--soft); border: 1px solid var(--line); }
.clms-bento__card--wide { grid-column: span 2; }
.clms-bento__card h3 { font-size: 22px; margin: 14px 0 8px; }
.clms-bento__card p { color: var(--muted); margin: 0; max-width: 520px; }
.clms-bento__card .clms-eyebrow { margin: 0; }
.clms-bento__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--orange-d); box-shadow: var(--shadow-sm); }
.clms-bento__icon .clms-icon { width: 24px; height: 24px; }
.clms-bento__card--dark { background: radial-gradient(500px 260px at 100% 0%, rgba(45,212,191,.22), transparent 60%), linear-gradient(135deg, var(--ink), var(--ink-3)); border-color: transparent; }
.clms-bento__card--dark h3 { color: #fff; }
.clms-bento__card--dark p { color: #b9c4d8; }
.clms-bento__card--dark .clms-bento__icon { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: var(--teal); }
.clms-mini-code { margin-top: 22px; border-radius: 14px; background: var(--ink); border: 1px solid #1f2b45; overflow: hidden; box-shadow: 0 20px 40px -18px rgba(11,19,36,.6); }
.clms-mini-code__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.clms-mini-code code { display: block; padding: 14px 18px 18px; font-family: var(--mono); font-size: 13px; line-height: 1.8; color: #e2e8f0; overflow-x: auto; white-space: nowrap; }
.clms-mini-code code b { color: var(--teal); font-weight: 500; }

/* ---------- call to action ---------- */
.clms-cta { padding: 0 0 clamp(64px, 8vw, 104px); }
.clms-cta__inner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(32px, 5vw, 56px); border-radius: 28px; background: linear-gradient(120deg, #ffb547, #ff9900 45%, #ff7a1a); box-shadow: 0 30px 60px -24px rgba(255,120,0,.6); }
.clms-cta__inner::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.clms-cta__inner > * { position: relative; }
.clms-cta h2 { font-size: clamp(26px, 3.2vw, 38px); color: #1a1205; margin-bottom: 6px; }
.clms-cta p { color: #3d2a06; font-size: 17px; margin: 0; font-weight: 500; }

/* ---------- footer ---------- */
.clms-footer { background: var(--ink); color: #9aa8c2; padding: 72px 0 28px; font-size: 15px; }
.clms-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.clms-footer__brand p { margin-top: 16px; max-width: 320px; line-height: 1.7; }
.clms-footer h4 { color: #fff; font-size: 14px; letter-spacing: .02em; margin: 6px 0 16px; }
.clms-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.clms-footer a { color: #9aa8c2; text-decoration: none; transition: color .2s; }
.clms-footer a:hover { color: #fff; }
.clms-footer .clms-logo { color: #fff !important; }
.clms-footer__ticks li { display: flex; align-items: center; gap: 8px; }
.clms-footer__ticks .clms-icon { color: var(--orange-2); }
.clms-footer__base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.clms-footer__secure { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- course page ---------- */
.clms-hero--course { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); }
.clms-course__heroinner { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; }
.clms-hero--course h1 { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -.035em; margin-bottom: 16px; }
.clms-crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: #8fa0bd; margin-bottom: 18px; font-weight: 600; }
.clms-crumbs a { color: var(--orange-2); text-decoration: none; }
.clms-crumbs a:hover { text-decoration: underline; }
.clms-hero--course .clms-notice { margin-top: 22px; max-width: 600px; }
.clms-course__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; padding-bottom: 96px; }
.clms-course__body { display: grid; gap: 40px; padding-top: 40px; min-width: 0; }
.clms-course__body h2 { font-size: 26px; letter-spacing: -.03em; }
.clms-outcomes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 28px; }
.clms-outcomes li { display: flex; gap: 12px; align-items: flex-start; }
.clms-outcomes .clms-icon { width: 22px; height: 22px; padding: 4px; margin-top: 2px; border-radius: 50%; background: #dcfae6; color: var(--ok); stroke-width: 3; }
.clms-prose { font-size: 17px; line-height: 1.75; color: #334155; }
.clms-course__contenthead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.clms-course__contenthead h2 { margin: 0; }
.clms-course__contenthead span { font-size: 14.5px; font-weight: 600; }
.clms-buy { position: sticky; top: 92px; margin-top: -280px; z-index: 3; }
.admin-bar .clms-buy { top: 124px; }
.clms-buy__card { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: clms-rise .8s var(--ease) .15s both; }
.clms-buy__cover { aspect-ratio: 16 / 9; }
.clms-buy__trailer .clms-video { margin: 0; border-radius: 0; box-shadow: none; }
.clms-buy__body { padding: 24px; }
.clms-buy__price { font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 18px; }
.clms-buy__enrolled { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ok); margin-bottom: 14px; }
.clms-buy__body .clms-enroll .clms-btn, .clms-buy__body > .clms-btn { width: 100%; padding: 16px; font-size: 16.5px; }
.clms-buy__body .clms-progress { margin-bottom: 14px; }
.clms-buy__body h3 { font-size: 15px; margin: 24px 0 12px; letter-spacing: -.01em; }
.clms-buy__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 14.5px; color: #334155; }
.clms-buy__list li { display: flex; gap: 10px; align-items: center; }
.clms-buy__list .clms-icon { color: var(--orange-d); }
.clms-enroll { margin: 0; }
.clms-secure, .clms-closed { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; margin: 10px 0 0 !important; color: var(--muted); }

/* ---------- curriculum ---------- */
.clms-curriculum { display: grid; gap: 12px; }
.clms-topic { border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.clms-topic[open] { box-shadow: var(--shadow); border-color: #dde2eb; }
.clms-topic summary { cursor: pointer; padding: 16px 18px; display: flex; align-items: center; gap: 14px; list-style: none; transition: background .2s; }
.clms-topic summary:hover { background: #fafbfd; }
.clms-topic summary::-webkit-details-marker { display: none; }
.clms-topic__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; flex: none; font-weight: 800; font-size: 15px; color: var(--ink-3); background: #eef1f7; transition: background .25s, color .25s; }
.clms-topic[open] .clms-topic__num { background: var(--ink); color: var(--orange-2); }
.clms-topic__title { flex: 1; display: grid; min-width: 0; }
.clms-topic__title strong { font-size: 16px; font-weight: 700; }
.clms-topic__title small { color: var(--muted); font-size: 13px; font-weight: 600; }
.clms-topic__chev { width: 10px; height: 10px; border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8; transform: rotate(45deg); transition: transform .3s var(--ease); margin: 0 6px 4px; }
.clms-topic[open] .clms-topic__chev { transform: rotate(-135deg); margin-bottom: -4px; }
.clms-topic[open] ol { animation: clms-drop .35s var(--ease) both; }
.clms-topic ol { list-style: none; margin: 0; padding: 4px 0 8px; border-top: 1px solid var(--line); }
.clms-lesson-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px; font-size: 15px; transition: background .15s; }
.clms-lesson-row:hover { background: #f8fafc; }
.clms-lesson-row a, .clms-lesson-row > span:not(.clms-lesson-row__icon) { flex: 1; min-width: 0; color: var(--text); text-decoration: none; }
.clms-lesson-row a:hover { color: var(--orange-d); }
.clms-lesson-row.is-locked > span:not(.clms-lesson-row__icon) { color: #64748b; }
.clms-lesson-row small { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clms-lesson-row__icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #eef2fa; color: var(--ink-3); }
.clms-lesson-row__icon .clms-icon { width: 15px; height: 15px; }
.clms-lesson-row__icon .clms-icon circle { display: none; }
.clms-lesson-row.is-locked .clms-lesson-row__icon { background: #f3f4f6; color: #9ca3af; }
.clms-lesson-row.is-done .clms-lesson-row__icon { background: #dcfae6; color: var(--ok); }
.clms-lesson-row.is-done .clms-icon { stroke-width: 3; }
.clms-lesson-row.is-current { background: #fff7eb; box-shadow: inset 3px 0 0 var(--orange); }
.clms-lesson-row.is-current .clms-lesson-row__icon { background: var(--orange); color: #1a1205; box-shadow: 0 0 0 4px rgba(255,153,0,.2); }
.clms-lesson-row.is-current a { font-weight: 700; }

/* ---------- progress ---------- */
.clms-progress { display: flex; align-items: center; gap: 12px; }
.clms-progress__bar { flex: 1; height: 8px; border-radius: 99px; background: #e8ebf2; overflow: hidden; min-width: 80px; }
.clms-progress__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--orange-2)); animation: clms-fill 1.3s var(--ease) both; position: relative; overflow: hidden; }
.clms-progress__bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: clms-shimmer 2.4s ease-in-out 1.3s infinite; }
.clms-progress__label { font-size: 13px; color: var(--muted); white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- lesson player ---------- */
body.clms-player-body { margin: 0; background: var(--soft); font-family: var(--sans); }
.clms-player { min-height: 100vh; display: flex; flex-direction: column; background: var(--soft); }
.clms-player__bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; height: 62px; padding: 0 20px; color: #fff; background: rgba(11,19,36,.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.07); }
.admin-bar .clms-player__bar { top: 32px; }
.clms-player__bar a { color: #fff; text-decoration: none; }
.clms-player__home .clms-logo__mark { width: 34px; height: 34px; display: block; }
.clms-player__course { flex: 1; min-width: 0; display: grid; line-height: 1.25; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.12); }
.clms-player__course small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8fa0bd; }
.clms-player__course { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clms-player__course:hover { color: var(--orange-2) !important; }
.clms-player__progress { width: 260px; }
.clms-player__progress .clms-progress__label { color: #b9c4d8; }
.clms-player__progress .clms-progress__bar { background: rgba(255,255,255,.12); }
.clms-player__dash { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 8px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; transition: background .2s, border-color .2s; }
.clms-player__dash:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.clms-player__toggle { display: none; align-items: center; gap: 6px; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 8px 12px; font: 600 14px var(--sans); cursor: pointer; }
.clms-player__layout { display: grid; grid-template-columns: 360px 1fr; flex: 1; }
.clms-player__nav { border-right: 1px solid var(--line); background: #fff; max-height: calc(100vh - 62px); overflow: auto; position: sticky; top: 62px; padding: 14px; }
.clms-player__nav .clms-topic { box-shadow: none; }
.clms-player__nav .clms-curriculum { gap: 10px; }
.clms-player__main { padding: 32px clamp(16px, 4vw, 64px) 80px; max-width: 1080px; width: 100%; margin: 0 auto; animation: clms-rise .5s var(--ease) both; }
.clms-video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 20px; overflow: hidden; margin-bottom: 32px; box-shadow: 0 30px 60px -24px rgba(11,19,36,.55); }
.clms-video iframe, .clms-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.clms-lesson { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.clms-lesson h1 { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -.035em; }
.clms-player__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding: 16px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.clms-player__actions form { margin: 0; }
.clms-done { color: var(--ok); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.clms-done::before { content: "\2713"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #dcfae6; animation: clms-pop .5s var(--ease) both; }
.clms-preview-cta { text-align: center; }
.clms-preview-cta p { margin: 0 0 8px; font-weight: 600; color: var(--muted); }

/* article content (lesson write-ups) */
.clms-article { font-size: 17px; line-height: 1.8; color: #1e293b; }
.clms-article h2 { font-size: 24px; margin: 40px 0 14px; letter-spacing: -.025em; }
.clms-article h3 { font-size: 19px; margin: 28px 0 10px; }
.clms-article ul, .clms-article ol { padding-left: 22px; }
.clms-article li { margin: 6px 0; }
.clms-article li::marker { color: var(--orange-d); }
.clms-article a { color: var(--orange-d); text-underline-offset: 3px; }
.clms-article img { max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 8px 0; }
.clms-article blockquote { margin: 20px 0; padding: 14px 20px; border-left: 4px solid var(--orange); background: #fff8eb; border-radius: 0 12px 12px 0; }
.clms-article pre { position: relative; background: var(--ink); color: #e2e8f0; padding: 18px 20px; padding-right: 88px; border-radius: 14px; overflow-x: auto; font-size: 14px; line-height: 1.65; border: 1px solid #1f2b45; box-shadow: 0 14px 30px -18px rgba(11,19,36,.6); }
.clms-article code { font-family: var(--mono); }
.clms-article :not(pre) > code { background: #f1f3f8; border: 1px solid #e5e8ef; padding: 1px 6px; border-radius: 6px; font-size: .88em; }
.clms-copy { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.08); color: #e2e8f0; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; font: 600 12px var(--sans); padding: 6px 12px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.clms-copy:hover { background: rgba(255,255,255,.16); }
.clms-copy.is-copied { background: var(--ok); border-color: var(--ok); color: #fff; }

/* ---------- dashboard ---------- */
.clms-page { min-height: 60vh; }
.clms-dashboard { padding-bottom: 96px; }
.clms-dash-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(80px, 9vw, 112px); }
.clms-dash-hero__grid { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: 40px; align-items: center; }
.clms-dash-hero h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; margin-bottom: 8px; }
.clms-dash-hero p { color: #b9c4d8; font-size: 17.5px; margin: 0; }
.clms-dash-hero__text { animation: clms-rise .7s var(--ease) both; }
.clms-wave { display: inline-block; transform-origin: 70% 70%; animation: clms-wave 2.4s ease-in-out 1s 2; }
.clms-resume { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: 20px; text-decoration: none !important; color: #fff !important; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(12px); box-shadow: 0 30px 60px -24px rgba(0,0,0,.5); transition: transform .3s var(--ease), background .3s, border-color .3s; animation: clms-rise .8s var(--ease) .15s both; }
.clms-resume:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); border-color: rgba(255,153,0,.5); }
.clms-resume__play { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; flex: none; background: linear-gradient(135deg, var(--orange-2), var(--orange)); color: #1a1205; box-shadow: 0 12px 24px -8px rgba(255,140,0,.7); }
.clms-resume__play .clms-icon { width: 30px; height: 30px; }
.clms-resume__play .clms-icon circle { display: none; }
.clms-resume__text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.clms-resume__text small { color: #8fa0bd; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clms-resume__text strong { font-size: 17px; font-weight: 700; line-height: 1.3; }
.clms-resume__text .clms-progress { margin-top: 6px; }
.clms-resume__text .clms-progress__bar { background: rgba(255,255,255,.14); }
.clms-resume__text .clms-progress__label { color: #b9c4d8; }
.clms-resume__go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); flex: none; transition: transform .3s var(--ease); }
.clms-resume:hover .clms-resume__go { transform: translateX(4px); }
.clms-dash-body { display: grid; gap: 44px; margin-top: -56px; position: relative; z-index: 2; }
.clms-dash-body > .clms-notice { margin: 0; }
.clms-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.clms-stat { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-lg); }
.clms-stat__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; flex: none; background: #eef2ff; color: #4f46e5; }
.clms-stat__icon .clms-icon { width: 24px; height: 24px; }
.clms-stat--lessons .clms-stat__icon { background: #dcfae6; color: var(--ok); }
.clms-stat--finished .clms-stat__icon { background: #fff3dc; color: var(--orange-d); }
.clms-stat strong { display: block; font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.clms-stat span { color: var(--muted); font-size: 14px; font-weight: 600; }
.clms-dash-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.clms-dash-head h2 { font-size: 24px; margin: 0; letter-spacing: -.03em; }
.clms-dash-head p { margin: 4px 0 0; }
.clms-dash-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.clms-dash-course { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.clms-dash-course:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.clms-dash-course__body { padding: 20px 22px 22px; display: grid; gap: 12px; flex: 1; align-content: start; }
.clms-dash-course h4 { font-size: 18.5px; margin: 0; }
.clms-dash-course h4 a { text-decoration: none; }
.clms-dash-course h4 a:hover { color: var(--orange-d); }
.clms-dash-course__count { margin: -6px 0 0 !important; font-size: 14px; font-weight: 600; }
.clms-dash-course .clms-badge { margin: 0; justify-self: start; }
.clms-empty { text-align: center; padding: 48px 24px; }
.clms-empty__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: #fff3dc; color: var(--orange-d); margin-bottom: 14px; }
.clms-empty__icon .clms-icon { width: 28px; height: 28px; }
.clms-empty h3 { font-size: 20px; }
.clms-dash-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; align-items: start; }
.clms-dash-split h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.clms-dash-split h3 .clms-icon { color: var(--orange-d); }
.clms-account dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 6px 0 20px; font-size: 15px; }
.clms-account dt { color: var(--muted); font-weight: 600; }
.clms-account dd { margin: 0; font-weight: 600; word-break: break-all; }
.clms-account__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.clms-table-wrap { overflow-x: auto; }
.clms-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.clms-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.clms-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
.clms-table tr:last-child td { border-bottom: 0; }
.clms-status { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: #eef2fa; }
.clms-status--paid { background: #dcfae6; color: #166534; }
.clms-signedin { padding: 72px 24px; max-width: 640px; }

/* ---------- login / register ---------- */
.clms-auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 68px); }
.clms-auth__art { display: flex; }
.clms-auth__artinner { display: flex; flex-direction: column; justify-content: center; gap: 48px; padding: clamp(32px, 5vw, 64px); width: 100%; max-width: 620px; margin-left: auto; }
.clms-auth__tagline { font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; margin: 0 0 28px !important; color: #fff; }
.clms-auth__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; color: #cdd6e6; font-size: 16px; font-weight: 500; }
.clms-auth__perks li { display: flex; align-items: center; gap: 14px; }
.clms-auth__perks span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: var(--orange-2); flex: none; }
.clms-auth__card { align-self: flex-start; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; background: rgba(255,255,255,.96); color: var(--text); box-shadow: 0 24px 48px -18px rgba(0,0,0,.6); animation: clms-float 7s ease-in-out infinite; }
.clms-auth__card strong { display: block; font-size: 14px; }
.clms-auth__card small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.clms-auth__panel { display: flex; align-items: center; padding: clamp(32px, 5vw, 64px); background: #fff; }
.clms-auth__form { width: 100%; max-width: 420px; animation: clms-rise .7s var(--ease) both; }
.clms-auth__form h1 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.035em; margin-bottom: 6px; }
.clms-auth__form > .clms-muted { margin-bottom: 26px; }
.clms-form, .clms-auth__form form { display: grid; gap: 16px; }
.clms-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.clms-auth label { display: grid; gap: 7px; font-weight: 700; font-size: 14px; color: #334155; }
.clms-auth form p { margin: 0; }
.clms-auth input[type=text], .clms-auth input[type=email], .clms-auth input[type=password], .clms-auth input:not([type]) {
  width: 100%; padding: 13px 15px; border: 1.5px solid #dde2ea; border-radius: 12px; font: 500 16px var(--sans); color: var(--text); background: #fafbfc;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.clms-auth input:hover { border-color: #c8cfdb; }
.clms-auth input:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(255,153,0,.16); }
.clms-auth .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--muted); }
.clms-auth .login-remember input { width: 17px; height: 17px; accent-color: var(--orange); }
.clms-auth .login-submit input, .clms-auth button[type=submit] { width: 100%; }
.clms-auth .login-submit input { background: linear-gradient(135deg, var(--orange-2), var(--orange) 60%, #ff8a00); color: #1a1205; border: 0; border-radius: 14px; padding: 16px 22px; font: 700 16.5px var(--sans); cursor: pointer; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 10px 24px -8px rgba(255,140,0,.6); transition: transform .2s var(--ease), box-shadow .2s; }
.clms-auth .login-submit input:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(255,140,0,.7); }
.clms-form__hint { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: -6px; }
.clms-auth__forgot { margin: 14px 0 0 !important; font-size: 14px; text-align: right; }
.clms-auth__forgot a, .clms-auth__links a { color: var(--orange-d); font-weight: 700; text-decoration: none; }
.clms-auth__forgot a:hover, .clms-auth__links a:hover { text-decoration: underline; }
.clms-auth__links { font-size: 15px; margin: 28px 0 0 !important; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.clms-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- scroll reveal (only once the script has run) ---------- */
.clms-js .clms-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .35s var(--ease), border-color .35s; transition-delay: calc(var(--i, 0) * 80ms); }
.clms-js .clms-reveal.is-in { opacity: 1; transform: none; }
.clms-js .clms-course-card.is-in:hover { transform: translateY(-8px); transition-delay: 0s; }
.clms-js .clms-dash-course.is-in:hover { transform: translateY(-6px); transition-delay: 0s; }

/* ---------- celebration ---------- */
.clms-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.clms-confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; opacity: .9; animation: clms-confetti 2.8s cubic-bezier(.25,.6,.4,1) forwards; }

/* ---------- keyframes ---------- */
@keyframes clms-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes clms-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes clms-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes clms-drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-60px, 40px) scale(1.15); } }
@keyframes clms-tilt { from { transform: perspective(1400px) rotateY(-9deg) rotateX(5deg); } to { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg) translateY(-6px); } }
@keyframes clms-row-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes clms-boot-a { 0%, 38% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes clms-boot-b { 0%, 38% { opacity: 0; } 44%, 100% { opacity: 1; } }
@keyframes clms-boot-bg { 0%, 38% { background: #fef0c7; color: #b54708; } 44%, 100% { background: #dcfae6; color: #067647; } }
@keyframes clms-hl { 0%, 20% { opacity: 0; transform: scale(1.04); } 26%, 70% { opacity: 1; transform: none; } 78%, 100% { opacity: 0; } }
@keyframes clms-track { from { width: 18%; } to { width: 96%; } }
@keyframes clms-type { 0%, 6% { width: 0; } 34%, 100% { width: 26ch; } }
@keyframes clms-caret { 50% { border-color: transparent; } }
@keyframes clms-out { 0%, 38% { opacity: 0; transform: translateY(4px); } 44%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes clms-ring { 0%, 40% { stroke-dashoffset: 97.4; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes clms-fill { from { width: 0; } }
@keyframes clms-shimmer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes clms-pop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes clms-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }
@keyframes clms-confetti { to { transform: translate3d(var(--x, 0), 105vh, 0) rotate(var(--rot, 540deg)); opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .clms-course__heroinner, .clms-course__layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .clms-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .clms-topbar__burger { display: grid; place-items: center; }
  .clms-topbar__nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 20px 20px; background: rgba(11,19,36,.98); border-bottom: 1px solid rgba(255,255,255,.08); }
  .clms-topbar__nav.is-open { display: flex; animation: clms-drop .3s var(--ease) both; }
  .clms-topbar__account { margin: 8px 0 0; padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .clms-hero--home .clms-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .clms-showcase { justify-self: center; max-width: 480px; }
  .clms-statband__grid { grid-template-columns: 1fr 1fr; }
  .clms-statband__grid > div:nth-child(3) { border-left: 0; }
  .clms-statband__grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .clms-steps, .clms-bento { grid-template-columns: 1fr; }
  .clms-bento__card--wide { grid-column: auto; }
  .clms-course__heroinner, .clms-course__layout { grid-template-columns: 1fr; }
  .clms-buy { position: static; margin-top: 24px; order: -1; }
  .clms-course__body { padding-top: 8px; }
  .clms-dash-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .clms-stats { grid-template-columns: 1fr; }
  .clms-auth { grid-template-columns: 1fr; min-height: 0; }
  .clms-auth__artinner { max-width: none; gap: 24px; padding: 32px 24px; }
  .clms-auth__perks, .clms-auth__card { display: none; }
  .clms-auth__tagline { margin: 0 !important; font-size: 28px; }
  .clms-auth__panel { padding: 32px 24px 56px; }
  .clms-player__layout { grid-template-columns: 1fr; }
  .clms-player__nav { display: none; position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .clms-player__nav.is-open { display: block; animation: clms-drop .3s var(--ease) both; }
  .clms-player__toggle { display: inline-flex; }
  .clms-player__progress, .clms-player__dash span { display: none; }
  .clms-player__course { border-left: 0; padding-left: 0; }
  .clms-form__row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .clms-wrap { padding: 0 16px; }
  .clms-logo__text span { display: none; }
  .clms-hero__ctas .clms-btn { width: 100%; }
  .clms-showcase { aspect-ratio: 1; }
  .clms-term { left: 0; width: 78%; }
  .clms-chip-float--b { display: none; }
  .clms-grid, .clms-dash-list { grid-template-columns: 1fr; }
  .clms-statband strong { font-size: 28px; }
  .clms-statband__grid > div { padding: 14px 16px; }
  .clms-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .clms-cta__inner .clms-btn { width: 100%; }
  .clms-player__home { display: none; }
}
@media (max-width: 782px) { .admin-bar .clms-topbar, .admin-bar .clms-player__bar { top: 46px; } }

@media (prefers-reduced-motion: reduce) {
  .clms *, .clms *::before, .clms *::after, .clms-confetti i { animation: none !important; transition: none !important; }
  .clms-js .clms-reveal { opacity: 1; transform: none; }
  .clms-term__line span { width: auto; border: 0; }
  .clms-term__out { opacity: 1; }
  .clms-ring .clms-ring__val { stroke-dashoffset: 0; }
  .clms-state--boot i:first-child { opacity: 0; }
  .clms-confetti { display: none; }
}

/* --- live classes, legal pages, footer legal links ------------------------------------------------------ */
.clms-live { margin-top: 18px; padding: 16px; border-radius: 14px; background: #f8fafc; border: 1px solid #e2e8f0; }
.clms-live h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; }
.clms-live h3 .clms-icon { color: var(--orange-2); width: 18px; height: 18px; }
.clms-live p { margin: 0 0 12px; font-size: 14px; color: #334155; }
.clms-live .clms-live__hint { margin: 8px 0 0; font-size: 12.5px; }
.clms-meta__batch { color: #fff; font-weight: 700; }
.clms-dash-course__live { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: #b45309; text-decoration: none; }
.clms-dash-course__live:hover { text-decoration: underline; }
.clms-dash-course__live .clms-icon { width: 16px; height: 16px; }
.clms-legal { max-width: 780px; padding-top: 120px; padding-bottom: 72px; }
.clms-legal h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 24px; letter-spacing: -.02em; }
.clms-legal h2 { font-size: 21px; margin: 32px 0 8px; }
.clms-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.clms-footer__legal a { color: inherit; text-decoration: none; }
.clms-footer__legal a:hover { text-decoration: underline; }
