/* Obin Academy — design tokens + responsive system (mobile-first) */

:root {
  --font-sans: "Geist", "Sora", ui-sans-serif, system-ui, sans-serif;

  /* Brand ramp — electric blue with a lime accent, the look of obinacademy.com
     (main #0b00ff). 800 is the accent used for buttons/links; 900/950 are the
     deeper header, hover and footer shades; 700/600 the lighter ones. White on
     800 and darker passes AA. --lime is the call-to-action colour; danger and
     error states stay red (see --danger below). */
  --brand-950: #06007a;
  --brand-900: #0800c9;
  --brand-800: #0b00ff;
  --brand-700: #3b33ff;
  --brand-600: #6b66ff;
  --lime: #cdfb5e;
  --lime-dark: #b6e445;
  --lime-ink: #0a0a14;

  --ink: #16181a;
  --muted: #5b6670;
  /* A warm flat cream instead of the old cool grey — the Skool reference's
     entire background is this kind of off-white, not a "card floating on
     grey" SaaS surface. */
  --surface: #f5f5f7;
  --border: #e8e8f0;
  --border-strong: #d0d0e8;

  --accent: var(--brand-800);
  --accent-dark: var(--brand-900);
  --gold: #f5b301;
  --gold-dark: #c98e00;
  /* Referenced by .course-card/.creator-card's hover CTA pill — previously
     undefined (rendered as a transparent button). */
  --secondary: var(--brand-900);
  --secondary-dark: var(--brand-950);

  --white: #ffffff;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --warning-bg: #fffbeb;
  --warning-ink: #b45309;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;
  /* Buttons/cards get a chunkier, more structured rounding than full-pill —
     part of the deliberate move away from the soft SaaS look. */
  --radius-chunky: 12px;

  --shadow: 0 1px 2px rgba(20, 24, 27, 0.04), 0 8px 24px -12px rgba(20, 24, 27, 0.12);
  /* A hard, flat offset "pop" shadow (no blur) — the tactile, confident hover
     feel from the reference, replacing a soft blurred drop-shadow. */
  --shadow-pop: 0 8px 0 0 var(--border-strong);
  --shadow-pop-ink: 0 8px 0 0 color-mix(in srgb, var(--ink) 16%, transparent);
  /* Soft, deep elevation shadow — for a card that lifts off the page (course
     thumbnails) rather than the flat offset "pop" style used elsewhere. */
  --shadow-pop-lg: 0 24px 48px -16px rgba(16, 24, 40, 0.28), 0 4px 12px -4px rgba(16, 24, 40, 0.12);
  --container: 1180px;
}


* { box-sizing: border-box; }
/* body is the real scroll container now, not html/the document root —
   this is the actual, complete fix for the iOS Safari/Chrome trailing
   blank space that neither CSS alone (overscroll-behavior on the
   document root) nor the touch-JS fallback alone could fully close.
   Safari has never honored overscroll-behavior on the page's own root
   scroll, but DOES honor it correctly on an ordinary scrollable element
   — this moves the real scroll onto body, turning it into that second,
   actually-working case. html can no longer scroll at all (nothing left
   to bounce there). Every script that read window.scrollY or listened
   for a window scroll event was updated to read/listen on body instead
   (main.js, lead-capture.js, share.js, visitor-tracker.js) — anything
   position:fixed is unaffected, since fixed positioning is relative to
   the viewport regardless of which element actually scrolls. */
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--brand-950);
  height: 100%; overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}

img, video, iframe { max-width: 100%; }
a { color: inherit; }

/* Big, bold, plain sans headlines throughout — no serif, no ornamentation.
   The boldness comes from scale and weight, not decoration. */
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 10px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { justify-content: center; align-items: center; }

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

@media (min-width: 640px) {
  .sm\:grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .container { padding: 0 32px; }
  .md\:grid-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:row { flex-direction: row; }
}
@media (min-width: 1024px) {
  .lg\:grid-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:grid-6 { grid-template-columns: repeat(6, 1fr); }
  /* Same pattern, same reason: the WhatsApp Broadcast compose card spans 2
     of the 3 columns .lg:grid-3 defines here, scoped to this breakpoint so
     it doesn't force a phantom column below 1024px. */
  .broadcast-compose { grid-column: span 2; }
}

.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }

/* Whatever block visually ends a page's <main> — a .section, a plain
   container div, whatever the page happens to close with — drop its
   bottom padding to 0. The footer right after it already has its own
   top padding on a colored background, so keeping both stacked read as
   a tall, unwanted white gap. Written with :has() instead of a plain
   :last-child because several pages end </main> with trailing
   <script> tags (before footer.php's </main>), which would otherwise
   be what :last-child actually matches — this skips past those to the
   last element that isn't a script/style tag. */
main > *:not(script):not(style):not(:has(~ *:not(script):not(style))) {
  /* !important: this selector's specificity is all type-selector-level
     (main, script, style are tags, not classes), so it loses to .section's
     single class on its own — needed to actually win the cascade here. */
  padding-bottom: 0 !important;
}

/* ---------- type scale ---------- */
/* Bare <h1> carries this directly (not just the .h1 utility) since most
   pages use plain h1 tags — pushed noticeably bigger than before, matching
   the reference's confident, oversized display headline scale. */
h1 { font-size: clamp(38px, 6.6vw, 68px); line-height: 0.99; }
.h1 { font-size: clamp(38px, 6.6vw, 68px); line-height: 0.99; }
.h2 { font-size: clamp(27px, 4.2vw, 40px); line-height: 1.1; }
.h3 { font-size: 22px; line-height: 1.22; }
.lede { font-size: 17.5px; color: var(--muted); line-height: 1.65; max-width: 62ch; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-800);
  background: color-mix(in srgb, var(--accent) 12%, white);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.text-center { text-align: center; }

.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; padding: 5px 12px; border-radius: var(--radius-full); }
.live-pill .live-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.25); flex-shrink: 0; animation: live-dot-pulse 1.8s ease-in-out infinite; }
@keyframes live-dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .live-pill .live-dot { animation: none; } }

/* ---------- nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(165deg, var(--brand-950), var(--brand-900) 60%, var(--brand-800));
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: box-shadow 0.3s ease;
}
/* A header that picks up a shadow once the page scrolls — a subtle but
   recognizable cue that a flat, always-identical bar skips entirely. */
.site-header.scrolled {
  box-shadow: 0 12px 28px -20px rgba(20,24,27,0.28);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; text-decoration: none; flex-shrink: 0; transition: opacity 0.15s ease; }
