/* ============================================================================
   LittleSparks Academy — LIVE CLASSES
   Shared design system for the /liveclasses sub-site.
   Self-contained & isolated from the main site (own tokens, components, scope).
   Brand: Baloo 2 (display) + Nunito (body), LittleSparks palette + a "live" red.
   Layout/IA inspired by instrucko.com, visuals native to littlesparks.academy.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. Design tokens
   ---------------------------------------------------------------------------- */
:root {
  /* Brand palette (matches littlesparks.academy) */
  --ink: #1d2b4f;
  --ink-soft: #2b3a5e;
  --muted: #5a6c88;
  --muted-2: #7d8aa3;
  --line: #e7edf7;
  --line-2: #eef3fb;

  --brand: #3a7bff;
  --brand-deep: #2e63d6;
  --brand-ink: #0b315e;
  --teal: #005980;

  --sky: #e8f6ff;
  --sky-light: #f0faff;
  --sun: #ffd05a;
  --sun-light: #fff3d6;
  --coral: #ff7a7a;
  --coral-light: #ffe8e8;
  --mint: #7ee0c3;
  --mint-light: #e0fff4;
  --purple: #a78bfa;
  --purple-light: #f3f0ff;

  /* The "live" accent — a confident, warm red used for LIVE state */
  --live: #ff4d6d;
  --live-deep: #e63956;

  /* Course gradients (from the real platform catalog) */
  --grad-maths-jr: linear-gradient(135deg, #ff6b35, #ffad00);
  --grad-maths-sr: linear-gradient(135deg, #0077b6, #00b4d8);
  --grad-english: linear-gradient(135deg, #7b2fbe, #f15bb5);
  --grad-brand:   linear-gradient(135deg, #3a7bff, #6aa3ff);
  --grad-mint:    linear-gradient(135deg, #11998e, #38ef7d);
  --grad-sun:     linear-gradient(135deg, #f7971e, #ffd200);

  --card: #ffffff;
  --bg: #ffffff;

  --shadow-sm: 0 6px 18px rgba(26, 53, 102, 0.08);
  --shadow: 0 18px 45px rgba(26, 53, 102, 0.12);
  --shadow-lg: 0 30px 70px rgba(26, 53, 102, 0.18);
  --shadow-brand: 0 16px 34px rgba(58, 123, 255, 0.28);
  --shadow-live: 0 16px 34px rgba(255, 77, 109, 0.30);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-md: 22px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --container: 1200px;
  --container-narrow: 920px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ----------------------------------------------------------------------------
   2. Reset & base
   ---------------------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body.lc {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 88% -8%, #eaf2ff 0%, transparent 60%),
    radial-gradient(900px 480px at 6% 4%, #fff4e6 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.lc a { text-decoration: none; }
/* Links inherit text colour — but NOT buttons: a .btn must keep its own .btn-*
   colour. Without :not(.btn), ".lc a" (specificity 0,1,1) outranks ".btn-white"
   etc. (0,1,0) and forces every <a class="btn"> to inherit its section colour,
   making btn-white white-on-white and btn-dark dark-on-dark (invisible text). */
.lc a:not(.btn) { color: inherit; }
.lc img, .lc svg { max-width: 100%; display: block; }
.lc button { font-family: inherit; cursor: pointer; }
.lc ul { list-style: none; }

h1, h2, h3, h4, .display {
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.lc :focus-visible { outline: 3px solid rgba(58,123,255,.45); outline-offset: 2px; border-radius: 6px; }

/* ----------------------------------------------------------------------------
   3. Layout helpers
   ---------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: var(--container-narrow); }

.section { padding: 76px 0; position: relative; }
.section-sm { padding: 52px 0; }
.section-tint { background: linear-gradient(180deg, #f3f8ff, #eaf3ff); }
.section-cream { background: linear-gradient(180deg, #fff8ee, #fff3df); }
.section-ink { background: radial-gradient(900px 500px at 80% -10%, #21356a 0%, transparent 60%), linear-gradient(160deg, #16213f, #0e1730); color: #fff; }
.section-ink h1, .section-ink h2, .section-ink h3, .section-ink h4 { color: #fff; }

.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}.mt-48{margin-top:48px}
.mb-8{margin-bottom:8px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}.mb-32{margin-bottom:32px}
.maxw-720{max-width:720px}.maxw-640{max-width:640px}.mx-auto{margin-left:auto;margin-right:auto}

/* ----------------------------------------------------------------------------
   4. Eyebrow / section heading
   ---------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-deep);
  background: #eaf1ff; border: 1px solid #d8e6ff;
  padding: 7px 14px; border-radius: 999px;
}
.section-ink .eyebrow { color: #cfe0ff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 16px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-ink .section-head p { color: rgba(255,255,255,.78); }
.lead { font-size: 1.12rem; color: var(--muted); }
.text-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-live { color: var(--live); }
.text-muted { color: var(--muted); }

/* ----------------------------------------------------------------------------
   5. Buttons
   ---------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 800; font-size: 1rem; line-height: 1;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 17px 34px; font-size: 1.06rem; }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { box-shadow: 0 22px 44px rgba(58,123,255,.36); }
.btn-live { background: linear-gradient(135deg, #ff4d6d, #ff7a7a); color: #fff; box-shadow: var(--shadow-live); }
.btn-live:hover { box-shadow: 0 22px 44px rgba(255,77,109,.4); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #11203f; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #cdd9ee; }
.btn-outline { background: transparent; color: var(--brand-deep); border-color: #b9d0ff; }
.btn-outline:hover { background: #eef4ff; }
.btn-white { background: #fff; color: var(--brand-deep); box-shadow: var(--shadow); }
.btn-on-ink { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-on-ink:hover { background: rgba(255,255,255,.2); }

/* ----------------------------------------------------------------------------
   6. Pills / badges / chips
   ---------------------------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .85rem;
  padding: 6px 13px; border-radius: 999px; background: #eef3fb; color: var(--muted); border: 1px solid var(--line); }
.pill-sun { background: var(--sun-light); color: #9a6b00; border-color: #ffe2a6; }
.pill-mint { background: var(--mint-light); color: #0c7a5b; border-color: #b7f0dd; }
.pill-coral { background: var(--coral-light); color: #c23a3a; border-color: #ffcccc; }
.pill-purple { background: var(--purple-light); color: #6c45d9; border-color: #e0d6ff; }
.pill-brand { background: #eaf1ff; color: var(--brand-deep); border-color: #d3e3ff; }

.badge-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--live); padding: 5px 11px 5px 9px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(255,77,109,.35);
}
.badge-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: lc-pulse 1.4s infinite; }
@keyframes lc-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

.star-row { color: #ffb020; letter-spacing: 2px; font-size: 1rem; }

/* ----------------------------------------------------------------------------
   7. Header / navigation
   ---------------------------------------------------------------------------- */
.lc-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(58,123,255,.10);
}
.lc-nav { display: flex; align-items: center; gap: 14px; height: 72px; flex-wrap: nowrap; }
.lc-brand { display: flex; align-items: center; gap: 11px; font-family: "Baloo 2"; font-weight: 800; font-size: 1.32rem; color: var(--ink); }
.lc-brand .mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-size: 1.25rem; box-shadow: var(--shadow-brand);
}
.lc-brand small { display: block; font-family: "Nunito"; font-weight: 700; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--live); margin-top: -3px; }
.lc-navlinks { display: flex; align-items: center; gap: 2px; margin-left: 8px; flex-wrap: nowrap; }
.lc-navlinks a { font-weight: 700; color: var(--ink-soft); padding: 10px 11px; border-radius: 12px; transition: background .15s, color .15s; font-size: .95rem; white-space: nowrap; }
.lc-navlinks a:hover { background: #eef4ff; color: var(--brand-deep); }
.lc-navlinks a.active { color: var(--brand-deep); background: #eaf1ff; }
.lc-nav-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
/* Floating helper widgets hidden for now (per request) — Explore site-map dock,
   the "On this page" index, and the "Page guide" video popup. Reversible: delete
   this block to bring them back. */
.lc-dock, .lc-explore,
.lc-toc, .lc-toc-scrim,
.lc-guide-btn, .lc-guide-ov { display: none !important; }
.lc-link-signin { font-weight: 800; color: var(--ink); padding: 10px 12px; }
.lc-burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.lc-burger span { display: block; width: 20px; height: 2.4px; background: var(--ink); border-radius: 2px; margin: 4px auto; transition: .2s; }
.lc-mobile { display: none; }

/* Announcement strip */
.lc-announce { background: var(--ink); color: #fff; text-align: center; font-weight: 700; font-size: .9rem; padding: 8px 16px; }
.lc-announce a { color: var(--sun); text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------------------------------
   8. Hero
   ---------------------------------------------------------------------------- */
.hero { position: relative; padding: 70px 0 60px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); margin-bottom: 18px; }
.hero p.lead { font-size: 1.18rem; max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: var(--muted); font-weight: 700; }
.hero-trust b { color: var(--ink); }

/* Hero visual: a faux live-class card */
.hero-visual { position: relative; }
.classcard {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden; transform: rotate(-1.2deg);
}
.classcard .stage { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, #20407e, #2e63d6); display: grid; place-items: center; }
.classcard .stage .teacher-bubble { width: 64%; height: 70%; border-radius: 18px; background: linear-gradient(160deg, #4f86ff, #8db4ff); box-shadow: inset 0 0 0 4px rgba(255,255,255,.18); display: grid; place-items: center; font-size: 3.4rem; }
.classcard .stage .tiles { position: absolute; bottom: 12px; right: 12px; display: flex; gap: 8px; }
.classcard .stage .tiles i { width: 46px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.9); display: grid; place-items: center; font-style: normal; font-size: 1.2rem; box-shadow: var(--shadow-sm); }
.classcard .stage .badge-live { position: absolute; top: 12px; left: 12px; }
.classcard .stage .rec { position: absolute; top: 14px; right: 14px; color: #fff; font-weight: 800; font-size: .8rem; display: flex; align-items: center; gap: 6px; }
.classcard .stage .rec b { width: 9px; height: 9px; border-radius: 50%; background: var(--live); animation: lc-pulse 1.4s infinite; }
.classcard .meta { padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.classcard .meta .av { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-english); display: grid; place-items: center; color: #fff; font-weight: 800; }
.classcard .meta h4 { font-size: 1.05rem; margin-bottom: 2px; }
.classcard .meta span { color: var(--muted); font-size: .88rem; font-weight: 600; }

.hero-float { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 12px 15px; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .9rem; animation: lc-bob 5s ease-in-out infinite; }
.hero-float .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 1.2rem; }
.hero-float small { display: block; color: var(--muted); font-weight: 700; font-size: .76rem; }
.hero-float.one { top: -14px; left: -26px; }
.hero-float.two { bottom: 28px; left: -40px; animation-delay: 1.5s; }
@keyframes lc-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Floating background doodles */
.doodles { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.doodle { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; animation: lc-floaty 18s ease-in-out infinite; }
.doodle.a { width: 220px; height: 220px; background: radial-gradient(circle, rgba(255,208,90,.55), transparent 65%); top: -50px; left: 4%; }
.doodle.b { width: 280px; height: 280px; background: radial-gradient(circle, rgba(122,214,255,.5), transparent 65%); top: 6%; right: -70px; animation-delay: 3s; }
.doodle.c { width: 240px; height: 240px; background: radial-gradient(circle, rgba(167,139,250,.4), transparent 65%); bottom: -80px; left: 30%; animation-delay: 6s; }
@keyframes lc-floaty { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-14px,-22px) scale(1.06); } }
.hero, .section { position: relative; z-index: 1; }

/* ----------------------------------------------------------------------------
   9. Cards (generic)
   ---------------------------------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 26px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-pad-lg { padding: 32px; }

/* Feature card */
.feature .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.feature h3 { font-size: 1.22rem; margin-bottom: 8px; }
.feature p { color: var(--muted); }

.ic-brand { background: #eaf1ff; } .ic-sun { background: var(--sun-light); } .ic-mint { background: var(--mint-light); }
.ic-coral { background: var(--coral-light); } .ic-purple { background: var(--purple-light); } .ic-sky { background: var(--sky); }

/* Course card */
.course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-card .head { padding: 22px; min-height: 124px; color: #fff; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.course-card .head .emoji { font-size: 2.5rem; }
.course-card .head .age { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); color: #fff; font-weight: 800; font-size: .78rem; padding: 4px 11px; border-radius: 999px; backdrop-filter: blur(4px); }
.course-card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.course-card .body h3 { font-size: 1.3rem; margin-bottom: 6px; }
.course-card .body .subj { color: var(--brand-deep); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.course-card .body p { color: var(--muted); font-size: .96rem; flex: 1; }
.course-card .body .meta { display: flex; gap: 14px; margin: 16px 0; color: var(--muted); font-weight: 700; font-size: .86rem; }
.ghead-maths-jr { background: var(--grad-maths-jr); } .ghead-maths-sr { background: var(--grad-maths-sr); }
.ghead-english { background: var(--grad-english); } .ghead-brand { background: var(--grad-brand); }
.ghead-mint { background: var(--grad-mint); } .ghead-sun { background: var(--grad-sun); }

/* Step card */
.step { position: relative; padding-top: 12px; }
.step .num { width: 54px; height: 54px; border-radius: 16px; background: var(--grad-brand); color: #fff; font-family: "Baloo 2"; font-weight: 800; font-size: 1.5rem; display: grid; place-items: center; box-shadow: var(--shadow-brand); margin-bottom: 16px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Teacher card */
.teacher-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.teacher-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.teacher-card .photo { aspect-ratio: 1/1; display: grid; place-items: center; font-size: 4rem; color: #fff; position: relative; }
.teacher-card .photo .flag { position: absolute; bottom: 12px; right: 12px; background: #fff; border-radius: 999px; padding: 4px 10px; font-size: .8rem; font-weight: 800; color: var(--ink); box-shadow: var(--shadow-sm); }
.teacher-card .info { padding: 18px 20px 22px; }
.teacher-card .info h3 { font-size: 1.18rem; margin-bottom: 3px; }
.teacher-card .info .role { color: var(--brand-deep); font-weight: 800; font-size: .88rem; margin-bottom: 10px; }
.teacher-card .info .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* Testimonial card */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.quote .stars { color: #ffb020; letter-spacing: 2px; margin-bottom: 12px; }
.quote p { font-size: 1.04rem; color: var(--ink-soft); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote .who .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; }
.quote .who b { display: block; }
.quote .who span { color: var(--muted); font-size: .88rem; }

/* Stat */
.stat { text-align: center; }
.stat .n { font-family: "Baloo 2"; font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { color: var(--muted); font-weight: 700; margin-top: 6px; }
.section-ink .stat .n { background: linear-gradient(135deg,#ffd05a,#ff9d6a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-ink .stat .l { color: rgba(255,255,255,.75); }

/* Pricing card */
.price-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; }
.price-card.popular { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-6px); }
.price-card .tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad-brand); color: #fff; font-weight: 800; font-size: .8rem; padding: 6px 16px; border-radius: 999px; box-shadow: var(--shadow-brand); }
.price-card h3 { font-size: 1.3rem; }
.price-card .price { font-family: "Baloo 2"; font-weight: 800; font-size: 2.6rem; color: var(--ink); margin: 10px 0 2px; }
.price-card .price small { font-size: 1rem; color: var(--muted); font-weight: 700; }
.price-card .per { color: var(--muted); font-weight: 700; margin-bottom: 18px; }
.price-card ul.feat { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 22px; flex: 1; }
.price-card ul.feat li { display: flex; gap: 10px; color: var(--ink-soft); }
.price-card ul.feat li::before { content: "✓"; color: #16a34a; font-weight: 900; }
.price-card ul.feat li.off { color: var(--muted-2); }
.price-card ul.feat li.off::before { content: "–"; color: var(--muted-2); }

/* ----------------------------------------------------------------------------
   10. Logo / trust marquee
   ---------------------------------------------------------------------------- */
.trustbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; }
.trustbar .item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 800; }
.trustbar .item .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #eef4ff; }

/* ----------------------------------------------------------------------------
   11. CTA band
   ---------------------------------------------------------------------------- */
.cta-band { background: radial-gradient(700px 300px at 15% 0%, rgba(255,255,255,.16), transparent 60%), var(--grad-brand); border-radius: var(--radius-xl); padding: 52px; color: #fff; text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 620px; margin: 0 auto 26px; }
.cta-band .hero-cta { justify-content: center; }

/* ----------------------------------------------------------------------------
   12. FAQ accordion
   ---------------------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 22px; font-weight: 800; font-size: 1.05rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .chev { flex: none; width: 28px; height: 28px; border-radius: 8px; background: #eef4ff; color: var(--brand-deep); display: grid; place-items: center; font-weight: 900; transition: transform .2s; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s var(--ease); }
.faq-a .inner { padding: 0 22px 20px; color: var(--muted); }

/* ----------------------------------------------------------------------------
   13. Tabs / filters
   ---------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.filter-btn { background: #fff; border: 1.5px solid var(--line); color: var(--ink-soft); font-weight: 800; padding: 10px 18px; border-radius: 999px; transition: .15s; }
.filter-btn:hover { border-color: #cdd9ee; }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ----------------------------------------------------------------------------
   14. Forms
   ---------------------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 800; margin-bottom: 7px; color: var(--ink); font-size: .95rem; }
.field .hint { color: var(--muted); font-weight: 600; font-size: .85rem; margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px; transition: border .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(58,123,255,.14); }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a6c88' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }

/* choice chips (radio-style) */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 16px; font-weight: 800; color: var(--ink-soft); cursor: pointer; transition: .15s; display: inline-flex; align-items: center; gap: 8px; }
.choice:hover { border-color: #cdd9ee; }
.choice.selected { border-color: var(--brand); background: #eef4ff; color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(58,123,255,.12); }

/* booking stepper */
.stepper { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 34px; flex-wrap: wrap; }
.stepper .s { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 800; }
.stepper .s .b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #eef3fb; color: var(--muted); border: 2px solid var(--line); font-size: .95rem; }
.stepper .s.done .b { background: #16a34a; color: #fff; border-color: #16a34a; }
.stepper .s.active .b { background: var(--brand); color: #fff; border-color: var(--brand); }
.stepper .s.active { color: var(--ink); }
.stepper .bar { width: 46px; height: 2.5px; background: var(--line); margin: 0 12px; border-radius: 2px; }
.step-panel { display: none; }
.step-panel.active { display: block; animation: lc-fade .3s var(--ease); }
@keyframes lc-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* time slot grid */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 10px; }
.slot { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; text-align: center; font-weight: 800; color: var(--ink-soft); cursor: pointer; transition: .15s; }
.slot:hover { border-color: #cdd9ee; }
.slot.selected { border-color: var(--brand); background: #eef4ff; color: var(--brand-deep); }
.slot.taken { opacity: .4; pointer-events: none; text-decoration: line-through; }

/* ----------------------------------------------------------------------------
   15. Content blocks
   ---------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checklist { display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li .tick { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--mint-light); color: #0c7a5b; display: grid; place-items: center; font-weight: 900; }
.checklist li b { display: block; }
.checklist li span { color: var(--muted); }

.media-mock { border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; background: #fff; }
.media-mock .bar { height: 38px; background: #f4f7fc; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.media-mock .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.media-mock .bar i.r { background: #ff6058; } .media-mock .bar i.y { background: #ffbd2e; } .media-mock .bar i.g { background: #28c840; }
.media-mock .body { padding: 18px; }

/* Curriculum / syllabus list */
.syllabus { display: flex; flex-direction: column; gap: 12px; }
.syllabus .unit { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start; }
.syllabus .unit .n { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #eef4ff; color: var(--brand-deep); display: grid; place-items: center; font-weight: 800; font-family: "Baloo 2"; }
.syllabus .unit h4 { font-size: 1.06rem; margin-bottom: 4px; }
.syllabus .unit p { color: var(--muted); font-size: .94rem; }

/* ----------------------------------------------------------------------------
   16. Footer
   ---------------------------------------------------------------------------- */
.lc-footer { margin-top: 30px; background: linear-gradient(180deg, #0f1c33, #0b1528); color: rgba(255,255,255,.78); }
.lc-footer .container { padding-top: 56px; padding-bottom: 28px; }
.lc-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 36px; }
.lc-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; letter-spacing: .02em; }
.lc-footer .lc-brand { color: #fff; margin-bottom: 14px; }
.lc-footer p { color: rgba(255,255,255,.6); }
.lc-footer ul { display: flex; flex-direction: column; gap: 11px; }
.lc-footer ul a { color: rgba(255,255,255,.72); font-weight: 600; transition: color .15s; }
.lc-footer ul a:hover { color: #fff; }
.lc-foot-sub { display: flex; gap: 8px; margin-top: 12px; }
.lc-foot-sub input { flex: 1; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; border-radius: 12px; padding: 12px 14px; font-family: inherit; }
.lc-foot-sub input::placeholder { color: rgba(255,255,255,.5); }
.lc-socials { display: flex; gap: 10px; margin-top: 16px; }
.lc-socials a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .15s; }
.lc-socials a:hover { background: rgba(255,255,255,.18); }
.lc-socials svg { width: 18px; height: 18px; fill: #fff; }
.lc-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: rgba(255,255,255,.55); }
.lc-footer-bottom a { color: rgba(255,255,255,.7); margin-left: 18px; }

/* ----------------------------------------------------------------------------
   17. Dashboard shell (app UI — mocked)
   ---------------------------------------------------------------------------- */
.app { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.app-side { background: #fff; border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.app-side .lc-brand { padding: 6px 10px 18px; font-size: 1.18rem; }
.app-side .grp { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); padding: 16px 12px 6px; }
.app-side a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 700; color: var(--ink-soft); transition: background .15s, color .15s; }
.app-side a:hover { background: #f3f7fd; }
.app-side a.active { background: #eaf1ff; color: var(--brand-deep); }
.app-side a .ic { font-size: 1.15rem; width: 22px; text-align: center; }
.app-side .spacer { flex: 1; }
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-top { height: 70px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 28px; position: sticky; top: 0; z-index: 50; }
.app-top h1 { font-size: 1.3rem; }
.app-top .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.app-top .ava { width: 40px; height: 40px; border-radius: 12px; background: var(--grad-english); color: #fff; display: grid; place-items: center; font-weight: 800; }
.app-body { padding: 28px; }
.app-body.bg { background: linear-gradient(180deg,#f6f9ff,#eef4ff); flex: 1; }

.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.kpi .l { color: var(--muted); font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.kpi .n { font-family: "Baloo 2"; font-weight: 800; font-size: 2rem; margin-top: 8px; }
.kpi .d { font-size: .85rem; font-weight: 700; margin-top: 4px; }
.kpi .d.up { color: #16a34a; } .kpi .d.flat { color: var(--muted); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.panel .ph { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.panel .ph h3 { font-size: 1.12rem; }
.panel .ph .right { margin-left: auto; }
.panel .pb { padding: 18px 22px; }

/* class list row */
.classrow { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.classrow:last-child { border-bottom: 0; }
.classrow .when { flex: none; width: 92px; text-align: center; }
.classrow .when .d { font-family: "Baloo 2"; font-weight: 800; font-size: 1.5rem; line-height: 1; }
.classrow .when .m { color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; }
.classrow .ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; }
.classrow .grow { flex: 1; min-width: 0; }
.classrow .grow h4 { font-size: 1.05rem; margin-bottom: 3px; }
.classrow .grow span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.classrow .act { flex: none; display: flex; gap: 8px; align-items: center; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); font-weight: 800; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--line-2); font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; }
.tag-ok { color: #16a34a; background: #eafaf0; border: 1px solid #c5edd4; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: .8rem; }
.tag-soon { color: var(--brand-deep); background: #eaf1ff; border: 1px solid #d3e3ff; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: .8rem; }
.tag-miss { color: #b45309; background: #fff5e6; border: 1px solid #ffe2b8; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: .8rem; }

/* progress */
.bar-track { height: 9px; background: #eef3fb; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--grad-brand); border-radius: 999px; }

/* ----------------------------------------------------------------------------
   18. Classroom (live room — mocked UI)
   ---------------------------------------------------------------------------- */
.room { height: 100vh; display: grid; grid-template-rows: 56px 1fr 78px; background: #0c1424; color: #fff; }
.room-top { display: flex; align-items: center; gap: 14px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.room-top .lc-brand { color: #fff; font-size: 1.1rem; }
.room-top .title { font-weight: 800; }
.room-top .right { margin-left: auto; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.7); font-weight: 700; }
.room-main { display: grid; grid-template-columns: 1fr 320px; min-height: 0; }
.room-stage { padding: 16px; display: grid; grid-template-rows: 1fr auto; gap: 12px; min-height: 0; }
.stage-screen { background: linear-gradient(135deg,#15234a,#22417e); border-radius: 18px; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.stage-screen .ph { text-align: center; color: rgba(255,255,255,.85); }
.stage-screen .ph .big { font-size: 3rem; }
.stage-screen .badge-live { position: absolute; top: 14px; left: 14px; }
.stage-screen .rectime { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.4); padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: .85rem; display: flex; align-items: center; gap: 7px; }
.stage-screen .rectime b { width: 9px; height: 9px; border-radius: 50%; background: var(--live); animation: lc-pulse 1.4s infinite; }
.filmstrip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.vtile { flex: none; width: 150px; aspect-ratio: 4/3; border-radius: 12px; background: linear-gradient(160deg,#2a3c66,#3a539b); position: relative; display: grid; place-items: center; font-size: 1.8rem; border: 2px solid transparent; }
.vtile.speaking { border-color: #38ef7d; }
.vtile .nm { position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 7px; font-size: .72rem; font-weight: 700; }
.vtile .mute { position: absolute; bottom: 6px; right: 6px; font-size: .8rem; }
.room-aside { border-left: 1px solid rgba(255,255,255,.08); display: grid; grid-template-rows: auto 1fr auto; min-height: 0; background: #0e1830; }
.room-aside .tabs { display: flex; padding: 8px; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.room-aside .tabs button { flex: 1; background: none; border: 0; color: rgba(255,255,255,.6); font-weight: 800; padding: 9px; border-radius: 9px; }
.room-aside .tabs button.active { background: rgba(255,255,255,.1); color: #fff; }
.chat { overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.chat .msg .nm { font-weight: 800; font-size: .82rem; color: #8db4ff; }
.chat .msg .bd { background: rgba(255,255,255,.06); border-radius: 10px; padding: 8px 11px; margin-top: 3px; font-size: .92rem; color: rgba(255,255,255,.9); }
.chat .msg.me .bd { background: rgba(58,123,255,.25); }
.chat-input { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); display: flex; gap: 8px; }
.chat-input input { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 10px; padding: 11px 13px; font-family: inherit; }
.room-bar { display: flex; align-items: center; justify-content: center; gap: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.ctrl { width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 1.3rem; display: grid; place-items: center; transition: background .15s; position: relative; }
.ctrl:hover { background: rgba(255,255,255,.18); }
.ctrl.on { background: #fff; color: var(--ink); }
.ctrl.danger { background: var(--live); }
.ctrl .lbl { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: .64rem; color: rgba(255,255,255,.6); font-weight: 700; white-space: nowrap; }

/* ----------------------------------------------------------------------------
   19. Toast (demo handler)
   ---------------------------------------------------------------------------- */
.lc-toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; font-weight: 700; padding: 14px 22px; border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 999; opacity: 0; transition: .3s var(--ease); max-width: 90vw; text-align: center; }
.lc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* demo ribbon */
.demo-ribbon { background: var(--sun-light); border: 1px solid #ffe2a6; color: #8a5a00; font-weight: 700; border-radius: 14px; padding: 12px 18px; display: flex; align-items: center; gap: 10px; }

/* ----------------------------------------------------------------------------
   20. Reveal on scroll
   ---------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ----------------------------------------------------------------------------
   21. Responsive
   ---------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .lc-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .room-main { grid-template-columns: 1fr; }
  .room-aside { display: none; }
}
@media (max-width: 860px) {
  .lc-navlinks, .lc-link-signin { display: none; }
  .lc-burger { display: block; }
  .lc-mobile.open { display: block; position: fixed; inset: 0; background: #fff; z-index: 10050; padding: 16px 20px 48px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .lc-m-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .lc-m-close { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--ink); }
  .lc-m-cta { margin-bottom: 6px; font-size: 1.05rem; }
  .lc-m-grp { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: var(--muted-2); margin: 18px 0 4px; }
  .lc-m-link { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.1rem; padding: 14px 10px; border-radius: 12px; color: var(--ink); border-bottom: 1px solid var(--line-2); }
  .lc-m-link span { font-size: 1.3rem; width: 28px; text-align: center; flex: none; }
  .lc-m-link:active, .lc-m-link:hover { background: #eef4ff; color: var(--brand-deep); }
  .lc-m-note { color: var(--muted); font-size: .85rem; font-weight: 600; margin-top: 20px; line-height: 1.5; }
  .lc-mobile .ml, .lc-mobile .mcta { display: none; }
  .split, .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .cta-band { padding: 36px 24px; }
}
@media (max-width: 560px) {
  .cols-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .hero-float { display: none; }
  .stepper .bar { width: 22px; margin: 0 6px; }
  .lc-footer-grid { grid-template-columns: 1fr; }
  .classrow { flex-wrap: wrap; }
  .classcard { transform: none; }
  /* mobile header: brand + burger only (CTA stays in the mobile menu + announcement bar) */
  .lc-nav-cta .btn { display: none; }
  /* tables scroll inside their panel instead of widening the page */
  .panel .pb { overflow-x: auto; }
  .tbl th { padding: 8px 8px; }
  .tbl td { padding: 10px 8px; font-size: .9rem; }
}

/* small print */
.fineprint { color: var(--muted-2); font-size: .85rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 28px 0; }

/* standalone avatar base (for avatars used outside .app-top, e.g. inboxes/rosters) */
.ava { display: grid; place-items: center; color: #fff; font-weight: 800; border-radius: 12px; }

/* ============================================================================
   22. Explore dock + Site Mindmap navigator  (injected site-wide by JS)
   ---------------------------------------------------------------------------
   A floating bottom-right dock holds (a) a scroll-progress ring that scrolls
   back to top, and (b) an "Explore" launcher that opens a modern, collapsible
   mindmap of the whole /liveclasses site. Everything here is self-contained and
   prefixed .lc-mm* / .lc-dock* so it never collides with page content.
   ============================================================================ */

/* --- floating dock (bottom-right) ----------------------------------------- */
.lc-dock { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
@media print { .lc-dock { display: none; } }

/* scroll-progress ring -> back to top (hidden until the user scrolls down) */
.lc-top {
  width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0;
  background: #fff; box-shadow: var(--shadow); display: grid; place-items: center;
  position: relative; cursor: pointer;
  opacity: 0; transform: translateY(14px) scale(.8); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.lc-top.show { opacity: 1; transform: none; pointer-events: auto; }
.lc-top:hover { transform: translateY(-2px); }
.lc-top svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.lc-top svg.ring circle { fill: none; stroke-width: 3.4; }
.lc-top svg.ring .trk { stroke: var(--line); }
.lc-top svg.ring .bar { stroke: url(#lcGrad); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.lc-top .arr { font-size: 1.1rem; color: var(--brand-deep); font-weight: 900; line-height: 1; }

/* explore launcher (always visible) */
.lc-explore {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px;
  background: var(--grad-brand); color: #fff; font-family: "Baloo 2", inherit; font-weight: 800; font-size: 1rem;
  box-shadow: var(--shadow-brand); cursor: pointer; position: relative;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.lc-explore:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(58,123,255,.42); }
.lc-explore svg { width: 22px; height: 22px; stroke: #fff; fill: none; flex: none; }
.lc-explore .kbd { background: rgba(255,255,255,.22); border-radius: 7px; font-size: .72rem; font-weight: 800; padding: 3px 7px; letter-spacing: .02em; }
/* gentle one-time attention pulse */
.lc-explore::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px; border: 2px solid var(--brand);
  opacity: 0; animation: lc-mm-pulse 2.6s ease-out 3;
}
@keyframes lc-mm-pulse { 0% { opacity: .6; transform: scale(1); } 70%,100% { opacity: 0; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .lc-explore::after { animation: none; } }

/* --- overlay shell -------------------------------------------------------- */
.lc-mm { position: fixed; inset: 0; z-index: 800; display: none; }
.lc-mm.open { display: block; }
.lc-mm-back { position: absolute; inset: 0; background: rgba(11,21,40,.55); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); opacity: 0; transition: opacity .25s var(--ease); }
.lc-mm.open .lc-mm-back { opacity: 1; }

.lc-mm-panel {
  position: relative; width: min(740px, 94vw); max-height: min(86vh, 760px);
  margin: 7vh auto 0; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.lc-mm.open .lc-mm-panel { opacity: 1; transform: none; }

/* header */
.lc-mm-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--line-2); position: relative; }
.lc-mm-head .eyebrow { margin-bottom: 8px; }
.lc-mm-head h2 { font-size: 1.5rem; }
.lc-mm-head p { color: var(--muted); font-size: .94rem; margin-top: 3px; }
.lc-mm-x { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 1.2rem; display: grid; place-items: center; transition: background .15s, color .15s; }
.lc-mm-x:hover { background: #f3f7fd; color: var(--ink); }

/* search */
.lc-mm-search { position: relative; padding: 14px 22px 0; }
.lc-mm-search svg { position: absolute; left: 36px; top: 50%; transform: translateY(-30%); width: 18px; height: 18px; stroke: var(--muted-2); fill: none; pointer-events: none; }
.lc-mm-search input {
  width: 100%; border: 1.5px solid var(--line); background: #f8fbff; border-radius: 14px;
  padding: 13px 16px 13px 44px; font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.lc-mm-search input:focus { outline: none; border-color: var(--brand); background: #fff; }
.lc-mm-search input::placeholder { color: var(--muted-2); font-weight: 600; }

/* toolbar */
.lc-mm-tools { display: flex; align-items: center; gap: 8px; padding: 12px 22px 4px; }
.lc-mm-tools button { background: #eef4ff; color: var(--brand-deep); border: 0; font-weight: 800; font-size: .82rem; padding: 7px 13px; border-radius: 999px; transition: background .15s; }
.lc-mm-tools button:hover { background: #dfeaff; }
.lc-mm-tools .here-key { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 800; color: var(--muted); }
.lc-mm-tools .here-key i { width: 11px; height: 11px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(255,77,109,.16); font-style: normal; }

/* --- the tree / mindmap --------------------------------------------------- */
.lc-mm-tree { padding: 8px 18px 18px; overflow-y: auto; overscroll-behavior: contain; }
.lc-mm-empty { display: none; text-align: center; color: var(--muted); font-weight: 700; padding: 34px 10px; }
.lc-mm-tree.empty .lc-mm-empty { display: block; }

/* root (home) node */
.lc-mm-root { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 14px; font-weight: 800; color: var(--ink); transition: background .15s; }
.lc-mm-root:hover { background: #f3f7fd; }
.lc-mm-root .chip { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; background: var(--grad-brand); box-shadow: var(--shadow-brand); flex: none; }
.lc-mm-root .lbl { flex: 1; min-width: 0; }
.lc-mm-root small { display: block; font-weight: 700; color: var(--muted); font-size: .8rem; }
.lc-mm-root.here { background: rgba(255,77,109,.08); box-shadow: inset 3px 0 0 var(--live); }

/* a section branch */
.lc-mm-branch { margin-top: 2px; }
.lc-mm-branch.hide, .lc-mm-leaf.hide { display: none; }

.lc-mm-node {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 10px 12px; border: 0; background: transparent; border-radius: 14px;
  font-family: inherit; font-weight: 800; font-size: 1rem; color: var(--ink); cursor: pointer;
  transition: background .15s;
}
.lc-mm-node:hover { background: #f3f7fd; }
.lc-mm-node .chev { width: 18px; height: 18px; flex: none; color: var(--muted-2); transition: transform .25s var(--ease); display: grid; place-items: center; font-size: .8rem; }
.lc-mm-branch.open > .lc-mm-node .chev { transform: rotate(90deg); }
.lc-mm-node .chip { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem; background: var(--c, var(--grad-brand)); color: #fff; flex: none; box-shadow: 0 6px 14px rgba(26,53,102,.16); }
.lc-mm-node .lbl { flex: 1; min-width: 0; }
.lc-mm-node .cnt { font-size: .76rem; font-weight: 800; color: var(--muted-2); background: var(--line-2); border-radius: 999px; padding: 3px 9px; }
.lc-mm-branch.has-here > .lc-mm-node .cnt { color: var(--live-deep); background: rgba(255,77,109,.12); }

/* children — smooth grid-rows open/close animation */
.lc-mm-kidswrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--ease); }
.lc-mm-branch.open > .lc-mm-kidswrap { grid-template-rows: 1fr; }
.lc-mm-kids { overflow: hidden; position: relative; margin-left: 28px; }
/* vertical spine of the branch */
.lc-mm-kids::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 16px; width: 2px; background: var(--line); border-radius: 2px; }

.lc-mm-leaf { position: relative; padding-left: 20px; }
/* elbow connector to each leaf */
.lc-mm-leaf::before { content: ""; position: absolute; left: 0; top: 21px; width: 14px; height: 2px; background: var(--line); border-radius: 2px; }
.lc-mm-leaf > a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px;
  color: var(--ink-soft); font-weight: 700; font-size: .95rem; transition: background .14s, color .14s;
}
.lc-mm-leaf > a:hover, .lc-mm-leaf > a.kbd { background: #eef4ff; color: var(--brand-deep); }
.lc-mm-leaf > a .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--brand)); flex: none; opacity: .65; }
.lc-mm-leaf > a .go { margin-left: auto; color: var(--muted-2); opacity: 0; transform: translateX(-4px); transition: .15s; font-weight: 800; }
.lc-mm-leaf > a:hover .go, .lc-mm-leaf > a.kbd .go { opacity: 1; transform: none; }

/* current page */
.lc-mm-leaf.here > a { background: rgba(255,77,109,.08); color: var(--live-deep); box-shadow: inset 3px 0 0 var(--live); }
.lc-mm-leaf.here > a .dot { background: var(--live); opacity: 1; }
.here-pill { margin-left: auto; flex: none; font-size: .68rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--live); border-radius: 999px; padding: 3px 9px; }
.lc-mm-leaf.here > a .go { display: none; }

/* footer hint */
.lc-mm-foot { padding: 12px 22px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: .82rem; color: var(--muted); font-weight: 700; background: #fbfdff; }
.lc-mm-foot kbd { font-family: inherit; background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px; padding: 2px 7px; font-size: .76rem; font-weight: 800; color: var(--ink-soft); }
.lc-mm-foot .sp { flex: 1; }

/* --- dismissible announcement strip --------------------------------------- */
.lc-announce { position: relative; }
.lc-announce.lc-dismissed { display: none; }
.lc-announce .lc-ann-x {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 8px; border: 0; background: rgba(255,255,255,.14); color: #fff;
  font-size: 1rem; line-height: 1; display: grid; place-items: center; transition: background .15s;
}
.lc-announce .lc-ann-x:hover { background: rgba(255,255,255,.28); }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 560px) {
  .lc-dock { right: 14px; bottom: 14px; }
  .lc-explore { height: 50px; padding: 0 16px; }
  .lc-explore .lbl-txt, .lc-explore .kbd { display: none; }
  .lc-explore { padding: 0; width: 50px; justify-content: center; }
  .lc-mm-panel { margin-top: 4vh; max-height: 92vh; }
  .lc-mm-head h2 { font-size: 1.28rem; }
  .lc-mm-foot { display: none; }
}

/* ============================================================================
   23. Dashboard bridge banner — mock /liveclasses app -> real dashboard
   Injected at the top of .app-body on the mock teacher/parent app pages to
   route users into the real, wired teacher-dashboard.html / student-dashboard.html.
   ============================================================================ */
.lc-dashbridge {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #ffffff, #f1f7ff);
  border: 1px solid #d8e6ff; border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 13px 18px; margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.lc-dashbridge .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: #eaf1ff; flex: none; }
.lc-dashbridge .tx { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.lc-dashbridge .tx b { font-family: "Baloo 2"; color: var(--ink); font-size: .98rem; }
.lc-dashbridge .tx span { color: var(--muted); font-size: .86rem; }
.lc-dashbridge .btn { margin-left: auto; flex: none; }
@media (max-width: 560px) {
  .lc-dashbridge { flex-wrap: wrap; }
  .lc-dashbridge .btn { margin-left: 0; width: 100%; }
}

/* ============================================================================
   24. Brand logo — match the main littlesparks.academy logo
   The header/footer brand mark used a generic ✨ on a blue square. Swap in the
   real site logo over the same cream→mint gradient the main site uses for
   .brand-logo, so the sub-site brand matches littlesparks.academy.
   Uses /img/littlespark-logo.webp — a 13 KB static 128px crop of the original
   4.3 MB animated littlespark.gif (it rendered at only 40px here, so the
   animation/full res were pure waste across all 52 sub-site pages).
   Done in shared CSS → updates the mark on every page with no per-page edits.
   ============================================================================ */
.lc-brand .mark {
  background: url("/img/littlespark-logo.webp") center / contain no-repeat,
              linear-gradient(135deg, var(--sun-light), var(--mint-light));
  box-shadow: 0 8px 20px rgba(126, 224, 195, 0.3);
  font-size: 0; /* hide the ✨ fallback glyph behind the logo image */
}

/* ----------------------------------------------------------------------------
   Section info ("ⓘ" explainers) — shared affordance + modal
   A section opts in with data-lc-info (+ optional data-lc-info-fit /
   data-lc-info-title) on its heading; liveclasses.js injects the button below.
   ---------------------------------------------------------------------------- */
.lc-info-btn {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  margin-left: 9px; vertical-align: middle; padding: 0; flex: none;
  border-radius: 50%; border: 1.5px solid var(--brand); background: #eef4ff;
  color: var(--brand-deep); font-family: "Baloo 2", cursive; font-weight: 800;
  font-size: .84rem; line-height: 1; cursor: pointer; transition: .15s var(--ease);
}
.lc-info-btn::before { content: "i"; font-style: italic; }
.lc-info-btn:hover { background: var(--brand); color: #fff; transform: translateY(-1px); box-shadow: 0 5px 12px rgba(58,123,255,.32); }
.lc-info-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(58,123,255,.35); }
/* on dark section bands the heading is white — make the badge readable there */
.section-ink .lc-info-btn, .lc-info-btn.on-dark { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); color: #fff; }
.section-ink .lc-info-btn:hover, .lc-info-btn.on-dark:hover { background: #fff; color: var(--brand-deep); }

.lc-info-overlay {
  position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(15,28,51,.55); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .2s var(--ease);
}
.lc-info-overlay.show { opacity: 1; }
.lc-info-overlay[hidden] { display: none; }
.lc-info-dialog {
  position: relative; background: #fff; border-radius: var(--radius-lg); max-width: 480px; width: 100%;
  padding: 26px 26px 22px; box-shadow: var(--shadow-lg); max-height: 88vh; overflow: auto;
  transform: translateY(12px) scale(.97); transition: transform .22s var(--ease);
}
.lc-info-overlay.show .lc-info-dialog { transform: none; }
.lc-info-x {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 10px;
  background: #eef3fb; color: var(--ink); font-size: 1.35rem; line-height: 1; cursor: pointer; transition: .15s;
}
.lc-info-x:hover { background: #e0e8f5; }
.lc-info-eyebrow { color: var(--brand-deep); font-weight: 800; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; }
.lc-info-title { font-family: "Baloo 2", cursive; font-size: 1.35rem; line-height: 1.2; margin: 4px 0 16px; color: var(--ink); padding-right: 34px; }
.lc-info-block { margin-bottom: 15px; }
.lc-info-lbl { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); font-size: .96rem; margin-bottom: 5px; }
.lc-info-block p { margin: 0; color: var(--muted); font-weight: 600; line-height: 1.58; }
.lc-info-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 800; color: var(--brand-deep); }
.lc-info-cta:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------------------------------
   "On this page" — per-page section index (left, collapsible)
   Auto-built from the data-lc-info attributes already on each section heading.
   ---------------------------------------------------------------------------- */
.lc-toc-target { scroll-margin-top: 100px; }
.lc-toc { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 1100; font-family: "Nunito", sans-serif; display: flex; align-items: center; }
.lc-toc-tab {
  display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; border: 0;
  background: var(--grad-brand); color: #fff; padding: 15px 9px; border-radius: 0 14px 14px 0;
  box-shadow: var(--shadow); font-weight: 800; font-size: .82rem; transition: padding .15s var(--ease);
}
.lc-toc-tab .ico { font-size: 1.05rem; line-height: 1; }
.lc-toc-tab .lc-toc-tab-label { writing-mode: vertical-rl; letter-spacing: .03em; }
.lc-toc-tab:hover { padding-right: 13px; }
.lc-toc.open .lc-toc-tab { display: none; }

.lc-toc-panel {
  display: none; width: 274px; max-height: 82vh; overflow-y: auto; background: #fff;
  border: 1px solid var(--line); border-left: 0; border-radius: 0 18px 18px 0;
  box-shadow: var(--shadow-lg); padding: 6px 6px 10px; animation: lc-toc-in .2s var(--ease);
}
@keyframes lc-toc-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.lc-toc.open .lc-toc-panel { display: block; }
.lc-toc-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px; position: sticky; top: 0; background: #fff; }
.lc-toc-head b { font-family: "Baloo 2", cursive; font-size: 1.04rem; color: var(--ink); }
.lc-toc-close { width: 30px; height: 30px; border: 0; border-radius: 9px; background: #eef3fb; color: var(--ink); cursor: pointer; font-size: 1.25rem; line-height: 1; }
.lc-toc-close:hover { background: #e0e8f5; }
.lc-toc-list { display: flex; flex-direction: column; gap: 2px; }
.lc-toc-item { display: block; padding: 9px 12px; border-radius: 12px; border-left: 3px solid transparent; transition: background .12s, border-color .12s; }
.lc-toc-item:hover { background: #f3f7ff; }
.lc-toc-item.active { background: #eef4ff; border-left-color: var(--brand); }
.lc-toc-num { color: var(--muted-2); font-weight: 800; font-size: .76rem; margin-right: 6px; }
.lc-toc-title { font-weight: 800; color: var(--ink); font-size: .92rem; line-height: 1.25; }
.lc-toc-item.active .lc-toc-title { color: var(--brand-deep); }
.lc-toc-desc { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; line-height: 1.4; margin-top: 3px; }
.lc-toc-scrim { display: none; position: fixed; inset: 0; background: rgba(15,28,51,.42); z-index: 1099; }

@media (max-width: 1024px) { .lc-toc-scrim.show { display: block; } }
@media (max-width: 600px) {
  .lc-toc-tab .lc-toc-tab-label { display: none; }
  .lc-toc-tab { padding: 12px; border-radius: 0 12px 12px 0; }
  .lc-toc-panel { width: 84vw; max-width: 320px; }
}
@media print { .lc-toc, .lc-toc-scrim { display: none !important; } }

/* ============================================================================
   Course self-study content (activities & worksheets)  ·  #lc-course-content
   Self-contained block; all classes namespaced .lc-cc-* so it can't collide.
   ============================================================================ */
.lc-cc-load { text-align:center; padding:40px 18px; color:var(--muted); font-weight:700; }
.lc-cc-spin { display:inline-block; animation:lc-cc-spin 1.1s linear infinite; }
@keyframes lc-cc-spin { to { transform:rotate(360deg); } }

.lc-cc-bar { display:flex; flex-wrap:wrap; gap:14px 26px; align-items:center; justify-content:space-between;
  background:var(--sky-light); border:1px solid var(--line); border-radius:var(--radius);
  padding:16px 20px; margin-bottom:20px; }
.lc-cc-stats { display:flex; flex-wrap:wrap; gap:10px 22px; }
.lc-cc-stat { display:flex; flex-direction:column; line-height:1.15; }
.lc-cc-stat b { font-family:'Baloo 2',cursive; font-size:1.18rem; color:var(--brand-ink); }
.lc-cc-stat span { font-size:.82rem; font-weight:700; color:var(--muted); }
.lc-cc-tagline { margin:0; font-weight:700; color:var(--muted); max-width:430px; font-size:.92rem; }

.lc-cc-tabs { display:inline-flex; gap:6px; background:var(--line-2); border-radius:999px; padding:5px; margin-bottom:18px; }
.lc-cc-tab { border:0; background:transparent; font:inherit; font-weight:800; cursor:pointer;
  padding:9px 18px; border-radius:999px; color:var(--muted); transition:.18s; }
.lc-cc-tab.active { background:#fff; color:var(--brand-deep); box-shadow:0 3px 10px rgba(46,99,214,.16); }

.lc-cc-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.lc-cc-chip { border:1.5px solid var(--line); background:#fff; font:inherit; font-weight:800; font-size:.86rem;
  cursor:pointer; padding:7px 14px; border-radius:999px; color:var(--ink-soft); transition:.16s; }
.lc-cc-chip:hover { border-color:var(--brand); color:var(--brand-deep); }
.lc-cc-chip.active { background:var(--brand); border-color:var(--brand); color:#fff; }

.lc-cc-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(168px, 1fr)); gap:16px; }
.lc-cc-card { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--radius-sm);
  overflow:hidden; background:#fff; text-decoration:none; color:inherit; transition:transform .16s, box-shadow .16s, border-color .16s; }
.lc-cc-card:hover { transform:translateY(-4px); box-shadow:0 12px 26px rgba(29,43,79,.12); border-color:var(--brand); }
.lc-cc-thumb { position:relative; display:block; aspect-ratio:4/3; background:var(--grad-brand); overflow:hidden; }
.lc-cc-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.lc-cc-thumb-ph { display:flex; align-items:center; justify-content:center; font-size:2.6rem;
  background:linear-gradient(135deg,#eef4ff,#dbe8ff); }
.lc-cc-badge { position:absolute; top:8px; right:8px; background:rgba(13,30,60,.72); color:#fff;
  width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.95rem; }
.lc-cc-card.is-locked .lc-cc-thumb img { filter:grayscale(.5) brightness(.82); }
.lc-cc-card.is-locked .lc-cc-thumb-ph { filter:grayscale(.35) brightness(.95); }
.lc-cc-info { display:flex; flex-direction:column; gap:3px; padding:11px 13px 13px; }
.lc-cc-tp { font-size:.72rem; font-weight:800; letter-spacing:.03em; text-transform:uppercase; color:var(--muted-2); }
.lc-cc-ti { font-family:'Baloo 2',cursive; font-weight:700; font-size:1rem; color:var(--ink); line-height:1.2; }
.lc-cc-go { margin-top:6px; font-weight:800; font-size:.85rem; }
.lc-cc-free { color:var(--brand-deep); }
.lc-cc-lock { color:#9a5b00; }
.lc-cc-empty { text-align:center; padding:28px; color:var(--muted); font-weight:700; }

.lc-cc-soon { text-align:center; padding:42px 22px; background:var(--sky-light);
  border:1px dashed var(--line); border-radius:var(--radius); }
.lc-cc-soon-ic { font-size:2.6rem; }
.lc-cc-soon h3 { font-family:'Baloo 2',cursive; font-size:1.35rem; margin:10px 0 6px; color:var(--ink); }
.lc-cc-soon p { max-width:480px; margin:0 auto 18px; color:var(--muted); font-weight:600; }

@media (max-width:560px) {
  .lc-cc-grid { grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:12px; }
  .lc-cc-bar { flex-direction:column; align-items:flex-start; }
}

/* ---- Country / currency switcher on the pricing page (.lc-geo) ---- */
.lc-geo { display:flex; align-items:center; gap:9px; width:fit-content; max-width:100%; flex-wrap:wrap;
  margin:0 auto 22px; background:#fff; border:1px solid var(--line); border-radius:999px; padding:7px 12px 7px 16px; }
.lc-geo-ic { font-size:1.05rem; }
.lc-geo-label { font-size:.9rem; font-weight:700; color:var(--muted); }
.lc-geo-select { font:inherit; font-weight:800; color:var(--brand-deep); border:1.5px solid var(--line);
  border-radius:999px; padding:6px 12px; background:#f6f9ff; cursor:pointer; }
.lc-geo-select:hover { border-color:var(--brand); }
.lc-geo-hint { font-size:.78rem; font-weight:800; color:var(--muted-2); text-transform:uppercase; letter-spacing:.03em; }
.lc-geo-hint:empty { display:none; }

/* ---- Hero teaser that points down to the self-study content section ---- */
.lc-content-teaser { display:flex; align-items:center; gap:12px; margin-top:20px; text-decoration:none;
  background:linear-gradient(135deg,#eef4ff,#e0fff4); border:1px solid var(--line); border-radius:16px;
  padding:12px 16px; color:var(--ink); transition:transform .15s, box-shadow .15s; }
.lc-content-teaser:hover { transform:translateY(-2px); box-shadow:0 10px 24px rgba(29,43,79,.10); border-color:var(--brand); }
.lc-content-teaser .ic { font-size:1.5rem; line-height:1; }
.lc-content-teaser .tx { font-weight:600; font-size:.95rem; line-height:1.35; flex:1; }
.lc-content-teaser .go { font-weight:800; color:var(--brand-deep); white-space:nowrap; }
@media (max-width:560px){ .lc-content-teaser .go { display:none; } }

/* ---- Dedicated link to the ORIGINAL full course hub (/JIMaths/, /SIMaths/, /EnglishStory/),
   where the complete course content is laid out beautifully. Prominent on every course page. ---- */
.lc-course-hub { display:flex; align-items:center; gap:14px; margin-top:18px; text-decoration:none;
  background:linear-gradient(135deg,var(--brand,#7c4dff),#9b6bff); color:#fff; border-radius:18px;
  padding:16px 18px; box-shadow:0 14px 34px rgba(124,77,255,.28); transition:transform .15s, box-shadow .15s; }
.lc-course-hub:hover { transform:translateY(-2px); box-shadow:0 18px 44px rgba(124,77,255,.38); }
.lc-course-hub .ic { font-size:1.9rem; line-height:1; flex:none; }
.lc-course-hub .tx { flex:1; line-height:1.3; }
.lc-course-hub .tx b { display:block; font-family:'Baloo 2',cursive; font-size:1.08rem; }
.lc-course-hub .tx small { display:block; opacity:.92; font-weight:600; font-size:.86rem; margin-top:2px; }
.lc-course-hub .go { flex:none; background:#fff; color:var(--brand-deep,#6a3df0); font-weight:800; border-radius:999px; padding:9px 16px; white-space:nowrap; }
@media (max-width:560px){ .lc-course-hub { flex-wrap:wrap; } .lc-course-hub .go { width:100%; text-align:center; } }

/* AI class-preview images (replace the emoji teacher/student mocks). The img is the
   first child of .stage so the Live/REC/play overlays paint on top of it. */
.stage .stage-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}

/* AI teacher portraits in the .photo circle (replace the emoji faces). */
.photo .photo-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top}

.vtile .vtile-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}


/* ===== Guided wizard (shared so it works on /liveclasses, /dashboard, /teacher) ===== */
@keyframes lcw-spin { to { transform:rotate(360deg); } }
    .lcw-section { background:linear-gradient(180deg,#f4f1ff,#fff); border-bottom:1px solid var(--line,#eee); scroll-margin-top:72px; }
    /* Stable footprint so the panel never collapses/jumps while data loads. */
    #lc-wizard #lcw-step { min-height:172px; }
    #lc-wizard #lcw-step:focus { outline:none; }
    #lc-wizard .lcw-result, #lc-wizard #lcw-step { min-width:min(100%, 320px); }
    .lcw-loading { display:flex; align-items:center; justify-content:center; gap:12px; min-height:160px; color:var(--muted,#5b6b8c); font-weight:800; }
    .lcw-spin { display:inline-block; width:26px; height:26px; border:3px solid rgba(124,77,255,.22); border-top-color:var(--brand,#7c4dff); border-radius:50%; animation:lcw-spin .7s linear infinite; }
    @keyframes lcw-spin { to { transform:rotate(360deg); } }
    @media (prefers-reduced-motion: reduce) { .lcw-spin { animation-duration:1.6s; } }
    .lcw-wrap { padding:28px 0 34px; }
    .lcw-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
    .lcw-q { font-family:'Baloo 2',cursive; font-size:clamp(1.6rem,3.4vw,2.4rem); margin:4px 0 6px; }
    .lcw-sub { color:var(--muted,#5b6b8c); font-weight:600; max-width:640px; margin:0; }
    .lcw-hi { color:var(--muted,#5b6b8c); font-weight:700; font-size:.9rem; }
    .lcw-grouptitle { font-weight:800; text-transform:uppercase; letter-spacing:.05em; font-size:.74rem; color:var(--muted-2,#8a93a8); margin:16px 0 8px; }
    /* breadcrumb (path taken) + step question */
    .lcw-crumbs { display:flex; align-items:center; flex-wrap:wrap; gap:4px; margin-bottom:14px; }
    .lcw-crumb { background:#fff; border:1.5px solid var(--line,#e7e7ef); color:var(--ink,#1a2233); border-radius:999px; padding:5px 12px; font-weight:800; font-size:.82rem; cursor:pointer; }
    .lcw-crumb:hover { border-color:var(--brand,#7c4dff); }
    .lcw-crumb.cur { background:var(--brand,#7c4dff); color:#fff; border-color:var(--brand,#7c4dff); cursor:default; }
    .lcw-sep { color:var(--muted-2,#8a93a8); font-weight:800; }
    .lcw-step-q { font-family:'Baloo 2',cursive; font-size:1.15rem; font-weight:800; margin:0 0 12px; color:var(--ink,#1a2233); }
    .lcw-tile small { display:block; font-weight:700; font-size:.74rem; color:var(--muted,#5b6b8c); margin-top:3px; }
    .lcw-tiles { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px; }
    .lcw-tile { display:flex; align-items:center; gap:12px; text-align:left; text-decoration:none; color:var(--ink,#1a2233);
      background:#fff; border:1.5px solid var(--line,#e7e7ef); border-radius:16px; padding:14px 16px; cursor:pointer; font-weight:800; font-size:.98rem;
      transition:border-color .15s, transform .1s, box-shadow .15s; }
    .lcw-tile:hover { border-color:var(--brand,#7c4dff); transform:translateY(-2px); box-shadow:0 12px 28px rgba(124,77,255,.14); }
    .lcw-ic { font-size:1.5rem; flex:none; }
    .lcw-lbl { line-height:1.2; }
    .lcw-result { margin-top:18px; background:#fff; border:1px solid var(--line,#e7e7ef); border-radius:18px; padding:16px 18px; box-shadow:0 14px 40px rgba(20,20,60,.06); }
    .lcw-rhead { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
    .lcw-rhead h3 { margin:0; font-size:1.2rem; }
    .lcw-muted { color:var(--muted,#5b6b8c); font-weight:700; }
    .lcw-empty { text-align:center; padding:22px 8px; color:var(--muted,#5b6b8c); font-weight:700; }
    .lcw-empty .btn { margin-top:10px; }
    .lcw-route { text-align:center; padding:14px 8px; }
    .lcw-route p { font-weight:700; margin:0 0 12px; }
    .lcw-toolbar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:12px; }
    .lcw-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; }
    .lcw-stat { border:1px solid var(--line,#e7e7ef); border-radius:14px; padding:14px 16px; }
    .lcw-stat .n { font-family:'Baloo 2',cursive; font-size:1.7rem; font-weight:800; color:var(--brand-deep,#6a3df0); line-height:1.1; }
    .lcw-stat .l { font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.03em; color:var(--muted-2,#8a93a8); }
    .lcw-stat small { display:block; color:var(--muted,#5b6b8c); font-weight:700; font-size:.76rem; margin-top:4px; }
    .lcw-result .classrow { padding:10px 2px; }
    @media (max-width:560px){ .lcw-tiles { grid-template-columns:1fr 1fr; } .lcw-tile { font-size:.88rem; padding:12px; } }

    /* Deep-link arrival highlight: the wizard sends parents straight to a panel
       (#lc-upcoming, #lc-children, #lc-history, #lc-booked, …); this briefly rings
       the target so it's obvious what they were taken to. Layout-neutral (outline). */
    .lc-hl { animation: lcHl 2.2s ease both; border-radius:16px; }
    @keyframes lcHl {
      0%   { outline:0 solid transparent; outline-offset:2px; }
      12%  { outline:3px solid var(--brand-deep,#2e63d6); outline-offset:5px; }
      70%  { outline:3px solid var(--brand-deep,#2e63d6); outline-offset:5px; }
      100% { outline:0 solid transparent; outline-offset:2px; }
    }
    @media (prefers-reduced-motion: reduce){ .lc-hl { animation:none; } }

    /* Deep-link targets sit inside a page with a sticky 70px .app-top header, and the
       window is the scroll container — so scrollIntoView(block:'start') would tuck the
       section heading UNDER the header. scroll-margin-top leaves room so the wizard
       lands with the heading visible. Covers every parent/teacher deep-link anchor. */
    #lc-next, #lc-upcoming, #lc-children, #lc-history, #lc-recordings,
    #lc-booked, #lc-book, #lc-tools, #lc-avail { scroll-margin-top: 88px; }

    /* Shared loading spinner — used wherever a page/panel is fetching data. Put the
       class on the placeholder element; it shows an animated ring + the text (drop any
       ⏳ emoji from the text). Sizes: .sm / default / .lg. */
    .lc-loading { display:flex; align-items:center; justify-content:center; gap:10px; color:var(--muted,#5b6b8c); font-weight:700; padding:28px 16px; }
    .lc-loading::before { content:""; width:18px; height:18px; flex:0 0 auto; border:2.5px solid var(--line-2,#e6e9f2); border-top-color:var(--brand,#2e63d6); border-radius:50%; animation:lcSpin .7s linear infinite; }
    .lc-loading.sm::before { width:14px; height:14px; border-width:2px; }
    .lc-loading.lg { padding:44px 16px; } .lc-loading.lg::before { width:26px; height:26px; border-width:3px; }
    @keyframes lcSpin { to { transform:rotate(360deg); } }
    @media (prefers-reduced-motion: reduce){ .lc-loading::before { animation-duration:1.6s; } }
