:root {
  /* LEXOVA 60-30-10 Agency-Grade EdTech Color System */
  /* 60% Canvas & Surfaces */
  --bg: #f8fbfd;
  --bg-deep: #eef6fa;
  --surface: #ffffff;
  --surface-elevated: #f3f9fc;
  --surface-warm: #fffbf2;
  --border: rgba(5, 63, 92, 0.08);
  --border-strong: rgba(5, 63, 92, 0.14);
  --border-subtle: rgba(5, 63, 92, 0.06);

  /* 30% Primary Brand & Structure */
  --navy: #053f5c;
  --navy-dark: #032b40;
  --navy-soft: rgba(5, 63, 92, 0.07);
  --teal: #429ebd;
  --teal-hover: #3288a6;
  --teal-soft: rgba(66, 158, 189, 0.14);
  --ice: #9fe7f5;
  --ice-soft: rgba(159, 231, 245, 0.25);
  --ice-tint: rgba(159, 231, 245, 0.16);

  /* 10% High-Contrast Accents & CTAs */
  --orange: #f27f0c;
  --orange-hover: #dc6e04;
  --orange-soft: rgba(242, 127, 12, 0.13);
  --gold: #f7ad19;
  --gold-soft: rgba(247, 173, 25, 0.2);
  --gold-marker: rgba(247, 173, 25, 0.4);

  /* Semantic Aliases (100% compatible with existing panels & JS) */
  --deep-blue: #053f5c;
  --serene-blue: #429ebd;
  --rouge-red: #f27f0c;
  --peach: #f7ad19;
  --primary: #f27f0c;
  --primary-hover: #dc6e04;
  --secondary: #429ebd;
  --accent: #053f5c;
  --gold-bright: #053f5c;
  --danger: #d94155;
  --danger-soft: rgba(217, 65, 85, 0.12);

  /* Typography */
  --ivory: #053f5c;
  --ivory-dim: rgba(5, 63, 92, 0.8);
  --muted: rgba(5, 63, 92, 0.62);

  /* Elevation & Geometry */
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 12px 32px rgba(5, 63, 92, 0.07);
  --shadow-hover: 0 20px 44px rgba(5, 63, 92, 0.11);
  --shadow-lg: 0 24px 56px rgba(5, 63, 92, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 90% 4%, rgba(159, 231, 245, 0.34) 0%, transparent 38%),
    radial-gradient(circle at 8% 36%, rgba(247, 173, 25, 0.11) 0%, transparent 34%),
    radial-gradient(circle at 84% 78%, rgba(66, 158, 189, 0.12) 0%, transparent 40%),
    var(--bg);
  background-attachment: fixed;
  color: var(--navy);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  transition: color 0.2s ease;
}
a:hover {
  color: var(--orange);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
  width: 100%;
}

/* ==================== Top Reading Progress Bar ==================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 70;
  background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 55%, var(--orange) 100%);
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform 0.12s linear;
  pointer-events: none;
}

/* ==================== A. Sticky Glassmorphic Header & Mobile Drawer ==================== */
.navbar {
  background: rgba(248, 251, 253, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(5, 63, 92, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-logo-img {
  transform: translateY(-1px);
}

.brand-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: -0.015em;
}

.brand-sub {
  font-size: 11px;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav-btn {
  position: relative;
  border: none;
  background: transparent;
  color: var(--ivory-dim);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-btn::after {
  content: "";
  position: absolute;
  bottom: 3px;
  right: 14px;
  left: 14px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-btn:hover {
  background: var(--ice-tint);
  color: var(--navy);
}

.nav-btn.active {
  background: var(--ice-soft);
  color: var(--navy);
  font-weight: 700;
}

.nav-btn.active::after {
  transform: scaleX(1);
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--navy);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.mobile-menu-btn:hover {
  background: var(--ice-tint);
}

.mobile-drawer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: max-height 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, border-color 0.25s ease;
}

.mobile-drawer.open {
  max-height: 420px;
  opacity: 1;
  border-bottom-color: var(--border);
}

.mobile-drawer-inner {
  padding: 14px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer-inner .nav-btn {
  text-align: right;
  width: 100%;
  padding: 10px 14px;
}

/* ==================== Tactile Buttons (Strict 60-30-10) ==================== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  border-radius: 13px;
  padding: 11px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Primary High-Conversion CTA — Vibrant Orange #F27F0C */
.btn-orange,
.btn-gold {
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(242, 127, 12, 0.28);
}
.btn-orange:hover,
.btn-gold:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(242, 127, 12, 0.38);
}

/* Deep Navy Primary Button */
.btn-primary {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(5, 63, 92, 0.18);
}
.btn-primary:hover {
  background: #075074;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(5, 63, 92, 0.26);
}

/* Teal Accent Button */
.btn-accent {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(66, 158, 189, 0.24);
}
.btn-accent:hover {
  background: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(66, 158, 189, 0.34);
}

/* Refined Secondary Outline Button */
.btn-outline {
  background: #ffffff;
  color: var(--navy);
  border: 1.5px solid rgba(5, 63, 92, 0.24);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--navy);
  background: var(--ice-tint);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}
.btn-danger:hover {
  background: #bf3044;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 13px;
  border-radius: 11px;
}

.btn-xs {
  padding: 5px 11px;
  font-size: 12px;
  border-radius: 9px;
}

.w-full {
  width: 100%;
}

.icon-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.icon-btn:hover {
  color: var(--orange);
  transform: scale(1.08);
}

/* ==================== Notebook & Editorial Visual Motifs ==================== */
.marker-highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
  padding: 0 6px;
}

.marker-highlight::before {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 4px;
  height: 44%;
  background: var(--gold-marker);
  border-radius: 6px 12px 6px 10px;
  transform: none;
  z-index: -1;
}

.sticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--ice-soft);
  color: var(--navy);
  border: 1px solid rgba(66, 158, 189, 0.28);
  transform: none;
  box-shadow: 0 6px 16px rgba(5, 63, 92, 0.06);
}

.sticker-pill-gold {
  background: var(--gold-soft);
  border-color: rgba(247, 173, 25, 0.45);
  transform: none;
}