.logo:hover { opacity: 0.9; }
.logo-mark { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: #fff; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255,255,255,0.28) inset; transition: transform 0.25s ease; }
.logo:hover .logo-mark { transform: scale(1.08) rotate(-4deg); }
.logo-mark svg { width: 20px; height: 20px; }
.logo-text { color: var(--white); letter-spacing: -0.01em; }
.logo-text .accent { color: var(--gold); }
.logo.dark .logo-text { color: var(--ink); }
.logo.dark .logo-text .accent { color: var(--accent); }
.logo.dark .logo-mark { box-shadow: none; }

.nav-links { display: none; align-items: center; gap: 2px; font-weight: 600; font-size: 14px; }
.nav-links a {
  position: relative; text-decoration: none; color: var(--muted);
  padding: 9px 15px; border-radius: var(--radius-full);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a.active { color: var(--brand-800); background: color-mix(in srgb, var(--accent) 8%, white); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px;
  border-radius: var(--radius-full); background: var(--gold);
}

/* Always visible at every width (unlike .nav-actions, desktop-only) — the
   notification bell needs to reach a learner on their phone as much as on
   desktop, so it sits here next to the hamburger instead of hiding behind
   the account-menu pill row. */
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-actions { display: none; align-items: center; gap: 16px; font-size: 14.5px; }
.nav-actions a.link { color: var(--ink); text-decoration: none; font-weight: 600; transition: color 0.15s ease; }
.nav-actions a.link:hover { color: var(--accent); }

/* Account dropdown — CSS-only hover/focus reveal, no JS needed */
.account-menu { position: relative; }
.account-trigger {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 5px 12px 5px 5px; border-radius: var(--radius-full);
  color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.account-menu:hover .account-trigger, .account-menu:focus-within .account-trigger { background: var(--border); border-color: var(--border-strong); }
.account-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 800; flex-shrink: 0; }
.account-trigger .chevron { width: 14px; height: 14px; color: var(--muted); transition: transform 0.2s ease; }
.account-menu:hover .chevron, .account-menu:focus-within .chevron { transform: rotate(180deg); }
.account-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0; width: 226px;
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: 0 24px 48px -18px rgba(0,0,0,0.35);
  padding: 8px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.account-menu:hover .account-dropdown, .account-menu:focus-within .account-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.account-dropdown-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.account-dropdown-head .name { font-weight: 700; font-size: 14px; color: var(--ink); }
.account-dropdown-head .email { font-size: 12px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; transition: background-color 0.15s ease; }
.account-dropdown a svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.account-dropdown a:hover { background: var(--surface); }
.account-dropdown a.danger { color: #dc2626; }
.account-dropdown a.danger svg { color: #dc2626; }
.account-dropdown a.danger:hover { background: #fef2f2; }

/* A subtle diagonal shine sweep across the primary nav CTA — an
   attention-hooking premium touch, reserved for this one button so it
   doesn't get diluted by overuse elsewhere. */
.btn.shine { position: relative; overflow: hidden; }
.btn.shine::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3.4s ease-in-out infinite;
}
@keyframes btn-shine { 0% { left: -60%; } 35%, 100% { left: 130%; } }

.nav-toggle {
  display: flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.nav-toggle:hover { background: var(--surface); }
.site-header .nav-toggle { border-color: rgba(255,255,255,0.35); color: #fff; }
.site-header .nav-toggle:hover { background: rgba(255,255,255,0.12); }
.nav-toggle svg { width: 19px; height: 19px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 900px) {
  .nav-links, .nav-actions { display: flex; }
  .nav-toggle { display: none; }
}

/* Floating card: detached from the header with a margin on every side,
   fading/lifting in rather than collapsing open, with a dimmed scrim behind
   (see .mobile-menu-scrim; main.js closes it on a scrim tap or Escape). */
.mobile-menu {
  position: fixed; top: 76px; left: 12px; right: 12px; z-index: 45;
  max-height: calc(100vh - 92px); max-height: calc(100dvh - 92px); overflow-y: auto;
  background: var(--white); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(20,24,27,0.5);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px) scale(0.985); transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.mobile-menu .container { max-width: none; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(22,24,26,0.32); opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
.mobile-menu.open + .mobile-menu-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (min-width: 900px) { .mobile-menu-scrim { display: none; } }
.mobile-menu-account {
  display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 6px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-tint, #eeeeff), #dddeff); border: 1px solid #cfcdff;
}
.mobile-menu-account .account-avatar { width: 42px; height: 42px; font-size: 15px; }
.mobile-menu-account .name { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.mobile-menu-account .email { font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.mobile-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600; font-size: 14.5px;
  border-radius: 14px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.mobile-menu a:hover { background: var(--surface); color: var(--ink); }
.mobile-menu a.active { color: #fff; background: var(--accent); box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--accent) 90%, transparent); }
.mobile-menu a + a { margin-top: 1px; }
.mobile-menu .mm-icon { width: 36px; height: 36px; border-radius: 11px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.mobile-menu a.active .mm-icon { background: rgba(255,255,255,0.22); }
.mobile-menu a:not(.mm-cta):not(.mm-danger)::after { content: "›"; margin-left: auto; padding-right: 4px; opacity: 0.45; font-size: 18px; line-height: 1; }
.mobile-menu .mm-rule { border: 0; height: 1px; background: var(--border); margin: 6px 8px; width: auto; }
.mobile-menu a.mm-danger { color: var(--brand-900); }
.mobile-menu a.mm-danger .mm-icon { background: var(--danger-bg); }
.mobile-menu a.mm-danger:hover { background: var(--danger-bg); }
.mobile-menu a.mm-cta {
  justify-content: center; margin-top: 14px; padding: 14px;
  background: var(--accent); color: #fff !important; font-weight: 700; border-radius: var(--radius-full);
}
.mobile-menu a.mm-cta:hover { background: var(--accent-dark); }
.mobile-menu a.mm-cta-gold { background: var(--gold); color: #1e1400 !important; }
.mobile-menu a.mm-cta-gold:hover { background: #ffc93d; }
.mobile-menu a.mm-cta-dark { background: var(--brand-950); color: #fff !important; }
.mobile-menu a.mm-cta-dark:hover { background: var(--brand-900); }
.mobile-menu a.mm-cta-ink { background: var(--ink); color: #fff !important; }
.mobile-menu a.mm-cta-ink:hover { background: #000; }
.mobile-menu a.mm-cta-green { background: var(--success); color: #fff !important; }
.mobile-menu a.mm-cta-green:hover { background: color-mix(in srgb, var(--success) 85%, black); }
@media (min-width: 900px) { .mobile-menu { display: none !important; } }

/* ---------- buttons ---------- */
/* Chunky rounded-rect (not full pill) with a hard flat "pop" shadow on
   hover — a tactile, confident block-lift instead of a soft blurred glow.
   This is the core shape/motion change behind the whole redesign. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-chunky);
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.15s cubic-bezier(0.2,0.8,0.2,1);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); box-shadow: none !important; }
.btn-arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: 0 8px 0 0 color-mix(in srgb, var(--accent) 35%, black 15%); }
.btn-dark { background: var(--brand-950); color: var(--white); border-color: var(--brand-950); }
.btn-dark:hover { background: var(--brand-900); border-color: var(--brand-900); box-shadow: 0 8px 0 0 color-mix(in srgb, var(--brand-950) 45%, black 20%); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--ink); box-shadow: var(--shadow-pop-ink); }
/* A solid near-black CTA — same weight/pop as the brand-colored buttons
   next to it, but its own quiet color so a lower-stakes action (Log In)
   doesn't compete with the gold/blue/navy "go do something new" CTAs. */
.btn-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-ink:hover { background: #000; border-color: #000; box-shadow: 0 8px 0 0 color-mix(in srgb, var(--ink) 55%, black 20%); }
.btn-green { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-green:hover { background: color-mix(in srgb, var(--success) 85%, black); border-color: color-mix(in srgb, var(--success) 85%, black); box-shadow: 0 8px 0 0 color-mix(in srgb, var(--success) 45%, black 15%); }
/* For outline buttons on dark/photo backgrounds (e.g. the hero) — frosted-glass
   fill + a solid white border so the label stays legible over any part of the
   photo, instead of a bare transparent outline that photo contrast can wash out. */
.btn-outline-light {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  font-weight: 800;
  border-color: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.26); border-color: #ffffff; }
/* A bold, high-contrast solid-gold treatment for a CTA that needs to stand out
   as much as (or more than) the primary blue action — e.g. "Become a Creator"
   next to "Start Learning" in the hero. Dark navy text on gold for max contrast. */
.btn-gold {
  background: var(--gold);
  color: #1e1400;
  font-weight: 800;
  border-color: var(--gold);
}
.btn-gold:hover { background: #ffc93d; border-color: #ffc93d; box-shadow: 0 8px 0 0 color-mix(in srgb, var(--gold) 55%, black 15%); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
/* The installment offer's copy runs long ("Or pay in 2 installments — UGX
   X now, UGX Y later") — .btn's normal single-line nowrap either overflows
   the pill shape or wraps mid-word depending on amount lengths. Two
   deliberate lines (bold label, smaller detail row) read as one designed
   unit instead, at any width. */
.btn-installments {
  white-space: normal;
  flex-direction: column;
  gap: 3px;
  padding: 12px 24px;
  line-height: 1.3;
  text-align: center;
}
.btn-installments-title { font-weight: 800; font-size: 14.5px; }
.btn-installments-detail { font-weight: 600; font-size: 12.5px; opacity: 0.72; }

/* ---------- cards ---------- */
.card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}
.card-pad { padding: 22px; }
.card-hover { transition: transform 0.2s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.2s cubic-bezier(0.2,0.8,0.2,1), border-color 0.2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: var(--ink); }

/* ---------- forms ---------- */
label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
input, select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea { resize: vertical; min-height: 110px; }
.field { margin-bottom: 18px; }
.help { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.error-text { font-size: 13.5px; color: var(--danger); margin-top: 4px; }

.alert { border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-warning { background: var(--warning-bg); color: var(--warning-ink); }

/* ---------- badges / status ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: var(--radius-full); }
.badge-draft { background: var(--surface); color: var(--muted); }
.badge-pending { background: var(--warning-bg); color: var(--warning-ink); }
.badge-published { background: var(--success-bg); color: var(--success); }
.badge-rejected { background: var(--danger-bg); color: var(--danger); }

/* ---------- misc utility ---------- */
.hidden { display: none !important; }
.rounded-img { border-radius: var(--radius); overflow: hidden; display: block; }
.divider { height: 1px; background: var(--border); border: 0; margin: 24px 0; }
.progress-track { height: 7px; border-radius: var(--radius-full); background: var(--surface); overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: var(--radius-full); transition: width 0.3s ease; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); }
table th, table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
table th { background: var(--surface); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
table tr:last-child td { border-bottom: none; }
table tbody tr { transition: background-color 0.12s ease; }
table tbody tr:hover td { background: color-mix(in srgb, var(--accent) 3%, var(--surface)); }

.site-footer {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--brand-950), var(--brand-900) 55%, var(--brand-800));
  color: rgba(255,255,255,0.75); padding: 68px 0 0; margin-top: 64px;
}
/* A thin brand-color gradient seam across the very top edge — a small
   "signature" touch that a lot of flat, unadorned footers skip. */
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 2;
  background: linear-gradient(to right, var(--brand-700), var(--accent), var(--gold), var(--brand-600), var(--brand-700));
}
/* Two large, static color orbs for ambient depth — the same language as
   the testimonials section, carried into the footer. */
.footer-glow { position: absolute; z-index: 0; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.footer-glow-a { width: 420px; height: 420px; top: -140px; left: -80px; background: var(--accent); opacity: 0.16; }
.footer-glow-b { width: 380px; height: 380px; bottom: -160px; right: -60px; background: var(--gold); opacity: 0.14; }
/* Shared with .course-hero-glow, which still breathes. */
@keyframes footer-glow-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.site-footer > .container { position: relative; z-index: 1; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.15s ease; }
.site-footer a:hover { color: var(--white); }
.site-footer .logo { color: var(--white); }
.site-footer .brand-desc { margin-top: 16px; max-width: 320px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.6); }

/* A classic centered mission line above the columns — the kind of quiet,
   confident statement premium brand footers lead with. */
.footer-mission { text-align: center; padding: 8px 0 30px; }
.footer-mission p {
  font-size: clamp(20px, 3.2vw, 30px); font-weight: 700; line-height: 1.3;
  letter-spacing: -0.01em; max-width: 620px; margin: 0 auto;
  background: linear-gradient(100deg, #fff 30%, var(--gold) 50%, #fff 70%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: mission-shine 6s linear infinite;
}
@keyframes mission-shine { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) {
  .footer-mission p { animation: none; background: none; color: #fff; -webkit-text-fill-color: #fff; }
}

/* Live platform pulse — real numbers, animated the same way as the hero. */
.footer-pulse { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; padding-bottom: 40px; }
.pulse-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pulse-value { font-size: 22px; font-weight: 800; color: #fff; }
.pulse-label { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.pulse-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.15); }

.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
@media (min-width: 1280px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; } }
.footer-brand { max-width: 340px; }
.footer-brand .logo-text { font-size: 21px; }
.footer-grid h4 {
  color: rgba(255,255,255,0.5); font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px;
  position: relative; padding-bottom: 12px;
}
.footer-grid h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 24px; height: 2px; border-radius: var(--radius-full); background: var(--accent); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.footer-grid ul a { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.footer-grid ul a::before {
  content: "→"; opacity: 0; transform: translateX(-6px); color: var(--gold);
  transition: opacity 0.18s ease, transform 0.18s ease; font-size: 12px;
}
.footer-grid ul a:hover::before { opacity: 1; transform: translateX(0); }
.footer-grid ul a > span { position: relative; }
.footer-grid ul a > span::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.footer-grid ul a:hover > span::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .footer-grid ul a > span::after { transition: none; } }

.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pay-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; padding: 5px 14px 5px 5px;
  border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.75);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.pay-badge .logo-chip { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; background: #fff; flex-shrink: 0; }
.pay-badge .logo-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pay-badge:hover { border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.06); color: #fff; transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .pay-badge, .pay-badge:hover { transform: none; } }

.social-icons { display: flex; gap: 10px; margin-top: 22px; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.social-icons a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 20px -10px var(--accent); }
.social-icons svg { width: 16px; height: 16px; fill: currentColor; }

.whatsapp-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #fff !important; font-weight: 700; font-size: 14px; padding: 10px 20px 10px 16px; border-radius: var(--radius-full); text-decoration: none; box-shadow: 0 10px 26px -10px rgba(37,211,102,0.6); transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; }
.whatsapp-btn:hover { background: #20bd5a; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(37,211,102,0.75); }
.whatsapp-btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.whatsapp-btn .ping { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #baffd8; flex-shrink: 0; }
.whatsapp-btn .ping::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: #baffd8; opacity: 0.6; animation: footer-ping 1.8s ease-out infinite; }
@keyframes footer-ping { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(2.2); opacity: 0; } }

.footer-legal { display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: space-between; padding: 22px 0; font-size: 12.5px; color: rgba(255,255,255,0.45); border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (min-width: 640px) { .footer-legal { flex-direction: row; } }
.footer-legal-links { display: flex; align-items: center; gap: 22px; }
.footer-legal-links a { position: relative; padding-bottom: 3px; font-size: 12.5px; color: rgba(255,255,255,0.5); transition: color 0.15s ease; }
.footer-legal-links a:hover { color: var(--white); }
.footer-legal-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.footer-legal-links a:hover::after { transform: scaleX(1); }
.footer-legal-links .back-to-top { color: rgba(255,255,255,0.35); font-weight: 600; }
.footer-legal-links .back-to-top:hover { color: var(--gold); }

.footer-bottom { display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: space-between; padding: 22px 0 28px; font-size: 12.5px; color: rgba(255,255,255,0.5); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom .made-for { font-weight: 600; color: rgba(255,255,255,0.55); }

/* Compact footer: structured columns (Brand / Explore / Connect) that
   stack cleanly on mobile instead of relying on horizontal wrapping — the
   earlier single-line bar hid its dividers under 860px and let logo, all
   5 nav links, copyright and the WhatsApp button wrap freely, collapsing
   into a tall, disordered stack. No extra margin-top here — every page
   already ends inside a .section with its own 56-88px bottom padding, so
   stacking this on top of that was leaving a tall, contentless white gap
   before the footer started. */
.site-footer-compact { padding: 38px 0 0; margin-top: 0; }
.site-footer-compact .footer-glow-a { width: 380px; height: 380px; top: -140px; left: -80px; opacity: 0.18; }
.site-footer-compact .footer-glow-b { width: 340px; height: 340px; bottom: -140px; right: -60px; opacity: 0.15; }

.footer-cols { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-bottom: 26px; }
@media (max-width: 700px) { .footer-cols { grid-template-columns: 1fr; gap: 26px; } }

.footer-col-brand .logo-text { font-size: 18px; }
.footer-col-brand p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,0.5); max-width: 280px; }

.footer-col-head { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.footer-col-head .dash { width: 14px; height: 2px; background: var(--gold); flex-shrink: 0; }
.footer-col-head span { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { position: relative; display: inline-flex; align-items: center; color: rgba(255,255,255,0.68); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s ease, transform 0.2s ease; }
.footer-col ul a:hover { color: #fff; transform: translateX(4px); }
.footer-col ul a::before { content: ""; position: absolute; left: -14px; width: 6px; height: 1.5px; background: var(--gold); opacity: 0; transition: opacity 0.2s ease; }
.footer-col ul a:hover::before { opacity: 1; }

.footer-socials { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.75);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.footer-socials a:hover { background: var(--gold); border-color: var(--gold); color: #241900; transform: translateY(-3px); box-shadow: 0 10px 20px -10px var(--gold); }
.footer-socials svg { width: 16px; height: 16px; fill: currentColor; }
.footer-socials a.email svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.footer-bottom-row { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,0.1); padding: 14px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,0.4); }

@media (prefers-reduced-motion: reduce) {
  .site-footer::before { animation: none; }
  .footer-legal-links a::after { transition: none; }
  .whatsapp-btn .ping::before { animation: none; }
}

/* ---------- minimal footer (footer.php) — layout matches skool.com's own
   footer: one plain row of links, no columns, no logo repeated down here.
   Background/text colors instead match the platform's own theme (the same
   dark brand gradient .site-header uses) rather than Skool's neutral
   white, so the footer reads as Obin Academy's color, not a copy of
   Skool's. Supersedes the dark .site-footer/.footer-cols block above, left
   in place unused (still referenced by contact.php's own inline
   .whatsapp-btn, and .footer-socials/.whatsapp-btn stay defined for that
   reason) rather than deleted. ---------- */
.site-footer-minimal {
  background: linear-gradient(165deg, var(--brand-950), var(--brand-900) 60%, var(--brand-800));
  padding: 28px 0; margin-top: 64px;
}
.footer-minimal-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; }
.footer-minimal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.footer-minimal-links a { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.72); text-decoration: none; transition: color 0.15s ease; }
.footer-minimal-links a:hover { color: #fff; }
.footer-wa-community-link {
  display: inline-flex !important; align-items: center; gap: 7px;
  background: #25d366; color: #fff !important; padding: 7px 14px 7px 12px;
  border-radius: var(--radius-full); font-weight: 700 !important;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.footer-wa-community-link svg { fill: currentColor; flex-shrink: 0; }
.footer-wa-community-link:hover { background: #1ebe5b; color: #fff !important; transform: translateY(-1px); }
@media (max-width: 480px) {
  .footer-wa-community-link { font-size: 12.5px; padding: 6px 12px 6px 10px; white-space: nowrap; }
}
.footer-minimal-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-minimal-socials { display: flex; align-items: center; gap: 14px; }
.footer-minimal-socials a { color: rgba(255,255,255,0.72); display: flex; transition: color 0.15s ease; }
.footer-minimal-socials a:hover { color: #fff; }
.footer-minimal-socials svg { width: 16px; height: 16px; fill: currentColor; }
.footer-minimal-socials a.email svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-minimal-copy { font-size: 12.5px; color: rgba(255,255,255,0.5); white-space: nowrap; }
@media (max-width: 640px) {
  .footer-minimal-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-minimal-links { justify-content: center; }
  .footer-minimal-meta { flex-direction: column; gap: 12px; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--surface); color: var(--ink); }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
.hero-inner { padding: 64px 0; max-width: 620px; flex: 1 1 420px; min-width: 0; }
@media (min-width: 768px) { .hero-inner { padding: 96px 0; } }

/* Visible on every device — stacks below the text on narrow screens (flex-wrap),
   sits beside it on wide ones. min-width:0 above stops the long nowrap
   headline from overflowing into this column. */
.hero-visual { flex: 1 1 320px; max-width: 400px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 1024px) {
  .hero-visual { flex: 0 0 340px; max-width: 340px; margin: 0; }
}

.hero-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 2px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop-ink); }
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-photo img.active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-photo img { transition: none; }
}

.hero-card {
  display: flex; flex-direction: column; gap: 16px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: none;
}
@media (min-width: 1024px) {
  .hero-card { gap: 18px; padding: 26px; }
}
.hero-card-title { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.hero-card-title .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,0.25); flex-shrink: 0; }

.hero-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-card-stats .hc-stat { text-align: center; padding: 0 4px; }
.hero-card-stats .hc-stat + .hc-stat { border-left: 1px solid var(--border); }
.hero-card-stats .hc-value { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; }
.hero-card-stats .hc-label { margin-top: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); }

.hero-card hr { border: 0; height: 1px; background: var(--border); margin: 0; }

.hero-card-rating { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink); background: var(--surface); border-radius: var(--radius-full); padding: 8px 14px; }
.hero-card-rating .stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }

.hero-card-quote { position: relative; background: var(--surface); border-left: 2px solid var(--gold); border-radius: 0 10px 10px 0; padding: 12px 14px; }
.hero-card-quote p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink); font-style: italic; }
.hero-card-quote .who { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; font-weight: 700; font-style: normal; color: var(--muted); }
.hero-card-quote .who::before { content: "—"; color: var(--border-strong); }

/* ---------- trust strip ---------- */
.trust-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 44px 0; }
.trust-bar-inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .trust-bar-inner { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.trust-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 28px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.trust-item:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--tint, var(--accent)) 55%, rgba(20,24,27,0.25));
}
.trust-item .icon-badge {
  width: 54px; height: 54px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: color-mix(in srgb, var(--tint, var(--accent)) 14%, white);
  transition: transform 0.25s ease;
}
.trust-item:hover .icon-badge { transform: scale(1.08) rotate(-3deg); }
/* Real photo/logo badges (MTN, certificate, secure-payment, flag) instead of
   an emoji — same footprint as .icon-badge but circular, photo-filled, with
   a thin ring so a busy photo still reads as a clean, deliberate badge. */
.trust-item .icon-badge-photo {
  width: 64px; height: 64px; border-radius: 50%;
  overflow: hidden; padding: 0; background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint, var(--accent)) 25%, white);
}
/* Two payment-provider logos shown together (MTN + Airtel) — each badge
   shrinks a little so the pair occupies about the same visual weight as
   a single 64px badge elsewhere in the row. */
.trust-item .icon-badge-pair { display: flex; gap: 6px; }
.trust-item .icon-badge-pair .icon-badge-photo { width: 48px; height: 48px; }
.trust-item .icon-badge-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trust-item span.label { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.35; letter-spacing: 0.01em; }
.trust-item .underline { width: 22px; height: 3px; border-radius: var(--radius-full); background: var(--tint, var(--accent)); opacity: 0.55; }

/* ---------- testimonial cards (homepage) ---------- */
/* Soft blurred color blobs behind the testimonials section — a subtle
   premium-SaaS touch instead of a flat white background. */
.testimonials-decor { position: relative; overflow: hidden; }
.testimonials-decor::before,
.testimonials-decor::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  filter: blur(100px); opacity: 0.10; z-index: 0; pointer-events: none;
}
.testimonials-decor::before { background: var(--accent); top: -160px; left: -140px; }
.testimonials-decor::after { background: var(--gold); bottom: -180px; right: -120px; }
.testimonials-decor > .container { position: relative; z-index: 1; }

.testimonial-card {
  position: relative; overflow: hidden;
  background: #fff; border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px 28px; display: flex; flex-direction: column; height: 100%;
  box-shadow: none;
  transition: transform 0.2s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.2s cubic-bezier(0.2,0.8,0.2,1), border-color 0.2s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: var(--ink); }
.testimonial-card .quote-mark {
  position: absolute; top: 2px; right: 20px; z-index: 0; pointer-events: none; user-select: none;
  font-size: 92px; line-height: 1; font-family: Georgia, "Times New Roman", serif; font-weight: 700;
  color: color-mix(in srgb, var(--accent) 9%, white);
}
.testimonial-card .rating-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; }
.testimonial-card .stars { color: var(--gold); font-size: 14px; letter-spacing: 1px; }
.testimonial-card .rating-num { font-size: 12px; font-weight: 800; color: var(--ink); }
.testimonial-card p.quote { position: relative; z-index: 1; margin-top: 14px; font-size: 14.5px; line-height: 1.75; color: var(--ink); font-style: italic; flex: 1; }
.testimonial-card .author { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.testimonial-card .author .avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: var(--brand-900);
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, white);
}
.testimonial-card .author .avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card .author .name { font-weight: 700; font-size: 14px; }
.testimonial-card .author .role { font-size: 12px; color: var(--muted); margin-top: 1px; }
.testimonial-card .author .verified { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #10b981; margin-top: 3px; }
.testimonial-card .author .verified svg { width: 12px; height: 12px; flex-shrink: 0; }

.stories-slider { position: relative; }
.stories-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 4px 8px; margin: 0 -4px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.stories-track::-webkit-scrollbar { display: none; }
.stories-track .testimonial-card { flex: 0 0 min(560px, 86vw); scroll-snap-align: center; height: auto; }
.stories-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(20,24,27,0.25);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.stories-nav svg { width: 18px; height: 18px; }
.stories-nav:hover { background: var(--surface); border-color: var(--ink); transform: translateY(-50%) scale(1.06); }
.stories-nav.prev { left: -6px; }
.stories-nav.next { right: -6px; }
@media (max-width: 760px) { .stories-nav { display: none; } }
.stories-dots { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; }
.stories-dots button {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: var(--border-strong);
  cursor: pointer; transition: background-color 0.2s ease, transform 0.2s ease; flex-shrink: 0;
}
.stories-dots button.active { background: var(--accent); transform: scale(1.35); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--border-strong); background: #fff; color: var(--ink); padding: 6px 16px; border-radius: var(--radius-full); font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 6.6vw, 64px); line-height: 1.02; margin-top: 22px; color: var(--ink); }
.hero h1 .lock { white-space: nowrap; }

@keyframes blink-glow-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(11,0,255, 0.55); }
  50% { box-shadow: 0 0 0 9px rgba(11,0,255, 0); }
}
.animate-blink-badge { animation: blink-glow-badge 1.6s ease-in-out infinite; }

@keyframes blink-text-gold {
  0%, 100% { color: var(--gold); text-shadow: 0 0 14px color-mix(in srgb, var(--gold) 45%, transparent); }
  50% { color: var(--accent-dark); text-shadow: 0 0 0 transparent; }
}
.animate-blink-text { animation: blink-text-gold 1.8s ease-in-out infinite; }

@keyframes blink-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  50% { opacity: 0.6; box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent); }
}
.animate-blink { animation: blink-glow 1.8s ease-in-out infinite; }
.hero .money { color: var(--accent-dark); }
.hero .money.airtel { color: #dc2626; }
.hero p.tag { margin-top: 14px; font-size: 17px; font-weight: 700; color: var(--ink); }
.hero p.desc { margin-top: 14px; color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 56ch; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero .stats { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 40px; }
.hero .stat b { display: block; font-size: 30px; font-weight: 800; }
.hero .stat span { font-size: 13px; color: var(--muted); }

/* ---------- industries ---------- */
/* Flexbox + centered wrap (not CSS grid) so an incomplete last row centers
   itself instead of hugging the left edge with a ragged gap on the right —
   26 items doesn't divide evenly into any fixed column count. */
.industry-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.industry-item {
  position: relative; z-index: 0;
  flex: 0 1 calc(50% - 7px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 22px 12px; border-radius: var(--radius); border: 2px solid var(--border); background: #fff;
  text-decoration: none; text-align: center;
  /* Plain fallback for pages that use .industry-item without .reveal
     (about.php, skills.php) — .industry-item.reveal below overrides this
     with the fuller list on pages that pair the two (see .course-card.reveal
     above for why the combined selector is needed instead of two separate
     `transition` declarations). */
  transition: transform 0.15s cubic-bezier(0.2,0.8,0.2,1), border-color 0.15s ease, box-shadow 0.15s ease;
}
@media (min-width: 560px) { .industry-item { flex-basis: calc(33.333% - 9.34px); } }
@media (min-width: 780px) { .industry-item { flex-basis: calc(25% - 10.5px); } }
@media (min-width: 1024px) { .industry-item { flex-basis: calc(16.6667% - 11.67px); } }
.industry-item:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 6px 0 0 var(--border-strong); }
.industry-item.reveal {
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.3s cubic-bezier(0.2,0.8,0.2,1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.industry-item.reveal:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 6px 0 0 var(--border-strong); }
.industry-item.reveal:nth-child(4n+1) { transition-delay: 0s, 0s, 0s, 0s; }
.industry-item.reveal:nth-child(4n+2) { transition-delay: 0.06s, 0.06s, 0s, 0s; }
.industry-item.reveal:nth-child(4n+3) { transition-delay: 0.12s, 0.12s, 0s, 0s; }
.industry-item.reveal:nth-child(4n+4) { transition-delay: 0.18s, 0.18s, 0s, 0s; }
@media (prefers-reduced-motion: reduce) { .industry-item.reveal, .industry-item.reveal:hover { transition: none; transform: none; } }

.industry-item .icon-wrap {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--glow-color, var(--accent)) 14%, white);
  font-size: 21px;
  transition: transform 0.2s ease;
}
.industry-item:hover .icon-wrap { transform: scale(1.1); }
.industry-item span.label { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }

.industry-glow-blue { --glow-color: #3b82f6; }
.industry-glow-cyan { --glow-color: #06b6d4; }
.industry-glow-purple { --glow-color: #8b5cf6; }
.industry-glow-pink { --glow-color: #ec4899; }
.industry-glow-gold { --glow-color: #f5b301; }
.industry-glow-emerald { --glow-color: #10b981; }
.industry-glow-orange { --glow-color: #f97316; }
.industry-glow-indigo { --glow-color: #6366f1; }

/* Rotating glow ring: a hover-only flourish, not constant background motion
   across 26 tiles at once — calmer at rest, still delightful on interaction. */
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes rotate-border-angle { to { --border-angle: 360deg; } }
.industry-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--border-angle), transparent 0%, var(--glow-color) 12%, transparent 32%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  animation: rotate-border-angle 3.5s linear infinite;
  animation-play-state: paused;
}
.industry-glow:hover::before { opacity: 1; animation-play-state: running; }
@media (prefers-reduced-motion: reduce) {
  .industry-glow::before { animation: none; }
}

/* ---------- filter chips / search pill (course browsing) ---------- */
.search-pill { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius-full); padding: 4px 20px; box-shadow: var(--shadow); max-width: 420px; }
.search-pill svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); }
.search-pill input { border: none; padding: 12px 0; background: transparent; }
.search-pill input:focus { outline: none; box-shadow: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
/* Used on the homepage's quick-jump strip and the full courses/index.php
   filter bar — one scrollable line instead of wrapping across several,
   so a long category list doesn't dominate the page. */
.chip-row-scroll {
  flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none;
}
.chip-row-scroll::-webkit-scrollbar { display: none; }
.chip-row-scroll .chip { flex-shrink: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); color: var(--muted); font-size: 12.5px; font-weight: 700; padding: 8px 16px; border-radius: var(--radius-full); text-decoration: none; transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease; }
.chip:hover { border-color: var(--brand-800); color: var(--brand-800); }
.chip.active { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.chip:has(input:checked) { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.chip:hover .btn-arrow { transform: translateX(3px); }
/* The courses/index.php category row specifically, matched to skool.com's
   own chip sizing/weight (see .home-discover-chip above, same source) —
   .chip's own defaults above stay as they are for the plain CTA-style
   "chip" links elsewhere (about.php's "View All Skills" etc). */
.chip-row .chip { font-size: 14px; font-weight: 400; padding: 0 14px; height: 40px; }
.chip-row .chip:hover { border-color: #c8c8c8; color: var(--ink); }
.chip-row .chip.active, .chip-row .chip:has(input:checked) { background: var(--muted); border-color: var(--muted); color: #fff; }

/* ---------- numbered pagination (homepage course grid) ---------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-full); color: var(--ink); font-size: 13.5px; font-weight: 700; text-decoration: none; transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease; }
.page-link:hover { border-color: var(--brand-800); color: var(--brand-800); }
.page-link.active { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.page-link.page-prev, .page-link.page-next { padding: 0 18px; color: var(--muted); }
.page-ellipsis { color: var(--muted); font-size: 13.5px; padding: 0 4px; }

/* ---------- browse/explore courses page ---------- */
.browse-hero { position: relative; overflow: hidden; padding-top: 64px; padding-bottom: 56px; }
.browse-hero::before {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: var(--accent); filter: blur(120px); opacity: 0.18;
  top: -220px; left: 50%; transform: translateX(-50%); pointer-events: none;
}
/* A second, warmer blob balances the cool accent one — together they read
   as deliberate depth rather than a flat tint, without competing for
   attention with the content sitting on top. */
.browse-hero::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: var(--gold); filter: blur(130px); opacity: 0.13;
  bottom: -210px; right: -60px; pointer-events: none;
}
.browse-hero .container { position: relative; z-index: 1; }
.browse-hero-stats { margin-top: 22px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; font-size: 14px; color: rgba(255,255,255,0.65); }
.browse-hero-stats strong { color: #fff; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.browse-hero-stats .dot { opacity: 0.3; }
.browse-search { max-width: 560px; margin: 28px auto 0; padding: 6px 8px 6px 24px; border-color: transparent; box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--brand-800) 35%, transparent), 0 2px 8px rgba(20,24,27,0.06); transition: box-shadow 0.25s ease, transform 0.25s ease; }
.browse-search:focus-within { box-shadow: 0 24px 48px -18px color-mix(in srgb, var(--brand-800) 45%, transparent), 0 0 0 3px color-mix(in srgb, var(--accent) 18%, white); transform: translateY(-2px); }
.browse-search input { font-size: 15.5px; }
.browse-search .btn { flex-shrink: 0; padding-left: 22px; padding-right: 22px; }

/* Premium headline treatment for the light browse hero — bigger, tighter
   tracking, and a brand-gradient highlight on the accent phrase. Falls
   back to a solid ink color if background-clip:text isn't supported. */
.browse-hero h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.02em; }
.browse-hero h1 .lock { color: var(--brand-800); }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .browse-hero h1 .lock {
    background: linear-gradient(90deg, var(--brand-800), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}

/* A soft dot-grid texture under the gradient wash — the classic premium
   SaaS-hero cue that reads as "considered" rather than a flat fill. */
.page-hero-light {
  background:
    radial-gradient(rgba(20,24,27,0.05) 1px, transparent 1px) 0 0/26px 26px,
    linear-gradient(180deg, #fff 0%, var(--surface) 100%);
}

/* A brief staggered rise for the hero content on load — no scroll trigger
   needed since it's always above the fold. */
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.browse-hero .container > * { animation: hero-rise 0.7s cubic-bezier(0.16,1,0.3,1) both; }
.browse-hero .container > *:nth-child(2) { animation-delay: 0.06s; }
.browse-hero .container > *:nth-child(3) { animation-delay: 0.12s; }
.browse-hero .container > *:nth-child(4) { animation-delay: 0.18s; }
.browse-hero .container > *:nth-child(5) { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .browse-hero .container > * { animation: none; } }

/* ---------- homepage hero: Skool-style, no photo — confident type,
   restrained color, a plain light ground doing all the "premium" work. ---------- */
.home-hero-v3 { background: var(--surface); padding: 68px 0 40px; }
.home-hero-v3 .container { max-width: 900px; }
.home-hero-v3 h1 {
  font-size: clamp(46px, 8vw, 80px); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em;
  color: var(--ink); text-wrap: balance;
  animation: hero-rise 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
/* .home-hero-v3 headline text (index.php/courses/index.php/about.php/
   stories.php) — a blue gradient (the site's other brand accent) with a
   bright highlight streak continuously sweeping through the text, reusing
   the same shine technique/keyframe as the footer's mission line. A span
   wrapping just the headline text, rather than styling .home-hero-v3 h1
   directly, so any page using that hero class can opt in per-headline. */
.hero-shine {
  background: linear-gradient(100deg, var(--accent-dark) 35%, #a5a3ff 50%, var(--accent-dark) 65%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: mission-shine 5s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-shine { animation: none; background: none; color: var(--accent-dark); -webkit-text-fill-color: var(--accent-dark); }
}
.hero-subline {
  margin-top: 14px; font-size: 28px; font-weight: 500; color: var(--muted);
  animation: hero-rise 0.6s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.05s;
}
.hero-accent-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.hero-accent-link:hover { text-decoration: underline; }
.home-hero-v3 .summary {
  margin: 16px auto 0; max-width: 600px; font-size: 18px; line-height: 1.65; color: var(--muted);
  animation: hero-rise 0.6s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.1s;
}
.hero-search-v3 {
  display: flex; align-items: center; gap: 10px; margin: 24px auto 0; max-width: 620px;
  background: #fff; border-radius: 12px; padding: 6px 6px 6px 26px;
  box-shadow: 0 1px 2px rgba(32,33,36,0.13), 0 2px 6px rgba(32,33,36,0.06), 0 1px 10px rgba(0,0,0,0.05);
  animation: hero-rise 0.6s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.15s;
}
.hero-search-v3 svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.hero-search-v3 input { flex: 1; border: none; outline: none; background: none; font-size: 18px; font-family: inherit; padding: 17px 0; color: var(--ink); }
.hero-search-v3 button { background: var(--gold); color: #1a1300; border: none; border-radius: 9px; padding: 15px 30px; font-size: 15.5px; font-weight: 700; font-family: inherit; cursor: pointer; white-space: nowrap; transition: background-color 0.2s ease; }
.hero-search-v3 button:hover { background: var(--gold-dark); }
.hero-stats-v3 {
  margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 16px; color: var(--muted);
  animation: hero-rise 0.6s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.2s;
}
.hero-stats-v3 strong { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 17px; }
.hero-stats-v3 .dot { opacity: 0.4; }
@media (prefers-reduced-motion: reduce) {
  .home-hero-v3 h1, .hero-subline, .home-hero-v3 .summary, .hero-search-v3, .hero-stats-v3 { animation: none; }
}

/* Light-bg variants of the .course-hero pill/trust-stat/trust-row badges
   (see line ~1472) — for pages moved from the dark .course-hero to the
   flat .home-hero-v3 (contact.php, become-creator.php) that still want
   that same "badge above the headline" component, just readable on a
   light ground instead of assuming white text on dark. */
.home-hero-v3 .pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--gold) 14%, white); color: #92660a;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--border));
}
.home-hero-v3 .pill svg { width: 13px; height: 13px; flex-shrink: 0; }
.home-hero-v3 .hero-trust-stat {
  background: color-mix(in srgb, var(--gold) 12%, white); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--border));
  color: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none;
}
.home-hero-v3 .hero-trust-stat span { color: #92660a; }
.home-hero-v3 .hero-trust-row .item { color: var(--muted); }
@media (max-width: 640px) {
  .home-hero-v3 { padding: 44px 0 32px; }
  .home-hero-v3 h1 { font-size: 40px; }
  .hero-subline { font-size: 21px; }
  .home-hero-v3 .summary { font-size: 16px; }
  .hero-search-v3 input { font-size: 16px; }
}

.browse-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.browse-result-info { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.browse-result-info strong { color: var(--ink); }
.filter-pill { display: inline-flex; align-items: center; gap: 5px; background: color-mix(in srgb, var(--accent) 10%, white); color: var(--brand-800); font-weight: 700; font-size: 12.5px; padding: 4px 6px 4px 10px; border-radius: var(--radius-full); text-decoration: none; }
.filter-pill span { font-size: 14px; line-height: 1; opacity: 0.7; }
.filter-pill:hover span { opacity: 1; }

.sort-select-wrap { display: flex; align-items: center; gap: 8px; position: relative; }
.sort-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  width: auto; border: 1px solid var(--border); border-radius: var(--radius-full);
  background: #fff; padding: 8px 32px 8px 14px; font-size: 12.5px; font-weight: 700; color: var(--ink);
  cursor: pointer;
}
.sort-select-chevron { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--muted); pointer-events: none; }

.trending-strip { margin-top: 40px; padding: 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 8%, white), color-mix(in srgb, var(--accent) 6%, white)); border: 1px solid color-mix(in srgb, var(--gold) 25%, var(--border)); border-radius: var(--radius-lg); }
.trending-strip-head { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 18px; }
.trending-strip-head .fire { font-size: 20px; }
.trending-strip .grid { gap: 20px; }

.empty-browse { margin-top: 40px; padding: 56px 24px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.empty-browse-icon { font-size: 40px; margin-bottom: 12px; }

/* ---------- course card ---------- */
/* Flat, Skool-style card: plain thumbnail (no overlaid category pill or
   badge ribbon), avatar + creator name, title, a two-line description,
   and a plain price line — no star rating, no "View Course" button.
   The whole card is the link. Hover lifts the whole card and
   zooms the thumbnail — the .reveal fade-in is applied by
   render_course_card() itself, with a plain nth-child stagger below so
   every grid of cards gets a wave-in without needing per-card delay
   classes threaded through from each call site. */
.course-card {
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden;
  box-shadow: none;
}
/* .reveal is always present (see render_course_card()) — a plain .course-card
   `transition` and .reveal's own `transition` would fight over the same
   property (only the higher-specificity one applies, they don't merge), so
   the combined selector owns the full list: .reveal's fade/slide-in plus
   the hover lift/shadow/border. transition-delay below lists 4 values in
   the same order (opacity, transform, box-shadow, border-color) so the
   nth-child stagger only ever delays the entrance, never the hover. */
.course-card.reveal {
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.45s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.35s ease;
}
.course-card.reveal:hover { border-color: var(--border-strong); box-shadow: var(--shadow-pop-lg); transform: translateY(-6px); }
.course-card .thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--brand-900); }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.course-card:hover .thumb img { transform: scale(1.08); }
.course-card .thumb::after {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.32), transparent 55%);
  transition: opacity 0.35s ease;
}
.course-card:hover .thumb::after { opacity: 1; }
.course-card .thumb .placeholder { display: flex; align-items: center; justify-content: center; width:100%; height:100%; background: linear-gradient(135deg, var(--brand-800), var(--brand-950)); color: rgba(255,255,255,0.6); font-weight: 600; font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
  .course-card.reveal, .course-card .thumb img, .course-card .thumb::after { transition: none; }
  .course-card.reveal:hover { transform: none; }
}
.course-card.reveal:nth-child(1) { transition-delay: 0s, 0s, 0s, 0s; }
.course-card.reveal:nth-child(2) { transition-delay: 0.08s, 0.08s, 0s, 0s; }
.course-card.reveal:nth-child(3) { transition-delay: 0.16s, 0.16s, 0s, 0s; }
.course-card.reveal:nth-child(4) { transition-delay: 0.24s, 0.24s, 0s, 0s; }
.course-card.reveal:nth-child(5) { transition-delay: 0.32s, 0.32s, 0s, 0s; }
.course-card.reveal:nth-child(6) { transition-delay: 0.4s, 0.4s, 0s, 0s; }

.badge-pill { position: absolute; right: 12px; top: 12px; z-index: 1; font-size: 10.5px; font-weight: 800; padding: 4px 11px; border-radius: var(--radius-full); box-shadow: 0 4px 10px -4px rgba(0,0,0,0.35); letter-spacing: 0.02em; }
.badge-bestseller { background: linear-gradient(135deg, #ffd76a, var(--gold)); color: #4a2e00; }
.badge-new { background: var(--accent); color: #fff; }
.badge-sale { background: linear-gradient(135deg, #ff8a65, var(--danger)); color: #fff; }

.course-card .body { display: flex; flex-direction: column; gap: 9px; padding: 18px 18px 18px; flex: 1; }
.course-card .creator-row { display: flex; align-items: center; gap: 8px; }
.course-card .creator-row .avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--muted); overflow: hidden; flex-shrink: 0; }
.course-card .creator-row .avatar img { width: 100%; height: 100%; object-fit: cover; }
.course-card .creator-row span { font-size: 13px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-card h3 { font-size: 17px; line-height: 1.3; font-weight: 800; letter-spacing: -0.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card .desc { font-size: 14px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card .stats-row { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.course-card .stats-row span { display: flex; align-items: center; gap: 4px; }
.course-card .stats-row svg { width: 13px; height: 13px; flex-shrink: 0; }
.course-card .price-row { margin-top: 3px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; }
.course-card .price { font-weight: 800; font-size: 16px; color: var(--ink); white-space: nowrap; margin-left: auto; }
.course-card .price .currency { font-size: 11px; font-weight: 700; color: var(--muted); margin-right: 3px; vertical-align: 1px; }
.course-card .posted-date { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.course-card .posted-date svg { width: 11px; height: 11px; flex-shrink: 0; }

/* ---------- creator community card (Communities directory) ---------- */
.creator-card {
  text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 2px solid var(--border); border-radius: var(--radius-lg); background: #fff; overflow: hidden;
  box-shadow: none;
  transition: box-shadow 0.2s cubic-bezier(0.2,0.8,0.2,1), transform 0.2s cubic-bezier(0.2,0.8,0.2,1), border-color 0.2s ease;
}
.creator-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow-pop); }
.creator-card .banner { position: relative; width: 100%; height: 64px; background: linear-gradient(135deg, var(--brand-800), var(--accent)); flex-shrink: 0; }
.creator-card .avatar {
  width: 76px; height: 76px; border-radius: 50%; overflow: hidden; margin-top: -38px; border: 4px solid #fff;
  background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: var(--brand-900);
  box-shadow: 0 6px 16px -6px rgba(20,24,27,0.3);
}
.creator-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-card .body { padding: 14px 20px 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; width: 100%; }
.creator-card h3 { font-size: 16px; font-weight: 800; }
.creator-card .headline { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.creator-card .stats-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border); width: 100%; justify-content: center; }
.creator-card .stats-row .stat { display: flex; flex-direction: column; align-items: center; }
.creator-card .stats-row .stat .value { font-size: 14px; font-weight: 800; color: var(--ink); }
.creator-card .stats-row .stat .label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 1px; }
.creator-card .view-btn { margin-top: 16px; display: inline-flex; align-items: center; gap: 5px; background: var(--secondary); color: #fff; font-size: 12px; font-weight: 700; padding: 8px 18px; border-radius: var(--radius-full); transition: background-color 0.2s ease; }
.creator-card:hover .view-btn { background: var(--secondary-dark); }

/* ---------- community profile page (single creator) ---------- */
.community-header { display: flex; flex-direction: column; align-items: center; text-align: center; }
.community-header .avatar {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 4px solid #fff;
  background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; color: var(--brand-900);
  box-shadow: 0 10px 24px -10px rgba(20,24,27,0.35);
}
.community-header .avatar img { width: 100%; height: 100%; object-fit: cover; }
.community-stats-row { display: flex; align-items: center; gap: 28px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.community-stats-row .stat { display: flex; flex-direction: column; align-items: center; }
.community-stats-row .stat .value { font-size: 20px; font-weight: 800; color: #fff; }
.community-stats-row .stat .label { font-size: 11.5px; color: rgba(255,255,255,0.65); margin-top: 2px; }

/* ---------- features / cta ---------- */
/* A textured navy section instead of a flat color block — the same learner
   photo used in the hero, dimmed and gradient-washed behind the feature grid
   and CTA card so it reads as atmosphere, not a competing image. */
.feature-cta-section {
  position: relative;
  background-color: var(--brand-950);
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;
}
.feature-cta-section::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand-950) 93%, transparent) 0%, color-mix(in srgb, var(--brand-950) 88%, transparent) 55%, var(--brand-950) 100%),
    linear-gradient(90deg, var(--brand-950) 0%, color-mix(in srgb, var(--brand-950) 70%, transparent) 40%, color-mix(in srgb, var(--brand-950) 70%, transparent) 60%, var(--brand-950) 100%);
}
/* Lighter wash — lets the photo itself read clearly instead of mostly-navy,
   while a bottom-heavy gradient still keeps the centered white text legible. */
.feature-cta-section.cta-photo-visible::after {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--brand-950) 30%, transparent) 0%,
    color-mix(in srgb, var(--brand-950) 42%, transparent) 45%,
    color-mix(in srgb, var(--brand-950) 68%, transparent) 100%);
}
/* The lighter wash above means text contrast now depends on the photo underneath
   it, not just the overlay — a soft shadow keeps the headline/copy readable
   regardless of how bright that part of the image is. */
.feature-cta-section.cta-photo-visible .cta-panel-premium h2,
.feature-cta-section.cta-photo-visible .cta-panel-premium p {
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
}

.feature-block .bar { display:block; width: 40px; height: 4px; border-radius: var(--radius-full); background: var(--accent); margin-bottom: 10px; }
.feature-block .icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:center; font-size: 20px; margin-bottom: 14px; }
.feature-block h3 { color: #fff; font-size: 17px; }
.feature-block p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.6); }

.cta-panel { background: #fff; border-radius: var(--radius-lg); padding: 40px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
@media (min-width: 900px) { .cta-panel { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- enroll panel / payment widget ---------- */
.enroll-panel {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(20,24,27,0.05), 0 24px 48px -24px rgba(20,24,27,0.25);
}
.enroll-panel .thumb { aspect-ratio: 16/10; background: var(--brand-900); position: relative; }
.enroll-panel .thumb img { width:100%; height:100%; object-fit:cover; }
.enroll-panel .thumb .placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; height:100%; color:rgba(255,255,255,0.75); font-weight:700; background: linear-gradient(135deg, var(--brand-800), var(--brand-950)); }
.enroll-panel .thumb .placeholder svg { width:32px; height:32px; opacity:0.8; }
.enroll-panel .thumb .placeholder span { font-size:13px; }
.enroll-panel .pad { padding: 28px; }
.enroll-panel .price-row { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.enroll-panel .price {
  font-size: 30px; font-weight: 800; letter-spacing:-0.01em;
  background: linear-gradient(100deg, var(--brand-950), var(--brand-700));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.enroll-panel .price-note { font-size:12px; color: var(--muted); font-weight:600; }
.enroll-panel .access-note { margin-top: 8px; display:flex; align-items:center; gap:6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.enroll-panel .access-note svg { width:14px; height:14px; flex-shrink:0; }

/* ---------- sale countdown (enroll panel + course card) ---------- */
.enroll-panel .sale-countdown {
  margin-top: 10px; display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #fff3e8, #ffe8d9); border: 1px solid #ffd0ae;
  color: #b45309; font-size: 12.5px; font-weight: 700; padding: 8px 12px; border-radius: var(--radius-sm);
}
.enroll-panel .sale-countdown svg { width: 14px; height: 14px; flex-shrink: 0; color: #ea580c; }

.interest-toggle {
  width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: none; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-chunky);
  padding: 10px 14px; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--muted);
  cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.interest-toggle:hover { border-color: var(--accent); color: var(--accent); }
.interest-toggle svg { width: 15px; height: 15px; flex-shrink: 0; }
.interest-toggle.is-interested { border-style: solid; border-color: var(--success); background: var(--success-bg); color: var(--success); }
.enroll-panel ul.perks { margin-top: 24px; display:flex; flex-direction:column; gap: 12px; font-size: 14px; color: var(--ink); list-style:none; padding:0; padding-top:20px; border-top:1px solid var(--border); }
.enroll-panel ul.perks li { display:flex; align-items:center; gap:10px; }
.enroll-panel ul.perks li svg { width:17px; height:17px; color: var(--success); flex-shrink:0; }

.coupon-box { }
.coupon-toggle { background: none; border: none; padding: 0; font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.coupon-toggle svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.coupon-apply-row { display: flex; gap: 8px; margin-top: 10px; }
.coupon-apply-row input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px; font-size: 13.5px; text-transform: uppercase; }
.coupon-apply-row input:focus { outline: none; border-color: var(--accent); }
.coupon-msg { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; }
.coupon-msg.is-success { color: var(--success); }
.coupon-msg.is-error { color: var(--danger); }

/* The expanded "gift this course" card — a distinct mini-panel, not just a
   plain form, so gifting reads as a real feature rather than an
   afterthought bolted below the perks list. Mirrors the enroll-panel's own
   chunky-card/gradient-top-bar language but with gold leading the gradient
   instead of brand blue, so it visually reads as the gift path. */
.gift-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 2px 8px rgba(20,24,27,0.05), 0 24px 48px -24px rgba(20,24,27,0.25); }
.gift-card-top { height: 4px; background: linear-gradient(90deg, var(--gold), var(--accent) 55%, var(--brand-900)); }
.gift-card-body { padding: 22px; }
.gift-card-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 20px; }
.gift-card-head h4 { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.gift-card-head p { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.gift-icon-chip { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--gold) 18%, white); color: var(--gold-dark); flex-shrink: 0; }
.gift-icon-chip svg { width: 18px; height: 18px; }
.gift-icon-chip.sm { width: 30px; height: 30px; }
.gift-icon-chip.sm svg { width: 14px; height: 14px; }
.gift-label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 6px; }
.gift-label .opt { text-transform: none; font-weight: 500; letter-spacing: 0; color: #a8a49a; }
.gift-field + .gift-field { margin-top: 14px; }
.gift-field .field-icon.for-textarea svg { top: 15px; transform: none; }
.gift-field .field-icon textarea { padding-left: 38px; resize: none; min-height: 60px; line-height: 1.5; }
/* A recap of what's about to be paid for, at the top of the phone step —
   confirms recipient + item before the mobile money prompt, since the
   phone field alone gives no context for what it's charging. */
.gift-recap { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.gift-recap strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.gift-recap span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.month-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.month-pill { display: block; width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 8px; text-align: center; cursor: pointer; background: var(--surface); font-family: inherit; }
.month-pill .m { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.month-pill .p { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; font-weight: 600; }
.month-pill:hover { border-color: var(--border-strong); }
.month-pill.selected { background: color-mix(in srgb, var(--gold) 14%, white); border-color: var(--gold-dark); }
.month-pill.selected .m, .month-pill.selected .p { color: var(--gold-dark); }

/* Collapsed entry point into the gift card above — a proper bordered row
   with the same icon-chip language, not a plain underlined text link, so
   gifting reads as a real feature before it's even expanded. */
.gift-teaser { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 15px 17px; cursor: pointer; font-family: inherit; }
.gift-teaser:hover { border-color: var(--border-strong); box-shadow: 0 4px 14px -6px rgba(20,24,27,0.12); }
.gift-teaser-text { flex: 1; min-width: 0; }
.gift-teaser-text strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.gift-teaser-text span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.gift-teaser .chev { color: #a8a49a; flex-shrink: 0; display: flex; }
.gift-teaser .chev svg { width: 16px; height: 16px; }
.gift-teaser[aria-expanded="true"] .chev svg { transform: rotate(90deg); }

/* Gift-widget success state — names the recipient and what they got,
   instead of a plain "sent!" line. Recipient name / month count are filled
   in by payment.js from what the buyer actually entered, since neither is
   known at render time. */
.gift-success { text-align: center; padding: 36px 22px; }
.gift-success .gift-icon-chip { width: 52px; height: 52px; margin: 0 auto 16px; background: var(--success-bg); color: var(--success); }
.gift-success .gift-icon-chip svg { width: 24px; height: 24px; }
.gift-success h4 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.gift-success p { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.gift-success p strong { color: var(--ink); font-weight: 700; }
.gift-success a { display: inline-flex; align-items: center; gap: 5px; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }
.gift-success a svg { width: 13px; height: 13px; }

/* ---------- gift.php: premium two-column checkout, once a course is picked ---------- */
.gift-checkout-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; margin-bottom: 20px; }
.gift-checkout-back:hover { color: var(--ink); }
.gift-checkout-back svg { width: 14px; height: 14px; }

.gift-checkout-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .gift-checkout-grid { grid-template-columns: 1fr 1.15fr; } }
.gift-checkout-form .gift-box { margin-top: 0 !important; }

.gift-preview-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 900px) { .gift-preview-card { position: sticky; top: 24px; } }
.gift-preview-thumb { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--brand-900), var(--brand-800)); }
.gift-preview-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gift-preview-thumb .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.75); font-weight: 700; font-size: 13px; text-align: center; padding: 0 24px; line-height: 1.4; }
.gift-preview-badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; background: rgba(20,24,27,0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: #fff; font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-full); }
.gift-preview-badge svg { width: 12px; height: 12px; }
.gift-preview-body { padding: 24px; }
.gift-preview-body h2 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.3; }
.gift-preview-body .creator-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.gift-preview-body .creator-row .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--muted); overflow: hidden; flex-shrink: 0; }
.gift-preview-body .creator-row .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gift-preview-desc { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.gift-preview-price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gift-preview-price .unit { font-size: 13px; font-weight: 600; color: var(--muted); }
.gift-preview-perks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gift-preview-perks li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink); }
.gift-preview-perks li svg { width: 14px; height: 14px; color: var(--success); flex-shrink: 0; }

