/* ── OURCHIVES Design System — Warm Premium Redesign ── */
:root {
  --primary: #D4687A;
  --primary-dark: #BF5268;
  --primary-light: #FDE8EC;
  --accent: #E8956A;
  --accent-light: #FDF0E8;
  --success: #6DAB8E;
  --success-light: #E3F2EA;
  --text: #2D2A32;
  --text-light: #7A7585;
  --bg: #FFFAF8;
  --white: #FFFFFF;
  --border: #EDE8E4;
  --shadow: 0 2px 8px rgba(212,104,122,0.06), 0 1px 3px rgba(45,42,50,0.04);
  --shadow-lg: 0 12px 32px rgba(212,104,122,0.10), 0 4px 12px rgba(45,42,50,0.03);
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ── Typography ── */
h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
p { color: var(--text-light); line-height: 1.7; }

@media (max-width: 640px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
}

/* ── Animations ── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10px, -15px) rotate(5deg); }
}

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

@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(109,171,142,0.4); }
  70% { box-shadow: 0 0 0 20px rgba(109,171,142,0); }
  100% { box-shadow: 0 0 0 0 rgba(109,171,142,0); }
}

@keyframes confettiFall {
  0% { transform: translateY(-100%) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes capacityFill {
  from { width: 0; }
}

/* ── Layout ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Nav ── */
.nav {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .icon {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  transition: all 0.2s !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,104,122,0.25);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    display: block !important;
  }

  .nav .container { position: relative; }
}

/* ── Hero ── */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FDE8EC 0%, #FDF0E8 50%, #FFFAF8 100%);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
  opacity: 0.5;
  animation: blobFloat 8s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  width: 300px;
  height: 300px;
  background: rgba(212,104,122,0.08);
  top: -60px;
  left: -80px;
}

.hero::after {
  width: 250px;
  height: 250px;
  background: rgba(232,149,106,0.08);
  bottom: -40px;
  right: -60px;
  animation-delay: -4s;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 700px;
  margin: 0 auto 1.25rem;
  font-size: 3rem;
  animation: slideUp 0.6s ease both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  animation: slideUp 0.6s ease 0.1s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 0.6s ease 0.2s both;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .hero::before { width: 180px; height: 180px; }
  .hero::after { width: 150px; height: 150px; }
}

/* ── Trust Stats ── */
.trust-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  animation: slideUp 0.6s ease 0.3s both;
}

.trust-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.5);
}

.trust-stat .icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  flex-shrink: 0;
  align-self: center;
}

.trust-stat span {
  line-height: 1.2;
}

.trust-stat strong {
  color: var(--text);
  margin-right: 0.25em;
}

