/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Skip to content link (accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Flash message auto-dismiss fade-out */
.flash-fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ============================================
   EDUKIDS PLAYFUL THEME - CSS Custom Properties
   ============================================ */

:root {
  /* Primary Colors */
  --color-sunny-yellow: #FFD93D;
  --color-coral-orange: #FF6B6B;
  --color-sky-blue: #4ECDC4;
  --color-soft-purple: #A78BFA;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #FFD93D 0%, #FF6B6B 100%);
  --gradient-secondary: linear-gradient(135deg, #4ECDC4 0%, #44A3AA 100%);
  --gradient-purple: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);

  /* Backgrounds */
  --bg-page: #FFFDF7;
  --bg-card: #FFFFFF;
  --bg-soft: #FFF5EE;
  --bg-soft-alt: #FEF3C7;

  /* Borders */
  --border-card: #FFE4E1;
  --border-default: #FECACA;

  /* Text Colors */
  --text-dark: #1F2937;
  --text-body: #374151;
  --text-muted: #6B7280;

  /* Shadows */
  --shadow-card: 0 8px 30px rgba(255, 107, 107, 0.12);
  --shadow-card-hover: 0 12px 40px rgba(255, 107, 107, 0.2);

  /* Border Radius */
  --radius-button: 50px;
  --radius-card: 24px;
  --radius-input: 16px;
  --radius-small: 12px;
}

/* ============================================
   BASE STYLES
   ============================================ */

/* Ensure dialogs don't create overlays when closed */
dialog:not([open]) {
  display: none !important;
}

/* Style dialog backdrop */
dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

/* Turbo progress bar styling */
.turbo-progress-bar {
  height: 3px;
  background: var(--gradient-primary);
}

/* Reset any potential overlay issues */
body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Ensure clickability */
* {
  pointer-events: auto;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Page Backgrounds */
.bg-page { background: var(--bg-page); }
.bg-soft { background: var(--bg-soft); }
.bg-card { background: var(--bg-card); }

/* Gradient Backgrounds */
.bg-gradient-primary { background: var(--gradient-primary); }
.bg-gradient-secondary { background: var(--gradient-secondary); }

/* Card Styles */
.card-playful {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 2px solid var(--border-card);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.card-playful:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-coral-orange);
}

/* Button Styles */
.btn-primary {
  padding: 12px 24px;
  border-radius: var(--radius-button);
  border: 0;
  background: var(--gradient-primary);
  color: var(--text-dark);
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

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

.btn-secondary {
  padding: 12px 24px;
  border-radius: var(--radius-button);
  border: 2px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-dark);
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--color-coral-orange);
  background: var(--bg-soft);
}

.btn-coral {
  padding: 10px 20px;
  border-radius: var(--radius-button);
  border: 0;
  background: var(--color-coral-orange);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sky {
  padding: 10px 20px;
  border-radius: var(--radius-button);
  border: 0;
  background: var(--color-sky-blue);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Header Styles */
.header-playful {
  background: var(--gradient-primary);
  padding: 20px 16px;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  color: var(--text-dark);
}

/* Form Input Styles */
.input-playful {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-input);
  border: 2px solid var(--border-card);
  font-size: 15px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.input-playful:focus {
  outline: none;
  border-color: var(--color-coral-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Badge Styles */
.badge-yellow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-sunny-yellow);
  color: var(--text-dark);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.badge-coral {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-coral-orange);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.badge-sky {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-sky-blue);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.badge-purple {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-soft-purple);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* Alert Styles */
.alert-success {
  padding: 12px 16px;
  background: #ECFDF5;
  border: 2px solid var(--color-sky-blue);
  border-radius: var(--radius-small);
  color: #059669;
}

.alert-error {
  padding: 12px 16px;
  background: #FEF2F2;
  border: 2px solid var(--color-coral-orange);
  border-radius: var(--radius-small);
  color: #DC2626;
}

.alert-warning {
  padding: 12px 16px;
  background: var(--bg-soft-alt);
  border: 2px solid var(--color-sunny-yellow);
  border-radius: var(--radius-small);
  color: #D97706;
}

/* Navigation Pills */
.nav-pill {
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-pill-active {
  background: var(--gradient-primary);
  color: var(--text-dark);
}

.nav-pill-inactive {
  background: var(--bg-soft);
  color: var(--text-body);
}

.nav-pill-inactive:hover {
  background: var(--color-sunny-yellow);
  color: var(--text-dark);
}

/* Avatar Circle */
.avatar-playful {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-weight: 800;
  font-size: 16px;
}

/* Links */
.link-playful {
  color: var(--color-soft-purple);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.link-playful:hover {
  color: var(--color-coral-orange);
}

/* Stats Card */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 20px;
  border: 2px solid var(--border-card);
  box-shadow: var(--shadow-card);
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* Dialog Styles */
dialog {
  border: 2px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px rgba(255, 107, 107, 0.2);
}

/* Table Styles */
.table-playful {
  width: 100%;
  border-collapse: collapse;
}

.table-playful th {
  background: var(--bg-soft);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border-card);
}

.table-playful td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-card);
  color: var(--text-body);
}

.table-playful tr:hover {
  background: var(--bg-soft);
}

/* ============================================
   LANDING PAGE STYLES
   ============================================ */

/* --- Sticky Nav --- */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255, 253, 247, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-card);
}

