/* ==========================================================================
   Académie Française Poch Kimhuy — FrenchPro Bespoke UI/UX System (v61)
   Faithful Desktop & Mobile execution:
   - Floating Transparent Hero Navbar -> Frosted White on Scroll & Inner Pages
   - Full-Bleed Cinematic Paris Hero (Midnight Navy Desktop / Sunlit Sky Mobile)
   - Clickable Handwritten "Bonjour ! ♥" Script & Sweeping Tricolor Wave
   - Overlapping 4-Feature Floating Cards (Unified White 4-Icon Bar on Mobile)
   - 3 Landmark Course Cards (Eiffel · Louvre · Sorbonne) with Dot Pills & Circular CTAs
   - Deep Royal Navy Free Starter Kit Promo Banner with Tricolor Ribbon & 3D Gift
   - Cohesive Sky-White & Royal-Blue Design System Across Every Inner Page & Dark Mode
   ========================================================================== */

:root {
  --fp-canvas: #f3f7fd;
  --fp-surface: #ffffff;
  --fp-surface-soft: #eef4fc;
  --fp-navy-deep: #061335;
  --fp-navy: #0b1b3f;
  --fp-blue: #2563eb;
  --fp-blue-deep: #1d4ed8;
  --fp-blue-sky: #3b82f6;
  --fp-blue-soft: #e8f1ff;
  --fp-indigo: #5b5ce6;
  --fp-crimson: #e11d48;
  --fp-gold: #f59e0b;
  --fp-green: #16a34a;
  --fp-purple: #8b5cf6;
  --fp-ink: #0b1b3f;
  --fp-ink-2: #334155;
  --fp-muted: #64748b;
  --fp-border: rgba(15, 35, 85, 0.09);
  --fp-border-strong: rgba(37, 99, 235, 0.22);
  --fp-shadow-sm: 0 4px 14px rgba(15, 35, 85, 0.06);
  --fp-shadow-md: 0 12px 32px rgba(15, 35, 85, 0.08);
  --fp-shadow-lg: 0 22px 48px rgba(15, 35, 85, 0.12);
  --fp-font-sans: "Plus Jakarta Sans", "Kantumruy Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fp-font-script: "Caveat", cursive;

  /* Harmonize Legacy Core Variables Across Inner Pages (#learn, #practice, #speaking, #me, #pricing) */
  --bg: #f3f7fd;
  --bg-subtle: #e9f1fc;
  --surface: #ffffff;
  --surface-alt: #f8fbff;
  --surface-tint: #edf4ff;
  --navy: #0b1b3f;
  --navy-deep: #061335;
  --navy-soft: #1d4ed8;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #e8f1ff;
  --crimson: #e11d48;
  --gold: #f59e0b;
  --ink: #0b1b3f;
  --ink-secondary: #334155;
  --muted: #64748b;
  --border: rgba(15, 35, 85, 0.09);
  --border-strong: rgba(15, 35, 85, 0.16);
}

html,
body {
  background-color: var(--fp-canvas);
  color: var(--fp-ink);
  font-family: var(--fp-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* ==========================================================================
   1. HEADER & NAVIGATION BAR (FLOATING OVER HERO -> FROSTED WHITE ON SCROLL)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 70px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--fp-border);
  box-shadow: 0 2px 12px rgba(15, 35, 85, 0.04);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

/* Desktop Home Top: Transparent Floating Navbar Over Full-Bleed Dark Navy Paris Hero */
body[data-section="home"] .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

body[data-section="home"]:not(.is-scrolled) .site-header {
  background: linear-gradient(180deg, rgba(5, 16, 46, 0.62) 0%, rgba(5, 16, 46, 0) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

body.is-scrolled .site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--fp-border);
  box-shadow: 0 8px 26px rgba(15, 35, 85, 0.08);
}

.site-header .header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0;
  padding-bottom: 0;
}

/* Eiffel Tricolor Brand Lockup */
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
  flex-shrink: 0;
}

.fp-brand-mark {
  width: 38px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fp-navy);
  transition: transform 0.25s ease, color 0.25s ease;
}

.brand:hover .fp-brand-mark {
  transform: translateY(-1px) scale(1.03);
}

.fp-brand-eiffel {
  width: 36px;
  height: 40px;
  display: block;
}

.site-header .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-header .brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  font-family: var(--fp-font-sans);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.site-header .brand-name-fr {
  color: var(--fp-navy);
  transition: color 0.25s ease;
}

.site-header .brand-name-accent {
  color: var(--fp-blue);
  transition: color 0.25s ease;
}

.site-header .brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fp-muted);
  letter-spacing: 0.01em;
  margin-top: 2px;
}

/* Desktop Home Transparent Header Text Colors (White on Midnight Navy) */
body[data-section="home"]:not(.is-scrolled) .fp-brand-mark,
body[data-section="home"]:not(.is-scrolled) .brand-name-fr {
  color: #ffffff;
}

body[data-section="home"]:not(.is-scrolled) .brand-name-accent {
  color: #3b82f6;
}

body[data-section="home"]:not(.is-scrolled) .brand-sub {
  color: rgba(255, 255, 255, 0.74);
}

/* Center Navigation Links */
.site-header .main-nav {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.site-header .nav-inner--5 {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-header .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.52rem 0.96rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fp-ink-2);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.2s ease;
}

.site-header .nav-link .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  flex-shrink: 0;
}

.site-header .nav-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--fp-blue-deep);
}

.site-header .nav-link.active {
  background: var(--fp-blue-soft);
  color: var(--fp-blue-deep);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

/* Desktop Home Active White Pill (EXACT MATCH to Desktop Mockup) */
body[data-section="home"]:not(.is-scrolled) .site-header .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

body[data-section="home"]:not(.is-scrolled) .site-header .nav-link:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

body[data-section="home"]:not(.is-scrolled) .site-header .nav-link.active {
  background: #ffffff;
  color: var(--fp-blue-deep);
  box-shadow: 0 8px 22px rgba(6, 19, 53, 0.22);
}

/* Header Right Actions */
.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.site-header .btn-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 38px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--fp-border);
  background: rgba(255, 255, 255, 0.88);
  color: var(--fp-ink);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.site-header .btn-header-pill:hover {
  background: #ffffff;
  border-color: var(--fp-border-strong);
  color: var(--fp-blue);
}

body[data-section="home"]:not(.is-scrolled) .site-header .btn-header-pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}

body[data-section="home"]:not(.is-scrolled) .site-header .btn-header-pill:hover {
  background: rgba(255, 255, 255, 0.22);
}

body[data-section="home"]:not(.is-scrolled) .site-header .header-smart-pill {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}

.site-header .fp-header-cta,
.site-header #headerAccountBtn {
  height: 40px;
  padding: 0 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.site-header .fp-header-cta:hover,
.site-header #headerAccountBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.44);
  filter: brightness(1.06);
}

/* ==========================================================================
   2. FULL-BLEED CINEMATIC PARIS HERO (DESKTOP & MOBILE)
   ========================================================================== */

#page-home {
  padding: 0;
  margin: 0;
}

.fp-home {
  position: relative;
  background: var(--fp-canvas);
  padding-bottom: 3rem;
}

.fp-hero {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  padding: 122px 0 132px;
  background: linear-gradient(125deg, #051133 0%, #0b235f 48%, #1e4fb8 100%);
  color: #ffffff;
}

.fp-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.fp-hero-photo-desktop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 28%;
  filter: saturate(1.12) contrast(1.04);
  transform: scale(1.02);
}

.fp-hero-photo-eiffel {
  display: none;
}

.fp-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(191, 219, 254, 0.42) 0%, rgba(191, 219, 254, 0) 48%),
    linear-gradient(
      95deg,
      rgba(5, 17, 51, 0.96) 0%,
      rgba(7, 24, 68, 0.93) 34%,
      rgba(10, 35, 96, 0.72) 54%,
      rgba(22, 68, 162, 0.34) 76%,
      rgba(59, 130, 246, 0.14) 100%
    );
}

.fp-hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 2.5rem;
}

/* Left Hero Copy */
.fp-hero-copy {
  max-width: 590px;
}

.fp-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  padding: 0.42rem 1rem 0.42rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 1.25rem;
}

.fp-flag-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.fp-flag-circle .f-b { background: #1d4ed8; }
.fp-flag-circle .f-w { background: #ffffff; }
.fp-flag-circle .f-r { background: #e11d48; }

.fp-hero-title {
  margin: 0 0 1.05rem;
  font-family: var(--fp-font-sans);
  font-size: clamp(2.3rem, 4.1vw, 3.55rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.fp-h1-accent {
  color: #3b82f6;
  text-shadow: 0 6px 26px rgba(59, 130, 246, 0.34);
}

.fp-hero-lead {
  margin: 0 0 1.65rem;
  font-size: 1.04rem;
  line-height: 1.72;
  color: rgba(226, 236, 255, 0.9);
  max-width: 520px;
}

.fp-mobile-underline {
  display: none;
}

/* Hero CTA Row */
.fp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.fp-hero-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  min-height: 54px;
  padding: 0.55rem 1.5rem 0.55rem 0.65rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, filter 0.2s ease;
}

.fp-hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.36);
  filter: brightness(1.06);
}

.fp-hero-cta-primary:active {
  transform: translateY(0) scale(0.985);
}

.fp-cta-play-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--fp-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(6, 19, 53, 0.18);
  flex-shrink: 0;
}

.fp-cta-play-badge .icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  margin-left: 2px;
}

.fp-hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  padding: 0.35rem 0.9rem 0.35rem 0.35rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fp-hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.fp-cta-outline-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.fp-hero-cta-secondary:hover .fp-cta-outline-circle {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.fp-cta-outline-circle .icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  margin-left: 2px;
}

/* Social Proof Avatar Stack + 5 Gold Stars */
.fp-hero-proof {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.fp-avatar-stack {
  display: flex;
  align-items: center;
}

.fp-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(5, 17, 51, 0.28);
  margin-left: -9px;
}

.fp-av:first-child { margin-left: 0; }
.fp-av--1 { background: linear-gradient(135deg, #2563eb, #1e40af); }
.fp-av--2 { background: linear-gradient(135deg, #e11d48, #be123c); }
.fp-av--3 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.fp-av--4 { background: linear-gradient(135deg, #6366f1, #4338ca); }
.fp-av--5 { background: linear-gradient(135deg, #0ea5e9, #0369a1); }

.fp-proof-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fp-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #fbbf24;
}

.fp-stars .icon {
  width: 14px;
  height: 14px;
  fill: #fbbf24;
  stroke: #fbbf24;
}

.fp-proof-text {
  font-size: 0.83rem;
  font-weight: 600;
  color: rgba(235, 243, 255, 0.9);
}

/* Right Stage: Clickable "Bonjour ! ♥" Script + Interactive Paris Card */
.fp-hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  perspective: 1100px;
  min-height: 360px;
}

.fp-bonjour-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.9rem 0.85rem;
  margin-bottom: 0.6rem;
  border: none;
  border-radius: 18px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.86) 0%, rgba(219, 234, 254, 0.56) 62%, rgba(219, 234, 254, 0) 100%);
  color: #0e2e7c;
  cursor: pointer;
  transform: rotate(-8deg);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease;
}

.fp-bonjour-btn:hover {
  transform: rotate(-5deg) scale(1.06);
  filter: drop-shadow(0 8px 18px rgba(37, 99, 235, 0.26));
}

.fp-bonjour-script {
  font-family: var(--fp-font-script);
  font-size: 2.55rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.fp-bonjour-sparks {
  width: 24px;
  height: 22px;
  color: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(14, 46, 124, 0.4));
  margin-right: -4px;
  margin-top: -12px;
}

.fp-bonjour-heart {
  width: 22px;
  height: 22px;
  color: #0e2e7c;
  margin-top: -6px;
}

.fp-bonjour-swoosh {
  position: absolute;
  left: 24px;
  right: 14px;
  bottom: 4px;
  height: 14px;
  color: #1d4ed8;
}

.fp-stage-card {
  position: relative;
  width: 100%;
  max-width: 410px;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 28px 60px rgba(4, 14, 44, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.14);
  background: #0d2252;
  transform-style: preserve-3d;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.fp-stage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-stage-card-overlay {
  position: absolute;
  inset: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(6, 19, 53, 0.14) 0%, rgba(6, 19, 53, 0.04) 48%, rgba(6, 19, 53, 0.72) 100%);
}

.fp-stage-book-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.36rem 0.78rem;
  border-radius: 999px;
  background: rgba(11, 27, 63, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
}

.fp-flag-mini {
  width: 16px;
  height: 11px;
  border-radius: 2px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.fp-flag-mini i:nth-child(1) { background: #1d4ed8; }
.fp-flag-mini i:nth-child(2) { background: #ffffff; }
.fp-flag-mini i:nth-child(3) { background: #e11d48; }

.fp-stage-audio-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.fp-stage-say {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.46rem 0.86rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.94);
  color: var(--fp-navy);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(5, 17, 51, 0.24);
  transition: transform 0.2s ease, background 0.2s ease;
}

.fp-stage-say:hover {
  transform: translateY(-1px);
  background: #ffffff;
  color: var(--fp-blue);
}

.fp-stage-say--alt {
  background: rgba(11, 27, 63, 0.8);
  color: #ffffff;
}

.fp-stage-say--alt:hover {
  background: var(--fp-blue);
  color: #ffffff;
}

.fp-stage-say .icon {
  width: 14px;
  height: 14px;
}

/* Bottom Sweeping Wave + Tricolor Ribbon */
.fp-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 120px;
  z-index: 4;
  pointer-events: none;
}

.fp-hero-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   3. OVERLAPPING 4-FEATURE CARDS STRIP (UNIFIED BAR ON MOBILE)
   ========================================================================== */

.fp-features-section {
  position: relative;
  z-index: 8;
  margin-top: -60px;
  margin-bottom: 3.1rem;
}

.fp-features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.fp-feat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.82rem;
  padding: 1.28rem 1.32rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: var(--fp-surface);
  box-shadow: 0 14px 34px rgba(15, 35, 85, 0.08), 0 2px 6px rgba(15, 35, 85, 0.03);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.22s ease;
}

.fp-feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(15, 35, 85, 0.12);
  border-color: rgba(37, 99, 235, 0.22);
}

.fp-feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.fp-feat-icon .icon {
  width: 22px;
  height: 22px;
}

.fp-feat-icon--blue {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.fp-feat-icon--blue .icon {
  fill: #ffffff;
  margin-left: 2px;
}

.fp-feat-icon--indigo {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.3);
}

.fp-feat-icon--crimson {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.28);
}

.fp-feat-icon--gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.3);
}

.fp-feat-body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.fp-feat-body strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fp-navy);
  line-height: 1.3;
}

.fp-feat-body span {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--fp-muted);
}

/* ==========================================================================
   4. OUR COURSES — A COMPLETE LEARNING JOURNEY (3 LANDMARK CARDS)
   ========================================================================== */

.fp-courses-section {
  position: relative;
  padding: 0.6rem 0 2.8rem;
  overflow: hidden;
}

/* Subtle Parisian Background Script & Passport Stamp */
.fp-paris-script-bg {
  position: absolute;
  left: max(18px, calc(50% - 680px));
  top: 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #1d4ed8;
  opacity: 0.78;
  transform: rotate(-8deg);
  pointer-events: none;
  z-index: 0;
}

.fp-paris-script-bg span {
  font-family: var(--fp-font-script);
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1.08;
}

.fp-paris-script-bg svg {
  width: 122px;
  height: 12px;
  margin-top: 2px;
}

.fp-stamp-bg {
  position: absolute;
  right: max(14px, calc(50% - 690px));
  top: -18px;
  width: 152px;
  height: 152px;
  color: #94a3b8;
  opacity: 0.26;
  transform: rotate(12deg);
  pointer-events: none;
  z-index: 0;
}

.fp-courses-inner {
  position: relative;
  z-index: 2;
}

.fp-courses-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.65rem;
}

.fp-courses-head-copy {
  flex: 1;
  text-align: center;
  padding-left: 112px; /* Visually center against right "View All" button on desktop */
}

.fp-tricolor-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fp-navy);
  margin-bottom: 0.45rem;
}

.fp-dash {
  width: 24px;
  height: 2.5px;
  border-radius: 999px;
}

.fp-dash--blue { background: var(--fp-blue); }
.fp-dash--red { background: var(--fp-crimson); }

.fp-courses-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
  font-weight: 800;
  color: var(--fp-navy);
  letter-spacing: -0.02em;
  line-height: 1.24;
}

.fp-courses-sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fp-muted);
}

.fp-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.56rem 1.08rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: var(--fp-blue-soft);
  color: var(--fp-blue-deep);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.fp-view-all-btn:hover {
  background: var(--fp-blue);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.fp-view-all-btn .icon {
  width: 15px;
  height: 15px;
}

/* 3 Landmark Course Cards */
.fp-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.fp-course-card {
  display: flex;
  flex-direction: column;
  background: var(--fp-surface);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--fp-shadow-md);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.22s ease;
}

.fp-course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--fp-shadow-lg);
  border-color: rgba(37, 99, 235, 0.24);
}

.fp-course-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: visible;
  background: #dbeafe;
}

.fp-course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  border-radius: 22px 22px 0 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.fp-course-card:hover .fp-course-media img {
  transform: scale(1.045);
}

.fp-course-pill {
  position: absolute;
  left: 16px;
  bottom: -14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--fp-navy);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15, 35, 85, 0.12);
  border: 1px solid rgba(15, 35, 85, 0.06);
}

.fp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fp-dot.is-green { background: #22c55e; }
.fp-dot.is-blue { background: #2563eb; }
.fp-dot.is-purple { background: #8b5cf6; }

.fp-course-body {
  padding: 1.55rem 1.3rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}

.fp-course-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--fp-navy);
  line-height: 1.35;
}

.fp-course-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
}

.fp-course-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--fp-muted);
}

.fp-course-go {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.34);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.fp-course-card:hover .fp-course-go {
  transform: translateX(2px) scale(1.06);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.44);
}

.fp-course-go .icon {
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   5. DEEP ROYAL NAVY FREE STARTER KIT PROMO BANNER
   ========================================================================== */

.fp-promo-section {
  padding: 0.2rem 0 2.2rem;
}

.fp-promo-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.55rem 2rem 1.55rem 2.3rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 22% 50%, rgba(59, 130, 246, 0.32) 0%, rgba(59, 130, 246, 0) 52%),
    linear-gradient(120deg, #06153d 0%, #0e2d7d 54%, #071949 100%);
  color: #ffffff;
  box-shadow: 0 20px 44px rgba(6, 21, 61, 0.24);
}

/* Flowing French Tricolor Silk Ribbon on Left Edge */
.fp-promo-ribbon {
  position: absolute;
  left: -14px;
  top: -22px;
  bottom: -22px;
  width: 58px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  transform: rotate(12deg);
  pointer-events: none;
  opacity: 0.94;
}