@media (max-width: 640px) {
  .trust-stats { gap: 0.75rem; }
  .trust-stat { font-size: 0.8125rem; padding: 0.375rem 1rem; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(212,104,122,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,104,122,0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #D4784E);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(232,149,106,0.2);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,149,106,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn .icon { width: 18px; height: 18px; }

/* ── Program Cards ── */
.programs {
  padding: 5rem 0;
  position: relative;
}

.programs h2 { text-align: center; margin-bottom: 0.75rem; }
.programs > .container > p { text-align: center; margin-bottom: 3rem; }

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .program-grid { grid-template-columns: 1fr; }
}

.program-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.5s ease both;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.program-card:first-child::before {
  background: linear-gradient(90deg, var(--accent), #E8956A);
}

.program-card:last-child::before {
  background: linear-gradient(90deg, var(--primary), #D4687A);
}

.program-card:first-child { animation-delay: 0.1s; }
.program-card:last-child { animation-delay: 0.2s; }

.program-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(212,104,122,0.15);
}

.program-card .icon-badge {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.program-card .icon-badge .icon {
  width: 48px;
  height: 48px;
}

.program-card .icon-badge.camp {
  background: var(--accent-light);
}

.program-card .icon-badge.tutoring {
  background: var(--primary-light);
}

.program-card h3 { margin-bottom: 0.5rem; }
.program-card p { margin-bottom: 1.5rem; font-size: 0.9375rem; }

.program-card .price {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.program-card .price-note {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.program-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.program-card ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  color: var(--text-light);
}

.program-card ul li .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Features / Trust ── */
.features {
  padding: 5rem 0;
  background: var(--white);
}

.features h2 { text-align: center; margin-bottom: 3rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  animation: slideUp 0.5s ease both;
}

.feature-item:nth-child(1) { background: var(--primary-light); animation-delay: 0.1s; }
.feature-item:nth-child(2) { background: var(--accent-light); animation-delay: 0.2s; }
.feature-item:nth-child(3) { background: var(--success-light); animation-delay: 0.3s; }

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

.feature-item .icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow);
}

.feature-item .icon-circle .icon {
  width: 40px;
  height: 40px;
}

.feature-item h3 { margin-bottom: 0.5rem; }
.feature-item p { font-size: 0.9375rem; }

.feature-item .stat-callout {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.25rem;
}

/* ── Day at Camp Timeline (Vertical) ── */
.day-timeline {
  padding: 5rem 0;
  background: var(--white);
}

.day-timeline h2 { text-align: center; margin-bottom: 0.75rem; }
.day-timeline > .container > p { text-align: center; margin-bottom: 3rem; color: var(--text-light); }

.tl-vertical {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.tl-item {
  display: grid;
  grid-template-columns: 80px 32px 1fr;
  gap: 0 0;
  align-items: center;
  min-height: 72px;
}

/* Connecting line */
.tl-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.tl-marker::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.tl-item:first-child .tl-marker::before { top: 50%; }
.tl-item:last-child .tl-marker::before { bottom: 50%; }

.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dot-color, var(--primary));
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--dot-color, var(--primary));
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Time label */
.tl-time {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-light);
  text-align: right;
  padding-right: 12px;
  white-space: nowrap;
}

/* Card */
.tl-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--tl-accent, var(--primary-light));
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 6px 0 6px 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tl-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.tl-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.tl-icon-wrap .icon {
  width: 22px;
  height: 22px;
}

.tl-card strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 2px;
  color: var(--text);
}

.tl-card span {
  font-size: 0.8125rem;
  color: var(--text-light);
}

@media (max-width: 480px) {
  .tl-item {
    grid-template-columns: 60px 24px 1fr;
  }
  .tl-time { font-size: 0.75rem; padding-right: 8px; }
  .tl-card { padding: 0.75rem 1rem; gap: 0.75rem; margin-left: 8px; }
  .tl-icon-wrap { width: 34px; height: 34px; }
  .tl-icon-wrap .icon { width: 18px; height: 18px; }
}

/* ── How It Works ── */
.how-it-works {
  padding: 5rem 0;
  background: linear-gradient(135deg, #FDE8EC 0%, #FDF0E8 50%, #FFFAF8 100%);
}

.how-it-works h2 { text-align: center; margin-bottom: 0.75rem; }
.how-it-works > .container > p { text-align: center; margin-bottom: 3rem; color: var(--text-light); }

.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step-card {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow);
}

.step-icon-wrap .icon {
  width: 36px;
  height: 36px;
}

.step-card h3 { margin-bottom: 0.5rem; }
.step-card p { font-size: 0.9375rem; }

.step-connector {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent-light));
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 88px;
}

@media (max-width: 768px) {
  .steps-row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .step-connector {
    width: 3px;
    height: 40px;
    margin-top: 0;
  }
  .step-card { max-width: 100%; }
}