.dot-grid-bg {
  background-image: radial-gradient(rgba(5, 63, 92, 0.09) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}

/* ==================== Main Layout ==================== */
.main-content {
  flex: 1;
  padding-top: 28px;
  padding-bottom: 72px;
}

/* ==================== B. Upgraded Split Hero with Mode Switcher & Speech Bubble ==================== */
.hero-v2 {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 20px 0 38px;
}

.hero-v2 h1 {
  margin: 14px 0 14px;
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1.32;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.hero-v2 .hero-lead {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ivory-dim);
  max-width: 54ch;
}

.hero-inline-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ivory-dim);
}

.hero-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-inline-check svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
  flex-shrink: 0;
}

/* Hero Visual Showcase (Clean Photo Frame + Single Straight Top Badge) */
.hero-visual-col {
  position: relative;
  padding-bottom: 24px;
}

.hero-photo-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.hero-corner-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid rgba(5, 63, 92, 0.1);
  box-shadow: 0 8px 22px rgba(5, 63, 92, 0.12);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(66, 158, 189, 0.24);
}

/* Interactive Floating Speech Bubble */
.floating-speech-bubble {
  position: relative;
  margin-top: -22px;
  margin-right: 18px;
  margin-left: 18px;
  z-index: 5;
  background: var(--surface);
  border: 1.5px solid rgba(66, 158, 189, 0.28);
  border-radius: 22px;
  padding: 16px 18px;
  box-shadow: 0 18px 42px rgba(5, 63, 92, 0.13);
  animation: gentleBob 5.2s ease-in-out infinite;
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.speech-bubble-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.speech-phrase-en {
  font-family: "Inter", system-ui, sans-serif;
  direction: ltr;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}

.speech-phrase-fa {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.audio-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: var(--orange);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(242, 127, 12, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.audio-play-btn:hover {
  background: var(--orange-hover);
  transform: scale(1.06);
}

.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
}

.eq-bars i {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: currentColor;
  height: 6px;
  transition: height 0.2s ease;
}

.eq-bars i:nth-child(2) { height: 13px; }
.eq-bars i:nth-child(3) { height: 9px; }

.audio-play-btn.playing .eq-bars i {
  animation: eqBounce 0.6s ease-in-out infinite alternate;
}
.audio-play-btn.playing .eq-bars i:nth-child(2) { animation-delay: 0.15s; }
.audio-play-btn.playing .eq-bars i:nth-child(3) { animation-delay: 0.3s; }

@keyframes eqBounce {
  0% { height: 4px; }
  100% { height: 16px; }
}

/* ==================== C. 4-Column Trust & Key Metrics Strip ==================== */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease;
}

.trust-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.trust-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ice-soft);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon.gold {
  background: var(--gold-soft);
  color: #8f5f00;
}

.trust-icon svg {
  width: 22px;
  height: 22px;
}

.trust-item strong {
  display: block;
  font-size: 14.5px;
  color: var(--navy);
}

.trust-item span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

/* ==================== D. Interactive Stepped CEFR Roadmap (A1 -> C1) ==================== */
.section-block {
  margin-bottom: 64px;
}

.section-heading-center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 30px;
}

.section-heading-center h2 {
  margin: 10px 0 8px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.38;
  color: var(--navy);
  text-wrap: balance;
}

.section-heading-center p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.cefr-stepper-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 860px;
  margin: 0 auto 26px;
}

.cefr-stepper-line {
  position: absolute;
  top: 25px;
  right: 10%;
  left: 10%;
  height: 3px;
  background: rgba(5, 63, 92, 0.1);
  border-radius: 999px;
  z-index: 0;
}

.cefr-stepper-fill {
  height: 100%;
  background: linear-gradient(270deg, var(--teal), var(--gold), var(--orange));
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.cefr-step-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.cefr-step-circle {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  color: var(--navy);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(5, 63, 92, 0.06);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.cefr-step-btn:hover .cefr-step-circle {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.cefr-step-btn.passed .cefr-step-circle {
  background: var(--ice-soft);
  border-color: var(--teal);
}

.cefr-step-btn.active .cefr-step-circle {
  background: var(--orange);
  border-color: var(--orange);
  color: #ffffff;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 26px rgba(242, 127, 12, 0.32);
}

.cefr-step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s ease;
}

.cefr-step-btn.active .cefr-step-label {
  color: var(--navy);
}

.roadmap-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: start;
  transition: opacity 0.25s ease, transform 0.28s ease;
}

.roadmap-detail-card.is-switching {
  animation: modeCrossFade 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.outcome-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.outcome-mini-tile {
  padding: 14px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.outcome-mini-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(66, 158, 189, 0.4);
}

.outcome-mini-tile strong {
  display: block;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 4px;
}

.outcome-mini-tile p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ivory-dim);
  line-height: 1.65;
}

/* ==================== E. Asymmetric Bento Grid (Online Teaching Method) ==================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-6 { grid-column: span 6; }
.bento-span-12 { grid-column: span 12; }

.bento-ice {
  background: linear-gradient(155deg, #ffffff 0%, rgba(159, 231, 245, 0.24) 100%);
}

.bento-gold {
  background: linear-gradient(155deg, #ffffff 0%, rgba(247, 173, 25, 0.16) 100%);
}

/* ==================== F. Interactive Live Student Portal Preview ==================== */
.portal-preview-shell {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.portal-preview-bar {
  background: var(--navy);
  color: #ffffff;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-dots {
  display: inline-flex;
  gap: 6px;
}

.portal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.portal-dots span:nth-child(1) { background: var(--orange); }
.portal-dots span:nth-child(2) { background: var(--gold); }
.portal-dots span:nth-child(3) { background: var(--ice); }

.portal-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 22px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.portal-tab-btn {
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.portal-tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--orange);
}

.portal-preview-body {
  padding: 26px;
  min-height: 230px;
}