.fp-promo-ribbon .r-b { background: #1d4ed8; }
.fp-promo-ribbon .r-w { background: #ffffff; }
.fp-promo-ribbon .r-r { background: #e11d48; }

.fp-promo-gift {
  position: relative;
  z-index: 2;
  margin-left: 1.2rem;
  flex-shrink: 0;
}

.fp-gift-svg {
  width: 78px;
  height: 78px;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(3, 10, 30, 0.42));
}

.fp-promo-copy {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}

.fp-promo-kicker {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.22rem;
}

.fp-promo-title {
  margin: 0 0 0.3rem;
  font-size: clamp(1.22rem, 2.2vw, 1.65rem);
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.28;
}

.fp-promo-sub {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(219, 234, 254, 0.86);
  line-height: 1.55;
}

.fp-promo-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.fp-promo-test-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 44px;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fp-promo-test-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.fp-promo-go {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: var(--fp-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(3, 10, 30, 0.28);
  transition: transform 0.22s ease, background 0.2s ease, color 0.2s ease;
}

.fp-promo-go:hover {
  transform: translateX(3px) scale(1.05);
  background: #fbbf24;
  color: var(--fp-navy-deep);
}

.fp-promo-go .icon {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   6. EXTRAS SECTION & COHESIVE INNER PAGES (#learn, #practice, #speaking, #me)
   ========================================================================== */

.fp-extras-section {
  padding-bottom: 1.5rem;
}

.fp-extras-stack {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.fp-extras-stack .first-win-card,
.fp-more-details,
.growth-proof-card {
  background: var(--fp-surface);
  border-radius: 22px;
  border: 1px solid var(--fp-border);
  box-shadow: var(--fp-shadow-sm);
}

.fp-more-details {
  padding: 0.25rem 0.5rem;
}

/* Learn Sidebar Companion Landmark Card */
.fp-side-card {
  background: var(--fp-surface);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--fp-border);
  box-shadow: var(--fp-shadow-md);
  margin-bottom: 1rem;
}

.fp-side-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #dbeafe;
}

.fp-side-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-side-card-copy {
  padding: 1.45rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.fp-side-card-copy strong {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--fp-navy);
}

.fp-side-card-copy small {
  font-size: 0.84rem;
  color: var(--fp-muted);
}

.fp-side-progress {
  margin-top: 0.4rem;
  height: 7px;
  border-radius: 999px;
  background: var(--fp-blue-soft);
  overflow: hidden;
}

.fp-side-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  transition: width 0.4s ease;
}

/* Cohesive FrenchPro Polish on Inner Pages */
.page-header,
.page-header--compact {
  background: linear-gradient(180deg, #e8f1ff 0%, var(--fp-canvas) 100%);
  border-bottom: 1px solid var(--fp-border);
}

.page-title {
  color: var(--fp-navy);
  font-weight: 800;
}

.btn-primary,
.btn-giant-cta,
.track-next-cta {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: transparent;
  border-radius: 999px;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover,
.btn-giant-cta:hover,
.track-next-cta:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.38);
}

.track-card,
.track-next-hero,
.practice-card,
.me-card,
.pricing-card,
.speaking-card,
.lesson-card,
.content-card {
  border-radius: 20px;
  border-color: var(--fp-border);
  box-shadow: var(--fp-shadow-sm);
}

/* Tactile Audio Pulse */
.is-audio-pulse {
  animation: fpAudioPulse 0.42s ease;
}

@keyframes fpAudioPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   7. PURE-WHITE 5-TAB MOBILE BOTTOM NAVIGATION (EXACT MATCH TO MOBILE MOCKUP)
   ========================================================================== */

.mobile-bottom-nav--5 {
  background: #ffffff;
  border-top: 1px solid rgba(15, 35, 85, 0.08);
  box-shadow: 0 -8px 26px rgba(15, 35, 85, 0.08);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0.4rem 0.35rem calc(0.42rem + env(safe-area-inset-bottom, 0px));
}

.mobile-bottom-nav--5 .mbn-item {
  color: #64748b;
  font-weight: 600;
  gap: 0.18rem;
  border-radius: 14px;
  padding: 0.28rem 0.1rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-bottom-nav--5 .mbn-item .icon {
  width: 21px;
  height: 21px;
}

.mobile-bottom-nav--5 .mbn-label {
  font-size: 0.68rem;
  line-height: 1.2;
}

.mobile-bottom-nav--5 .mbn-item.active {
  color: var(--fp-blue);
  font-weight: 700;
  background: transparent;
}

.mobile-bottom-nav--5 .mbn-item.active .mbn-icon {
  color: var(--fp-blue);
  transform: translateY(-1px);
}

/* ==========================================================================
   8. RESPONSIVE TABLET & MOBILE — EXACT MOBILE MOCKUP EXECUTION (<= 768px)
   ========================================================================== */

@media (max-width: 1024px) {
  .fp-hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1.6rem;
  }

  .fp-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-courses-head-copy {
    padding-left: 0;
    text-align: left;
  }

  .fp-paris-script-bg,
  .fp-stamp-bg {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 62px;
  }

  /* Mobile Home Header: Airy Sunlit Sky Top With Dark-Navy Eiffel Brand (EXACT MATCH) */
  body[data-section="home"]:not(.is-scrolled) .site-header {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
  }

  body[data-section="home"]:not(.is-scrolled) .fp-brand-mark,
  body[data-section="home"]:not(.is-scrolled) .brand-name-fr {
    color: var(--fp-navy);
  }

  body[data-section="home"]:not(.is-scrolled) .brand-name-accent {
    color: var(--fp-blue);
  }

  body[data-section="home"]:not(.is-scrolled) .brand-sub {
    color: #334e7b;
  }

  body[data-section="home"]:not(.is-scrolled) .site-header .btn-header-pill {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 35, 85, 0.08);
    color: var(--fp-navy);
    box-shadow: 0 6px 18px rgba(15, 35, 85, 0.1);
  }

  .site-header .brand-name {
    font-size: 1.05rem;
  }

  .site-header .brand-sub {
    display: block;
    font-size: 0.68rem;
  }

  .site-header .fp-header-cta .btn-label {
    display: none;
  }

  .site-header .fp-header-cta,
  .site-header #headerAccountBtn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
  }

  .site-header .btn-header-pill span {
    display: none;
  }

  .site-header .btn-header-pill {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
  }

  /* MOBILE HERO: Sunlit Parisian Sky-Blue-to-White Canvas + Right Eiffel Tower */
  .fp-hero {
    min-height: 415px;
    padding: 78px 0 74px;
    background: linear-gradient(155deg, #c2dfff 0%, #dcecff 42%, #eef6ff 78%, var(--fp-canvas) 100%);
    color: var(--fp-navy);
  }

  .fp-hero-photo-desktop {
    display: none;
  }

  .fp-hero-photo-eiffel {
    display: block;
    position: absolute;
    right: -12%;
    top: 0;
    width: 68%;
    height: 100%;
    object-fit: cover;
    object-position: center 14%;
    opacity: 0.92;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 26%, rgba(0, 0, 0, 1) 58%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 26%, rgba(0, 0, 0, 1) 58%);
  }

  .fp-hero-scrim {
    background:
      linear-gradient(90deg, rgba(226, 240, 255, 0.96) 0%, rgba(232, 243, 255, 0.88) 44%, rgba(232, 243, 255, 0.14) 72%, rgba(59, 130, 246, 0.08) 100%),
      linear-gradient(180deg, rgba(203, 228, 255, 0.45) 0%, rgba(243, 247, 253, 0) 40%, rgba(243, 247, 253, 0.92) 94%);
  }

  .fp-hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .fp-hero-copy {
    max-width: 100%;
    position: relative;
    z-index: 3;
  }

  .fp-hero-pill,
  .fp-hero-cta-secondary,
  .fp-hero-proof {
    display: none;
  }

  .fp-hero-title {
    max-width: 68%;
    font-size: clamp(1.92rem, 7.6vw, 2.55rem);
    line-height: 1.15;
    color: var(--fp-navy);
    margin-bottom: 0.72rem;
  }

  .fp-h1-accent {
    color: var(--fp-blue);
    text-shadow: none;
  }

  .fp-hero-lead {
    max-width: 66%;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #1e335c;
    margin-bottom: 0.35rem;
  }

  .fp-mobile-underline {
    display: block;
    width: 132px;
    height: 11px;
    margin: 0 0 1.05rem;
  }

  .fp-hero-actions {
    margin-bottom: 0;
  }

  .fp-hero-cta-primary {
    width: auto;
    min-width: 235px;
    min-height: 50px;
    padding: 0.48rem 1.35rem 0.48rem 0.6rem;
    font-size: 0.94rem;
  }

  /* Float Handwritten "Bonjour ! ♥" in Upper-Right Sky Next to Eiffel Tower */
  .fp-hero-stage {
    position: absolute;
    top: -12px;
    right: 0;
    min-height: auto;
    pointer-events: none;
  }

  .fp-stage-card {
    display: none;
  }

  .fp-bonjour-btn {
    pointer-events: auto;
    padding: 0.25rem 0.55rem 0.6rem;
    margin: 0;
    background: transparent;
    color: #103282;
  }

  .fp-bonjour-script {
    font-size: 1.68rem;
  }

  .fp-bonjour-sparks {
    display: none;
  }

  .fp-bonjour-heart {
    width: 16px;
    height: 16px;
  }

  .fp-hero-wave {
    height: 56px;
  }

  /* MOBILE 4-FEATURE UNIFIED FLOATING WHITE BAR (EXACT MATCH TO MOBILE MOCKUP) */
  .fp-features-section {
    margin-top: -42px;
    margin-bottom: 1.55rem;
  }

  .fp-features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: #ffffff;
    border-radius: 22px;
    padding: 0.72rem 0.25rem;
    box-shadow: 0 12px 30px rgba(15, 35, 85, 0.1), 0 1px 4px rgba(15, 35, 85, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.98);
  }

  .fp-feat-card {
    align-items: center;
    text-align: center;
    gap: 0.42rem;
    padding: 0.25rem 0.28rem;
    border-radius: 0;
    border: none;
    border-right: 1px solid rgba(15, 35, 85, 0.08);
    background: transparent;
    box-shadow: none;
  }

  .fp-feat-card:last-child {
    border-right: none;
  }

  .fp-feat-card:hover {
    transform: none;
    box-shadow: none;
  }

  .fp-feat-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .fp-feat-icon .icon {
    width: 19px;
    height: 19px;
  }

  .fp-feat-body strong {
    font-size: 0.72rem;
    line-height: 1.28;
    font-weight: 700;
  }

  .fp-feat-body span {
    display: none;
  }

  /* MOBILE COURSES SECTION (3 SIDE-BY-SIDE SCROLLABLE LANDMARK CARDS) */
  .fp-courses-section {
    padding: 0.1rem 0 1.45rem;
  }

  .fp-courses-head {
    align-items: flex-start;
    margin-bottom: 1rem;
  }

  .fp-courses-head-copy {
    padding-left: 0;
    text-align: left;
  }

  .fp-tricolor-eyebrow {
    font-size: 0.8rem;
    margin-bottom: 0.22rem;
  }

  .fp-dash--red {
    display: none;
  }

  .fp-courses-title {
    font-size: 1.28rem;
    margin-bottom: 0.2rem;
  }

  .fp-courses-sub {
    font-size: 0.8rem;
  }

  .fp-view-all-btn {
    padding: 0.42rem 0.8rem;
    font-size: 0.76rem;
    margin-top: 0.35rem;
  }

  .fp-courses-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(156px, 43vw);
    grid-template-columns: none;
    gap: 0.72rem;
    overflow-x: auto;
    padding: 0.2rem 0.15rem 0.65rem;
    margin: 0 -0.15rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .fp-courses-grid::-webkit-scrollbar {
    display: none;
  }

  .fp-course-card {
    scroll-snap-align: start;
    border-radius: 18px;
  }

  .fp-course-media {
    aspect-ratio: 4 / 3;
  }

  .fp-course-media img {
    border-radius: 18px 18px 0 0;
  }

  .fp-course-pill {
    left: 10px;
    bottom: -11px;
    padding: 0.22rem 0.56rem;
    font-size: 0.66rem;
  }

  .fp-dot {
    width: 6px;
    height: 6px;
  }

  .fp-course-body {
    padding: 1.12rem 0.78rem 0.82rem;
    gap: 0.35rem;
  }

  .fp-course-title {
    font-size: 0.86rem;
    line-height: 1.3;
  }

  .fp-course-desc {
    font-size: 0.7rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .fp-course-go {
    width: 28px;
    height: 28px;
  }

  .fp-course-go .icon {
    width: 14px;
    height: 14px;
  }

  /* MOBILE DEEP NAVY PROMO BANNER (EXACT MATCH TO MOBILE MOCKUP BOTTOM) */
  .fp-promo-section {
    padding: 0.1rem 0 1.4rem;
  }

  .fp-promo-banner {
    padding: 1rem 1rem 1rem 1.25rem;
    gap: 0.72rem;
    border-radius: 20px;
  }

  .fp-promo-ribbon {
    width: 38px;
    left: -12px;
  }

  .fp-promo-gift {
    margin-left: 0.55rem;
  }

  .fp-gift-svg {
    width: 56px;
    height: 56px;
  }

  .fp-promo-kicker {
    font-size: 0.74rem;
    margin-bottom: 0.1rem;
  }

  .fp-promo-title {
    font-size: 0.98rem;
    margin-bottom: 0.16rem;
  }

  .fp-promo-sub {
    font-size: 0.72rem;
    line-height: 1.38;
  }

  .fp-promo-test-btn {
    display: none;
  }

  .fp-promo-go {
    width: 38px;
    height: 38px;
  }

  .fp-promo-go .icon {
    width: 17px;
    height: 17px;
  }
}

/* ==========================================================================
   9. DARK MODE HARMONY (html[data-theme="dark"])
   ========================================================================== */

html[data-theme="dark"] {
  --fp-canvas: #081226;
  --fp-surface: #0f1d38;
  --fp-surface-soft: #152748;
  --fp-ink: #f1f5ff;
  --fp-ink-2: #cbd5e1;
  --fp-muted: #94a3b8;
  --fp-border: rgba(148, 163, 184, 0.16);
  --fp-blue-soft: rgba(37, 99, 235, 0.22);

  --bg: #081226;
  --bg-subtle: #0d1a33;
  --surface: #0f1d38;
  --surface-alt: #132342;
  --surface-tint: #16294b;
  --navy: #f1f5ff;
  --ink: #f1f5ff;
  --ink-secondary: #cbd5e1;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] body.is-scrolled .site-header {
  background: rgba(8, 18, 38, 0.92);
  border-bottom-color: rgba(148, 163, 184, 0.15);
}

html[data-theme="dark"] .fp-brand-mark,
html[data-theme="dark"] .brand-name-fr {
  color: #ffffff;
}

html[data-theme="dark"] .site-header .nav-link {
  color: #cbd5e1;
}

html[data-theme="dark"] .site-header .nav-link.active {
  background: rgba(37, 99, 235, 0.26);
  color: #93c5fd;
}

html[data-theme="dark"] body[data-section="home"]:not(.is-scrolled) .site-header .nav-link.active {
  background: #ffffff;
  color: var(--fp-blue-deep);
}

html[data-theme="dark"] .fp-feat-card,
html[data-theme="dark"] .fp-course-card,
html[data-theme="dark"] .fp-side-card,
html[data-theme="dark"] .fp-more-details,
html[data-theme="dark"] .fp-extras-stack .first-win-card {
  background: var(--fp-surface);
  border-color: var(--fp-border);
}

html[data-theme="dark"] .fp-course-pill {
  background: #0f1d38;
  color: #f1f5ff;
  border-color: rgba(148, 163, 184, 0.22);
}

html[data-theme="dark"] .fp-feat-body strong,
html[data-theme="dark"] .fp-courses-title,
html[data-theme="dark"] .fp-course-title,
html[data-theme="dark"] .fp-tricolor-eyebrow,
html[data-theme="dark"] .fp-side-card-copy strong {
  color: #f8fafc;
}

html[data-theme="dark"] .fp-view-all-btn {
  background: rgba(37, 99, 235, 0.24);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.3);
}

html[data-theme="dark"] .mobile-bottom-nav--5 {
  background: #0c1830;
  border-top-color: rgba(148, 163, 184, 0.15);
}

html[data-theme="dark"] .mobile-bottom-nav--5 .mbn-item {
  color: #94a3b8;
}

html[data-theme="dark"] .mobile-bottom-nav--5 .mbn-item.active {
  color: #60a5fa;
}

@media (max-width: 768px) {
  html[data-theme="dark"] .fp-hero {
    background: linear-gradient(155deg, #061335 0%, #0d2255 58%, #081226 100%);
    color: #ffffff;
  }

  html[data-theme="dark"] .fp-hero-scrim {
    background:
      linear-gradient(90deg, rgba(6, 19, 53, 0.94) 0%, rgba(10, 29, 77, 0.82) 52%, rgba(10, 29, 77, 0.25) 100%),
      linear-gradient(180deg, rgba(6, 19, 53, 0.35) 0%, rgba(8, 18, 38, 0.92) 96%);
  }

  html[data-theme="dark"] .fp-hero-title,
  html[data-theme="dark"] body[data-section="home"]:not(.is-scrolled) .fp-brand-mark,
  html[data-theme="dark"] body[data-section="home"]:not(.is-scrolled) .brand-name-fr {
    color: #ffffff;
  }

  html[data-theme="dark"] .fp-hero-lead,
  html[data-theme="dark"] body[data-section="home"]:not(.is-scrolled) .brand-sub {
    color: #cbd5e1;
  }

  html[data-theme="dark"] .fp-bonjour-btn,
  html[data-theme="dark"] .fp-bonjour-heart {
    color: #bfdbfe;
  }

  html[data-theme="dark"] .fp-features-grid {
    background: #0f1d38;
    border-color: rgba(148, 163, 184, 0.16);
  }

  html[data-theme="dark"] .fp-feat-card {
    border-right-color: rgba(148, 163, 184, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-hero-cta-primary,
  .fp-feat-card,
  .fp-course-card,
  .fp-course-media img,
  .fp-bonjour-btn,
  .fp-promo-go {
    transition: none;
  }
}

/* ==========================================================================
   10. LEGACY SPECIFICITY GUARD (EXACT FLOATING NAV PILL — LIGHT & DARK MODE)
   ========================================================================== */

.site-header::before,
.site-header::after,
.site-header .main-nav .nav-link::after,
.nav-link.active::after {
  display: none !important;
  content: none !important;
}

/* Remove legacy frosted rectangular box & border behind nav links */
.site-header .main-nav,
html[data-theme="dark"] .site-header .main-nav,
.site-header .nav-inner,
.site-header .nav-inner--5 {
  position: static !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

.site-header .nav-inner--5 {
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

/* Transparent Hero Header in BOTH Light & Dark Mode (zero bottom border line) */
body[data-section="home"]:not(.is-scrolled) .site-header,
html[data-theme="dark"] body[data-section="home"]:not(.is-scrolled) .site-header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* Sleek compact pill geometry matching Desktop mockup (overrides legacy min-height: 52px) */
.site-header .main-nav .nav-link,
html[data-theme="dark"] .site-header .main-nav .nav-link {
  min-height: 0 !important;
  height: 38px !important;
  padding: 0 1.02rem !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  gap: 0.44rem !important;
  background: transparent;
}

.site-header .main-nav .nav-link .icon {
  width: 16px !important;
  height: 16px !important;
  color: currentColor !important;
  stroke: currentColor !important;
}

/* Active pill on inner pages (Light Mode) */
.site-header .main-nav .nav-link.active {
  background: var(--fp-blue-soft) !important;
  color: #1d4ed8 !important;
  font-weight: 700 !important;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16) !important;
}

.site-header .main-nav .nav-link.active .icon {
  color: #2563eb !important;
  stroke: #2563eb !important;
}

/* Active pill on inner pages (Dark Mode) */
html[data-theme="dark"] .site-header .main-nav .nav-link.active {
  background: rgba(37, 99, 235, 0.28) !important;
  color: #93c5fd !important;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.28) !important;
}

html[data-theme="dark"] .site-header .main-nav .nav-link.active .icon {
  color: #93c5fd !important;
  stroke: #93c5fd !important;
}

/* Floating Hero Nav on Home (BOTH Light & Dark Mode: Crisp White Inactive + Pure White Active Pill with Blue Icon) */
body[data-section="home"]:not(.is-scrolled) .site-header .main-nav .nav-link,
html[data-theme="dark"] body[data-section="home"]:not(.is-scrolled) .site-header .main-nav .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-section="home"]:not(.is-scrolled) .site-header .main-nav .nav-link:hover,
html[data-theme="dark"] body[data-section="home"]:not(.is-scrolled) .site-header .main-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

body[data-section="home"]:not(.is-scrolled) .site-header .main-nav .nav-link.active,
html[data-theme="dark"] body[data-section="home"]:not(.is-scrolled) .site-header .main-nav .nav-link.active {
  background: #ffffff !important;
  color: #1d4ed8 !important;
  font-weight: 700 !important;
  padding: 0 1.18rem !important;
  box-shadow: 0 6px 20px rgba(4, 14, 44, 0.22) !important;
}

body[data-section="home"]:not(.is-scrolled) .site-header .main-nav .nav-link.active .icon,
html[data-theme="dark"] body[data-section="home"]:not(.is-scrolled) .site-header .main-nav .nav-link.active .icon {
  color: #2563eb !important;
  stroke: #2563eb !important;
}

/* Always show Desktop Floating Navbar on Home (even on first visit when body.landing-mode is set) */
@media (min-width: 769px) {
  body.landing-mode:not(.focus-mode) .main-nav {
    display: block !important;
  }

  .mobile-bottom-nav--5 {
    display: none !important;
  }
}

/* Always show Pure-White 5-Tab Mobile Bottom Nav on Mobile Home & Inner Pages (hidden in Focus Mode) */
@media (max-width: 768px) {
  body:not(.focus-mode) .mobile-bottom-nav.mobile-bottom-nav--5,
  body.landing-mode:not(.focus-mode) .mobile-bottom-nav.mobile-bottom-nav--5 {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  body.landing-mode .site-header .main-nav,
  .site-header .main-nav {
    display: none !important;
  }

  body:not(.focus-mode) .fp-home {
    padding-bottom: 5.5rem;
  }
}

body.focus-mode .site-header,
body.focus-mode .main-nav,
body.focus-mode .mobile-bottom-nav {
  display: none !important;
}

/* ==========================================================================
   11. FRENCHPRO #LEARN COURSE DASHBOARD (EXACT SIBLING OF HOME PAGE UX/UI)
   ========================================================================== */

/* Make #learn path view full-bleed right under floating transparent navbar */
body.learn-path-mode:not(.focus-mode) #page-learn .page-header {
  display: none !important;
}

body.learn-path-mode:not(.focus-mode) #page-learn > .container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.learn-path-mode:not(.focus-mode) #learnLevelPicker {
  padding: 0 !important;
  margin: 0 !important;
}

/* Floating transparent navbar over full-bleed Learn Hero (exact match to Home) */
body.learn-path-mode:not(.focus-mode) .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

body.learn-path-mode:not(.focus-mode):not(.is-scrolled) .site-header,
html[data-theme="dark"] body.learn-path-mode:not(.focus-mode):not(.is-scrolled) .site-header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body.learn-path-mode:not(.focus-mode):not(.is-scrolled) .fp-brand-mark,
body.learn-path-mode:not(.focus-mode):not(.is-scrolled) .brand-name-fr {
  color: #ffffff;
}

body.learn-path-mode:not(.focus-mode):not(.is-scrolled) .brand-name-accent {
  color: #3b82f6;
}

body.learn-path-mode:not(.focus-mode):not(.is-scrolled) .brand-sub {
  color: rgba(255, 255, 255, 0.74);
}

body.learn-path-mode:not(.focus-mode):not(.is-scrolled) .site-header .main-nav .nav-link,
html[data-theme="dark"] body.learn-path-mode:not(.focus-mode):not(.is-scrolled) .site-header .main-nav .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.learn-path-mode:not(.focus-mode):not(.is-scrolled) .site-header .main-nav .nav-link:hover,
html[data-theme="dark"] body.learn-path-mode:not(.focus-mode):not(.is-scrolled) .site-header .main-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

body.learn-path-mode:not(.focus-mode):not(.is-scrolled) .site-header .main-nav .nav-link.active,
html[data-theme="dark"] body.learn-path-mode:not(.focus-mode):not(.is-scrolled) .site-header .main-nav .nav-link.active {
  background: #ffffff !important;
  color: #1d4ed8 !important;
  font-weight: 700 !important;
  padding: 0 1.18rem !important;
  box-shadow: 0 6px 20px rgba(4, 14, 44, 0.22) !important;
}

body.learn-path-mode:not(.focus-mode):not(.is-scrolled) .site-header .main-nav .nav-link.active .icon,
html[data-theme="dark"] body.learn-path-mode:not(.focus-mode):not(.is-scrolled) .site-header .main-nav .nav-link.active .icon {
  color: #2563eb !important;
  stroke: #2563eb !important;
}

body.learn-path-mode:not(.focus-mode):not(.is-scrolled) .site-header .btn-header-pill,
body.learn-path-mode:not(.focus-mode):not(.is-scrolled) .site-header .header-smart-pill {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* Learn Page Wrapper */
.fp-learn-page {
  background: var(--fp-canvas);
  padding-bottom: 3.5rem;
}

/* 1. Full-Bleed Paris Course Hero */
.fp-learn-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 116px;
  background: linear-gradient(125deg, #051133 0%, #0b235f 52%, #1d4ed8 100%);
  color: #ffffff;
}

.fp-learn-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.fp-learn-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 30%;
  filter: saturate(1.1) contrast(1.04);
}

.fp-learn-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 24%, rgba(147, 197, 253, 0.34) 0%, rgba(147, 197, 253, 0) 48%),
    linear-gradient(
      95deg,
      rgba(5, 17, 51, 0.96) 0%,
      rgba(7, 24, 68, 0.93) 40%,
      rgba(12, 39, 108, 0.78) 64%,
      rgba(22, 68, 162, 0.44) 100%
    );
}