.gift-steps { margin-top: 40px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 30px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .gift-steps { grid-template-columns: repeat(3, 1fr); } }
.gift-step { display: flex; align-items: flex-start; gap: 12px; }
.gift-step-num { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.gift-step-title { font-weight: 700; font-size: 13.5px; }
.gift-step-desc { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

.enroll-trust { margin-top: 22px; padding-top:20px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:12px; }
.enroll-trust .pay-badges { margin-top:0; }
.enroll-trust .pay-badge { border-color: var(--border); color: var(--muted); }
.enroll-trust .pay-badge .logo-chip { box-shadow: 0 0 0 1px var(--border); }
.enroll-trust .pay-badge:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); color: var(--ink); background: var(--surface); }
.enroll-trust .secure-note { display:flex; align-items:center; gap:6px; font-size:12px; color: var(--muted); font-weight:600; }
.enroll-trust .secure-note svg { width:14px; height:14px; color: var(--success); flex-shrink:0; }

.guest-form { display:flex; flex-direction:column; gap:12px; }
.field-icon { position:relative; }
.field-icon svg { position:absolute; left:13px; top:50%; transform:translateY(-50%); width:16px; height:16px; color: var(--muted); pointer-events:none; }
.field-icon input { padding-left:38px; }
.price-strike { text-decoration: line-through; opacity: 0.55; font-weight: 400; margin-right: 6px; font-size: 0.85em; }
.guest-note { margin-top:12px; text-align:center; font-size:12.5px; color: var(--muted); line-height:1.6; }
.guest-note a { color:var(--accent); font-weight:600; }

.pay-waiting { display:flex; flex-direction:column; align-items:center; gap:10px; background: var(--surface); border-radius: 12px; padding: 22px; text-align:center; }
.pay-success { display:flex; flex-direction:column; align-items:center; gap:8px; background: var(--success-bg); border-radius:12px; padding:22px; text-align:center; }
.pay-failed { display:flex; flex-direction:column; align-items:center; gap:8px; background: var(--danger-bg); border-radius:12px; padding:22px; text-align:center; }
.spinner { width: 26px; height: 26px; border-radius:50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ---------- course detail ---------- */
.course-hero { position:relative; isolation:isolate; overflow:hidden; background: var(--brand-950); color: #fff; padding: 44px 0 60px; }
.course-hero-glow {
  position:absolute; z-index:0; top:-120px; right:-100px; width:420px; height:420px; border-radius:50%;
  background: var(--accent); opacity:0.18; filter: blur(100px); pointer-events:none;
  animation: footer-glow-breathe 10s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .course-hero-glow { animation:none; } }
.course-hero .container { position:relative; z-index:1; }

/* ---------- homepage hero: extra depth beyond the shared .course-hero
   (a second, gold-tinted glow orb + a faint dot-grid for texture) — scoped
   to .home-hero only, so the rest of .course-hero's pages are untouched. ---------- */
.home-hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 35%, #000 40%, transparent 90%);
}
.home-hero-glow-2 {
  position: absolute; z-index: 0; bottom: -140px; left: -110px; width: 380px; height: 380px; border-radius: 50%;
  background: var(--gold); opacity: 0.14; filter: blur(110px); pointer-events: none;
  animation: footer-glow-breathe 13s ease-in-out infinite; animation-delay: -4s;
}
@media (prefers-reduced-motion: reduce) { .home-hero-glow-2 { animation: none; } }

/* ---------- homepage hero: founder photo + welcome message, balanced
   side-by-side with the existing headline/CTA so the founder is the
   first thing a visitor sees, without pushing anything below the fold. ---------- */
.home-hero-split-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 860px) { .home-hero-split-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }

.founder-welcome-photo { position: relative; max-width: 420px; margin: 0 auto; }
@media (min-width: 860px) { .founder-welcome-photo { margin: 0; } }

/* premium framing: a layered gold-outline card offset behind the photo,
   a breathing ambient glow, a bottom vignette, and a one-time diagonal
   shine sweep the moment the photo scrolls into view — all keyed off
   the existing .reveal/.in-view scroll system, no separate JS needed. */
.founder-photo-frame {
  position: absolute; inset: 16px -16px -16px 16px; z-index: 0;
  border: 1.5px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: var(--radius-lg);
  transform: rotate(-2.2deg);
  opacity: 0; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), border-color 0.4s ease, opacity 0.7s ease 0.15s;
}
.founder-welcome-photo.in-view .founder-photo-frame { opacity: 1; }
.founder-welcome-photo:hover .founder-photo-frame { transform: rotate(-1.1deg) translate(4px, -4px); border-color: color-mix(in srgb, var(--gold) 85%, transparent); }

.founder-photo-glow {
  position: absolute; z-index: 0; top: 50%; left: 50%; width: 320px; height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--gold) 0%, transparent 72%);
  opacity: 0; filter: blur(60px); pointer-events: none;
  transition: opacity 1.1s ease 0.3s;
  animation: photo-glow-breathe 8s ease-in-out infinite;
}
.founder-welcome-photo.in-view .founder-photo-glow { opacity: 0.24; }
@keyframes photo-glow-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.12); } }

.founder-photo-inner { position: relative; z-index: 1; border-radius: var(--radius-lg); overflow: hidden; }
.founder-welcome-photo img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block;
  border-radius: var(--radius-lg); border: 3px solid rgba(255,255,255,0.16);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.55);
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s ease;
}
.founder-welcome-photo:hover img { transform: scale(1.035) translateY(-3px); box-shadow: 0 40px 72px -18px rgba(0,0,0,0.62); }

.founder-photo-vignette {
  position: absolute; z-index: 2; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, transparent 58%, rgba(8,12,28,0.55) 100%);
  pointer-events: none;
}

.founder-photo-shine {
  position: absolute; z-index: 3; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.4) 50%, transparent 58%);
  transform: translateX(-130%);
  pointer-events: none;
}
.founder-welcome-photo.in-view .founder-photo-shine { animation: photo-shine-sweep 1.3s ease 0.55s 1; }
@keyframes photo-shine-sweep { to { transform: translateX(130%); } }

.founder-badge {
  position: absolute; z-index: 4; left: 50%; bottom: -16px; transform: translateX(-50%) scale(0.85); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: var(--ink); font-size: 12px; font-weight: 800;
  padding: 8px 16px 8px 12px; border-radius: var(--radius-full); box-shadow: 0 10px 24px -10px rgba(0,0,0,0.45);
  opacity: 0; transition: opacity 0.5s ease 0.85s, transform 0.55s cubic-bezier(0.34,1.56,0.64,1) 0.85s;
}
.founder-welcome-photo.in-view .founder-badge { opacity: 1; transform: translateX(-50%) scale(1); }
.founder-welcome-photo:hover .founder-badge { transform: translateX(-50%) translateY(-3px) scale(1); }
@media (min-width: 860px) {
  .founder-badge { left: 20px; transform: translateY(6px) scale(0.85); }
  .founder-welcome-photo.in-view .founder-badge { transform: translateY(0) scale(1); }
  .founder-welcome-photo:hover .founder-badge { transform: translateY(-3px) scale(1); }
}
.founder-badge-check {
  width: 15px; height: 15px; flex-shrink: 0; border-radius: 50%;
  background: var(--gold); color: #1e1400; display: inline-flex; align-items: center; justify-content: center;
}
.founder-badge-check svg { width: 9px; height: 9px; }

@media (prefers-reduced-motion: reduce) {
  .founder-photo-frame, .founder-photo-glow, .founder-welcome-photo img, .founder-badge { transition: none; }
  .founder-photo-glow, .founder-photo-shine { animation: none; }
  .founder-welcome-photo.in-view .founder-photo-frame,
  .founder-welcome-photo.in-view .founder-photo-glow,
  .founder-welcome-photo.in-view .founder-badge { opacity: 1; transform: none; }
}

.home-hero-copy { text-align: left; }
.founder-welcome-line {
  font-size: 15px; font-style: italic; color: rgba(255,255,255,0.82); line-height: 1.6;
  max-width: 480px; padding-left: 14px; border-left: 3px solid var(--gold); margin-bottom: 22px;
}
/* premium quote card for the hero headline + summary: a framed panel with
   a gold spine that draws top-to-bottom, bookend quote marks, and a
   headline that sharpens into focus from a soft blur as it reveals —
   keyed off the same .reveal/.in-view scroll system as the photo. */
.hero-quote {
  position: relative; text-align: left; padding: 30px 28px 30px 34px; border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid rgba(245,179,1,0.22);
  opacity: 0; transform: translateY(18px) scale(0.985);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.hero-quote.in-view { opacity: 1; transform: translateY(0) scale(1); }
.hero-quote::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: var(--radius-full); background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1) 0.15s;
}
.hero-quote.in-view::before { transform: scaleY(1); }
.hero-quote-mark-open, .hero-quote-mark-close {
  position: absolute; width: 34px; height: 26px; opacity: 0;
  transition: opacity 0.8s ease 0.5s;
}
.hero-quote-mark-open { top: 14px; left: 30px; }
.hero-quote-mark-close { bottom: 10px; right: 20px; transform: rotate(180deg); }
.hero-quote.in-view .hero-quote-mark-open,
.hero-quote.in-view .hero-quote-mark-close { opacity: 0.5; }
.hero-quote-mark-open svg, .hero-quote-mark-close svg { width: 100%; height: 100%; display: block; }
.hero-quote-headline {
  position: relative; margin: 0 0 16px; font-size: clamp(25px, 3.8vw, 36px); line-height: 1.24; font-weight: 800;
  letter-spacing: -0.01em; color: var(--gold);
  filter: blur(7px); opacity: 0; transform: scale(1.015);
  transition: filter 0.85s cubic-bezier(0.16,1,0.3,1) 0.25s, opacity 0.85s ease 0.25s, transform 0.85s cubic-bezier(0.16,1,0.3,1) 0.25s;
}
.hero-quote.in-view .hero-quote-headline { filter: blur(0); opacity: 1; transform: scale(1); }
.hero-quote-body {
  position: relative; font-size: 16px; color: rgba(255,255,255,0.8); line-height: 1.7; max-width: 560px; margin: 0;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.7s ease 0.55s, transform 0.7s cubic-bezier(0.16,1,0.3,1) 0.55s;
}
.hero-quote.in-view .hero-quote-body { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .hero-quote, .hero-quote::before, .hero-quote-headline, .hero-quote-body, .hero-quote-mark-open, .hero-quote-mark-close { transition: none; }
  .hero-quote.in-view { opacity: 1; transform: none; }
  .hero-quote.in-view::before { transform: scaleY(1); }
  .hero-quote.in-view .hero-quote-headline { filter: blur(0); opacity: 1; transform: none; }
  .hero-quote.in-view .hero-quote-body { opacity: 1; transform: none; }
  .hero-quote.in-view .hero-quote-mark-open, .hero-quote.in-view .hero-quote-mark-close { opacity: 0.5; }
}
@media (max-width: 859px) { .home-hero-copy, .founder-welcome-line { text-align: center; margin-left: auto; margin-right: auto; } }
@media (max-width: 859px) { .home-hero-copy .row { justify-content: center; } }