/* ==================== G. Deep Navy Quick Placement Mini-Quiz ==================== */
.mini-quiz-band {
  background: linear-gradient(135deg, var(--navy) 0%, #085175 100%);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 24px 56px rgba(5, 63, 92, 0.22);
  position: relative;
  overflow: hidden;
}

.mini-quiz-band h2 {
  color: #ffffff;
  margin: 10px 0 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
}

.mini-quiz-band p {
  color: rgba(248, 251, 253, 0.84);
  margin: 0 0 20px;
  font-size: 14.5px;
}

.mini-quiz-card {
  background: var(--surface);
  color: var(--navy);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 18px 42px rgba(3, 43, 64, 0.28);
}

.mq-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 14px 0 18px;
}

.mq-opt-btn {
  width: 100%;
  text-align: right;
  padding: 12px 15px;
  border-radius: 13px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  color: var(--navy);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mq-opt-btn:hover {
  border-color: var(--teal);
  background: var(--ice-tint);
  transform: translateX(-3px);
}

.mq-opt-btn.selected {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--navy);
}

/* ==================== Shared Cards, Grids, Panels & Forms ==================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header h2 {
  margin: 0;
  font-size: 22px;
  color: var(--navy);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: border-color 200ms ease-out, transform 200ms ease-out, box-shadow 200ms ease-out;
}

.card:hover {
  border-color: rgba(66, 158, 189, 0.3);
  box-shadow: var(--shadow-hover);
}

.card h2,
.card h3,
.card h4 {
  color: var(--navy);
}

/* Sub-page Hero (Roadmap etc.) */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #09557a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.hero h1 { color: #ffffff; margin: 0 0 10px; font-size: 28px; }
.hero p { color: rgba(248, 251, 253, 0.85); margin: 0 0 20px; }
.hero-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(159, 231, 245, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero-brand-pill img { height: 22px; width: auto; }
.hero-brand-pill span { color: var(--ice); font-size: 12px; font-weight: 700; }
.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(159, 231, 245, 0.24);
  border-radius: 20px;
  padding: 22px;
  color: #ffffff;
}
.hero-card strong, .hero-card div { color: #ffffff; }

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-blue {
  background: var(--ice-soft);
  color: var(--navy);
  border: 1px solid rgba(66, 158, 189, 0.26);
}

.badge-teal {
  background: var(--teal-soft);
  color: #145c75;
  border: 1px solid rgba(66, 158, 189, 0.3);
}

.badge-amber {
  background: var(--gold-soft);
  color: #875900;
  border: 1px solid rgba(247, 173, 25, 0.44);
}

.badge-red {
  background: var(--danger-soft);
  color: #a12436;
  border: 1px solid rgba(217, 65, 85, 0.28);
}

/* English LTR Blocks */
.en-block,
.en-text {
  direction: ltr;
  text-align: left;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.en-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  padding: 14px 18px;
  border-radius: 12px;
  margin: 12px 0;
  color: var(--navy);
}

/* Progress Bar */
.progress-track {
  background: rgba(5, 63, 92, 0.09);
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
  margin: 8px 0;
}

.progress-fill {
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--orange));
  height: 100%;
  border-radius: 999px;
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3D Flashcards */
.flashcard-stage {
  max-width: 560px;
  margin: 0 auto;
  
}

.flashcard-card {
  background: linear-gradient(155deg, #ffffff 0%, var(--bg) 100%);
  border: 2px solid rgba(66, 158, 189, 0.32);
  border-radius: 24px;
  padding: 38px 28px;
  min-height: 265px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease;
}

.flashcard-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}

.flashcard-card.is-flipping {
  animation: fcFlip 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fcFlip {
  0% { opacity: 0.72; transform: translateY(3px); }
  100% { opacity: 1; transform: translateY(0); }
}

.flashcard-word {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
}

.flashcard-phonetic {
  color: var(--teal);
  font-size: 16px;
  margin-top: 4px;
}

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}

input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  background: var(--surface);
  color: var(--navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(66, 158, 189, 0.16);
}

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  color: var(--navy);
}
th {
  background: var(--bg);
  font-weight: 700;
  color: var(--navy);
}
tr:hover td { background: var(--ice-tint); }

/* Quiz Options */
.option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1.5px solid var(--border-strong);
  border-radius: 13px;
  margin-bottom: 8px;
  cursor: pointer;
  background: var(--surface);
  color: var(--navy);
  transition: all 0.2s ease;
}
.option-item:hover {
  background: var(--ice-tint);
  border-color: var(--teal);
  transform: translateX(-3px);
}
.option-item.selected {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--navy);
  font-weight: 700;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 43, 64, 0.52);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 26px;
  box-shadow: 0 28px 64px rgba(3, 43, 64, 0.26);
  max-height: 92vh;
  overflow-y: auto;
  animation: modalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-wide { max-width: 780px; }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.modal-header h3 { margin: 0; color: var(--navy); }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.tabs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  padding: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--muted);
  border-radius: 11px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--navy);
  color: #ffffff;
  border-right: 4px solid var(--orange);
  padding: 13px 18px;
  border-radius: 13px;
  font-size: 14px;
  z-index: 200;
  box-shadow: 0 14px 36px rgba(5, 63, 92, 0.28);
}
.toast:not(.hidden) { animation: toastSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes toastSlide {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }

/* KPI, Lesson Items & Labs */
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.kpi-label { font-size: 12.5px; color: var(--muted); }
.kpi-value { font-size: 26px; font-weight: 800; color: var(--navy); margin-top: 4px; }

.lesson-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  background: var(--bg);
  gap: 12px;
  flex-wrap: wrap;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.lesson-list-item:hover {
  border-color: var(--teal);
  background: var(--surface);
}

.audio-lab {
  background: var(--ice-tint);
  border: 1px solid rgba(66, 158, 189, 0.26);
  border-right: 4px solid var(--teal);
  border-radius: 14px;
  padding: 18px;
  margin-top: 16px;
}

.speak-lab {
  background: var(--gold-soft);
  border: 1px solid rgba(247, 173, 25, 0.36);
  border-right: 4px solid var(--orange);
  border-radius: 14px;
  padding: 18px;
  margin-top: 14px;
}

/* Term Cards (Courses Page) */
.term-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--tier-color, var(--teal));
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
}
.term-card:hover {
  transform: translateY(-3px);
  border-color: var(--tier-color, var(--teal));
  box-shadow: var(--shadow-hover);
}
.term-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.term-emblem {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--tier-soft, var(--ice-soft));
  color: var(--tier-color, var(--navy));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.term-emblem svg { width: 22px; height: 22px; }