.fp-learn-hero-wrap {
  position: relative;
  z-index: 3;
}

/* Instant 6-Level Switcher Pills */
.fp-level-tabs {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.2rem 0 1.45rem;
  scrollbar-width: none;
}

.fp-level-tabs::-webkit-scrollbar {
  display: none;
}

.fp-level-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.46rem 0.96rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fp-level-tab:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.fp-level-tab-code {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.fp-level-tab-meta {
  font-size: 0.76rem;
  opacity: 0.85;
}

.fp-level-tab.is-active {
  background: #ffffff;
  border-color: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 8px 22px rgba(4, 14, 44, 0.24);
}

.fp-level-tab.is-active .fp-level-tab-meta {
  color: #475569;
  opacity: 1;
}

/* 2-Column Hero Grid */
.fp-learn-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr);
  align-items: center;
  gap: 2.2rem;
}

.fp-learn-hero-copy {
  min-width: 0;
}

.fp-learn-hero-title {
  margin: 0 0 0.95rem;
  font-family: var(--fp-font-sans);
  font-size: clamp(1.72rem, 3vw, 2.48rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.fp-learn-hero-lead {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(226, 236, 255, 0.92);
}

/* High-Contrast Frosted Mint-Emerald Outcome Pill (100% Readable on Deep Navy!) */
.fp-learn-outcome {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1.05rem;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(110, 231, 183, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ecfdf5;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.15rem;
}

.fp-learn-outcome strong {
  color: #6ee7b7;
  font-weight: 700;
}

.fp-learn-outcome-ico {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  flex-shrink: 0;
  margin-top: 2px;
}

.fp-learn-outcome-ico .icon {
  width: 18px;
  height: 18px;
}

/* Hero Progress Bar */
.fp-learn-progress-row {
  margin-bottom: 1.4rem;
  max-width: 520px;
}

.fp-learn-prog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: rgba(219, 234, 254, 0.9);
  margin-bottom: 0.45rem;
}

.fp-learn-prog-top strong {
  color: #ffffff;
  font-weight: 700;
}

.fp-learn-prog-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.fp-learn-prog-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #3b82f6, #fbbf24);
  transition: width 0.45s ease;
}

/* Secondary Ghost Button in Hero */
.fp-learn-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 50px;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fp-learn-ghost-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.fp-learn-ghost-btn .icon {
  width: 17px;
  height: 17px;
}

/* Right Framed Lesson Photo Stage */
.fp-learn-hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  perspective: 1000px;
}

.fp-learn-script {
  font-family: var(--fp-font-script);
  font-size: 2rem;
  font-weight: 700;
  color: #dbeafe;
  transform: rotate(-7deg);
  margin-bottom: 0.35rem;
  margin-right: 0.4rem;
  text-shadow: 0 4px 14px rgba(5, 17, 51, 0.5);
}

.fp-learn-photo-card {
  position: relative;
  width: 100%;
  max-width: 390px;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 26px 54px rgba(4, 14, 44, 0.45);
  background: #0d2252;
}

.fp-learn-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-learn-photo-overlay {
  position: absolute;
  inset: 0;
  padding: 0.9rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(6, 19, 53, 0) 45%, rgba(6, 19, 53, 0.68) 100%);
}

.fp-learn-photo-overlay .fp-course-pill {
  position: static;
  box-shadow: 0 6px 16px rgba(4, 14, 44, 0.25);
}

.fp-learn-pct-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.38);
}

/* 2. Overlapping 4-Stat Strip */
.fp-learn-stats {
  position: relative;
  z-index: 8;
  margin-top: -54px;
  margin-bottom: 2.3rem;
}

.fp-feat-card--static {
  cursor: default;
}

.fp-feat-card--static:hover {
  transform: translateY(-2px);
}

/* 3. Full-Width 2-Column Workspace (ZERO Wasted Empty Margins!) */
.fp-learn-body .container {
  max-width: 1240px;
}

.fp-learn-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  gap: 1.8rem;
  align-items: start;
}

.fp-learn-main {
  min-width: 0;
}

.fp-learn-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.fp-learn-sec-title {
  margin: 0 0 0.28rem;
  font-size: clamp(1.38rem, 2.2vw, 1.82rem);
  font-weight: 800;
  color: var(--fp-navy);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fp-learn-sec-code {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.62rem;
  border-radius: 999px;
  background: var(--fp-blue-soft);
  color: var(--fp-blue-deep);
  font-size: 0.86rem;
  font-weight: 800;
}

.fp-learn-sec-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--fp-muted);
}

/* 2-Column Visual FrenchPro Lesson Cards Grid */
.fp-lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.fp-les-card {
  display: flex;
  flex-direction: column;
  background: var(--fp-surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--fp-border);
  box-shadow: var(--fp-shadow-sm);
  cursor: pointer;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.22s ease;
}

.fp-les-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fp-shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

.fp-les-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.fp-les-card.is-current {
  border: 2px solid var(--fp-blue);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.16);
}

.fp-les-card.is-done {
  border-color: rgba(22, 163, 74, 0.24);
}

.fp-les-card.is-pro {
  opacity: 0.94;
}

.fp-les-media {
  position: relative;
  aspect-ratio: 16 / 8.8;
  background: #dbeafe;
  overflow: visible;
}

.fp-les-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px 18px 0 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.fp-les-card:hover .fp-les-media img {
  transform: scale(1.04);
}

.fp-les-card.is-pro .fp-les-media img {
  filter: saturate(0.78);
}

.fp-les-num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 0.26rem 0.68rem;
  border-radius: 999px;
  background: rgba(6, 19, 53, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fp-les-pill {
  left: 14px;
  bottom: -13px;
  font-size: 0.74rem;
  padding: 0.26rem 0.72rem;
}

.fp-dot.is-gold { background: #f59e0b; }
.fp-dot.is-slate { background: #94a3b8; }
.fp-dot.is-pulse {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.24);
}

.fp-les-body {
  padding: 1.38rem 1.15rem 1.05rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.36rem;
}

.fp-les-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--fp-navy);
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fp-les-fr {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fp-blue);
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-les-outcome {
  margin: 0.18rem 0 0;
  font-size: 0.82rem;
  line-height: 1.48;
  color: var(--fp-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fp-les-steps {
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.fp-les-bars {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.fp-les-seg {
  height: 6px;
  flex: 1;
  border-radius: 999px;
  background: var(--fp-blue-soft);
}

.fp-les-seg.is-ok {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.fp-les-steps small {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--fp-blue-deep);
  white-space: nowrap;
}

.fp-les-foot {
  margin-top: auto;
  padding-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.fp-les-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fp-muted);
}

.fp-les-meta .icon {
  width: 14px;
  height: 14px;
}

.fp-les-go {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--fp-blue-soft);
  color: var(--fp-blue-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.fp-les-go .icon {
  width: 16px;
  height: 16px;
}

.fp-les-go--primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.34);
}

.fp-les-go--primary .icon {
  fill: currentColor;
  margin-left: 1px;
}

.fp-les-go--done {
  background: #dcfce7;
  color: #15803d;
}

.fp-les-go--lock {
  background: #f1f5f9;
  color: #64748b;
}

.fp-les-card:hover .fp-les-go:not(.fp-les-go--lock) {
  transform: translateX(2px) scale(1.06);
  background: var(--fp-blue);
  color: #ffffff;
}

/* Sticky Companion Sidebar */
.fp-learn-side {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.fp-learn-side .daily-goal-card,
.fp-learn-side .learn-goal-strip,
.fp-learn-side .cefr-std-card,
.fp-learn-side .goal-shortcut-card,
.fp-learn-side .streak-trial-banner {
  background: var(--fp-surface) !important;
  border-radius: 20px !important;
  border: 1px solid var(--fp-border) !important;
  box-shadow: var(--fp-shadow-sm) !important;
  margin: 0 !important;
}

.fp-side-promo {
  padding: 1.3rem 1.25rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #06153d 0%, #0f2f82 100%);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(6, 21, 61, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fp-side-promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fbbf24;
}

.fp-side-promo-tag .icon {
  width: 15px;
  height: 15px;
}

.fp-side-promo strong {
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.35;
}

.fp-side-promo p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(219, 234, 254, 0.88);
}

.fp-side-promo-btn {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 40px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: var(--fp-navy);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.fp-side-promo-btn:hover {
  transform: translateY(-1px);
  background: #fbbf24;
}

/* Responsive Learn Dashboard */
@media (max-width: 1080px) {
  .fp-learn-shell {
    grid-template-columns: 1fr;
  }

  .fp-learn-side {
    position: static;
  }

  .fp-learn-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .fp-learn-hero {
    padding: 76px 0 82px;
  }

  .fp-learn-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .fp-learn-hero-stage {
    display: none;
  }

  .fp-learn-hero-title {
    font-size: 1.48rem;
  }

  .fp-learn-outcome {
    font-size: 0.84rem;
    padding: 0.72rem 0.88rem;
  }

  .fp-learn-ghost-btn {
    display: none;
  }

  .fp-learn-stats {
    margin-top: -38px;
    margin-bottom: 1.45rem;
  }

  .fp-lesson-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .fp-learn-page {
    padding-bottom: 5.5rem;
  }
}

/* Dark Mode for Learn Dashboard */
html[data-theme="dark"] .fp-les-card {
  background: var(--fp-surface);
  border-color: var(--fp-border);
}

html[data-theme="dark"] .fp-les-card.is-current {
  border-color: #3b82f6;
}

html[data-theme="dark"] .fp-les-title,
html[data-theme="dark"] .fp-learn-sec-title {
  color: #f8fafc;
}

html[data-theme="dark"] .fp-les-fr {
  color: #60a5fa;
}

html[data-theme="dark"] .fp-les-go--lock {
  background: rgba(148, 163, 184, 0.16);
  color: #94a3b8;
}

html[data-theme="dark"] .fp-les-go--done {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

/* ==========================================================================
   9. LESSON ARCADE & SMART 5-WORD VOCABULARY STUDIO (v64)
   - Zero Cognitive Overload (5-word thematic chunks + memory hooks + peek + blitz)
   - Embedded Study-Helper Games inside EVERY lesson (Match, Audio Catch, Builder)
   ========================================================================== */

/* Learn Card Arcade Pill */
.fp-les-meta-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.fp-les-arcade-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  padding: 0.2rem 0.56rem;
  border-radius: 999px;
  background: var(--fp-blue-soft);
  color: var(--fp-blue-deep);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.fp-les-arcade-pill .icon {
  width: 12px;
  height: 12px;
}

.fp-les-arcade-pill.is-lit {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.32);
}

/* Lesson Header Quick Game CTA & Stars */
.lesson-clean-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.la-head-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.la-head-stars .icon {
  width: 13px;
  height: 13px;
  fill: #f59e0b;
  color: #f59e0b;
}

.la-quick-game-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.44rem 0.88rem;
  border-radius: 999px;
  border: 1.5px solid rgba(37, 99, 235, 0.24);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.26);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.18s ease;
}

.la-quick-game-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.34);
  filter: brightness(1.04);
}

.la-quick-game-btn .icon {
  width: 15px;
  height: 15px;
}

/* Smart Vocab Studio Container */
.la-studio-wrap,
.la-step4-wrap,
.la-arena-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.la-studio-head {
  background: linear-gradient(160deg, #ffffff 0%, #f5f9ff 100%);
  border: 1.5px solid var(--fp-border);
  border-radius: 22px;
  padding: 1.25rem 1.3rem 1.1rem;
  box-shadow: var(--fp-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.la-studio-head-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.9fr);
  gap: 1.15rem;
  align-items: center;
}

.la-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.24rem 0.72rem;
  border-radius: 999px;
  background: var(--fp-blue-soft);
  color: var(--fp-blue-deep);
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.la-kicker .icon {
  width: 14px;
  height: 14px;
}

.la-studio-title-wrap h3 {
  margin: 0 0 0.28rem;
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--fp-navy);
  line-height: 1.32;
}

.la-studio-title-wrap p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--fp-muted);
  line-height: 1.55;
}

.la-mastery-box {
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 4px 12px rgba(15, 35, 85, 0.04);
}

.la-mastery-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--fp-muted);
}

.la-mastery-row strong {
  color: var(--fp-navy);
  font-weight: 800;
}

.la-mastery-track {
  height: 8px;
  border-radius: 999px;
  background: var(--fp-blue-soft);
  overflow: hidden;
}

.la-mastery-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #16a34a 100%);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.la-mastery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.15rem;
}

.la-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--fp-border-strong);
  background: var(--fp-surface-soft);
  color: var(--fp-navy);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.16s ease;
}

.la-mini-btn:hover {
  background: var(--fp-blue-soft);
  border-color: var(--fp-blue);
  color: var(--fp-blue-deep);
  transform: translateY(-1px);
}

.la-mini-btn .icon {
  width: 14px;
  height: 14px;
}

/* Subtle Quiet Reference Link (Option A — Zero Choice Overload) */
.la-ref-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  padding: 0.34rem 0.55rem;
  border-radius: 999px;
  border: 1px dashed rgba(37, 99, 235, 0.32);
  background: transparent;
  color: var(--fp-blue-deep);
  font-family: inherit;
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.la-ref-link:hover {
  background: var(--fp-blue-soft);
  border-color: var(--fp-blue);
  border-style: solid;
}

.la-ref-link .icon {
  width: 13px;
  height: 13px;
}

.la-ref-backbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: var(--fp-blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.22);
}

.la-ref-backnote {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fp-blue-deep);
}

html[data-theme="dark"] .la-ref-link {
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.36);
}

html[data-theme="dark"] .la-ref-link:hover {
  background: rgba(37, 99, 235, 0.22);
  border-color: #60a5fa;
}

html[data-theme="dark"] .la-ref-backbar {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(96, 165, 250, 0.34);
}

html[data-theme="dark"] .la-ref-backnote {
  color: #bfdbfe;
}

/* Studio Mode Tabs */
.la-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--fp-border);
}

.la-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.56rem 0.96rem;
  border-radius: 999px;
  border: 1.5px solid var(--fp-border);
  background: var(--fp-surface);
  color: var(--fp-ink-2);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.la-mode-tab:hover {
  border-color: var(--fp-blue);
  color: var(--fp-blue-deep);
}

.la-mode-tab.active {
  background: var(--fp-navy);
  border-color: var(--fp-navy);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(11, 27, 63, 0.18);
}

.la-mode-tab--game.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.la-mode-tab .icon {
  width: 15px;
  height: 15px;
}

.la-tab-count {
  font-style: normal;
  font-size: 0.72rem;
  padding: 0.12rem 0.46rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--fp-blue-deep);
  font-weight: 800;
}

.la-mode-tab.active .la-tab-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.la-tab-stars {
  font-style: normal;
  font-size: 0.78rem;
  color: #f59e0b;
  letter-spacing: 0.04em;
}

/* 5-Word Deck Selector Strip */
.la-deck-strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.2rem 0.1rem 0.35rem;
  scrollbar-width: thin;
}

.la-deck-pill {
  flex: 0 0 auto;
  min-width: 154px;
  max-width: 210px;
  padding: 0.72rem 0.9rem;
  border-radius: 16px;
  border: 1.5px solid var(--fp-border);
  background: var(--fp-surface);
  color: var(--fp-navy);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  box-shadow: 0 3px 10px rgba(15, 35, 85, 0.04);
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.la-deck-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
}

.la-deck-pill.active {
  border-color: var(--fp-blue);
  background: linear-gradient(155deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.14);
}

.la-deck-pill.is-cleared {
  border-color: rgba(22, 163, 74, 0.35);
}

.la-deck-pill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.la-deck-pill-top strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--fp-navy);
}

.la-deck-cnt {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fp-muted);
}