.breadcrumb { display:flex; align-items:center; gap:6px; font-size:12.5px; color:rgba(255,255,255,0.55); flex-wrap:wrap; }
.breadcrumb a { color:rgba(255,255,255,0.55); transition: color 0.15s ease; }
.breadcrumb a:hover { color:#fff; }
.breadcrumb svg { width:13px; height:13px; opacity:0.5; flex-shrink:0; }

.course-hero .pill { display:inline-flex; align-items:center; gap:6px; background: rgba(255,255,255,0.1); color: var(--gold); font-size:12px; font-weight:700; padding: 6px 14px; border-radius: var(--radius-full); margin-top:18px; }

/* Real-money social proof badge on a dark hero (become-creator/affiliate) —
   frosted glass + gold accent, the same premium dark-hero language as
   .btn-outline-light rather than a plain text line. */
.hero-trust-stat {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.85); font-size: 13.5px; font-weight: 600; padding: 10px 18px; border-radius: var(--radius-full);
}
.hero-trust-stat svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.hero-trust-stat span { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold); }
.course-hero .pill svg { width:13px; height:13px; flex-shrink:0; }
.course-hero h1 { color: #fff; font-size: clamp(26px, 4.2vw, 38px); margin-top: 14px; line-height:1.2; max-width:720px; }
.course-hero .summary { margin-top: 14px; color: rgba(255,255,255,0.72); max-width: 640px; font-size:15.5px; line-height:1.6; }

.meta-row { margin-top: 24px; display:flex; flex-wrap:wrap; gap: 10px; }
.meta-chip { display:inline-flex; align-items:center; gap:7px; background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.1); padding:8px 14px; border-radius: var(--radius-full); font-size: 13px; color: rgba(255,255,255,0.85); }
.meta-chip svg { width:14px; height:14px; color:rgba(255,255,255,0.6); flex-shrink:0; }
.course-hero .stars { color: var(--gold); letter-spacing: 1px; }

.course-hero .instructor {
  display:inline-flex; align-items:center; gap:12px;
  background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1);
  padding: 10px 18px 10px 10px; border-radius: var(--radius-full); text-decoration:none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.course-hero .instructor:hover { background: rgba(255,255,255,0.11); border-color: rgba(255,255,255,0.2); transform: translateY(-1px); }
.course-hero .instructor .avatar { width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,0.12); display:flex; align-items:center; justify-content:center; font-weight:700; overflow:hidden; flex-shrink:0; }
.course-hero .instructor .avatar img { width:100%; height:100%; object-fit:cover; }
.course-hero .instructor .name { font-weight:700; font-size:14px; color:#fff; }
.course-hero .instructor .headline { font-size:12.5px; color: rgba(255,255,255,0.6); }
@media (prefers-reduced-motion: reduce) { .course-hero .instructor { transition:none; } }

/* Course detail page only: same dark .course-hero background/colors as
   every other page built on .course-hero — just recomposed as a centered
   statement (like the homepage hero) instead of a left-aligned banner. */
.course-hero-centered .container { max-width: 900px; text-align: center; }
.course-hero-centered .breadcrumb { justify-content: center; }
.course-hero-centered h1 { margin-left: auto; margin-right: auto; }
.course-hero-centered .summary { margin-left: auto; margin-right: auto; }
.course-hero-centered .meta-row { justify-content: center; }
.course-hero-centered .row { justify-content: center; }

/* The course title is the one thing on this page that has to read as
   "this is the course" at a glance — gold instead of plain white (the
   site's existing signal color, already used on the category pill and
   star ratings right next to it) and a bigger scale than a generic
   sub-page heading. */
.course-hero-centered h1 { color: var(--gold); font-size: clamp(30px, 5vw, 46px); }
.course-hero-centered .summary { font-size: 17.5px; }

/* ---------- course detail page hero, editorial-masthead treatment ----------
   A left-aligned, quieter alternative to the centered .course-hero-centered
   statement above — its own component (course-detail-hero-*) so it doesn't
   touch the shared .course-hero/.course-hero-centered rules skills.php also
   relies on. Keyed off the existing .reveal/.in-view scroll system. */
.course-detail-hero {
  background: var(--brand-950); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px; padding: 56px 48px; color: #fff; text-align: left;
}
@media (max-width: 600px) { .course-detail-hero { padding: 40px 26px; } }

.course-detail-hero-eyebrow-row { display: flex; align-items: center; gap: 10px; }
.course-detail-hero-eyebrow-row .dash { width: 26px; height: 2px; background: var(--gold); flex-shrink: 0; }
.course-detail-hero-eyebrow-row .txt { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

.course-detail-hero-crumb { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.45); flex-wrap: wrap; }
.course-detail-hero-crumb a { color: rgba(255,255,255,0.45); text-decoration: none; }
.course-detail-hero-crumb a:hover { color: #fff; }
.course-detail-hero-crumb span.sep { opacity: 0.5; }

.course-detail-hero-title-wrap { margin-top: 22px; overflow: hidden; }
.course-detail-hero-title-wrap h1 {
  margin: 0; max-width: 680px; font-size: clamp(28px, 4.6vw, 44px); font-weight: 800; line-height: 1.18; letter-spacing: -0.015em; color: #fff;
  clip-path: inset(0 100% 0 0); transition: clip-path 0.9s cubic-bezier(0.65,0,0.15,1) 0.15s;
}
.course-detail-hero.in-view .course-detail-hero-title-wrap h1 { clip-path: inset(0 0 0 0); }

.course-detail-hero-rule { margin-top: 22px; width: 0; height: 2px; background: var(--gold); transition: width 0.7s cubic-bezier(0.16,1,0.3,1) 0.75s; }
.course-detail-hero.in-view .course-detail-hero-rule { width: 64px; }

.course-detail-hero-summary {
  margin: 20px 0 0; max-width: 560px; font-size: 16.5px; line-height: 1.65; color: rgba(255,255,255,0.68);
  opacity: 0; transform: translateY(10px); transition: opacity 0.6s ease 0.85s, transform 0.6s ease 0.85s;
}
.course-detail-hero.in-view .course-detail-hero-summary { opacity: 1; transform: translateY(0); }

.course-detail-hero-byline {
  margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 22px;
  opacity: 0; transition: opacity 0.6s ease 1s;
}
.course-detail-hero.in-view .course-detail-hero-byline { opacity: 1; }
.course-detail-hero-byline .stat { display: inline-flex; align-items: baseline; gap: 6px; }
.course-detail-hero-byline .stat .num { font-size: 19px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.course-detail-hero-byline .stat .lbl { font-size: 12.5px; color: rgba(255,255,255,0.5); }
.course-detail-hero-byline .pub { font-size: 12.5px; color: rgba(255,255,255,0.45); }

.course-detail-hero-foot {
  margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  opacity: 0; transform: translateY(10px); transition: opacity 0.6s ease 1.1s, transform 0.6s ease 1.1s;
}
.course-detail-hero.in-view .course-detail-hero-foot { opacity: 1; transform: translateY(0); }
.course-detail-hero-instructor { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.course-detail-hero-instructor .avatar {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-weight: 800; font-size: 17px; color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); flex-shrink: 0;
}
.course-detail-hero-instructor .avatar img { width: 100%; height: 100%; object-fit: cover; }
.course-detail-hero-instructor .name { font-weight: 700; font-size: 15px; color: #fff; }
.course-detail-hero-instructor .headline { font-size: 12.5px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.course-detail-hero-foot .btn-share {
  background: none; border: none; border-bottom: 1.5px solid rgba(255,255,255,0.25); border-radius: 0;
  color: rgba(255,255,255,0.7); padding: 8px 2px; gap: 8px;
}
.course-detail-hero-foot .btn-share:hover, .course-detail-hero-foot .btn-share[aria-expanded="true"] {
  background: none; border-color: var(--gold); color: var(--gold); transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .course-detail-hero-title-wrap h1, .course-detail-hero-rule, .course-detail-hero-summary, .course-detail-hero-byline, .course-detail-hero-foot { transition: none; }
  .course-detail-hero.in-view .course-detail-hero-title-wrap h1 { clip-path: inset(0 0 0 0); }
  .course-detail-hero.in-view .course-detail-hero-rule { width: 64px; }
  .course-detail-hero.in-view .course-detail-hero-summary,
  .course-detail-hero.in-view .course-detail-hero-byline,
  .course-detail-hero.in-view .course-detail-hero-foot { opacity: 1; transform: none; }
}

/* ---------- course detail page, flat skool.com-style redesign ----------
   Supersedes .course-detail-hero above with skool.com's own course/about
   page layout: title + star rating directly on the plain page, a big
   thumbnail, a plain meta row, then About/Curriculum/Reviews in a flat
   bordered-card language with no shadows or gradients — matching
   skool.com's exact card/button/radius values (verified via its own
   computed styles). .course-detail-hero above is left in place unused,
   same as this file's existing pattern for superseded page designs
   (see .timeline/.tmod-* and .reviews-grid/.rsummary/.rcard further
   down, both from earlier redesigns of this same page). */
.course-hero2 { background: var(--surface); padding: 36px 0 40px; }
.course-hero2-inner { }

.course-hero2-crumb { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.course-hero2-crumb a { color: var(--muted); text-decoration: none; }
.course-hero2-crumb a:hover { color: var(--ink); }

.course-hero2-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 7px 14px; border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--gold) 14%, white); color: #92660a; border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--border));
}

.course-hero2-inner h1 { margin: 16px 0 0; font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; max-width: 760px; color: var(--ink); }
.course-hero2-sub { margin: 12px 0 0; font-size: 16px; color: var(--muted); max-width: 620px; line-height: 1.6; }

.course-hero2-rating { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.course-hero2-rating .stars { color: var(--gold); font-size: 16px; letter-spacing: 1px; }
.course-hero2-rating .num { font-weight: 800; font-size: 14px; color: var(--ink); }
.course-hero2-rating .count { color: var(--muted); font-size: 13.5px; }

.course-hero2-meta { margin-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.course-hero2-meta .item { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); }
.course-hero2-meta svg { width: 15px; height: 15px; flex-shrink: 0; }
.course-hero2-instructor { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); padding: 6px 16px 6px 6px; border-radius: var(--radius-full); text-decoration: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.course-hero2-instructor:hover { border-color: var(--border-strong); box-shadow: var(--shadow-pop-ink); }
.course-hero2-instructor .av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: var(--gold); color: #241900; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.course-hero2-instructor .av img { width: 100%; height: 100%; object-fit: cover; }
.course-hero2-instructor .name { display: block; color: var(--ink); font-weight: 700; font-size: 13.5px; }
.course-hero2-instructor .role { display: block; color: var(--muted); font-size: 11.5px; }

.course-flat-thumb { margin-top: 0; border-radius: 10px; overflow: hidden; background: var(--border); aspect-ratio: 16/9; }
.course-flat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-flat-thumb .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; }
.course-flat-thumb-lg { box-shadow: 0 30px 60px -30px rgba(20,24,27,0.35); }

.course-flat-sec { margin-top: 40px; }
.course-flat-sec h2 { font-size: 24px; font-weight: 700; margin: 0; color: var(--ink); letter-spacing: -0.015em; text-wrap: balance; }
.course-flat-sec-head { margin-bottom: 20px; }
.course-flat-sec-head .sec-eyebrow { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); }

/* ---------- "Students Also Bought" spotlight band (course detail page) —
   the same restrained gold/accent tint already used for the "Trending
   This Week" strip on the schools browse page (see .trending-strip),
   reused here as a quiet "curated pick" frame around the cross-sell
   course-card grid rather than a plain section like About/Curriculum. ---------- */
.sab-head { display: flex; align-items: center; gap: 10px; margin-top: 40px; }
.sab-head .dash { width: 22px; height: 3px; border-radius: 2px; background: var(--gold); flex-shrink: 0; }
.sab-head h2 { font-size: 20px; font-weight: 800; margin: 0; letter-spacing: -0.005em; color: var(--ink); }
.sab-sub { font-size: 13.5px; color: var(--muted); margin: 6px 0 0 32px; line-height: 1.5; max-width: 48ch; }
.sab-strip {
  margin-top: 18px; padding: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 8%, white), color-mix(in srgb, var(--accent) 6%, white));
  border: 1px solid color-mix(in srgb, var(--gold) 25%, var(--border));
  border-radius: var(--radius-lg);
}
.sab-strip .grid { margin-top: 0; }

/* enroll_panel.php's sidebar card, restored to its premium look — used
   only on this page, so this edits its one existing rule rather than
   adding a scoped override. */
.enroll-panel { position: relative; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(20,24,27,0.05), 0 24px 48px -24px rgba(20,24,27,0.25); }
.enroll-panel::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--brand-700), var(--accent) 45%, var(--gold)); position: relative; z-index: 1; }
.enroll-panel .thumb .placeholder { background: linear-gradient(135deg, var(--brand-800), var(--brand-950)); color: rgba(255,255,255,0.75); }
.enroll-panel ul.perks li svg { color: var(--gold-dark); }

/* Course detail page body copy, bumped up from the site's normal small
   utility sizes (14-14.5px) for easier reading of the actual course
   content — the description, curriculum, and reviews someone reads to
   decide whether to enroll. */
.course-content .course-description { font-size: 17px; margin-top: 14px; line-height: 1.75; }
.course-content .module-block .module-title { font-size: 15.5px; }
.course-content .module-block li { font-size: 15.5px; }
.course-content .review-card p.comment { font-size: 16px; }

/* format_rich_text() output: blank-line paragraphs + "- "/"* " bullet
   blocks from the plain-text description textarea, given real spacing and
   list markup instead of running together as one dense block of dashes. */
.course-description p { margin-top: 18px; }
.course-description p:first-child { margin-top: 0; }
.course-description .rich-text-list {
  list-style: none; margin: 14px 0 18px; padding: 0;
  display: flex; flex-direction: column; gap: 11px;
}
.course-description .rich-text-list:last-child { margin-bottom: 0; }
.course-description .rich-text-list li { position: relative; padding-left: 26px; }
.course-description .rich-text-list li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
/* Course page About: the first paragraph reads as the lead, the rest as
   comfortable body copy at a readable measure. */
.course-layout .course-description { font-size: 15.5px; line-height: 1.8; max-width: 66ch; }
.course-layout .course-description > p:first-child { font-size: 18px; line-height: 1.65; font-weight: 500; color: var(--ink); }
.course-layout .course-description .rich-text-list li::before { background: var(--gold); top: 10px; }
.course-facts {
  display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 28px;
  border: 1px solid var(--border); border-radius: 16px; background: #fff; overflow: hidden;
}
.course-facts .fact { padding: 16px 18px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); min-width: 0; }
.course-facts .fact:nth-child(2n) { border-right: 0; }
.course-facts .fact:nth-last-child(-n+2) { border-bottom: 0; }
.course-facts .v { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.course-facts .k { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
@media (min-width: 560px) {
  .course-facts { grid-template-columns: repeat(4, 1fr); }
  .course-facts .fact { border-bottom: 0; }
  .course-facts .fact:nth-child(2n) { border-right: 1px solid var(--border); }
  .course-facts .fact:last-child { border-right: 0; }
}

/* Light hero variant for courses/index.php + courses/view.php only —
   everywhere else .course-hero keeps its dark navy treatment. */
.page-hero-light { background: var(--surface); color: var(--ink); }
.page-hero-light .breadcrumb,
.page-hero-light .breadcrumb a { color: var(--muted); }
.page-hero-light .breadcrumb a:hover { color: var(--ink); }
.page-hero-light .pill { background: color-mix(in srgb, var(--accent) 12%, white); color: var(--brand-800); border: 1px solid color-mix(in srgb, var(--accent) 20%, white); box-shadow: 0 4px 14px -8px color-mix(in srgb, var(--accent) 45%, transparent); }
.page-hero-light h1 { color: var(--ink); }
.page-hero-light .summary { color: var(--muted); }
.page-hero-light .meta-chip { background: #fff; border-color: var(--border); color: var(--ink); }
.page-hero-light .meta-chip svg { color: var(--muted); }
.page-hero-light .instructor { background: #fff; border-color: var(--border); }
.page-hero-light .instructor:hover { background: var(--surface); border-color: var(--border-strong); }
.page-hero-light .instructor .avatar { background: var(--surface); color: var(--brand-900); }
.page-hero-light .instructor .name { color: var(--ink); }
.page-hero-light .instructor .headline { color: var(--muted); }
.page-hero-light .browse-hero-stats { color: var(--muted); }
.page-hero-light .browse-hero-stats strong { color: var(--ink); }

/* ---------- live stat strip (about page) ---------- */
.stat-strip { background: linear-gradient(165deg, var(--brand-950), var(--brand-900) 60%, var(--brand-800)); padding: 22px 0; }
.stat-strip-grid { display: grid; grid-template-columns: 1fr; gap: 18px; text-align: center; }
@media (min-width: 420px) { .stat-strip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) { .stat-strip-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .stat-strip-grid { grid-template-columns: repeat(5, 1fr); } }
/* With exactly 5 items, a 2-column row leaves the 5th on its own —
   give it the full row instead of a lopsided half-empty last line. */
@media (min-width: 420px) and (max-width: 639px) {
  .stat-strip-item:nth-child(5):last-child { grid-column: 1 / -1; }
}
.stat-strip-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-strip-item .value { font-size: clamp(24px, 4vw, 32px); font-weight: 800; color: #fff; }
.stat-strip-item .value .unit { font-size: 0.55em; color: var(--gold); margin-left: 2px; }
.stat-strip-item .label { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.72); }

/* ---------- value cards (about page) ---------- */
.value-card {
  background: #fff; border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 22px; transition: transform 0.2s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.2s cubic-bezier(0.2,0.8,0.2,1), border-color 0.2s ease;
}
.value-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 8px 0 0 color-mix(in srgb, var(--tint, var(--accent)) 55%, var(--border-strong)); }
.value-card .icon-badge {
  width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: color-mix(in srgb, var(--tint, var(--accent)) 14%, white);
  transition: transform 0.25s ease;
}
.value-card:hover .icon-badge { transform: scale(1.08) rotate(-3deg); }
.value-card h3 { margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--ink); }
.value-card p { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---------- how-it-works panels (about page) ---------- */
.how-panel {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.how-panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--panel-accent, var(--accent));
}
.how-panel::after {
  position: absolute; right: -6px; bottom: -22px; font-size: 130px; line-height: 1;
  opacity: 0.07; pointer-events: none; user-select: none; transform: rotate(-8deg);
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.how-panel:hover::after { transform: rotate(-4deg) scale(1.06); opacity: 0.1; }
.how-panel:hover { transform: translateY(-7px); box-shadow: 0 32px 64px -30px color-mix(in srgb, var(--panel-accent, var(--accent)) 32%, transparent); border-color: transparent; }

/* Learners: cool, trustworthy blue. Creators: warm, prosperous gold.
   Distinct at a glance, each still reading as premium rather than gimmicky. */
.how-panel.panel-learners {
  --panel-accent: var(--accent);
  background: linear-gradient(165deg, color-mix(in srgb, var(--accent) 7%, white) 0%, #fff 60%);
}
.how-panel.panel-learners::after { content: "🎓"; }
.how-panel.panel-creators {
  --panel-accent: var(--gold);
  background: linear-gradient(165deg, color-mix(in srgb, var(--gold) 12%, white) 0%, #fff 60%);
}
.how-panel.panel-creators::after { content: "💰"; }

.how-panel-tag { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, white); padding: 6px 14px; border-radius: var(--radius-full); }
.how-panel-tag.tag-gold { color: #92660a; background: color-mix(in srgb, var(--gold) 18%, white); }
.how-panel-desc { color: var(--muted); }

/* A section wrapped in this reuses the same navy gradient as the header/
   footer/stat-strip — scoped overrides for the shared .eyebrow/.lede/
   .how-panel components so they read on a dark ground instead of needing
   separate dark-mode variants of each. */
.section-navy { background: linear-gradient(165deg, var(--brand-950), var(--brand-900) 55%, var(--brand-800)); }
.section-navy .eyebrow { color: var(--gold); background: rgba(245,179,1,0.14); }
.section-navy h2 { color: #fff; }
.section-navy .lede { color: rgba(255,255,255,0.72); }
.section-navy .how-panel { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); }
.section-navy .how-panel:hover { border-color: rgba(255,255,255,0.32); }
.section-navy .how-panel-tag { color: #fff; background: rgba(255,255,255,0.14); }
.section-navy .how-panel-tag.tag-gold { color: #1a1300; background: var(--gold); }
.section-navy .how-panel-desc { color: rgba(255,255,255,0.72); }
.section-navy .check-list .check-icon { background: rgba(255,255,255,0.16); color: #fff; }
.section-navy .check-list .label-text { color: rgba(255,255,255,0.92); }

.step-row { position: relative; z-index: 1; display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, white), color-mix(in srgb, var(--accent) 8%, white));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent-dark); font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease;
}
.how-panel:hover .step-num { transform: scale(1.08); }
.step-num.num-gold {
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 26%, white), color-mix(in srgb, var(--gold) 10%, white));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 32%, transparent);
  color: #7a5206;
}
.step-row h4 { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.step-row p { margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* ---------- earnings example (become-creator page) — a small receipt-style
   breakdown inside a .how-panel, reusing its existing card chrome. ---------- */
.earnings-example { position: relative; z-index: 1; margin-top: 18px; background: rgba(255,255,255,0.6); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--border)); border-radius: var(--radius); padding: 4px 18px; }
.earnings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 13.5px; color: var(--muted); }
.earnings-row:not(:last-child) { border-bottom: 1px dashed var(--border); }
.earnings-row strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.earnings-row.earnings-total { color: var(--ink); font-weight: 700; }
.earnings-row.earnings-total strong { color: #92660a; font-size: 16px; }

/* ---------- premium closing CTA (about page) ---------- */
.cta-panel-premium { max-width: 620px; margin: 0 auto; text-align: center; padding: 64px 0; }

/* ---------- why-we-exist editorial photo split (about page) ---------- */
.why-exist-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .why-exist-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; } }
.why-exist-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.why-exist-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- real-skills photo gallery (about page) ---------- */
.skills-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skills-gallery .tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; }
.skills-gallery .tile:first-child { grid-column: span 2; aspect-ratio: 2/1; }
@media (max-width: 640px) {
  .skills-gallery { grid-template-columns: repeat(2, 1fr); }
  .skills-gallery .tile:first-child { grid-column: span 2; aspect-ratio: 16/9; }
}
.skills-gallery .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.skills-gallery .tile:hover img { transform: scale(1.08); }
.skills-gallery .tile .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff; font-size: 12.5px; font-weight: 700;
}

/* ---------- mission pull-quote callout (about page) ---------- */
.mission-callout {
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, white);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.mission-callout .tag { display:block; font-size:11.5px; font-weight:800; letter-spacing:0.06em; text-transform:uppercase; color: var(--brand-800); margin-bottom:6px; }
.mission-callout p { font-size: 16.5px; font-weight: 700; color: var(--brand-900); line-height: 1.55; }

/* ---------- checkmark benefit list (about page: learn at your own pace) ---------- */
.check-list { display: flex; flex-direction: column; gap: 16px; }
.check-list li { display: flex; align-items: flex-start; gap: 14px; }
.check-list .check-icon {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: color-mix(in srgb, var(--accent) 14%, white); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.check-list .check-icon svg { width: 14px; height: 14px; }
.check-list .label-text { font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.5; padding-top: 2px; }

/* ---------- centered flex card grid — for item counts that don't divide
   evenly into a fixed CSS-grid column count (e.g. 5 commitment cards) ---------- */
.center-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.center-grid > .value-card { flex: 1 1 250px; max-width: 280px; }

/* ---------- "Who It's For" audience cards (homepage) — same card
   language as join.digital-launchpad.com's "Who is Digital Launchpad
   for?" section (dark card, circular icon badge, big bold uppercase
   title), reskinned into Obin's navy/gold instead of black/orange. ---------- */
.audience-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .audience-grid { grid-template-columns: repeat(4, 1fr); } }
.audience-card {
  text-align: center; border-radius: var(--radius-lg); padding: 36px 26px; color: #fff;
  background: linear-gradient(165deg, var(--brand-950), var(--brand-900) 60%, var(--brand-800));
}
.audience-icon-circle {
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
  width: 64px; height: 64px; border-radius: 50%; font-size: 28px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
}
.audience-card h3 {
  margin-top: 20px; font-size: 19px; font-weight: 800; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--gold);
}
.audience-card p { margin-top: 12px; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.75); }

/* ---------- two-paths comparison (homepage) — matches
   join.digital-launchpad.com's "Two Paths, One Choice" anatomy exactly:
   a muted, outlined "avoid this" card vs. a solid, glowing "choose this"
   card, a circular VS badge between them, and a pill/button anchoring the
   bottom of BOTH cards (not just the winning one). ---------- */
.paths-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: stretch; margin-top: 44px; }
@media (min-width: 800px) { .paths-grid { grid-template-columns: 1fr auto 1fr; gap: 24px; } }
.path-card { position: relative; border-radius: var(--radius-lg); padding: 36px 32px; display: flex; flex-direction: column; }
.path-old {
  background: var(--gold); border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent);
  overflow: hidden;
}
.path-old::before {
  content: ""; position: absolute; top: -80px; left: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: #fff; opacity: 0.22; filter: blur(70px); pointer-events: none;
}
.path-old .path-tag { position: relative; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.path-old .path-amount { position: relative; margin-top: 10px; font-size: 30px; font-weight: 800; color: var(--ink); }
.path-old .path-amount span { font-size: 14px; font-weight: 700; color: rgba(22,24,26,0.6); }
.path-old p.path-desc { position: relative; margin-top: 14px; color: rgba(22,24,26,0.75); font-size: 14.5px; line-height: 1.65; }
.path-old .path-badge {
  border-color: rgba(22,24,26,0.25); color: rgba(22,24,26,0.8);
}
.path-badge {
  position: relative; margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  border: 1.5px solid rgba(255,255,255,0.2); border-radius: var(--radius-full); padding: 10px 18px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: rgba(255,255,255,0.75);
}
.path-badge svg { width: 15px; height: 15px; flex-shrink: 0; }
.path-vs {
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--gold) 45%, transparent);
  font-weight: 800; color: var(--gold); font-size: 12.5px; letter-spacing: 0.06em; background: var(--brand-950);
}
@media (max-width: 799px) { .path-vs { margin: -8px auto; z-index: 1; } }
.path-new {
  background: linear-gradient(165deg, var(--brand-950), var(--brand-900) 65%, var(--brand-800));
  color: #fff; position: relative; overflow: hidden;
}
.path-new::before {
  content: ""; position: absolute; top: -80px; right: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: var(--gold); opacity: 0.18; filter: blur(70px); pointer-events: none;
}
.path-new .path-tag { position: relative; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.path-new .path-amount { position: relative; margin-top: 10px; font-size: 30px; font-weight: 800; }
.path-new .path-amount span { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.65); }
.path-new p.path-desc { position: relative; margin-top: 14px; color: rgba(255,255,255,0.78); font-size: 14.5px; line-height: 1.65; }
.path-new .btn { position: relative; margin-top: 24px; }