.landing-nav-logo {
  font-weight: 800;
  font-size: 22px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.landing-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.landing-nav-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-body);
  transition: color 0.2s;
}

.landing-nav-links a:hover {
  color: var(--color-coral-orange);
}

.landing-nav-cta {
  padding: 10px 24px;
  border-radius: var(--radius-button);
  background: var(--gradient-primary);
  color: var(--text-dark) !important;
  font-weight: 700 !important;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.landing-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

/* --- Mobile Nav Toggle --- */
.landing-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.landing-nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.2s;
}

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

  .landing-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 253, 247, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 32px 24px;
    border-bottom: 2px solid var(--border-card);
    gap: 16px;
  }

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

  .landing-nav-links .landing-nav-anchor {
    display: block !important;
  }

  .landing-nav-links .landing-nav-cta {
    text-align: center;
  }
}

/* --- Hero --- */
.landing-hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  padding: 140px 24px 80px;
  text-align: center;
}

.landing-hero::before,
.landing-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
}

.landing-hero::before {
  width: 400px;
  height: 400px;
  background: var(--color-sky-blue);
  top: -120px;
  left: -100px;
}

.landing-hero::after {
  width: 300px;
  height: 300px;
  background: var(--color-soft-purple);
  bottom: -80px;
  right: -60px;
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.landing-hero h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 16px;
  line-height: 1.15;
}

.landing-hero p {
  font-size: 20px;
  color: var(--text-body);
  margin: 0 0 36px;
  font-weight: 600;
}

.landing-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-btn-white {
  display: inline-block;
  padding: 16px 36px;
  border-radius: var(--radius-button);
  background: #fff;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.landing-btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.landing-btn-outline {
  display: inline-block;
  padding: 16px 36px;
  border-radius: var(--radius-button);
  background: transparent;
  border: 2px solid var(--text-dark);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  transition: background 0.2s;
}

.landing-btn-outline:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* --- Stats Bar --- */
.landing-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 28px 24px;
  background: var(--bg-soft);
  flex-wrap: wrap;
}

.landing-stat {
  text-align: center;
}

.landing-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
}

.landing-stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Section Common --- */
.landing-section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.landing-section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 12px;
}

.landing-section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 48px;
  font-weight: 600;
}

/* --- Features Grid --- */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.landing-feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 2px solid var(--border-card);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  box-shadow: var(--shadow-card);
}

.landing-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-coral-orange);
}

.landing-feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.landing-feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 8px;
}

.landing-feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* --- How It Works --- */
.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.landing-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.landing-step h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 8px;
}

.landing-step p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* --- Pricing Section --- */
.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.landing-price-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 2px solid var(--border-card);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow-card);
}

.landing-price-card.popular {
  border-color: var(--color-coral-orange);
  transform: scale(1.04);
  box-shadow: 0 12px 40px rgba(255, 107, 107, 0.25);
}

.landing-popular-badge {
  display: inline-block;
  padding: 4px 16px;
  background: var(--color-coral-orange);
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.landing-price-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 8px;
}

.landing-price-amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 8px 0 4px;
}