.la-deck-ok {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.la-deck-ok .icon {
  width: 12px;
  height: 12px;
}

.la-deck-theme {
  font-size: 0.75rem;
  color: var(--fp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.la-deck-dots {
  display: flex;
  gap: 5px;
  margin-top: 0.12rem;
}

.la-dot {
  width: 18px;
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  display: block;
}

.la-dot.is-known { background: #16a34a; }
.la-dot.is-fuzzy { background: #f59e0b; }
.la-dot.is-learning { background: #e11d48; }

/* 3-Stage Memory Pipeline Bar */
.la-stage-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-radius: 16px;
  background: var(--fp-surface-soft);
  border: 1px solid var(--fp-border);
}

.la-stage-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fp-ink-2);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.la-stage-btn:hover {
  background: rgba(255, 255, 255, 0.75);
  color: var(--fp-navy);
}

.la-stage-btn.active {
  background: var(--fp-surface);
  color: var(--fp-blue-deep);
  border-color: var(--fp-border-strong);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.la-stage-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--fp-blue-soft);
  color: var(--fp-blue-deep);
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.la-stage-btn.active .la-stage-num {
  background: var(--fp-blue);
  color: #ffffff;
}

.la-stage-sep {
  color: var(--fp-muted);
  opacity: 0.6;
  display: inline-flex;
}

.la-stage-sep .icon {
  width: 15px;
  height: 15px;
}

/* Stage 1: Spotlight Focus Card */
.la-focus-card {
  background: var(--fp-surface);
  border: 1.5px solid var(--fp-border);
  border-radius: 22px;
  padding: 1.35rem 1.45rem;
  box-shadow: var(--fp-shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.la-fc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.la-fc-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.la-fc-idx {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--fp-muted);
  padding: 0.24rem 0.66rem;
  border-radius: 999px;
  background: var(--fp-surface-soft);
}

.la-gender-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.la-gender-pill.la-g-m { background: #dbeafe; color: #1d4ed8; }
.la-gender-pill.la-g-f { background: #ffe4e6; color: #be123c; }
.la-gender-pill.la-g-p { background: #eef2ff; color: #4338ca; }
.la-gender-pill.la-g-n { background: #f3e8ff; color: #6d28d9; }

.la-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.la-status-pill .icon { width: 12px; height: 12px; }
.la-status-pill.is-known { background: #dcfce7; color: #15803d; }
.la-status-pill.is-fuzzy { background: #fef3c7; color: #b45309; }

.la-fc-audio {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.la-fc-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

.la-fc-body.has-photo {
  grid-template-columns: minmax(0, 1.35fr) minmax(190px, 0.75fr);
}

.la-fc-fr {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  color: var(--fp-navy);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.la-fc-phon-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.42rem;
}

.la-fc-ipa {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  padding: 0.2rem 0.56rem;
  border-radius: 8px;
  background: var(--fp-surface-soft);
  color: var(--fp-blue-deep);
  font-weight: 600;
}

.la-fc-khph {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fp-crimson);
  background: rgba(225, 29, 72, 0.08);
  padding: 0.2rem 0.66rem;
  border-radius: 999px;
}

.la-fc-km {
  margin-top: 0.72rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fp-ink-2);
  line-height: 1.48;
}

/* Memory Hook Callout */
.la-hook-box {
  margin-top: 0.95rem;
  padding: 0.82rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(245, 158, 11, 0.34);
  display: flex;
  align-items: flex-start;
  gap: 0.62rem;
  font-size: 0.87rem;
  line-height: 1.55;
  color: #78350f;
}

.la-hook-ico {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #f59e0b;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.la-hook-ico .icon { width: 16px; height: 16px; }
.la-hook-box strong { color: #92400e; margin-right: 0.28rem; }

/* Example Sentence Box */
.la-fc-ex {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--fp-surface-soft);
  border: 1px solid var(--fp-border);
}

.la-fc-ex-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.la-fc-ex-lbl {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fp-muted);
}

.la-fc-ex-fr {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--fp-navy);
  line-height: 1.5;
}

.la-fc-ex-km {
  font-size: 0.86rem;
  color: var(--fp-muted);
  margin-top: 0.2rem;
}

.la-fc-media img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 220px;
  border: 1px solid var(--fp-border);
}

/* 3 Self-Rating Buttons */
.la-rate-strip {
  padding-top: 0.95rem;
  border-top: 1px solid var(--fp-border);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.la-rate-prompt {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--fp-muted);
}

.la-rate-btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.la-rate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.18s ease;
}

.la-rate-btn:hover { transform: translateY(-2px); }
.la-rate-btn .icon { width: 16px; height: 16px; }

.la-rate-btn.is-again {
  background: #fff1f2;
  color: #be123c;
  border-color: rgba(225, 29, 72, 0.24);
}
.la-rate-btn.is-again:hover { background: #ffe4e6; }

.la-rate-btn.is-fuzzy {
  background: #fffbeb;
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.3);
}
.la-rate-btn.is-fuzzy:hover { background: #fef3c7; }

.la-rate-btn.is-known {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.26);
}
.la-rate-btn.is-known:hover { box-shadow: 0 12px 24px rgba(22, 163, 74, 0.34); }

/* 5-Word Mini Strip inside Focus Card */
.la-mini-word-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.la-mw-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1.5px solid var(--fp-border);
  background: var(--fp-surface-soft);
  color: var(--fp-ink-2);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.la-mw-chip.active {
  background: var(--fp-blue);
  border-color: var(--fp-blue);
  color: #ffffff;
}

.la-mw-chip.is-known:not(.active) {
  background: #ecfdf5;
  border-color: rgba(22, 163, 74, 0.32);
  color: #15803d;
}

.la-mw-chip .icon { width: 13px; height: 13px; }
.la-mw-num { font-size: 0.72rem; opacity: 0.75; }

/* Stage 2: Active Blur-Peek Recall */
.la-peek-panel {
  background: var(--fp-surface);
  border: 1.5px solid var(--fp-border);
  border-radius: 22px;
  padding: 1.3rem 1.35rem;
  box-shadow: var(--fp-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.la-peek-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.la-peek-head h4 {
  margin: 0 0 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fp-navy);
}

.la-peek-head h4 .icon { width: 18px; height: 18px; color: var(--fp-blue); }
.la-peek-head p { margin: 0; font-size: 0.86rem; color: var(--fp-muted); }

.la-peek-masks,
.la-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.la-fpill {
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--fp-border);
  background: var(--fp-surface-soft);
  color: var(--fp-ink-2);
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.la-fpill.active {
  background: var(--fp-blue);
  border-color: var(--fp-blue);
  color: #ffffff;
}

.la-peek-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.la-peek-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.78rem 0.9rem;
  border-radius: 16px;
  border: 1.5px solid var(--fp-border);
  background: var(--fp-surface-soft);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.la-peek-row.is-ok {
  border-color: rgba(22, 163, 74, 0.38);
  background: #f0fdf4;
}

.la-peek-row.is-retry {
  border-color: rgba(245, 158, 11, 0.42);
  background: #fffbeb;
}

.la-peek-front {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.la-peek-idx {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  color: var(--fp-navy);
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.la-peek-front-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.la-pk-fr,
.la-pk-km {
  font-size: 1rem;
  font-weight: 800;
  color: var(--fp-navy);
}

.la-peek-front-copy small {
  font-size: 0.78rem;
  color: var(--fp-crimson);
  font-weight: 600;
}

.la-peek-reveal-box {
  width: 100%;
  min-height: 48px;
  padding: 0.56rem 0.85rem;
  border-radius: 12px;
  border: 1.5px dashed rgba(37, 99, 235, 0.34);
  background: linear-gradient(135deg, rgba(232, 241, 255, 0.85) 0%, rgba(255, 255, 255, 0.9) 100%);
  color: var(--fp-blue-deep);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  transition: all 0.2s ease;
}

.la-peek-reveal-box.is-open {
  border-style: solid;
  border-color: rgba(37, 99, 235, 0.24);
  background: var(--fp-surface);
  color: var(--fp-navy);
}

.la-peek-blur-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.la-peek-blur-hint .icon { width: 15px; height: 15px; }
.la-pk-ans-km,
.la-pk-ans-fr { font-size: 0.96rem; font-weight: 800; color: var(--fp-navy); }
.la-peek-reveal-box small { font-size: 0.8rem; color: var(--fp-muted); }

.la-peek-grade {
  display: flex;
  align-items: center;
  gap: 0.36rem;
}

.la-grade-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1.5px solid var(--fp-border);
  background: var(--fp-surface);
  color: var(--fp-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
}

.la-grade-btn .icon { width: 16px; height: 16px; }
.la-grade-btn.is-ok:hover,
.la-grade-btn.is-ok.active { background: #16a34a; border-color: #16a34a; color: #ffffff; }
.la-grade-btn.is-no:hover,
.la-grade-btn.is-no.active { background: #f59e0b; border-color: #f59e0b; color: #ffffff; }

.la-peek-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.3rem;
}

/* All-Words Reference View */
.la-all-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--fp-surface);
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--fp-border);
}

.la-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 240px;
  background: var(--fp-surface-soft);
  border: 1px solid var(--fp-border);
  border-radius: 12px;
  padding: 0.45rem 0.78rem;
}

.la-search-box .icon { width: 16px; height: 16px; color: var(--fp-muted); flex-shrink: 0; }

.la-search-input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--fp-ink);
  outline: none;
}

.la-ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 0.85rem;
}

.la-ref-card {
  background: var(--fp-surface);
  border: 1.5px solid var(--fp-border);
  border-radius: 18px;
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 4px 12px rgba(15, 35, 85, 0.04);
  transition: transform 0.18s ease, border-color 0.2s ease;
}

.la-ref-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.3);
}

.la-ref-card.is-known {
  border-color: rgba(22, 163, 74, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.la-ref-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.la-known-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  border: 1px solid var(--fp-border);
  background: var(--fp-surface-soft);
  color: var(--fp-muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.la-known-chip.is-on {
  background: #dcfce7;
  border-color: rgba(22, 163, 74, 0.3);
  color: #15803d;
}

.la-known-chip .icon { width: 12px; height: 12px; }

.la-ref-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.la-ref-fr {
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--fp-navy);
}

.la-ref-ipa {
  font-size: 0.78rem;
  color: var(--fp-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.la-ref-audio { display: flex; gap: 0.3rem; flex-shrink: 0; }
.la-ref-ph { font-size: 0.82rem; font-weight: 700; color: var(--fp-crimson); }
.la-ref-km { font-size: 0.94rem; font-weight: 600; color: var(--fp-ink-2); }

.la-ref-ex {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--fp-border);
  font-size: 0.8rem;
}

.la-ref-ex-fr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--fp-navy);
}

.la-ref-ex-km { color: var(--fp-muted); margin-top: 0.14rem; }

/* ---------------- PART B: STEP 4 HUB & EMBEDDED GAME ARENA ---------------- */
.la-step4-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.la-s4-tab {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.05rem;
  border-radius: 18px;
  border: 1.5px solid var(--fp-border);
  background: var(--fp-surface);
  color: var(--fp-navy);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--fp-shadow-sm);
  transition: all 0.2s ease;
}

.la-s4-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.34);
}

.la-s4-tab.active {
  border-color: var(--fp-blue);
  background: linear-gradient(150deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.16);
}

.la-s4-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.la-s4-ico .icon { width: 20px; height: 20px; }
.la-s4-ico--game { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #ffffff; }
.la-s4-ico--quiz { background: #e8f1ff; color: var(--fp-blue-deep); }

.la-s4-txt {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.la-s4-txt strong { font-size: 0.96rem; font-weight: 800; color: var(--fp-navy); }
.la-s4-txt small { font-size: 0.78rem; color: var(--fp-muted); }

/* Royal-Navy Arcade Selector Banner */
.la-arcade-banner {
  background: linear-gradient(135deg, #06153d 0%, #0e2d78 58%, #1d4ed8 100%);
  border-radius: 22px;
  padding: 1.3rem 1.35rem;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(6, 21, 61, 0.22);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.la-arcade-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb 0%, #ffffff 50%, #e11d48 100%);
}

.la-arcade-banner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.la-arcade-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #93c5fd;
  margin-bottom: 0.32rem;
}

.la-arcade-kicker .icon { width: 14px; height: 14px; color: #fbbf24; }

.la-arcade-banner h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.la-arcade-total-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fde68a;
  font-size: 0.84rem;
  font-weight: 800;
}

.la-arcade-total-stars .icon { width: 16px; height: 16px; color: #fbbf24; }

.la-game-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.la-gp-card {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  padding: 0.82rem 0.88rem;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.2s ease;
}

.la-gp-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.la-gp-card.active {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--fp-navy);
  box-shadow: 0 12px 26px rgba(4, 14, 44, 0.26);
}

.la-gp-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.la-gp-card.active .la-gp-ico {
  background: var(--fp-blue-soft);
  color: var(--fp-blue-deep);
}

.la-gp-ico .icon { width: 18px; height: 18px; }

.la-gp-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.la-gp-copy strong { font-size: 0.88rem; font-weight: 800; line-height: 1.25; }
.la-gp-copy small { font-size: 0.72rem; opacity: 0.82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.la-gp-stars {
  display: inline-flex;
  gap: 2px;
  flex-shrink: 0;
}

.la-star {
  color: rgba(255, 255, 255, 0.34);
  display: inline-flex;
}

.la-gp-card.active .la-star { color: #cbd5e1; }
.la-star.is-lit { color: #f59e0b; }
.la-star.is-lit .icon { fill: #f59e0b; }
.la-star .icon { width: 13px; height: 13px; }

/* Live Game HUD */
.la-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.72rem 1rem;
  border-radius: 16px;
  background: var(--fp-surface);
  border: 1.5px solid var(--fp-border);
  box-shadow: var(--fp-shadow-sm);
}

.la-hud-left,
.la-hud-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.la-hearts {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.la-heart { display: inline-flex; transition: transform 0.2s ease, opacity 0.2s ease; }
.la-heart .icon { width: 18px; height: 18px; }
.la-heart.is-full { color: #e11d48; }
.la-heart.is-full .icon { fill: #e11d48; }
.la-heart.is-lost { color: #cbd5e1; opacity: 0.55; transform: scale(0.88); }

.la-combo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.32rem 0.76rem;
  border-radius: 999px;
  background: var(--fp-surface-soft);
  color: var(--fp-ink-2);
  font-size: 0.8rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.la-combo-pill .icon { width: 14px; height: 14px; color: #f59e0b; }

.la-combo-pill.is-hot {
  background: linear-gradient(135deg, #f59e0b 0%, #e11d48 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.28);
  transform: scale(1.04);
}

.la-combo-pill.is-hot .icon { color: #fef08a; }

.la-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 800;
}

.la-score-pill .icon { width: 14px; height: 14px; fill: #f59e0b; color: #f59e0b; }

.la-reset-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--fp-border);
  background: var(--fp-surface-soft);
  color: var(--fp-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.la-reset-btn:hover { background: var(--fp-blue-soft); color: var(--fp-blue-deep); }
.la-reset-btn .icon { width: 15px; height: 15px; }

/* Game Board Shell */
.la-board,
.la-mini-match {
  background: var(--fp-surface);
  border: 1.5px solid var(--fp-border);
  border-radius: 22px;
  padding: 1.25rem 1.3rem;
  box-shadow: var(--fp-shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.la-board-prog {
  height: 8px;
  border-radius: 999px;
  background: var(--fp-blue-soft);
  overflow: hidden;
}

.la-board-prog span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #16a34a 100%);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.la-board-sub,
.la-mm-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--fp-muted);
}

.la-mm-hud span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--fp-navy);
}

.la-mm-hud .icon { width: 16px; height: 16px; color: var(--fp-blue); }

/* Match Blitz Grid & Tactile Tiles */
.la-mm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.la-mm-col {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
}

.la-tile {
  width: 100%;
  min-height: 60px;
  padding: 0.72rem 0.95rem;
  border-radius: 16px;
  border: 1.5px solid var(--fp-border);
  background: var(--fp-surface-soft);
  color: var(--fp-navy);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.14rem;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.18s ease, opacity 0.22s ease;
}

.la-tile:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--fp-blue);
  background: var(--fp-surface);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}

.la-tile--fr strong { font-size: 1rem; font-weight: 800; color: var(--fp-navy); }
.la-tile--fr small { font-size: 0.76rem; color: var(--fp-crimson); font-weight: 600; }
.la-tile--km span { font-size: 0.94rem; font-weight: 700; color: var(--fp-ink-2); }

.la-tile.is-sel {
  border-color: var(--fp-blue);
  background: #dbeafe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
  transform: translateY(-2px);
}

.la-tile.is-done {
  background: #dcfce7;
  border-color: rgba(22, 163, 74, 0.42);
  color: #15803d;
  opacity: 0.55;
  cursor: default;
  transform: scale(0.98);
}

.la-tile.is-err {
  background: #ffe4e6;
  border-color: #e11d48;
  animation: laShake 0.36s ease;
}

@keyframes laShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Embedded Lesson Insight Strip (Core Pedagogical Bridge Inside Games) */
.la-embedded-lesson {
  padding: 0.95rem 1.05rem;
  border-radius: 16px;
  border: 1.5px solid var(--fp-border);
  background: var(--fp-surface-soft);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

.la-embedded-lesson.is-idle {
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  color: var(--fp-muted);
  border-style: dashed;
}

.la-embedded-lesson.is-idle .icon { width: 18px; height: 18px; color: var(--fp-blue); flex-shrink: 0; }

.la-embedded-lesson.is-ok {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: rgba(22, 163, 74, 0.34);
  color: #14532d;
}

.la-embedded-lesson.is-tip {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: rgba(245, 158, 11, 0.36);
  color: #78350f;
}

.la-el-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.la-el-head > span {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.la-el-head .icon { width: 17px; height: 17px; flex-shrink: 0; }
.la-embedded-lesson p { margin: 0; font-size: 0.86rem; }

.la-el-ex {
  padding: 0.45rem 0.72rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}

.la-el-ex em { font-style: normal; font-weight: 800; color: var(--fp-navy); }
.la-el-next { margin-top: 0.35rem; display: flex; justify-content: flex-end; }

/* Board 2: Audio Speed Catch */
.la-audio-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: 0.7rem 0 0.4rem;
}

.la-round-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.78rem;
  border-radius: 999px;
  background: var(--fp-blue-soft);
  color: var(--fp-blue-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.la-audio-orbs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.la-big-play {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.92rem 1.65rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.34);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.la-big-play:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.42);
}

.la-slow-play {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.76rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid var(--fp-border-strong);
  background: var(--fp-surface-soft);
  color: var(--fp-navy);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.la-slow-play:hover {
  border-color: var(--fp-blue);
  background: var(--fp-blue-soft);
  color: var(--fp-blue-deep);
}

.la-slow-play .icon { width: 16px; height: 16px; }

.la-catch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.la-catch-opt {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.92rem 1rem;
  border-radius: 16px;
  border: 1.5px solid var(--fp-border);
  background: var(--fp-surface-soft);
  color: var(--fp-navy);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.la-catch-opt:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--fp-blue);
  background: var(--fp-surface);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.la-opt-key {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  color: var(--fp-blue-deep);
  font-size: 0.84rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.la-opt-val { display: flex; flex-direction: column; gap: 0.12rem; }
.la-opt-val strong { font-size: 0.96rem; font-weight: 800; color: var(--fp-navy); }
.la-opt-val small { font-size: 0.8rem; color: var(--fp-blue-deep); font-weight: 700; }

.la-catch-opt.is-correct {
  background: #dcfce7;
  border-color: #16a34a;
}

.la-catch-opt.is-correct .la-opt-key { background: #16a34a; color: #ffffff; border-color: transparent; }

.la-catch-opt.is-miss {
  background: #ffe4e6;
  border-color: #e11d48;
  animation: laShake 0.35s ease;
}

/* Board 3: Paris Sentence Builder */
.la-builder-prompt {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: var(--fp-surface-soft);
  border: 1px solid var(--fp-border);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.la-bp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.la-bp-km {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--fp-navy);
  line-height: 1.45;
}

.la-bp-hint { font-size: 0.8rem; color: var(--fp-muted); }

.la-builder-tray {
  min-height: 76px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 2px dashed rgba(37, 99, 235, 0.32);
  background: #f8fbff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.la-builder-tray.is-ok {
  border-style: solid;
  border-color: #16a34a;
  background: #f0fdf4;
}

.la-builder-tray.is-wrong {
  border-style: solid;
  border-color: #e11d48;
  background: #fff1f2;
  animation: laShake 0.36s ease;
}

.la-tray-placeholder {
  font-size: 0.86rem;
  color: var(--fp-muted);
  font-style: italic;
}

.la-builder-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.3rem 0;
}

.la-word-chip {
  padding: 0.54rem 0.95rem;
  border-radius: 12px;
  border: 1.5px solid var(--fp-border-strong);
  background: var(--fp-surface);
  color: var(--fp-navy);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(15, 35, 85, 0.08);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.16s ease;
}

.la-word-chip:hover {
  transform: translateY(-2px);
  border-color: var(--fp-blue);
  color: var(--fp-blue-deep);
}

.la-word-chip.is-placed {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.25);
}

.la-builder-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Victory Card */
.la-win-card {
  background: linear-gradient(160deg, #ffffff 0%, #eff6ff 100%);
  border: 2px solid rgba(37, 99, 235, 0.24);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--fp-shadow-lg);
}

.la-win-stars {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.la-win-stars-row {
  display: inline-flex;
  gap: 0.45rem;
}

.la-win-stars-row .la-star .icon {
  width: 34px;
  height: 34px;
}

.la-win-card h3 {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--fp-navy);
}

.la-win-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--fp-ink-2);
  max-width: 540px;
}

.la-win-takeaway {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
  max-width: 560px;
  padding: 0.78rem 1rem;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.34);
  color: #78350f;
  font-size: 0.86rem;
  line-height: 1.55;
}

.la-win-takeaway .icon { width: 17px; height: 17px; color: #d97706; flex-shrink: 0; margin-top: 2px; }

.la-win-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.3rem;
}

.la-empty-state {
  padding: 2rem 1.2rem;
  border-radius: 18px;
  border: 1.5px dashed var(--fp-border-strong);
  background: var(--fp-surface-soft);
  text-align: center;
  color: var(--fp-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.la-empty-state .icon { width: 24px; height: 24px; color: var(--fp-blue); }

/* ==========================================================================
   10. UNIFIED FRENCHPRO INNER PAGES (SAME STYLE DNA, BESPOKE LAYOUTS PER PAGE)
   ========================================================================== */

/* Architectural Compact Inner Header */
.page .page-header.page-header--compact {
  background: linear-gradient(180deg, #ffffff 0%, var(--fp-canvas) 100%);
  border-bottom: 1px solid var(--fp-border);
  padding: 1.65rem 0 1.35rem;
  position: relative;
}

.page .page-header.page-header--compact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 38%, #ffffff 52%, #e11d48 100%);
  opacity: 0.85;
}

.page .page-header--compact .page-title {
  color: var(--fp-navy);
  font-family: var(--fp-font-sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.page .page-header--compact .page-lead {
  color: var(--fp-muted);
  max-width: 700px;
}

.btn-safe-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.88rem;
  border-radius: 999px;
  border: 1.5px solid var(--fp-border);
  background: var(--fp-surface);
  color: var(--fp-navy);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 0.75rem;
  box-shadow: 0 3px 10px rgba(15, 35, 85, 0.04);
  transition: all 0.18s ease;
}

.btn-safe-back:hover {
  border-color: var(--fp-blue);
  color: var(--fp-blue-deep);
  transform: translateX(-2px);
}

/* ---- A. PRACTICE HUB: BESPOKE BENTO TRAINING DOJO ---- */
.fp-dojo-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.fp-dojo-banner {
  background: linear-gradient(135deg, #061335 0%, #0d2b72 56%, #1d4ed8 100%);
  border-radius: 24px;
  padding: 1.55rem 1.65rem;
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.85fr);
  gap: 1.35rem;
  align-items: center;
  box-shadow: 0 20px 44px rgba(6, 19, 53, 0.2);
  position: relative;
  overflow: hidden;
}

.fp-dojo-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.fp-tricolor-eyebrow--light {
  color: #bfdbfe;
  margin-bottom: 0.4rem;
}

.fp-dojo-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.3rem, 2.3vw, 1.72rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.fp-dojo-sub {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(219, 234, 254, 0.88);
  line-height: 1.55;
}

.fp-dojo-cta-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.fp-dojo-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.18rem;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: var(--fp-navy);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(4, 14, 44, 0.28);
  transition: transform 0.18s ease, background 0.18s ease;
}

.fp-dojo-play-btn:hover {
  transform: translateY(-2px);
  background: #fbbf24;
}

.fp-dojo-play-btn .icon,
.fp-dojo-ghost-btn .icon { width: 16px; height: 16px; }

.fp-dojo-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.fp-dojo-ghost-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.65);
}

.fp-dojo-kpis {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

.fp-dojo-kpi {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.68rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.fp-dojo-kpi-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fp-dojo-kpi-ico .icon { width: 17px; height: 17px; }
.fp-dojo-kpi-ico.is-blue { background: rgba(59, 130, 246, 0.32); color: #bfdbfe; }
.fp-dojo-kpi-ico.is-gold { background: rgba(245, 158, 11, 0.3); color: #fde68a; }
.fp-dojo-kpi-ico.is-crimson { background: rgba(225, 29, 72, 0.32); color: #fecdd3; }

.fp-dojo-kpi strong { display: block; font-size: 0.96rem; font-weight: 800; color: #ffffff; line-height: 1.2; }
.fp-dojo-kpi small { font-size: 0.75rem; color: rgba(219, 234, 254, 0.82); }

/* Asymmetric Bento Grid */
.fp-dojo-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1rem;
}

.fp-bento-hero {
  background: linear-gradient(155deg, #ffffff 0%, #eaf2ff 100%);
  border: 2px solid rgba(37, 99, 235, 0.24);
  border-radius: 22px;
  padding: 1.4rem 1.45rem;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--fp-shadow-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.fp-bento-hero:hover {
  transform: translateY(-4px);
  border-color: var(--fp-blue);
  box-shadow: var(--fp-shadow-lg);
}

.fp-bento-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.fp-bento-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  background: var(--fp-blue);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.fp-bento-pill .icon { width: 14px; height: 14px; }

.fp-bento-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--fp-surface);
  color: var(--fp-blue-deep);
  border: 1px solid var(--fp-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.fp-bento-hero:hover .fp-bento-arrow {
  background: var(--fp-blue);
  color: #ffffff;
  transform: translateX(3px);
}

.fp-bento-hero-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--fp-navy);
}

.fp-bento-hero-body p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--fp-muted);
  line-height: 1.6;
}

.fp-bento-hero-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fp-blue-deep);
}

.fp-bento-hero-foot > span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.fp-bento-hero-foot .icon { width: 15px; height: 15px; }

.fp-bento-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fp-bento-mini,
.practice-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 1.05rem 1.15rem;
  border-radius: 20px;
  border: 1.5px solid var(--fp-border);
  background: var(--fp-surface);
  color: var(--fp-navy);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--fp-shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.fp-bento-mini:hover,
.practice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow: var(--fp-shadow-md);
}

.fp-bento-mini--arcade {
  border-color: rgba(245, 158, 11, 0.32);
  background: linear-gradient(155deg, #ffffff 0%, #fffbeb 100%);
}

/* ---- B. ME PAGE: BESPOKE FRANCO-KHMER LEARNER PASSPORT ---- */
.fp-me-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fp-passport-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 1.55rem 1.65rem;
  background: linear-gradient(135deg, #061335 0%, #0d2768 62%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 22px 46px rgba(6, 19, 53, 0.22);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fp-passport-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb 0%, #ffffff 50%, #e11d48 100%);
}

.fp-passport-watermark {
  position: absolute;
  right: -14px;
  top: -18px;
  width: 195px;
  height: 195px;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  transform: rotate(-12deg);
}

.fp-passport-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.fp-passport-id {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.fp-pass-avatar {
  width: 58px !important;
  height: 58px !important;
  border-radius: 18px !important;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 22px rgba(4, 14, 44, 0.34);
  flex-shrink: 0;
}

.fp-passport-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
}

.fp-pass-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.64rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.fp-pass-sync {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.22);
  color: #bbf7d0;
  font-size: 0.72rem;
  font-weight: 700;
}

.fp-pass-sync .icon { width: 12px; height: 12px; }

.fp-passport-name {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.fp-passport-sub {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: rgba(219, 234, 254, 0.86);
}

.fp-passport-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.fp-passport-kpis {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.fp-pass-kpi {
  padding: 0.82rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.fp-pass-kpi strong {
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
}

.fp-pass-kpi span {
  font-size: 0.76rem;
  color: rgba(219, 234, 254, 0.84);
}

.fp-pass-kpi .ico-star {
  color: #fbbf24;
  fill: #fbbf24;
}

.fp-me-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.fp-me-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}

.fp-me-shell .me-card,
.fp-me-shell .bl-mastery-card {
  background: var(--fp-surface);
  border: 1.5px solid var(--fp-border);
  border-radius: 22px;
  box-shadow: var(--fp-shadow-sm);
}

/* ---- C. SPEAKING CLUB (PARLER CLUB) PARISIAN LOUNGE UNIFICATION ---- */
#page-speaking .parler-shell {
  gap: 1.15rem;
}

#page-speaking .parler-tabs {
  background: var(--fp-surface);
  border: 1.5px solid var(--fp-border);
  border-radius: 20px;
  padding: 0.5rem;
  box-shadow: var(--fp-shadow-sm);
}

#page-speaking .parler-tab {
  border-radius: 14px;
  transition: all 0.2s ease;
}

#page-speaking .parler-tab.active {
  background: linear-gradient(135deg, #0b1b3f 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(11, 27, 63, 0.2);
}

#page-speaking .parler-card,
#page-speaking .parler-stage,
#page-speaking .parler-room-card,
#page-speaking .parler-wall-item {
  background: var(--fp-surface);
  border: 1.5px solid var(--fp-border);
  border-radius: 22px;
  box-shadow: var(--fp-shadow-sm);
}

/* ---- D. LESSON WORKSPACE, PRICING, LIBRARY, DICTIONARY, PHONETICS, EXAM, MODALS ---- */
#learnWorkspaceView .viewer {
  background: var(--fp-surface);
  border: 1.5px solid var(--fp-border);
  border-radius: 24px;
  box-shadow: var(--fp-shadow-md);
}

#learnWorkspaceView .sidebar {
  background: var(--fp-surface);
  border: 1.5px solid var(--fp-border);
  border-radius: 22px;
  box-shadow: var(--fp-shadow-sm);
}

.focus-top-bar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--fp-border);
}

.focus-bottom-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--fp-border);
  box-shadow: 0 -8px 26px rgba(15, 35, 85, 0.06);
}

