/* static/css/styles/index.css */
:root {
  --body-font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --heading-font: 'Fredoka One', 'Nunito', cursive;
}

body {
  margin: 0;
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}

h1, h2, h3, h4, h5, h6, .btn, button, .nav-link-item, .nav-button-secondary, .btn-get-started {
  font-family: var(--heading-font) !important;
}

@media (max-width: 1024px) {
  :root {
    --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    --heading-font: 'Inter', sans-serif !important;
  }
  
  body, p, span, li, div, a, h1, h2, h3, h4, h5, h6, .btn, button, .nav-link-item, .nav-button-secondary, .btn-get-started {
    font-family: 'Inter', sans-serif !important;
  }
}



/* static/css/styles/App.css */
.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


/* static/css/styles/theme.css */
/* ========================
   LENOKIDS THEME - BLUE-CENTRIC PALETTE
   ======================== */

:root {
  /* Typography */
  --body-font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --heading-font: 'Fredoka One', 'Nunito', cursive;

  /* Primary Blue Colors */
  --leno-primary-blue: #2563eb;
  --leno-blue-600: #2563eb;
  --leno-blue-500: #3b82f6;
  --leno-blue-400: #60a5fa;
  --leno-blue-300: #93c5fd;
  --leno-blue-200: #bfdbfe;
  --leno-blue-100: #dbeafe;
  --leno-blue-50: #eff6ff;

  /* Accent Colors */
  --leno-accent-cyan: #06b6d4;
  --leno-accent-teal: #14b8a6;
  --leno-accent-indigo: #6366f1;

  /* Gradients */
  --leno-gradient-primary: linear-gradient(135deg, #2563eb, #3b82f6, #06b6d4);
  --leno-gradient-secondary: linear-gradient(135deg, #3b82f6, #6366f1);
  --leno-gradient-accent: linear-gradient(135deg, #06b6d4, #14b8a6);
  --leno-gradient-soft: linear-gradient(135deg, #eff6ff, #dbeafe, #bfdbfe);

  /* Background Colors */
  --leno-bg-primary: #ffffff;
  --leno-bg-secondary: #f8fafc;
  --leno-bg-gradient: linear-gradient(135deg, #eff6ff, #dbeafe, #e0f2fe);

  /* Text Colors */
  --leno-text-primary: #1e293b;
  --leno-text-secondary: #475569;
  --leno-text-muted: #64748b;
  --leno-text-light: #94a3b8;

  /* Border Colors */
  --leno-border-light: #e2e8f0;
  --leno-border-medium: #cbd5e1;
  --leno-border-blue: #93c5fd;

  /* Button Colors */
  --leno-btn-primary: #2563eb;
  --leno-btn-primary-hover: #1d4ed8;
  --leno-btn-secondary: #3b82f6;
  --leno-btn-secondary-hover: #2563eb;

  /* Card Colors */
  --leno-card-bg: #ffffff;
  --leno-card-shadow: rgba(37, 99, 235, 0.1);
  --leno-card-shadow-hover: rgba(37, 99, 235, 0.2);

  /* Status Colors */
  --leno-success: #10b981;
  --leno-warning: #f59e0b;
  --leno-error: #ef4444;
  --leno-info: #3b82f6;

  /* Disabled State */
  --leno-disabled-bg: #f1f5f9;
  --leno-disabled-text: #94a3b8;
  --leno-disabled-border: #e2e8f0;
}



/* static/css/styles/AccessSelection.css */
@import './theme.css';

/* ======================= GLOBAL WRAPPER ======================= */
.access-page-wrapper {
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(135deg,
      #dbeafe,
      #e0e7ff,
      #ddd6fe);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  font-family: var(--body-font, 'Nunito'), sans-serif;
}

/* ======================= NAVBAR ======================= */
.access-page-wrapper .navbar {
  width: 100%;
  padding: 14px 28px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.access-page-wrapper .nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.access-page-wrapper .logo-circle {
  width: 50px;
  height: 50px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.access-page-wrapper .logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
}

.access-page-wrapper .nav-title {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
}

/* ======================= MAIN CONTENT ======================= */
.access-page-wrapper .content-container {
  margin-top: 50px;
  text-align: center;
}

.access-page-wrapper .main-title {
  font-size: 38px;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.access-page-wrapper .subtitle {
  margin-top: 10px;
  font-size: 16px;
  color: #6b7280;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ======================= CARDS ROW ======================= */
.access-page-wrapper .cards-row {
  margin-top: 50px;
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.access-page-wrapper .card {
  width: 360px;
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 22px;
  text-align: center;
  box-shadow:
    0 20px 50px rgba(59, 130, 246, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.access-page-wrapper .card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 65px rgba(37, 99, 235, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* ======================= ICONS ======================= */
.access-page-wrapper .icon {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
}

.access-page-wrapper .card:hover .icon {
  transform: scale(1.15) rotate(3deg);
}

.access-page-wrapper .icon::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 28px;
  background: inherit;
  filter: blur(20px);
  opacity: 0.7;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.access-page-wrapper .card:hover .icon::before {
  opacity: 0.9;
  filter: blur(25px);
}

.access-page-wrapper .green-icon {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.access-page-wrapper .pink-purple-icon {
  background: linear-gradient(135deg, #a78bfa, #6366f1);
}

.access-page-wrapper .text-white {
  color: white;
}

/* ======================= BUTTONS ======================= */
.access-page-wrapper .btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-top: 16px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.access-page-wrapper .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35);
}

.access-page-wrapper .btn-green {
  background: linear-gradient(135deg, #34d399, #22c55e);
}

.access-page-wrapper .btn-purple {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.access-page-wrapper .btn-outline {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  backdrop-filter: blur(8px);
}

/* ======================= PARENT/TEACHER BOX ======================= */
.access-page-wrapper .parent-box {
  width: 90%;
  max-width: 820px;
  margin-top: 50px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  text-align: center;
  box-shadow:
    0 20px 50px rgba(59, 130, 246, 0.15);
}

.access-page-wrapper .btn-parent-white {
  margin-top: 18px;
  padding: 14px 28px;
  border-radius: 16px;
  background: white;
  color: #2563eb;
  border: 2px solid #3b82f6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.access-page-wrapper .btn-parent-white:hover {
  transform: translateY(-2px);
  background: #f8faff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
  border-color: #2563eb;
}

/* ======================= FOOTER NOTE ======================= */
.access-page-wrapper .footer-note {
  margin-top: 35px;
  margin-bottom: 45px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  font-size: 13px;
  color: #6b7280;
  max-width: 760px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}

/* ======================= RESPONSIVE ======================= */
@media (max-width: 768px) {
  .access-page-wrapper .cards-row {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .access-page-wrapper .navbar {
    justify-content: center;
  }

  .access-page-wrapper .nav-left .nav-title {
    display: none;
  }
}

@media (max-width: 480px) {
  .access-page-wrapper .card {
    width: 90%;
    max-width: 360px;
    padding: 20px;
  }

  .access-page-wrapper .main-title {
    font-size: 28px;
  }

  .access-page-wrapper .parent-box {
    width: 95%;
    padding: 20px;
  }
}

/* static/css/styles/ChildDashboard.css */
@import "./theme.css";

.child-dashboard {
  --dashboard-primary: #1e40af;
  --dashboard-secondary: #3b82f6;
  min-height: 100vh;
  font-family: inherit;
  background: var(--dashboard-main-bg, linear-gradient(
    135deg,
    var(--dashboard-primary) 0%,
    var(--dashboard-secondary) 100%
  ));
  position: relative;
  overflow-x: hidden;
}

/* Decorative background elements for children */
.child-dashboard::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.2) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}

.child-dashboard::after {
  content: "";
  position: absolute;
  bottom: 15%;
  left: 5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.2) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(20px, -20px) scale(1.1);
  }
}

/* Trial Banner */
.trial-banner {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  color: white;
  padding: 16px 24px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  font-weight: 700;
  font-family: var(--heading-font);
  font-size: 15px;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.trial-banner-text {
  margin-left: 16px;
  font-size: 15px;
  opacity: 1;
  font-weight: 700;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #dbeafe 100%);
  border-radius: 32px;
  padding: 48px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.4);
  animation: slideUp 0.3s ease-out;
  border: 3px solid rgba(59, 130, 246, 0.2);
}

.modal-emoji {
  font-size: 80px;
  margin-bottom: 24px;
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.modal-content h2 {
  font-size: 32px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.modal-content p {
  font-size: 20px;
  margin-bottom: 24px;
  color: #1e293b;
  font-weight: 600;
}

.modal-timer {
  font-size: 16px;
  color: #ef4444;
  font-weight: 700;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.modal-btn-primary {
  background: linear-gradient(135deg, #00e5ff 0%, #00b0ff 100%);
  color: white;
  border: none;
  padding: 18px 36px;
  border-radius: 9999px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 
    0 8px 0 #0081cb, 
    0 15px 20px rgba(0, 176, 255, 0.4),
    inset 0 2px 0 rgba(255,255,255,0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.modal-btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 0 #0081cb, 
    0 20px 30px rgba(0, 176, 255, 0.5),
    inset 0 2px 0 rgba(255,255,255,0.6);
}

.modal-btn-primary:active {
  transform: translateY(6px);
  box-shadow: 
    0 2px 0 #0081cb, 
    0 5px 10px rgba(0, 176, 255, 0.4),
    inset 0 2px 0 rgba(255,255,255,0.2);
}

.modal-btn-secondary {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #1e293b;
  border: none;
  padding: 16px 32px;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 
    0 8px 0 #cbd5e1, 
    0 15px 20px rgba(0, 0, 0, 0.1),
    inset 0 2px 0 rgba(255,255,255,1);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.modal-btn-secondary:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 0 #cbd5e1, 
    0 20px 30px rgba(0, 0, 0, 0.15),
    inset 0 2px 0 rgba(255,255,255,1);
}

.modal-btn-secondary:active {
  transform: translateY(6px);
  box-shadow: 
    0 2px 0 #cbd5e1, 
    0 5px 10px rgba(0, 0, 0, 0.1),
    inset 0 2px 0 rgba(255,255,255,1);
}

/* Header - FIXED: Proper responsive layout */
.dashboard-header {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 2px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.hw-page .hw-header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .hw-page .hw-header-content {
    padding: 0 3rem;
    gap: 20px;
  }
}

.header-container {
  max-width: 100%;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  gap: 0.75rem;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.logo-group:hover .logo-circle {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-clip: text;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.stars-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(234, 179, 8, 0.3);
  border: 3px solid #fbbf24;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.stars-box:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.4);
}

.star-icon {
  width: 18px;
  height: 18px;
  color: #eab308;
  animation: sparkle 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }

  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.8;
  }
}

.stars-count {
  font-size: 14px;
  font-weight: 800;
  color: #92400e;
  white-space: nowrap;
}

.avatar-link {
  display: flex;
  padding: 4px;
  background: white;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.2);
  border: 3px solid rgba(59, 130, 246, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.avatar-link:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
  font-size: 18px;
  font-weight: 800;
}

/* Main */
.dashboard-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}

/* Welcome */
.welcome-section {
  margin-bottom: 4rem; /* Increased margin */
  text-align: left;
  animation: fadeIn 0.6s ease-out;
  border-radius: 32px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.welcome-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.welcome-header h1 {
  font-size: 3rem;
  font-weight: 800;
  color: white !important;
  -webkit-text-fill-color: white !important;
  background: none !important;
  margin: 0;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sparkles-icon {
  width: 40px;
  height: 40px;
  color: #facc15;
  animation: sparkle 2s ease-in-out infinite;
}

.welcome-subtitle {
  font-size: 1.5rem;
  color: white !important;
  margin: 0;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

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

@media (max-width: 768px) {
  .welcome-header h1 {
    font-size: 2rem;
  }

  .welcome-subtitle {
    font-size: 1.25rem;
  }

  .dashboard-main {
    padding: 2rem 1rem;
  }
}

/* Sections (Jagged & Wavy styling) */
.section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 3rem 2.5rem;
  border: 6px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 5rem; /* Very aggressive margin for clear separation */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: visible; /* Ensure shadows/margins aren't clipped */
}

.section:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 25px 50px rgba(37, 99, 235, 0.25);
  border-color: rgba(255, 255, 255, 0.9);
}

.section h2,
.section h3 {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 1.75rem 0;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-icon {
  width: 28px;
  height: 28px;
  color: #3b82f6;
}

/* Continue Section */
.continue-empty {
  background: var(--continue-card-bg, linear-gradient(135deg, #dbeafe, #bfdbfe));
  color: var(--continue-card-color, #1e293b);
  border-radius: 20px;
  padding: 2.5rem;
  border: 3px solid var(--continue-card-border, #93c5fd);
}

.continue-empty-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.continue-empty-icon {
  width: 56px;
  height: 56px;
  color: #3b82f6;
}

.continue-empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: inherit;
  margin-bottom: 0.75rem;
}

.continue-empty-text {
  font-size: 1.1rem;
  color: inherit;
  opacity: 0.8;
  font-weight: 600;
}

.continue-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.continue-card {
  background: var(--continue-card-bg, linear-gradient(135deg, #dbeafe, #bfdbfe));
  color: var(--continue-card-color, #1e293b);
  border-radius: 20px;
  padding: 2rem;
  border: 3px solid var(--continue-card-border, #93c5fd);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.continue-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
  border-color: #60a5fa;
}

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

.continue-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
}

.continue-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: inherit;
  margin-bottom: 0.75rem;
}

.continue-card-subtitle {
  font-size: 1rem;
  color: inherit;
  opacity: 0.8;
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(226, 232, 240, 0.6);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* Activities */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem; /* Even larger gap */
}
.activity-card {
  background: #ffffff;
  color: #1e293b;
  border-radius: 35px;
  padding: 2.5rem 2rem;
  border: 4px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.activity-card:hover:not(.activity-disabled) {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--dashboard-secondary, #3b82f6);
}

.activity-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8fafc;
}

.activity-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Removed solid background/box-shadow for an immersive feel */
  color: inherit; /* Will take color from specific gradient classes now applied as text color */
  margin-bottom: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.activity-card:hover:not(.activity-disabled) .activity-icon {
  transform: scale(1.2) rotate(8deg);
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.25));
}

.gradient-blue { color: #2563eb; }
.gradient-purple { color: #8b5cf6; }
.gradient-green { color: #10b981; }
.gradient-red { color: #ef4444; }
.gradient-orange { color: #f97316; }
.gradient-pink { color: #ec4899; }

.activity-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: inherit;
  margin-bottom: 0.75rem;
}

.activity-description {
  font-size: 1rem;
  color: inherit;
  opacity: 0.8;
  line-height: 1.6;
  font-weight: 600;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.progress-section h3,
.improve-section h3,
.recommended-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.progress-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-label {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-star {
  width: 32px;
  height: 32px;
  color: #eab308;
}

.stat-value-large {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-note {
  font-size: 1rem;
  color: #64748b;
  font-weight: 600;
}

.badges-row {
  display: flex;
  gap: 1rem;
}

.badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 3px solid #fbbf24;
  color: #92400e;
  box-shadow: 0 6px 16px rgba(251, 191, 36, 0.3);
  transition: all 0.3s ease;
  font-size: 24px;
}

.badge:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
}

/* Improve Section */
.improve-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  padding: 1.5rem;
  border-radius: 16px;
  border: 3px solid #fb923c;
}

.improve-icon {
  width: 40px;
  height: 40px;
  color: #ea580c;
  flex-shrink: 0;
}

.improve-subject {
  font-size: 1.125rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.improve-note {
  font-size: 1rem;
  color: #475569;
  font-weight: 600;
}

/* Recommended Section */
.recommended-section {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 3px solid #fbbf24;
}

.recommended-label {
  font-size: 0.875rem;
  font-weight: 800;
  color: #92400e;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.recommended-section h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.recommended-section p {
  font-size: 1.05rem;
  color: #475569;
  margin-bottom: 1.75rem;
  line-height: 1.7;
  font-weight: 600;
}

.btn-start {
  width: 100%;
  padding: 16px 28px;
  background: linear-gradient(135deg, #ea580c, #dc2626);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 1.125rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.4);
}

.btn-start:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.5);
}

.btn-signout {
  width: 100%;
  margin-top: 1rem;
  padding: 14px 28px;
  background: white;
  color: #dc2626;
  border: 3px solid #fecaca;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-signout:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.15);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 1rem;
  }

  .logo-text {
    font-size: 1.125rem;
  }

  .logo-circle {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .stars-box {
    padding: 8px 12px;
  }

  .stars-count {
    font-size: 13px;
  }

  .star-icon {
    width: 16px;
    height: 16px;
  }

  .avatar-circle {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }

  .logo-text {
    display: none;
  }

  .logo-circle {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .dashboard-main {
    padding: 2rem 1rem;
  }

  .welcome-header h1 {
    font-size: 2.25rem;
  }

  .welcome-subtitle {
    font-size: 1.25rem;
  }

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

  .continue-cards-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2rem;
  }

  .stars-box {
    padding: 6px 10px;
  }

  .stars-count {
    font-size: 13px;
  }

  .star-icon {
    width: 16px;
    height: 16px;
  }

  .avatar-circle {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .avatar-link {
    padding: 3px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 0.5rem;
    gap: 0.4rem;
  }

  .logo-circle {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .stars-box {
    padding: 6px 8px;
    gap: 0.25rem;
  }

  .stars-count {
    font-size: 12px;
  }

  .star-icon {
    width: 14px;
    height: 14px;
  }

  .avatar-circle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .avatar-link {
    padding: 3px;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .welcome-header h1 {
    font-size: 2rem;
  }
}

/* New 3D glossy buttons for ChildDashboard */
.btn-start {
  background: linear-gradient(135deg, #00e5ff 0%, #00b0ff 100%);
  color: white;
  border: none;
  padding: 18px 36px;
  border-radius: 9999px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 
    0 8px 0 #0081cb, 
    0 15px 20px rgba(0, 176, 255, 0.4),
    inset 0 2px 0 rgba(255,255,255,0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: block;
  text-align: center;
  width: 100%;
  margin-bottom: 12px;
}

.btn-start:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 0 #0081cb, 
    0 20px 30px rgba(0, 176, 255, 0.5),
    inset 0 2px 0 rgba(255,255,255,0.6);
}

.btn-start:active {
  transform: translateY(6px);
  box-shadow: 
    0 2px 0 #0081cb, 
    0 5px 10px rgba(0, 176, 255, 0.4),
    inset 0 2px 0 rgba(255,255,255,0.2);
}

.btn-signout {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #ef4444; /* High contrast red for sign out */
  border: none;
  padding: 16px 32px;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 
    0 8px 0 #cbd5e1, 
    0 15px 20px rgba(0, 0, 0, 0.1),
    inset 0 2px 0 rgba(255,255,255,1);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: block;
  text-align: center;
  width: 100%;
}

.btn-signout:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 0 #cbd5e1, 
    0 20px 30px rgba(0, 0, 0, 0.15),
    inset 0 2px 0 rgba(255,255,255,1);
}

.btn-signout:active {
  transform: translateY(6px);
  box-shadow: 
    0 2px 0 #cbd5e1, 
    0 5px 10px rgba(0, 0, 0, 0.1),
    inset 0 2px 0 rgba(255,255,255,1);
}

@keyframes floating {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes wiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

.floating-robot-mascot:hover .mascot-tooltip {
  opacity: 1 !important;
}
.floating-robot-mascot:active {
  transform: scale(0.9) !important;
}


/* static/css/styles/ChoicePage.css */
/* ======================= GLOBAL WRAPPER ======================= */
.choice-page-wrapper {
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(135deg,
      #dbeafe,
      #e0e7ff,
      #ddd6fe);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  font-family: var(--body-font);
}

/* ======================= NAVBAR ======================= */
.choice-page-wrapper .choice-navbar {
  width: 100%;
  padding: 14px 28px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.choice-page-wrapper .nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.choice-page-wrapper .choice-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
}

.choice-page-wrapper .logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.choice-page-wrapper .nav-title {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ======================= MAIN CONTENT ======================= */
.choice-page-wrapper .choice-content-container {
  margin-top: 60px;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}

.choice-page-wrapper .choice-main-title {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.choice-page-wrapper .choice-subtitle {
  margin-top: 8px;
  font-size: 18px;
  color: #6b7280;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ======================= CARDS ROW ======================= */
.choice-page-wrapper .choice-cards-row {
  margin-top: 50px;
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ======================= CARD ======================= */
.choice-page-wrapper .choice-card {
  width: 380px;
  background: rgba(255, 255, 255, 0.9);
  padding: 40px 32px;
  border-radius: 26px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow:
    0 20px 50px rgba(59, 130, 246, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.choice-page-wrapper .choice-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 30px 70px rgba(37, 99, 235, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  border-color: rgba(59, 130, 246, 0.4);
}

/* ======================= ICONS ======================= */
.choice-page-wrapper .choice-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
}

.choice-page-wrapper .choice-card:hover .choice-icon {
  transform: scale(1.15) rotate(3deg);
}

.choice-page-wrapper .choice-icon::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 24px;
  background: inherit;
  filter: blur(20px);
  opacity: 0.7;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.choice-page-wrapper .choice-card:hover .choice-icon::before {
  opacity: 0.9;
  filter: blur(25px);
}

.choice-page-wrapper .blue-icon {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.choice-page-wrapper .blue-gradient-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* ======================= CARD CONTENT ======================= */
.choice-page-wrapper .choice-card-title {
  font-size: 24px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 12px;
}

.choice-page-wrapper .choice-card-description {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 26px;
}

/* ======================= BUTTONS ======================= */
.choice-page-wrapper .choice-btn {
  width: 100%;
  padding: 16px 24px;
  border-radius: 16px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.choice-page-wrapper .choice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.45);
}

.choice-page-wrapper .choice-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.choice-page-wrapper .choice-btn-secondary {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

/* ======================= FOOTER NOTE ======================= */
.choice-page-wrapper .choice-footer-note {
  margin-top: 50px;
  margin-bottom: 40px;
  padding: 18px 26px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  font-size: 14px;
  color: #6b7280;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

/* ======================= RESPONSIVE ======================= */
@media (max-width: 768px) {
  .choice-page-wrapper .choice-cards-row {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .choice-page-wrapper .choice-card {
    width: 100%;
    max-width: 400px;
  }

  .choice-page-wrapper .choice-main-title {
    font-size: 32px;
  }

  .choice-page-wrapper .choice-navbar {
    justify-content: center;
  }
}

/* static/css/styles/Handwriting.css */
/* Handwriting.css — scoped under .hw-page to prevent dashboard conflicts */

.hw-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  font-family: var(--body-font);
  color: #111827;
}

/* Header */
.hw-page .hw-header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(226, 214, 255, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 30;
}

.hw-page .hw-header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .hw-page .hw-header-content {
    padding: 0 3rem;
    gap: 20px;
  }
}

.hw-page .hw-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.hw-page .hw-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.hw-page .hw-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  color: #4b5563;
  transition: background .15s ease;
  text-decoration: none;
}

.hw-page .hw-back-link:hover {
  background: rgba(236, 72, 153, 0.04);
}

.hw-page .hw-back-icon {
  width: 18px;
  height: 18px;
  color: #374151;
}

.hw-page .hw-header-info {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.hw-page .hw-header-sub {
  font-size: 13px;
  color: #6b7280;
}

.hw-page .hw-header-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.hw-page .hw-exercise-meta {
  margin-left: auto;
  font-size: 13px;
  color: #6b7280;
}

/* Main container */
.hw-page .hw-main {
  padding: 28px 0;
}

.hw-page .hw-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Card base */
.hw-page .card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
  padding: 20px;
  border: 1px solid rgba(233, 213, 255, 0.85);
  margin-bottom: 24px;
}

/* Titles */
.hw-page .card-title {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #111827;
}

.hw-page .card-subtitle {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #111827;
}

/* Instructions / Sample */
.hw-page .task-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hw-page .card-sample {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(90deg, #eef6ff 0%, #f3eefc 100%);
  border: 2px solid rgba(191, 219, 255, 0.6);
}

.hw-page .sample-label {
  color: #374151;
  margin-bottom: 8px;
}

.hw-page .sample-text {
  font-size: 28px;
  text-align: center;
  padding: 18px 0;
  font-family: "Times New Roman", Georgia, serif;
  color: #111827;
}

/* Steps */
.hw-page .task-steps {
  background: #fbf8ff;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(233, 213, 255, 0.7);
  color: #374151;
}

.hw-page .task-steps ol {
  margin: 0;
  padding-left: 18px;
}

.hw-page .task-steps li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
}

/* Upload area */
.hw-page .upload-placeholder {
  border-radius: 20px;
  border: 2px dashed rgba(139, 92, 246, 0.18);
  padding: 48px 18px;
  text-align: center;
  transition: background .15s ease, border-color .15s ease, transform .08s;
  cursor: pointer;
}

.hw-page .upload-placeholder:hover {
  background: rgba(236, 72, 153, 0.03);
  border-color: rgba(139, 92, 246, 0.28);
}

.hw-page .upload-camera {
  width: 80px;
  height: 80px;
  color: #8b5cf6;
  margin-bottom: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hw-page .upload-cta {
  margin-bottom: 12px;
}

.hw-page .primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  background: linear-gradient(90deg, #7c3aed 0%, #ec4899 100%);
  color: #fff;
  font-weight: 600;
  border: none;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.12);
  cursor: pointer;
}

.hw-page .primary-btn:hover {
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.16);
  transform: translateY(-2px);
}

.hw-page .upload-icon {
  width: 18px;
  height: 18px;
}

.hw-page .upload-note {
  color: #6b7280;
  font-size: 13px;
  margin-top: 8px;
}

/* Preview */
.hw-page .upload-preview {
  margin-top: 6px;
  margin-bottom: 12px;
}

.hw-page .preview-inner {
  background: linear-gradient(180deg, #f3f4f6 0%, #e9ecef 100%);
  border-radius: 16px;
  padding: 18px;
  border: 2px solid rgba(219, 234, 254, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hw-page .preview-inner .preview-text {
  color: #6b7280;
  text-align: center;
  padding: 28px;
}

.hw-page .preview-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 12px;
  object-fit: contain;
}

/* Upload actions */
.hw-page .upload-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.hw-page .secondary-btn {
  padding: 10px 18px;
  border-radius: 12px;
  background: transparent;
  border: 2px solid rgba(139, 92, 246, 0.15);
  color: #7c3aed;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease;
}

.hw-page .secondary-btn:hover {
  background: rgba(139, 92, 246, 0.04);
}

.hw-page .secondary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hw-page .primary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Processing spinner + text */
.hw-page .processing {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7c3aed;
  font-size: 14px;
}

.hw-page .spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(147, 51, 234, 0.25);
  border-top-color: #7c3aed;
  animation: spin 1s linear infinite;
}

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

/* Feedback card specific */
.hw-page .hw-feedback {
  padding: 22px;
}

.hw-page .result-overall {
  display: flex;
  gap: 16px;
  background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 100%);
  padding: 16px;
  border-radius: 14px;
  border: 2px solid rgba(16, 185, 129, 0.18);
  margin-bottom: 14px;
}

.hw-page .result-icon {
  width: 40px;
  height: 40px;
  color: #059669;
  flex-shrink: 0;
}

.hw-page .result-body {
  flex: 1;
}

.hw-page .result-title {
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 600;
}

.hw-page .result-desc {
  color: #374151;
  font-size: 14px;
  margin-bottom: 12px;
}

.hw-page .result-stats {
  display: flex;
  gap: 28px;
  align-items: center;
}

.hw-page .stat {
  text-align: left;
}

.hw-page .stat-label {
  font-size: 13px;
  color: #6b7280;
}

.hw-page .stat-value {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(90deg, #059669 0%, #047857 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hw-page .stat-value.plus {
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
}

/* Detailed feedback */
.hw-page .detailed-feedback {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 6px;
}

.hw-page .feedback-block {}

.hw-page .feedback-title {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #111827;
}

.hw-page .feedback-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hw-page .feedback-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #374151;
}

.hw-page .feedback-check {
  color: #059669;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hw-page .feedback-alert {
  color: #d97706;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hw-page .bordered {
  border-top: 2px solid rgba(233, 213, 255, 0.7);
  padding-top: 16px;
}

/* Feedback actions */
.hw-page .feedback-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 2px solid rgba(233, 213, 255, 0.75);
}

.hw-page .feedback-actions .primary-btn.full,
.hw-page .feedback-actions .secondary-btn.full {
  flex: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 18px;
  border-radius: 12px;
}

.hw-page .secondary-btn.full {
  border: 2px solid rgba(139, 92, 246, 0.12);
  background: transparent;
  color: #7c3aed;
}

.hw-page .primary-btn.full {
  background: linear-gradient(90deg, #7c3aed 0%, #ec4899 100%);
  color: white;
  border: none;
}

/* Dashboard Styles */
.hw-page .hw-stats-section {
  margin-bottom: 24px;
}

.hw-page .hw-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.hw-page .hw-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.hw-page .hw-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.hw-page .hw-stat-content {
  flex: 1;
}

.hw-page .hw-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  margin-bottom: 4px;
}

.hw-page .hw-stat-label {
  font-size: 13px;
  color: #6b7280;
}

.hw-page .hw-level-card {
  margin-bottom: 24px;
}

.hw-page .hw-sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.hw-page .hw-session-card {
  padding: 16px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #fff;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hw-page .hw-session-card:hover {
  border-color: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.hw-page .hw-session-card.hw-session-completed {
  border-color: #22c55e;
  background: #f0fdf4;
}

.hw-page .hw-session-number {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
}

.hw-page .hw-session-text {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  font-family: "Times New Roman", Georgia, serif;
}

.hw-page .hw-session-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #22c55e;
  font-weight: 600;
  font-size: 14px;
}

.hw-page .hw-session-start {
  color: #7c3aed;
  font-weight: 600;
  font-size: 14px;
}

.hw-page .hw-next-session-card {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  margin-bottom: 24px;
}

.hw-page .hw-next-session-card .card-title {
  color: white;
}

.hw-page .hw-next-session-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hw-page .hw-next-session-text {
  flex: 1;
}

.hw-page .hw-next-label {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.hw-page .hw-next-text {
  font-size: 32px;
  font-weight: 700;
  font-family: "Times New Roman", Georgia, serif;
}

.hw-page .hw-levels-overview {
  margin-bottom: 24px;
}

.hw-page .hw-levels-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.hw-page .hw-level-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #fff;
  transition: all 0.2s ease;
}

.hw-page .hw-level-item.hw-level-current {
  border-color: #7c3aed;
  background: #f5f3ff;
}

.hw-page .hw-level-item.hw-level-complete {
  border-color: #22c55e;
  background: #f0fdf4;
}

.hw-page .hw-level-info {
  flex: 1;
}

.hw-page .hw-level-name {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.hw-page .hw-level-desc {
  font-size: 14px;
  color: #6b7280;
}

.hw-page .hw-level-status {
  flex-shrink: 0;
}

.hw-page .hw-level-badge {
  padding: 4px 12px;
  border-radius: 12px;
  background: #7c3aed;
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.hw-page .hw-header-content {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hw-page .hw-star-icon {
  width: 16px;
  height: 16px;
  color: #f59e0b;
  margin-right: 4px;
  vertical-align: middle;
}

/* Tabs */
.hw-page .hw-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
  border-bottom: 2px solid rgba(233, 213, 255, 0.5);
  padding-bottom: 12px;
}

.hw-page .hw-tab-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  background: transparent;
  border: 2px solid transparent;
  color: #6b7280;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
  max-width: 200px;
}

.hw-page .hw-tab-button:hover {
  background: rgba(139, 92, 246, 0.06);
  color: #7c3aed;
}

.hw-page .hw-tab-button.hw-tab-active {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  border-color: rgba(124, 58, 237, 0.3);
  color: #7c3aed;
}

.hw-page .hw-tab-icon {
  width: 18px;
  height: 18px;
}

.hw-page .hw-tab-content {
  text-align: center;
}

/* Drawing Board */
.hw-page .hw-drawing-board {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.hw-page .hw-drawing-tools {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 600px;
  padding: 16px;
  background: linear-gradient(90deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 16px;
  border: 2px solid rgba(233, 213, 255, 0.5);
}

.hw-page .hw-tool-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.hw-page .hw-tool-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.hw-page .hw-color-picker {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hw-page .hw-color-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hw-page .hw-color-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hw-page .hw-color-btn.hw-color-active {
  border-color: #7c3aed;
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.hw-page .hw-pen-size {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hw-page .hw-size-btn {
  padding: 10px 20px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid rgba(139, 92, 246, 0.2);
  color: #7c3aed;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.hw-page .hw-size-btn:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.4);
}

.hw-page .hw-size-btn.hw-size-active {
  background: linear-gradient(90deg, #7c3aed 0%, #ec4899 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.hw-page .hw-canvas-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 16px;
  border: 2px solid rgba(233, 213, 255, 0.6);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hw-page .hw-canvas {
  border-radius: 12px;
  cursor: crosshair;
  touch-action: none;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  height: auto;
  display: block;
}

.hw-page .hw-canvas-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

/* Tips card */
.hw-page .hw-tips {
  background: linear-gradient(90deg, #fffbeb 0%, #fff7ed 100%);
  border: 1px solid rgba(254, 231, 168, 0.9);
  padding: 18px;
  border-radius: 16px;
}

.hw-page .tips-label {
  color: #b45309;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  font-size: 13px;
}

.hw-page .tips-list {
  margin: 0;
  padding-left: 18px;
  color: #374151;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Animations */
.hw-page .animate-fade {
  animation: fade-in 0.45s ease-out forwards;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .hw-page .hw-header-inner {
    padding: 0 12px;
    gap: 10px;
    height: 56px;
  }

  .hw-page .hw-container {
    padding: 0 12px;
  }

  .hw-page .sample-text {
    font-size: 20px;
  }

  .hw-page .upload-placeholder {
    padding: 28px 12px;
  }

  .hw-page .activity-grid {
    grid-template-columns: 1fr;
  }

  .hw-page .card {
    padding: 16px;
    border-radius: 16px;
  }

  /* Tabs responsive */
  .hw-page .hw-tabs {
    gap: 6px;
  }

  .hw-page .hw-tab-button {
    padding: 10px 16px;
    font-size: 14px;
    max-width: none;
  }

  .hw-page .hw-tab-icon {
    width: 16px;
    height: 16px;
  }

  /* Drawing board responsive */
  .hw-page .hw-canvas {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .hw-page .hw-canvas-container {
    padding: 12px;
    overflow-x: auto;
  }

  .hw-page .hw-drawing-tools {
    padding: 12px;
  }

  .hw-page .hw-color-btn {
    width: 36px;
    height: 36px;
  }

  .hw-page .hw-size-btn {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 70px;
  }

  .hw-page .upload-actions {
    flex-direction: column;
  }

  .hw-page .hw-canvas-actions {
    flex-direction: column;
  }

  .hw-page .hw-canvas-actions .primary-btn,
  .hw-page .hw-canvas-actions .secondary-btn {
    width: 100%;
  }
}

/* static/css/styles/LandingPage.css */
@import './theme.css';

/* LandingPage.css - Bright Blue & Colorful Child-Friendly Edition - Fully Responsive */

/* ============================================================
   PAGE BASE
   ============================================================ */
.landing-page {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --highlight-color: #fbbf24;
  --pop-yellow: #fde047;
  --pop-green: #4ade80;
  --pop-purple: #c084fc;
  --pop-pink: #f472b6;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 25%, #eef2ff 50%, #f5f3ff 75%, #fdf2f8 100%);
  min-height: 100vh;
  font-family: var(--body-font, 'Nunito'), sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* Kid-friendly pattern overlay */
.landing-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(#6366f1 0.5px, transparent 0.5px);
  background-size: 30px 30px;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.landing-page::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 15s ease-in-out infinite;
}

.landing-page::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 20s ease-in-out infinite reverse;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(30px, -30px); }
}
@keyframes bounce-gentle {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50%       { opacity: 0.7; transform: scale(1.1) rotate(180deg); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
@keyframes squish {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.96); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.2); }
  50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.6); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes fadeInFast {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.animate-fade-in { animation: fade-in 0.6s ease-out forwards; }

/* ============================================================
   GLOBAL RESETS
   ============================================================ */
* { box-sizing: border-box; }
.landing-page, .section, .hero-section { max-width: 100vw; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center  { text-align: center !important; }
.text-green   { color: #10b981 !important; }
.text-blue    { color: #3b82f6 !important; }
.text-red     { color: #ef4444 !important; }
.text-orange  { color: #f97316 !important; }
.text-gray    { color: #94a3b8 !important; }
.color-light  { color: #94a3b8; }
.color-white  { color: white !important; }
.mt-3         { margin-top: 3rem; }
.mb-2         { margin-bottom: 2rem; }

/* ============================================================
   SECTION WRAPPER (JAGGED & WAVY TRANSITIONS)
   ============================================================ */
.section {
  padding: 6rem 1rem 4rem;
  position: relative;
  border-radius: 40px;
  margin-top: -30px;
  z-index: 1;
}
@media (min-width: 768px)  { .section { padding: 7rem 1.5rem 5rem; border-radius: 60px; margin-top: -40px; } }
@media (min-width: 1024px) { .section { padding: 8rem 2rem 6rem; border-radius: 80px; margin-top: -50px; } }

.section::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,160L48,176C96,192,192,224,288,224C384,224,480,192,576,165.3C672,139,768,117,864,128C960,139,1056,181,1152,197.3C1248,213,1344,203,1392,197.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  z-index: 0;
}

.section:nth-child(even) {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  z-index: 2;
}
.section:nth-child(odd) {
  background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
  z-index: 3;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  padding: 0 1rem;
}
@media (min-width: 768px) { .section-container { padding: 0 1.5rem; } }

.section-header {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px)  { .section-header { margin-bottom: 3rem; } }
@media (min-width: 1024px) { .section-header { margin-bottom: 3.5rem; } }

.section-header .hero-subtitle-top {
  display: block;
  text-align: center;
  margin-bottom: 0.75rem;
  color: #ff5722;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.section-header h2 {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 50%, #ff007f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  display: block;
  text-align: center;
  width: 100%;
}

.section-header p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #475569;
  font-weight: 600;
  display: block;
  text-align: center;
  width: 100%;
  margin: 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  overflow: visible;
  padding: 8rem 1rem 12rem;
  background: linear-gradient(135deg, #e0f2fe 0%, #eef2ff 100%);
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  z-index: 10;
}
@media (min-width: 768px)  { .hero-section { padding: 6rem 1.5rem 10rem; border-bottom-left-radius: 100px; border-bottom-right-radius: 100px; } }
@media (min-width: 1024px) { .hero-section { padding: 8rem 2rem 12rem; } }

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  padding: 0 1rem;
}
@media (min-width: 768px) { .hero-container { padding: 0 1.5rem; } }

.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-subtitle-top {
  color: #ff007f;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-align: center;
  display: block;
  width: 100%;
}

.hero-section h1 {
  font-family: var(--heading-font) !important;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ff007f 0%, #8b5cf6 50%, #00e5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-align: center;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.text-highlight { color: #ff5722; font-weight: 900; }

.hero-description {
  color: #334155;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.hero-actions-centered {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-trust-badges {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 900;
  border: 3px solid var(--highlight-color);
  color: #1e293b;
  box-shadow: 0 6px 15px rgba(251, 191, 36, 0.4);
  transition: all 0.3s ease;
}
.trust-badge:hover {
  transform: scale(1.1) rotate(2deg);
  background: var(--pop-yellow);
}
.trust-badge svg {
  width: 24px;
  height: 24px;
}

.hero-image-large-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15), 0 -10px 40px rgba(255,255,255,0.8);
}

/* ============================================================
   BUTTONS (Rounded, 3D/Glossy)
   ============================================================ */
.btn-join-primary {
  background: linear-gradient(135deg, var(--pop-yellow) 0%, #f59e0b 100%);
  color: #1e293b;
  padding: 1.2rem 2.8rem;
  border-radius: 30px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 
    0 10px 0 #d97706, 
    0 20px 30px rgba(245, 158, 11, 0.4),
    inset 0 4px 0 rgba(255,255,255,0.6);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  font-size: 1.25rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  top: 0;
}
.btn-join-primary:hover { 
  transform: translateY(-6px) scale(1.05); 
  box-shadow: 
    0 16px 0 #d97706, 
    0 25px 40px rgba(245, 158, 11, 0.5),
    inset 0 4px 0 rgba(255,255,255,0.8);
  animation: glow 1.5s infinite;
}
.btn-join-primary:active {
  transform: translateY(8px) scale(0.95);
  box-shadow: 
    0 2px 0 #d97706, 
    0 5px 10px rgba(245, 158, 11, 0.4),
    inset 0 2px 0 rgba(255,255,255,0.2);
}

.btn-signin-secondary {
  background: linear-gradient(135deg, var(--pop-purple) 0%, #9333ea 100%);
  color: white;
  padding: 1.2rem 2.8rem;
  border-radius: 30px;
  font-weight: 900;
  text-decoration: none;
  border: none;
  box-shadow: 
    0 10px 0 #7e22ce, 
    0 20px 30px rgba(147, 51, 234, 0.3),
    inset 0 4px 0 rgba(255,255,255,0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 1.25rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}
.btn-signin-secondary:hover { 
  transform: translateY(-6px) scale(1.05); 
  box-shadow: 
    0 16px 0 #7e22ce, 
    0 25px 40px rgba(147, 51, 234, 0.4),
    inset 0 4px 0 rgba(255,255,255,0.6);
}
.btn-signin-secondary:active {
  transform: translateY(8px) scale(0.95);
  box-shadow: 
    0 2px 0 #7e22ce, 
    0 5px 10px rgba(147, 51, 234, 0.3),
    inset 0 2px 0 rgba(255,255,255,0.2);
}

/* ============================================================
   ACTION PREVIEW SECTION
   ============================================================ */
.action-preview-section { 
  background: transparent; 
  padding: 6rem 0; 
  position: relative;
  z-index: 15;
}
.preview-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.preview-tab {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}
.preview-tab.active { background: #0ea5e9; color: white; border-color: #0ea5e9; }

.browser-mockup {
  background: #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.browser-header { background: #e2e8f0; padding: 10px; display: flex; }
.browser-dots   { display: flex; gap: 6px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #10b981; }
.browser-content {
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  line-height: 0;
}
.preview-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.fade-in-fast { animation: fadeInFast 0.3s ease-in; }

/* ============================================================
   COMPARISON SECTION
   ============================================================ */
.comparison-section { padding: 5rem 0; background: #fafafa; }

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 768px) { .comparison-grid { grid-template-columns: 1fr; } }

.comparison-column { display: flex; flex-direction: column; }

.comparison-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ============================================================
   COMPARISON CARD — FIXED: removed min-height, reduced padding
   ============================================================ */
.comparison-card {
  background: white;
  padding: 1rem 1.25rem;        /* was 1.5rem — reduced to cut top/bottom space */
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;                 /* was 1rem */
  align-items: flex-start;
  flex: 1 1 0;
  min-height: unset;            /* was 110px — that was forcing blank space below content */
}
.card-problem  { border-left: 4px solid #ef4444; box-shadow: 0 4px 6px rgba(239,68,68,0.05); }
.card-solution { border-left: 4px solid #10b981; box-shadow: 0 4px 6px rgba(16,185,129,0.05); background: #f0fdf4; }

.comparison-icon-wrap {
  flex-shrink: 0;
  margin-top: 0.1rem;           /* was 0.2rem */
}

.comparison-card h4 {
  margin: 0 0 0.375rem 0;       /* was 0.5rem */
  font-size: 1.05rem;
}

.comparison-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

/* Mobile: tighten further */
@media (max-width: 768px) {
  .comparison-card {
    padding: 0.875rem 1rem;
    gap: 0.625rem;
    min-height: unset;
  }
  .comparison-card h4 {
    font-size: 0.975rem;
    margin-bottom: 0.25rem;
  }
  .comparison-card p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .comparison-icon-wrap {
    margin-top: 0;
  }
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }

.feature-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  border: 2px solid rgba(59, 130, 246, 0.15);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(59, 130, 246, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
@media (min-width: 768px) { .feature-card { padding: 2.5rem 2rem; } }

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.18), 0 4px 12px rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}

.centered-card {
  align-items: center !important;
  text-align: center !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  justify-content: center !important;
}

.feature-card h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1rem 0;
  text-align: center;
  width: 100%;
}
.feature-card p {
  color: #64748b;
  line-height: 1.7;
  font-size: clamp(0.9375rem, 2vw, 1rem);
  font-weight: 500;
  margin: 0;
  text-align: center;
  width: 100%;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1.5rem;
  color: #fff;
  margin: 0 0 1.5rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  position: relative;
  flex-shrink: 0;
}
@media (min-width: 768px) { .feature-icon { width: 5rem; height: 5rem; } }

.centered-card .feature-icon { margin-left: auto !important; margin-right: auto !important; }

.feature-icon::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 1.5rem;
  background: inherit;
  filter: blur(15px);
  opacity: 0.6;
  z-index: -1;
}
.feature-card:hover .feature-icon { transform: scale(1.2) rotate(-5deg); }

.feature-icon.purple   { background: linear-gradient(135deg, #8b5cf6, #a78bfa); box-shadow: 0 10px 30px rgba(139,92,246,0.5); }
.feature-icon.green    { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 10px 30px rgba(16,185,129,0.5); }
.feature-icon.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); box-shadow: 0 10px 30px rgba(37,211,102,0.5); }
.feature-icon.pink     { background: linear-gradient(135deg, #ec4899, #f472b6); box-shadow: 0 10px 30px rgba(236,72,153,0.5); }
.feature-icon.yellow   { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 10px 30px rgba(245,158,11,0.5); }
.feature-icon.blue     { background: linear-gradient(135deg, #3b82f6, #60a5fa); box-shadow: 0 10px 30px rgba(59,130,246,0.5); }
.feature-icon.indigo   { background: linear-gradient(135deg, #6366f1, #818cf8); box-shadow: 0 10px 30px rgba(99,102,241,0.5); }
.feature-icon.red      { background: linear-gradient(135deg, #ef4444, #f87171); box-shadow: 0 10px 30px rgba(239,68,68,0.5); }

/* ============================================================
   NUMBERS SECTION
   ============================================================ */
.numbers-section { 
  background: #1e293b !important; 
  padding: 5rem 0; 
  color: white !important; 
  clip-path: none !important;
  margin: 0 !important;
  position: relative;
  z-index: 10;
}

.numbers-subtitle {
  color: #38bdf8 !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.numbers-heading {
  color: white !important;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.numbers-grid-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) { 
  .numbers-grid-top { 
    grid-template-columns: 1fr 1fr; 
    gap: 1rem;
  } 
}
@media (max-width: 480px) {
  .numbers-grid-top {
    grid-template-columns: 1fr;
  }
}

.number-card {
  background: #334155 !important;
  padding: 2rem 1rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
  transition: transform 0.3s ease;
}
@media (max-width: 768px) {
  .number-card {
    padding: 1.5rem 1rem;
  }
}
.number-card:hover { transform: translateY(-5px); }
.number-card h3 { font-size: 2.5rem; margin: 0 0 0.5rem 0; color: white !important; font-weight: 800; }
.number-card p  { margin: 0; color: #94a3b8 !important; font-size: 0.95rem; font-weight: 500; }
.large-number-card { 
  margin-bottom: 2.5rem; 
  background: #273549 !important; 
  border: 1px solid rgba(255,255,255,0.08) !important; 
  padding: 3rem 1.5rem; 
}
@media (max-width: 768px) {
  .large-number-card {
    padding: 2rem 1rem;
  }
  .large-number-card h3 {
    font-size: 2.5rem !important;
  }
}

.numbers-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.numbers-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: #cbd5e1 !important; font-weight: 500; }

.btn-join-cyan {
  background: linear-gradient(to right, #0ea5e9, #06b6d4) !important;
  border-radius: 9999px !important;
  color: white !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4) !important;
  padding: 1rem 2.5rem !important;
  display: inline-block;
  transition: all 0.3s ease !important;
}
.btn-join-cyan:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 15px 35px rgba(14, 165, 233, 0.5) !important;
}

/* ============================================================
   TESTIMONIALS GALLERY
   ============================================================ */
.testimonials-gallery {
  width: 100%;
  position: relative;
}

.testimonials-gallery-track {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  animation: slideIn 0.3s ease-out;
}
@media (min-width: 768px) {
  .testimonials-gallery-track {
    display: grid;
  }
}

.testimonials-gallery-track-mobile {
  display: block;
  animation: slideIn 0.3s ease-out;
}
@media (min-width: 768px) {
  .testimonials-gallery-track-mobile {
    display: none;
  }
}

.testimonial-slide {
  flex-shrink: 0;
}

.testimonials-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: white;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.gallery-nav-btn:hover {
  background: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
  transform: scale(1.05);
}

.gallery-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.gallery-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}
.gallery-dot.active {
  background: #0ea5e9;
  width: 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}
.gallery-dot:hover:not(.active) {
  background: #94a3b8;
  transform: scale(1.2);
}

.testimonial-card {
  align-items: center !important;
  text-align: center !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  height: 100%;
}
.testimonial-card .stars-row { justify-content: center; margin-bottom: 1rem; margin-top: 0; }
.testimonial-quote  { font-style: italic; margin-bottom: 1.5rem !important; text-align: center !important; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.testimonial-author-info { text-align: left; }
.testimonial-author-name { font-weight: 600; color: #1e293b; font-size: 0.9375rem; }
.testimonial-author-role { font-size: 0.875rem; color: #64748b; }

.stars-row { display: flex; gap: 0.375rem; margin-top: 1.5rem; }
.star-icon {
  width: clamp(1.25rem, 3vw, 1.75rem);
  height: clamp(1.25rem, 3vw, 1.75rem);
  color: #facc15;
  fill: #facc15;
  filter: drop-shadow(0 2px 6px rgba(250, 204, 21, 0.4));
  animation: sparkle 3s ease-in-out infinite;
}
.star-icon:nth-child(2) { animation-delay: 0.2s; }
.star-icon:nth-child(3) { animation-delay: 0.4s; }
.star-icon:nth-child(4) { animation-delay: 0.6s; }
.star-icon:nth-child(5) { animation-delay: 0.8s; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  white-space: nowrap;
  border: 2px solid rgba(59, 130, 246, 0.15);
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
}

.hero-badge.avatar-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
  font-weight: 700;
  padding: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  border: 3px solid #fff;
  flex-shrink: 0;
}
@media (min-width: 768px) { .hero-badge.avatar-badge { width: 3.5rem; height: 3.5rem; } }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    align-items: stretch;
  }
}

.pricing-card {
  border-radius: 2rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border: 3px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}
@media (min-width: 768px) { .pricing-card { padding: 3rem 2.5rem; } }

.pricing-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25);
}

.pricing-card.free {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
  border: 3px solid rgba(59, 130, 246, 0.2);
  color: #000;
  backdrop-filter: blur(10px);
}
.pricing-card.premium {
  background: linear-gradient(135deg, #2563eb, #3b82f6, #1d4ed8);
  background-size: 200% 200%;
  color: #fff;
  animation: gradientShift 6s ease infinite;
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.35), 0 5px 15px rgba(59, 130, 246, 0.2);
}

.popular-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #facc15, #fbbf24);
  color: #1e40af;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: clamp(0.75rem, 2vw, 0.8125rem);
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: bounce-gentle 2s ease-in-out infinite;
}
@media (min-width: 768px) { .popular-badge { top: 1.5rem; right: 1.5rem; } }

.pricing-card h3 {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.pricing-card.premium h3 { color: white !important; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }

.pricing-card .price {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}
.pricing-card .price span {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  opacity: 0.85;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0 2.5rem;
  text-align: left;
  flex-grow: 1;
}
.pricing-card ul li {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: clamp(0.9375rem, 2vw, 1rem);
  font-weight: 500;
}

.pricing-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-top: 0;
  padding: 1.125rem 2rem;
  border-radius: 9999px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.pricing-card.free .pricing-cta-btn {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.pricing-card.free .pricing-cta-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}

.pricing-card.premium .pricing-cta-btn {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.pricing-card.premium .pricing-cta-btn:hover {
  background: #dbeafe;
  color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  --footer-bg: linear-gradient(135deg, #0c1844, #1e3a8a, #1e40af);
  --footer-text: #fff;
  --footer-link: #dbeafe;
  --footer-border: rgba(255,255,255,0.2);
  
  background: var(--footer-bg);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  color: var(--footer-text);
  padding: 3rem 1rem 2rem;
  box-shadow: 0 -10px 40px rgba(37, 99, 235, 0.2);
}
@media (min-width: 768px) { .footer { padding: 4rem 1.5rem 2.5rem; } }

.footer-container { max-width: 1280px; margin: 0 auto; }

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }

.footer h4     { font-size: clamp(1rem, 2.5vw, 1.125rem); font-weight: 800; margin-bottom: 1.25rem; color: var(--footer-text); }
.footer ul     { list-style: none; padding: 0; margin: 0; }
.footer ul li  { margin-bottom: 0.75rem; }
.footer a {
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  font-size: clamp(0.9375rem, 2vw, 1rem);
  font-weight: 500;
  display: inline-block;
}
.footer a:hover { color: var(--footer-text); transform: translateX(4px); }

.footer-bottom {
  text-align: center;
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
  color: var(--footer-link);
  padding-top: 2.5rem;
  border-top: 2px solid var(--footer-border);
  font-weight: 600;
}

.footer .logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 800;
}

.footer-logo-img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
@media (min-width: 640px)  { .footer-logo-img { height: 3rem; } }
@media (min-width: 1024px) { .footer-logo-img { height: 3.5rem; } }

/* ============================================================
   NAVBAR LANDING LINKS
   ============================================================ */
.navbar-landing-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) { .navbar-landing-links { display: flex; } }

.navbar-landing-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #7c3aed;
  text-decoration: none;
  border-radius: 9999px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.navbar-landing-links a:hover { background: rgba(124,58,237,0.08); color: #5b21b6; }

.navbar-mobile-landing-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0.5rem;
}
.navbar-mobile-landing-links a {
  padding: 0.625rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #7c3aed;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.navbar-mobile-landing-links a:hover { background: rgba(124,58,237,0.08); }

/* ============================================================
   SMALL SCREEN OVERRIDES
   ============================================================ */
@media (max-width: 360px) {
  .hero-badge   { padding: 0.5rem 1rem; font-size: 0.8125rem; }
  .feature-card { padding: 1.5rem 1.25rem; }
  .pricing-card { padding: 2rem 1.5rem; }
}

@media (hover: none) and (pointer: coarse) {
  .feature-card:hover,
  .pricing-card:hover { transform: none; }
  .feature-card:active,
  .pricing-card:active { transform: translateY(-4px) scale(1.01); }
}

/* static/css/styles/LoginPage.css */
@import './theme.css';

/* LandingPage.css - Bright Blue & Colorful Child-Friendly Edition */

/* ============================= LOGIN PAGE ============================= */

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 25%, #e0e7ff 50%, #ddd6fe 75%, #e0e7ff 100%);
  padding: 2rem;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Animated background elements for login */
.login-wrapper::before {
  content: '';
  position: absolute;
  top: -25%;
  right: -15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 18s ease-in-out infinite;
  pointer-events: none;
}

.login-wrapper::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 22s ease-in-out infinite reverse;
  pointer-events: none;
}

.login-wrapper .card {
  width: 100%;
  max-width: 500px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 70px rgba(37, 99, 235, 0.2),
    0 10px 20px rgba(59, 130, 246, 0.1);
  border: 3px solid rgba(59, 130, 246, 0.2);
  position: relative;
  z-index: 1;
  animation: slideIn 0.6s ease-out;
}

.login-wrapper .card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
  border-radius: 28px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(15px);
}

.login-wrapper .auth-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.login-wrapper .auth-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.login-wrapper .auth-logo-link:hover {
  transform: scale(1.05);
}

.login-wrapper .auth-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.login-wrapper .form-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  text-align: center;
}

.login-wrapper .form-header svg {
  color: #3b82f6;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.05));
  align-self: flex-start;
  margin-bottom: 1rem;
}

.login-wrapper .form-header svg:hover {
  transform: translateX(-6px) scale(1.05);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.1));
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.login-wrapper .form-header h2 {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  text-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.login-wrapper .welcome-message {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 500;
}

.login-wrapper label {
  display: block;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.625rem;
  color: #1e293b;
  font-size: 1rem;
}

.login-wrapper input {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 2px solid #bfdbfe;
  outline: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.05);
}

.login-wrapper input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.15),
    0 4px 12px rgba(59, 130, 246, 0.2);
  background: #ffffff;
  transform: translateY(-2px) scale(1.01);
}

.login-wrapper input:hover:not(:focus) {
  border-color: #60a5fa;
  box-shadow: 0 3px 8px rgba(59, 130, 246, 0.1);
}

.login-wrapper input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.login-wrapper .btn-primary {
  display: inline-block;
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
  background-size: 200% 200%;
  color: #fff;
  padding: 1.125rem 1.5rem;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  margin-top: 2rem;
  font-size: 1.125rem;
  font-weight: 800;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35),
    0 4px 12px rgba(59, 130, 246, 0.2);
  animation: gradientShift 4s ease infinite;
}

.login-wrapper .btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.45),
    0 6px 15px rgba(59, 130, 246, 0.3);
}

.login-wrapper .btn-primary:active {
  transform: translateY(-2px) scale(1.01);
}

.login-wrapper .error-message {
  color: #dc2626;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.08));
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  border: 2px solid rgba(239, 68, 68, 0.25);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
  animation: shake 0.5s ease-in-out;
}

.login-wrapper .info-message {
  color: #059669;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.12), rgba(5, 150, 105, 0.08));
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  border: 2px solid rgba(5, 150, 105, 0.25);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.login-wrapper form p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  line-height: 1.6;
  margin-top: 1rem;
  font-weight: 500;
}

/* ======================= RESPONSIVE ======================= */
@media (max-width: 768px) {
  .login-wrapper {
    padding: 1.5rem;
  }

  .login-wrapper .card {
    padding: 2.5rem 2rem;
  }

  .login-wrapper .form-header h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .login-wrapper {
    padding: 1rem;
  }

  .login-wrapper .card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .login-wrapper .form-header {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .login-wrapper .form-header h2 {
    font-size: 1.5rem;
  }

  .login-wrapper input {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .login-wrapper .btn-primary {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 14px;
  }
}

/* static/css/styles/Navbar.css */
/*=========================== Top Header ==========================================================*/
.top-header-bar {
  background-color: #1e293b;
  color: #f1f5f9;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contact-left {
  display: flex;
  gap: 1.5rem;
}

.top-contact-left a {
  color: #cbd5e1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.top-contact-left a:hover {
  color: #fff;
}

.top-contact-right .whatsapp-link {
  color: #10b981;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.top-contact-right .whatsapp-link:hover {
  color: #34d399;
}

/* Hide top bar on mobile — keeps navbar clean */
@media (max-width: 768px) {
  .top-header-bar {
    display: none !important;
  }
}

/*=========================== Main Navbar Structure ==========================================================*/
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.dashboard-navbar {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.main-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

/*=========================== Logo ==========================================================*/
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  /* Slightly narrower so center links have more breathing room */
  width: 200px;
  flex-shrink: 0;
}

.navbar-logo-img {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
  transition: transform 0.2s ease;
}

.logo-icon:hover {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: bold;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/*=========================== Links ==========================================================*/
.nav-links {
  display: flex;
  align-items: center;
}

.center-links {
  /* Allow the center block to shrink/grow and use a smaller gap
     so all 8 items (Home, Subjects, Resources, How It Works,
     Features, Pricing, FAQ's, Contact Us) fit comfortably */
  flex: 1;
  justify-content: center;
  gap: 0.1rem;          /* tight gap — individual items have their own padding */
  flex-wrap: nowrap;
  overflow: visible;
}

.right-actions {
  gap: 1rem;
  /* Mirror the logo width so the center block stays truly centred */
  width: 200px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.nav-link-item {
  text-decoration: none;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.875rem;   /* slightly smaller so all items fit on one line */
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.55rem;   /* horizontal padding gives click area & spacing */
  border-radius: 0.375rem;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link-item:hover {
  color: #0ea5e9;
  background: rgba(14, 165, 233, 0.06);
}

.active-link {
  color: #0ea5e9;
}

.dropdown-container {
  display: flex;
  align-items: center;
}

/*=========================== Get Started Button ==========================================================*/
.btn-get-started {
  background: #0ea5e9;
  color: white;
  padding: 0.6rem 1.6rem;
  border-radius: 9999px;
  text-decoration: none;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

.btn-get-started:hover {
  background: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(14, 165, 233, 0.4);
}

.nav-button-secondary {
  background: white;
  color: #7c3aed;
  border: 2px solid #ddd6fe;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.0625rem;
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-button-secondary:hover {
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.15);
  border-color: #c084fc;
}

/*=========================== User/Stars =====================================================*/
.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fef3c7;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.user-info svg {
  width: 1rem;
  height: 1rem;
  fill: #facc15;
  stroke: #f59e0b;
}

/*=========================== Mobile Menu =====================================================*/
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border-top: 2px solid #e0e7ff;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.mobile-menu .nav-link-item {
  font-size: 1rem;
  padding: 0.625rem 0.875rem;
  color: #1e293b;
  border-radius: 0.5rem;
}

.mobile-menu .nav-link-item:hover {
  background: #f0f9ff;
  color: #0ea5e9;
}

.mobile-menu .active-link {
  color: #0ea5e9;
}

/* Separator before action buttons */
.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.mobile-menu-actions .btn-get-started {
  text-align: center;
  padding: 0.75rem 1.5rem;
}

.mobile-menu-actions .nav-button-secondary {
  justify-content: center;
  padding: 0.75rem 1.5rem;
}

/*=========================== Responsive =====================================================*/
@media (max-width: 1024px) {
  .main-nav-container {
    padding: 0 1.5rem;
  }

  /* On tablet, shrink font further so all links still fit */
  .center-links .nav-link-item {
    font-size: 0.8rem;
    padding: 0.3rem 0.4rem;
  }
}

/* Mobile Menu Button — hidden on desktop, shown on mobile */
.mobile-nav-button {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  align-items: center;
  justify-content: center;
  color: #0ea5e9;
  border-radius: 0.5rem;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-button:hover {
  background: rgba(14, 165, 233, 0.1);
  color: #0284c7;
}

.mobile-dashboard-link {
  display: none;
}

@media (max-width: 768px) {
  /* Hide ALL desktop-only items: both nav-links and nav-actions */
  .nav-links.desktop-only,
  .nav-actions.desktop-only {
    display: none !important;
  }

  /* Show mobile menu when toggled (JSX renders it conditionally) */
  .mobile-menu {
    display: flex;
  }

  /* Show hamburger button */
  .mobile-nav-button {
    display: flex;
    margin-left: auto;
  }

  /* Tighten nav container padding on small screens */
  .main-nav-container {
    padding: 0 1rem;
    height: 4rem;
  }

  /* Logo slightly smaller on mobile */
  .navbar-logo-img {
    height: 2.75rem;
  }

  /* Full-width mobile menu items */
  .mobile-menu .btn-get-started {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-dashboard-link {
    display: flex !important;
    padding: 10px 16px;
    font-size: 0.95rem;
    border-radius: 12px;
    border: 2px solid #ddd6fe;
    background: white;
    color: #7c3aed;
    font-weight: 700;
    text-decoration: none;
    margin-left: auto;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.15);
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    z-index: 1001;
  }

  .mobile-dashboard-link:hover {
    background: #fdfbff;
    border-color: #c084fc;
    transform: translateY(-1px);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .nav-actions.desktop-only.right-actions {
    margin-right: 1rem;
  }
}

/*=========================== END Navbar =================================================*/

/* static/css/styles/ParentDashboard.css */
@import './theme.css';

.parent-dashboard {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e40af 0%, #60a5fa 25%, #93c5fd 50%, #1d4ed8 75%, #3b82f6 100%);
  font-family: var(--body-font);
}

/* ===========================
   NAVBAR SECTION (Scrolls Away)
   ========================== */

/* Header with Logo and Stars - This section scrolls naturally with the page */
.parent-dashboard .navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  /* NO position: sticky - this allows it to scroll away */
}

.parent-dashboard .navbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.parent-das.hw-page .feedback-block {
  margin-bottom: 12px;
}

.parent-dashboard .navbar-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
  transition: all 0.3s ease;
}

.parent-dashboard .navbar-logo:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
}

.parent-dashboard .navbar-brand {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.parent-dashboard .navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.parent-dashboard .navbar-stars {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(234, 179, 8, 0.3);
  border: 3px solid #fbbf24;
  transition: all 0.3s ease;
}

.parent-dashboard .navbar-stars:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.4);
}

.parent-dashboard .navbar-stars svg {
  width: 24px;
  height: 24px;
  color: #eab308;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }

  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.8;
  }
}

.parent-dashboard .navbar-stars span {
  font-size: 18px;
  font-weight: 800;
  color: #92400e;
}

.parent-dashboard .navbar-profile {
  display: flex;
  padding: 6px;
  background: white;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.2);
  border: 3px solid rgba(59, 130, 246, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.parent-dashboard .navbar-profile:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}

.parent-dashboard .navbar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
  font-size: 20px;
  font-weight: 800;
}

/* ===========================
   MAIN CONTAINER
   ========================== */

/* Main Container */
.parent-dashboard .dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ===========================
   DASHBOARD HEADER (Scrolls Normally)
   ========================== */

/* Header Section - Beautiful but NOT sticky */
.parent-dashboard .dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.98) 0%, rgba(59, 130, 246, 0.95) 100%);
  backdrop-filter: blur(10px);
  /* REMOVED position: sticky - now scrolls naturally */
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
  border: 3px solid rgba(147, 197, 253, 0.3);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .parent-dashboard .dashboard-header {
    flex-direction: column;
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }

  .parent-dashboard .dashboard-title {
    font-size: 1.75rem;
  }
}

.parent-dashboard .dashboard-header-left {
  flex: 1;
}

.parent-dashboard .dashboard-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin: 0 0 0.75rem 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.parent-dashboard .dashboard-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 600;
}

.parent-dashboard .dashboard-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.parent-dashboard .btn-manage {
  padding: 14px 28px;
  background: white;
  color: #2563eb;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.parent-dashboard .btn-manage:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.parent-dashboard .btn-view-child {
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
}

.parent-dashboard .btn-view-child:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Grid Layout */
.parent-dashboard .dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.parent-dashboard .main-content-centered {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

/* Card Base Styles */
.parent-dashboard .card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(219, 234, 254, 0.5));
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
  border: 3px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.parent-dashboard .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.25);
}

.parent-dashboard .section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 1.75rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.parent-dashboard .section-icon {
  width: 28px;
  height: 28px;
  color: #3b82f6;
}

/* Profile Card - Table Layout */
.parent-dashboard .profile-card {
  padding: 2.5rem;
}

.parent-dashboard .profile-details-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.parent-dashboard .avatar {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  flex-shrink: 0;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
  border: 4px solid rgba(255, 255, 255, 0.9);
}

.parent-dashboard .profile-info {
  flex: 1;
  min-width: 0;
}

.parent-dashboard .profile-info h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 1.5rem 0;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.parent-dashboard .profile-details {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(147, 197, 253, 0.3);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  margin-bottom: 1.5rem;
}

.parent-dashboard .profile-details>div {
  display: grid;
  grid-template-columns: 180px 1fr;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  font-size: 1rem;
  transition: all 0.2s ease;
  color: #1e293b;
  font-weight: 600;
}

.parent-dashboard .profile-details>div:last-child {
  border-bottom: none;
}

.parent-dashboard .profile-details>div:hover {
  background: rgba(219, 234, 254, 0.3);
}

.parent-dashboard .profile-details>div>span:first-child {
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

.parent-dashboard .btn-primary {
  padding: 12px 24px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  white-space: nowrap;
}

.parent-dashboard .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

/* Chart Card */
.parent-dashboard .chart-card {
  padding: 2.5rem;
}

.parent-dashboard .chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.parent-dashboard .chart-select {
  padding: 12px 20px;
  border: 3px solid #93c5fd;
  border-radius: 16px;
  background: white;
  color: #1e293b;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.parent-dashboard .chart-select:hover {
  border-color: #60a5fa;
  background: #dbeafe;
}

.parent-dashboard .line-chart-container {
  background: rgba(248, 250, 252, 0.6);
  border-radius: 20px;
  padding: 2rem;
  border: 2px solid rgba(147, 197, 253, 0.3);
}

.parent-dashboard .line-chart {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.parent-dashboard .line-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.parent-dashboard .line-chart-x-axis {
  display: flex;
  justify-content: space-between;
  padding: 1rem 80px 0;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}

.parent-dashboard .x-axis-label {
  text-align: center;
}

.parent-dashboard .line-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(248, 250, 252, 0.4);
  border-radius: 12px;
  margin-top: 1rem;
}

.parent-dashboard .legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
}

.parent-dashboard .legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.parent-dashboard .legend-label {
  white-space: nowrap;
}

.parent-dashboard .chart-footer {
  text-align: center;
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Skills Breakdown - Table Style */
.parent-dashboard .skills-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.parent-dashboard .skill-card {
  padding: 1.75rem 2rem;
  background: white;
  border-bottom: 2px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: 2fr 1fr 120px;
  align-items: center;
  gap: 2rem;
}

.parent-dashboard .skill-card:first-child {
  border-radius: 16px 16px 0 0;
  border-top: 2px solid rgba(147, 197, 253, 0.3);
}

.parent-dashboard .skill-card:last-child {
  border-radius: 0 0 16px 16px;
  border-bottom: 2px solid rgba(147, 197, 253, 0.3);
}

.parent-dashboard .skill-card:hover {
  background: rgba(219, 234, 254, 0.4);
  border-bottom-color: rgba(147, 197, 253, 0.5);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.parent-dashboard .skill-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.parent-dashboard .skill-header>div:first-child {
  font-weight: 800;
  color: #1e293b;
  font-size: 1.125rem;
}

.parent-dashboard .skill-level {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}

.parent-dashboard .skill-bar {
  height: 12px;
  background: rgba(226, 232, 240, 0.6);
  border-radius: 999px;
  overflow: hidden;
  flex: 1;
}

.parent-dashboard .skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 999px;
  transition: width 0.6s ease;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.parent-dashboard .skill-score {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: right;
  min-width: 80px;
}

/* Progress by Feature - Enhanced Cards */
.parent-dashboard .progress-by-feature {
  padding: 2.5rem;
}

.parent-dashboard .feature-progress-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.parent-dashboard .feature-progress-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 2px solid rgba(147, 197, 253, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.parent-dashboard .feature-progress-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
  border-color: rgba(96, 165, 250, 0.5);
}

.parent-dashboard .feature-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.parent-dashboard .feature-title-section {
  flex: 1;
}

.parent-dashboard .feature-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 0.75rem 0;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.parent-dashboard .feature-progress-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.parent-dashboard .stat-badge {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.parent-dashboard .stat-badge.completed {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 2px solid #6ee7b7;
}

.parent-dashboard .stat-badge.score {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border: 2px solid #93c5fd;
}

.parent-dashboard .feature-completion-rate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.parent-dashboard .completion-percentage {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.parent-dashboard .feature-progress-bar-container {
  margin-bottom: 1.5rem;
}

.parent-dashboard .feature-progress-bar {
  height: 14px;
  background: rgba(226, 232, 240, 0.6);
  border-radius: 999px;
  overflow: hidden;
}

.parent-dashboard .feature-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 999px;
  transition: width 0.6s ease;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.parent-dashboard .feature-progress-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  background: rgba(248, 250, 252, 0.6);
  padding: 1.25rem;
  border-radius: 12px;
}

.parent-dashboard .progress-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.parent-dashboard .detail-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.parent-dashboard .detail-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.parent-dashboard .detail-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.parent-dashboard .detail-value {
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
}

.parent-dashboard .no-progress-message {
  text-align: center;
  padding: 3rem;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 16px;
  border: 2px dashed rgba(147, 197, 253, 0.5);
}

.parent-dashboard .no-progress-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.parent-dashboard .no-progress-message p {
  font-size: 1.125rem;
  color: #475569;
  font-weight: 600;
  margin: 0.5rem 0;
}

.parent-dashboard .no-progress-subtitle {
  font-size: 0.95rem;
  color: #64748b;
}

/* Recent Activities - Enhanced Table */
.parent-dashboard .recent-activities {
  padding: 2.5rem;
}

.parent-dashboard .table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  border: 2px solid rgba(147, 197, 253, 0.3);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.parent-dashboard table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
}

.parent-dashboard thead {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.8), rgba(191, 219, 254, 0.6));
  position: sticky;
  top: 0;
  z-index: 10;
}

.parent-dashboard th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 800;
  color: #1e293b;
  font-size: 0.95rem;
  border-bottom: 3px solid rgba(147, 197, 253, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.parent-dashboard th:first-child {
  border-radius: 16px 0 0 0;
}

.parent-dashboard th:last-child {
  border-radius: 0 16px 0 0;
}

.parent-dashboard td {
  padding: 1.25rem 1.5rem;
  color: #475569;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.parent-dashboard tbody tr {
  transition: all 0.2s ease;
}

.parent-dashboard tbody tr:hover {
  background: rgba(219, 234, 254, 0.3);
}

.parent-dashboard tbody tr:last-child td {
  border-bottom: none;
}

.parent-dashboard tbody tr:last-child td:first-child {
  border-radius: 0 0 0 16px;
}

.parent-dashboard tbody tr:last-child td:last-child {
  border-radius: 0 0 16px 0;
}

.parent-dashboard td[colspan] {
  text-align: center;
  padding: 3rem;
  color: #64748b;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .parent-dashboard .dashboard-header {
    flex-direction: column;
    gap: 1.5rem;
  }

  .parent-dashboard .dashboard-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .parent-dashboard .skill-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .parent-dashboard .skill-score {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .parent-dashboard .navbar-container {
    padding: 0 1rem;
  }

  .parent-dashboard .navbar-brand {
    display: none;
  }

  .parent-dashboard .dashboard-container {
    padding: 2rem 1rem;
  }

  .parent-dashboard .card {
    padding: 2rem;
  }

  .parent-dashboard .profile-details-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .parent-dashboard .profile-info {
    width: 100%;
  }

  .parent-dashboard .profile-details>div {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.5rem;
  }

  .parent-dashboard .profile-details>div>span:first-child {
    justify-content: center;
  }

  .parent-dashboard .dashboard-buttons {
    flex-direction: column;
  }

  .parent-dashboard .btn-manage,
  .parent-dashboard .btn-view-child,
  .parent-dashboard .btn-primary {
    width: 100%;
    text-align: center;
  }

  .parent-dashboard .line-chart-x-axis {
    padding: 1rem 60px 0;
    font-size: 0.8rem;
  }

  .parent-dashboard .table-wrapper {
    overflow-x: scroll;
  }

  .parent-dashboard th,
  td {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .parent-dashboard .feature-progress-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .parent-dashboard .feature-progress-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .parent-dashboard .dashboard-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .parent-dashboard .card {
    padding: 1.5rem;
  }

  .parent-dashboard .navbar-stars span {
    font-size: 16px;
  }

  .parent-dashboard .navbar-stars svg {
    width: 20px;
    height: 20px;
  }

  .parent-dashboard .avatar {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
}

/* Layout Utilities */
.dashboard-flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.flex-1 {
  flex: 1;
  min-width: 280px;
}

.button-group-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.full-width-mobile {
  width: auto;
}

@media (max-width: 768px) {
  .full-width-mobile {
    width: 100%;
  }
}

/* Button Variants */
.btn-secondary {
  padding: 12px 24px;
  background: white;
  color: #2563eb;
  border: 2px solid #ddd6fe;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: #f3e8ff;
  border-color: #c084fc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: 8px;
}

/* Report Specific Styles */
.btn-report {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 2px solid #d8b4fe;
  background: transparent;
  color: #9333ea;
  cursor: pointer;
  font-weight: 400;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-report.active {
  border-color: #9333ea;
  background: linear-gradient(to right, #f5f3ff, #fdf2f8);
  font-weight: 600;
}

.btn-report:hover:not(.active) {
  background: #f5f3ff;
  border-color: #c084fc;
}

/* Message Box */
.message-textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.2s;
}

.message-textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

.section-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.quick-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* static/css/styles/AdminDashboard.css */
.admin-games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

@media (max-width: 900px) {
  .admin-games-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin Dashboard Responsive Styles */

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 20px;
    margin-top: 12px;
}

.admin-feature-link {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 16px;
}

/* Responsiveness */

/* Tablet and below */
@media (max-width: 1024px) {
    .admin-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Small tablet / Mobile Landscape */
@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-feature-link {
        font-size: 0.9rem;
    }
}

/* Global Admin Back Button - Modern Glass Look */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 1.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff !important;
  transform: translateX(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.back-button svg {
  color: #ffffff !important;
}

/* static/css/styles/RegistrationPage.css */
/* ============================= REGISTRATION PAGE ============================= */

.registration-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 25%, #e0e7ff 50%, #ddd6fe 75%, #e0e7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Animated background elements */
.registration-wrapper::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.registration-wrapper::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 25s ease-in-out infinite reverse;
  pointer-events: none;
}

.registration-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(20px);
  border-radius: 28px;
  box-shadow: 0 25px 70px rgba(37, 99, 235, 0.2),
    0 10px 20px rgba(59, 130, 246, 0.1);
  padding: 3rem;
  width: 100%;
  max-width: 700px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  position: relative;
  z-index: 1;
  animation: slideIn 0.6s ease-out;
}

.registration-card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
  border-radius: 28px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(15px);
}

.registration-card.terms-card {
  max-width: 900px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.registration-card .auth-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.registration-card .auth-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.registration-card .auth-logo-link:hover {
  transform: scale(1.05);
}

.registration-card .auth-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.card-header .header-icon {
  color: #3b82f6;
  animation: sparkle 2.5s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
}

@keyframes sparkle {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }

  50% {
    transform: scale(1.15) rotate(180deg);
    opacity: 0.8;
  }
}

.card-header h2 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.back-button {
  cursor: pointer;
  color: #64748b;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.05));
  border: 2px solid rgba(59, 130, 246, 0.15);
}

.back-button:hover {
  color: #3b82f6;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.1));
  transform: translateX(-6px) scale(1.05);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #1e293b;
  font-size: 1rem;
}

.form-group label svg {
  color: #3b82f6;
  filter: drop-shadow(0 1px 3px rgba(59, 130, 246, 0.3));
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 2px solid #bfdbfe;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
  color: #1e293b;
  font-family: inherit;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.05);
}

.form-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.15),
    0 4px 12px rgba(59, 130, 246, 0.2);
  background: #ffffff;
  transform: translateY(-2px) scale(1.01);
}

.form-input:hover:not(:focus) {
  border-color: #60a5fa;
  box-shadow: 0 3px 8px rgba(59, 130, 246, 0.1);
}

.error-message {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.08));
  color: #dc2626;
  padding: 1.125rem 1.5rem;
  border-radius: 14px;
  font-weight: 600;
  border: 2px solid rgba(239, 68, 68, 0.25);
  animation: shake 0.5s ease-in-out;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-10px);
  }

  75% {
    transform: translateX(10px);
  }
}

.error-icon {
  font-size: 1.3rem;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.form-note {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.08));
  padding: 1rem 1.5rem;
  border-radius: 14px;
  color: #1e40af;
  font-size: 0.95rem;
  border: 2px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.12);
}

.form-note svg {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(59, 130, 246, 0.3));
}

.form-note p {
  margin: 0;
  font-weight: 600;
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
  background-size: 200% 200%;
  color: #ffffff;
  padding: 1.125rem 2.5rem;
  border-radius: 18px;
  border: none;
  font-weight: 800;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35),
    0 4px 12px rgba(59, 130, 246, 0.2);
  animation: gradientShift 4s ease infinite;
  margin-top: 1.5rem;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.45),
    0 6px 15px rgba(59, 130, 246, 0.3);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Terms & Conditions specific styles */
.pdf-container {
  margin: 1.5rem 0 2rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
  border: 3px solid rgba(59, 130, 246, 0.2);
  background: #ffffff;
}

.pdf-container iframe {
  border: none;
  display: block;
  width: 100%;
  min-height: 600px;
}

.tc-buttons {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2rem;
}

.btn-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.125rem 2.5rem;
  border-radius: 18px;
  border: none;
  font-weight: 800;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-agree {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  background-size: 200% 200%;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
  animation: gradientShift 4s ease infinite;
}

.btn-agree:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.125rem 2.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.1), rgba(100, 116, 139, 0.08));
  border: 2px solid #bfdbfe;
  color: #64748b;
  font-weight: 800;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.08);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.15), rgba(100, 116, 139, 0.12));
  border-color: #60a5fa;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 20px rgba(100, 116, 139, 0.15);
}

/* Utility class for margin top */
.mt-4 {
  margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {

  .registration-wrapper,
  .login-wrapper {
    padding: 1.5rem;
  }

  .registration-card,
  .login-wrapper .card {
    padding: 2.5rem 2rem;
  }

  .card-header h2,
  .login-wrapper .form-header h2 {
    font-size: 1.75rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .form-group.full-width {
    grid-column: 1;
  }

  .tc-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .login-wrapper {
    padding: 1rem;
  }

  .login-wrapper .card {
    padding: 2rem 1.5rem;
  }

  .login-wrapper .form-header h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {

  .registration-card,
  .login-wrapper .card {
    padding: 2rem 1.5rem;
  }

  .card-header,
  .login-wrapper .form-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .card-header h2,
  .login-wrapper .form-header h2 {
    font-size: 1.5rem;
  }

  .form-input,
  .login-wrapper input {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .btn-submit,
  .login-wrapper .btn-primary {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

/* General page background */
.landing-page {
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 25%, #e0e7ff 50%, #ddd6fe 75%, #e0e7ff 100%);
  min-height: 100vh;
  font-family: var(--body-font);
  position: relative;
  overflow-x: hidden;
}

/* Decorative background elements */
.landing-page::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 15s ease-in-out infinite;
}

.landing-page::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 20s ease-in-out infinite reverse;
}

/* Fade-in animation */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -30px);
  }
}

@keyframes bounce-gentle {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes sparkle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.1) rotate(180deg);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 1rem;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 50%, #e0f2fe 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  animation: float 25s ease-in-out infinite;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media(min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(37, 99, 235, 0.15);
}

.hero-text p {
  font-size: 1.3rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2),
    0 0 0 1px rgba(37, 99, 235, 0.1);
  margin-bottom: 1.5rem;
  white-space: nowrap;
  border: 2px solid rgba(59, 130, 246, 0.15);
}

.hero-badge .icon {
  color: #3b82f6;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  animation: sparkle 2s ease-in-out infinite;
}

.hero-badge span {
  white-space: nowrap;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.btn-primary {
  padding: 1.125rem 2.25rem;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
  background-size: 200% 200%;
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35),
    0 2px 8px rgba(59, 130, 246, 0.2);
  border: none;
  cursor: pointer;
  display: inline-block;
  font-size: 1.05rem;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.45),
    0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  padding: 1.125rem 2.25rem;
  border-radius: 1rem;
  color: #2563eb;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid #bfdbfe;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-secondary:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
  border-color: #60a5fa;
  transform: translateY(-3px) scale(1.02);
  background: #fff;
}

.hero-note {
  font-size: 0.9375rem;
  color: #64748b;
  font-weight: 600;
}

/* Hero Image Card */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  animation: bounce-gentle 4s ease-in-out infinite;
}

.hero-image-bg {
  position: absolute;
  inset: -1.5rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
  opacity: 0.15;
  filter: blur(2.5rem);
  animation: float 20s ease-in-out infinite;
}

.hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  border-radius: 2rem;
  padding: 3rem 2.5rem;
  border: 3px solid rgba(59, 130, 246, 0.15);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15),
    0 5px 15px rgba(59, 130, 246, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  backdrop-filter: blur(10px);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
  border-radius: 2rem;
  z-index: -1;
  opacity: 0.3;
  filter: blur(10px);
}

.hero-card .book-icon {
  font-size: 6rem;
  color: #3b82f6;
  margin-bottom: 1.5rem;
  stroke-width: 1.5;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.hero-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero-card p {
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0;
}

.stars-row {
  display: flex;
  gap: 0.375rem;
  margin-top: 1.5rem;
}

.star-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: #facc15;
  fill: #facc15;
  filter: drop-shadow(0 2px 6px rgba(250, 204, 21, 0.4));
  animation: sparkle 3s ease-in-out infinite;
}

.star-icon:nth-child(2) {
  animation-delay: 0.2s;
}

.star-icon:nth-child(3) {
  animation-delay: 0.4s;
}

.star-icon:nth-child(4) {
  animation-delay: 0.6s;
}

.star-icon:nth-child(5) {
  animation-delay: 0.8s;
}

/* Section Wrapper */
.section {
  padding: 5rem 1rem;
  position: relative;
}

.section:nth-child(even) {
  background: linear-gradient(135deg, #fff 0%, #dbeafe 50%, #bfdbfe 100%);
}

.section:nth-child(odd) {
  background: linear-gradient(135deg, #e0f2fe 0%, #e0e7ff 50%, #dbeafe 100%);
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(37, 99, 235, 0.15);
}

.section-header p {
  font-size: 1.2rem;
  color: #64748b;
  text-align: center;
  font-weight: 600;
}

/* Steps Section */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media(min-width:768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  border: 2px solid rgba(59, 130, 246, 0.15);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12),
    0 2px 8px rgba(59, 130, 246, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  backdrop-filter: blur(10px);
}

.step-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.2),
    0 5px 15px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 1.5rem;
  color: #fff;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

.step-card:hover .step-icon {
  transform: scale(1.15) rotate(5deg) translateZ(20px);
}

.step-icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.step-icon.pink {
  background: linear-gradient(135deg, #ec4899, #f472b6);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4);
}

.step-icon.blue {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.step-number {
  color: #2563eb;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.step-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.step-card p {
  color: #64748b;
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 500;
}

/* Features Grid - Enhanced 3D Colorful Icons */
.features-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media(min-width:768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width:1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  text-align: center;
  border: 2px solid rgba(59, 130, 246, 0.15);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12),
    0 2px 8px rgba(59, 130, 246, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.18),
    0 4px 12px rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 1.5rem;
  color: #fff;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
  position: relative;
}

.feature-icon::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 1.5rem;
  background: inherit;
  filter: blur(15px);
  opacity: 0.6;
  z-index: -1;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(-5deg) translateZ(30px);
}

.feature-icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

.feature-icon.green {
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

.feature-icon.pink {
  background: linear-gradient(135deg, #ec4899, #f472b6);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.5);
}

.feature-icon.yellow {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
}

.feature-icon.blue {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
}

.feature-icon.indigo {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

.feature-icon.red {
  background: linear-gradient(135deg, #ef4444, #f87171);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #64748b;
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 500;
}

/* Testimonials */
.feature-card p {
  margin-top: 1rem;
}

.hero-badge.avatar-badge {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  border: 3px solid #fff;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}

@media(min-width:768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pricing-card {
  border-radius: 2rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border: 3px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25);
}

.pricing-card.free {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  border: 3px solid rgba(59, 130, 246, 0.2);
  color: #000;
  backdrop-filter: blur(10px);
}

.pricing-card.premium {
  background: linear-gradient(135deg, #2563eb, #3b82f6, #1d4ed8);
  background-size: 200% 200%;
  color: #fff;
  animation: gradientShift 6s ease infinite;
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.35),
    0 5px 15px rgba(59, 130, 246, 0.2);
}

.popular-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, #facc15, #fbbf24);
  color: #1e40af;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: bounce-gentle 2s ease-in-out infinite;
}

.pricing-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.pricing-card .price span {
  font-size: 1.25rem;
  font-weight: 600;
  opacity: 0.85;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0;
  text-align: left;
}

.pricing-card ul li {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
}

.pricing-card ul li::before {
  content: "●";
  color: inherit;
  font-size: 0.75rem;
  margin-top: 0.375rem;
}

.pricing-card.free .btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.pricing-card.free .btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.pricing-card.premium .btn-primary {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.pricing-card.premium .btn-primary:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

/* Footer - Navy Background with Enlarged Logo */
.footer {
  background: linear-gradient(135deg, #0c1844, #1e3a8a, #1e40af);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  color: #fff;
  padding: 4rem 1rem 2.5rem;
  box-shadow: 0 -10px 40px rgba(37, 99, 235, 0.2);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}

@media(min-width:768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer h4 {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #fff;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: #dbeafe;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
}

.footer a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  font-size: 0.9375rem;
  color: #dbeafe;
  padding-top: 2.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.footer .logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
  font-weight: 800;
}

/* Enlarged Footer Logo */
.footer-logo-img {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.footer>div:first-child p {
  color: #dbeafe;
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .section-header h2 {
    font-size: 2.25rem;
  }

  .pricing-card {
    padding: 2.5rem 2rem;
  }

  .footer-logo-img {
    height: 2.75rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.875rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 1rem 1.75rem;
    font-size: 1rem;
  }

  .footer-logo-img {
    height: 2.5rem;
  }
}

/* Add these styles to your RegistrationPage.css file */

/* Input error state */
.form-input.input-error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-input.input-error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Field-level error message (appears below the input) */
.field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-left: 3px solid #ef4444;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #dc2626;
  animation: slideDown 0.3s ease;
}

.field-error .error-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Slide down animation for error messages */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Update existing error-message styling if needed */
.error-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #dc2626;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

.error-icon {
  font-size: 1.2rem;
}

/* Disable submit button when there's an age error */
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, #94a3b8, #cbd5e1);
}

.btn-submit:disabled:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* static/css/styles/Speaking.css */
/* Speaking Dashboard Styles - Consistent with other features */

.speaking-dashboard {
  min-height: 100vh;
  background: linear-gradient(225deg, #f3efff 0%, #ebf8ff 50%, #ffeef6 100%);
  font-family: var(--body-font);
  color: #111827;
}

/* Header */
.speaking-header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(226, 214, 255, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0;
}

.speaking-header-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  color: #4b5563;
  transition: background 0.15s ease;
  text-decoration: none;
}

.back-button:hover {
  background: rgba(249, 115, 22, 0.1);
}

.back-icon {
  width: 18px;
  height: 18px;
  color: #374151;
}

.speaking-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.speaking-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

/* Main container */
.speaking-main {
  max-width: 1024px;
  margin: 0 auto;
  padding: 28px 20px;
}

/* Stats Section */
.speaking-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(233, 213, 255, 0.85);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: #6b7280;
}

/* Levels Section */
.speaking-levels {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
  padding: 24px;
  border: 1px solid rgba(233, 213, 255, 0.85);
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #111827;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.level-card {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s ease;
  position: relative;
}

.level-card:hover:not(.level-locked) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
  border-color: #f97316;
}

.level-card.level-current {
  border-color: #f97316;
  background: #fff7ed;
}

.level-card.level-complete {
  border-color: #22c55e;
  background: #f0fdf4;
}

.level-card.level-locked {
  opacity: 0.6;
  background: #f3f4f6;
}

.level-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.level-icon {
  flex-shrink: 0;
}

.level-info {
  flex: 1;
}

.level-name {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
}

.level-topic {
  font-size: 13px;
  color: #f97316;
  font-weight: 600;
  margin: 0;
}

.level-progress {
  margin-top: 12px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: #f97316;
  transition: width 0.3s;
}

.progress-text {
  font-size: 13px;
  color: #6b7280;
}

.level-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #22c55e;
  color: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.level-badge.locked {
  background: #9ca3af;
}

/* Speaking Session Styles */
.speaking-session {
  min-height: 100vh;
  background: linear-gradient(225deg, #f3efff 0%, #ebf8ff 50%, #ffeef6 100%);
  font-family: var(--body-font);
}

.session-header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(226, 214, 255, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 0;
}

.session-header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.session-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.session-progress {
  font-size: 13px;
  color: #6b7280;
}

.session-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 20px;
}

.exercise-section {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
  padding: 24px;
  border: 1px solid rgba(233, 213, 255, 0.85);
}

.exercise-card {
  text-align: center;
}

.exercise-text {
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 24px;
  line-height: 1.4;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exercise-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #fef3c7;
  border-radius: 12px;
  color: #92400e;
  margin-bottom: 24px;
  font-size: 13px;
}

.audio-controls {
  margin-bottom: 32px;
}

.audio-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.audio-button:hover:not(:disabled) {
  opacity: 0.9;
}

.audio-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.recording-section {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pronunciation-check {
  background: radial-gradient(circle at top left, #eef2ff 0%, #f9fafb 40%, #eff6ff 100%);
  border-radius: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  text-align: left;
}

.pronunciation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pronunciation-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

.pronunciation-result {
  margin-top: 14px;
  padding: 14px 14px 12px;
  background: rgba(59, 130, 246, 0.03);
  border-radius: 16px;
  font-size: 13px;
  color: #1f2937;
  border: 1px dashed rgba(191, 219, 254, 0.9);
}

.pronunciation-result p {
  margin: 2px 0;
}

.pronunciation-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.heard-text .label,
.score-badge-wrapper .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 2px;
}

.heard-text .value {
  font-weight: 600;
  color: #111827;
}

.score-badge-wrapper {
  text-align: right;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.score-badge span:first-child {
  font-variant-numeric: tabular-nums;
}

.score-badge-text {
  font-size: 11px;
}

.score-great {
  background: #ecfdf5;
  color: #16a34a;
}

.score-good {
  background: #fffbeb;
  color: #d97706;
}

.score-try {
  background: #fef2f2;
  color: #dc2626;
}

.score-message {
  margin-top: 8px;
  font-size: 13px;
  color: #374151;
}

.next-word-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.next-word-text {
  margin: 0;
  font-size: 13px;
  color: #15803d;
  font-weight: 600;
}

.try-again-text {
  margin-top: 8px;
  font-size: 12px;
  color: #ea580c;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.secondary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(79, 70, 229, 0.4);
  opacity: 0.95;
}

.secondary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.record-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.record-button.start {
  background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
  color: white;
}

.record-button.start:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.record-button.stop {
  background: #6b7280;
  color: white;
}

.record-button.stop:hover {
  background: #4b5563;
}

.recording-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.recording-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dc2626;
  font-weight: 600;
  font-size: 15px;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  background: #dc2626;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.recording-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.recording-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.play-recording-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.play-recording-button:hover:not(:disabled) {
  opacity: 0.9;
}

.play-recording-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.record-again-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #6b7280;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.record-again-button:hover {
  background: #4b5563;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-button:hover {
  opacity: 0.9;
}

.warning-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fef3c7;
  border: 2px solid #fbbf24;
  border-radius: 12px;
  color: #92400e;
  margin-top: 24px;
}

.warning-message p {
  margin: 0;
  flex: 1;
  font-size: 13px;
}

.exercise-complete-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.complete-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
  padding: 40px;
  text-align: center;
  border: 1px solid rgba(233, 213, 255, 0.85);
  max-width: 500px;
}

.complete-icon {
  margin-bottom: 20px;
}

.complete-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
}

.complete-message {
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 32px;
}

.complete-actions {
  margin-top: 24px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.primary-button:hover {
  opacity: 0.9;
}

.error-message {
  padding: 16px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 12px;
  margin: 20px;
  text-align: center;
  font-size: 14px;
}

.loading-spinner {
  border: 4px solid #f3f4f6;
  border-top: 4px solid #f97316;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .speaking-header-inner,
  .session-header-inner {
    padding: 0 16px;
  }

  .speaking-main,
  .session-main {
    padding: 20px 16px;
  }

  .speaking-stats {
    grid-template-columns: 1fr;
  }

  .levels-grid {
    grid-template-columns: 1fr;
  }

  .session-header-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 12px 16px;
  }

  .exercise-section {
    padding: 20px;
  }

  .exercise-text {
    font-size: 20px;
  }

  .recording-actions {
    flex-direction: column;
    width: 100%;
  }

  .play-recording-button,
  .record-again-button {
    width: 100%;
    justify-content: center;
  }
}


/* static/css/styles/Spelling.css */
/* ================== ROOT ================== */
.spelling-wrapper,
.spelling-dictionary-wrapper {
  --purple: #a855f7;
  --pink: #f72585;
  --blue: #2563eb;
  --yellow: #facc15;
  --green: #16a34a;
  --red: #dc2626;
  --primary-blue: #3b82f6;
  --light-blue: #60a5fa;
  --dark-blue: #1e40af;
  font-family: var(--body-font);
  color: #111827;
}

.spelling-dictionary-wrapper .spelling-wrapper {
  width: 100%;
}

/* ================== PAGE BACKGROUND ================== */
.spelling-wrapper .container,
.spelling-dictionary-wrapper .container {
  min-height: 100vh;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 25%, #1d4ed8 50%, #3b82f6 75%, #2563eb 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* ================== HEADER ================== */
.spelling-wrapper .header,
.spelling-dictionary-wrapper .header {
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 4px solid #3b82f6;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.spelling-wrapper .header h1,
.spelling-dictionary-wrapper .header h1 {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(to right, #3b82f6, #2563eb, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.spelling-wrapper .back-button,
.spelling-dictionary-wrapper .back-button {
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  border: 3px solid #2563eb;
  transition: all 0.3s ease;
}

.spelling-wrapper .back-button:hover,
.spelling-dictionary-wrapper .back-button:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
}

/* ================== MAIN CONTENT ================== */
.spelling-wrapper .main-content,
.spelling-dictionary-wrapper .main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px;
  width: 100%;
}

/* ================== TABS CARD ================== */
.spelling-wrapper .tabs,
.spelling-dictionary-wrapper .tabs {
  background: white;
  border-radius: 32px 32px 0 0;
  overflow: hidden;
  display: flex;
  border-bottom: 4px solid #60a5fa;
  box-shadow: 0 -4px 20px rgba(59, 130, 246, 0.2);
}

.spelling-wrapper .tab,
.spelling-dictionary-wrapper .tab {
  flex: 1;
  padding: 20px;
  font-size: 16px;
  font-weight: 600;
  background: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.spelling-wrapper .tab:hover,
.spelling-dictionary-wrapper .tab:hover {
  background: linear-gradient(135deg, #93c5fd, #dbeafe);
  transform: translateY(-2px);
}

.spelling-wrapper .tab.active,
.spelling-dictionary-wrapper .tab.active {
  color: white;
  background: linear-gradient(135deg, #3b82f6, #2563eb, #1d4ed8);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
  transform: scale(1.05);
}

/* ================== TAB BODY CARD ================== */
.spelling-wrapper .tab-content,
.spelling-dictionary-wrapper .tab-content {
  background: white;
  border-radius: 0 0 32px 32px;
  padding: 32px;
  border: 4px solid #60a5fa;
  border-top: none;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.25);
}

/* ================== PROGRESS ================== */
.spelling-wrapper .progress,
.spelling-dictionary-wrapper .progress {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 4px solid #60a5fa;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

/* ================== PROGRESS BAR ================== */
.spelling-dictionary-wrapper .progress-bar-container,
.spelling-practice .progress-bar {
  position: relative;
  width: 100%;
  height: 48px;
  background: #e5e7eb;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 4px solid #60a5fa;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

.spelling-dictionary-wrapper .progress-bar-fill,
.spelling-practice .progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(135deg, #3b82f6, #2563eb, #1d4ed8);
  transition: width 0.5s ease;
  border-radius: 24px;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.5);
}

.spelling-dictionary-wrapper .progress-bar-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  z-index: 1;
}

/* ================== WORD COUNTER ================== */
.spelling-practice .word-counter {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 20px;
  padding: 12px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 16px;
  border: 3px solid #60a5fa;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

/* ================== PRACTICE CARD ================== */
.spelling-practice .practice-card {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 32px;
  padding: 40px;
  border: 5px solid #60a5fa;
  box-shadow: 0 10px 35px rgba(96, 165, 250, 0.35);
  text-align: center;
}

/* ================== SPELLING PRACTICE COMPONENT ================== */
.spelling-practice {
  width: 100%;
}

/* ================== DICTIONARY TOOLS COMPONENT ================== */
.dictionary-tools {
  width: 100%;
}

/* ================== SPELLING CHALLENGE ================== */
.spelling-wrapper .spelling-challenge,
.spelling-dictionary-wrapper .spelling-challenge {
  margin-top: 24px;
  padding: 40px;
  border-radius: 32px;
  background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 50%, #60a5fa 100%);
  border: 4px solid #3b82f6;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

/* ================== LISTEN TO WORD & PLAY AUDIO BUTTON ================== */
.spelling-wrapper .play-button,
.spelling-dictionary-wrapper .play-button,
.spelling-practice .play-audio-button,
.dictionary-tools .play-audio-button,
.word-of-day-card .play-audio-button,
.word-details .play-audio-button {
  margin: 24px auto;
  padding: 20px 40px;
  border-radius: 24px;
  border: 5px solid #1d4ed8;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
  font-size: 22px;
  font-weight: 800;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 240px;
}

.spelling-wrapper .play-button:hover,
.spelling-dictionary-wrapper .play-button:hover,
.spelling-practice .play-audio-button:hover,
.dictionary-tools .play-audio-button:hover,
.word-of-day-card .play-audio-button:hover,
.word-details .play-audio-button:hover {
  transform: scale(1.15) rotate(-3deg);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.8);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: #1e40af;
}

.spelling-wrapper .play-button:active,
.spelling-dictionary-wrapper .play-button:active,
.spelling-practice .play-audio-button:active,
.dictionary-tools .play-audio-button:active,
.word-of-day-card .play-audio-button:active,
.word-details .play-audio-button:active {
  transform: scale(1.05);
}

/* ================== SKIP WORD BUTTON ================== */
.spelling-wrapper .skip-button,
.spelling-dictionary-wrapper .skip-button,
.spelling-practice .skip-button {
  margin: 16px 8px;
  padding: 16px 36px;
  border-radius: 22px;
  border: 5px solid #7c3aed;
  background: linear-gradient(135deg, #a855f7, #c084fc);
  color: white;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.spelling-wrapper .skip-button:hover,
.spelling-dictionary-wrapper .skip-button:hover,
.spelling-practice .skip-button:hover {
  transform: scale(1.12) rotate(2deg);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.7);
  background: linear-gradient(135deg, #9333ea, #a855f7);
  border-color: #6d28d9;
}

.spelling-wrapper .skip-button:active,
.spelling-dictionary-wrapper .skip-button:active,
.spelling-practice .skip-button:active {
  transform: scale(1.02);
}

.spelling-wrapper input[type="text"],
.spelling-dictionary-wrapper input[type="text"],
.spelling-practice .spelling-input {
  width: 100%;
  max-width: 500px;
  padding: 22px;
  font-size: 26px;
  font-weight: 600;
  border-radius: 24px;
  text-align: center;
  border: 5px solid #3b82f6;
  margin: 24px auto;
  background: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
  display: block;
}

.spelling-wrapper input[type="text"]:focus,
.spelling-dictionary-wrapper input[type="text"]:focus,
.spelling-practice .spelling-input:focus {
  outline: none;
  border-color: #1d4ed8;
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(29, 78, 216, 0.5);
}

.spelling-wrapper .check-button,
.spelling-wrapper .next-button,
.spelling-dictionary-wrapper .check-button,
.spelling-dictionary-wrapper .next-button,
.spelling-practice .check-button {
  padding: 18px 40px;
  margin: 8px;
  border-radius: 22px;
  border: 5px solid #059669;
  color: white;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #16a34a, #059669);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
  text-transform: uppercase;
  display: inline-block;
}

.spelling-wrapper .check-button:hover,
.spelling-wrapper .next-button:hover,
.spelling-dictionary-wrapper .check-button:hover,
.spelling-dictionary-wrapper .next-button:hover,
.spelling-practice .check-button:hover {
  transform: scale(1.12) rotate(-2deg);
  box-shadow: 0 8px 30px rgba(22, 163, 74, 0.7);
}

/* ================== BUTTON GROUP ================== */
.spelling-practice .button-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ================== HINT AND CORRECT WORD SECTIONS ================== */
.spelling-practice .hint-section,
.spelling-practice .correct-word {
  padding: 20px;
  border-radius: 20px;
  margin: 20px auto;
  max-width: 500px;
  font-size: 18px;
  font-weight: 600;
  border: 4px solid;
}

.spelling-practice .hint-section {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: #60a5fa;
  color: #1e3a8a;
}

.spelling-practice .correct-word {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-color: #10b981;
  color: #065f46;
  font-size: 22px;
}

.spelling-practice .correct-word.incorrect {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  border-color: #dc2626;
  color: #7f1d1d;
}

/* ================== FEEDBACK ================== */
.spelling-wrapper .feedback,
.spelling-dictionary-wrapper .feedback,
.spelling-practice .feedback {
  margin-top: 24px;
  padding: 16px;
  border-radius: 20px;
  font-size: 24px;
  font-weight: 800;
  display: inline-block;
}

.spelling-wrapper .correct,
.spelling-wrapper .incorrect,
.spelling-dictionary-wrapper .correct,
.spelling-dictionary-wrapper .incorrect,
.spelling-practice .feedback.correct,
.spelling-practice .feedback.incorrect {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 16px 32px;
  border-radius: 24px;
  border: 4px solid;
}

.spelling-wrapper .correct,
.spelling-dictionary-wrapper .correct,
.spelling-practice .feedback.correct {
  color: #16a34a;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-color: #10b981;
  animation: bounce 0.5s ease;
}

.spelling-wrapper .incorrect,
.spelling-dictionary-wrapper .incorrect,
.spelling-practice .feedback.incorrect {
  color: #dc2626;
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  border-color: #dc2626;
  animation: shake 0.5s ease;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-10px);
  }

  75% {
    transform: translateX(10px);
  }
}

.spelling-wrapper .definition,
.spelling-dictionary-wrapper .definition {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  padding: 20px;
  border-radius: 20px;
  border: 4px solid #60a5fa;
  text-align: center;
  margin: 16px 0;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

/* ================== SCORE DISPLAY ================== */
.spelling-practice .score-display {
  margin-top: 24px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  border-radius: 20px;
  border: 4px solid #2563eb;
  font-size: 20px;
  font-weight: 800;
  color: white;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
}

/* ================== STATS ================== */
.spelling-wrapper .stats,
.spelling-dictionary-wrapper .stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.spelling-wrapper .stats>div,
.spelling-dictionary-wrapper .stats>div {
  background: white;
  padding: 24px;
  border-radius: 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  border: 4px solid #60a5fa;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.25);
  transition: all 0.3s ease;
}

.spelling-wrapper .stats>div:hover,
.spelling-dictionary-wrapper .stats>div:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
}

/* ================== WORD OF THE DAY CARD ================== */
.dictionary-tools .word-of-day-card {
  background: linear-gradient(135deg, #dbeafe, #93c5fd, #60a5fa);
  border: 5px solid #3b82f6;
  border-radius: 28px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.dictionary-tools .word-of-day-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dictionary-tools .wod-content h2 {
  font-size: 42px;
  font-weight: 800;
  color: #1e40af;
  margin: 16px 0;
  text-shadow: 2px 2px 4px rgba(30, 64, 175, 0.2);
}

.dictionary-tools .wod-content p {
  font-size: 18px;
  color: #1e3a8a;
  margin: 12px 0;
  font-weight: 600;
}

/* ================== DICTIONARY SEARCH ================== */
.dictionary-tools .dictionary-search {
  margin-bottom: 32px;
}

.dictionary-tools .dictionary-search h3 {
  font-size: 22px;
  font-weight: 800;
  color: #1e40af;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dictionary-tools .search-input {
  width: 100%;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 24px;
  border: 5px solid #3b82f6;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.dictionary-tools .search-input:focus {
  outline: none;
  border-color: #1d4ed8;
  transform: scale(1.02);
  box-shadow: 0 6px 25px rgba(29, 78, 216, 0.5);
}

/* ================== WORDS LIST CONTAINER ================== */
.dictionary-tools .words-list-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

/* ================== AVAILABLE WORDS LIST (IMPROVED FOR KIDS) ================== */
.dictionary-tools .words-list {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 28px;
  padding: 24px;
  border: 5px solid #60a5fa;
  box-shadow: 0 8px 30px rgba(96, 165, 250, 0.4);
}

.dictionary-tools .words-list h4 {
  font-size: 20px;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 20px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px;
  background: white;
  border-radius: 16px;
  border: 3px solid #60a5fa;
}

.dictionary-tools .word-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-height: 500px;
  overflow-y: auto;
  padding: 16px;
}

.dictionary-tools .word-item {
  padding: 14px 24px;
  border-radius: 20px;
  border: 4px solid #60a5fa;
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
  color: #1e40af;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
  text-transform: capitalize;
}

.dictionary-tools .word-item:hover {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: white;
  border-color: #2563eb;
  transform: translateY(-4px) scale(1.1) rotate(-2deg);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.dictionary-tools .word-item.selected {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border-color: #1d4ed8;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.dictionary-tools .no-results {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  font-weight: 600;
  color: #1e3a8a;
}

/* ================== WORD DETAILS (DICTIONARY) ================== */
.dictionary-tools .word-details {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 28px;
  padding: 32px;
  border: 5px solid #60a5fa;
  box-shadow: 0 10px 35px rgba(96, 165, 250, 0.35);
}

.dictionary-tools .word-details h3 {
  font-size: 42px;
  font-weight: 800;
  color: #1e40af;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(30, 64, 175, 0.2);
  letter-spacing: 2px;
}

.dictionary-tools .detail-section {
  background: white;
  padding: 20px;
  border-radius: 20px;
  margin: 16px 0;
  border: 4px solid #60a5fa;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.2);
}

.dictionary-tools .detail-section strong {
  font-size: 16px;
  font-weight: 800;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.dictionary-tools .detail-section p {
  font-size: 18px;
  font-weight: 600;
  color: #1e3a8a;
  line-height: 1.6;
}

/* ================== DEFINE TAB ================== */
.spelling-wrapper .search-box,
.spelling-dictionary-wrapper .search-box {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.spelling-wrapper .search-box input,
.spelling-dictionary-wrapper .search-box input {
  flex: 1;
  padding: 16px;
  border-radius: 20px;
  border: 4px solid #3b82f6;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.spelling-wrapper .search-box input:focus,
.spelling-dictionary-wrapper .search-box input:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.4);
}

.spelling-wrapper .search-box button,
.spelling-dictionary-wrapper .search-box button {
  padding: 16px 24px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
}

.spelling-wrapper .search-box button:hover,
.spelling-dictionary-wrapper .search-box button:hover {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.7);
}

/* ================== DEFINITION RESULT (DICTIONARY PAGE WORDS) ================== */
.spelling-wrapper .definition-result,
.spelling-dictionary-wrapper .definition-result {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 32px;
  padding: 40px;
  border: 5px solid #60a5fa;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 10px 35px rgba(96, 165, 250, 0.35);
}

.spelling-dictionary-wrapper .definition-result h2 {
  font-size: 48px;
  font-weight: 800;
  color: #1e40af;
  margin-bottom: 12px;
  text-shadow: 2px 2px 4px rgba(30, 64, 175, 0.2);
  letter-spacing: 2px;
}

.spelling-dictionary-wrapper .definition-result .word-type {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #bfdbfe, #93c5fd);
  border-radius: 20px;
  display: inline-block;
  border: 3px solid #3b82f6;
}

.spelling-dictionary-wrapper .definition-result .word-definition {
  font-size: 20px;
  font-weight: 600;
  color: #1e3a8a;
  line-height: 1.8;
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 20px;
  border: 4px solid #60a5fa;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.2);
}

.spelling-dictionary-wrapper .definition-result .word-example {
  font-size: 18px;
  font-style: italic;
  color: #1e3a8a;
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 16px;
  border: 3px solid #60a5fa;
}

/* ================== PLACEHOLDER ================== */
.spelling-wrapper .definition-placeholder,
.spelling-dictionary-wrapper .definition-placeholder {
  padding: 60px;
  text-align: center;
  border-radius: 32px;
  border: 4px solid #60a5fa;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe, #93c5fd);
  box-shadow: 0 8px 30px rgba(96, 165, 250, 0.25);
  font-size: 18px;
  color: #4b5563;
}

/* ================== SYNONYMS ================== */
.spelling-wrapper .synonyms button {
  padding: 12px 24px;
  border-radius: 20px;
  border: 4px solid #60a5fa;
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
  color: #1e40af;
  margin: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.spelling-wrapper .synonyms button:hover {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: white;
  border-color: #2563eb;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* ================== RESPONSIVE DESIGN ================== */
@media (max-width: 768px) {
  .spelling-dictionary-wrapper .main-content {
    padding: 16px 12px;
  }

  .spelling-dictionary-wrapper .spelling-challenge,
  .spelling-dictionary-wrapper .definition-result {
    padding: 24px;
  }

  .spelling-dictionary-wrapper .word-of-the-day-word {
    font-size: 24px;
  }

  .spelling-dictionary-wrapper .tabs {
    flex-direction: column;
  }

  .spelling-dictionary-wrapper .tab {
    border-radius: 0;
  }

  .spelling-dictionary-wrapper .tab-content {
    border-radius: 0 0 32px 32px;
  }

  .spelling-dictionary-wrapper input[type="text"] {
    max-width: 100%;
  }

  .spelling-dictionary-wrapper .stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .spelling-wrapper .header,
  .spelling-dictionary-wrapper .header {
    height: 70px;
    padding: 0 16px;
  }

  .spelling-wrapper .header h1,
  .spelling-dictionary-wrapper .header h1 {
    font-size: 20px;
  }

  .spelling-dictionary-wrapper .definition-result h2 {
    font-size: 36px;
  }

  .spelling-dictionary-wrapper .definition-result .word-definition {
    font-size: 18px;
  }

  .dictionary-tools .words-list-container {
    grid-template-columns: 1fr;
  }

  .dictionary-tools .word-items {
    max-height: 300px;
  }

  .spelling-practice .play-audio-button {
    font-size: 18px;
    padding: 16px 32px;
    min-width: 200px;
  }
}

/* ================== RECENT SEARCHES ================== */
.spelling-wrapper .recent-searches,
.spelling-dictionary-wrapper .recent-searches {
  border-top: 4px solid #60a5fa;
  margin-top: 24px;
  padding-top: 24px;
  font-size: 14px;
  text-align: center;
}

.spelling-wrapper .recent-searches button,
.spelling-dictionary-wrapper .recent-search-button {
  padding: 12px 20px;
  border-radius: 16px;
  border: 3px solid #60a5fa;
  background: white;
  margin: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.2);
}

.spelling-wrapper .recent-searches button:hover,
.spelling-dictionary-wrapper .recent-search-button:hover {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* ================== STAR BURST ANIMATION ================== */
.spelling-dictionary-wrapper .star-burst-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1000;
  width: 200px;
  height: 200px;
}

.spelling-dictionary-wrapper .star-burst-star {
  position: absolute;
  font-size: 32px;
  top: 50%;
  left: 50%;
  animation: starBurst 1s ease-out forwards;
  transform-origin: center;
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(1) {
  animation-delay: 0s;
  transform: translate(-50%, -50%) rotate(0deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(2) {
  animation-delay: 0.05s;
  transform: translate(-50%, -50%) rotate(30deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(3) {
  animation-delay: 0.1s;
  transform: translate(-50%, -50%) rotate(60deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(4) {
  animation-delay: 0.15s;
  transform: translate(-50%, -50%) rotate(90deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(5) {
  animation-delay: 0.2s;
  transform: translate(-50%, -50%) rotate(120deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(6) {
  animation-delay: 0.25s;
  transform: translate(-50%, -50%) rotate(150deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(7) {
  animation-delay: 0.3s;
  transform: translate(-50%, -50%) rotate(180deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(8) {
  animation-delay: 0.35s;
  transform: translate(-50%, -50%) rotate(210deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(9) {
  animation-delay: 0.4s;
  transform: translate(-50%, -50%) rotate(240deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(10) {
  animation-delay: 0.45s;
  transform: translate(-50%, -50%) rotate(270deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(11) {
  animation-delay: 0.5s;
  transform: translate(-50%, -50%) rotate(300deg);
}

.spelling-dictionary-wrapper .star-burst-star:nth-child(12) {
  animation-delay: 0.55s;
  transform: translate(-50%, -50%) rotate(330deg);
}

@keyframes starBurst {
  0% {
    transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(0) scale(0);
    opacity: 1;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* ================== WORD OF THE DAY BANNER ================== */
.spelling-dictionary-wrapper .word-of-the-day-banner {
  background: linear-gradient(135deg, #dbeafe, #93c5fd, #60a5fa);
  border: 4px solid #3b82f6;
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.spelling-dictionary-wrapper .word-of-the-day-banner:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 35px rgba(59, 130, 246, 0.6);
}

.spelling-dictionary-wrapper .word-of-the-day-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1e40af;
  margin-bottom: 8px;
}

.spelling-dictionary-wrapper .word-of-the-day-word {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.spelling-dictionary-wrapper .word-of-the-day-hint {
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
}

/* ================== SYNONYM WEB ================== */
.spelling-dictionary-wrapper .synonym-web {
  margin-top: 20px;
}

.spelling-dictionary-wrapper .synonym-bubble {
  padding: 12px 24px;
  border-radius: 20px;
  border: 4px solid #60a5fa;
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
  color: #1e40af;
  margin: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.spelling-dictionary-wrapper .synonym-bubble:hover {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: white;
  border-color: #2563eb;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* ================== LEARNING TIPS ================== */
.spelling-wrapper .learning-tips,
.spelling-dictionary-wrapper .learning-tips {
  max-width: 900px;
  margin: 32px auto 0 auto;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(135deg, #dbeafe, #93c5fd, #60a5fa);
  border: 4px solid #3b82f6;
  text-align: center;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.spelling-wrapper .learning-tips-title,
.spelling-dictionary-wrapper .learning-tips-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1e40af;
  margin-bottom: 16px;
}

.spelling-wrapper .learning-tips ul,
.spelling-dictionary-wrapper .learning-tips ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #374151;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  display: inline-block;
  text-align: left;
}

/* static/css/styles/Storytelling.css */
@import './theme.css';

/* ================================
   STORYTELLING PAGE WRAPPER
   NOTE: All styles in this file are scoped to .storytelling-wrapper
   to prevent conflicts with other pages like LandingPage
================================ */

/* Wrapper - only affects elements with this class */
.storytelling-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #4F8EF7 0%, #5BA3FF 50%, #74B4FF 100%);
  padding: 24px;
  font-family: var(--body-font);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Main content container for consistent alignment - only direct children that are sections */
.storytelling-wrapper>.current-level-session,
.storytelling-wrapper>.lesson-header,
.storytelling-wrapper>.lesson-grid {
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
}

/* HEADER */
.storytelling-wrapper .lesson-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px 24px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(79, 142, 247, 0.2);
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.storytelling-wrapper .lesson-header h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #2563eb;
}

.storytelling-wrapper .lesson-header a {
  color: #4F8EF7;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.storytelling-wrapper .lesson-header a:hover {
  color: #2563eb;
  transform: scale(1.05);
}

.storytelling-wrapper .lesson-header small {
  font-size: 12px;
  color: #5BA3FF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.storytelling-wrapper .lesson-header span {
  font-size: 13px;
  color: #2563eb;
  font-weight: 600;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  padding: 8px 16px;
  border-radius: 12px;
  border: 2px solid rgba(79, 142, 247, 0.3);
}

/* CURRENT LEVEL SESSION */
.storytelling-wrapper .current-level-session {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(79, 142, 247, 0.2);
  width: 100%;
  max-width: 800px;
  display: flex;
  gap: 32px;
  align-items: center;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.storytelling-wrapper .current-level-session h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #2563eb;
}

.storytelling-wrapper .current-level-session h5 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #4F8EF7;
}

/* GRID */
.storytelling-wrapper .lesson-grid {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 0;
  max-width: 800px;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* LEFT PANEL */
.storytelling-wrapper .left-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* RIGHT PANEL */
.storytelling-wrapper .right-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  width: 100%;
}

.storytelling-wrapper .right-panel.full-width {
  max-width: 800px;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* CARD */
.storytelling-wrapper .card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(79, 142, 247, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  transition: all 0.3s ease;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.storytelling-wrapper .card:hover {
  box-shadow: 0 12px 32px rgba(79, 142, 247, 0.3);
  transform: translateY(-2px);
}

.storytelling-wrapper .card h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #2563eb;
}

.storytelling-wrapper .card p {
  font-size: 15px;
  line-height: 1.7;
  color: #1e3a8a;
  margin: 0;
}

/* VIDEO CARD */
.storytelling-wrapper .video-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.storytelling-wrapper .video-media {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #1e3a8a;
  box-shadow: 0 8px 24px rgba(79, 142, 247, 0.3);
}

.storytelling-wrapper .video-media--placeholder {
  height: 0;
  padding-bottom: 56.25%;
  /* 16:9 placeholder area for spinner while session loads */
}

.storytelling-wrapper .video-media__player {
  display: block;
  width: 100%;
  height: auto;
}

.storytelling-wrapper .video-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 58, 138, 0.4);
  pointer-events: none;
}

.storytelling-wrapper .video-loading-container {
  position: relative;
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(79, 142, 247, 0.3);
}

.storytelling-wrapper .video-loading-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #FFD700;
  animation: videoSpin 0.9s linear infinite;
  filter: drop-shadow(0 6px 18px rgba(255, 215, 0, 0.4));
}

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

.storytelling-wrapper .video-card video {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  background: #1e3a8a;
  box-shadow: 0 8px 24px rgba(79, 142, 247, 0.3);
}

.storytelling-wrapper .video-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB, #90CAF9);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 14px;
  color: #1e3a8a;
  text-align: center;
  padding: 24px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(79, 142, 247, 0.2);
}

.storytelling-wrapper .video-placeholder p {
  text-align: center;
  margin: 0;
  color: #2563eb;
  font-weight: 600;
}

.storytelling-wrapper .audio-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #2563eb;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.storytelling-wrapper .audio-btn:hover {
  color: #1e40af;
  transform: scale(1.05);
}

/* QUIZ */
.storytelling-wrapper .quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 3px solid #BBDEFB;
}

.storytelling-wrapper .quiz-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2563eb;
  margin: 0;
}

.storytelling-wrapper .score-badge {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(255, 165, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

/* OPTIONS */
.storytelling-wrapper .option-btn {
  width: 100%;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  border: 3px solid #90CAF9;
  border-radius: 16px;
  padding: 16px 20px;
  margin: 10px 0;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #1e3a8a;
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.15);
}

.storytelling-wrapper .option-btn:hover {
  border-color: #4F8EF7;
  background: linear-gradient(135deg, #BBDEFB, #90CAF9);
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 6px 20px rgba(79, 142, 247, 0.3);
}

.storytelling-wrapper .option-btn.selected {
  background: linear-gradient(135deg, #4F8EF7, #2563eb);
  border-color: #1e40af;
  color: white;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(79, 142, 247, 0.5);
  transform: scale(1.03);
}

/* FEEDBACK */
.storytelling-wrapper .feedback {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.storytelling-wrapper .feedback.correct {
  background: linear-gradient(135deg, #C8E6C9, #A5D6A7);
  border: 3px solid #66BB6A;
  color: #1B5E20;
}

.storytelling-wrapper .feedback.wrong {
  background: linear-gradient(135deg, #FFCDD2, #EF9A9A);
  border: 3px solid #EF5350;
  color: #B71C1C;
}

/* BUTTONS */
.storytelling-wrapper .btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #4F8EF7, #2563eb);
  border: none;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  border-radius: 16px;
  margin-top: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(79, 142, 247, 0.4);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.5;
  text-decoration: none;
  display: block;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.storytelling-wrapper .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.storytelling-wrapper .btn-primary:hover::before {
  left: 100%;
}

.storytelling-wrapper .btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(79, 142, 247, 0.5);
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

.storytelling-wrapper .btn-primary:active {
  transform: translateY(-1px) scale(1.01);
}

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

/* Result card specific button styles */
.storytelling-wrapper .result-card .btn-primary {
  margin-top: 0;
  padding: 18px 28px;
  font-size: 17px;
  width: 100%;
  text-align: center;
  display: block;
  box-sizing: border-box;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.5;
  margin-left: 0;
  margin-right: 0;
}

.storytelling-wrapper .result-card .btn-primary,
.storytelling-wrapper .result-card .btn-primary:link,
.storytelling-wrapper .result-card .btn-primary:visited {
  color: white;
  text-decoration: none;
}

.storytelling-wrapper .result-card a.btn-primary {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.storytelling-wrapper .btn-secondary {
  width: 100%;
  padding: 12px 20px;
  border-radius: 14px;
  border: 3px solid #90CAF9;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.2);
}

.storytelling-wrapper .btn-secondary:hover {
  background: linear-gradient(135deg, #BBDEFB, #90CAF9);
  border-color: #4F8EF7;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 142, 247, 0.3);
}

.storytelling-wrapper .btn-outline {
  width: 100%;
  padding: 12px 20px;
  border-radius: 14px;
  border: 3px solid #90CAF9;
  background: transparent;
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.storytelling-wrapper .btn-outline:hover {
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(79, 142, 247, 0.2);
}

/* Utility classes */
.storytelling-wrapper .mt-4 {
  margin-top: 16px;
}

.storytelling-wrapper .btn-primary.active {
  opacity: 1;
  cursor: pointer;
}

.storytelling-wrapper .btn-primary.inactive {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Error handling */
.storytelling-wrapper .error-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.storytelling-wrapper .error-wrapper .error-message {
  max-width: 500px;
  margin-bottom: 20px;
  text-align: center;
  color: #B71C1C;
  padding: 20px;
  background: linear-gradient(135deg, #FFCDD2, #EF9A9A);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  border: 3px solid #EF5350;
  box-shadow: 0 4px 16px rgba(239, 83, 80, 0.3);
}

.storytelling-wrapper .error-message {
  text-align: center;
  color: #B71C1C;
  padding: 20px;
  background: linear-gradient(135deg, #FFCDD2, #EF9A9A);
  border-radius: 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  border: 3px solid #EF5350;
  box-shadow: 0 4px 16px rgba(239, 83, 80, 0.3);
}

/* RESULT PAGE */
.storytelling-wrapper .result-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4F8EF7 0%, #5BA3FF 50%, #74B4FF 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.storytelling-wrapper .result-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.storytelling-wrapper .result-card {
  background: rgba(255, 255, 255, 0.98);
  padding: 48px 40px;
  border-radius: 28px;
  text-align: center;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 20px 60px rgba(79, 142, 247, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.9);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease-out;
  border: 3px solid rgba(255, 215, 0, 0.3);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.storytelling-wrapper .result-card h2 {
  font-size: 32px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #4F8EF7, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.storytelling-wrapper .result-card p {
  font-size: 16px;
  color: #1e3a8a;
  line-height: 1.7;
  font-weight: 500;
}

.storytelling-wrapper .result-card svg {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  color: #FFD700;
  filter: drop-shadow(0 6px 20px rgba(255, 215, 0, 0.5));
  animation: bounce 1.2s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.storytelling-wrapper .trophy {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 30px rgba(255, 165, 0, 0.5);
  animation: bounce 1.2s ease-in-out infinite;
  border: 3px solid rgba(255, 255, 255, 0.8);
}

/* STATS */
.storytelling-wrapper .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.storytelling-wrapper .stat-box {
  padding: 16px 12px;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid #90CAF9;
  box-shadow: 0 4px 12px rgba(79, 142, 247, 0.2);
  color: #1e3a8a;
}

.storytelling-wrapper .stat-box span {
  font-size: 12px;
  margin-top: 4px;
  color: #4F8EF7;
  font-weight: 600;
}

/* ACTIONS */
.storytelling-wrapper .actions {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

/* Responsive Design */
@media (max-width: 768px) {

  .storytelling-wrapper .current-level-session,
  .storytelling-wrapper .lesson-header {
    max-width: 100%;
    padding: 18px;
  }

  .storytelling-wrapper .lesson-grid {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }

  .storytelling-wrapper .left-panel,
  .storytelling-wrapper .right-panel,
  .storytelling-wrapper .right-panel.full-width {
    max-width: 100%;
  }

  .storytelling-wrapper .result-card {
    padding: 36px 28px;
    max-width: 100%;
  }

  .storytelling-wrapper .result-card h2 {
    font-size: 28px;
  }

  .storytelling-wrapper .option-btn {
    padding: 14px 18px;
    font-size: 14px;
  }

  .storytelling-wrapper .card {
    padding: 24px;
  }
}

/* static/css/styles/Subscription.css */
.subscription-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #4A90E2 0%, #5BA3F5 50%, #7BB8FF 100%);
  font-family: var(--body-font);
}

/* Container */
.subscription-page .subscription-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header */
.subscription-page .subscription-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
  text-align: center;
}

.subscription-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.2s;
  align-self: flex-start;
  opacity: 0.9;
}

.subscription-page .back-link:hover {
  opacity: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subscription-page .subscription-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.subscription-page .subscription-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

/* Grid layout */
.subscription-page .subscription-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .subscription-page .subscription-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Cards */
.subscription-page .card {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.subscription-page .card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.subscription-page .card.clickable {
  cursor: pointer;
}

.subscription-page .card.clickable:hover {
  border-color: rgba(74, 144, 226, 0.5);
}

/* Plan Boxes */
.subscription-page .plan-box,
.subscription-page .premium-plan,
.subscription-page .annual-plan {
  border: 3px solid #FFD93D;
  background: linear-gradient(135deg, #FFF9E6 0%, #FFF4CC 100%);
  padding: 1.5rem;
  border-radius: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 8px 24px rgba(255, 217, 61, 0.2);
}

.subscription-page .premium-plan:hover,
.subscription-page .annual-plan:hover {
  box-shadow: 0 12px 32px rgba(255, 217, 61, 0.3);
  transform: translateY(-4px);
}

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

.subscription-page h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2C5F8D;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subscription-page .section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #2C5F8D;
  font-weight: 700;
}

.subscription-page h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: #2C5F8D;
  font-weight: 600;
}

.subscription-page .plan-status {
  font-size: 0.875rem;
  color: #5A6C7D;
}

.subscription-page .plan-price {
  font-size: 1.875rem;
  color: #2C5F8D;
  font-weight: 700;
}

.subscription-page .plan-period {
  font-size: 0.875rem;
  color: #5A6C7D;
}

/* Plan Tags */
.subscription-page .tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.subscription-page .tag.save {
  background: linear-gradient(135deg, #4CAF50 0%, #45A049 100%);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.subscription-page .text-sm {
  font-size: 0.875rem;
  color: #5A6C7D;
  margin-bottom: 1rem;
}

.subscription-page .note {
  font-size: 0.75rem;
  color: #5A6C7D;
  text-align: center;
  margin-top: 0.75rem;
}

/* Features */
.subscription-page .plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.subscription-page .plan-features .feature {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #2C5F8D;
}

.subscription-page .plan-warning {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 2px solid #FFB84D;
  background-color: #FFF9E6;
  font-size: 0.875rem;
  border-radius: 0.75rem;
}

.subscription-page .plan-warning .reset-info {
  color: #5A6C7D;
  font-size: 0.875rem;
}

/* Buttons */
.subscription-page button {
  cursor: pointer;
  padding: 0.85rem 1.5rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  transition: all 0.3s;
  font-weight: 600;
}

.subscription-page .upgrade-btn {
  width: 100%;
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.subscription-page .upgrade-btn:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
  transform: translateY(-2px);
}

.subscription-page .upgrade-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.subscription-page .annual-btn {
  width: 100%;
  background-color: #fff;
  border: 2px solid #4A90E2;
  color: #4A90E2;
  font-weight: 600;
}

.subscription-page .annual-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  border-color: #357ABD;
  transform: translateY(-2px);
}

.subscription-page .annual-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.subscription-page .add-payment-btn,
.subscription-page .contact-btn {
  width: 100%;
  background-color: #fff;
  border: 2px solid #4A90E2;
  color: #4A90E2;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.subscription-page .add-payment-btn:hover,
.subscription-page .contact-btn:hover {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  border-color: #357ABD;
  transform: translateY(-2px);
}

/* Payment & Billing Info */
.subscription-page .payment-info,
.subscription-page .billing-info {
  text-align: center;
  color: #2C5F8D;
  padding: 1rem;
  border: 2px solid rgba(74, 144, 226, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(227, 242, 253, 0.8) 100%);
  border-radius: 1rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.subscription-page .payment-info:hover,
.subscription-page .billing-info:hover {
  border-color: rgba(74, 144, 226, 0.6);
  background: linear-gradient(135deg, #ffffff 0%, #E3F2FD 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.subscription-page .payment-type {
  font-size: 0.875rem;
  color: #5A6C7D;
  margin-top: 0.25rem;
}

.subscription-page .billing-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.subscription-page .billing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border: 2px solid rgba(74, 144, 226, 0.2);
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s;
}

.subscription-page .billing-item:hover {
  border-color: rgba(74, 144, 226, 0.4);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.subscription-page .billing-date {
  font-size: 0.875rem;
  color: #5A6C7D;
}

.subscription-page .billing-amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2C5F8D;
  margin-top: 0.25rem;
}

.subscription-page .billing-status {
  font-size: 0.875rem;
  padding: 0.35rem 0.75rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #4CAF50 0%, #45A049 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

/* Sidebar */
.subscription-page .subscription-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.subscription-page .sidebar .plan-comparison .comparison-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  color: #2C5F8D;
}

.subscription-page .usage-bar .usage-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: #2C5F8D;
  font-weight: 600;
}

.subscription-page .usage-bar .usage-track {
  width: 100%;
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  height: 1rem;
  border: 2px solid #4A90E2;
  border-radius: 1rem;
  overflow: hidden;
}

.subscription-page .usage-bar .usage-fill {
  background: linear-gradient(135deg, #FFD93D 0%, #FFC107 100%);
  height: 100%;
  transition: width 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subscription-page .reset-count {
  font-size: 0.75rem;
  color: #5A6C7D;
  margin-top: 0.5rem;
}

.subscription-page .faq-list div {
  border-top: 1px solid rgba(74, 144, 226, 0.2);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.subscription-page .faq-list div:first-child {
  border-top: none;
  padding-top: 0;
}

.subscription-page .faq-list div:hover {
  background: linear-gradient(135deg, rgba(227, 242, 253, 0.5) 0%, rgba(187, 222, 251, 0.3) 100%);
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 0.75rem;
}

.subscription-page .faq-list div>div:first-child {
  font-weight: 600;
  color: #2C5F8D;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subscription-page .faq-list div.expanded {
  background: linear-gradient(135deg, rgba(227, 242, 253, 0.8) 0%, rgba(187, 222, 251, 0.5) 100%);
  border-radius: 0.75rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.subscription-page .faq-list div.expanded>div:first-child {
  color: #357ABD;
}

.subscription-page .faq-list p {
  margin-top: 0.5rem;
  color: #5A6C7D;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Payment Method Modal */
.payment-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 95, 141, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.payment-modal {
  background: white;
  border-radius: 1.5rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(74, 144, 226, 0.3);
}

.payment-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid #E3F2FD;
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  border-radius: 1.5rem 1.5rem 0 0;
}

.payment-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2C5F8D;
  margin: 0;
}

.payment-modal-close {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #4A90E2;
  cursor: pointer;
  color: #4A90E2;
  padding: 0.5rem;
  border-radius: 0.75rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.payment-modal-close:hover {
  background: #4A90E2;
  color: white;
  transform: scale(1.05);
}

.payment-modal-form {
  padding: 1.5rem;
}

.payment-modal-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  border: 2px solid #4CAF50;
  border-radius: 0.75rem;
  color: #1B5E20;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.payment-modal-card-section {
  margin-bottom: 1.5rem;
}

.payment-modal-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #2C5F8D;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.payment-modal-card-element {
  padding: 1rem;
  border: 2px solid #BBDEFB;
  border-radius: 0.75rem;
  background: white;
  transition: all 0.2s;
}

.payment-modal-card-element:focus-within {
  border-color: #4A90E2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
  outline: none;
}

.payment-modal-error {
  padding: 0.75rem;
  background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
  border: 2px solid #F44336;
  border-radius: 0.75rem;
  color: #B71C1C;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.payment-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.payment-modal-cancel,
.payment-modal-submit {
  padding: 0.85rem 1.5rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.payment-modal-cancel {
  background: #E3F2FD;
  color: #2C5F8D;
  border: 2px solid #BBDEFB;
}

.payment-modal-cancel:hover:not(:disabled) {
  background: #BBDEFB;
  transform: translateY(-2px);
}

.payment-modal-submit {
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.payment-modal-submit:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
  transform: translateY(-2px);
}

.payment-modal-cancel:disabled,
.payment-modal-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* static/css/styles/Understanding.css */
/* Understanding Dashboard Styles - Bright & Child-Friendly Blue Theme */

.understanding-dashboard {
  min-height: 100vh;
  background: linear-gradient(225deg, #e0f2fe 0%, #dbeafe 30%, #e0e7ff 60%, #fae8ff 100%);
  font-family: var(--body-font);
  color: #111827;
}

/* Header */
.understanding-header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(147, 197, 253, 0.8);
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.1);
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0;
}

.understanding-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.understanding-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.understanding-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  color: #4b5563;
  transition: background 0.15s ease;
  text-decoration: none;
}

.back-button:hover {
  background: rgba(59, 130, 246, 0.1);
}

.back-icon {
  width: 18px;
  height: 18px;
  color: #3b82f6;
}

.understanding-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.understanding-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

/* Main container */
.understanding-main {
  max-width: 1024px;
  margin: 0 auto;
  padding: 28px 20px;
}

/* Stats Section - Bright and playful */
.understanding-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(191, 219, 254, 0.85);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.18);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: #6b7280;
}

/* Levels Section - Fun and inviting */
.understanding-levels {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.12);
  padding: 24px;
  border: 1px solid rgba(191, 219, 254, 0.85);
}

.section-title {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #111827;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.level-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #bae6fd;
  border-radius: 20px;
  padding: 20px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.level-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.level-card:hover::before {
  opacity: 1;
}

.level-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.level-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.level-icon {
  flex-shrink: 0;
  font-size: 48px;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}

.level-info {
  flex: 1;
}

.level-name {
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px 0;
}

.level-topic {
  font-size: 13px;
  color: #3b82f6;
  font-weight: 600;
  margin: 0;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.level-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.level-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  padding: 6px 10px;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 8px;
}

.level-detail-item svg {
  width: 16px;
  height: 16px;
  color: #3b82f6;
}

/* Session Styles - Bright and engaging */
.understanding-session {
  min-height: 100vh;
  background: linear-gradient(225deg, #e0f2fe 0%, #dbeafe 30%, #e0e7ff 60%, #fae8ff 100%);
  font-family: var(--body-font);
}

.session-header {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(147, 197, 253, 0.8);
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.1);
  padding: 0;
}

.session-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.session-title {
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.session-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 4px 0 0 0;
}

.session-progress-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.session-score {
  font-size: 14px;
  font-weight: 600;
  color: #3b82f6;
  padding: 6px 12px;
  background: #fff;
  border-radius: 12px;
  border: 2px solid #bae6fd;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(191, 219, 254, 0.4);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.session-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 20px;
}

/* Question Card - Vibrant and playful */
.question-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.12);
  padding: 32px;
  border: 1px solid rgba(191, 219, 254, 0.85);
}

.story-section {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 50%, #f3e8ff 100%);
  border-radius: 20px;
  border: 3px solid #93c5fd;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
  position: relative;
  overflow: hidden;
}

.story-section::before {
  content: '✨';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 24px;
  animation: twinkle 2s ease-in-out infinite;
}

.story-section::after {
  content: '✨';
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 24px;
  animation: twinkle 2s ease-in-out infinite 1s;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.story-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.story-text {
  font-size: 18px;
  line-height: 1.6;
  color: #111827;
  margin: 0;
  font-weight: 500;
}

.question-section {
  margin-top: 24px;
}

.question-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 16px;
  border-left: 4px solid #f59e0b;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.2);
}

.question-text {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  flex: 1;
}

/* Answer Options - Bright and interactive */
.answer-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.answer-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 16px;
  color: #111827;
  position: relative;
  overflow: hidden;
}

.answer-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.answer-option:hover:not(:disabled)::before {
  opacity: 1;
}

.answer-option:hover:not(:disabled) {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: #3b82f6;
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.answer-option.selected {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.answer-option.correct {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #22c55e;
  color: #15803d;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.answer-option.incorrect {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #ef4444;
  color: #991b1b;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.answer-option:disabled {
  cursor: not-allowed;
}

.option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  z-index: 1;
}

.answer-option.correct .option-letter {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.answer-option.incorrect .option-letter {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.option-text {
  flex: 1;
  font-weight: 500;
  z-index: 1;
}

.option-icon {
  flex-shrink: 0;
  color: #22c55e;
  z-index: 1;
  animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Hint Section - Cheerful */
.hint-section {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-radius: 12px;
  border: 2px dashed #93c5fd;
  color: #1e40af;
  font-size: 14px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.hint-section svg {
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Feedback Section - Celebratory */
.feedback-section {
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.feedback-section.correct {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 2px solid #22c55e;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
}

.feedback-section.incorrect {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #ef4444;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

.feedback-icon {
  font-size: 32px;
  flex-shrink: 0;
  animation: bounceIn 0.5s ease;
}

.feedback-text {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  flex: 1;
}

.feedback-section.correct .feedback-text {
  color: #15803d;
}

.feedback-section.incorrect .feedback-text {
  color: #991b1b;
}

/* Action Buttons - Playful and inviting */
.question-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.submit-button,
.next-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.submit-button::before,
.next-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.submit-button:hover::before,
.next-button:hover::before {
  width: 300px;
  height: 300px;
}

.submit-button {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.next-button {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.next-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

/* Celebration Card - Extra festive */
.celebration-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
  padding: 48px;
  text-align: center;
  border: 2px solid #93c5fd;
  max-width: 600px;
  margin: 40px auto;
  position: relative;
  overflow: hidden;
}

.celebration-card::before {
  content: '🎉';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 40px;
  animation: rotate 3s linear infinite;
}

.celebration-card::after {
  content: '🌟';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 40px;
  animation: rotate 3s linear infinite reverse;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.celebration-icon {
  font-size: 80px;
  margin-bottom: 24px;
  animation: bounce 1s ease infinite;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.celebration-title {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px 0;
}

.celebration-message {
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 32px;
}

.celebration-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 50%, #f3e8ff 100%);
  border-radius: 20px;
  border: 2px solid #93c5fd;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

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

.celebration-stat-value {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.celebration-stat-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.celebration-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.primary-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.secondary-button:hover {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
  border-color: #3b82f6;
  color: #3b82f6;
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {

  .understanding-header-inner,
  .session-header-inner {
    padding: 0 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .understanding-main,
  .session-main {
    padding: 20px 16px;
  }

  .understanding-stats {
    grid-template-columns: 1fr;
  }

  .levels-grid {
    grid-template-columns: 1fr;
  }

  .question-card {
    padding: 20px;
  }

  .story-section {
    padding: 16px;
  }

  .story-icon {
    font-size: 48px;
  }

  .story-text {
    font-size: 16px;
  }

  .question-text {
    font-size: 18px;
  }

  .answer-option {
    padding: 12px 16px;
    font-size: 15px;
  }

  .celebration-card {
    padding: 32px 20px;
  }

  .celebration-icon {
    font-size: 64px;
  }

  .celebration-title {
    font-size: 24px;
  }

  .celebration-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .celebration-actions {
    width: 100%;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    justify-content: center;
  }
}

/* static/css/styles/GameModal.css */
@import './theme.css';

.game-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease-out;
}

.game-modal-container {
  width: 95%;
  height: 95%;
  max-width: 1400px;
  max-height: 900px;
  background: white;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease-out;
  overflow: hidden;
}

.game-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--leno-gradient-primary, linear-gradient(135deg, #2563eb, #3b82f6));
  color: white;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.game-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}

.game-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1e293b;
  transition: all 0.2s ease;
  z-index: 10;
}

.game-modal-close:hover {
  background: rgba(0, 0, 0, 0.15);
  transform: scale(1.1);
}

.game-modal {
  background: white;
  border-radius: 24px;
  padding: 24px;
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease-out;
  position: relative;
}

.game-modal-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-modal-expired {
  background: white;
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease-out;
}

.game-modal-expired h2 {
  font-size: 32px;
  color: var(--leno-text-primary, #1e293b);
  margin-bottom: 16px;
}

.game-modal-expired p {
  font-size: 18px;
  color: var(--leno-text-secondary, #475569);
  margin-bottom: 12px;
  line-height: 1.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Game completion screen */
.game-complete {
  text-align: center;
  padding: 2rem;
}

.game-trophy-icon {
  width: 80px;
  height: 80px;
  color: #FFD700;
  margin: 0 auto 1.5rem;
}

.game-score {
  margin: 1.5rem 0;
}

.score-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--leno-text-primary, #1e293b);
}

.score-percentage {
  font-size: 1.25rem;
  color: var(--leno-text-secondary, #475569);
  margin-top: 0.5rem;
}

.game-message {
  font-size: 1.125rem;
  color: var(--leno-text-secondary, #475569);
  margin: 1.5rem 0;
}

.game-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.game-button {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.game-button-primary {
  background: var(--leno-gradient-primary, linear-gradient(135deg, #2563eb, #3b82f6));
  color: white;
}

.game-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.game-button-secondary {
  background: #f3f4f6;
  color: #1e293b;
  border: 1px solid #e5e7eb;
}

.game-button-secondary:hover {
  background: #e5e7eb;
}

@media (max-width: 768px) {
  .game-modal {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
    padding: 16px;
  }

  .game-modal-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .game-modal-header {
    padding: 12px 16px;
  }

  .game-timer {
    font-size: 14px;
  }

  .game-actions {
    flex-direction: column;
  }

  .game-button {
    width: 100%;
  }
}

/* static/css/styles/BoggleGame.css */
@import './theme.css';

.boggle {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.boggle-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  padding: 16px;
}

.boggle-title h2 {
  margin: 6px 0 4px 0;
  font-size: 22px;
  line-height: 1.15;
  color: var(--leno-text-primary, #1e293b);
}

.boggle-title p {
  margin: 0;
  font-size: 13px;
  color: var(--leno-text-secondary, #475569);
}

.boggle-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.boggle-stats {
  display: flex;
  gap: 12px;
}

.boggle-stat {
  min-width: 110px;
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
}

.boggle-stat__label {
  font-size: 12px;
  color: var(--leno-text-muted, #64748b);
  font-weight: 600;
}

.boggle-stat__value {
  font-size: 22px;
  font-weight: 800;
  color: var(--leno-text-primary, #1e293b);
  margin-top: 4px;
}

.boggle-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.boggle-boardWrap {
  background: white;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.08);
}

.boggle-current {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.boggle-current__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--leno-text-muted, #64748b);
}

.boggle-current__word {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(99, 102, 241, 0.10));
  border: 1px solid rgba(37, 99, 235, 0.15);
  padding: 8px 12px;
  border-radius: 999px;
}

.boggle-board {
  user-select: none;
  -webkit-user-select: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b1220, #0f1a2b);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.boggle-tile {
  height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  color: white;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.08s ease, border-color 0.12s ease, background 0.12s ease;
}

.boggle-tile:active {
  transform: scale(0.98);
}

.boggle-tile.is-selected {
  border-color: rgba(34, 211, 238, 0.95);
  background: radial-gradient(circle at 30% 20%, rgba(34,211,238,0.35), rgba(99,102,241,0.18));
  box-shadow: 0 12px 22px rgba(34, 211, 238, 0.18);
}

.boggle-status {
  margin-top: 12px;
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--leno-text-muted, #64748b);
}

.boggle-status.is-good {
  color: #059669;
}

.boggle-status.is-bad {
  color: #dc2626;
}

.boggle-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.boggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: white;
  color: #1e293b;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.boggle-btn:hover {
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.10);
}

.boggle-btn:active {
  transform: translateY(1px);
}

.boggle-btn--primary {
  background: var(--leno-gradient-primary, linear-gradient(135deg, #2563eb, #3b82f6, #06b6d4));
  color: white;
  border: none;
}

.boggle-btn--ghost {
  background: rgba(255, 255, 255, 0.7);
}

.boggle-found {
  background: white;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.boggle-found__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.boggle-found__header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--leno-text-primary, #1e293b);
}

.boggle-found__hint {
  font-size: 12px;
  color: var(--leno-text-muted, #64748b);
}

.boggle-found__empty {
  font-size: 13px;
  color: var(--leno-text-secondary, #475569);
  background: rgba(37, 99, 235, 0.06);
  border: 1px dashed rgba(37, 99, 235, 0.22);
  border-radius: 14px;
  padding: 14px;
}

.boggle-found__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.boggle-chip {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.22);
}

@media (max-width: 900px) {
  .boggle-main {
    grid-template-columns: 1fr;
  }

  .boggle-stat {
    min-width: 96px;
  }

  .boggle-tile {
    height: 58px;
  }
}




/* static/css/styles/LessonDecision.css */
/* Lesson Decision UI Styles */
.lesson-decision-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
}

.lesson-decision-modal {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  text-align: center;
  animation: slideUp 0.3s ease-out;
}

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

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

.lesson-score-summary {
  margin-bottom: 2rem;
}

.lesson-score-summary h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
}

.score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.score-value {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(to right, #9333ea, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.score-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-breakdown {
  margin-top: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.75rem;
  color: #4b5563;
  font-size: 1rem;
}

.feedback-message {
  font-size: 1.125rem;
  color: #374151;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.mastery-ui .feedback-message {
  color: #065f46;
  font-weight: 500;
}

.progress-ui .feedback-message {
  color: #166534;
  font-weight: 500;
}

.support-ui .feedback-message {
  color: #92400e;
  font-weight: 500;
}

.revision-hint {
  background: #fffbeb;
  border: 2px solid #fcd34d;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #78350f;
  font-size: 0.9375rem;
}

.decision-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin-top: 2rem;
}

.decision-buttons .btn-primary,
.decision-buttons .btn-secondary {
  min-width: 250px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.decision-buttons .btn-primary {
  background: linear-gradient(to right, #9333ea, #ec4899);
  color: white;
}

.decision-buttons .btn-primary:hover {
  box-shadow: 0 10px 15px rgba(147, 51, 234, 0.3);
  transform: translateY(-2px);
}

.decision-buttons .btn-secondary {
  background: white;
  color: #9333ea;
  border: 2px solid #9333ea;
}

.decision-buttons .btn-secondary:hover {
  background: #f5f3ff;
  transform: translateY(-2px);
}

/* Timer badge in question header */
.timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.timer-badge.warning {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .lesson-decision-modal {
    padding: 1.5rem;
  }

  .score-value {
    font-size: 3rem;
  }

  .decision-buttons .btn-primary,
  .decision-buttons .btn-secondary {
    min-width: 100%;
    width: 100%;
  }
}

