/**
 * Lộ Trình Tiền Tiểu Học - CungConHoc.com
 * Modern EdTech Claymorphism & Duolingo/Khan Academy Kids Gamification
 */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800;900&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --cch-font-display: 'Baloo 2', cursive, sans-serif;
  --cch-font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Palette */
  --cch-bg: #f4f8fc;
  --cch-card-bg: #ffffff;
  --cch-ink: #1e293b;
  --cch-ink-muted: #64748b;
  
  /* Primary Viet (Ocean Cyan / Sky) */
  --cch-viet: #0284c7;
  --cch-viet-light: #e0f2fe;
  --cch-viet-shadow: #0369a1;
  
  /* Primary Math (Sun Orange / Amber) */
  --cch-math: #ea580c;
  --cch-math-light: #ffedd5;
  --cch-math-shadow: #c2410c;
  
  /* Success / Completed */
  --cch-success: #10b981;
  --cch-success-light: #d1fae5;
  --cch-success-shadow: #059669;
  
  /* Star Gold */
  --cch-gold: #f59e0b;
  --cch-gold-light: #fef3c7;
  --cch-gold-shadow: #d97706;
  
  /* Locked / Inactive */
  --cch-locked: #94a3b8;
  --cch-locked-bg: #e2e8f0;
  --cch-locked-shadow: #64748b;
  
  /* Purple Boss */
  --cch-boss: #8b5cf6;
  --cch-boss-light: #ede9fe;
  --cch-boss-shadow: #7c3aed;
  
  /* Radius & Shadows */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 9999px;
  
  --shadow-clay: 0 14px 28px rgba(15, 23, 42, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  --shadow-btn: 0 6px 0 var(--btn-shadow, #0369a1), 0 12px 18px rgba(0, 0, 0, 0.12);
  --shadow-btn-pressed: 0 2px 0 var(--btn-shadow, #0369a1), 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hide Default Flatsome Header & Footer on this Course App Page */
body.page-id-1524 #header,
body.page-id-1524 .header-wrapper,
body.page-id-1524 #top-bar,
body.page-id-1524 #footer,
body.page-id-1524 .footer-wrapper,
body.page-id-1524 .page-title,
body.page-id-1524 .breadcrumbs {
  display: none !important;
}

body.page-id-1524 {
  background-color: var(--cch-bg) !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--cch-font-body) !important;
  color: var(--cch-ink) !important;
  -webkit-font-smoothing: antialiased;
}

body.page-id-1524 #main,
body.page-id-1524 #content,
body.page-id-1524 .content-area {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* App Shell */
.cch-app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 100% at 50% 0%, #e0f2fe 0%, #f4f8fc 40%, #fff7ed 100%);
  position: relative;
  overflow-x: hidden;
}

/* Background floating cute clouds */
.cch-app-shell::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 5%;
  width: 140px;
  height: 60px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow: 40px -20px 0 20px rgba(255, 255, 255, 0.5);
  filter: blur(4px);
  pointer-events: none;
  animation: floatCloud 28s linear infinite;
  z-index: 0;
}

@keyframes floatCloud {
  0% { transform: translateX(-150px); }
  100% { transform: translateX(calc(100vw + 150px)); }
}

/* =====================================================================
   1. APP HEADER NAVIGATION
   ===================================================================== */
.cch-app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.cch-nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cch-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.cch-nav-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.cch-nav-brand:hover .cch-nav-logo {
  transform: scale(1.05);
}

.cch-badge-course {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  font-family: var(--cch-font-display);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.02em;
}

.cch-nav-center {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid #e2e8f0;
}

.cch-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--cch-font-display);
  font-size: 0.94rem;
  font-weight: 800;
  border: none;
  background: transparent;
  color: var(--cch-ink-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cch-mode-tab.is-active {
  background: #ffffff;
  color: var(--cch-viet);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.cch-mode-tab.is-parent.is-active {
  color: #c2410c;
}

.cch-nav-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cch-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  font-family: var(--cch-font-display);
  font-weight: 800;
  font-size: 0.92rem;
}

.cch-stat-pill.is-star {
  color: #b45309;
  background: #fef3c7;
  border-color: #fde68a;
}

.cch-stat-pill.is-streak {
  color: #c2410c;
  background: #ffedd5;
  border-color: #fed7aa;
}

.cch-btn-sound {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.18s ease;
}

.cch-btn-sound:hover {
  transform: scale(1.08);
  border-color: var(--cch-viet);
}

.cch-btn-sound.is-muted {
  opacity: 0.6;
  background: #f1f5f9;
}

/* =====================================================================
   2. HERO BANNER & SUBJECT SWITCHER
   ===================================================================== */
.cch-course-hero {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 22px auto 10px;
  padding: 0 16px;
}

.cch-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border-radius: var(--radius-lg);
  border: 2px solid #bae6fd;
  box-shadow: 0 20px 40px rgba(2, 132, 199, 0.08), inset 0 2px 0 #ffffff;
  padding: 24px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.cch-hero-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cch-hero-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cch-hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cch-viet);
  letter-spacing: 0.04em;
}