.pretest-card,
.fle-acts-panel,
.fle-reading-card,
.fle-prod-card,
.fle-phon-drill {
  background: var(--fp-surface);
  border: 1.5px solid var(--fp-border);
  border-radius: 20px;
  box-shadow: var(--fp-shadow-sm);
}

#page-pricing .plan {
  background: var(--fp-surface);
  border: 1.5px solid var(--fp-border);
  border-radius: 22px;
  box-shadow: var(--fp-shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

#page-pricing .plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--fp-shadow-lg);
}

#page-pricing .plan.featured {
  border: 2px solid var(--fp-blue);
  background: linear-gradient(180deg, #ffffff 0%, #f0f6ff 100%);
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.16);
}

#page-library .library-card,
#page-dictionary .vocab-card,
#page-phonetics .tts-box,
#page-phonetics .panel,
#page-phonetics .safe-space-banner,
#page-exam .exam-card,
#page-smart .smart-card {
  background: var(--fp-surface);
  border: 1.5px solid var(--fp-border);
  border-radius: 20px;
  box-shadow: var(--fp-shadow-sm);
}

.modal-dialog {
  border-radius: 24px !important;
  border: 1.5px solid var(--fp-border) !important;
  box-shadow: 0 28px 64px rgba(6, 19, 53, 0.24) !important;
}

/* ==========================================================================
   11. RESPONSIVE MOBILE POLISH (v64)
   ========================================================================== */
@media (max-width: 960px) {
  .fp-dojo-banner,
  .fp-dojo-bento,
  .fp-me-grid,
  .la-studio-head-top {
    grid-template-columns: 1fr;
  }

  .fp-dojo-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fp-passport-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .la-game-picker {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .la-studio-head,
  .la-focus-card,
  .la-peek-panel,
  .la-board,
  .la-mini-match,
  .la-arcade-banner {
    padding: 1rem;
    border-radius: 18px;
  }

  .la-fc-body.has-photo {
    grid-template-columns: 1fr;
  }

  .la-rate-btns,
  .la-step4-switch,
  .la-catch-grid {
    grid-template-columns: 1fr;
  }

  .la-peek-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .la-peek-grade {
    justify-content: flex-end;
  }

  .la-mm-grid {
    gap: 0.55rem;
  }

  .la-tile {
    padding: 0.62rem 0.72rem;
    min-height: 54px;
  }

  .la-stage-sep {
    display: none;
  }

  .fp-dojo-banner,
  .fp-passport-card {
    padding: 1.2rem 1.1rem;
    border-radius: 20px;
  }

  .fp-dojo-kpis {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   12. COMPLETE DARK MODE PARITY (v64)
   ========================================================================== */
html[data-theme="dark"] .la-studio-head,
html[data-theme="dark"] .la-focus-card,
html[data-theme="dark"] .la-peek-panel,
html[data-theme="dark"] .la-board,
html[data-theme="dark"] .la-mini-match,
html[data-theme="dark"] .la-hud,
html[data-theme="dark"] .la-all-toolbar,
html[data-theme="dark"] .la-ref-card,
html[data-theme="dark"] .la-s4-tab,
html[data-theme="dark"] .la-deck-pill,
html[data-theme="dark"] .fp-bento-hero,
html[data-theme="dark"] .fp-bento-mini,
html[data-theme="dark"] .practice-card,
html[data-theme="dark"] .fp-me-shell .me-card,
html[data-theme="dark"] #learnWorkspaceView .viewer,
html[data-theme="dark"] #learnWorkspaceView .sidebar,
html[data-theme="dark"] #page-pricing .plan {
  background: var(--fp-surface);
  border-color: var(--fp-border);
  color: #f1f5f9;
}

html[data-theme="dark"] .la-studio-title-wrap h3,
html[data-theme="dark"] .la-mastery-row strong,
html[data-theme="dark"] .la-fc-fr,
html[data-theme="dark"] .la-fc-ex-fr,
html[data-theme="dark"] .la-deck-pill-top strong,
html[data-theme="dark"] .la-peek-head h4,
html[data-theme="dark"] .la-pk-fr,
html[data-theme="dark"] .la-pk-km,
html[data-theme="dark"] .la-pk-ans-km,
html[data-theme="dark"] .la-pk-ans-fr,
html[data-theme="dark"] .la-ref-fr,
html[data-theme="dark"] .la-s4-txt strong,
html[data-theme="dark"] .la-tile--fr strong,
html[data-theme="dark"] .la-opt-val strong,
html[data-theme="dark"] .la-bp-km,
html[data-theme="dark"] .la-win-card h3,
html[data-theme="dark"] .fp-bento-hero-body h3,
html[data-theme="dark"] .page .page-header--compact .page-title {
  color: #f8fafc;
}

html[data-theme="dark"] .la-mastery-box,
html[data-theme="dark"] .la-stage-bar,
html[data-theme="dark"] .la-fc-ex,
html[data-theme="dark"] .la-peek-row,
html[data-theme="dark"] .la-tile,
html[data-theme="dark"] .la-catch-opt,
html[data-theme="dark"] .la-builder-prompt,
html[data-theme="dark"] .la-builder-tray,
html[data-theme="dark"] .la-embedded-lesson,
html[data-theme="dark"] .la-search-box,
html[data-theme="dark"] .la-mini-btn,
html[data-theme="dark"] .la-fpill {
  background: rgba(15, 29, 64, 0.72);
  border-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

html[data-theme="dark"] .la-deck-pill.active,
html[data-theme="dark"] .la-s4-tab.active,
html[data-theme="dark"] .la-stage-btn.active {
  background: rgba(37, 99, 235, 0.2);
  border-color: #3b82f6;
  color: #ffffff;
}

html[data-theme="dark"] .la-tile.is-sel {
  background: rgba(37, 99, 235, 0.34);
  border-color: #60a5fa;
}

html[data-theme="dark"] .la-tile.is-done,
html[data-theme="dark"] .la-catch-opt.is-correct,
html[data-theme="dark"] .la-embedded-lesson.is-ok,
html[data-theme="dark"] .la-peek-row.is-ok {
  background: rgba(22, 163, 74, 0.22);
  border-color: rgba(74, 222, 128, 0.45);
  color: #dcfce7;
}

html[data-theme="dark"] .la-hook-box,
html[data-theme="dark"] .la-embedded-lesson.is-tip,
html[data-theme="dark"] .la-win-takeaway {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(251, 191, 36, 0.36);
  color: #fde68a;
}

html[data-theme="dark"] .la-hook-box strong { color: #fcd34d; }

html[data-theme="dark"] .la-win-card {
  background: linear-gradient(160deg, #0b1838 0%, #102454 100%);
  border-color: rgba(96, 165, 250, 0.34);
}

html[data-theme="dark"] .la-word-chip {
  background: #13254f;
  border-color: rgba(148, 163, 184, 0.28);
  color: #f1f5f9;
}

html[data-theme="dark"] .page .page-header.page-header--compact,
html[data-theme="dark"] .focus-top-bar,
html[data-theme="dark"] .focus-bottom-bar {
  background: rgba(9, 19, 44, 0.94);
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .btn-safe-back {
  background: #11224a;
  border-color: rgba(148, 163, 184, 0.24);
  color: #f1f5f9;
}

html[data-theme="dark"] .fp-bento-mini--arcade {
  background: linear-gradient(155deg, #101f44 0%, #2a2212 100%);
  border-color: rgba(251, 191, 36, 0.34);
}

html[data-theme="dark"] #page-pricing .plan.featured {
  background: linear-gradient(180deg, #0e2049 0%, #142c66 100%);
  border-color: #3b82f6;
}

/* ==========================================================================
   13. ZEN LESSON VOCAB STUDIO & STEP 4 POLISH (v67 — ULTRA-CLEAN PH & PC)
   - Centered calm reading width on PC (760px) so cards never stretch wide
   - Single slim Zen ribbon above the word card (zero stacked box clutter)
   - Editorial Flashcard hero + clean inline notes + 5-dot pager + 3-col phone rating
   ========================================================================== */
.la-studio-wrap {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  gap: 0.95rem;
}

.la-studio-wrap--wide {
  max-width: 1040px;
}

.la-step4-wrap {
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  gap: 0.95rem;
}

/* --- Unified Slim Zen Ribbon --- */
.la-zen-bar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.8rem 0.95rem;
  border-radius: 20px;
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  box-shadow: 0 8px 24px rgba(11, 27, 63, 0.05);
}

.la-zen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.la-zen-decks {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;
  padding-bottom: 1px;
}

.la-zen-decks::-webkit-scrollbar {
  display: none;
}

.la-zdeck {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--fp-border);
  background: var(--fp-surface-soft);
  color: var(--fp-ink-2);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.la-zdeck .icon {
  width: 12px;
  height: 12px;
  color: #16a34a;
}

.la-zdeck:hover {
  border-color: var(--fp-blue);
  color: var(--fp-blue-deep);
}

.la-zdeck.is-cleared:not(.active) {
  background: #f0fdf4;
  border-color: rgba(22, 163, 74, 0.28);
  color: #15803d;
}

.la-zdeck.active {
  background: var(--fp-navy);
  border-color: var(--fp-navy);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(11, 27, 63, 0.18);
}

.la-zdeck.active .icon {
  color: #4ade80;
}

.la-zen-utils {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.la-zen-stat {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--fp-muted);
  padding: 0 0.2rem;
  white-space: nowrap;
}

.la-zen-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--fp-border);
  background: var(--fp-surface-soft);
  color: var(--fp-blue-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.la-zen-icon-btn:hover {
  background: var(--fp-blue-soft);
  border-color: var(--fp-blue);
}

.la-zen-icon-btn .icon {
  width: 14px;
  height: 14px;
}

.la-zen-ref-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.34rem 0.66rem;
  border-radius: 999px;
  border: 1px solid var(--fp-border);
  background: transparent;
  color: var(--fp-ink-2);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.la-zen-ref-btn:hover {
  background: var(--fp-blue-soft);
  border-color: var(--fp-blue);
  color: var(--fp-blue-deep);
}

.la-zen-ref-btn .icon {
  width: 13px;
  height: 13px;
}

/* Thin Mastery Hairline */
.la-zen-rail {
  height: 3px;
  border-radius: 999px;
  background: var(--fp-surface-soft);
  overflow: hidden;
}

.la-zen-rail span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #16a34a);
  transition: width 0.35s ease;
}

/* Clean 3-Step Segmented Control */
.la-zen-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.28rem;
  padding: 0.24rem;
  border-radius: 13px;
  background: var(--fp-surface-soft);
}

.la-zstep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.48rem 0.5rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--fp-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.la-zstep em {
  font-style: normal;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(11, 27, 63, 0.08);
  color: var(--fp-ink-2);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.la-zstep:hover:not(.active) {
  color: var(--fp-navy);
}

.la-zstep.active {
  background: var(--fp-surface);
  color: var(--fp-navy);
  box-shadow: 0 3px 10px rgba(11, 27, 63, 0.08);
}

.la-zstep.active em {
  background: var(--fp-blue);
  color: #ffffff;
}

/* --- Editorial Zen Focus Card (Stage 1) --- */
.la-focus-card--zen {
  padding: 1.35rem 1.45rem 1.15rem;
  border-radius: 24px;
  gap: 1.15rem;
  box-shadow: 0 14px 36px rgba(11, 27, 63, 0.06);
}

.la-audio-round {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.la-audio-round:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.36);
}

.la-audio-round .icon {
  width: 18px;
  height: 18px;
}

.la-audio-slow-pill {
  padding: 0.34rem 0.64rem;
  border-radius: 999px;
  border: 1px solid var(--fp-border-strong);
  background: var(--fp-surface-soft);
  color: var(--fp-ink-2);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.la-audio-slow-pill:hover {
  background: var(--fp-blue-soft);
  border-color: var(--fp-blue);
  color: var(--fp-blue-deep);
}

.la-fc-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.65rem 0.25rem 0.35rem;
  gap: 0.9rem;
}

.la-fc-hero.has-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  align-items: center;
  text-align: left;
  gap: 1.25rem;
}

.la-fc-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.la-fc-hero:not(.has-photo) .la-fc-phon-row {
  justify-content: center;
}

.la-focus-card--zen .la-fc-fr {
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fp-navy);
}

.la-focus-card--zen .la-fc-km {
  font-size: clamp(1.06rem, 2.4vw, 1.28rem);
  font-weight: 700;
  color: var(--fp-ink-2);
  margin-top: 0.1rem;
}

.la-focus-card--zen .la-fc-media img {
  width: 100%;
  max-height: 146px;
  object-fit: cover;
  border-radius: 16px;
}

/* Calm Inline Notes (No heavy nested cards) */
.la-fc-notes {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--fp-border);
}

.la-note-line {
  display: flex;
  align-items: flex-start;
  gap: 0.62rem;
  padding: 0.62rem 0.85rem;
  border-radius: 12px;
  font-size: 0.87rem;
  line-height: 1.5;
}

.la-note-line--hook {
  background: rgba(254, 243, 199, 0.52);
  border-left: 3px solid #f59e0b;
  color: #78350f;
}

.la-note-line--hook p {
  margin: 0;
}

.la-note-line--hook strong {
  color: #92400e;
}

.la-note-ico {
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: #d97706;
  display: inline-flex;
}

.la-note-ico .icon {
  width: 16px;
  height: 16px;
}

.la-note-line--ex {
  background: var(--fp-surface-soft);
  border-left: 3px solid var(--fp-blue);
  align-items: center;
}

.la-note-play {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--fp-border-strong);
  background: var(--fp-surface);
  color: var(--fp-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.la-note-play:hover {
  background: var(--fp-blue);
  border-color: var(--fp-blue);
  color: #ffffff;
}

.la-note-play .icon {
  width: 14px;
  height: 14px;
}

.la-note-ex-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.la-note-ex-copy .la-fc-ex-fr {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--fp-navy);
}

.la-note-ex-copy .la-fc-ex-km {
  font-size: 0.82rem;
  color: var(--fp-muted);
}

/* Crisp 3-Column Rating Row (Stays 3-column on Phone too!) */
.la-rate-btns--zen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding-top: 0.15rem;
}

.la-rate-btns--zen .la-rate-btn {
  padding: 0.72rem 0.65rem;
  border-radius: 14px;
  font-size: 0.86rem;
}

/* Clean 5-Dot Pagination Footer */
.la-fc-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--fp-border);
}

.la-pager-arrow,
.la-pager-next-stage {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--fp-border);
  background: var(--fp-surface-soft);
  color: var(--fp-ink-2);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.la-pager-arrow:hover:not(:disabled) {
  background: var(--fp-blue-soft);
  border-color: var(--fp-blue);
  color: var(--fp-blue-deep);
}

.la-pager-arrow:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.la-pager-next-stage {
  background: var(--fp-blue);
  border-color: var(--fp-blue);
  color: #ffffff;
}