/* ---------- homepage final CTA: a classic framed panel instead of a
   plain centered strip — dot-grid backdrop, a breathing gold glow, a
   gold rule that draws in, and a one-time shine sweep across the
   button on reveal. Its own component, not a reskin of the shared
   .cta-panel-premium used by about/contact's photo-background CTAs. ---------- */
.home-final-cta {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 28px;
  background: linear-gradient(165deg, var(--brand-950), var(--brand-900) 60%, var(--brand-800));
  padding: 72px 28px; text-align: center;
}
.home-final-cta-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.45;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 40%, transparent 90%);
}
.home-final-cta-glow {
  position: absolute; z-index: 0; top: 50%; left: 50%; width: 480px; height: 480px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%); opacity: 0.16; filter: blur(90px); pointer-events: none;
  animation: home-final-cta-breathe 10s ease-in-out infinite;
}
@keyframes home-final-cta-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.12); } }
.home-final-cta-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.home-final-cta-rule {
  width: 0; height: 2px; margin: 0 auto 22px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 0.9s cubic-bezier(0.16,1,0.3,1) 0.1s;
}
.home-final-cta.in-view .home-final-cta-rule { width: 120px; }
.home-final-cta-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  opacity: 0; transform: translateY(8px); transition: opacity 0.6s ease 0.25s, transform 0.6s ease 0.25s;
}
.home-final-cta.in-view .home-final-cta-eyebrow { opacity: 1; transform: translateY(0); }
.home-final-cta-eyebrow::before, .home-final-cta-eyebrow::after { content: ""; width: 22px; height: 1px; background: color-mix(in srgb, var(--gold) 50%, transparent); }
.home-final-cta-inner h2 {
  margin: 18px 0 0; font-size: clamp(28px, 4.2vw, 42px); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: #fff;
  opacity: 0; transform: translateY(14px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1) 0.35s, transform 0.7s cubic-bezier(0.16,1,0.3,1) 0.35s;
}
.home-final-cta.in-view .home-final-cta-inner h2 { opacity: 1; transform: translateY(0); }
.home-final-cta-lede {
  margin: 16px auto 0; max-width: 460px; font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,0.72);
  opacity: 0; transform: translateY(12px); transition: opacity 0.7s ease 0.5s, transform 0.7s ease 0.5s;
}
.home-final-cta.in-view .home-final-cta-lede { opacity: 1; transform: translateY(0); }
.home-final-cta-btn-wrap {
  margin-top: 34px; opacity: 0; transform: translateY(10px) scale(0.97);
  transition: opacity 0.6s ease 0.65s, transform 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.65s;
}
.home-final-cta.in-view .home-final-cta-btn-wrap { opacity: 1; transform: translateY(0) scale(1); }
.home-final-cta-btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(100deg, var(--gold-dark), var(--gold) 40%, #ffe49a 50%, var(--gold) 60%, var(--gold-dark));
  background-size: 260% auto; color: #241900; font-weight: 800; font-size: 16px; padding: 16px 34px; border-radius: var(--radius-full);
  text-decoration: none; box-shadow: 0 16px 32px -14px rgba(245,179,1,0.55);
}
.home-final-cta.in-view .home-final-cta-btn { animation: home-final-cta-btn-shine 2.4s ease 1.1s 1; }
@keyframes home-final-cta-btn-shine { from { background-position: 0 0; } to { background-position: -200% 0; } }
.home-final-cta-trust {
  margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  opacity: 0; transition: opacity 0.7s ease 0.9s;
}
.home-final-cta.in-view .home-final-cta-trust { opacity: 1; }
.home-final-cta-trust-logos { display: flex; align-items: center; gap: 6px; }
.home-final-cta-trust-logo { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,0.25); }
.home-final-cta-trust-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-final-cta-trust-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.2); }
.home-final-cta-trust span.txt { font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .home-final-cta-glow { animation: none; }
  .home-final-cta-rule, .home-final-cta-eyebrow, .home-final-cta-inner h2, .home-final-cta-lede, .home-final-cta-btn-wrap, .home-final-cta-trust { transition: none; }
  .home-final-cta.in-view .home-final-cta-rule { width: 120px; }
  .home-final-cta.in-view .home-final-cta-eyebrow,
  .home-final-cta.in-view .home-final-cta-inner h2,
  .home-final-cta.in-view .home-final-cta-lede,
  .home-final-cta.in-view .home-final-cta-trust { opacity: 1; transform: none; }
  .home-final-cta.in-view .home-final-cta-btn-wrap { opacity: 1; transform: none; }
  .home-final-cta.in-view .home-final-cta-btn { animation: none; }
}

/* ---------- real MTN/Airtel logo chips — reused everywhere the platform
   shows a payment method, instead of an emoji or a plain colored dot. ---------- */
.pay-logo-pair { display: inline-flex; align-items: center; }
.pay-logo-chip { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px #fff; flex-shrink: 0; }
.pay-logo-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pay-logo-chip + .pay-logo-chip { margin-left: -8px; }
.icon-badge-logos { display: flex; align-items: center; justify-content: center; }
.icon-badge-logos .pay-logo-chip { width: 24px; height: 24px; }

/* ---------- homepage "Discover courses" — skool.com-style flat, quiet
   redesign: warm off-white ground, near-black type, pill search + filter
   chips, hairline-bordered cards with no shadow. Reuses --surface/--border/
   --ink (already close to Skool's own tones) rather than inventing a new
   palette. Its own component, scoped to the homepage only. ---------- */
.home-discover { background: var(--surface); }
.home-discover-hero { max-width: 960px; margin: 0 auto; padding: 60px 24px 0; text-align: center; }
.home-discover-hero h1 {
  margin: 0; font-size: clamp(26px, 8.4vw, 88px); white-space: nowrap; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; color: var(--accent);
  animation: hero-rise 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
.home-discover-hero .sub {
  margin: 12px 0 0; font-size: 19px; color: var(--ink);
  animation: hero-rise 0.6s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.05s;
}
.home-discover-hero .sub a { color: var(--accent); text-decoration: none; font-weight: 500; }
.home-discover-hero .sub a:hover { text-decoration: underline; }

.home-discover-search { max-width: 650px; margin: 32px auto 0; padding: 0 24px; }
.home-discover-search-box {
  display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px; padding: 16px 20px;
  box-shadow: 0 1px 2px rgba(60,64,67,.32), 0 2px 6px rgba(60,64,67,.15), 0 1px 8px rgba(0,0,0,.1);
}
.home-discover-search-box svg { width: 19px; height: 19px; color: var(--muted); flex-shrink: 0; }
.home-discover-search-box input { border: none; outline: none; font: inherit; font-size: 16px; width: 100%; background: none; color: var(--ink); }
.home-discover-search-box input::placeholder { color: #b0b0b0; }

/* Homepage hero search reuses .hero-search-v3 (see line ~1030) — it already
   carries its own hero-rise entrance at animation-delay 0.15s, continuing
   the same staggered rise as the h1/.sub above it. Only add what that
   shared class doesn't: a focus ring, matching the site's other inputs. */
.hero-search-v3:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent), 0 1px 2px rgba(32,33,36,.13), 0 2px 6px rgba(32,33,36,.06); }

/* One quiet line of real numbers under the search (see index.php), like a trust strip. */
.home-discover-stats {
  max-width: 960px; margin: 16px auto 0; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 6px 14px; font-size: 14px; color: var(--muted);
}
.home-discover-stats strong { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.home-discover-stats i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.4; }
.home-discover-stats + .home-discover-chips { margin-top: 22px; }
@media (max-width: 560px) { .home-discover-stats { font-size: 13px; gap: 4px 10px; } }
.home-discover-chips {
  max-width: 1100px; margin: 32px auto 0; padding: 0 24px; display: flex; align-items: center; gap: 8px; overflow-x: auto;
  animation: hero-rise 0.6s cubic-bezier(0.16,1,0.3,1) both; animation-delay: 0.2s;
}
/* Sizing/weight matched to skool.com's own chip row (its computed styles:
   height 40px, padding 0 14px, 14px/400, 8px gap, #fff/#909090 inactive,
   solid grey fill active) rather than approximated. */
.home-discover-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 400; background: #fff; color: var(--muted); border: 1px solid var(--border); white-space: nowrap;
  text-decoration: none; transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.home-discover-chip:hover { border-color: #c8c8c8; color: var(--ink); }
.home-discover-chip.active { background: var(--muted); color: #fff; border-color: var(--muted); }
.home-discover-chip.active:hover { color: #fff; }
.home-discover-chip-filter {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 400; background: #fff; border: 1px solid var(--border); color: var(--muted); white-space: nowrap;
  text-decoration: none; margin-left: auto; transition: border-color 0.15s ease, color 0.15s ease;
}
.home-discover-chip-filter:hover { border-color: #c8c8c8; color: var(--ink); }
.home-discover-chip-filter svg { width: 16px; height: 16px; flex-shrink: 0; }
.home-discover-chip-filter svg { width: 16px; height: 16px; }

.home-discover-grid-wrap { max-width: 1100px; margin: 0 auto; padding: 48px 24px 64px; }
.home-discover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .home-discover-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .home-discover-grid { grid-template-columns: 1fr; } }

.home-discover-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  text-decoration: none; color: inherit; display: block;
}
/* .reveal is always present (see index.php) — a plain `transition` here and
   .reveal's own `transition` would fight over the same property (only the
   higher-specificity one applies, they don't merge), so this combined
   selector owns the full list: .reveal's fade/slide-in plus the hover
   lift/shadow/border, mirroring the same pattern .course-card.reveal uses
   below. transition-delay lists 4 values in the same order (opacity,
   transform, box-shadow, border-color) so the nth-child stagger only ever
   delays the entrance, never the hover. */
.home-discover-card.reveal {
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.45s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.35s ease;
}
.home-discover-card.reveal:hover { border-color: var(--border-strong); box-shadow: var(--shadow-pop-lg); transform: translateY(-6px); }
.home-discover-card .thumb { position: relative; aspect-ratio: 16/9; background: var(--border); overflow: hidden; }
.home-discover-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.home-discover-card:hover .thumb img { transform: scale(1.08); }
.home-discover-card .thumb::after {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.28), transparent 55%);
  transition: opacity 0.35s ease;
}
.home-discover-card:hover .thumb::after { opacity: 1; }
.home-discover-card .thumb .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; font-size: 13px; }
/* Skool-style: the logo sits inline beside the school name (see .school-id),
   not overlapping the banner. */
.home-discover-card .avatar {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .home-discover-card.reveal, .home-discover-card .thumb img, .home-discover-card .thumb::after { transition: none; }
  .home-discover-card.reveal:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-discover-hero h1, .home-discover-hero .sub, .home-discover-chips { animation: none; }
}
.home-discover-card.reveal:nth-child(1) { transition-delay: 0s, 0s, 0s, 0s; }
.home-discover-card.reveal:nth-child(2) { transition-delay: 0.08s, 0.08s, 0s, 0s; }
.home-discover-card.reveal:nth-child(3) { transition-delay: 0.16s, 0.16s, 0s, 0s; }
.home-discover-card.reveal:nth-child(4) { transition-delay: 0.24s, 0.24s, 0s, 0s; }
.home-discover-card.reveal:nth-child(5) { transition-delay: 0.32s, 0.32s, 0s, 0s; }
.home-discover-card.reveal:nth-child(6) { transition-delay: 0.4s, 0.4s, 0s, 0s; }
.home-discover-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-discover-card .body { padding: 16px 18px 18px; }
.home-discover-card .school-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-discover-card .school-id-text { min-width: 0; display: flex; flex-direction: column; }
.home-discover-card h3 {
  margin: 0; font-size: 17px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.home-discover-card .creator { margin: 2px 0 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-discover-card .desc {
  margin: 12px 0 0; font-size: 14px; color: #4a4a4a; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* One meta row: courses, students, rating (only with reviews), then the
   price pushed right. Icon+number pairs rather than words (see
   .course-card .stats-row) so it never outgrows the card; nowrap with a
   hidden scroll as a last-resort safety net. */
.home-discover-card .school-meta {
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.home-discover-card .school-meta::-webkit-scrollbar { display: none; }
.home-discover-card .school-meta > span { display: flex; align-items: center; gap: 5px; flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.home-discover-card .school-meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.home-discover-card .school-meta .rating svg { fill: var(--gold); stroke: none; }
.home-discover-card .school-meta > span.price { display: block; margin-left: auto; font-weight: 400; }
.home-discover-card .school-meta .price strong { color: var(--ink); font-weight: 800; }

/* Homepage search: no submit button, like skool's — Enter submits. */
.hero-search-v3.home-search-bare { padding-right: 22px; }
.hero-search-v3.home-search-bare input { padding: 16px 0; }
.hero-search-v3.home-search-bare input::-webkit-search-cancel-button { display: none; }

/* "More…" reveals the categories beyond the first seven. */
.home-discover-chips { scrollbar-width: none; }
.home-discover-chips::-webkit-scrollbar { display: none; }
.home-discover-chip[hidden] { display: none; }
button.home-discover-chip { font-family: inherit; cursor: pointer; }
.home-discover-chip-filter { margin-left: auto; }
.home-discover-chips.is-expanded { flex-wrap: wrap; overflow-x: visible; }
.home-discover-chips.is-expanded .home-discover-chip-filter { margin-left: 0; }

/* Numbered pagination: Previous 1 2 … 9 Next. */
.home-pager { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 14px; }
.home-pager a, .home-pager span, .home-pager i {
  min-width: 36px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; font-style: normal; color: var(--muted); text-decoration: none;
}
.home-pager a:hover { background: var(--surface); color: var(--ink); }
.home-pager .on { background: var(--ink); color: #fff; font-weight: 700; }
.home-pager .dis { opacity: 0.4; }
.home-pager i { padding: 0 4px; min-width: 0; }

.home-discover-cta { text-align: center; margin-top: 40px; }
.home-discover-cta a {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius-full);
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14.5px; text-decoration: none;
}
.home-discover-cta a:hover { background: #000; }

/* ---------- how-it-works steps (homepage) — reuses .step-num's circular
   badge (defined above, about page) for the number treatment. ---------- */
.launch-steps { margin-top: 44px; display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 800px) { .launch-steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.launch-step h3 { margin-top: 14px; font-size: 16px; }
.launch-step p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ---------- why-subscribe benefit cards (subscribe page) ---------- */
.why-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.why-card .n { font-size: 22px; }
.why-card h3 { font-size: 15.5px; margin: 10px 0 6px; }
.why-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ---------- premium pricing cards (subscribe page) — big, bold, branded
   navy card per plan, mirroring .path-new's card language (gradient +
   gold glow blob) scaled up into a full plan card: big price, checklist,
   big gold CTA. Both plans get identical visual weight since they unlock
   the exact same catalog — no "recommended" badge on either, that would
   misrepresent a price-only difference as a feature difference. ---------- */
.plans-grid { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 760px; margin: 0 auto; }
@media (min-width: 760px) { .plans-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.plan-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--brand-950), var(--brand-900) 60%, var(--brand-800));
  color: #fff; padding: 40px 32px;
  box-shadow: 0 30px 60px -24px rgba(16, 24, 40, 0.4);
  display: flex; flex-direction: column;
}
.plan-card-glow {
  position: absolute; top: -100px; right: -90px; width: 280px; height: 280px; border-radius: 50%;
  background: var(--gold); opacity: 0.2; filter: blur(90px); pointer-events: none;
}
.plan-tag {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  padding: 7px 15px; border-radius: var(--radius-full);
}
.plan-tag svg { width: 14px; height: 14px; flex-shrink: 0; }
.plan-price { position: relative; margin-top: 24px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price .amount { font-size: clamp(32px, 5vw, 42px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; }
.plan-price .period { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.6); }
.plan-billing-note { position: relative; margin-top: 6px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; }
.plan-blurb { position: relative; margin-top: 18px; color: rgba(255,255,255,0.78); font-size: 14.5px; line-height: 1.65; }
.plan-card .check-list { position: relative; margin-top: 26px; gap: 13px; }
.plan-card .check-list .check-icon { background: rgba(255,255,255,0.14); color: var(--gold); }
.plan-card .check-list .label-text { color: rgba(255,255,255,0.9); font-size: 14px; font-weight: 500; }
/* Pushed to the bottom of the flex column regardless of how many checklist
   lines came before it, so the CTA/disclaimer sit at the same height on
   both cards even though Pro's list has one more line than Go's. */
.plan-card [data-payment-widget] { position: relative; margin-top: auto; padding-top: 30px; }
.plan-disclaimer { position: relative; margin-top: 14px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.5; }

/* ---------- community tag pills (about page) ---------- */
.community-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.community-tags span {
  display: inline-flex; align-items: center; padding: 9px 20px;
  border-radius: var(--radius-full); border: 1px solid var(--border);
  background: #fff; font-size: 13.5px; font-weight: 700; color: var(--ink);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.community-tags span:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

/* ---------- generic icon badge (used standalone by contact/persona cards,
   in addition to the .value-card/.trust-item scoped copies above) ---------- */
.icon-badge {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 50px; height: 50px; border-radius: 15px; font-size: 22px;
  background: color-mix(in srgb, var(--tint, var(--accent)) 14%, white);
  color: var(--tint, var(--accent));
  transition: transform 0.25s ease;
}
.icon-badge svg { width: 1em; height: 1em; display: block; }

/* ---------- contact channel cards (contact page) ---------- */
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.contact-card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--tint, var(--accent)) 55%, rgba(20,24,27,0.25)); }
.contact-card:hover .icon-badge { transform: scale(1.08) rotate(-3deg); }
.contact-card h3 { margin-top: 18px; font-size: 16.5px; }
.contact-card p.desc { margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.6; flex: 1; }
.contact-card .meta-label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-top: 16px; margin-bottom: 3px; }
.contact-card .meta { font-size: 13.5px; font-weight: 700; color: var(--ink); word-break: break-word; }
.contact-card .btn { margin-top: 18px; align-self: flex-start; }

/* ---------- "who are you" persona cards (contact page) ---------- */
.persona-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; display: flex; flex-direction: column; height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.persona-card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--tint, var(--accent)) 55%, rgba(20,24,27,0.25)); }
.persona-card:hover .icon-badge { transform: scale(1.08) rotate(-3deg); }
.persona-card h3 { margin-top: 20px; font-size: 17.5px; }
.persona-card .check-list { margin-top: 16px; margin-bottom: 24px; gap: 11px; flex: 1; }
.persona-card .check-list .label-text { font-size: 13.5px; font-weight: 500; }
.persona-card .btn { align-self: flex-start; }

/* ---------- FAQ accordion (contact page) — pure grid-rows animation,
   no JS height calc needed; toggled via a small click handler in main.js ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.faq-item.open { border-color: color-mix(in srgb, var(--accent) 25%, var(--border)); box-shadow: 0 4px 16px -8px rgba(20,24,27,0.12); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: none; border: 0; text-align: left; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 15.5px; color: var(--ink);
}
.faq-question:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-chevron { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; transition: transform 0.3s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }
/* Height is set inline by main.js (measured from scrollHeight) so the
   collapse/expand always animates to the exact content height, regardless
   of answer length — a fixed max-height guess would either clip long
   answers or leave a visible pause after short ones finish animating. */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1); }
.faq-answer-inner p { padding: 0 24px 22px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }

/* ---------- office map placeholder (contact page) ---------- */
.map-placeholder {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 4/3; border: 1px solid var(--border);
  background:
    linear-gradient(color-mix(in srgb, var(--accent) 5%, white), color-mix(in srgb, var(--accent) 5%, white)),
    repeating-linear-gradient(0deg, var(--border) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 40px);
}
.map-placeholder iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder .pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%);
  width: 46px; height: 46px; border-radius: 50% 50% 50% 0; background: var(--accent);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 24px -8px rgba(11,0,255,0.5);
}
.map-placeholder .pin svg { width: 22px; height: 22px; color: #fff; transform: rotate(45deg); }
.map-placeholder .pin::after {
  content: ""; position: absolute; bottom: -14px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(11,0,255,0.28); transform: translateX(-50%) scale(0.6);
  animation: map-pulse 2.2s ease-out infinite;
}
@keyframes map-pulse { 0% { transform: translateX(-50%) scale(0.6); opacity: 0.8; } 100% { transform: translateX(-50%) scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map-placeholder .pin::after { animation: none; } }

/* ---------- social icons on light backgrounds (contact page) ---------- */
.social-icons-light { display: flex; gap: 10px; flex-wrap: wrap; }
.social-icons-light a {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--border); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.social-icons-light a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 20px -10px var(--accent); }
.social-icons-light svg { width: 19px; height: 19px; fill: currentColor; }

/* ---------- newsletter panel (contact page) ---------- */
.newsletter-panel {
  border-radius: var(--radius-lg); padding: 44px 32px; text-align: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, white), color-mix(in srgb, var(--gold) 10%, white));
  border: 1px solid var(--border);
}
.newsletter-form { display: flex; flex-direction: column; gap: 12px; max-width: 440px; margin: 24px auto 0; }
@media (min-width: 560px) { .newsletter-form { flex-direction: row; } .newsletter-form .field { flex: 1; margin-bottom: 0; } }

/* ---------- help center preview (contact page) ---------- */
.help-articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .help-articles { grid-template-columns: repeat(3, 1fr); } }
.help-article-tile {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); font-size: 13.5px; font-weight: 600; color: var(--ink);
  text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.help-article-tile:hover { border-color: transparent; transform: translateY(-3px); box-shadow: 0 12px 24px -14px rgba(20,24,27,0.25); }
.help-article-tile svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }

/* ---------- button loading state (contact form submit) ---------- */
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn .btn-spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: spin 0.7s linear infinite; flex-shrink: 0; }
.btn-outline .btn-spinner, .btn-ghost .btn-spinner { border-color: color-mix(in srgb, var(--ink) 25%, transparent); border-top-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn .btn-spinner { animation: none; } }

/* ---------- hero trust row (contact page) ---------- */
.hero-trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 30px; }
.hero-trust-row .item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,0.78); }
.hero-trust-row svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* ---------- course detail page layout ----------
   Four independent grid children — course-top (thumbnail + About),
   course-sidebar (the enroll/payment panel), course-rest (Curriculum,
   Reviews, Discussion) and course-sab (Students Also Bought) — rather
   than one big content column plus a sidebar. Below 1024px this is a
   single-column grid, so plain source order IS the visual order: top,
   then the payment panel immediately after (the priority a learner
   should see first), then the rest of the content, then Students Also
   Bought last. At 1024px+ grid-template-areas reassembles the familiar
   two-column layout — content on the left across all three content
   blocks, the sticky payment panel on the right spanning all three rows
   — without needing a second copy of the panel's markup/JS for mobile. */
.course-layout { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: start; }
/* min-width:0 overrides the grid item's implicit min-width:auto (which
   floors at its content's min-content size) — without it, one wide,
   hard-to-shrink line anywhere inside (a price row, a badge, a button
   label, a long curriculum title) can force its column, and the
   single-column mobile grid it sits in, wider than the viewport. */
.course-top, .course-rest, .course-sab, .course-sidebar { min-width: 0; }
/* .course-flat-sec/.sab-head's own margin-top (40px) is for spacing
   WITHIN a block; between course-top/course-rest/course-sab themselves
   the grid's own 48px gap already does that job, so each wrapper's
   first heading drops its own margin-top rather than stacking both. */
.course-rest > .course-flat-sec:first-child { margin-top: 0; }
.course-sab > .sab-head { margin-top: 0; }
.course-sidebar { display:flex; flex-direction:column; gap:20px; }
@media (min-width: 1024px) {
  .course-layout {
    grid-template-columns: 2fr 1fr;
    grid-template-areas: "top sidebar" "rest sidebar" "sab sidebar";
  }
  .course-top { grid-area: top; }
  .course-rest { grid-area: rest; }
  .course-sab { grid-area: sab; }
  .course-sidebar { grid-area: sidebar; position: sticky; top: 88px; align-self: start; }
}

/* ---------- course page checkout card ----------
   Scoped to .course-sidebar so bundle.php's own .enroll-panel keeps its
   look. One focal price, one gold primary action, installments as a
   quiet secondary plan, trust strip docked at the foot. */