.landing-price-period {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px;
  font-weight: 600;
}

.landing-price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.landing-price-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-card);
}

.landing-price-features li:last-child {
  border-bottom: none;
}

.landing-price-cta {
  display: block;
  width: 100%;
  padding: 14px 0;
  border-radius: var(--radius-button);
  background: var(--gradient-primary);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.landing-price-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

/* --- CTA Banner --- */
.landing-cta-banner {
  background: var(--gradient-primary);
  border-radius: var(--radius-card);
  padding: 60px 32px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.landing-cta-banner h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 12px;
}

.landing-cta-banner p {
  font-size: 18px;
  color: var(--text-body);
  margin: 0 0 28px;
  font-weight: 600;
}

/* --- Footer --- */
.landing-footer {
  background: #1F2937;
  padding: 48px 24px 24px;
  color: #D1D5DB;
}

.landing-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.landing-footer-brand {
  max-width: 280px;
}

.landing-footer-logo {
  font-weight: 800;
  font-size: 22px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-footer-brand p {
  font-size: 14px;
  color: #9CA3AF;
  margin: 8px 0 0;
  line-height: 1.6;
}

.landing-footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
}

.landing-footer-col a {
  display: block;
  color: #9CA3AF;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.landing-footer-col a:hover {
  color: var(--color-coral-orange);
}

.landing-footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid #374151;
  text-align: center;
  font-size: 13px;
  color: #6B7280;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .landing-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .landing-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .landing-price-card.popular {
    transform: scale(1.02);
  }
}

@media (max-width: 768px) {
  .landing-hero h1 {
    font-size: 36px;
  }
  .landing-hero {
    padding: 120px 20px 60px;
  }
  .landing-stats {
    gap: 24px;
  }
  .landing-section-title {
    font-size: 28px;
  }
  .landing-features-grid {
    grid-template-columns: 1fr;
  }
  .landing-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .landing-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
  .landing-price-card.popular {
    transform: none;
  }
  .landing-cta-banner {
    margin-left: 16px;
    margin-right: 16px;
  }
  .landing-footer-inner {
    flex-direction: column;
  }
  .landing-testimonials-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Testimonials */
.landing-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.landing-testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  border: 2px solid var(--border-soft, #FFE4E1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.landing-testimonial-quote {
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  font-style: italic;
  margin: 0 0 20px;
}
.landing-testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.landing-testimonial-author strong {
  color: #1F2937;
  font-weight: 700;
}
.landing-testimonial-author span {
  color: #6B7280;
  font-size: 14px;
}

/* Floating WhatsApp Button */
.landing-whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 1000;
  text-decoration: none;
}
.landing-whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

@media (max-width: 960px) {
  .landing-testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   TUTORIALS DRAWER
   ============================================ */

.tutorials-help-btn {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--text-dark);
  font-size: 22px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.35);
  z-index: 59;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.tutorials-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.tutorials-overlay-visible {
  opacity: 1;
  pointer-events: auto;
}

.tutorials-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  height: 100vh;
  background: var(--bg-page);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
}
.tutorials-drawer-open {
  right: 0;
}

.tutorials-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  background: var(--gradient-primary);
}
.tutorials-drawer-header h2 {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}
.tutorials-close-btn {
  background: rgba(255,255,255,0.25);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.tutorials-close-btn:hover {
  background: rgba(255,255,255,0.4);
}

.tutorials-search-wrap {
  padding: 16px 24px 8px;
  position: relative;
}
.tutorials-search {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-input);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.tutorials-search:focus {
  border-color: var(--color-coral-orange);
}
.tutorials-search-clear {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.tutorials-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px 24px;
}

.tutorials-no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-family: 'Nunito', sans-serif;
}

/* Category accordion */
.tutorials-category {
  margin-bottom: 8px;
}
.tutorials-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-small);
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: background 0.2s;
}
.tutorials-category-header:hover {
  background: var(--bg-soft);
}
.tutorials-category-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
  color: var(--text-muted);
}
.tutorials-category-open .tutorials-category-arrow {
  transform: rotate(180deg);
}
.tutorials-category-items {
  display: none;
  padding: 4px 0 0 0;
}
.tutorials-category-open .tutorials-category-items {
  display: block;
}