/* ── Testimonials ── */
.testimonials {
  padding: 5rem 0;
  background: linear-gradient(135deg, #FDE8EC 0%, #FDF0E8 50%, #FFFAF8 100%);
}

.testimonials h2 { text-align: center; margin-bottom: 3rem; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.quote-mark {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.testimonial-card p {
  font-size: 0.9375rem;
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.testimonial-author strong {
  display: block;
  color: var(--text);
  font-size: 0.9375rem;
}

.testimonial-author span {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* ── Subjects Grid ── */
.subjects-section {
  padding: 5rem 0;
  background: var(--white);
}

.subjects-section h2 { text-align: center; margin-bottom: 0.75rem; }
.subjects-section > .container > p { text-align: center; margin-bottom: 2.5rem; }

.subjects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.subject-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  transition: all 0.25s ease;
}

.subject-pill:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.subject-pill:nth-child(1) { border-left: 3px solid var(--primary); }
.subject-pill:nth-child(2) { border-left: 3px solid var(--accent); }
.subject-pill:nth-child(3) { border-left: 3px solid var(--success); }
.subject-pill:nth-child(4) { border-left: 3px solid #8B7EC8; }
.subject-pill:nth-child(5) { border-left: 3px solid var(--primary); }
.subject-pill:nth-child(6) { border-left: 3px solid var(--accent); }
.subject-pill:nth-child(7) { border-left: 3px solid var(--success); }
.subject-pill:nth-child(8) { border-left: 3px solid #8B7EC8; }

/* ── Next Steps (Success Page) ── */
.next-steps {
  text-align: left;
  margin-bottom: 2rem;
}

.next-steps h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.next-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  position: relative;
}

.next-step:not(:last-child) {
  border-bottom: 1px dashed var(--border);
}

.next-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 17px;
  top: calc(1.25rem + 36px);
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-light), transparent);
}

.next-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-weight: 800;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.next-step-content strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.next-step-content p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* ── CTA Section ── */
.cta-band {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 40% 60% 55% 45%;
  top: -40px;
  right: -40px;
  animation: blobFloat 8s ease-in-out infinite;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-band p {
  color: rgba(255,255,255,0.9);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.cta-band .btn {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  position: relative;
}

.cta-band .btn:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* ── Registration Form ── */
.register-page {
  padding: 3rem 0 4rem;
  max-width: 680px;
  margin: 0 auto;
}

.register-bg {
  background: linear-gradient(135deg, #FDE8EC 0%, #FDF0E8 50%, #FFFAF8 100%);
  min-height: 100vh;
}

.register-page h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.register-page > p {
  text-align: center;
  margin-bottom: 2rem;
}

.form-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

/* ── Steps / Progress ── */
.step-indicator {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  position: relative;
}

.step-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.step-segment::before {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(-50% + 16px);
  right: calc(50% + 16px);
  height: 3px;
  background: var(--border);
  transition: background 0.4s ease;
}

.step-segment:first-child::before { display: none; }

.step-segment.done::before {
  background: var(--success);
}

.step-segment.active::before {
  background: linear-gradient(90deg, var(--success), var(--primary));
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-light);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.step-segment.active .step-circle {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(212,104,122,0.3);
}

.step-segment.done .step-circle {
  background: var(--success);
  color: var(--white);
}

.step-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.step-segment.active .step-label { color: var(--primary); }
.step-segment.done .step-label { color: var(--success); }

/* Keep .step-dot for JS compat — hidden */
.step-dot { display: none; }

.form-step {
  display: none;
  animation: slideIn 0.35s ease;
}

.form-step.active { display: block; }

.step-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.step-title .icon { width: 24px; height: 24px; }
.step-title h3 { font-size: 1.125rem; }

/* ── Form Fields ── */
.field-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.375rem;
}

input, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212,104,122,0.15);
}

input::placeholder { color: #C5BFB8; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 14 14'%3E%3Cpath stroke='%23D4687A' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m3 5 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* ── Program Selection Cards ── */
.program-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
  .program-select { grid-template-columns: 1fr; }
}

.program-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  background: var(--white);
}

.program-option .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
}

.program-option:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.program-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(212,104,122,0.12);
}

.program-option h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.program-option .program-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  display: inline-block;
  margin-top: 0.375rem;
}

.program-option span {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* ── Week Selection ── */
.week-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
  .week-grid { grid-template-columns: 1fr; }
}

.week-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--border);
}

.week-option:hover { border-color: var(--primary); border-left-color: var(--primary); }

.week-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  border-left-color: var(--primary);
}

.week-option .week-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.week-option.selected .week-check {
  background: var(--primary);
  border-color: var(--primary);
}

.week-option.selected .week-check svg { display: block; }

.week-option .week-check svg {
  width: 14px;
  height: 14px;
  stroke: white;
  display: none;
}

.week-option .week-info {
  flex: 1;
}