.la-pager-next-stage:hover {
  background: var(--fp-blue-deep);
}

.la-pager-arrow .icon,
.la-pager-next-stage .icon {
  width: 14px;
  height: 14px;
}

.la-pager-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
}

.la-pdot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1.5px solid var(--fp-border);
  background: var(--fp-surface);
  color: var(--fp-muted);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.la-pdot.is-known:not(.active) {
  background: #dcfce7;
  border-color: rgba(22, 163, 74, 0.38);
  color: #15803d;
}

.la-pdot.is-fuzzy:not(.active) {
  background: #fef3c7;
  border-color: rgba(245, 158, 11, 0.38);
  color: #b45309;
}

.la-pdot.active {
  background: var(--fp-navy);
  border-color: var(--fp-navy);
  color: #ffffff;
  transform: scale(1.08);
}

/* --- Sleek Compact Step 4 Segmented Switcher --- */
.la-step4-seg {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0.28rem;
  border-radius: 16px;
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  box-shadow: 0 4px 14px rgba(11, 27, 63, 0.04);
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.la-s4-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.62rem 0.85rem;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--fp-muted);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.la-s4-pill .icon {
  width: 16px;
  height: 16px;
}

.la-s4-pill em {
  font-style: normal;
  font-size: 0.74rem;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
}

.la-s4-pill.active {
  background: var(--fp-navy);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(11, 27, 63, 0.16);
}

.la-s4-pill.active em {
  background: rgba(251, 191, 36, 0.24);
  color: #fde68a;
}

/* --- Mobile Zen Polish (<= 640px) --- */
@media (max-width: 640px) {
  .la-zen-bar {
    padding: 0.68rem 0.72rem;
    border-radius: 16px;
    gap: 0.55rem;
  }

  .la-zen-top {
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .la-zen-decks {
    width: 100%;
  }

  .la-zen-utils {
    width: 100%;
    justify-content: space-between;
    padding-top: 0.2rem;
    border-top: 1px solid var(--fp-border);
  }

  .la-zstep {
    font-size: 0.74rem;
    padding: 0.44rem 0.25rem;
    gap: 0.24rem;
  }

  .la-zstep em {
    width: 17px;
    height: 17px;
    font-size: 0.66rem;
  }

  .la-focus-card--zen {
    padding: 1rem 0.92rem 0.9rem;
    border-radius: 18px;
    gap: 0.9rem;
  }

  .la-fc-hero.has-photo {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.75rem;
  }

  .la-fc-hero.has-photo .la-fc-phon-row {
    justify-content: center;
  }

  .la-focus-card--zen .la-fc-media img {
    max-height: 132px;
    max-width: 220px;
    margin: 0 auto;
    display: block;
  }

  .la-rate-btns--zen {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.38rem;
  }

  .la-rate-btns--zen .la-rate-btn {
    flex-direction: column;
    gap: 0.22rem;
    padding: 0.62rem 0.3rem;
    font-size: 0.76rem;
    text-align: center;
  }

  .la-pager-arrow span {
    display: none;
  }

  .la-pager-arrow {
    padding: 0.42rem 0.5rem;
  }

  .la-pdot {
    width: 27px;
    height: 27px;
    font-size: 0.72rem;
  }

  .la-s4-pill {
    font-size: 0.78rem;
    padding: 0.54rem 0.45rem;
  }
}

/* --- Dark Mode Parity for Zen Studio & Step 4 --- */
html[data-theme="dark"] .la-zen-bar,
html[data-theme="dark"] .la-step4-seg {
  background: var(--fp-surface);
  border-color: var(--fp-border);
}

html[data-theme="dark"] .la-zdeck,
html[data-theme="dark"] .la-zen-icon-btn,
html[data-theme="dark"] .la-zen-ref-btn,
html[data-theme="dark"] .la-audio-slow-pill,
html[data-theme="dark"] .la-pager-arrow,
html[data-theme="dark"] .la-pdot {
  background: rgba(15, 29, 64, 0.75);
  border-color: rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}

html[data-theme="dark"] .la-zdeck.active,
html[data-theme="dark"] .la-pdot.active,
html[data-theme="dark"] .la-s4-pill.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
}

html[data-theme="dark"] .la-zen-stepper {
  background: rgba(10, 22, 50, 0.85);
}

html[data-theme="dark"] .la-zstep.active {
  background: #13254f;
  color: #ffffff;
}

html[data-theme="dark"] .la-zstep em {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

html[data-theme="dark"] .la-note-line--hook {
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
}

html[data-theme="dark"] .la-note-line--hook strong {
  color: #fcd34d;
}

html[data-theme="dark"] .la-note-line--ex {
  background: rgba(15, 29, 64, 0.72);
}

html[data-theme="dark"] .la-note-play {
  background: #13254f;
  border-color: rgba(148, 163, 184, 0.26);
  color: #93c5fd;
}

html[data-theme="dark"] .la-note-ex-copy .la-fc-ex-fr,
html[data-theme="dark"] .la-focus-card--zen .la-fc-fr,
html[data-theme="dark"] .la-focus-card--zen .la-fc-km {
  color: #f8fafc;
}

/* ==========================================================================
   14. FRENCHPRO LESSON FOCUS WORKSPACE — COMPLETE PH & PC HARMONY (v68)
   - Removes double-nested white-card-inside-white-card walls on PH & PC
   - Replaces legacy brown/gold serif & dark-green buttons with FrenchPro Blue
   - Sleek compact Step 1 header & ultra-slim 1-line mini header on Steps 2-5
   ========================================================================== */
body.focus-mode #learnWorkspaceView .viewer,
html[data-theme="dark"] body.focus-mode #learnWorkspaceView .viewer {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.75rem 0 1.5rem !important;
  max-width: 800px;
  margin: 0 auto;
}

/* Sleek Compact Step 1 Header */
.lesson-head.lesson-head--clean {
  max-width: 760px;
  margin: 0 auto 0.85rem;
  padding: 1rem 1.2rem;
  border-radius: 20px;
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  box-shadow: 0 8px 24px rgba(11, 27, 63, 0.04);
}

.lesson-head--clean .lesson-clean-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.lesson-clean-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.36rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--fp-muted);
}

.lesson-meta-code {
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  background: var(--fp-blue-soft);
  color: var(--fp-blue-deep);
  font-weight: 800;
}

.lesson-meta-dot {
  opacity: 0.45;
}

.lesson-meta-time {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}

.lesson-meta-time .icon {
  width: 13px;
  height: 13px;
}

.lesson-meta-done {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
}

.lesson-meta-done .icon {
  width: 12px;
  height: 12px;
}

.lesson-clean-play {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--fp-border-strong);
  background: var(--fp-surface-soft);
  color: var(--fp-blue-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.lesson-clean-play:hover {
  background: var(--fp-blue-soft);
  border-color: var(--fp-blue);
}

.lesson-clean-play .icon {
  width: 15px;
  height: 15px;
}

.lesson-head--clean .lesson-title-km--main {
  margin: 0;
  font-size: clamp(1.06rem, 2.6vw, 1.32rem);
  font-weight: 800;
  line-height: 1.38;
  color: var(--fp-navy) !important;
}

.lesson-head--clean .lesson-title-fr--sub {
  margin-top: 0.25rem;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-style: normal !important;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--fp-blue-deep) !important;
  opacity: 0.86;
}

/* Ultra-Slim 1-Line Mini Header on Steps 2..5 */
.lesson-head.lesson-head--mini {
  max-width: 760px;
  margin: 0 auto 0.72rem;
  padding: 0.56rem 0.9rem;
  border-radius: 14px;
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 4px 14px rgba(11, 27, 63, 0.03);
}

.lesson-mini-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
}

.lesson-mini-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--fp-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lesson-mini-sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--fp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Step 1 Micro-Cards (brain-loop.js) — Pure FrenchPro Blue & Clean Zen */
.bl-deck-wrap,
.bl-full-wrap {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.bl-zen-head {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  margin-bottom: 0.75rem;
  padding: 0.68rem 0.95rem;
  border-radius: 16px;
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
}

.bl-zen-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.bl-zen-head .bl-deck-step {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--fp-navy);
}

.bl-deck-bar {
  height: 5px !important;
  border-radius: 999px !important;
  background: var(--fp-surface-soft) !important;
  overflow: hidden;
}

.bl-deck-bar span {
  background: linear-gradient(90deg, #2563eb, #3b82f6) !important;
  border-radius: 999px !important;
}

.bl-chat-card {
  background: var(--fp-surface) !important;
  border: 1px solid var(--fp-border) !important;
  border-top: 3px solid var(--fp-blue) !important;
  border-radius: 22px !important;
  box-shadow: 0 12px 32px rgba(11, 27, 63, 0.06) !important;
  padding: 1.25rem 1.35rem !important;
}

.bl-chat-card::before {
  display: none !important;
}

.bl-card-kicker {
  background: var(--fp-blue-soft) !important;
  color: var(--fp-blue-deep) !important;
  border: none !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
}

.bl-card-title {
  color: var(--fp-navy) !important;
}

.bl-story-photo {
  border-radius: 16px !important;
  overflow: hidden;
}

.bl-deck-nav {
  margin-top: 0.85rem;
}

.bl-deck-next {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24) !important;
}

/* Focus Top & Bottom Bar — Pure FrenchPro Royal Blue (Zero Legacy Forest Green) */
.focus-top-bar .fsp-pill.active,
.focus-top-bar .focus-step-pill.active,
.focus-top-bar .focus-step-pill[aria-current="step"] {
  background: var(--fp-navy) !important;
  border-color: var(--fp-navy) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .focus-top-bar .fsp-pill.active {
  background: #2563eb !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

.focus-bottom-bar .focus-next-btn,
.focus-bottom-bar .focus-next-btn--beacon {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28) !important;
  animation: none !important;
}

.focus-bottom-bar .focus-next-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
}

.focus-bottom-bar .focus-prev-btn {
  border-radius: 999px !important;
  background: var(--fp-surface) !important;
  border: 1px solid var(--fp-border-strong) !important;
  color: var(--fp-navy) !important;
}

@media (max-width: 640px) {
  body.focus-mode #learnWorkspaceView .viewer {
    padding: 0.5rem 0 1.25rem !important;
  }

  .lesson-head.lesson-head--clean {
    padding: 0.82rem 0.92rem;
    border-radius: 16px;
    margin-bottom: 0.68rem;
  }

  .lesson-head.lesson-head--mini {
    padding: 0.48rem 0.72rem;
    border-radius: 12px;
    margin-bottom: 0.55rem;
  }

  .bl-zen-head {
    padding: 0.58rem 0.75rem;
    border-radius: 14px;
    margin-bottom: 0.6rem;
  }

  .bl-chat-card {
    padding: 0.95rem 0.95rem !important;
    border-radius: 18px !important;
  }
}

/* Dark Mode Parity for Lesson Focus Workspace */
html[data-theme="dark"] .lesson-head.lesson-head--clean,
html[data-theme="dark"] .lesson-head.lesson-head--mini,
html[data-theme="dark"] .bl-zen-head,
html[data-theme="dark"] .bl-chat-card {
  background: var(--fp-surface) !important;
  border-color: var(--fp-border) !important;
}

html[data-theme="dark"] .bl-chat-card {
  border-top-color: #3b82f6 !important;
}

html[data-theme="dark"] .lesson-head--clean .lesson-title-km--main,
html[data-theme="dark"] .lesson-mini-title,
html[data-theme="dark"] .bl-zen-head .bl-deck-step,
html[data-theme="dark"] .bl-card-title {
  color: #f8fafc !important;
}

html[data-theme="dark"] .lesson-head--clean .lesson-title-fr--sub {
  color: #93c5fd !important;
}

html[data-theme="dark"] .lesson-clean-play,
html[data-theme="dark"] .focus-bottom-bar .focus-prev-btn {
  background: #13254f !important;
  border-color: rgba(148, 163, 184, 0.26) !important;
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .bl-card-kicker {
  background: rgba(37, 99, 235, 0.22) !important;
  color: #bfdbfe !important;
}

/* ==========================================================================
   SMART ONE-TAP INSTALL SYSTEM (ANDROID · IPHONE · PC · TELEGRAM/FB IN-APP)
   Dignified Académie Française Design · Light & Dark Mode · Zero Clutter
   ========================================================================== */
.header-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  border-color: rgba(37, 99, 235, 0.35) !important;
  background: rgba(37, 99, 235, 0.08) !important;
  color: #1d4ed8 !important;
  font-weight: 700;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.header-install-btn:hover {
  background: rgba(37, 99, 235, 0.14) !important;
  border-color: rgba(37, 99, 235, 0.55) !important;
  transform: translateY(-1px);
}

.header-install-btn[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .header-install-btn {
    display: none !important;
  }
}

/* --- 1. Respectful Floating Smart Banner --- */
.pwa-smart-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: min(392px, calc(100vw - 28px));
  z-index: 88;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.pwa-smart-banner.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.pwa-smart-banner[hidden],
body.focus-mode .pwa-smart-banner {
  display: none !important;
}

.pwa-sb-inner {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(15, 42, 74, 0.13);
  border-top: 3px solid #1d4ed8;
  border-radius: 20px;
  padding: 0.92rem 1rem 0.88rem;
  box-shadow: 0 18px 44px rgba(10, 29, 77, 0.16), 0 4px 12px rgba(10, 29, 77, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
}

.pwa-sb-app {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
}

.pwa-sb-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 42, 74, 0.2);
  border: 1.5px solid rgba(200, 169, 106, 0.65);
  background: #0f2a4a;
}

.pwa-sb-copy {
  flex: 1;
  min-width: 0;
}

.pwa-sb-title {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
  color: #0a1d4d;
  line-height: 1.35;
}

.pwa-sb-sub {
  margin: 0.18rem 0 0;
  font-size: 0.79rem;
  line-height: 1.48;
  color: #475569;
}

.pwa-sb-x {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.05);
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.pwa-sb-x:hover {
  background: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

.pwa-sb-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.pwa-sb-btn-later {
  border: 1px solid rgba(15, 42, 74, 0.14);
  background: transparent;
  color: #475569;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pwa-sb-btn-later:hover {
  background: rgba(15, 42, 74, 0.05);
  color: #0f2a4a;
}

.pwa-sb-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.54rem 1.08rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pwa-sb-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
}

@media (max-width: 900px) {
  .pwa-smart-banner {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .pwa-sb-inner {
    border-radius: 18px;
    padding: 0.82rem 0.88rem;
  }

  .pwa-sb-actions {
    justify-content: stretch;
  }

  .pwa-sb-btn-later,
  .pwa-sb-btn-primary {
    flex: 1;
    justify-content: center;
  }
}

/* --- 2. Celebration Modal Embedded Install Card --- */
.pwa-cel-card {
  margin-top: 0.85rem;
  padding: 0.78rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.96));
  display: flex;
  align-items: center;
  gap: 0.72rem;
  text-align: left;
}

.pwa-cel-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
  border: 1px solid rgba(200, 169, 106, 0.6);
  background: #0f2a4a;
}

.pwa-cel-copy {
  flex: 1;
  min-width: 0;
}

.pwa-cel-copy strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0a1d4d;
  line-height: 1.3;
}

.pwa-cel-copy small {
  display: block;
  font-size: 0.76rem;
  color: #475569;
  line-height: 1.45;
  margin-top: 0.12rem;
}

.pwa-cel-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .pwa-cel-card {
    flex-wrap: wrap;
  }

  .pwa-cel-btn {
    width: 100%;
    justify-content: center;
  }
}

.pwa-me-installed-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

/* --- 3. Visual Install Guide Sheet (Bottom Sheet on Mobile · Centered Card on PC) --- */
.pwa-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: rgba(10, 29, 77, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.pwa-sheet-backdrop[hidden] {
  display: none !important;
}

.pwa-sheet-backdrop.is-open {
  opacity: 1;
}

.pwa-sheet-card {
  position: relative;
  width: min(500px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 42, 74, 0.12);
  border-radius: 24px;
  padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: 0 28px 64px rgba(10, 29, 77, 0.28);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pwa-sheet-backdrop.is-open .pwa-sheet-card {
  transform: translateY(0) scale(1);
}

.pwa-sheet-handle {
  display: none;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  margin: -0.25rem auto 0.85rem;
}

.pwa-sheet-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(15, 42, 74, 0.12);
  background: #f8fafc;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pwa-sheet-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.pwa-sheet-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-right: 2.2rem;
}

.pwa-sheet-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  flex-shrink: 0;
  border: 2px solid rgba(200, 169, 106, 0.72);
  box-shadow: 0 8px 20px rgba(15, 42, 74, 0.22);
  background: #0f2a4a;
}

.pwa-sheet-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
  padding: 0.18rem 0.56rem;
  border-radius: 999px;
  margin-bottom: 0.24rem;
}

.pwa-sheet-badge .icon {
  width: 13px;
  height: 13px;
}

.pwa-sheet-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0a1d4d;
  line-height: 1.3;
}

.pwa-sheet-head p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.45;
}

.pwa-sheet-tabs {
  display: flex;
  gap: 0.38rem;
  margin-top: 1rem;
  padding: 0.26rem;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid rgba(15, 42, 74, 0.08);
}

.pwa-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: #475569;
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 700;
  padding: 0.48rem 0.45rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.pwa-tab.active {
  background: #ffffff;
  color: #0a1d4d;
  box-shadow: 0 2px 8px rgba(10, 29, 77, 0.1);
}

.pwa-sheet-body {
  margin-top: 1rem;
}

.pwa-sheet-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.72rem 0.85rem;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #1e3a8a;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.pwa-sheet-notice .icon {
  flex-shrink: 0;
  margin-top: 0.12rem;
}

.pwa-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
}

.pwa-step {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.78rem 0.88rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(15, 42, 74, 0.09);
}

.pwa-step-num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #0a1d4d;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-step-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-step-ico--ios {
  background: rgba(0, 122, 255, 0.12);
  color: #007aff;
}