.cch-hero-content h1 {
  margin: 0;
  font-family: var(--cch-font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.1;
  color: #0f172a;
}

.cch-hero-content h1 span {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cch-hero-content p {
  margin: 0;
  color: var(--cch-ink-muted);
  font-size: 1.04rem;
  line-height: 1.6;
  max-width: 640px;
}

.cch-hero-mascot-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.cch-mascot-img {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.12));
  animation: gentleBob 3s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.cch-mascot-bubble {
  position: absolute;
  top: -24px;
  right: -20px;
  background: #ffffff;
  color: var(--cch-ink);
  font-family: var(--cch-font-display);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  animation: pulseBubble 2.5s ease-in-out infinite;
}

@keyframes pulseBubble {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Subject Navigation Tabs */
.cch-subject-selector {
  max-width: 1080px;
  margin: 20px auto 14px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cch-subject-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 2px solid #e2e8f0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  text-align: left;
}

.cch-subject-btn:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.cch-subject-btn.is-active {
  border-color: var(--subject-accent, #0284c7);
  background: linear-gradient(135deg, #ffffff 0%, var(--subject-tint, #f0f9ff) 100%);
  box-shadow: 0 12px 28px var(--subject-glow, rgba(2, 132, 199, 0.15)), inset 0 2px 0 #fff;
  transform: translateY(-2px);
}

.cch-subject-btn.is-viet {
  --subject-accent: #0284c7;
  --subject-tint: #f0f9ff;
  --subject-glow: rgba(2, 132, 199, 0.18);
}

.cch-subject-btn.is-math {
  --subject-accent: #ea580c;
  --subject-tint: #fff7ed;
  --subject-glow: rgba(234, 88, 12, 0.18);
}

.cch-subject-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: var(--subject-tint, #f0f9ff);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.cch-subject-text h2 {
  margin: 0 0 4px;
  font-family: var(--cch-font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
}

.cch-subject-text p {
  margin: 0;
  color: var(--cch-ink-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.cch-subject-badge {
  margin-left: auto;
  font-family: var(--cch-font-display);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  color: #475569;
}

.cch-subject-btn.is-active .cch-subject-badge {
  background: var(--subject-accent, #0284c7);
  color: #fff;
}

/* Progress Tracker Bar */
.cch-progress-strip {
  max-width: 1080px;
  margin: 0 auto 28px;
  padding: 0 16px;
}

.cch-progress-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  gap: 16px;
}

.cch-progress-label {
  font-family: var(--cch-font-display);
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--cch-ink);
  white-space: nowrap;
}

.cch-progress-bar-wrap {
  flex: 1;
  height: 16px;
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.cch-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.cch-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, transparent 60%);
}

.cch-progress-stat {
  font-family: var(--cch-font-display);
  font-weight: 800;
  font-size: 0.94rem;
  color: #059669;
  white-space: nowrap;
}

/* =====================================================================
   3. THE WINDING ROADMAP / MILESTONES (Bé Học Mode)
   ===================================================================== */
.cch-roadmap-container {
  max-width: 820px;
  margin: 0 auto 60px;
  padding: 0 16px;
  position: relative;
}

/* Stage Group */
.cch-stage-group {
  margin-bottom: 46px;
  position: relative;
}

.cch-stage-header {
  text-align: center;
  margin-bottom: 26px;
  position: relative;
  z-index: 2;
}

.cch-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--cch-font-display);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
  letter-spacing: 0.02em;
}

.cch-stage-subtitle {
  margin: 8px 0 0;
  font-size: 0.94rem;
  color: var(--cch-ink-muted);
  font-weight: 600;
}

/* Roadmap Path Track (SVG/CSS Winding) */
.cch-stage-nodes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: relative;
  padding: 10px 0;
}

/* Stepping stones / Connecting line */
.cch-stage-nodes::before {
  content: '';
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 50%;
  width: 8px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom,
    #cbd5e1,
    #cbd5e1 10px,
    transparent 10px,
    transparent 20px
  );
  border-radius: var(--radius-pill);
  z-index: 1;
}

/* Node Positions Zig-Zag */
.cch-node-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.cch-node-item:nth-child(even) {
  transform: translateX(65px);
}

.cch-node-item:nth-child(odd) {
  transform: translateX(-65px);
}

.cch-node-item.is-boss,
.cch-node-item.is-chest {
  transform: translateX(0) !important;
}

/* 3D Round Node Button */
.cch-node-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  transition: all 0.18s ease;
  outline: none;
  background-clip: padding-box;
}