.week-option .week-info strong {
  display: block;
  font-size: 0.9375rem;
}

.week-option .week-info span {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* Capacity mini-bar in week card */
.week-option .capacity-mini-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 0.375rem;
  overflow: hidden;
}

.week-option .capacity-mini-bar .capacity-mini-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.4s ease;
}

/* ── Add-ons ── */
.addon-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.addon-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
}

.addon-item:hover { border-color: var(--primary); transform: translateY(-1px); }

.addon-item.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.addon-item .addon-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.addon-item .addon-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.addon-item .addon-icon .icon {
  width: 20px;
  height: 20px;
}

.addon-item .addon-check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.addon-item.selected .addon-check {
  background: var(--primary);
  border-color: var(--primary);
}

.addon-item.selected .addon-check svg { display: block; }
.addon-item .addon-check svg { width: 12px; height: 12px; stroke: white; display: none; }

.addon-item .addon-price {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

/* ── Tutoring Plan Selection ── */
.plan-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.plan-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
}

.plan-option:hover { border-color: var(--primary); }
.plan-option.selected { border-color: var(--primary); background: var(--primary-light); }

.plan-option .plan-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.plan-option .plan-radio {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.plan-option.selected .plan-radio {
  border-color: var(--primary);
}

.plan-option.selected .plan-radio::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}

.plan-option .plan-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.plan-option .plan-price span {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-light);
}

/* ── Day Type Selector ── */
.day-type-select {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.day-type-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.day-type-option:hover { border-color: var(--primary); }
.day-type-option.selected { border-color: var(--primary); background: var(--primary-light); }

.day-type-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.day-type-option.selected .day-type-radio {
  border-color: var(--primary);
}

.day-type-option.selected .day-type-radio::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}

.day-type-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.day-type-info strong { font-size: 0.9375rem; }
.day-type-info span { font-size: 0.8125rem; color: var(--text-light); }

.day-type-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.day-type-price span {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-light);
}

/* ── Cohort Badge ── */
.cohort-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 20px;
  margin-top: 0.25rem;
}