/* Tutorial cards */
.tutorials-tutorial {
  margin: 4px 0;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-small);
  background: var(--bg-card);
  overflow: hidden;
}
.tutorials-tutorial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.tutorials-tutorial-header:hover {
  background: var(--bg-soft);
}
.tutorials-tutorial-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.tutorials-tutorial-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.tutorials-tutorial-arrow {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}
.tutorials-tutorial-open .tutorials-tutorial-arrow {
  transform: rotate(90deg);
}
.tutorials-tutorial-steps {
  display: none;
  padding: 0 16px 16px;
}
.tutorials-tutorial-open .tutorials-tutorial-steps {
  display: block;
}
.tutorials-tutorial-steps ol {
  margin: 0;
  padding: 0 0 0 20px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.7;
}
.tutorials-tutorial-steps li {
  margin-bottom: 6px;
}
.tutorials-step-link {
  display: inline-block;
  margin-left: 4px;
  color: var(--color-coral-orange);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.8rem;
}
.tutorials-step-link:hover {
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .tutorials-drawer {
    width: 100vw;
    right: -100vw;
  }
  .tutorials-drawer.tutorials-drawer-open {
    right: 0;
  }
  .tutorials-help-btn {
    display: flex;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
  }
}
/* Public enrollment form — shared playful-theme components */

.enroll-page {
  min-height: 100vh;
  background: #FFFDF7;
  font-family: 'Nunito', sans-serif;
}

.enroll-header {
  background: linear-gradient(135deg, #FFD93D 0%, #FF6B6B 100%);
  padding: 32px 16px;
  border-radius: 0 0 24px 24px;
  text-align: center;
}

.enroll-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: #1F2937;
  margin: 0;
}

.enroll-header p {
  color: #374151;
  margin: 8px auto 0;
  font-size: 16px;
  max-width: 600px;
}

.enroll-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px;
}

.enroll-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(255, 107, 107, 0.12);
  border: 2px solid #FFE4E1;
  margin-bottom: 20px;
}

.enroll-section-heading {
  font-size: 18px;
  font-weight: 800;
  color: #1F2937;
  margin: 0 0 16px;
}

.enroll-subheading {
  font-size: 15px;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 12px;
}

.enroll-subheading-note {
  font-weight: 400;
  color: #6B7280;
  font-size: 13px;
}

.enroll-label {
  display: block;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 6px;
  font-size: 14px;
}

.enroll-field {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  border: 2px solid #FFE4E1;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  outline: none;
  background: #fff;
  box-sizing: border-box;
}

.enroll-field-textarea {
  min-height: 60px;
}

.enroll-field-file {
  padding: 8px;
}

.enroll-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.enroll-row > div {
  flex: 1;
  min-width: 0;
}

.enroll-field-group {
  margin-bottom: 14px;
}

.enroll-field-group-last {
  margin-bottom: 0;
}

.enroll-divider {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #FFE4E1;
}