.pwa-step-ico--blue {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.pwa-step-ico--navy {
  background: rgba(15, 42, 74, 0.1);
  color: #0f2a4a;
}

.pwa-step-copy {
  flex: 1;
  min-width: 0;
}

.pwa-step-copy strong {
  display: block;
  font-size: 0.89rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.pwa-step-copy small {
  display: block;
  font-size: 0.79rem;
  color: #475569;
  line-height: 1.48;
  margin-top: 0.14rem;
}

.pwa-step-copy kbd {
  display: inline-block;
  padding: 0.05rem 0.36rem;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid rgba(15, 42, 74, 0.2);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0a1d4d;
}

.pwa-inline-ico {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
  color: #007aff;
}

.pwa-onetap-box {
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  border: 1px solid rgba(37, 99, 235, 0.2);
  text-align: center;
}

.pwa-onetap-box p {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  color: #1e293b;
  line-height: 1.55;
}

.pwa-onetap-btn {
  width: 100%;
  justify-content: center;
}

.pwa-copy-box {
  margin-top: 0.9rem;
  text-align: center;
}

.pwa-copy-btn {
  width: 100%;
  justify-content: center;
  border-radius: 14px;
}

.pwa-copy-btn.is-copied {
  background: #059669 !important;
  border-color: #059669 !important;
}

.pwa-copy-box small {
  display: block;
  margin-top: 0.42rem;
  font-size: 0.76rem;
  color: #64748b;
}

.pwa-sheet-foot {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.pwa-ios-pointer {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(0, 122, 255, 0.28);
  text-align: center;
  color: #007aff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.pwa-ios-pointer-arrow {
  font-size: 1.15rem;
  line-height: 1;
  animation: pwaBounceDown 1.3s ease-in-out infinite;
}

@keyframes pwaBounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (max-width: 640px) {
  .pwa-sheet-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .pwa-sheet-card {
    width: 100%;
    max-height: 88vh;
    border-radius: 24px 24px 0 0;
    padding: 1rem 1.05rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
  }

  .pwa-sheet-backdrop.is-open .pwa-sheet-card {
    transform: translateY(0);
  }

  .pwa-sheet-handle {
    display: block;
  }
}

/* --- Dark Mode Parity for Smart One-Tap Install --- */
html[data-theme="dark"] .header-install-btn {
  background: rgba(59, 130, 246, 0.16) !important;
  border-color: rgba(96, 165, 250, 0.36) !important;
  color: #bfdbfe !important;
}

html[data-theme="dark"] .pwa-sb-inner,
html[data-theme="dark"] .pwa-sheet-card {
  background: #0f1e3a;
  border-color: rgba(148, 163, 184, 0.2);
  color: #f1f5f9;
}

html[data-theme="dark"] .pwa-sb-title,
html[data-theme="dark"] .pwa-sheet-head h3,
html[data-theme="dark"] .pwa-step-copy strong,
html[data-theme="dark"] .pwa-cel-copy strong {
  color: #f8fafc;
}

html[data-theme="dark"] .pwa-sb-sub,
html[data-theme="dark"] .pwa-sheet-head p,
html[data-theme="dark"] .pwa-step-copy small,
html[data-theme="dark"] .pwa-cel-copy small,
html[data-theme="dark"] .pwa-copy-box small,
html[data-theme="dark"] .pwa-onetap-box p {
  color: #cbd5e1;
}

html[data-theme="dark"] .pwa-sb-btn-later {
  border-color: rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
}

html[data-theme="dark"] .pwa-sb-x,
html[data-theme="dark"] .pwa-sheet-close {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}

html[data-theme="dark"] .pwa-sheet-tabs {
  background: #0a1529;
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .pwa-tab {
  color: #94a3b8;
}

html[data-theme="dark"] .pwa-tab.active {
  background: #1d3563;
  color: #ffffff;
}

html[data-theme="dark"] .pwa-step {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .pwa-step-num {
  background: #2563eb;
}

html[data-theme="dark"] .pwa-step-ico--navy {
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
}

html[data-theme="dark"] .pwa-step-copy kbd {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.32);
  color: #f8fafc;
}

html[data-theme="dark"] .pwa-sheet-notice,
html[data-theme="dark"] .pwa-onetap-box,
html[data-theme="dark"] .pwa-cel-card {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(96, 165, 250, 0.28);
  color: #dbeafe;
}

html[data-theme="dark"] .pwa-sheet-badge {
  background: rgba(59, 130, 246, 0.22);
  color: #bfdbfe;
}

/* ==========================================================================
   15. GLOBAL CLEAN SCROLLBAR REMOVAL & MOBILE UI/UX OVERHAUL (v75)
   - Removes obtrusive opaque scrollbar rails while preserving full scroll
   - Eliminates 1,400px desktop footer bloat on mobile app tabs
   - Converts #learn lesson cards into sleek compact horizontal mobile rows
   - Compacts #practice, #me, #speaking, and #home for clean phone viewing
   ========================================================================== */
html,
body,
*,
*::before,
*::after {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

/* Prevent Eiffel hero artwork from creating horizontal scroll overflow */
.fp-hero,
.fp-learn-hero,
.fp-dojo-banner,
.fp-passport-card {
  overflow: hidden;
}

@media (max-width: 860px) {
  /* Native mobile app shell: hide giant 1,414px desktop footer above bottom nav */
  .site-footer {
    display: none !important;
  }

  main#mainContent {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  /* Tighter, cleaner mobile page headers (zero vertical bloat) */
  .page-header--compact {
    padding: 0.72rem 0 0.52rem !important;
  }

  .page-header--compact .page-title {
    font-size: 1.24rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.12rem !important;
  }

  .page-header--compact .page-lead {
    font-size: 0.82rem !important;
    line-height: 1.42 !important;
  }

  #page-practice .page-header--compact .page-lead,
  #page-me .page-header--compact .page-lead {
    display: none !important;
  }

  #page-practice .section--tight,
  #page-me .section--tight,
  #page-speaking .section--tight {
    padding-top: 0.55rem !important;
    padding-bottom: 1.1rem !important;
  }
}

@media (max-width: 768px) {
  /* ---------- HOME (#home): tighter rhythm, zero clutter ---------- */
  .fp-hero {
    padding: calc(64px + env(safe-area-inset-top, 0px) + 14px) 0 42px !important;
  }

  .fp-courses-section {
    padding: 1.45rem 0 1.2rem !important;
  }

  .fp-promo-section {
    padding: 0.35rem 0 0.9rem !important;
  }

  .fp-extras-section {
    padding: 0.45rem 0 1.35rem !important;
  }

  .fp-extras-stack {
    gap: 0.85rem !important;
  }

  .first-win-card {
    padding: 0.95rem !important;
    border-radius: 18px !important;
  }

  .first-win-word {
    font-size: 1.45rem !important;
  }

  .trust-home-section {
    margin-top: 0.1rem !important;
  }

  .trust-grid-2 {
    gap: 0.75rem !important;
  }

  .founder-card {
    padding: 1rem !important;
    border-radius: 18px !important;
  }

  .founder-bio {
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
    margin: 0.65rem 0 0.8rem !important;
  }

  .founder-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.48rem !important;
  }

  .founder-actions .btn {
    justify-content: center !important;
    padding: 0.52rem 0.45rem !important;
    font-size: 0.76rem !important;
  }

  /* ---------- LEARN (#learn): Hero compact + Sleek Horizontal Lesson Rows ---------- */
  .fp-learn-hero {
    padding: calc(64px + env(safe-area-inset-top, 0px) + 12px) 0 46px !important;
  }

  .fp-level-tabs {
    margin-bottom: 0.75rem !important;
    gap: 0.42rem !important;
  }

  .fp-level-tab {
    padding: 0.42rem 0.74rem !important;
    font-size: 0.8rem !important;
  }

  .fp-hero-pill {
    padding: 0.28rem 0.68rem !important;
    font-size: 0.74rem !important;
    margin-bottom: 0.5rem !important;
  }

  .fp-learn-hero-title {
    font-size: 1.24rem !important;
    line-height: 1.32 !important;
    margin-bottom: 0.55rem !important;
  }

  .fp-learn-outcome {
    display: none !important;
  }

  .fp-learn-progress-wrap {
    margin: 0.45rem 0 0.72rem !important;
  }

  .fp-hero-cta-primary {
    padding: 0.68rem 1.05rem !important;
    font-size: 0.88rem !important;
    width: 100%;
    justify-content: center;
  }

  .fp-learn-stats {
    margin-top: -28px !important;
    margin-bottom: 1.05rem !important;
  }

  .fp-learn-stats .fp-features-grid {
    padding: 0.55rem 0.35rem !important;
    gap: 0.25rem !important;
    border-radius: 16px !important;
  }

  .fp-learn-stats .fp-feat-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
  }

  .fp-learn-stats .fp-feat-body strong {
    font-size: 0.72rem !important;
  }

  .fp-learn-sec-head {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    margin-bottom: 0.78rem !important;
  }

  .fp-learn-sec-title {
    font-size: 1.12rem !important;
    margin-bottom: 0.12rem !important;
  }

  .fp-learn-sec-desc {
    font-size: 0.78rem !important;
  }

  .fp-learn-shell {
    gap: 1rem !important;
  }

  /* Transform tall 430px stacked lesson cards into sleek 108px horizontal mobile rows */
  .fp-lesson-grid {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
  }

  .fp-les-card {
    display: grid !important;
    grid-template-columns: 84px minmax(0, 1fr) !important;
    align-items: stretch !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }

  .fp-les-card:hover {
    transform: none !important;
  }

  .fp-les-media {
    aspect-ratio: auto !important;
    width: 84px !important;
    min-height: 98px !important;
    height: 100% !important;
    background: linear-gradient(145deg, #0b2458 0%, #1d4ed8 100%) !important;
    overflow: hidden !important;
  }

  .fp-les-media img {
    border-radius: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .fp-les-num {
    top: 6px !important;
    left: 6px !important;
    right: 6px !important;
    text-align: center !important;
    padding: 0.16rem 0.34rem !important;
    font-size: 0.64rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .fp-les-pill {
    position: absolute !important;
    left: 5px !important;
    right: 5px !important;
    bottom: 6px !important;
    top: auto !important;
    padding: 0.14rem 0.36rem !important;
    font-size: 0.6rem !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22) !important;
  }

  .fp-les-body {
    padding: 0.65rem 0.78rem !important;
    gap: 0.2rem !important;
    min-width: 0 !important;
    justify-content: center !important;
  }

  .fp-les-title {
    font-size: 0.9rem !important;
    line-height: 1.32 !important;
    -webkit-line-clamp: 2 !important;
  }

  .fp-les-fr {
    font-size: 0.74rem !important;
  }

  .fp-les-outcome {
    display: none !important;
  }

  .fp-les-steps {
    margin-top: 0.16rem !important;
  }

  .fp-les-steps small {
    font-size: 0.7rem !important;
  }

  .fp-les-foot {
    margin-top: 0.22rem !important;
    padding-top: 0.26rem !important;
    border-top: 1px solid rgba(15, 42, 74, 0.06) !important;
    gap: 0.4rem !important;
  }

  .fp-les-meta {
    font-size: 0.72rem !important;
  }

  .fp-les-arcade-pill {
    padding: 0.14rem 0.45rem !important;
    font-size: 0.68rem !important;
  }

  .fp-les-go {
    width: 30px !important;
    height: 30px !important;
    flex-shrink: 0 !important;
  }

  /* ---------- PRACTICE (#practice): 3-Col KPI Row + Compact Dojo Banner ---------- */
  .fp-dojo-banner {
    padding: 1rem 0.95rem !important;
    border-radius: 18px !important;
    gap: 0.8rem !important;
    margin-bottom: 0.85rem !important;
  }

  .fp-dojo-kicker {
    font-size: 0.7rem !important;
    margin-bottom: 0.28rem !important;
  }

  .fp-dojo-title {
    font-size: 1.15rem !important;
    line-height: 1.32 !important;
    margin-bottom: 0.3rem !important;
  }

  .fp-dojo-sub {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.68rem !important;
  }

  .fp-dojo-actions {
    gap: 0.45rem !important;
  }

  .fp-dojo-play-btn,
  .fp-dojo-ghost-btn {
    padding: 0.54rem 0.82rem !important;
    font-size: 0.8rem !important;
  }

  .fp-dojo-kpis {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
  }

  .fp-dojo-kpi {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0.55rem 0.35rem !important;
    gap: 0.24rem !important;
    border-radius: 12px !important;
  }

  .fp-dojo-kpi-ico {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
  }

  .fp-dojo-kpi strong {
    font-size: 0.86rem !important;
    line-height: 1.15 !important;
  }

  .fp-dojo-kpi span {
    font-size: 0.66rem !important;
    line-height: 1.2 !important;
  }

  .fp-dojo-bento {
    gap: 0.65rem !important;
  }

  .fp-bento-hero,
  .fp-bento-mini,
  .practice-card {
    padding: 0.88rem !important;
    border-radius: 16px !important;
  }

  /* ---------- ME (#me): Compact 4-Col Passport + Decluttered Mastery & Settings ---------- */
  .fp-me-shell {
    gap: 0.85rem !important;
  }

  .fp-passport-card {
    padding: 1rem 0.95rem !important;
    border-radius: 18px !important;
    gap: 0.8rem !important;
  }

  .fp-passport-top {
    gap: 0.7rem !important;
  }

  .fp-pass-avatar {
    width: 44px !important;
    height: 44px !important;
    font-size: 0.95rem !important;
  }

  .fp-pass-pill {
    font-size: 0.66rem !important;
    padding: 0.16rem 0.52rem !important;
  }

  .fp-passport-name {
    font-size: 1.08rem !important;
    line-height: 1.3 !important;
  }

  .fp-passport-sub {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
  }

  .fp-passport-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.38rem !important;
  }

  .fp-pass-kpi {
    padding: 0.52rem 0.25rem !important;
    border-radius: 12px !important;
    text-align: center !important;
    align-items: center !important;
  }

  .fp-pass-kpi strong {
    font-size: 0.84rem !important;
    justify-content: center !important;
    gap: 0.18rem !important;
  }

  .fp-pass-kpi strong .icon {
    width: 13px !important;
    height: 13px !important;
  }

  .fp-pass-kpi span {
    font-size: 0.64rem !important;
  }

  .fp-me-grid,
  .fp-me-col {
    gap: 0.78rem !important;
  }

  .fp-me-shell .me-card {
    padding: 0.92rem !important;
    border-radius: 16px !important;
  }

  .fp-me-shell .me-card--accordion {
    padding: 0.65rem 0.85rem !important;
  }

  .me-card-title {
    font-size: 0.98rem !important;
    margin-bottom: 0.65rem !important;
  }

  .bl-mastery-card {
    gap: 0.75rem !important;
  }

  .bl-heatmap-box {
    padding: 0.68rem 0.72rem !important;
  }

  .bl-heatmap-grid {
    gap: 3px !important;
  }

  .bl-skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.48rem !important;
  }

  .bl-skill-item {
    padding: 0.52rem 0.6rem !important;
  }

  .bl-skill-lbl {
    font-size: 0.76rem !important;
    margin-bottom: 0.3rem !important;
  }

  .bl-badges-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.42rem !important;
  }

  .bl-badge-item {
    padding: 0.52rem 0.32rem !important;
    gap: 0.25rem !important;
    border-radius: 12px !important;
  }

  .bl-badge-ico {
    width: 30px !important;
    height: 30px !important;
  }

  .bl-badge-item strong {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
  }

  .bl-badge-item small {
    font-size: 0.62rem !important;
    line-height: 1.2 !important;
  }

  .me-settings-list {
    gap: 0.42rem !important;
  }

  .me-setting-btn {
    padding: 0.62rem 0.7rem !important;
    border-radius: 12px !important;
  }

  .me-setting-ico {
    width: 32px !important;
    height: 32px !important;
  }

  .me-setting-txt strong {
    font-size: 0.84rem !important;
  }

  .me-setting-txt small {
    font-size: 0.72rem !important;
  }

  .me-setting-state {
    font-size: 0.76rem !important;
  }

  .vc-capsule-card {
    padding: 0.15rem 0 !important;
  }

  .vc-capsule-head h3 {
    display: none !important;
  }

  /* ---------- SPEAKING (#speaking): 4-Tab Bar + Single-Row Phrase Strip ---------- */
  #page-speaking .parler-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.3rem !important;
    padding: 0.3rem !important;
    overflow: visible !important;
  }

  #page-speaking .parler-tab {
    justify-content: center !important;
    padding: 0.46rem 0.14rem !important;
    gap: 0.16rem !important;
    min-width: 0 !important;
  }

  #page-speaking .parler-tab-ico .icon {
    width: 13px !important;
    height: 13px !important;
  }

  #page-speaking .parler-tab-label {
    font-size: 0.66rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Turn 3-row 12-phrase grid into a sleek single horizontal strip so Record button fits screen 1 */
  #page-speaking .parler-steps {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 0.38rem !important;
    margin: 0.55rem 0 !important;
    padding-bottom: 2px !important;
  }

  #page-speaking .parler-step {
    flex: 0 0 auto !important;
    min-width: 58px !important;
    padding: 0.36rem 0.52rem !important;
  }
}

html[data-theme="dark"] .fp-les-foot {
  border-top-color: rgba(148, 163, 184, 0.12) !important;
}

/* ==========================================================================
   16. CEFR STANDARD ADAPTIVE PLACEMENT TEST (v2 · A1 -> C2 Staircase UI)
   ========================================================================== */
.pt-progress-bar {
  background: rgba(29, 78, 216, 0.12) !important;
}

.pt-level-badge {
  background: rgba(29, 78, 216, 0.12) !important;
  color: #1d4ed8 !important;
}

.pt-opt-letter {
  background: rgba(29, 78, 216, 0.1) !important;
  color: #1d4ed8 !important;
}

.pt-option.is-correct .pt-opt-letter {
  background: #10b981 !important;
  color: #ffffff !important;
}

.pt-option.is-miss .pt-opt-letter {
  background: #ef4444 !important;
  color: #ffffff !important;
}

.pt-band-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.75rem 0 0.85rem;
}

.pt-band-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(15, 42, 74, 0.06);
  color: var(--ink-muted, #64748b);
  border: 1px solid rgba(15, 42, 74, 0.08);
  transition: all 0.2s ease;
}

.pt-band-pill.is-done {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.32);
}

.pt-band-pill.is-cur {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}

.pt-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.pt-skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.pt-skill-chip .icon {
  width: 13px;
  height: 13px;
}

.pt-adaptive-hint {
  font-size: 0.72rem;
  color: var(--ink-muted, #64748b);
}

.pt-cefr-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 1rem 0 0.95rem;
}

.pt-cefr-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  padding: 0.58rem 0.32rem;
  border-radius: 13px;
  border: 1px solid rgba(15, 42, 74, 0.1);
  background: rgba(15, 42, 74, 0.03);
  text-align: center;
}

.pt-cefr-cell strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink, #0f2a4a);
}

.pt-cefr-cell span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-muted, #64748b);
}

.pt-cefr-cell small {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--ink-muted, #64748b);
}

.pt-cefr-cell.is-passed {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.36);
}

.pt-cefr-cell.is-passed strong,
.pt-cefr-cell.is-passed span,
.pt-cefr-cell.is-passed small {
  color: #047857;
}

.pt-cefr-cell.is-target {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.36);
}

.pt-cefr-cell.is-target strong,
.pt-cefr-cell.is-target span,
.pt-cefr-cell.is-target small {
  color: #1d4ed8;
}

.pt-cefr-cell.is-untested {
  opacity: 0.55;
}

.pt-standard-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  text-align: left;
  padding: 0.78rem 0.9rem;
  margin: 0.85rem 0;
  border-radius: 14px;
  background: rgba(15, 42, 74, 0.045);
  border: 1px solid rgba(15, 42, 74, 0.1);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-soft, #334155);
}

.pt-standard-note .icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #1d4ed8;
}

.pt-result-stats {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) !important;
}

html[data-theme="dark"] .pt-band-pill {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.18);
  color: #94a3b8;
}

html[data-theme="dark"] .pt-band-pill.is-done {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.38);
}

html[data-theme="dark"] .pt-skill-chip {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

html[data-theme="dark"] .pt-cefr-cell {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .pt-cefr-cell.is-passed {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.38);
}

html[data-theme="dark"] .pt-cefr-cell.is-passed strong,
html[data-theme="dark"] .pt-cefr-cell.is-passed span,
html[data-theme="dark"] .pt-cefr-cell.is-passed small {
  color: #6ee7b7;
}

html[data-theme="dark"] .pt-cefr-cell.is-target {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.38);
}

html[data-theme="dark"] .pt-cefr-cell.is-target strong,
html[data-theme="dark"] .pt-cefr-cell.is-target span,
html[data-theme="dark"] .pt-cefr-cell.is-target small {
  color: #93c5fd;
}

html[data-theme="dark"] .pt-standard-note {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .s3-shell--placement {
    padding: calc(64px + env(safe-area-inset-top, 0px) + 10px) 0.75rem 5.5rem !important;
  }

  .pt-focus-card,
  .pt-result-card {
    padding: 0.95rem 0.9rem !important;
    border-radius: 18px !important;
  }

  .pt-band-stepper {
    gap: 0.24rem;
    margin: 0.55rem 0 0.15rem;
  }

  .pt-band-pill {
    font-size: 0.66rem;
    padding: 0.22rem 0.18rem;
  }

  .pt-adaptive-hint {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .pt-question-km {
    font-size: 0.98rem !important;
    line-height: 1.45 !important;
  }

  .pt-prompt-box {
    padding: 0.75rem 0.85rem !important;
  }

  .pt-prompt-fr {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  .pt-option {
    padding: 0.72rem 0.78rem !important;
  }

  .pt-opt-text {
    font-size: 0.86rem !important;
    line-height: 1.45 !important;
  }

  .pt-cefr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.38rem;
    margin: 0.78rem 0;
  }

  .pt-result-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
  }

  .pt-result-title {
    font-size: 1.18rem !important;
    line-height: 1.38 !important;
  }

  .pt-standard-note {
    font-size: 0.73rem;
    padding: 0.68rem 0.75rem;
  }
}

/* ==========================================================================
   17. INTERACTIVE VIDEO & HOW-TO GUIDE CENTER (v77)
   ========================================================================== */
.fp-guide-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #dbeafe;
  box-shadow: 0 6px 18px rgba(10, 29, 77, 0.05);
}

.fp-guide-strip-head {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  min-width: 0;
}

.fp-guide-strip-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a1d4d 0%, #1d4ed8 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.22);
}

.fp-guide-strip-ico .icon {
  width: 17px;
  height: 17px;
}

.fp-guide-strip-txt {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.fp-guide-strip-txt strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--fp-navy, #0a1d4d);
  line-height: 1.3;
}

.fp-guide-strip-txt small {
  font-size: 0.76rem;
  color: #475569;
  line-height: 1.35;
}

.fp-guide-strip-pills {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.fp-guide-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  height: 34px;
  padding: 0 0.76rem;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #ffffff;
  color: #0a1d4d;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.fp-guide-pill .icon {
  width: 14px;
  height: 14px;
  color: #1d4ed8;
}

.fp-guide-pill:hover {
  transform: translateY(-1px);
  background: #eff6ff;
  border-color: #60a5fa;
}

.guide-inline-link {
  width: 100%;
  margin-top: 0.78rem;
  padding: 0.62rem 0.85rem;
  border-radius: 12px;
  border: 1px dashed #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.guide-inline-link--compact {
  margin-top: 0.55rem;
  margin-bottom: 0.6rem;
}

.guide-inline-link .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.guide-inline-link:hover {
  background: #dbeafe;
  border-color: #3b82f6;
}

.guide-modal-dialog {
  max-width: 720px;
}