/* ── Sibling Checkbox ── */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ── Registration Fee Notice ── */
.reg-fee-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* ── Order Summary ── */
.order-summary {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.order-summary h4 {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.order-line {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
}

.order-line.total {
  border-top: 2px solid var(--primary-light);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary);
}

/* ── Form Navigation ── */
.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-nav .btn { flex: 1; justify-content: center; }

/* ── Register Mobile Fixes ── */
@media (max-width: 640px) {
  main.register-page.container { padding: 1rem 0.75rem 2rem; max-width: 100%; margin: 0; }
  .register-page h1 { font-size: 1.5rem; }
  .form-card { padding: 1rem; border-radius: 12px; }
  .step-indicator { gap: 0; margin-bottom: 1.25rem; }
  .step-label { font-size: 0.6875rem; }
  .step-circle { width: 28px; height: 28px; font-size: 0.75rem; }
  .step-title h3 { font-size: 1.125rem; }
  .program-option { padding: 1rem; }
  .program-option .icon { width: 36px; height: 36px; }
  .program-option h4 { font-size: 0.9375rem; }
  .day-type-select { gap: 0.5rem; }
  .day-type-option { padding: 0.75rem; }
  .form-nav { gap: 0.75rem; }
  .form-nav .btn { padding: 0.65rem 1rem; font-size: 0.875rem; }
  .schedule-grid { grid-template-columns: 1fr; }
  .commitment-grid { grid-template-columns: 1fr 1fr; }
  .order-summary { padding: 1rem; }
}

@media (max-width: 380px) {
  .register-page.container { padding: 0.75rem 0.5rem 2rem; }
  .form-card { padding: 0.75rem; }
  .commitment-grid { grid-template-columns: 1fr; }
  .program-select { gap: 0.75rem; }
}

/* ── Success Page ── */
.success-page {
  padding: 4rem 0;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  animation: slideUp 0.6s ease both;
}

.success-bg {
  background: linear-gradient(135deg, #E3F2EA 0%, #FDE8EC 50%, #FFFAF8 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Confetti */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.confetti {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

.success-icon {
  width: 96px;
  height: 96px;
  background: var(--success-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: pulseRing 2s ease-out infinite;
}

.success-icon .icon {
  width: 48px;
  height: 48px;
}

.success-icon .check-svg {
  width: 48px;
  height: 48px;
  stroke: var(--success);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: checkDraw 0.6s ease 0.3s forwards;
}

.success-page h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.success-page p {
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

.success-details {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: left;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.success-details .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--border);
}

.success-details .detail-row:last-child { border-bottom: none; }
.success-details .detail-label { color: var(--text-light); font-size: 0.9375rem; }
.success-details .detail-value { font-weight: 700; }

/* ── Footer ── */
.footer {
  background: var(--white);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--primary-light), var(--accent-light), var(--success-light)) 1;
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* ── Utilities ── */
.icon {
  display: inline-block;
  vertical-align: middle;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }

/* ── Loading ── */
.loading {
  display: none;
  text-align: center;
  padding: 2rem;
}

.loading.active { display: block; }

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

/* ── Error banner ── */
.error-banner {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  display: none;
}

.error-banner.active { display: block; }

/* ── Capacity Badges (registration) ── */
.capacity-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: var(--success-light);
  color: var(--success);
  margin-left: auto;
  white-space: nowrap;
}

.capacity-badge.low {
  background: var(--accent-light);
  color: #B45309;
}

.capacity-badge.full {
  background: #FEF2F2;
  color: #DC2626;
}

.week-option.sold-out {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Admin Dashboard ── */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #FDE8EC 0%, #FDF0E8 50%, #FFFAF8 100%);
}

.login-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.5s ease both;
}

.login-card h2 { margin-bottom: 0.5rem; }
.login-card > p { margin-bottom: 1.5rem; }

.admin-login-error {
  color: #DC2626;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  min-height: 1.25rem;
}

.admin-main {
  padding: 2rem 1.5rem 4rem;
  animation: slideUp 0.4s ease both;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  background: var(--bg);
  padding: 0.375rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
}

.admin-tab {
  background: none;
  border: none;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 9999px;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: inherit;
}

.admin-tab:hover { color: var(--text); background: rgba(212,104,122,0.05); }

.admin-tab.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 2px 8px rgba(212,104,122,0.25);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Stat Cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.stat-card:nth-child(1) { border-left-color: var(--primary); }
.stat-card:nth-child(2) { border-left-color: var(--accent); }
.stat-card:nth-child(3) { border-left-color: var(--success); }

.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.stat-card .stat-icon .icon {
  width: 24px;
  height: 24px;
}

.stat-card:nth-child(1) .stat-icon { background: var(--primary-light); }
.stat-card:nth-child(2) .stat-icon { background: var(--accent-light); }
.stat-card:nth-child(3) .stat-icon { background: var(--success-light); }

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Capacity Bars */
.capacity-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.capacity-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.capacity-label {
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 160px;
}

.capacity-track {
  flex: 1;
  height: 14px;
  background: var(--border);
  border-radius: 7px;
  overflow: hidden;
}

.capacity-fill {
  height: 100%;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.6s ease;
  animation: capacityFill 0.8s ease both;
  position: relative;
}

.capacity-count {
  font-size: 0.875rem;
  font-weight: 700;
  min-width: 50px;
  text-align: right;
}

/* Admin Tables */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
}

.admin-table th {
  text-align: left;
  padding: 0.875rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--bg);
  font-weight: 700;
}

.admin-table td {
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tbody tr {
  transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
  background: var(--primary-light);
}

.tutor-select {
  padding: 0.375rem 0.625rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.3s;
  min-width: 130px;
}

.tutor-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212,104,122,0.15);
  outline: none;
}

/* Toggle Switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* Status Messages */
.admin-status {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  min-height: 1.25rem;
}

.admin-status.success { color: var(--success); }
.admin-status.error { color: #DC2626; }

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--border);
  color: var(--text-light);
}

.status-badge.success {
  background: var(--success-light);
  color: var(--success);
}