.enroll-btn-primary {
  padding: 14px 28px;
  border-radius: 50px;
  border: 0;
  background: linear-gradient(135deg, #FFD93D 0%, #FF6B6B 100%);
  color: #1F2937;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  width: 100%;
}

.enroll-btn-secondary {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid #FFD93D;
  background: #FFFDF7;
  color: #1F2937;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
}

.enroll-btn-remove {
  padding: 6px 14px;
  border-radius: 50px;
  border: 2px solid #FF6B6B;
  background: #fff;
  color: #FF6B6B;
  font-weight: 700;
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
}

.enroll-error-block {
  padding: 12px 16px;
  background: #FEF2F2;
  border: 2px solid #FF6B6B;
  border-radius: 16px;
  margin-bottom: 16px;
  color: #dc2626;
  font-weight: 600;
}

.enroll-error-block p {
  margin: 0 0 8px;
  font-weight: 800;
}

.enroll-error-block ul {
  margin: 0;
  padding-left: 20px;
}

.enroll-checkbox-row {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.enroll-checkbox-row-flush {
  margin-bottom: 0;
}

.enroll-checkbox {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.enroll-checkbox-label {
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.enroll-choice-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.enroll-inline-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #374151;
  min-width: 0;
}

.enroll-inline-choice-compact {
  font-size: 13px;
}

.enroll-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.enroll-field-followup {
  margin-top: 8px;
}

.enroll-media-consent {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #FFF7ED;
  border: 2px solid #FED7AA;
}

.enroll-media-consent-body {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 12px;
}

.enroll-declaration {
  margin-top: 6px;
  border-radius: 22px;
  border: 2px solid #FDE2D7;
  background: linear-gradient(180deg, #FFF8F3 0%, #FFFCFA 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.enroll-declaration-body {
  padding: 20px;
}

.enroll-declaration-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF6B6B;
}

.enroll-declaration-copy {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
}

.enroll-declaration-copy:last-child {
  margin-bottom: 0;
}

.enroll-declaration-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.enroll-declaration-list li {
  position: relative;
  padding: 14px 16px 14px 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #FDE2D7;
  color: #374151;
  line-height: 1.65;
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.06);
}

.enroll-declaration-list li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 16px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFD93D 0%, #FF6B6B 100%);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.12);
}

.enroll-declaration-ack {
  margin: 0;
  padding: 18px 20px 20px;
  border-top: 1px solid #FDE2D7;
  background: rgba(255, 255, 255, 0.75);
}

.enroll-declaration-ack .enroll-checkbox-label {
  font-size: 15px;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.6;
}

.enroll-required {
  color: #FF6B6B;
}

.enroll-fee-notice {
  background: #FFF5EE;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
  border: 2px solid #FFE4E1;
}

.enroll-fee-notice p {
  margin: 0;
  color: #1F2937;
  font-weight: 700;
}

.enroll-fee-notice small {
  margin: 4px 0 0;
  color: #6B7280;
  font-size: 13px;
  display: block;
}

.enroll-child-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.enroll-actions {
  margin-top: 10px;
}

.enroll-pickup-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.enroll-pickup-row > input[type="text"],
.enroll-pickup-row > input[type="tel"],
.enroll-pickup-upload {
  flex: 1 1 180px;
  min-width: 0;
}

.enroll-pickup-upload-label {
  display: block;
  margin: 0 0 6px;
  color: #6B7280;
  font-size: 12px;
  font-weight: 700;
}

.enroll-pickup-row .enroll-btn-remove {
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .enroll-header {
    padding: 28px 16px 24px;
  }

  .enroll-header h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  .enroll-header p {
    font-size: 15px;
  }

  .enroll-container {
    padding: 18px 12px 28px;
  }

  .enroll-card {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .enroll-row {
    flex-direction: column;
    gap: 12px;
  }

  .enroll-choice-row {
    flex-direction: column;
    gap: 10px;
  }

  .enroll-option-grid {
    grid-template-columns: 1fr;
  }

  .enroll-actions .enroll-btn-secondary,
  .enroll-child-header .enroll-btn-remove,
  .enroll-pickup-row .enroll-btn-remove {
    width: 100%;
  }

  .enroll-pickup-row {
    gap: 12px;
  }

  .enroll-pickup-row > input[type="text"],
  .enroll-pickup-row > input[type="tel"],
  .enroll-pickup-upload,
  .enroll-pickup-row .enroll-btn-remove {
    flex: 1 1 100%;
  }

  .enroll-declaration-body {
    padding: 18px 16px;
  }

  .enroll-declaration-copy,
  .enroll-declaration-ack .enroll-checkbox-label {
    font-size: 14px;
  }

  .enroll-declaration-list li {
    padding: 13px 14px 13px 40px;
  }

  .enroll-declaration-list li::before {
    top: 17px;
    left: 14px;
    width: 12px;
    height: 12px;
  }

  .enroll-declaration-ack {
    padding: 16px;
  }
}

/* ============================================
   NOTIFICATION BELL DROPDOWN
   ============================================ */

.notification-bell-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 480px;
  overflow-y: auto;
  background: #fff;
  border: 2px solid #FFE4E1;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.notification-bell-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 999;
}

@media (min-width: 601px) {
  .notification-bell-backdrop {
    display: none !important;
  }
}

@media (max-width: 600px) {
  /* Pin to the viewport so the dropdown can't overflow the screen when
     the bell sits in the right side of a narrow header. */
  .notification-bell-dropdown {
    position: fixed;
    top: 64px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - 80px);
  }
}