.term-tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--tier-soft, var(--ice-soft));
  color: var(--tier-color, var(--navy));
}
.term-card-desc { font-size: 13.5px; color: var(--ivory-dim); margin: 0 0 12px; line-height: 1.75; }
.term-card-footer { margin-top: auto; padding-top: 4px; }
.term-tier-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(5, 63, 92, 0.08);
  overflow: hidden;
  margin: 12px 0 14px;
}
.term-tier-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--tier-grad, var(--teal));
}

/* Social Cards & Contact Banner */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.social-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--social-accent, var(--teal));
  box-shadow: var(--shadow);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease;
}
.social-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.social-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--social-bg, var(--ice-soft));
  color: var(--social-accent, var(--navy));
}
.social-icon-wrap svg { width: 26px; height: 26px; }
.social-card-title { font-size: 17px; font-weight: 800; color: var(--navy); margin: 0; }
.social-card-desc { font-size: 13px; color: var(--muted); margin: 0; }

.contact-banner {
  margin-top: 28px;
  padding: 34px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy) 0%, #09567c 100%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  box-shadow: var(--shadow-lg);
}
.contact-banner h3 { margin: 0 0 6px; color: #ffffff; font-size: 21px; }
.contact-banner p { margin: 0; font-size: 14.5px; color: rgba(248, 251, 253, 0.85); }

/* ==================== H. Deep Navy Footer (#032B40) ==================== */
.footer {
  background: var(--navy-dark);
  color: rgba(248, 251, 253, 0.82);
  padding: 36px 0 28px;
  font-size: 13.5px;
  border-top: 3px solid var(--teal);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img { height: 32px; width: auto; display: block; }
.footer strong { color: #ffffff; }

.footer-socials { display: flex; align-items: center; gap: 10px; }
.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ice);
  background: rgba(159, 231, 245, 0.1);
  border: 1px solid rgba(159, 231, 245, 0.22);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.footer-social-btn svg { width: 19px; height: 19px; }
.footer-social-btn:hover {
  transform: translateY(-3px);
  background: var(--orange);
  border-color: var(--orange);
  color: #ffffff;
}

/* Page Transition & Scroll-Reveal */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(248, 251, 253, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.page-transition.active { opacity: 1; pointer-events: auto; }
.transition-ring {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.transition-ring::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--orange);
  border-right-color: var(--teal);
  animation: spinRing 0.9s ease-in-out infinite;
}
.transition-logo { width: 54px; height: auto; }
@keyframes spinRing { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

.view-enter { animation: fadeUpView 0.34s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fadeUpView {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-link-btn {
  display: inline-block;
  margin-top: 12px;
  background: transparent;
  border: none;
  color: var(--teal);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.auth-link-btn:hover { color: var(--orange); }

.reset-code-banner {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ice-tint);
  border: 1px solid rgba(66, 158, 189, 0.3);
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--navy);
}

/* ==================== Responsive Breakpoints ==================== */
@media (max-width: 980px) {
  .nav-links,
  .header-desktop-cta { display: none !important; }
  .mobile-menu-btn { display: inline-flex; }
  .hero-v2,
  .roadmap-detail-card,
  .mini-quiz-band,
  .hero { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .bento-span-7, .bento-span-5, .bento-span-6 { grid-column: span 12; }
}

@media (max-width: 600px) {
  .trust-strip,
  .outcome-mini-grid,
  .grid-2 { grid-template-columns: 1fr; }
  .cefr-stepper-track { gap: 6px; }
  .cefr-step-circle { width: 42px; height: 42px; font-size: 13px; }
  .roadmap-detail-card { padding: 20px; }
  .mini-quiz-band { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-item { opacity: 1 !important; transform: none !important; }
}

/* Single-Row User Account Dropdown Pill */
.user-menu-wrap {
  position: relative;
}

.user-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid rgba(5, 63, 92, 0.2);
  color: var(--navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 200ms ease-out, background 200ms ease-out;
}

.user-pill-btn:hover {
  border-color: var(--teal);
  background: var(--ice-tint);
}

.user-pill-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 205px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 18px 42px rgba(5, 63, 92, 0.14);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-dropdown-item {
  width: 100%;
  text-align: right;
  border: none;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 180ms ease-out, color 180ms ease-out;
}

.user-dropdown-item:hover {
  background: var(--ice-tint);
}

.user-dropdown-item.danger {
  color: #b52b3f;
}

.user-dropdown-item.danger:hover {
  background: var(--danger-soft);
}

/* Learning Path Legend, Note Box & Compact 5-Level Summary Row */
.skill-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
}

.skill-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.skill-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
}

.hours-note-box {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--ice-tint);
  border: 1px solid rgba(66, 158, 189, 0.25);
  border-right: 4px solid var(--teal);
  font-size: 13px;
  line-height: 1.75;
  color: var(--navy);
}

.roadmap-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.roadmap-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
}

.roadmap-summary-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(66, 158, 189, 0.35);
}

.portal-header-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #9fe7f5;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.kpi-value-rtl {
  text-align: right;
  margin-top: 4px;
}

.kpi-value-rtl .kpi-num-ltr {
  display: inline-block;
  direction: ltr;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
}

.fc-locked-state {
  text-align: center;
  padding: 36px 20px;
  border-radius: 18px;
  background: var(--bg);
  border: 1.5px dashed rgba(66, 158, 189, 0.35);
}