/* Status 1: COMPLETED */
.cch-node-item.is-completed .cch-node-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --btn-shadow: #047857;
  box-shadow: 0 8px 0 var(--btn-shadow), 0 16px 24px rgba(5, 150, 105, 0.25);
  color: #fff;
}

.cch-node-item.is-completed .cch-node-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 0 var(--btn-shadow), 0 20px 28px rgba(5, 150, 105, 0.3);
}

.cch-node-item.is-completed .cch-node-btn:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 var(--btn-shadow), 0 8px 12px rgba(5, 150, 105, 0.2);
}

.cch-node-item.is-completed .cch-node-icon {
  font-size: 2.2rem;
}

.cch-star-badge {
  position: absolute;
  top: -12px;
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  display: flex;
  gap: 2px;
  font-size: 0.75rem;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
  animation: starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Status 2: ACTIVE (Đang Học) */
.cch-node-item.is-active .cch-node-btn {
  width: 104px;
  height: 104px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --btn-shadow: #075985;
  box-shadow: 0 10px 0 var(--btn-shadow), 0 20px 30px rgba(2, 132, 199, 0.35);
  color: #fff;
  animation: activePulse 2s infinite;
}

.cch-subject-math .cch-node-item.is-active .cch-node-btn {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  --btn-shadow: #9a3412;
  box-shadow: 0 10px 0 var(--btn-shadow), 0 20px 30px rgba(234, 88, 12, 0.35);
}

@keyframes activePulse {
  0% { box-shadow: 0 10px 0 var(--btn-shadow), 0 0 0 0 rgba(2, 132, 199, 0.5); }
  70% { box-shadow: 0 10px 0 var(--btn-shadow), 0 0 0 20px rgba(2, 132, 199, 0); }
  100% { box-shadow: 0 10px 0 var(--btn-shadow), 0 0 0 0 rgba(2, 132, 199, 0); }
}

.cch-node-item.is-active .cch-node-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 0 var(--btn-shadow), 0 24px 34px rgba(2, 132, 199, 0.45);
}

.cch-node-item.is-active .cch-node-btn:active {
  transform: translateY(6px);
  box-shadow: 0 4px 0 var(--btn-shadow);
}

.cch-active-pointer {
  position: absolute;
  top: -36px;
  background: #ffffff;
  color: var(--cch-viet);
  font-family: var(--cch-font-display);
  font-weight: 900;
  font-size: 0.86rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  white-space: nowrap;
  animation: bouncePointer 1.5s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 2px solid #bae6fd;
}

.cch-subject-math .cch-active-pointer {
  color: var(--cch-math);
  border-color: #fed7aa;
}

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

/* Status 3: LOCKED */
.cch-node-item.is-locked .cch-node-btn {
  background: #cbd5e1;
  --btn-shadow: #94a3b8;
  box-shadow: 0 6px 0 var(--btn-shadow);
  color: #64748b;
  cursor: pointer;
}

.cch-node-item.is-locked .cch-node-btn:hover {
  animation: shakeLock 0.35s ease;
  background: #c3cfde;
}