.course-sidebar .enroll-panel { border-radius: 22px; box-shadow: 0 2px 6px rgba(20,24,27,0.05), 0 32px 56px -28px rgba(20,24,27,0.30); }
.course-sidebar .enroll-panel::before { height: 3px; }
.course-sidebar .enroll-panel .pad { padding: 26px 26px 0; }
.course-sidebar .enroll-panel button, .course-sidebar .enroll-panel input { font-family: inherit; }
.course-sidebar .price-label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.course-sidebar .sale-pill { font-size: 10.5px; font-weight: 800; letter-spacing: 0.02em; padding: 3px 10px; border-radius: var(--radius-full); background: linear-gradient(135deg, #ff8a65, var(--danger)); color: #fff; }
.course-sidebar .price-row { margin-top: 4px; gap: 6px 10px; }
.course-sidebar .enroll-panel .price {
  font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); -webkit-text-fill-color: currentColor;
}
.course-sidebar .price-strike { font-size: 16px; font-weight: 600; color: var(--muted); text-decoration: line-through; margin-right: 8px; letter-spacing: 0; }
.course-sidebar .enroll-panel .access-note { margin-top: 10px; font-size: 12.5px; font-weight: 500; }
.course-sidebar .enroll-panel .btn-gold { border-radius: 14px; box-shadow: 0 10px 22px -10px rgba(201,142,0,0.7); }
.course-sidebar .enroll-panel .btn-gold:hover { box-shadow: 0 12px 26px -10px rgba(201,142,0,0.8); }

.or-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.or-divider::before, .or-divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.course-sidebar .btn-installments {
  background: transparent; color: var(--ink); border: 1px solid var(--border-strong); box-shadow: none;
  border-radius: 14px; padding: 14px 16px; align-items: stretch; text-align: left;
}
.course-sidebar .btn-installments:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, white); transform: none; box-shadow: none; }
.course-sidebar .btn-installments-title { font-size: 14px; font-weight: 700; }
.course-sidebar .btn-installments-detail { font-size: 12.5px; opacity: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.btn-installments-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 10px; }
.btn-installments-split i { height: 6px; border-radius: 3px; background: var(--border); }
.btn-installments-split i:first-child { background: var(--accent); }

.course-sidebar .coupon-box { margin-top: 12px !important; text-align: center; }
.course-sidebar .coupon-toggle { font-size: 12.5px; font-weight: 600; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
.course-sidebar .enroll-panel ul.perks { margin-top: 22px; padding-top: 20px; gap: 12px; font-size: 13.5px; }
.course-sidebar .enroll-panel ul.perks li svg { width: 16px; height: 16px; }
.course-sidebar .enroll-trust {
  margin: 22px -26px 0; padding: 14px 26px; border-top: 1px solid var(--border); background: var(--surface);
  flex-direction: row-reverse; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px;
}
.course-sidebar .enroll-trust .secure-note { font-weight: 600; color: var(--ink); }
.course-sidebar .enroll-trust .pay-badge { background: transparent; }

/* ---------- curriculum accordion ---------- */
.curriculum-list { display:flex; flex-direction:column; gap:12px; }
.module-block { border: 1px solid var(--border); border-radius: var(--radius); overflow:hidden; background:#fff; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.module-block[open] { border-color: color-mix(in srgb, var(--accent) 25%, var(--border)); box-shadow: 0 2px 6px rgba(20,24,27,0.04); }
.module-block summary { list-style:none; cursor:pointer; padding: 16px 20px; display:flex; align-items:center; gap:14px; background: var(--surface); }
.module-block summary::-webkit-details-marker { display:none; }
.module-block .module-num {
  width:28px; height:28px; border-radius:50%; background:#fff; border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-size:12.5px; font-weight:800; color:var(--brand-900); flex-shrink:0;
}
.module-block .module-title { font-weight:700; font-size:14.5px; flex:1; }
.module-block .module-count { font-size:12px; color:var(--muted); font-weight:600; white-space:nowrap; }
.module-block .module-chevron { width:16px; height:16px; color:var(--muted); transition: transform 0.25s ease; flex-shrink:0; }
.module-block[open] .module-chevron { transform: rotate(180deg); }
.module-block ul { list-style:none; margin:0; padding:0; }
.module-block li { padding: 13px 20px 13px 58px; position:relative; border-top: 1px solid var(--border); font-size:14px; color: var(--ink); display:flex; align-items:center; gap:10px; }
.module-block .lesson-icon { position:absolute; left:20px; width:15px; height:15px; color: var(--accent); flex-shrink:0; }
.module-block .lesson-duration { margin-left:auto; font-size:12px; color:var(--muted); font-weight:600; white-space:nowrap; }
@media (prefers-reduced-motion: reduce) { .module-block .module-chevron { transition:none; } }

/* ---------- rating summary ---------- */
.rating-summary { display:flex; gap:32px; flex-wrap:wrap; align-items:center; padding:24px; background: var(--surface); border-radius: var(--radius-lg); margin-top:16px; margin-bottom:20px; }
.rating-summary .big-num { font-size:44px; font-weight:800; color:var(--brand-950); line-height:1; }
.rating-summary .big-stars { color: var(--gold); font-size:16px; margin-top:6px; }
.rating-summary .big-count { font-size:12.5px; color:var(--muted); margin-top:4px; font-weight:600; }
.rating-summary .bars { flex:1; min-width:200px; display:flex; flex-direction:column; gap:6px; }
.rating-bar-row { display:flex; align-items:center; gap:10px; font-size:12px; color:var(--muted); font-weight:600; }
.rating-bar-row .label { width:34px; flex-shrink:0; }
.rating-bar-track { flex:1; height:7px; border-radius:var(--radius-full); background:var(--border); overflow:hidden; }
.rating-bar-fill { height:100%; background: var(--gold); border-radius:var(--radius-full); }
.rating-bar-row .count { width:22px; text-align:right; flex-shrink:0; }

.review-card { padding: 18px 0; border-bottom: 1px solid var(--border); }
.review-card:first-child { padding-top:0; }
.review-card:last-child { border-bottom:none; }
.review-card .head { display:flex; align-items:center; gap:10px; }
.review-card .avatar { width:36px; height:36px; border-radius:50%; background: var(--surface); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; color: var(--brand-900); overflow:hidden; flex-shrink:0; }
.review-card .avatar img { width:100%; height:100%; object-fit:cover; }
.review-card .name { font-weight:700; font-size:14px; }
.review-card .stars { color: var(--gold); font-size:13px; }
.review-card p.comment { margin-top:10px; font-size:14.5px; color: var(--ink); line-height:1.7; }

/* ---------- course detail page: premium curriculum timeline ----------
   New, unrelated class names (.timeline/.tmod-*/.tlesson-*) rather than
   restyling .curriculum-list/.module-block in place — those are still used
   as-is by dashboard/admin/course-review.php's plainer curriculum view,
   so leaving them untouched keeps that page's look unaffected. */
.curriculum-stat { font-size: 13px; font-weight: 700; color: var(--muted); }
.curriculum-stat strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.timeline { position: relative; margin-top: 16px; }
.timeline::before {
  content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--gold), var(--border));
}
.tmod { position: relative; padding-left: 58px; }
.tmod:not(:last-child) { margin-bottom: 14px; }
.tmod-num {
  position: absolute; left: 0; top: 4px; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), var(--gold-dark));
  color: #241900; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--gold) 60%, transparent);
  z-index: 1;
}
.tmod-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff;
  box-shadow: var(--shadow); overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.tmod-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 16px 32px -16px rgba(20,24,27,0.18); }
.tmod-summary { display: flex; align-items: center; gap: 10px 14px; padding: 16px 20px; cursor: pointer; list-style: none; }
.tmod-summary::-webkit-details-marker { display: none; }
.tmod-title { flex: 1; font-weight: 700; font-size: 15.5px; }
.tmod-count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 4px 10px; border-radius: var(--radius-full); white-space: nowrap; }
.tmod-chevron { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; transition: transform 0.3s cubic-bezier(.16,1,.3,1); }
/* On a narrow phone a long module title (there are several 6-8 word ones
   in real courses) wraps to 4-5 lines while the lesson-count badge and
   chevron stay centered against that whole tall block, floating in
   mid-air next to wrapped text with dead space beside every line after
   the first. Below 600px the title claims its own full-width row so it
   wraps using the whole card width (far fewer lines), and the badge +
   chevron drop to a second, compact row underneath instead. */
@media (max-width: 600px) {
  .tmod-summary { flex-wrap: wrap; align-items: flex-start; }
  .tmod-title { flex: 1 1 100%; }
  .tmod-count { margin-left: auto; }
}
.tmod-card[open] .tmod-chevron { transform: rotate(180deg); }
/* Native <details> jumps open/closed with no transition support of its own
   — this grid-template-rows 0fr->1fr trick is the standard workaround for
   an animated height on content whose real height isn't known in advance. */
.tmod-body-outer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s cubic-bezier(.16,1,.3,1); }
.tmod-card[open] .tmod-body-outer { grid-template-rows: 1fr; }
.tmod-body-inner { overflow: hidden; }
.tlesson { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--border); font-size: 14.5px; transition: background-color 0.15s ease; }
.tlesson:hover { background: var(--surface); }
.tlesson-icon { width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 10%, white); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tlesson-icon svg { width: 14px; height: 14px; }
.tlesson-dur { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .tmod-card, .tmod-chevron, .tmod-body-outer, .tlesson { transition: none; }
}

/* ---------- course detail page: shared raised panel + reviews ----------
   One raised surface per area (reviews, discussion) instead of many
   separate boxed cards; rows inside are separated by hairlines. */
.cpanel { background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.rev-top { display: grid; gap: 22px; padding: 26px; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .rev-top { grid-template-columns: 170px 1fr; align-items: center; } }
.rev-score { text-align: center; }
.rev-score .n { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.rev-score .stars, .rev .stars { color: var(--gold); letter-spacing: 3px; font-size: 15px; margin-top: 8px; }
.rev-score .c { font-size: 12px; color: var(--muted); margin-top: 6px; }
.rev-empty { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); text-align: center; }
@media (min-width: 640px) { .rev-empty { text-align: left; } }
.rbars { display: grid; gap: 9px; }
.rbar-row { display: grid; grid-template-columns: 28px 1fr 24px; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.rbar-track { height: 7px; border-radius: var(--radius-full); background: var(--border); overflow: hidden; }
/* Bars start empty and fill to their real --pct once .rbars scrolls into
   view — .rbars carries .reveal so the sitewide IntersectionObserver in
   main.js adds .in-view to it directly. */
.rbar-fill { display: block; height: 100%; border-radius: var(--radius-full); background: linear-gradient(90deg, var(--gold-dark), var(--gold)); width: 0; transition: width 1.1s cubic-bezier(.16,1,.3,1); }
.rbars.in-view .rbar-fill { width: var(--pct); }
.rbar-row .count { text-align: right; color: var(--ink); }

.rform { padding: 24px 26px; border-bottom: 1px solid var(--border); background: var(--surface); }
/* Why there's no review form (guest, not enrolled, or the course's own owner). */
.rev-gate { padding: 20px 26px; border-bottom: 1px solid var(--border); background: var(--surface); }
.rev-gate p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.rev-gate p b { color: var(--ink); font-weight: 700; }
.rev-gate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.rform h3 { margin: 0; font-size: 16px; font-weight: 800; }
.rform .small { margin-top: 4px; }
.rform .star-input { display: flex; gap: 3px; margin-top: 10px; }
.rform .star-input button {
  background: none; border: none; cursor: pointer; padding: 2px; font-size: 26px; line-height: 1; color: var(--gold); font-family: inherit;
  transition: transform 0.15s cubic-bezier(.34,1.56,.64,1);
}
.rform .star-input button:hover { transform: scale(1.18) rotate(-4deg); }
.rform textarea {
  width: 100%; margin-top: 14px; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: #fff;
  font-family: inherit; font-size: 14.5px; resize: vertical; color: var(--ink); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.rform .btn { margin-top: 14px; }

.rev { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 22px 26px; }
.rev + .rev { border-top: 1px solid var(--border); }
.rev-av {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--brand-700), var(--brand-950)); color: #fff; font-weight: 700; font-size: 14px;
}
.rev-av img { width: 100%; height: 100%; object-fit: cover; }
.rev-main { min-width: 0; }
.rev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.rev-head b { font-size: 14.5px; }
.rev-head time { font-size: 12px; color: var(--muted); }
.rev .stars { font-size: 12px; margin-top: 3px; letter-spacing: 2px; }
.rev p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--ink); max-width: 62ch; overflow-wrap: anywhere; }
.rev-verified { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 11px; font-weight: 600; color: var(--success); }
.rev-verified svg { width: 12px; height: 12px; }
/* ---------- comments (course/event discussion) ----------
   Its own component, not a review — open to any member, no rating, and
   built for back-and-forth (replies, reply-to-anyone within a thread). */
.disc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.disc-head b { font-size: 14px; color: var(--ink); font-weight: 700; }
/* overflow stays visible here (unlike the reviews panel) so the emoji/GIF
   pickers, which open upward from the composer, never get clipped; the
   corners are rounded on the first/last children instead. */