.fc-locked-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: var(--ice-soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1080px) {
  .roadmap-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .roadmap-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== Self-Service Scheduled Class Cards, Waitlist & Notifications ==================== */
.scheduled-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.scheduled-class-card {
  background: #ffffff;
  border: 1px solid rgba(5, 63, 92, 0.1);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(5, 63, 92, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.scheduled-class-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(5, 63, 92, 0.1);
}

.scheduled-class-card.is-enrolled {
  border-color: rgba(66, 158, 189, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, rgba(159, 231, 245, 0.12) 100%);
}

.scheduled-class-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.seat-badge-open {
  background: rgba(66, 158, 189, 0.14);
  color: #053f5c;
  border: 1px solid rgba(66, 158, 189, 0.35);
}

.seat-badge-full {
  background: rgba(217, 79, 79, 0.12);
  color: #a12c2c;
  border: 1px solid rgba(217, 79, 79, 0.3);
}

.waitlist-card {
  background: rgba(159, 231, 245, 0.16);
  border: 1px solid rgba(5, 63, 92, 0.1);
  border-radius: 14px;
  padding: 16px;
}

.notif-item-unread {
  border-right: 4px solid #f27f0c !important;
  background: rgba(247, 173, 25, 0.08) !important;
}

/* ==================== Q&A Unread Notification Badge & New/Previous Divider ==================== */
.qa-nav-badge {
  position: absolute;
  top: -5px;
  left: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f27f0c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(242, 127, 12, 0.45);
  pointer-events: none;
}

.qa-inline-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f27f0c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  margin-right: 6px;
}

.qa-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f27f0c;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.qa-new-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f27f0c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.qa-item-new {
  border-right: 4px solid #f27f0c !important;
  background: rgba(247, 173, 25, 0.06) !important;
}

.qa-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 12px;
  font-size: 12px;
  font-weight: 700;
}

.qa-divider::before,
.qa-divider::after {
  content: "";
  flex: 1;
  height: 1px;
}

.qa-divider-new {
  color: #c25e00;
}

.qa-divider-new::before,
.qa-divider-new::after {
  background: rgba(242, 127, 12, 0.45);
}

.qa-divider-old {
  color: #4a6373;
}

.qa-divider-old::before,
.qa-divider-old::after {
  background: rgba(5, 63, 92, 0.16);
}

/* ==================== Floating Live Support Bubble (Bottom-Right) & Support Panel ==================== */
.support-fab-wrap {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.support-fab-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: #053f5c;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(5, 63, 92, 0.28);
  transition: transform 200ms ease, background 200ms ease;
}

.support-fab-btn:hover {
  transform: translateY(-3px);
  background: #0a5a75;
}

.support-fab-badge {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.5);
}

.support-red-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.support-inline-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  margin-right: 6px;
}

.support-new-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.support-drawer {
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 440px;
  max-height: calc(100vh - 110px);
  background: #ffffff;
  border: 1px solid rgba(5, 63, 92, 0.14);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(5, 63, 92, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.support-drawer-header {
  background: #053f5c;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.support-close-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.support-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f8fbfd;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-drawer-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(5, 63, 92, 0.1);
  background: #ffffff;
}

.support-drawer-form input {
  flex: 1;
  padding: 8px 10px;
  font-size: 13px;
}

.support-msg-row {
  display: flex;
  width: 100%;
}

.support-msg-row.is-me {
  justify-content: flex-start;
}

.support-msg-row.is-other {
  justify-content: flex-end;
}

.support-msg-bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.65;
  word-break: break-word;
}

.support-msg-bubble.bubble-me {
  background: #053f5c;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.support-msg-bubble.bubble-other {
  background: #ffffff;
  color: #053f5c;
  border: 1px solid rgba(5, 63, 92, 0.12);
  border-bottom-left-radius: 4px;
}

.support-msg-sender {
  font-size: 11px;
  opacity: 0.78;
  margin-bottom: 3px;
  font-weight: 700;
}

.support-panel-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

.support-thread-item {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(5, 63, 92, 0.1);
  background: #ffffff;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.support-thread-item:hover {
  border-color: #429ebd;
}

.support-thread-item.is-active {
  border-color: #053f5c;
  background: rgba(159, 231, 245, 0.18);
}

.support-thread-item.has-unread {
  border-right: 4px solid #dc2626;
}

.support-panel-msgs {
  flex: 1;
  max-height: 420px;
  overflow-y: auto;
  padding: 14px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 860px) {
  .support-panel-layout {
    grid-template-columns: 1fr;
  }
}

/* ==================== Seamless Pale Ice-Blue (#E8F6FA) Torn-Paper / Wave Hero Banner ==================== */
body {
  overflow-x: clip;
}

.hero-wave-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -28px;
  margin-bottom: 34px;
  background: #e8f6fa;
  padding: 52px 0 84px;
}

.hero-wave-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-v2.hero-v2-seamless {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.hero-wave-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 58px;
  line-height: 0;
  pointer-events: none;
}