@media (max-width: 640px) {
  .capacity-label { min-width: 100px; font-size: 0.75rem; }
  .stat-cards { grid-template-columns: 1fr; }
  .admin-table { font-size: 0.8125rem; }
  .admin-table th, .admin-table td { padding: 0.5rem 0.625rem; }
  .admin-tabs { border-radius: var(--radius); }
}

/* ── Peer Circle Tutoring Styles ── */

.grade-band-display {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.grade-band-display .icon {
  width: 20px;
  height: 20px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.schedule-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  background: var(--white);
}

.schedule-option:hover:not(.disabled) {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.schedule-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 4px 12px rgba(212,104,122,0.12);
}

.schedule-option.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.schedule-day {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.schedule-time {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.circle-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: var(--success-light);
  color: var(--success);
}

.circle-badge.has-students {
  background: var(--accent-light);
  color: #B45309;
}

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.commitment-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  background: var(--white);
}

.commitment-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.commitment-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 4px 12px rgba(212,104,122,0.12);
}

.commitment-months {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
}

.commitment-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.commitment-price span {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-light);
}

.commitment-discount {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--success);
  background: var(--success-light);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  display: inline-block;
  margin-top: 0.375rem;
}

.circle-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.875rem 1.25rem;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ── Footer Grid ── */
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  align-items: center;
}

.footer-grid a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-grid a:hover {
  text-decoration: underline;
}

/* ── Admin Circles Status Badges ── */
.status-badge.closed {
  background: #FEF2F2;
  color: #DC2626;
}

.stat-card:nth-child(4) { border-left-color: #7C3AED; }
.stat-card:nth-child(4) .stat-icon { background: #EDE9FE; }

@media (max-width: 480px) {
  .schedule-grid { grid-template-columns: 1fr 1fr; }
  .commitment-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Legal Pages (Terms, Privacy) ── */
.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page .container {
  max-width: 760px;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal-effective {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}

.legal-page h3 {
  font-size: 1.0625rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal-page p {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.legal-page ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.legal-page ul li {
  position: relative;
  padding: 0.375rem 0 0.375rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-light);
}

.legal-page ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.legal-page a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-contact {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.5rem;
}

.legal-contact p {
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

.legal-closing {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

@media (max-width: 640px) {
  .legal-page { padding: 2rem 0 3rem; }
  .legal-page h1 { font-size: 1.5rem; }
  .legal-page h2 { font-size: 1.25rem; margin-top: 2rem; }
}

/* ── Parent Dashboard ── */
#dashboardScreen {
  flex-direction: column;
  flex: 1;
  width: 100%;
}
.dashboard-main {
  flex: 1;
  padding: 2rem 1.5rem 4rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  animation: slideUp 0.4s ease both;
}

.dashboard-main h1 {
  margin-bottom: 0.5rem;
}

.dash-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all 0.25s ease;
}

.dash-card:hover {
  box-shadow: var(--shadow);
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.dash-card-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.dash-program {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
}

.dash-program.camp {
  background: var(--accent-light);
  color: var(--accent);
}

.dash-program.tutoring {
  background: var(--primary-light);
  color: var(--primary);
}

.dash-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dash-detail {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.dash-detail span {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dash-detail strong {
  font-size: 0.9375rem;
}

.dash-tutor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.dash-attendance-bar {
  margin-top: 0.75rem;
}

.dash-attend-label {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--text-light);
}

/* Attendance List */
.attendance-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.attend-date-group {
  border-bottom: 1px solid var(--border);
}

.attend-date-group:last-child {
  border-bottom: none;
}

.attend-date {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  padding: 0.75rem 1rem 0.375rem;
  background: var(--bg);
}

.attend-record {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
}

.attend-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
}

.attend-status.present {
  background: var(--success-light);
  color: var(--success);
}

.attend-status.absent {
  background: #FEF2F2;
  color: #DC2626;
}

/* Learning Pod Notice */
.pod-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.875rem 1.25rem;
  background: var(--success-light);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--success);
  line-height: 1.5;
  margin-top: 0.75rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .dashboard-main { padding: 1rem 0.75rem 2rem; }
  .dash-details { grid-template-columns: 1fr; }
  .dash-card { padding: 1rem; }
}