.comments-panel { overflow: visible; }
.comments-panel .disc-head { border-radius: 20px 20px 0 0; }
.comments-panel .comment-form, .comments-panel .comment-login { border-radius: 0 0 20px 20px; }
.comment-login { margin: 0; padding: 18px 22px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.comment-login a { color: var(--accent); font-weight: 600; }

/* ---------- comment composer — single shared pill bar ---------- */
/* Docked at the foot of the discussion panel rather than a card of its
   own; the pill input inside is what gets the focus ring. */
.comment-form { margin: 0; border-top: 1px solid var(--border); background: #fff; padding: 12px 14px; }
.comment-form-bar {
  background: var(--surface); border: 1px solid transparent; border-radius: 22px; padding: 4px 6px 4px 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.comment-form:focus-within .comment-form-bar { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.comment-form-bar { display: flex; align-items: flex-end; gap: 8px; position: relative; }
.comment-form textarea {
  flex: 1; min-width: 0; border: none; background: transparent; resize: none;
  font-family: inherit; font-size: 14px; line-height: 1.4; color: var(--ink); padding: 8px 0; min-height: 38px; max-height: 120px;
}
.comment-form textarea:focus { outline: none; }
.comment-char-count { align-self: center; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.comment-char-count-low { color: var(--danger); font-weight: 700; }
/* Only worth showing once the limit is actually near (wireCharCount adds
   -low under 100 left) — otherwise it just crowds the row on phones. */
.comment-char-count:not(.comment-char-count-low) { display: none; }
.send-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.send-btn svg { width: 15px; height: 15px; }
.send-btn:hover { background: var(--accent-dark); }
.send-btn:active { transform: scale(0.92); }

.comment-reply-to-chip {
  display: flex; align-items: center; gap: 8px; margin: 2px 0 8px;
  background: color-mix(in srgb, var(--accent) 8%, white); color: var(--accent-dark);
  font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 10px;
  border-left: 3px solid var(--accent);
}
.comment-reply-to-chip .chip-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment-reply-to-chip button {
  background: none; border: none; color: inherit; cursor: pointer; font-size: 15px;
  opacity: 0.7; padding: 0; line-height: 1; flex-shrink: 0;
}
.comment-reply-to-chip button:hover { opacity: 1; }

/* ---------- emoji picker (comment composer) ---------- */
.comment-emoji-toggle {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 50%;
  font-size: 15px; cursor: pointer; padding: 0; line-height: 1; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.comment-emoji-toggle:hover, .comment-emoji-toggle.open { background: #fff; border-color: var(--border-strong); }
.comment-emoji-picker {
  position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 40; width: 260px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -16px rgba(20,24,27,0.28); padding: 10px;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
}
.comment-emoji-picker button {
  background: none; border: none; border-radius: 8px; font-size: 19px; line-height: 1;
  padding: 6px 0; cursor: pointer; transition: background-color 0.15s ease, transform 0.1s ease;
}
.comment-emoji-picker button:hover { background: var(--surface); transform: scale(1.15); }
@media (max-width: 420px) {
  .comment-emoji-picker { width: 100%; left: 0; grid-template-columns: repeat(7, 1fr); }
}

/* ---------- GIF picker (comment composer) ---------- */
.comment-gif-toggle {
  display: flex; align-items: center; justify-content: center; height: 30px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 15px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.02em; color: var(--muted);
  cursor: pointer; padding: 0 10px; line-height: 1; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.comment-gif-toggle:hover, .comment-gif-toggle.open {
  background: color-mix(in srgb, var(--accent) 10%, #fff); border-color: var(--accent); color: var(--accent);
}
.comment-gif-picker {
  position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 40; width: 280px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -16px rgba(20,24,27,0.28); padding: 10px;
}
.comment-gif-search {
  width: 100%; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-family: inherit; font-size: 13px; color: var(--ink); padding: 7px 12px; margin-bottom: 8px;
}
.comment-gif-search:focus { outline: none; border-color: var(--border-strong); }
.comment-gif-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  max-height: 220px; overflow-y: auto;
}
.comment-gif-tile {
  aspect-ratio: 1 / 1; border: none; border-radius: 8px; overflow: hidden; padding: 0;
  cursor: pointer; background: var(--surface);
}
.comment-gif-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comment-gif-empty {
  grid-column: 1 / -1; text-align: center; font-size: 12.5px; color: var(--muted); padding: 18px 0; margin: 0;
}
.comment-gif-attrib { text-align: right; font-size: 10px; color: var(--muted); font-weight: 600; margin-top: 6px; }
@media (max-width: 420px) {
  .comment-gif-picker { width: 100%; left: 0; }
}

/* the GIF attached to the composer before posting, and to a posted comment */
.comment-gif-preview {
  position: relative; display: inline-block; margin: 6px 0; max-width: 160px;
}
.comment-gif-preview img { width: 100%; border-radius: 12px; border: 1px solid var(--border); display: block; }
.comment-gif-preview [data-gif-remove] {
  position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 2px solid #fff; font-size: 14px; line-height: 1;
  cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center;
}

.comment-empty {
  margin: 0; padding: 36px 20px; text-align: center;
  background: color-mix(in srgb, var(--surface) 60%, white);
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px;
}
.comment-empty svg { width: 26px; height: 26px; opacity: 0.5; }

/* ---------- chat thread — a flat, WhatsApp-group-style list; own
   messages align right in a tinted bubble (no name needed, same
   convention as your own messages in a WhatsApp group), everyone else's
   align left with avatar + name. A reply shows a quoted snippet of what
   it's addressing instead of visual nesting. ---------- */
.clist { margin: 0; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: color-mix(in srgb, var(--surface) 60%, white); }
@media (max-width: 480px) { .clist { padding: 16px 12px; } }

.crow { display: flex; gap: 8px; max-width: 86%; position: relative; touch-action: pan-y; transition: transform 0.15s ease; }
.crow.theirs { align-self: flex-start; }
.crow.mine { align-self: flex-end; flex-direction: row-reverse; }

.mini-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; overflow: hidden; margin-top: 18px;
  background: linear-gradient(145deg, var(--brand-700), var(--brand-950)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px;
}
.mini-avatar img { width: 100%; height: 100%; object-fit: cover; }

.bubble-stack { display: flex; flex-direction: column; min-width: 0; }
.crow.mine .bubble-stack { align-items: flex-end; }
.sender-name { font-size: 11.5px; font-weight: 700; color: var(--accent); margin: 0 0 3px 12px; }

.cbubble { position: relative; padding: 9px 12px 7px; border-radius: 16px; font-size: 14px; line-height: 1.55; max-width: 100%; }
.crow.theirs .cbubble { background: #fff; border: 1px solid var(--border); border-top-left-radius: 4px; box-shadow: var(--shadow); }
.crow.mine .cbubble {
  background: color-mix(in srgb, var(--accent) 8%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, white);
  border-top-right-radius: 4px;
}
.cbubble .btext { margin: 0; color: var(--ink); white-space: pre-line; }

.reply-quote {
  display: block; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent);
  border-radius: 6px; padding: 4px 8px; margin-bottom: 6px;
}
.reply-quote .qname { font-size: 10.5px; font-weight: 700; color: var(--accent); display: block; }
.reply-quote .qtext { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 230px; }

.gif-bubble { max-width: 180px; margin-top: 2px; border-radius: 12px; overflow: hidden; }
.gif-bubble img { width: 100%; display: block; }

.crow-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* TikTok-style heart-and-count — filled/pink only once liked, a quiet
   outline otherwise, with a small pop on the tap itself. */
.crow-meta .like {
  display: inline-flex; align-items: center; gap: 4px; background: none; border: none; padding: 0;
  cursor: pointer; font-size: 11px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums;
  transition: color 0.15s ease;
}
.crow-meta .like svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1); }
.crow-meta .like:hover { color: var(--ink); }
.crow-meta .like.is-liked { color: #ff2d55; }
.crow-meta .like.is-liked svg { fill: #ff2d55; stroke: #ff2d55; transform: scale(1.15); }
.crow-meta .like:active svg { transform: scale(0.85); }
.crow-meta .like.is-static { cursor: default; }
@media (prefers-reduced-motion: reduce) { .crow-meta .like svg { transition: none; } }

.reply-icon-btn, .crow-delete {
  background: none; border: none; cursor: pointer; color: var(--muted); padding: 0;
  display: flex; align-items: center; justify-content: center; transition: color 0.15s ease;
}
.reply-icon-btn svg, .crow-delete svg { width: 13px; height: 13px; }
.reply-icon-btn:hover { color: var(--accent); }
.crow-delete:hover { color: var(--danger); }

/* swipe-to-reply — revealed by comments.js as the row is dragged past a
   few pixels, toward whichever side faces the center of the thread. */
.reply-affordance {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
  opacity: 0; transition: opacity 0.15s ease;
}
.crow.theirs .reply-affordance { right: -36px; }
.crow.mine .reply-affordance { left: -36px; }
.crow.swiping .reply-affordance { opacity: 1; }
.reply-affordance svg { width: 14px; height: 14px; }

.swipe-caption { margin: 0; padding: 0 0 14px; text-align: center; font-size: 11px; color: var(--muted); background: color-mix(in srgb, var(--surface) 60%, white); }
.comment-form-bar .comment-emoji-toggle, .comment-form-bar .comment-gif-toggle { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .crow { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rbar-fill, .rform .star-input button { transition: none; }
}

/* ---------- instructor card ---------- */
.instructor-card .avatar-lg { width:58px; height:58px; border-radius:50%; background: var(--surface); color: var(--brand-900); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:21px; overflow:hidden; flex-shrink:0; }
.instructor-card .avatar-lg img { width:100%; height:100%; object-fit:cover; }
.instructor-card .creator-bio { margin-top:14px; font-size:13.5px; color:var(--muted); line-height:1.7; }
.instructor-stats { margin-top:16px; display:flex; gap:20px; padding-top:16px; border-top:1px solid var(--border); }
.instructor-stats .stat { display:flex; align-items:center; gap:7px; }
.instructor-stats svg { width:15px; height:15px; color: var(--accent); flex-shrink:0; }
.instructor-stats .stat-value { font-weight:800; font-size:14px; color:var(--ink); }
.instructor-stats .stat-label { font-size:11.5px; color:var(--muted); }
.creator-social { margin-top:16px; display:flex; gap:8px; }
.creator-social a, .creator-social span.is-empty {
  width:32px; height:32px; border-radius:50%; background:var(--surface); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; color:var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.creator-social a:hover { background: var(--brand-950); color:#fff; border-color:var(--brand-950); transform:translateY(-2px); }
.creator-social span.is-empty { opacity: 0.35; cursor: default; }
.creator-social svg { width:15px; height:15px; }
@media (prefers-reduced-motion: reduce) { .creator-social a { transition:none; } }
.social-row { display:flex; gap:10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.social-row a { width:32px; height:32px; border-radius:50%; background: var(--surface); display:flex; align-items:center; justify-content:center; text-decoration:none; font-size:14px; }

/* ---------- auth pages (login / signup / password reset): white card over a blurred photo ---------- */
body.auth-body { position: relative; background: #0d2a1f; font-family: var(--font-sans); }
body.auth-body::before { content: ""; position: fixed; inset: -30px; background: #0d2a1f center / cover no-repeat; filter: blur(22px) saturate(1.1) brightness(.8); z-index: 0; }
.auth-shell { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 28px 20px; box-sizing: border-box; }
.auth-card {
  width: 100%; max-width: 1100px; background: #fff; border-radius: 40px; padding: 12px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 12px; box-sizing: border-box;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.5);
}
.auth-left { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 30px 28px 24px; }
.auth-brand .logo { font-size: 20px; }
.auth-form-side { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 360px; padding: 22px 0; }

.auth-card h1.auth-headline { margin: 0; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; text-align: center; text-wrap: balance; color: var(--ink); }
.auth-card .auth-sub { margin: 10px 0 0; font-size: 15px; color: var(--muted); text-align: center; line-height: 1.5; }
.auth-card form { margin-top: 28px; display: grid; gap: 12px; }
.auth-card .field { position: relative; margin: 0; }
/* The placeholder names each field; the label stays for screen readers only. */
.auth-card .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: 0; }
.auth-card .help { margin: 5px 0 0 18px; font-size: 11.5px; color: var(--muted); }
.auth-card .field-row { display: flex; justify-content: flex-end; margin: 8px 6px 0 0; }
.auth-card .forgot-link { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.auth-card .forgot-link:hover { color: var(--brand-800); text-decoration: underline; }
.auth-card input {
  width: 100%; box-sizing: border-box; background: #f3f3f5; border: 1.5px solid transparent; border-radius: 999px;
  padding: 15px 22px; font-size: 14.5px; font-family: inherit; color: var(--ink); transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.auth-card input::placeholder { color: #55556a; }
.auth-card input:focus { background: #fff; border-color: var(--brand-800); outline: none; box-shadow: 0 0 0 4px rgba(11,0,255,.10); }
.auth-card .field.has-eye input { padding-right: 52px; }
.auth-eye { position: absolute; right: 8px; top: 7px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: #55556a; display: grid; place-items: center; cursor: pointer; }
.auth-eye svg { width: 18px; height: 18px; }
.auth-eye:hover, .auth-eye.is-on { color: var(--brand-800); }
.auth-card .btn-primary {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--brand-800); color: #fff; border-radius: 999px; padding: 16px; font-size: 15px; font-weight: 700; letter-spacing: 0; box-shadow: none; transition: background-color .15s ease;
}
.auth-card .btn-primary:hover { background: var(--brand-900); box-shadow: none; }
.auth-card .btn-primary .btn-arrow { display: none; }
.auth-card .switch-line { margin-top: 20px; text-align: center; font-size: 14px; color: var(--ink); }
.auth-card .switch-line a { color: var(--ink); font-weight: 800; text-decoration: none; margin-left: 4px; }
.auth-card .switch-line a:hover { color: var(--brand-800); text-decoration: underline; }
.auth-help { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.auth-help:hover { color: var(--ink); }

/* right: photo with glass callouts */
.auth-right { min-width: 0; }
.auth-stage { position: relative; height: 100%; min-height: 640px; border-radius: 30px; overflow: hidden; background: var(--brand-950); }
.auth-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.auth-slide.on { opacity: 1; }
.auth-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.28) 100%); pointer-events: none; }
.auth-dots { position: absolute; top: 20px; right: 22px; z-index: 4; display: flex; gap: 7px; }
.auth-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); padding: 0; cursor: pointer; transition: background-color .2s ease, width .2s ease; }
.auth-dots button.on { background: #fff; width: 22px; border-radius: 999px; }
.auth-call, .auth-call-pill { position: absolute; z-index: 3; color: #fff; background: rgba(255,255,255,.26); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.auth-call::before { content: ""; position: absolute; width: 1.5px; background: rgba(255,255,255,.8); }
.auth-call::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.35); }
.auth-call-a { left: 7%; top: 58%; display: flex; align-items: center; gap: 12px; padding: 10px 24px 10px 10px; border-radius: 999px; }
.auth-call-a::before { left: 34px; bottom: 100%; height: 86px; transform: translateX(-50%); }
.auth-call-a::after { left: 34px; bottom: calc(100% + 86px); transform: translate(-50%, 50%); }
.auth-call-ic { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.55); color: #fff; display: grid; place-items: center; flex: none; }
.auth-call-ic svg { width: 21px; height: 21px; }
.auth-call-tx { display: flex; flex-direction: column; line-height: 1.25; }
.auth-call-tx small { font-size: 13px; opacity: .85; }
.auth-call-tx b { font-size: 15px; font-weight: 700; }
.auth-call-b { right: 6%; top: 40%; padding: 16px 22px 16px 18px; border-radius: 22px; display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.auth-call-b b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.auth-call-b small { font-size: 13px; opacity: .85; }
.auth-call-b::before { right: 38px; top: 100%; height: 92px; }
.auth-call-b::after { right: 38px; top: calc(100% + 92px); transform: translate(50%, -50%); }
.auth-call-pill { left: 50%; bottom: 52px; transform: translateX(-50%); padding: 14px 28px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink); border-color: transparent; font-size: 16px; font-weight: 600; white-space: nowrap; }

@media (max-width: 980px) {
  .auth-shell { padding: 16px 12px; }
  .auth-card { grid-template-columns: minmax(0, 1fr); border-radius: 30px; }
  .auth-left { padding: 24px 12px 18px; }
  .auth-stage { min-height: 240px; border-radius: 22px; }
  .auth-call-a, .auth-call-b { display: none; }
  .auth-call-pill { bottom: 22px; padding: 11px 22px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .auth-slide, .auth-card * { transition: none !important; } }
/* ---------- learn player ---------- */
.learn-shell { display:flex; flex-direction:column; min-height:100vh; min-height:100dvh; background: var(--brand-950); }
.learn-top { display:flex; align-items:center; justify-content:space-between; padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); color:#fff; }
.learn-top .back { display:flex; align-items:center; gap:8px; color:rgba(255,255,255,0.7); text-decoration:none; font-size:14px; }
.learn-top .progress-label { font-size:12px; color: rgba(255,255,255,0.6); }
.learn-body { display:flex; flex:1; }
.learn-sidebar {
  position: fixed; inset: 0 auto 0 0; width: 300px; background: var(--brand-950);
  border-right: 1px solid rgba(255,255,255,0.1); overflow-y:auto; z-index: 60; padding-top: 56px;
  transform: translateX(-100%); transition: transform 0.2s ease;
}
.learn-sidebar.open { transform: translateX(0); }
.learn-sidebar-close { position:absolute; top:14px; right:14px; background:none; border:none; color:#fff; font-size:20px; }
.learn-progress-track { margin: 16px 18px; }
.learn-module-title { padding: 10px 18px 6px; font-size:11px; text-transform:uppercase; letter-spacing:0.05em; color: rgba(255,255,255,0.45); font-weight:700; }
.learn-lesson-btn {
  display:flex; align-items:center; gap:10px; width:100%; text-align:left; background:none; border:none;
  color: rgba(255,255,255,0.65); padding: 10px 18px; font-size:14px; cursor:pointer; text-decoration:none;
}
.learn-lesson-btn:hover { background: rgba(255,255,255,0.06); color:#fff; }
.learn-lesson-btn.active { background: rgba(255,255,255,0.1); color:#fff; }
.learn-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:55; }
.learn-overlay.open { display:block; }
@media (min-width: 1024px) {
  .learn-body { flex-direction: row; }
  .learn-sidebar { position: static; transform: none; width: 300px; flex-shrink:0; padding-top:0; }
  .learn-sidebar-close { display:none; }
  .learn-overlay { display:none !important; }
}

.learn-main { flex:1; background:#fff; }
.learn-main-inner { max-width: 880px; margin: 0 auto; padding: 32px 20px 60px; }
.learn-video-wrap { border-radius: var(--radius); overflow:hidden; background:#000; }
.learn-video-wrap video { width:100%; aspect-ratio:16/9; display:block; border:0; }
.learn-video-wrap iframe { width:100%; height:80vh; min-height:520px; display:block; border:0; background:#fff; }
.expiry-banner { background: var(--warning-bg); color: var(--warning-ink); border-radius: 12px; padding: 10px 16px; font-size:12.5px; font-weight:700; margin-bottom:16px; }
.certificate-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 18%, white), color-mix(in srgb, var(--gold) 6%, white));
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 12px; padding: 14px 18px; font-size: 13.5px; font-weight: 700; color: #7a5206; margin-bottom: 16px;
}
.learn-mobile-toggle { background:none; border:none; color:#fff; font-size:18px; cursor:pointer; }
@media (min-width: 1024px) { .learn-mobile-toggle { display:none; } }

/* ---------- scroll-reveal utility (reusable site-wide) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.08s; }
.reveal-delay-2.in-view { transition-delay: 0.16s; }
.reveal-delay-3.in-view { transition-delay: 0.24s; }
.reveal-delay-4.in-view { transition-delay: 0.32s; }
.reveal-delay-5.in-view { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---------- lead capture popup ---------- */
.lead-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(16,24,27,0.55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity 0.25s ease;
}
.lead-overlay.open { display: flex; }
.lead-overlay.visible { opacity: 1; }
.lead-modal {
  position: relative; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  background: #fff; border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px 28px; box-shadow: 0 30px 60px -20px rgba(16,24,27,0.4);
  transform: translateY(16px) scale(0.98); transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1);
}
.lead-overlay.visible .lead-modal { transform: translateY(0) scale(1); }
.lead-modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--surface); color: var(--muted); font-size: 18px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lead-modal-close:hover { background: var(--border); color: var(--ink); }
.lead-modal-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--dash-tint, #eeeeff); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.lead-modal[data-lead-variant="creator"] .lead-modal-icon,
.lead-modal-success .lead-modal-icon { background: color-mix(in srgb, var(--gold) 18%, white); }
.lead-modal h2 { margin-top: 16px; font-size: 22px; line-height: 1.15; }
.lead-modal p.lead-sub { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.lead-modal form { margin-top: 20px; }
.lead-consent {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 6px;
  font-size: 12px; color: var(--muted); line-height: 1.5; cursor: pointer;
}
.lead-consent input { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; accent-color: var(--accent); }
.lead-consent a { color: var(--ink); text-decoration: underline; }
.lead-modal .btn { margin-top: 16px; }
.lead-form-error { color: var(--danger); font-size: 13px; margin-top: 10px; text-align: center; }
.lead-success-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.lead-whatsapp-btn { background: #25D366; border-color: #25D366; color: #fff; }
.lead-whatsapp-btn:hover { background: #1fb855; border-color: #1fb855; }
@media (prefers-reduced-motion: reduce) {
  .lead-overlay, .lead-modal { transition: none; }
}

/* ---------- cookie consent banner ---------- */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 190;
  max-width: 620px; margin: 0 auto;
  background: #fff; border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 20px; box-shadow: 0 20px 44px -18px rgba(16,24,27,0.35);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.consent-banner[hidden] { display: none; }
.consent-banner-text { flex: 1 1 260px; min-width: 0; }
.consent-banner-text p { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.consent-banner-text a { color: var(--ink); text-decoration: underline; }
.consent-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- recent-activity social-proof toast (course detail page) —
   real enrollments only, see get_recent_enrollment_activity() in
   includes/data.php. Bottom-LEFT and a fixed max-width on desktop (not
   centered/full-width like .consent-banner) so the two don't collide if
   both show; the mobile media query below switches to equal left/right
   margins instead — no more lopsided edge-crowding on narrow phones. ---------- */
.activity-toast {
  position: fixed; left: 16px; bottom: 16px; z-index: 170; max-width: 380px;
  background: linear-gradient(155deg, var(--success), #15803d);
  border-radius: var(--radius-lg);
  padding: 15px 14px;
  box-shadow: 0 20px 40px -12px rgba(21,128,61,0.45), 0 2px 8px -2px rgba(21,128,61,0.3);
  display: flex; align-items: center; gap: 11px;
  opacity: 0; transform: translateY(18px) scale(0.96); pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.19,1,0.22,1), transform 0.3s cubic-bezier(0.19,1,0.22,1), box-shadow 0.2s ease, bottom 0.25s ease;
  cursor: pointer; text-align: left; border: none; font-family: inherit; -webkit-tap-highlight-color: transparent;
}
.activity-toast.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.activity-toast.show:active { transform: translateY(0) scale(0.98); }
@media (hover: hover) {
  .activity-toast.show:hover { transform: translateY(-3px) scale(1); box-shadow: 0 26px 46px -14px rgba(21,128,61,0.52), 0 4px 10px -2px rgba(21,128,61,0.35); }
}
/* A quiet diagonal sheen for surface depth — not a loud gloss, just enough
   that the card doesn't read as one flat fill. */
.activity-toast::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 45%);
}
.activity-toast-badge {
  position: relative; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.16); border: 1.5px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 14.5px; font-weight: 800; color: #fff;
}
.activity-toast-badge .ring {
  position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.55);
  opacity: 0; transform: scale(0.85);
}
.activity-toast.show .activity-toast-badge .ring { animation: activity-ring-pulse 2.2s cubic-bezier(0.16,1,0.3,1) 0.55s 2; }
@keyframes activity-ring-pulse {
  0% { opacity: 0.6; transform: scale(0.85); }
  100% { opacity: 0; transform: scale(1.35); }
}
.activity-toast-body { flex: 1; min-width: 0; }
.activity-toast-text { margin: 0; font-size: 14px; font-weight: 600; color: #fff; line-height: 1.32; letter-spacing: -0.005em; }
.activity-toast-text b { font-weight: 800; }
.activity-toast-time { margin: 3px 0 0; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.72); display: flex; align-items: center; gap: 5px; }
.activity-toast-time .live-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.activity-toast-arrow {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.16); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.activity-toast:hover .activity-toast-arrow { transform: translateX(2px); }
.activity-toast-arrow svg { width: 14px; height: 14px; }
.activity-toast-close {
  position: absolute; top: -8px; right: -8px; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; color: var(--muted); font-size: 13px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  border: 1px solid var(--border); box-shadow: 0 2px 6px rgba(16,24,27,0.15);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.activity-toast-close:hover { background: var(--surface); color: var(--ink); }
@media (max-width: 480px) {
  .activity-toast { left: 12px; right: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .activity-toast { transition: opacity 0.2s ease; transform: none; }
  .activity-toast-badge .ring { animation: none; }
}

/* the enroll/subscribe panel's own brief highlight when the activity toast
   is tapped and scrolls the visitor to it (see courses/view.php) — adds a
   green ring on top of, not instead of, the panel's own normal shadow. */
.enroll-panel.activity-pulse {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 30%, transparent), 0 2px 8px rgba(20,24,27,0.05), 0 24px 48px -24px rgba(20,24,27,0.25);
  transition: box-shadow 0.3s ease;
}

/* ---------- community feed ---------- */
.avatar-circle { border-radius: 50%; background: var(--surface); color: var(--brand-900); display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }

.feed-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .feed-layout { grid-template-columns: 1fr; } }
.feed-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.feed-sidebar h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 12px; }
.feed-category-list { display: flex; flex-direction: column; gap: 3px; }
.feed-category-list a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; transition: background-color 0.15s ease; }
.feed-category-list a:hover { background: var(--surface); }
.feed-category-list a.active { background: var(--brand-900); color: #fff; }

.feed-composer { border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 18px; background: #fff; transition: border-color 0.2s ease; }
.feed-composer:focus-within { border-color: var(--brand-900); }
.feed-composer-head { display: flex; align-items: center; gap: 10px; }
.feed-composer textarea { min-height: 78px; }
.feed-type-tabs { display: flex; gap: 8px; margin-top: 12px; }
.feed-composer-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.feed-composer-row select { width: auto; min-width: 160px; }
.feed-icon-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: #fff; color: var(--muted); font-size: 12.5px; font-weight: 700; padding: 7px 13px; border-radius: var(--radius-full); cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease; }
.feed-icon-btn:hover { border-color: var(--brand-800); color: var(--brand-800); }
.feed-icon-btn svg { width: 14px; height: 14px; }
.feed-poll-builder { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.feed-poll-builder input { margin: 0; }
.feed-image-preview { margin-top: 12px; position: relative; max-width: 260px; }
.feed-image-preview img { width: 100%; border-radius: var(--radius-sm); display: block; }

.feed-post-list { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.feed-post { position: relative; border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 18px; background: #fff; transition: box-shadow 0.2s cubic-bezier(0.2,0.8,0.2,1), transform 0.2s cubic-bezier(0.2,0.8,0.2,1), border-color 0.2s ease; }
.feed-post:hover { border-color: var(--ink); box-shadow: var(--shadow-pop); transform: translateY(-2px); }
.feed-post.is-pinned { border-color: var(--gold); background: linear-gradient(180deg, rgba(245,179,1,0.05), transparent 120px); }
@media (prefers-reduced-motion: reduce) { .feed-post { transition: none; } .feed-post:hover { transform: none; } }
.feed-post-head { display: flex; align-items: flex-start; gap: 10px; }
.feed-post-head .meta { min-width: 0; flex: 1; }
.feed-post-head .name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.feed-post-head .author { font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; }
.feed-post-head .author:hover { text-decoration: underline; }
.role-badge { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--brand-800); background: rgba(11,0,255,0.09); padding: 2px 7px; border-radius: var(--radius-full); }
.feed-post-head .sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.feed-post-head .pin-flag { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.feed-post-body { margin-top: 12px; font-size: 14.5px; line-height: 1.7; color: var(--ink); white-space: pre-wrap; word-wrap: break-word; }
.feed-post-body .tag { color: var(--brand-800); font-weight: 600; }
.feed-post-image { margin-top: 12px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.feed-post-image img { width: 100%; display: block; max-height: 420px; object-fit: cover; }
.feed-post-link { margin-top: 12px; display: block; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--brand-800); text-decoration: none; word-break: break-all; }
.feed-post-link:hover { border-color: var(--brand-800); }

.feed-poll { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.feed-poll-option { position: relative; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; cursor: pointer; overflow: hidden; background: #fff; }
.feed-poll-option:hover { border-color: var(--brand-800); }
.feed-poll-option.voted { cursor: default; }
.feed-poll-option .fill { position: absolute; inset: 0; background: var(--surface); z-index: 0; transition: width 0.3s ease; }
.feed-poll-option .row { position: relative; z-index: 1; display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; }
.feed-poll-option.mine .row { color: var(--brand-900); }
.feed-poll-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

.feed-actions { display: flex; align-items: center; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.feed-action-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none; color: var(--muted); font-size: 13px; font-weight: 700; padding: 7px 11px; border-radius: var(--radius-sm); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.feed-action-btn:hover { background: var(--surface); color: var(--ink); }
.feed-action-btn.liked { color: #e0245e; }
.feed-action-btn svg { width: 15px; height: 15px; }
.feed-action-btn.liked svg { fill: #e0245e; animation: heart-pop 0.35s cubic-bezier(0.3,1.5,0.5,1); }
@keyframes heart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .feed-action-btn.liked svg { animation: none; } }
.feed-actions .spacer { flex: 1; }

.feed-comments { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.feed-comment { display: flex; gap: 9px; }
.feed-comment .bubble { flex: 1; min-width: 0; background: var(--surface); border-radius: var(--radius-sm); padding: 9px 12px; }
.feed-comment .author { font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; }
.feed-comment .author:hover { text-decoration: underline; }
.feed-comment .text { font-size: 13.5px; line-height: 1.55; color: var(--ink); margin-top: 2px; white-space: pre-wrap; word-wrap: break-word; }
.feed-comment .comment-meta { display: flex; align-items: center; gap: 12px; margin-top: 5px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.feed-comment .comment-meta button { background: none; border: none; padding: 0; color: var(--muted); font-size: 11.5px; font-weight: 700; cursor: pointer; }
.feed-comment .comment-meta button:hover { color: var(--brand-800); }
.feed-comment .comment-meta button.liked { color: #e0245e; }
.feed-comment .comment-meta a { color: var(--muted); font-weight: 700; text-decoration: none; }
.feed-comment .comment-meta a:hover { color: var(--brand-800); }
.feed-comment-replies { margin-left: 30px; margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.feed-comment-form { display: flex; gap: 9px; margin-top: 4px; }
.feed-comment-form textarea { min-height: 40px; padding: 9px 12px; font-size: 13.5px; }

.mention-menu { position: absolute; z-index: 20; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-pop); max-height: 200px; overflow-y: auto; min-width: 200px; }
.mention-menu button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: none; padding: 8px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.mention-menu button:hover, .mention-menu button.active { background: var(--surface); }

.feed-empty { border: 1px dashed var(--border); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13.5px; }
.feed-load-more { display: block; text-align: center; margin-top: 18px; }

/* ---------- member profile ---------- */
.profile-hero {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 40px 32px; position: relative; overflow: hidden;
}
.profile-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.profile-hero-top { display: flex; gap: 22px; align-items: flex-start; }
.profile-avatar {
  width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, white), var(--surface));
  color: var(--brand-900); font-weight: 800; font-size: 32px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--border);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-identity { flex: 1; min-width: 0; }
.profile-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-name-row h1 { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; }
.profile-headline { color: var(--muted); font-size: 14.5px; font-weight: 600; margin-top: 4px; }
.profile-edit-btn {
  flex-shrink: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); background: #fff;
  border: 1.5px solid var(--border); border-radius: var(--radius-full);
  padding: 9px 20px; white-space: nowrap; text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.profile-edit-btn:hover { border-color: var(--border-strong); background: var(--surface); }
.profile-bio { margin-top: 20px; font-size: 16px; line-height: 1.75; color: var(--ink); max-width: 620px; }

.profile-stats-row { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.profile-stats-row .stat .value { display: block; font-size: 24px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.profile-stats-row .stat .label { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 6px; }

.profile-tag-group { margin-top: 16px; }
.profile-tag-group h4 { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 8px; }
.profile-chip { display: inline-flex; align-items: center; border: 1px solid var(--border); color: var(--ink); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-full); }
.profile-chip.looking-for { border-color: rgba(11,0,255,0.3); color: var(--brand-800); background: rgba(11,0,255,0.06); }

.profile-section { margin-top: 44px; }
.profile-section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.profile-section-head h2 { font-size: 19px; font-weight: 800; }
.profile-section-head .count { font-size: 13.5px; color: var(--muted); font-weight: 600; }

/* In-school course search (profile.php + school-search.js). One calm column:
   a hairline search field, an underlined category row, a results line. */
.school-search { margin-bottom: 20px; }
.school-search-box {
  display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 6px 0 18px; background: #fff;
  border: 1px solid var(--border-strong); border-radius: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.school-search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
.school-search-box > svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; opacity: 0.8; }
.school-search-box input {
  flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: none; font: inherit; font-size: 15px; color: var(--ink);
  padding: 0; min-height: 0;
}
.school-search-box input::placeholder { color: var(--muted); opacity: 0.8; }
.school-search-box input::-webkit-search-cancel-button { display: none; }
.school-search-clear {
  border: none; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted);
  padding: 8px 12px; border-radius: 9px; cursor: pointer; flex-shrink: 0;
}
.school-search-clear:hover { color: var(--ink); background: var(--surface); }
.school-search-clear[hidden] { display: none; }
.school-chips { display: flex; gap: 26px; margin-top: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); }
.school-chips::-webkit-scrollbar { display: none; }
.school-chip {
  position: relative; flex-shrink: 0; display: inline-flex; align-items: baseline; gap: 4px; font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 16px 0 14px; border: none; background: none; color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: color 0.15s ease;
}
.school-chip span { font-size: 10.5px; font-weight: 600; color: var(--muted); opacity: 0.8; font-variant-numeric: tabular-nums; position: relative; top: -0.4em; }
.school-chip:hover, .school-chip.is-active { color: var(--ink); }
.school-chip.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.school-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.school-search-status {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 0; min-height: 20px;
  font-size: 12.5px; color: var(--muted);
}
.school-search-status b { color: var(--ink); font-weight: 600; }
.school-search-status button {
  border: none; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0;
}
.school-search-status[data-idle="true"] { visibility: hidden; }
/* Each card is wrapped only to carry its filter data; display:contents keeps
   the wrapper out of the grid so the layout is exactly what it was. */
.school-course { display: contents; }
.school-course[hidden], [data-school-courses][hidden] { display: none; }
.school-search-empty { text-align: center; padding: 52px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.school-search-empty p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.school-search-empty strong { color: var(--ink); }
/* ---------- school profile: "About This School" (profile.php, creator branch) ---------- */
.profile-section-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.profile-about-card {
  margin-top: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: 0 1px 2px rgba(20,24,27,0.04), 0 8px 24px -14px rgba(20,24,27,0.14);
}
.profile-about-card .profile-bio { margin-top: 0; max-width: none; }
.profile-about-social-row { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.profile-about-social-row .label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; }
.profile-about-social-row .creator-social { margin-top: 0; }
@media (max-width: 560px) {
  .profile-about-card { padding: 22px; }
}

/* ---------- school profile, Direction 2: "Editorial" (local exploration —
   quieter, restrained, serif display type + a single gold rule, no card
   shells, hairline dividers instead — see school-followers.php's own
   Editorial direction for the same visual language). ---------- */
.display-font { font-family: "Fraunces", Georgia, serif; }
.profile-section-eyebrow-editorial {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dark);
}
.profile-section-eyebrow-editorial .rule { display: block; margin-top: 10px; width: 40px; height: 2px; background: var(--gold); }
.profile-about-editorial { margin-top: 18px; }
.profile-about-editorial .profile-bio { margin-top: 0; max-width: 640px; font-size: 16.5px; }
.profile-about-social-row-editorial {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border-strong);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.profile-about-social-row-editorial .label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.profile-section-head-editorial h2 { font-weight: 600; letter-spacing: -0.01em; }

/* ---------- school profile, Direction 3: "Storefront" (local exploration —
   real UX/retention additions: a sticky in-page sub-nav, a trust-signal
   grid, a two-column About with a fact card, and a real testimonials
   section pulled from actual reviews — not deployed). ---------- */
.school-hero-rating {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 7px 14px; border-radius: var(--radius-full); background: rgba(0,0,0,0.03); border: 1px solid var(--border);
  font-size: 13.5px; color: var(--ink); transition: border-color 0.15s ease;
}
.school-hero-rating:hover { border-color: var(--border-strong); }
.school-hero-rating .stars { display: inline-flex; gap: 1px; }
.school-hero-rating .star { color: var(--border-strong); font-size: 13px; }
.school-hero-rating .star.filled { color: var(--gold); }
.school-hero-rating strong { font-weight: 800; }
.school-hero-rating .muted-inline { color: var(--muted); }

.profile-subnav { position: sticky; top: 68px; z-index: 49; background: #fff; border-bottom: 1px solid var(--border); }
.profile-subnav-inner { display: flex; gap: 28px; overflow-x: auto; }
.profile-subnav a {
  flex-shrink: 0; padding: 15px 2px; font-size: 13.5px; font-weight: 700; color: var(--muted);
  text-decoration: none; border-bottom: 2px solid transparent; transition: color 0.15s ease, border-color 0.15s ease;
}
.profile-subnav a:hover { color: var(--ink); }

.trust-grid-section { padding: 40px 0 0; }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 20px; }
.trust-tile .icon {
  width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent-dark); display: flex; align-items: center; justify-content: center;
}
.trust-tile .icon svg { width: 18px; height: 18px; }
.trust-tile .title { margin-top: 14px; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.trust-tile .desc { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.5; }

.profile-about-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 800px) { .profile-about-grid { grid-template-columns: 2fr 1fr; align-items: start; } }
.profile-about-social-row { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.profile-about-social-row .label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; }
.profile-at-a-glance { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.profile-at-a-glance .title { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.profile-at-a-glance .row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); }
.profile-at-a-glance .row:first-of-type { border-top: none; margin-top: 6px; }
.profile-at-a-glance .k { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.profile-at-a-glance .v { font-size: 14.5px; color: var(--ink); font-weight: 800; }

.review-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 800px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; }
.review-card .stars { display: flex; gap: 2px; }
.review-card .star { color: var(--border-strong); font-size: 14px; }
.review-card .star.filled { color: var(--gold); }
.review-card .comment { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--ink); flex-grow: 1; }
.review-card .reviewer { margin-top: 18px; display: flex; align-items: center; gap: 10px; }
.review-card .reviewer .avatar {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 16%, white); color: var(--brand-900); font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.review-card .reviewer .avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-card .reviewer .name { font-size: 13px; font-weight: 700; color: var(--ink); }
.review-card .reviewer .course { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* ---------- school profile, Direction 4: "Cinematic" (local exploration —
   a full-bleed poster-style hero (real cover photo, or a rich gradient when
   none exists) with the school's name set large directly on the image,
   instead of a light hero + a separate small cover strip. Everything below
   it drops the card/tile fragmentation from Direction 3 in favor of plain
   generous-whitespace text and one real pull-quote — not deployed). ---------- */
.school-hero-cinematic {
  position: relative; min-height: 460px; display: flex; align-items: flex-end; overflow: hidden;
  background-image: var(--bg-image, linear-gradient(155deg, var(--brand-950), var(--brand-900) 55%, #6d28d9));
  background-size: cover; background-position: center; background-color: var(--brand-950);
}
.school-hero-cinematic-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(8,10,20,0.94) 0%, rgba(8,10,20,0.62) 42%, rgba(8,10,20,0.08) 100%);
}
.school-hero-cinematic-inner { position: relative; z-index: 1; padding: 80px 0 52px; color: #fff; }
.school-hero-cinematic-inner .byline {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.8);
}
.school-hero-cinematic-inner .byline .avatar {
  width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; flex-shrink: 0;
}
.school-hero-cinematic-inner .byline .avatar img { width: 100%; height: 100%; object-fit: cover; }
.school-hero-cinematic-inner h1 {
  margin-top: 16px; font-size: clamp(34px, 6vw, 60px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; color: #fff;
}
.school-hero-cinematic-inner .headline { margin-top: 12px; font-size: 17px; color: rgba(255,255,255,0.82); max-width: 560px; line-height: 1.55; }
.school-hero-cinematic-inner .meta-line { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.88); font-variant-numeric: tabular-nums; }
.school-hero-cinematic-inner .meta-line .dot { opacity: 0.45; }
.school-hero-cinematic-inner .meta-line a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.4); }
.school-hero-cinematic-inner .meta-line a:hover { text-decoration-color: #fff; }
.school-hero-cinematic-inner .actions { margin-top: 28px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.school-hero-cinematic-follow {
  border: none; cursor: pointer; background: #fff; color: var(--ink); font-size: 14px; font-weight: 800;
  padding: 12px 28px; border-radius: var(--radius-full); transition: background-color 0.2s ease, transform 0.2s ease;
}
.school-hero-cinematic-follow:hover { background: color-mix(in srgb, #fff 90%, var(--surface)); transform: translateY(-1px); }
.school-hero-cinematic-follow.is-following { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.school-hero-cinematic-edit {
  color: #fff; font-size: 13.5px; font-weight: 700; padding: 11px 22px; border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.4); text-decoration: none; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.school-hero-cinematic-edit:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.profile-about-cinematic { max-width: 680px; padding-top: 52px; }
.profile-bio-cinematic { font-size: 18px; line-height: 1.75; color: var(--ink); }
.profile-about-cinematic .creator-social { margin-top: 22px; }

.pull-quote-section { padding: 52px 0; }
.pull-quote { max-width: 680px; margin: 0 auto; padding: 0 24px; text-align: center; }
.pull-quote p {
  margin: 0; font-size: clamp(20px, 3vw, 26px); font-weight: 600; line-height: 1.5; color: var(--ink); letter-spacing: -0.01em;
}
.pull-quote cite { display: block; margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--muted); font-style: normal; }

/* ---------- creator "school" hero (profile.php) — a creator's public page
   reads as their own school (own name, own courses, own students) rather
   than a generic member-profile card. Flat like every other hero now
   (see .home-hero-v3/.home-discover-hero) instead of a dark photo banner —
   an uploaded school_cover_url shows as a rounded image strip above the
   content instead of a full-bleed background. ---------- */
.school-hero { background: var(--surface); padding: 44px 0 40px; text-align: center; }
.school-hero-cover { max-width: 1000px; margin: 0 auto 28px; padding: 0 24px; }
.school-hero-cover img { width: 100%; aspect-ratio: 3.4/1; object-fit: cover; border-radius: 14px; display: block; border: 1px solid var(--border); }
@media (max-width: 700px) { .school-hero-cover img { aspect-ratio: 2/1; } }
.school-hero-inner { text-align: center; }
.school-hero-byline {
  display: inline-flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--gold) 14%, white); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--border));
  padding: 6px 16px 6px 6px; border-radius: var(--radius-full); font-size: 13px; font-weight: 700; color: #92660a;
}
.school-hero-avatar {
  width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: var(--gold); color: #241900;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; flex-shrink: 0;
}
.school-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.school-hero-inner h1 { margin: 18px auto 0; font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; line-height: 1.15; max-width: 760px; color: var(--ink); }
.school-hero-headline { margin: 12px auto 0; max-width: 560px; font-size: 16px; color: var(--muted); line-height: 1.6; }
.school-hero-stats { display: flex; justify-content: center; gap: 36px; margin-top: 28px; }
.school-hero-stats .value { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.school-hero-stats .label { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.school-hero-stats a.stat-link { text-decoration: none; color: inherit; transition: opacity 0.15s ease; }
.school-hero-stats a.stat-link:hover { opacity: 0.7; }
.school-hero-stats a.stat-link:hover .label { text-decoration: underline; text-underline-offset: 2px; }
.school-hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.school-hero-follow-btn {
  display: inline-flex; align-items: center; border: none; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 700; padding: 11px 24px; border-radius: var(--radius-full);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.school-hero-follow-btn:hover { background: color-mix(in srgb, var(--ink) 85%, black); }
.school-hero-follow-btn.is-following { background: #fff; color: var(--ink); border: 1px solid var(--border-strong); padding: 10px 23px; }
.school-hero-follow-btn.is-following:hover { border-color: var(--danger); color: var(--danger); }
.school-hero-edit-btn {
  display: inline-block; background: #fff; border: 1px solid var(--border-strong);
  color: var(--ink); font-size: 13.5px; font-weight: 700; padding: 10px 22px; border-radius: var(--radius-full); text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.school-hero-edit-btn:hover { border-color: var(--ink); box-shadow: var(--shadow-pop-ink); }
@media (max-width: 560px) {
  .school-hero { padding: 44px 0 36px; }
  .school-hero-stats { gap: 24px; }
}

@media (max-width: 560px) {
  .profile-hero { padding: 28px 22px 24px; }
  .profile-hero-top { flex-wrap: wrap; }
  .profile-edit-btn { flex: 1 1 100%; text-align: center; }
}

.member-directory-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.member-directory-row:last-child { border-bottom: none; }
.member-directory-row .name { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.member-directory-row .sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.member-directory-row .role-tag { margin-left: auto; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--brand-800); background: rgba(11,0,255,0.09); padding: 3px 9px; border-radius: var(--radius-full); flex-shrink: 0; }

/* ---------- followers page (school-followers.php) ---------- */
.followers-back-link {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px; border-radius: var(--radius-full);
  background: #fff; border: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--muted);
  box-shadow: 0 1px 2px rgba(20,24,27,0.04); text-decoration: none; transition: border-color 0.15s ease, color 0.15s ease;
}
.followers-back-link:hover { border-color: var(--border-strong); color: var(--ink); }
.followers-back-link .icon {
  width: 22px; height: 22px; border-radius: var(--radius-full); background: var(--surface);
  display: flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0;
}
.followers-back-link .icon svg { width: 13px; height: 13px; }

.followers-identity { margin-top: 30px; display: flex; align-items: center; gap: 16px; }
.followers-identity-avatar {
  width: 60px; height: 60px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, white), var(--surface));
  color: var(--brand-900); font-weight: 800; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold);
}
.followers-identity-avatar img { width: 100%; height: 100%; object-fit: cover; }
.followers-identity h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.followers-count-badge {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--gold) 16%, white); border: 1px solid color-mix(in srgb, var(--gold) 32%, var(--border));
  font-size: 12.5px; font-weight: 700; color: #7a5206;
}
.followers-count-badge .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--gold-dark); }

.followers-section-label {
  margin-top: 40px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase;
}

.followers-panel {
  margin-top: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(20,24,27,0.04), 0 8px 24px -14px rgba(20,24,27,0.14); overflow: hidden;
}
.followers-row { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.followers-row:last-child { border-bottom: none; }
.followers-row-avatar {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--tint, var(--brand-800)), var(--brand-950));
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--border);
  color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center;
}
.followers-row-avatar img { width: 100%; height: 100%; object-fit: cover; }
.followers-row-name { flex-grow: 1; min-width: 0; font-size: 15.5px; font-weight: 800; color: var(--ink); }
.followers-row-since {
  flex-shrink: 0; padding: 5px 13px; border-radius: var(--radius-full); background: var(--surface);
  font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
@media (max-width: 560px) {
  .followers-identity { gap: 12px; }
  .followers-identity-avatar { width: 52px; height: 52px; font-size: 19px; }
  .followers-identity h1 { font-size: 21px; }
  .followers-row { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .followers-row-since { flex-basis: calc(100% - 64px); margin-left: 64px; width: fit-content; box-sizing: border-box; }
}

/* ---------- study group chat ---------- */
.chat-message { display: flex; align-items: flex-end; gap: 8px; max-width: 78%; }
.chat-message.mine { align-self: flex-end; flex-direction: row-reverse; max-width: 78%; }
.chat-bubble { background: var(--surface); border-radius: 14px 14px 14px 4px; padding: 9px 13px; min-width: 0; }
.chat-message.mine .chat-bubble { background: var(--brand-900); color: #fff; border-radius: 14px 14px 4px 14px; }
.chat-author { font-size: 11.5px; font-weight: 700; color: var(--brand-800); margin-bottom: 2px; }
.chat-text { font-size: 13.5px; line-height: 1.5; word-wrap: break-word; white-space: pre-wrap; }
.chat-time { font-size: 10px; margin-top: 4px; opacity: 0.6; }

/* ---------- header notifications + messages ---------- */
.site-icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  color: #fff; cursor: pointer; text-decoration: none; flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.site-icon-btn:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.3); }
.site-icon-btn svg { width: 17px; height: 17px; }
.site-notif-dot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: #e0245e; border: 2px solid var(--brand-950, var(--ink)); }
.site-notif-menu { position: relative; }
.site-notif-dropdown { width: 320px; padding: 4px 0; }
/* Below the 900px breakpoint, .nav-right (bell + hamburger) sits pushed to
   the right edge of the header by the container's space-between, with the
   bell immediately ahead of the ~44px-wide hamburger — not enough room on
   EITHER side of the bell for a 320px panel anchored to it (right:0
   overflows left, left:0 overflows right, tried and confirmed both).
   Anchored to the viewport instead of the button fixes that regardless of
   exactly where the bell sits. */
@media (max-width: 899px) {
  .site-notif-dropdown { position: fixed; top: 76px; left: 16px; right: 16px; width: auto; }
}
.site-notif-dropdown .account-dropdown-head { padding: 10px 14px 10px; }
.site-notif-mark-read { background: none; border: none; color: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; }
.site-notif-row { display: block; padding: 10px 14px; border-radius: 0; text-decoration: none; }
.site-notif-row:hover { background: var(--surface); }
.site-notif-row.unread { background: rgba(11,0,255,0.05); }
.site-notif-row p { font-size: 13px; color: var(--ink); line-height: 1.5; }
.site-notif-row span { font-size: 11px; color: var(--muted); display: block; margin-top: 3px; }
.site-notif-see-all { display: block; text-align: center; padding: 10px; font-size: 12.5px; font-weight: 700; color: var(--accent); text-decoration: none; border-top: 1px solid var(--border); margin-top: 4px; }
.site-notif-see-all:hover { background: var(--surface); }

/* ---------- community premium components ---------- */
.avatar-stack { display: flex; align-items: center; }
.avatar-stack .avatar-circle { border: 2.5px solid #fff; margin-left: -10px; box-shadow: 0 1px 3px rgba(20,24,27,0.15); }
.avatar-stack .avatar-circle:first-child { margin-left: 0; }
.avatar-stack-more { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-950); border: 2.5px solid #fff; margin-left: -10px; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; color: #fff; flex-shrink: 0; }

.leaderboard-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; text-decoration: none; color: inherit; transition: background-color 0.15s ease; }
.leaderboard-row:hover { background: var(--surface); }
.leaderboard-rank { width: 22px; text-align: center; font-size: 14px; font-weight: 800; color: var(--muted); flex-shrink: 0; }
.leaderboard-name { font-weight: 700; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-streak { font-size: 11px; color: var(--muted); margin-top: 1px; }
.leaderboard-xp { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--brand-800); background: rgba(11,0,255,0.08); padding: 3px 9px; border-radius: var(--radius-full); flex-shrink: 0; white-space: nowrap; }

.trending-strip { background: linear-gradient(160deg, #fff8e6 0%, #fff 65%); border: 2px solid rgba(245,179,1,0.4); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 20px; }
.trending-strip-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: #8a5c05; }
.trending-strip-head .count { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--gold-dark); background: rgba(245,179,1,0.16); padding: 3px 10px; border-radius: var(--radius-full); }
.trending-post-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(245,179,1,0.28); text-decoration: none; color: inherit; }
.trending-post-row:first-of-type { border-top: none; padding-top: 14px; }
.trending-post-rank { font-size: 20px; font-weight: 800; color: rgba(180,131,4,0.35); width: 26px; flex-shrink: 0; text-align: center; font-variant-numeric: tabular-nums; }
.trending-post-body { flex: 1; min-width: 0; }
.trending-post-text { font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trending-post-meta { font-size: 11px; color: #8a5c05; margin-top: 4px; font-weight: 600; }

.community-activity-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; color: #fff; background: rgba(0,0,0,0.35); backdrop-filter: blur(4px); padding: 4px 10px; border-radius: var(--radius-full); position: absolute; top: 12px; right: 12px; z-index: 1; }

/* ---------- share button + popover ---------- */
.share-menu-wrap { position: relative; display: inline-block; }
.btn-share {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: #fff;
  font: inherit; font-size: 13.5px; font-weight: 700; padding: 10px 20px 10px 16px; border-radius: var(--radius-full);
  cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-share:hover, .btn-share[aria-expanded="true"] { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); transform: translateY(-1px); }
.btn-share svg { width: 16px; height: 16px; flex-shrink: 0; }
/* Explicit light variant for a white-card/dashboard context, not a dark hero. */
.btn-share-light { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-share-light:hover, .btn-share-light[aria-expanded="true"] { background: var(--border); border-color: var(--border-strong); }

/* position:fixed (top/left set by JS on open) rather than absolute — the
   button sits inside .course-hero, which needs overflow:hidden for its glow
   effect, so an absolutely-positioned popover would get its bottom edge
   clipped by that boundary instead of floating freely above the page. */
.share-menu {
  position: fixed; z-index: 300; width: 264px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: 0 20px 44px -18px rgba(16,24,27,0.35); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.share-menu:not([hidden]) { opacity: 1; visibility: visible; transform: translateY(0); }
.share-menu-head { padding: 8px 10px 10px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.share-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: none; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; transition: background-color 0.15s ease; }
.share-row:hover { background: var(--surface); }
.share-row-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.share-row-icon svg { width: 16px; height: 16px; }

.share-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 12px 20px; border-radius: var(--radius-full); box-shadow: 0 12px 30px -10px rgba(0,0,0,0.4);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .btn-share, .share-menu, .share-row, .share-toast { transition: none; } }


/* ====================================================================
   Blue and lime skin (from obinacademy.com). Everything above already follows
   the --brand-* / --accent tokens; this block only adds the finishing touches
   tokens can't express: lime call-to-action buttons, a flat blue header, a deep
   navy footer, the blue homepage hero and the price tag on school cards.
   ==================================================================== */
.btn-gold { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.btn-gold:hover { background: var(--lime-dark); border-color: var(--lime-dark); box-shadow: 0 8px 0 0 color-mix(in srgb, var(--lime) 55%, black 15%); }
.hero-search-v3 button { background: var(--brand-800); color: #fff; }
.hero-search-v3 button:hover { background: var(--brand-900); }

.site-header { background: var(--brand-800); border-bottom-color: rgba(255,255,255,0.10); }
.logo-mark { background: var(--lime); color: var(--lime-ink); box-shadow: none; }
.logo-text .accent { color: var(--lime); }
.logo.dark .logo-mark { background: var(--brand-800); color: #fff; }
.logo.dark .logo-text .accent { color: var(--brand-800); }

.site-footer { background: var(--brand-950); }
.site-footer::before { background: linear-gradient(to right, var(--brand-700), var(--lime), var(--brand-600), var(--brand-700)); }
.footer-glow-a { background: var(--brand-700); opacity: 0.22; }
.footer-glow-b { background: var(--lime); opacity: 0.07; }

/* Homepage: the hero, search, numbers and topic chips sit on one electric-blue block. */
.home-hero-blue {
  background: radial-gradient(1200px 420px at 85% -10%, var(--brand-700) 0%, transparent 60%), var(--brand-800);
  color: #fff; padding-bottom: 34px;
}
.home-hero-blue .home-discover-hero { padding-top: 48px; }
.home-hero-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.30);
}
.home-hero-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.home-hero-blue .home-discover-hero h1 { color: #fff; }
.home-hero-blue .home-discover-hero h1 em { font-style: normal; color: var(--lime); }
.home-hero-blue .home-discover-hero .sub { color: rgba(255,255,255,0.80); }
.home-hero-blue .home-discover-hero .sub a { color: var(--lime); font-weight: 700; }
.home-hero-blue .hero-search-v3 { border-radius: 14px; box-shadow: 0 10px 34px -14px rgba(0,0,0,0.5); }
.home-hero-blue .home-discover-stats { color: rgba(255,255,255,0.76); }
.home-hero-blue .home-discover-stats strong { color: #fff; }
.home-hero-blue .home-discover-chips { margin-top: 24px; }
.home-hero-blue .home-discover-chip, .home-hero-blue .home-discover-chip-filter {
  background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.28); font-weight: 600;
}
.home-hero-blue .home-discover-chip:hover, .home-hero-blue .home-discover-chip-filter:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.home-hero-blue .home-discover-chip.active { background: var(--lime); color: var(--lime-ink); border-color: transparent; }

/* School cards: round logo and a dark price tag on the banner (price leaves the meta row). */
.home-discover-card .avatar { border-radius: 50%; }
.home-discover-card .thumb .price-tag {
  position: absolute; top: 10px; right: 10px; z-index: 2; padding: 3px 9px; border-radius: 6px;
  background: #1a1a1a; color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.home-discover-card .school-meta > span.price { display: none; }
.home-pager .on { background: var(--brand-800); }

/* Invitation to open a school, above the footer on the homepage. */
.home-band {
  max-width: 1100px; margin: 8px auto 0; padding: 30px; border-radius: 18px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--brand-800); color: #fff;
}
.home-band h2 { margin: 0; max-width: 24ch; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.home-band h2 em { font-style: normal; color: var(--lime); }
.home-band p { margin: 8px 0 0; max-width: 50ch; color: rgba(255,255,255,0.8); }
@media (max-width: 1160px) { .home-band { margin-left: 24px; margin-right: 24px; } }
@media (max-width: 560px) { .home-band { padding: 22px; margin-left: 16px; margin-right: 16px; } .home-band h2 { font-size: 22px; } }

/* On the dark dashboard sidebar the (otherwise dark-surface) logo uses the lime accent. */
.dash .logo.dark .logo-text .accent { color: var(--lime); }
.dash .logo.dark .logo-mark { background: var(--lime); color: var(--lime-ink); }

.home-pager a[rel="prev"], .home-pager a[rel="next"] { font-weight: 700; color: var(--ink); }
.home-pager a[rel="prev"]:hover, .home-pager a[rel="next"]:hover { background: var(--brand-800); color: #fff; }

/* Slim course bar (course pages): back, title, log in — in place of the full site header. */
.course-bar { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.course-bar-in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.course-bar-back { width: 36px; height: 36px; border-radius: 12px; background: var(--surface); color: var(--ink); display: grid; place-items: center; flex: none; transition: background .15s; }
.course-bar-back:hover { background: var(--brand-tint, #eeeeff); color: var(--brand-800); }
.course-bar-back svg { width: 18px; height: 18px; }
.course-bar-title { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-bar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.course-bar-link { font-weight: 600; font-size: 14px; padding: 8px 10px; color: var(--ink-2, #44445a); }
.course-bar-link:hover { color: var(--brand-800); }
.course-bar-cta { background: var(--brand-800); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 12px; }
.course-bar-cta:hover { background: var(--brand-900); color: #fff; }
.course-bar-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); font-weight: 800; display: grid; place-items: center; }
@media (max-width: 560px) { .course-bar-link { display: none; } .course-bar-title { font-size: 14px; } }

.course-bar a { text-decoration: none; }

/* Footer: the slim white bar from obinacademy.com (logo, three links, copyright). Replaces the blue footer above. */
.site-footer-minimal { background: #fff; border-top: 1px solid var(--border); padding: 20px 0; margin-top: 40px; }
.site-footer-minimal .footer-minimal-inner { gap: 16px 28px; }
.site-footer-minimal .logo { font-size: 17px; }
.site-footer-minimal .logo-mark { width: 30px; height: 30px; border-radius: 9px; }
.site-footer-minimal .logo-mark svg { width: 17px; height: 17px; }
.site-footer-minimal .footer-minimal-links { gap: 8px 22px; }
.site-footer-minimal .footer-minimal-links a { font-size: 13px; font-weight: 600; color: var(--muted, #7a7a90); }
.site-footer-minimal .footer-minimal-links a:hover { color: var(--brand-800); }
.site-footer-minimal .footer-minimal-copy { margin: 0; font-size: 12px; color: #a3a3b5; }

/* "Install the app": the links stay hidden until the browser says the site can be installed; iPhone gets a how-to sheet. */
[data-install-app][hidden] { display: none !important; }
.install-sheet { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: rgba(6,0,40,0.6); }
.install-sheet-card { width: 100%; max-width: 380px; background: #fff; color: var(--ink); border-radius: 20px; padding: 26px 22px 22px; text-align: center; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.5); }
.install-sheet-card img { border-radius: 14px; display: block; margin: 0 auto 14px; }
.install-sheet-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.install-sheet-card p { margin: 0 0 18px; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.install-sheet-card .btn { width: 100%; justify-content: center; }

/* "Install Obin Academy" card: slides down from the top of the screen on phones and tablets. */
.install-pop {
  position: fixed; z-index: 260; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top, 0px));
  max-width: 440px; margin: 0 auto; padding: 16px; background: #fff; color: var(--ink);
  border: 1px solid var(--border); border-radius: 22px;
  box-shadow: 0 24px 60px -16px rgba(6,0,60,0.45), 0 4px 14px -4px rgba(6,0,60,0.18);
  transform: translateY(calc(-100% - 30px)); opacity: 0; transition: transform .45s cubic-bezier(.19,1,.22,1), opacity .3s ease;
}
.install-pop.show { transform: translateY(0); opacity: 1; }
.install-pop-top { display: flex; align-items: center; gap: 14px; }
.install-pop-top img { border-radius: 13px; flex: none; box-shadow: 0 8px 18px -8px rgba(11,0,255,.6); }
.install-pop-top strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.install-pop-top span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.install-pop-actions { display: flex; gap: 10px; margin-top: 14px; }
.install-pop-go { flex: 1; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 15px; padding: 13px 18px; border-radius: 999px; background: var(--brand-800); color: #fff; }
.install-pop-go:active { transform: scale(.98); }
.install-pop-later { border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; padding: 13px 18px; border-radius: 999px; background: var(--surface); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .install-pop { transition: opacity .2s ease; transform: none; } }

/* Header link to the campuses (sits on the blue header) */
.site-header .nav-actions a.nav-campuses { color: #fff; font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); }
.site-header .nav-actions a.nav-campuses:hover, .site-header .nav-actions a.nav-campuses.active { background: rgba(255,255,255,.14); color: #fff; }
@media (max-width: 760px) { .site-header .nav-actions a.nav-campuses { display: none; } }