.hero-wave-edge svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-frameless-stage {
  position: relative;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 4px 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-globe-img {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  animation: heroBreathFloat 5s ease-in-out infinite;
}

.hero-ambient-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-ambient-dot.dot-1 {
  width: 11px;
  height: 11px;
  top: 14%;
  right: 12%;
  background: rgba(247, 173, 25, 0.72);
  animation: heroAccentDrift 4.4s ease-in-out infinite;
}

.hero-ambient-dot.dot-2 {
  width: 9px;
  height: 9px;
  top: 26%;
  left: 11%;
  background: rgba(66, 158, 189, 0.68);
  animation: heroAccentDrift 5.8s ease-in-out 0.8s infinite;
}

.hero-ambient-bubble-chip {
  position: absolute;
  top: 10px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(5, 63, 92, 0.08);
  color: #053f5c;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(5, 63, 92, 0.07);
  animation: heroAccentDrift 5.2s ease-in-out 0.4s infinite;
  z-index: 2;
}

.hero-v2-seamless .floating-speech-bubble {
  margin-top: -26px;
  position: relative;
  z-index: 3;
  animation: heroBubbleFloat 6s ease-in-out infinite;
}

@keyframes heroBreathFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes heroAccentDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes heroBubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (max-width: 900px) {
  .hero-wave-banner {
    padding: 36px 0 72px;
  }
  .hero-v2-seamless .floating-speech-bubble {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-globe-img,
  .hero-ambient-dot,
  .hero-ambient-bubble-chip,
  .hero-v2-seamless .floating-speech-bubble {
    animation: none !important;
  }
}


/* ==========================================================================
   LEXOVA Modern EdTech / SaaS Visual Craft Refinement Layer (Zero Tilt, 60fps)
   ========================================================================== */
:root {
  --bg: #f8fbfd;
  --surface: #ffffff;
  --border: rgba(5, 63, 92, 0.08);
  --border-strong: rgba(5, 63, 92, 0.13);
  --ivory-dim: rgba(5, 63, 92, 0.74);
  --muted: rgba(5, 63, 92, 0.62);
  --shadow: 0 12px 32px -12px rgba(5, 63, 92, 0.08);
  --shadow-hover: 0 18px 38px -12px rgba(5, 63, 92, 0.13);
  --ease-ui: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Calm Off-White Canvas with Subtle Low-Opacity Ice-Blue Ambient Glows */
body {
  background:
    radial-gradient(circle at 88% 6%, rgba(159, 231, 245, 0.2) 0%, transparent 36%),
    radial-gradient(circle at 10% 42%, rgba(159, 231, 245, 0.14) 0%, transparent 34%),
    radial-gradient(circle at 82% 84%, rgba(66, 158, 189, 0.09) 0%, transparent 38%),
    #f8fbfd;
  background-attachment: fixed;
  line-height: 1.78;
  overflow-x: clip;
}

/* Crisp Display Typography & Tabular English/Numeric Tokens */
h1, h2, h3, h4 {
  color: #053f5c;
  line-height: 1.32;
  letter-spacing: -0.012em;
}

.en-text {
  font-family: "Inter", "Vazirmatn", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

/* Frosted Glassmorphism Navbar & Floating UI Cards */
.navbar {
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(5, 63, 92, 0.08);
  box-shadow: 0 4px 20px -8px rgba(5, 63, 92, 0.05);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px -10px rgba(5, 63, 92, 0.09);
}

.floating-speech-bubble,
.user-dropdown {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(5, 63, 92, 0.08);
  box-shadow: 0 14px 36px -12px rgba(5, 63, 92, 0.12);
}

/* Crisp Hairline Cards & Diffused Navy-Tinted Elevation */
.card,
.bento-card,
.trust-item,
.kpi-card,
.scheduled-class-card,
.roadmap-detail-card,
.portal-preview-card,
.contact-channel-card {
  background: #ffffff;
  border: 1px solid rgba(5, 63, 92, 0.08);
  box-shadow: 0 12px 32px -12px rgba(5, 63, 92, 0.08);
  transition:
    transform 200ms var(--ease-ui),
    border-color 200ms var(--ease-ui),
    box-shadow 200ms var(--ease-ui);
}

.bento-card:hover,
.trust-item:hover,
.kpi-card:hover,
.scheduled-class-card:hover,
.contact-channel-card:hover,
.term-card:hover {
  transform: translateY(-3px);
  border-color: rgba(66, 158, 189, 0.35);
  box-shadow: 0 18px 38px -12px rgba(5, 63, 92, 0.13);
}

.lesson-list-item {
  border: 1px solid rgba(5, 63, 92, 0.08);
  background: #ffffff;
  transition: border-color 180ms var(--ease-ui), background 180ms var(--ease-ui);
}

.lesson-list-item:hover {
  border-color: rgba(66, 158, 189, 0.32);
}

/* Generous Airy Section Rhythm */
.main-content {
  padding-top: 28px;
  padding-bottom: 64px;
}

.section-header {
  margin-bottom: 24px;
}

.trust-strip {
  margin-top: 16px;
  margin-bottom: 48px;
  gap: 18px;
}

/* Sleek Modern Segmented Controls (Nav, Tabs, Portal Tabs, Level Steppers) */
.nav-links {
  background: rgba(5, 63, 92, 0.035);
  border: 1px solid rgba(5, 63, 92, 0.06);
  border-radius: 999px;
  padding: 4px;
  gap: 3px;
}

.nav-links .nav-btn {
  border-radius: 999px;
  white-space: nowrap;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(5, 63, 92, 0.78);
  transition: background 180ms var(--ease-ui), color 180ms var(--ease-ui), box-shadow 180ms var(--ease-ui);
}

.nav-links .nav-btn:hover {
  color: #053f5c;
  background: rgba(159, 231, 245, 0.22);
}

.nav-links .nav-btn.active {
  background: #ffffff;
  color: #053f5c;
  font-weight: 700;
  box-shadow: 0 4px 12px -4px rgba(5, 63, 92, 0.14);
}

.tabs-row,
.portal-tabs {
  background: rgba(5, 63, 92, 0.04);
  border: 1px solid rgba(5, 63, 92, 0.07);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}

.tabs-row .tab-btn,
.portal-tabs .portal-tab-btn {
  border-radius: 10px;
  white-space: nowrap;
  transition: background 180ms var(--ease-ui), color 180ms var(--ease-ui), box-shadow 180ms var(--ease-ui);
}

.tabs-row .tab-btn.active,
.portal-tabs .portal-tab-btn.active {
  background: #ffffff;
  color: #053f5c;
  box-shadow: 0 4px 12px -4px rgba(5, 63, 92, 0.14);
}

/* Minimal, Crisp Pill Tags */
.badge {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  letter-spacing: 0;
  border: 1px solid transparent;
}

.badge-amber {
  background: rgba(247, 173, 25, 0.14);
  color: #7c4a00;
  border-color: rgba(247, 173, 25, 0.3);
}

.badge-blue {
  background: rgba(159, 231, 245, 0.22);
  color: #053f5c;
  border-color: rgba(66, 158, 189, 0.25);
}

.badge-teal {
  background: rgba(66, 158, 189, 0.14);
  color: #064d68;
  border-color: rgba(66, 158, 189, 0.28);
}

/* Silky Button Press & Hover Feedback */
.btn {
  transition:
    background-color 180ms var(--ease-ui),
    color 180ms var(--ease-ui),
    border-color 180ms var(--ease-ui),
    box-shadow 180ms var(--ease-ui),
    transform 160ms var(--ease-ui);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-orange {
  background: #f27f0c;
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(242, 127, 12, 0.42);
}

.btn-orange:hover:not(:disabled) {
  background: #dc6e04;
  box-shadow: 0 12px 26px -6px rgba(242, 127, 12, 0.5);
}

.btn-outline {
  background: #ffffff;
  color: #053f5c;
  border: 1px solid rgba(5, 63, 92, 0.16);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(159, 231, 245, 0.18);
  border-color: rgba(66, 158, 189, 0.45);
}

/* Refined Inputs & Tables */
input, select, textarea {
  border: 1px solid rgba(5, 63, 92, 0.13);
  border-radius: 12px;
  background: #ffffff;
  color: #053f5c;
  transition: border-color 180ms var(--ease-ui), box-shadow 180ms var(--ease-ui);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #429ebd;
  box-shadow: 0 0 0 3px rgba(66, 158, 189, 0.16);
}

.table-wrap {
  border: 1px solid rgba(5, 63, 92, 0.08);
  border-radius: 16px;
  background: #ffffff;
}

table th {
  background: #f8fbfd;
  color: #053f5c;
  font-weight: 700;
  border-bottom: 1px solid rgba(5, 63, 92, 0.09);
}

table td {
  border-bottom: 1px solid rgba(5, 63, 92, 0.06);
}

/* High-Contrast WCAG AA+ Dark Navy Surfaces */
.hero h1, .hero h2, .hero h3, .hero p {
  color: #ffffff;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
}

.footer {
  background: #032b40;
  color: rgba(255, 255, 255, 0.88);
}

.footer a {
  color: #9fe7f5;
}

.footer a:hover {
  color: #ffffff;
}

/* Smooth GPU-Accelerated Modal & Reveal Motion */
.modal-card {
  border: 1px solid rgba(5, 63, 92, 0.08);
  box-shadow: 0 24px 56px -14px rgba(5, 63, 92, 0.22);
  animation: lexModalIn 200ms var(--ease-ui) both;
}

@keyframes lexModalIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .card, .bento-card, .trust-item, .kpi-card, .scheduled-class-card,
  .btn, .modal-card, .reveal-item {
    animation: none !important;
    transition: none !important;
  }
}


/* ==========================================================================
   1. FLOATING PILL GLASSMORPHIC NAVBAR (DESKTOP & MOBILE)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 14px;
  z-index: 65;
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(5, 63, 92, 0.10);
  box-shadow: 0 8px 30px rgba(5, 63, 92, 0.08);
  transition: box-shadow 200ms var(--ease-ui), background 200ms var(--ease-ui);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 12px 36px rgba(5, 63, 92, 0.11);
}

.navbar .nav-inner {
  padding: 9px 18px;
  gap: 12px;
  min-height: 62px;
}

.navbar .nav-links .nav-btn,
.navbar .btn,
.navbar .user-pill-btn {
  white-space: nowrap;
}

.navbar .nav-links .nav-btn.active {
  background: rgba(66, 158, 189, 0.14);
  color: #053f5c;
  box-shadow: none;
}

.navbar .mobile-drawer {
  border-radius: 20px;
  margin-top: 8px;
  border: 1px solid rgba(5, 63, 92, 0.09);
  box-shadow: 0 18px 40px rgba(5, 63, 92, 0.14);
}

.navbar .mobile-drawer .nav-btn,
.navbar .mobile-drawer .btn {
  min-height: 44px;
}

/* ==========================================================================
   2. DISTINCT HOMEPAGE SECTION VISUAL RHYTHM & MODERN DOT-GRID TEXTURE
   ========================================================================== */
.hero-wave-banner {
  margin-top: -92px;
  padding: 132px 0 92px;
  margin-bottom: 0;
  background:
    radial-gradient(circle at 78% 32%, rgba(247, 173, 25, 0.10) 0%, transparent 44%),
    radial-gradient(circle at 22% 55%, rgba(66, 158, 189, 0.09) 0%, transparent 45%),
    #e8f6fa;
}

.home-band {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 72px 0;
}

.home-band-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* White Band (Trust Strip + CEFR A1-C1 Roadmap) */
.home-band-white {
  background: #ffffff;
  padding: 40px 0 80px;
}

/* Sleek Teal -> Gold -> Orange Stepper Progress Gradient */
.cefr-stepper-fill {
  background: linear-gradient(270deg, #429ebd 0%, #f7ad19 54%, #f27f0c 100%) !important;
}

.cefr-step-btn.active .cefr-step-circle {
  background: linear-gradient(135deg, #429ebd 0%, #053f5c 100%);
  color: #ffffff;
  border-color: #429ebd;
  box-shadow: 0 8px 20px -4px rgba(66, 158, 189, 0.45);
}

/* Modern Dot-Grid Canvas Band (Teaching Style & Courses) */
.home-band-dotgrid {
  background-color: #f4f9fc;
  background-image: radial-gradient(rgba(5, 63, 92, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  border-top: 1px solid rgba(5, 63, 92, 0.06);
  border-bottom: 1px solid rgba(5, 63, 92, 0.06);
}

.home-band-dotgrid .bento-card {
  background: #ffffff;
  box-shadow: 0 14px 36px -12px rgba(5, 63, 92, 0.10);
}

/* Pure White Band with Diffused Ice-Blue Glow Behind Student Portal Window */
.home-band-portal {
  background: #ffffff;
  padding: 80px 0;
}

.home-band-portal .portal-preview-shell {
  position: relative;
  z-index: 1;
}

.home-band-portal .portal-preview-shell::before {
  content: "";
  position: absolute;
  inset: -26px -24px;
  z-index: -1;
  border-radius: 36px;
  background: radial-gradient(ellipse at center, rgba(159, 231, 245, 0.28) 0%, rgba(159, 231, 245, 0.08) 50%, transparent 74%);
  pointer-events: none;
}

/* High-Contrast Deep Navy Band with Geometric Ice-Blue Dot-Grid Overlay */
.home-band-navy {
  background-color: #053f5c;
  background-image:
    radial-gradient(rgba(159, 231, 245, 0.09) 1px, transparent 1px),
    radial-gradient(circle at 18% 25%, rgba(66, 158, 189, 0.24) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(247, 173, 25, 0.12) 0%, transparent 42%);
  background-size: 22px 22px, 100% 100%, 100% 100%;
  padding: 76px 0;
  margin-bottom: 44px;
}

.mini-quiz-band.mini-quiz-band-seamless {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.mini-quiz-band.mini-quiz-band-seamless .mini-quiz-card {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 22px 50px -12px rgba(3, 43, 64, 0.45);
}

/* ==========================================================================
   3. SOFT-TINTED SQUIRCLE ICON BOXES & LUMINOUS ORANGE CTAS
   ========================================================================== */
.trust-icon,
.term-emblem {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  background: rgba(66, 158, 189, 0.12);
  color: #429ebd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(66, 158, 189, 0.18);
}

.trust-icon.gold {
  background: rgba(247, 173, 25, 0.14);
  color: #c77d00;
  border-color: rgba(247, 173, 25, 0.24);
}

.btn-orange {
  box-shadow: 0 10px 26px -6px rgba(242, 127, 12, 0.32);
}

.btn-orange:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(242, 127, 12, 0.42);
}

/* ==========================================================================
   4. MODERN SPLIT-SCREEN AUTH & TEACHER ACTIVATION CARD
   ========================================================================== */
.auth-dotgrid-backdrop {
  background:
    radial-gradient(circle at 50% 50%, rgba(159, 231, 245, 0.22) 0%, rgba(5, 63, 92, 0.56) 72%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 16px;
}

.auth-page-canvas {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 48px 16px 72px;
  background-color: #f4f9fc;
  background-image:
    radial-gradient(circle at 50% 42%, rgba(159, 231, 245, 0.26) 0%, transparent 52%),
    radial-gradient(rgba(5, 63, 92, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px;
}

.auth-split-card {
  width: 100%;
  max-width: 860px;
  padding: 0 !important;
  border-radius: 26px !important;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  background: #ffffff;
  border: 1px solid rgba(5, 63, 92, 0.10);
  box-shadow: 0 28px 64px -14px rgba(5, 63, 92, 0.26);
  max-height: 92vh;
}

.auth-brand-panel {
  background-color: #053f5c;
  background-image:
    radial-gradient(rgba(159, 231, 245, 0.10) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(66, 158, 189, 0.30) 0%, transparent 52%),
    radial-gradient(circle at 82% 86%, rgba(247, 173, 25, 0.18) 0%, transparent 48%);
  background-size: 20px 20px, 100% 100%, 100% 100%;
  color: #ffffff;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.auth-brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px;
}

.auth-brand-name {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
}

.auth-brand-tagline {
  font-size: 11.5px;
  color: #9fe7f5;
  margin-top: 2px;
}

.auth-brand-welcome {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
}

.auth-brand-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.auth-glass-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(159, 231, 245, 0.18);
  font-size: 13px;
  color: #ffffff;
  font-weight: 600;
}

.auth-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #429ebd;
  flex-shrink: 0;
}

.auth-pill-dot.gold { background: #f7ad19; }
.auth-pill-dot.orange { background: #f27f0c; }

.auth-form-panel {
  background: #ffffff;
  padding: 30px 32px;
  overflow-y: auto;
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap .input-lead-icon {
  position: absolute;
  right: 12px;
  color: rgba(5, 63, 92, 0.45);
  pointer-events: none;
}

.input-icon-wrap input {
  width: 100%;
  padding-right: 38px !important;
  min-height: 44px;
}

.input-icon-wrap.has-eye input {
  padding-left: 42px !important;
}

.pw-eye-btn {
  position: absolute;
  left: 8px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: rgba(5, 63, 92, 0.5);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 160ms ease, background 160ms ease;
}

.pw-eye-btn:hover,
.pw-eye-btn.is-shown {
  color: #429ebd;
  background: rgba(66, 158, 189, 0.1);
}

/* ==========================================================================
   5. BULLETPROOF MOBILE RESPONSIVENESS (360px TO 768px — ZERO OVERFLOW)
   ========================================================================== */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 960px) {
  .navbar {
    top: 10px;
    width: calc(100% - 20px);
    margin: 10px auto 0;
    border-radius: 18px;
  }

  .navbar .nav-inner {
    padding: 8px 12px;
    min-height: 56px;
  }

  .navbar .brand-sub {
    display: none;
  }

  .navbar .mobile-menu-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .hero-wave-banner {
    margin-top: -76px;
    padding: 106px 0 74px;
  }

  .home-band {
    padding: 52px 0;
  }
}

@media (max-width: 768px) {
  h1, .hero-v2 h1 {
    font-size: clamp(24px, 6.5vw, 30px) !important;
    line-height: 1.4 !important;
  }

  h2 {
    font-size: clamp(20px, 5.4vw, 25px) !important;
  }

  .btn, input, select, textarea {
    min-height: 44px;
  }

  .btn-xs {
    min-height: 38px;
  }

  /* Hero & Speech Bubble clean mobile stack */
  .hero-v2,
  .hero {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .hero-globe-img {
    max-width: 100%;
  }

  .hero-v2-seamless .floating-speech-bubble {
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Smooth Horizontally Scrollable CEFR Stepper on Mobile */
  .cefr-stepper-track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    gap: 14px;
    padding-bottom: 10px;
  }

  .cefr-step-btn {
    min-width: 82px;
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  /* Grids & Panels clean mobile stacking */
  .grid-2, .grid-3, .grid-4, .bento-grid, .trust-strip {
    grid-template-columns: 1fr !important;
  }

  .bento-span-7, .bento-span-5 {
    grid-column: span 1 !important;
  }

  /* Split-Screen Auth -> Compact Navy Top Banner + Clean White Form on Mobile */
  .auth-split-card {
    grid-template-columns: 1fr;
    max-height: 94vh;
    overflow-y: auto;
    border-radius: 22px !important;
  }

  .auth-brand-panel {
    padding: 18px 20px;
    gap: 10px;
  }

  .auth-brand-welcome,
  .auth-brand-pills {
    display: none;
  }

  .auth-form-panel {
    padding: 20px 18px 24px;
  }

  /* Portal tabs scrollable cleanly */
  .portal-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .portal-tabs .portal-tab-btn {
    flex-shrink: 0;
    min-height: 44px;
  }

  /* Admin inline forms stack cleanly */
  form[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}