.guide-center {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.guide-tabs {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.guide-tabs::-webkit-scrollbar {
  display: none;
}

.guide-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  height: 38px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-family: inherit;
  font-size: 0.81rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.guide-tab-btn .icon {
  width: 15px;
  height: 15px;
}

.guide-tab-btn.is-active {
  background: linear-gradient(135deg, #0a1d4d 0%, #1d4ed8 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(10, 29, 77, 0.22);
}

.guide-video-card {
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #071740 0%, #102d78 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  box-shadow: 0 12px 26px rgba(7, 23, 64, 0.2);
}

.guide-video-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.guide-video-chip,
.guide-video-dur {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
}

.guide-video-chip {
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.guide-video-dur {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.guide-video-chip .icon,
.guide-video-dur .icon {
  width: 13px;
  height: 13px;
}

.guide-video-empty {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.guide-video-empty-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fde68a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-video-empty-ico .icon {
  width: 24px;
  height: 24px;
}

.guide-video-empty-txt {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.guide-video-empty-txt strong {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.38;
  color: #ffffff;
}

.guide-video-empty-txt p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.92);
}

.guide-video-note {
  margin-top: 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #93c5fd;
}

.guide-video-note .icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.guide-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #020617;
}

.guide-video-frame.is-portrait {
  max-width: 300px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
}

.guide-video-frame iframe,
.guide-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
}

.guide-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  padding: 0.74rem 0.86rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.guide-step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.08rem;
}

.guide-step-copy {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  min-width: 0;
}

.guide-step-copy strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
}

.guide-step-copy p {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.55;
  color: #475569;
}

.guide-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 0.58rem;
  padding: 0.72rem 0.88rem;
  border-radius: 13px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.guide-tip-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.guide-tip-ico .icon {
  width: 17px;
  height: 17px;
}

.guide-tip-box p {
  margin: 0;
  font-size: 0.79rem;
  line-height: 1.52;
  font-weight: 600;
}

.guide-action-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.guide-act-btn {
  justify-content: center;
  min-height: 42px;
  font-size: 0.83rem;
}

.guide-support-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.79rem;
  color: #64748b;
  flex-wrap: wrap;
}

.guide-tg-link {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  color: #0284c7;
  font-weight: 800;
  text-decoration: none;
}

.guide-tg-link .icon {
  width: 15px;
  height: 15px;
}

/* Dark mode for Video & Guide Center */
html[data-theme="dark"] .fp-guide-strip {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 138, 0.35) 100%);
  border-color: rgba(96, 165, 250, 0.25);
}

html[data-theme="dark"] .fp-guide-strip-txt strong {
  color: #f8fafc;
}

html[data-theme="dark"] .fp-guide-strip-txt small {
  color: #cbd5e1;
}

html[data-theme="dark"] .fp-guide-pill {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(96, 165, 250, 0.3);
  color: #e2e8f0;
}

html[data-theme="dark"] .fp-guide-pill .icon {
  color: #60a5fa;
}

html[data-theme="dark"] .guide-inline-link {
  background: rgba(30, 58, 138, 0.25);
  border-color: rgba(96, 165, 250, 0.4);
  color: #bfdbfe;
}

html[data-theme="dark"] .guide-tab-btn {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.24);
  color: #cbd5e1;
}

html[data-theme="dark"] .guide-tab-btn.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
}

html[data-theme="dark"] .guide-step-item {
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .guide-step-copy strong {
  color: #f8fafc;
}

html[data-theme="dark"] .guide-step-copy p {
  color: #cbd5e1;
}

html[data-theme="dark"] .guide-tip-box {
  background: rgba(120, 53, 15, 0.28);
  border-color: rgba(251, 191, 36, 0.32);
  color: #fde68a;
}

html[data-theme="dark"] .guide-support-foot {
  border-top-color: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

html[data-theme="dark"] .guide-tg-link {
  color: #38bdf8;
}

@media (max-width: 768px) {
  .fp-guide-strip {
    padding: 0.78rem 0.85rem;
    gap: 0.65rem;
  }

  .fp-guide-strip-pills {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
  }

  .fp-guide-pill {
    justify-content: center;
    height: 36px;
    padding: 0 0.55rem;
    font-size: 0.76rem;
  }

  .guide-video-card {
    padding: 0.8rem 0.85rem;
  }

  .guide-video-empty {
    gap: 0.65rem;
  }

  .guide-video-empty-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .guide-video-empty-ico .icon {
    width: 20px;
    height: 20px;
  }

  .guide-video-empty-txt strong {
    font-size: 0.92rem;
  }

  .guide-video-empty-txt p {
    font-size: 0.78rem;
  }

  .guide-step-item {
    padding: 0.66rem 0.75rem;
    gap: 0.6rem;
  }

  .guide-step-num {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .guide-step-copy strong {
    font-size: 0.83rem;
  }

  .guide-step-copy p {
    font-size: 0.77rem;
  }

  .guide-action-bar {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   18. INTERACTIVE ANIMATED PHONE WALKTHROUGH PLAYER (v78)
   ========================================================================== */
.guide-step-item {
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.guide-step-item:hover {
  border-color: #93c5fd;
  background: #f0f9ff;
}

.guide-step-item.is-playing {
  background: #eff6ff;
  border-color: #2563eb;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.14);
}

.guide-step-item.is-playing .guide-step-num {
  background: linear-gradient(135deg, #2563eb 0%, #0a1d4d 100%);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.guide-step-play-tag {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  opacity: 0.55;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.guide-step-play-tag .icon {
  width: 12px;
  height: 12px;
}

.guide-step-item.is-playing .guide-step-play-tag {
  opacity: 1;
  background: #2563eb;
  color: #ffffff;
}

.gd-phone-shell {
  position: relative;
  width: 100%;
  border-radius: 18px;
  padding: 0.65rem 0.72rem 0.72rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 28px rgba(2, 6, 23, 0.32);
  color: #0f172a;
  overflow: hidden;
}

.gd-phone-notch {
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: #cbd5e1;
  margin: 0 auto 0.55rem;
}

.gd-stage {
  min-height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gd-screen {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.gd-scene-enter {
  animation: gdSceneIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes gdSceneIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gd-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.38rem 0.58rem;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 0.75rem;
}

.gd-brand {
  font-weight: 700;
  color: #0a1d4d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gd-brand b {
  color: #1d4ed8;
}

.gd-pill-mini {
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.67rem;
  font-weight: 800;
  white-space: nowrap;
}

.gd-hero-mini {
  padding: 0.62rem 0.72rem;
  border-radius: 13px;
  background: linear-gradient(135deg, #0a1d4d 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.36rem;
}

.gd-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fde68a;
}

.gd-hero-mini strong {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.3;
}

.gd-sub-note {
  font-size: 0.69rem;
  color: #bfdbfe;
  font-weight: 600;
}

.gd-btn-mock {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.gd-btn-mock .icon {
  width: 14px;
  height: 14px;
}

.gd-btn-mock.is-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.34);
}

.gd-btn-mock.is-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(217, 119, 6, 0.32);
}

.gd-btn-mock.is-sm {
  min-height: 34px;
  padding: 0 0.72rem;
  border-radius: 10px;
}

.is-target {
  position: relative;
  animation: gdTargetPulse 1.6s ease-in-out infinite;
}

@keyframes gdTargetPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.42);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
  }
}

.gd-tap {
  position: absolute;
  right: -6px;
  bottom: -10px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 4;
  animation: gdTapBounce 1.45s ease-in-out infinite;
}

.gd-tap .icon {
  width: 22px;
  height: 22px;
  color: #0f172a;
  fill: #ffffff;
  filter: drop-shadow(0 3px 6px rgba(2, 6, 23, 0.45));
  position: relative;
  z-index: 2;
}

.gd-tap-ring {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2.5px solid #f59e0b;
  animation: gdRipple 1.45s ease-out infinite;
}

.gd-tap-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.45);
}

@keyframes gdTapBounce {
  0%, 100% { transform: translate(3px, 3px) scale(1); }
  45% { transform: translate(-2px, -2px) scale(0.9); }
}

@keyframes gdRipple {
  0% { transform: scale(0.5); opacity: 0.95; }
  100% { transform: scale(1.65); opacity: 0; }
}

.gd-cefr-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.3rem;
}

.gd-lvl {
  text-align: center;
  padding: 0.28rem 0.15rem;
  border-radius: 8px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.71rem;
  font-weight: 800;
}

.gd-lvl.is-open {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.gd-lvl.is-lit-1 { animation: gdLitChip 2.4s ease-in-out 0s infinite; }
.gd-lvl.is-lit-2 { animation: gdLitChip 2.4s ease-in-out 0.35s infinite; }
.gd-lvl.is-lit-3 { animation: gdLitChip 2.4s ease-in-out 0.7s infinite; }

@keyframes gdLitChip {
  0%, 100% { background: #dbeafe; color: #1e40af; }
  40% { background: #2563eb; color: #ffffff; transform: translateY(-2px); }
}

.gd-card-mock {
  padding: 0.62rem 0.72rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.gd-card-line {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.gd-card-line strong {
  font-size: 0.8rem;
  color: #0a1d4d;
}

.gd-card-line small {
  font-size: 0.7rem;
  color: #64748b;
}

.gd-bottom-nav-mock {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.24rem;
  padding: 0.42rem 0.35rem;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.gd-nav-it {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.14rem;
  padding: 0.3rem 0.15rem;
  border-radius: 9px;
  color: #475569;
  font-size: 0.64rem;
  font-weight: 700;
}

.gd-nav-it .icon {
  width: 15px;
  height: 15px;
}

.gd-nav-it.is-lit-1 { animation: gdNavCycle 3.5s ease-in-out 0s infinite; }
.gd-nav-it.is-lit-2 { animation: gdNavCycle 3.5s ease-in-out 0.7s infinite; }
.gd-nav-it.is-lit-3 { animation: gdNavCycle 3.5s ease-in-out 1.4s infinite; }
.gd-nav-it.is-lit-4 { animation: gdNavCycle 3.5s ease-in-out 2.1s infinite; }
.gd-nav-it.is-lit-5 { animation: gdNavCycle 3.5s ease-in-out 2.8s infinite; }

@keyframes gdNavCycle {
  0%, 24%, 100% { background: transparent; color: #475569; }
  8%, 18% { background: #dbeafe; color: #1d4ed8; transform: translateY(-2px); }
}

.gd-streak-card {
  padding: 0.7rem 0.78rem;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid #fed7aa;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.gd-streak-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gd-flame-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: #ea580c;
  font-size: 0.82rem;
}

.gd-flame-badge .icon {
  width: 16px;
  height: 16px;
}

.gd-xp-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 800;
}

.gd-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.gd-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
  animation: gdFillBar 2.6s ease-out infinite;
}

@keyframes gdFillBar {
  0% { width: 18%; }
  75%, 100% { width: 100%; }
}

.gd-days-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.gd-days-row span {
  text-align: center;
  padding: 0.24rem 0;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  background: #dcfce7;
  color: #166534;
}

.gd-days-row span.is-today {
  background: #f97316;
  color: #ffffff;
}

.gd-icon-btn-mock {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gd-icon-btn-mock .icon {
  width: 16px;
  height: 16px;
}

.gd-callout-mini {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.72rem;
  border-radius: 11px;
  background: #eff6ff;
  border: 1px dashed #60a5fa;
  color: #1e3a8a;
  font-size: 0.76rem;
}

.gd-callout-mini .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.gd-modal-mini-head {
  font-size: 0.76rem;
  font-weight: 800;
  color: #0a1d4d;
  text-align: center;
}

.gd-google-btn-mock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  padding: 0.58rem 0.85rem;
  border-radius: 11px;
  background: #ffffff;
  border: 1.5px solid #2563eb;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
}

.gd-google-btn-mock .icon {
  width: 17px;
  height: 17px;
  color: #ea4335;
}

.gd-ok-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.44rem 0.65rem;
  border-radius: 10px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.73rem;
  font-weight: 700;
}

.gd-ok-pill .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.gd-field-mock {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.gd-field-mock label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #334155;
}

.gd-input-mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 0.62rem;
  border-radius: 9px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

.gd-field-mock.is-focused .gd-input-mock {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.gd-field-mock.is-empty-ok .gd-input-mock {
  background: #f0fdf4;
  border-color: #86efac;
  font-size: 0.71rem;
  color: #475569;
}

.gd-field-mock.is-empty-ok b {
  color: #15803d;
  font-weight: 800;
}

.gd-typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #1d4ed8;
  font-weight: 800;
  letter-spacing: 0.04em;
  width: 0;
  animation: gdTypeCode 2.2s steps(12, end) forwards infinite;
}

.gd-typing.is-short {
  animation: gdTypeShort 2s steps(5, end) forwards infinite;
}

@keyframes gdTypeCode {
  0%, 10% { width: 0; }
  55%, 100% { width: 14.5ch; }
}

@keyframes gdTypeShort {
  0%, 10% { width: 0; }
  50%, 100% { width: 6.8ch; }
}

.gd-caret {
  display: inline-block;
  width: 2px;
  height: 15px;
  background: #2563eb;
  margin-left: 2px;
  margin-right: auto;
  animation: gdBlink 0.7s step-end infinite;
}

@keyframes gdBlink {
  50% { opacity: 0; }
}

.gd-unlock-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.58rem 0.72rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
}

.gd-unlock-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gd-unlock-ico .icon {
  width: 18px;
  height: 18px;
}

.gd-unlock-banner strong {
  display: block;
  font-size: 0.82rem;
}

.gd-unlock-banner small {
  font-size: 0.7rem;
  color: #dcfce7;
}

.gd-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.gd-plan-box {
  padding: 0.55rem 0.35rem;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}

.gd-plan-box b {
  font-size: 0.7rem;
  color: #334155;
}

.gd-plan-box span {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0a1d4d;
}

.gd-plan-box.is-hot {
  background: #eff6ff;
  border: 2px solid #2563eb;
}

.gd-promo-row-mock {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.gd-promo-row-mock .gd-input-mock {
  flex: 1;
}

.gd-price-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  padding: 0.48rem 0.65rem;
  border-radius: 11px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  flex-wrap: wrap;
}

.gd-price-drop .icon {
  width: 14px;
  height: 14px;
  color: #16a34a;
}

.gd-old-price {
  text-decoration: line-through;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
}

.gd-new-price {
  color: #15803d;
  font-size: 0.98rem;
  font-weight: 900;
}

.gd-save-tag {
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
}

.gd-khqr-mock {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #dbeafe;
}

.gd-qr-box {
  width: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #dc2626;
  flex-shrink: 0;
}

.gd-qr-head {
  background: #dc2626;
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 900;
  text-align: center;
  padding: 0.14rem 0;
  letter-spacing: 0.06em;
}

.gd-qr-pattern {
  position: relative;
  height: 54px;
  background:
    repeating-linear-gradient(90deg, #0f172a 0 4px, transparent 4px 8px),
    repeating-linear-gradient(0deg, #0f172a 0 4px, transparent 4px 8px);
  background-size: 16px 16px;
  opacity: 0.82;
}

.gd-qr-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #2563eb;
  box-shadow: 0 0 8px #3b82f6;
  animation: gdScan 1.6s ease-in-out infinite;
}

@keyframes gdScan {
  0%, 100% { top: 4px; }
  50% { top: 46px; }
}

.gd-khqr-info {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.gd-khqr-info strong {
  font-size: 0.84rem;
  color: #0a1d4d;
}

.gd-khqr-info small {
  font-size: 0.7rem;
  color: #475569;
}

.gd-bank-chips {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-top: 0.14rem;
}

.gd-bank-chips span {
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.64rem;
  font-weight: 800;
}

.gd-upload-mock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.56rem 0.72rem;
  border-radius: 11px;
  background: #ffffff;
  border: 1.5px dashed #2563eb;
  color: #1e3a8a;
  font-size: 0.74rem;
  font-weight: 800;
}

.gd-upload-mock .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.gd-lesson-row-mock {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  padding: 0.54rem 0.68rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #2563eb;
}

.gd-les-badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gd-lesson-row-mock strong {
  display: block;
  font-size: 0.8rem;
  color: #0f172a;
}

.gd-lesson-row-mock small {
  font-size: 0.7rem;
  color: #2563eb;
  font-weight: 600;
}

.gd-les-go {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gd-les-go .icon {
  width: 13px;
  height: 13px;
}

.gd-five-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.25rem;
}

.gd-five-steps span {
  text-align: center;
  padding: 0.34rem 0.14rem;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 0.64rem;
  font-weight: 800;
  color: #334155;
}

.gd-five-steps .is-lit-1 { animation: gdNavCycle 3.2s ease-in-out 0s infinite; }
.gd-five-steps .is-lit-2 { animation: gdNavCycle 3.2s ease-in-out 0.6s infinite; }
.gd-five-steps .is-lit-3 { animation: gdNavCycle 3.2s ease-in-out 1.2s infinite; }
.gd-five-steps .is-lit-4 { animation: gdNavCycle 3.2s ease-in-out 1.8s infinite; }
.gd-five-steps .is-lit-5 { animation: gdNavCycle 3.2s ease-in-out 2.4s infinite; }

.gd-audio-card-mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.56rem 0.72rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #dbeafe;
}

.gd-fr-word {
  display: block;
  font-size: 0.96rem;
  color: #0a1d4d;
}

.gd-audio-card-mock small {
  font-size: 0.71rem;
  color: #475569;
}

.gd-audio-btn-mock {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
}

.gd-audio-btn-mock .icon {
  width: 15px;
  height: 15px;
}

.gd-waves {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.gd-waves i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #fde68a;
  animation: gdWave 0.9s ease-in-out infinite;
}

.gd-waves i:nth-child(1) { height: 6px; animation-delay: 0s; }
.gd-waves i:nth-child(2) { height: 13px; animation-delay: 0.2s; }
.gd-waves i:nth-child(3) { height: 8px; animation-delay: 0.4s; }

@keyframes gdWave {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1.1); }
}

.gd-speed-row {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.gd-speed-row span {
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.69rem;
  font-weight: 700;
}

.gd-speed-row span.is-active {
  background: #1d4ed8;
  color: #ffffff;
}

.gd-speak-mock {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.62rem 0.78rem;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid #dbeafe;
}

.gd-mic-orb {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #0a1d4d 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gd-mic-orb .icon {
  width: 21px;
  height: 21px;
}

.gd-speak-score strong {
  display: block;
  font-size: 0.82rem;
  color: #0f172a;
}

.gd-speak-score b {
  color: #16a34a;
  font-size: 0.94rem;
}

.gd-speak-score small {
  font-size: 0.71rem;
  color: #475569;
}

.gd-dots-mock {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gd-menu-drop {
  padding: 0.45rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.gd-menu-it {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  border-radius: 9px;
  background: #eff6ff;
  border: 1.5px solid #2563eb;
  color: #1e3a8a;
  font-size: 0.77rem;
  font-weight: 800;
}

.gd-menu-it .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.gd-ios-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.56rem 0.5rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  flex-wrap: wrap;
}

.gd-ios-bar > .icon {
  width: 14px;
  height: 14px;
  color: #64748b;
}

.gd-ios-share,
.gd-ios-add {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.6rem;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
}

.gd-ios-share {
  background: #f1f5f9;
  color: #0f172a;
}

.gd-ios-add {
  background: #eff6ff;
  border: 1.5px solid #2563eb;
  color: #1d4ed8;
}

.gd-ios-share .icon,
.gd-ios-add .icon {
  width: 15px;
  height: 15px;
}

.gd-home-app-mock {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.62rem 0.75rem;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid #dbeafe;
}

.gd-app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.gd-app-tile span {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a1d4d 0%, #1d4ed8 100%);
  color: #fde68a;
  font-size: 0.92rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(10, 29, 77, 0.26);
}

.gd-app-tile b {
  font-size: 0.62rem;
  color: #334155;
}

.gd-app-desc strong {
  display: block;
  font-size: 0.82rem;
  color: #0a1d4d;
}

.gd-app-desc small {
  font-size: 0.71rem;
  color: #16a34a;
  font-weight: 700;
}

.gd-tools-mock {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.gd-tool-pill {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.5rem 0.68rem;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
}

.gd-tool-pill .icon {
  width: 15px;
  height: 15px;
  color: #0284c7;
  flex-shrink: 0;
}

.gd-tool-pill b {
  margin-left: auto;
  color: #16a34a;
  font-size: 0.71rem;
}

/* Subtitle + Segmented Progress + Video Controls */
.gd-subtitle {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.gd-sub-badge {
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  background: #fbbf24;
  color: #0a1d4d;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
}

.gd-progress-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.34rem;
}

.gd-seg {
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  cursor: pointer;
}

.gd-seg i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #fbbf24;
}

.gd-seg.is-done i {
  width: 100%;
}

.gd-seg.is-active.is-anim i {
  animation: gdSegFill var(--gd-ms, 4400ms) linear forwards;
}

.gd-seg.is-active.is-paused i {
  animation-play-state: paused;
}

@keyframes gdSegFill {
  from { width: 0%; }
  to { width: 100%; }
}

.gd-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.gd-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  height: 32px;
  padding: 0 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease;
}

.gd-ctrl-btn .icon {
  width: 14px;
  height: 14px;
}

.gd-ctrl-btn.is-main {
  background: #ffffff;
  color: #0a1d4d;
  border-color: transparent;
  padding: 0 0.95rem;
}

.gd-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gd-ctrl-btn.is-main:hover {
  background: #fde68a;
}

html[data-theme="dark"] .guide-step-item:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(30, 58, 138, 0.24);
}

html[data-theme="dark"] .guide-step-item.is-playing {
  background: rgba(30, 58, 138, 0.34);
  border-color: #60a5fa;
}

html[data-theme="dark"] .guide-step-play-tag {
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
}

html[data-theme="dark"] .guide-step-item.is-playing .guide-step-play-tag {
  background: #3b82f6;
  color: #ffffff;
}

@media (max-width: 768px) {
  .gd-phone-shell {
    padding: 0.55rem 0.58rem 0.62rem;
  }

  .gd-stage {
    min-height: 140px;
  }

  .gd-subtitle {
    font-size: 0.77rem;
  }
}