@keyframes shakeLock {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px) rotate(-3deg); }
  75% { transform: translateX(4px) rotate(3deg); }
}

/* Special: Treasure Chest & Boss Nodes */
.cch-node-item.is-chest .cch-node-btn {
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --btn-shadow: #b45309;
  box-shadow: 0 8px 0 var(--btn-shadow), 0 16px 24px rgba(217, 119, 6, 0.25);
  font-size: 2.4rem;
}

.cch-node-item.is-boss .cch-node-btn {
  width: 110px;
  height: 110px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  --btn-shadow: #5b21b6;
  box-shadow: 0 10px 0 var(--btn-shadow), 0 20px 30px rgba(109, 40, 217, 0.35);
  font-size: 2.8rem;
  color: #fff;
}

/* Node Label Card below button */
.cch-node-label {
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
  max-width: 170px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cch-node-item:hover .cch-node-label {
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.cch-node-label strong {
  display: block;
  font-family: var(--cch-font-display);
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--cch-ink);
  line-height: 1.2;
}

.cch-node-label small {
  display: block;
  font-size: 0.78rem;
  color: var(--cch-ink-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* =====================================================================
   4. PARENT OVERVIEW MODE (Góc Phụ Huynh)
   ===================================================================== */
.cch-parent-view {
  max-width: 1080px;
  margin: 0 auto 60px;
  padding: 0 16px;
  display: none;
}

.cch-parent-view.is-visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.cch-parent-hero-alert {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 2px solid #fdba74;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.08);
}

.cch-parent-hero-alert h3 {
  margin: 0 0 6px;
  font-family: var(--cch-font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #9a3412;
}

.cch-parent-hero-alert p {
  margin: 0;
  color: #7c2d12;
  font-size: 0.98rem;
  line-height: 1.55;
}

.cch-btn-reset-demo {
  appearance: none;
  background: #ffffff;
  color: #c2410c;
  border: 2px solid #fb923c;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--cch-font-display);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cch-btn-reset-demo:hover {
  background: #c2410c;
  color: #fff;
  transform: translateY(-2px);
}

/* Parent Overview Grid */
.cch-parent-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}

.cch-syllabus-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  padding: 26px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.cch-syllabus-card h3 {
  margin: 0 0 18px;
  font-family: var(--cch-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
}

.cch-syllabus-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cch-timeline-unit {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.cch-timeline-unit:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.cch-unit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cch-unit-badge {
  font-family: var(--cch-font-display);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cch-viet);
  background: #e0f2fe;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.cch-unit-status {
  font-size: 0.84rem;
  font-weight: 700;
  color: #059669;
}

.cch-timeline-unit h4 {
  margin: 0 0 6px;
  font-family: var(--cch-font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.cch-timeline-unit p {
  margin: 0;
  color: var(--cch-ink-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Pricing / VIP Box on Parent View */
.cch-parent-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cch-pricing-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.cch-pricing-box::before {
  content: 'HOT';
  position: absolute;
  top: 18px;
  right: -32px;
  background: #ef4444;
  color: #fff;
  font-family: var(--cch-font-display);
  font-weight: 900;
  font-size: 0.75rem;
  padding: 4px 34px;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cch-pricing-box h3 {
  margin: 0 0 8px;
  font-family: var(--cch-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #f8fafc;
}

.cch-price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 16px;
}

.cch-price-current {
  font-family: var(--cch-font-display);
  font-size: 2.3rem;
  font-weight: 900;
  color: #facc15;
}

.cch-price-original {
  font-size: 1.1rem;
  text-decoration: line-through;
  color: #94a3b8;
}

.cch-perks-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.94rem;
}

.cch-perks-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cch-perks-list li span {
  color: #10b981;
  font-weight: 900;
  font-size: 1.1rem;
}

.cch-btn-unlock-vip {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--cch-font-display);
  font-size: 1.1rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.4);
  transition: all 0.2s ease;
}

.cch-btn-unlock-vip:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.5);
  color: #fff;
}

/* =====================================================================
   5. INTERACTIVE LESSON SIMULATOR MODAL (Học Thử Tương Tác)
   ===================================================================== */
.cch-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
}

.cch-modal-overlay.is-active {
  display: grid;
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cch-lesson-modal {
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  max-width: 680px;
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalPopUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPopUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cch-modal-header {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 4px solid #075985;
}

.cch-modal-title-group h3 {
  margin: 0;
  font-family: var(--cch-font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.cch-modal-title-group p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.cch-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: all 0.18s ease;
}

.cch-modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

/* Modal Body / Steps */
.cch-modal-body {
  padding: 28px 24px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f8fafc;
  position: relative;
}

.cch-step-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.cch-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.2s ease;
}

.cch-step-dot.is-done {
  background: #10b981;
}

.cch-step-dot.is-active {
  background: #0284c7;
  transform: scale(1.3);
}

/* Step 1: Khám Phá (Audio + Visual) */
.cch-sim-step {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.cch-sim-step.is-active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.cch-big-letter-display {
  width: 160px;
  height: 160px;
  border-radius: 36px;
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  border: 4px solid #fb923c;
  display: grid;
  place-items: center;
  font-family: var(--cch-font-display);
  font-size: 6rem;
  font-weight: 900;
  color: #c2410c;
  box-shadow: 0 16px 32px rgba(234, 88, 12, 0.2), inset 0 3px 6px rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cch-big-letter-display:hover {
  transform: scale(1.08) rotate(-3deg);
}

.cch-audio-prompt-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 2px solid #0284c7;
  color: #0369a1;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--cch-font-display);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.15);
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.cch-audio-prompt-pill:hover {
  background: #f0f9ff;
  transform: scale(1.03);
}

.cch-prompt-subtext {
  font-size: 0.95rem;
  color: var(--cch-ink-muted);
  max-width: 480px;
  line-height: 1.5;
  margin: 0 0 20px;
}

/* Step 2: Chạm Tương Tác (Bubble Pop) */
.cch-bubble-field {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
  max-width: 460px;
}

.cch-bubble-item {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #e0f2fe 60%, #38bdf8 100%);
  border: 2px solid #bae6fd;
  color: #0369a1;
  font-family: var(--cch-font-display);
  font-size: 2.2rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.25);
  transition: all 0.18s ease;
  user-select: none;
}

.cch-bubble-item:hover {
  transform: scale(1.12);
}

.cch-bubble-item:active {
  transform: scale(0.9);
}

/* Step 3: Hoàn Thành & Tặng Sao */
.cch-completion-stars {
  font-size: 3.5rem;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  animation: starPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes starPop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.cch-completion-title {
  font-family: var(--cch-font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: #059669;
  margin: 0 0 6px;
}

.cch-completion-msg {
  color: var(--cch-ink-muted);
  font-size: 1rem;
  margin: 0 0 24px;
}

/* Action Buttons inside modal */
.cch-modal-btn-next {
  appearance: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  font-family: var(--cch-font-display);
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 0 #047857, 0 16px 24px rgba(5, 150, 105, 0.3);
  transition: all 0.18s ease;
}

.cch-modal-btn-next:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 0 #047857, 0 20px 28px rgba(5, 150, 105, 0.35);
}

.cch-modal-btn-next:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #047857;
}

/* Floating Toast Notification */
.cch-toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--cch-font-display);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cch-toast-notice.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Canvas Confetti */
#cch-confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10001;
}

/* =====================================================================
   6. RESPONSIVE MEDIA QUERIES
   ===================================================================== */
@media (max-width: 860px) {
  .cch-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px;
  }
  
  .cch-hero-content {
    align-items: center;
  }
  
  .cch-hero-mascot-box {
    margin-top: 10px;
  }

  .cch-parent-grid {
    grid-template-columns: 1fr;
  }

  .cch-node-item:nth-child(even) {
    transform: translateX(45px);
  }
  
  .cch-node-item:nth-child(odd) {
    transform: translateX(-45px);
  }
}

@media (max-width: 600px) {
  .cch-nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .cch-subject-selector {
    grid-template-columns: 1fr;
  }

  .cch-node-item:nth-child(even) {
    transform: translateX(25px);
  }
  
  .cch-node-item:nth-child(odd) {
    transform: translateX(-25px);
  }
  
  .cch-node-btn {
    width: 78px;
    height: 78px;
  }

  .cch-node-item.is-active .cch-node-btn {
    width: 90px;
    height: 90px;
  }
}
