@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Poppins:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* --- PREMIUM LIGHT THEME VARIABLES --- */
:root {
  --lime-green: #CCFF00;
  --lime-green-glow: rgba(204, 255, 0, 0.4);
  
  --bg-primary: #F8FAFC;       /* Premium soft white-gray */
  --bg-secondary: #FFFFFF;     /* Pure white for card layers */
  --text-primary: #0F172A;     /* Slate 900 for sharp text */
  --text-secondary: #475569;   /* Slate 600 for subtext */
  
  --panel-bg: rgba(255, 255, 255, 0.7);
  --panel-border: rgba(15, 23, 42, 0.06);
  --white: #FFFFFF;
  --black: #000000;
  
  /* Template Service Accents */
  --color-games: #27AE60;      /* Darker Green for light-theme contrast */
  --color-extras: #D35400;     /* Darker Orange for contrast */
  --color-quizzes: #2980B9;    /* Darker Blue */
  --color-career: #5D6D7E;     /* Darker Slate */
  
  --font-display: 'Poppins', sans-serif;
  --font-sans: 'Inter', sans-serif;
}

/* --- RESET & GLOBAL STYLES --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  /* Ambient glowing meshes in the background for futuristic startup feel */
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(204, 255, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  word-break: break-word;
  overflow-wrap: break-word;
}

p, span, li, a {
  word-break: break-word;
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-sans);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--lime-green);
}

/* --- GLASSMORPHISM BUTTON REDESIGN --- */
.btn-pill-white {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 42px;
  cursor: pointer;
}

.btn-pill-white:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.btn-pill-lime {
  background: rgba(204, 255, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(204, 255, 0, 0.4);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(204, 255, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 42px;
  cursor: pointer;
}

.btn-pill-lime:hover {
  background: rgba(204, 255, 0, 0.45);
  border-color: rgba(204, 255, 0, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 255, 0, 0.25);
}

.btn-pill-black {
  background: rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 42px;
  cursor: pointer;
}

.btn-pill-black:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(15, 23, 42, 0.9);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

/* --- GLASS PANEL SYSTEM (LIGHT THEME) --- */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
}

.glass-panel:hover {
  border-color: rgba(204, 255, 0, 0.4);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05), 0 0 25px rgba(204, 255, 0, 0.08);
}

/* --- TOP SOLID BLACK BAR (FRAMING CONTRAST) --- */
.top-black-bar {
  background-color: var(--black);
  color: var(--white);
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-align: center;
  position: relative;
  z-index: 101;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  padding: 6px 16px;
  width: 100%;
}

/* --- DYNAMIC HEADER & RESPONSIVE NAVIGATION --- */
header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 100%;
  max-width: 100vw;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.nav-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  min-height: 96px;
  width: 100%;
}

/* BRAND LOGO CENTERING & RESPONSIVENESS */
.brand-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
}

.brand-logo img {
  height: 84px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-logo:hover img {
  transform: scale(1.04);
}

.nav-left-slot {
  flex: 1;
  display: flex;
  align-items: center;
  z-index: 10;
}

.nav-menu-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-menu-link {
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-menu-link:hover {
  color: var(--text-primary);
  transform: translateY(-1px);
}

.nav-menu-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--lime-green);
  transition: width 0.2s ease;
}

.nav-menu-link:hover::after {
  width: 100%;
}

.nav-auth {
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  z-index: 10;
}

/* Curriculum selector */
.curriculum-select-wrapper {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.curriculum-select-wrapper select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

/* Mobile Toggle Hamburger Button */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  cursor: pointer;
  z-index: 20;
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 2.5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-mobile-toggle.active .hamburger-bar:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.nav-mobile-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-mobile-toggle.active .hamburger-bar:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--panel-border);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  padding: 20px 24px;
  display: none;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.mobile-nav-drawer.open {
  display: flex !important;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.mobile-nav-link {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.05);
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  background: rgba(204, 255, 0, 0.2);
  color: var(--text-primary);
}

.mobile-nav-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  background-image: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.88)), url('assets/library-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 24px 60px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  z-index: 10;
  margin-bottom: 40px;
}

/* LEFT SIDE: TYPOGRAPHY & CTAS */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

.hero-headline {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-subheadline {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--lime-green);
  margin-bottom: 16px;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-supporting-text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.btn-primary-cta {
  background: var(--lime-green);
  color: var(--black);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 25px rgba(204, 255, 0, 0.35), 0 0 15px rgba(204, 255, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  min-height: 48px;
}

.btn-primary-cta:hover {
  transform: translateY(-3px);
  background: #d6ff1a;
  box-shadow: 0 12px 30px rgba(204, 255, 0, 0.5), 0 0 25px rgba(204, 255, 0, 0.3);
}

.btn-secondary-cta {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  min-height: 48px;
}

.btn-secondary-cta:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* RIGHT SIDE: MASCOT & PRODUCT SHOWCASE */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 340px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Product Preview: Dashboard Mockup */
.product-preview-card {
  position: absolute;
  top: 10px;
  left: 0;
  width: 85%;
  max-width: 320px;
  height: 250px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  z-index: 5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease;
}

.product-preview-card:hover {
  transform: translateY(-4px) rotate(1deg);
}

.preview-header {
  height: 34px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
}

.preview-dots {
  display: flex;
  gap: 5px;
}

.preview-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.preview-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  letter-spacing: 0.5px;
}

.preview-content {
  flex: 1;
  display: flex;
}

.preview-sidebar {
  width: 32%;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.1);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-menu-item {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 6px;
}

.preview-menu-item.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.preview-main {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-streak {
  background: rgba(204, 255, 0, 0.15);
  border: 1px solid rgba(204, 255, 0, 0.3);
  color: var(--lime-green);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  align-self: flex-start;
}

.preview-subject-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sub-icon {
  font-size: 1rem;
}

.sub-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.sub-detail strong {
  color: var(--white);
  font-size: 0.7rem;
}

.sub-detail span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.58rem;
}

.sub-pct {
  color: var(--lime-green);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Mascot Overlap & floating icons placement */
.hero-mascot-wrapper {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(170px, 40vw, 230px);
  z-index: 10;
}

.hero-eagle-mascot {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
  animation: float 4s ease-in-out infinite;
}

/* Floating interactive bubbles grouped safely around the mascot */
.bubble-icon {
  position: absolute;
  width: clamp(38px, 8vw, 44px);
  height: clamp(38px, 8vw, 44px);
  background-color: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bubble-icon:hover {
  transform: scale(1.15) rotate(8deg);
  background-color: var(--lime-green);
  border-color: rgba(204, 255, 0, 0.4);
  box-shadow: 0 12px 30px rgba(204, 255, 0, 0.3);
}

/* Proportional floating icon positioning inside mascot bounds */
.hero-mascot-wrapper .bi-gear { top: 5%; left: 0; animation: bounce-slow 3s infinite 0.2s; color: var(--color-career); }
.hero-mascot-wrapper .bi-book { top: -4%; right: 25%; animation: bounce-slow 3s infinite 0.5s; color: var(--color-quizzes); }
.hero-mascot-wrapper .bi-notebook { bottom: 25%; left: -2%; animation: bounce-slow 3.2s infinite 0.8s; color: var(--color-extras); }
.hero-mascot-wrapper .bi-hat { bottom: 15%; right: 0; animation: bounce-slow 2.8s infinite 1.1s; color: var(--color-games); }

.hero-mascot-wrapper .mascot-speech-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  color: var(--text-primary);
  border-radius: 16px;
  padding: 10px 16px;
  font-weight: 600;
  width: min(240px, calc(100vw - 48px));
  max-width: 100%;
  text-align: center;
  font-size: 0.85rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(15, 23, 42, 0.05);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.hero-mascot-wrapper .mascot-speech-popup.visible {
  opacity: 1;
  visibility: visible;
}

/* Hero Stats Styling */
.hero-stats-wrapper {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.hero-stats-row {
  display: flex;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.stat-glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 10px 20px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  max-width: 100%;
}

.stat-glass-card:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* --- HOW TO USE SECTION & VIDEO PLACEHOLDER --- */
.how-to-use-section {
  padding: 80px 24px;
  background-color: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  width: 100%;
  max-width: 100%;
}

.how-to-use-container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

/* Video Placeholder Layout */
.video-placeholder-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  background-color: #000;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.video-placeholder-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.video-placeholder-cover {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.video-placeholder-container:hover .video-placeholder-cover {
  transform: scale(1.04);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
  z-index: 1;
}

/* Glassmorphism Play Button */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-play-btn .play-icon {
  font-size: 22px;
  margin-left: 3px;
  transition: transform 0.3s ease;
}

.video-placeholder-container:hover .video-play-btn {
  background: rgba(204, 255, 0, 0.85);
  border-color: var(--lime-green);
  color: var(--black);
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 10px 40px rgba(204, 255, 0, 0.4);
}

/* Content Details on Right */
.how-to-use-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.section-subtitle-how {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-subtitle-how span {
  color: var(--color-quizzes);
  border-bottom: 3px double var(--lime-green);
}

.how-to-use-intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
  font-weight: 500;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  background: rgba(204, 255, 0, 0.15);
  border: 1px solid rgba(204, 255, 0, 0.4);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(204, 255, 0, 0.1);
}

.step-text h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.step-text p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* --- EXTRA OFFERS (GAMES, QUIZZES, ETC) --- */
.offers-section {
  padding: 80px 24px;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  width: 100%;
}

.offers-header {
  text-align: center;
  max-width: 700px;
  margin-bottom: 50px;
  width: 100%;
}

.offers-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.offers-section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 2x2 Grid Layout */
.offers-grid-2x2 {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

/* Card Design V2 */
.offer-card-v2 {
  position: relative;
  background: var(--bg-secondary);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 36px 30px;
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.015);
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), 
              border-color 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-height: 260px;
  width: 100%;
}

.offer-card-v2 .card-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.offer-card-v2 .card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.offer-card-v2 .card-desc {
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.offer-card-v2 .card-action-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.25s ease;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
}

/* Colors and Accents */
.offer-card-v2.oc-quizzes { border-left: 6px solid var(--color-quizzes); }
.offer-card-v2.oc-quizzes .card-title, .offer-card-v2.oc-quizzes .card-action-btn { color: var(--color-quizzes); }

.offer-card-v2.oc-career { border-left: 6px solid var(--color-career); }
.offer-card-v2.oc-career .card-title, .offer-card-v2.oc-career .card-action-btn { color: var(--color-career); }

.offer-card-v2.oc-games { border-left: 6px solid var(--color-games); }
.offer-card-v2.oc-games .card-title, .offer-card-v2.oc-games .card-action-btn { color: var(--color-games); }

.offer-card-v2.oc-extras { border-left: 6px solid var(--color-extras); }
.offer-card-v2.oc-extras .card-title, .offer-card-v2.oc-extras .card-action-btn { color: var(--color-extras); }

/* FEATURED CARD STYLING */
.offer-card-v2.featured {
  background: var(--bg-secondary);
  border: 2px solid rgba(41, 128, 185, 0.15);
  border-left: 8px solid var(--color-quizzes);
  box-shadow: 0 15px 35px rgba(41, 128, 185, 0.08);
}

.offer-card-v2.featured .card-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  background: var(--color-quizzes);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.offer-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.1);
}

.offer-card-v2:hover .card-icon {
  transform: scale(1.1);
}

.offer-card-v2:hover .card-action-btn {
  transform: translateX(4px);
}

/* --- CLIENT TESTIMONIALS SECTION --- */
.testimonials-section {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  width: 100%;
}

.testimonials-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text-primary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonial-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.t-line {
  width: 100px;
  height: 1px;
  background-color: rgba(15, 23, 42, 0.1);
}
.t-dots {
  font-size: 1.1rem;
  color: var(--text-secondary);
  letter-spacing: 3px;
}

.testimonials-grid {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-primary);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  gap: 20px;
  text-align: left;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(15, 23, 42, 0.04);
  width: 100%;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.test-avatar {
  width: 64px;
  height: 64px;
  background-color: var(--white);
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.05);
  margin-top: 4px;
}

.test-rating {
  color: #F1C40F;
  font-size: 1.1rem;
  margin-bottom: 8px;
  letter-spacing: 2px;
  display: block;
}

.test-content h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.test-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  line-height: 1.6;
}

.testimonial-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #E2E8F0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pagination-dot.active {
  background-color: var(--lime-green);
}

/* --- SHORTCUT BANNER (FINAL CTA) --- */
.shortcut-banner {
  background: linear-gradient(135deg, #0F172A 0%, #020617 100%);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.shortcut-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(204, 255, 0, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.shortcut-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -1px;
  z-index: 2;
  line-height: 1.2;
}

.shortcut-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #94A3B8;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 36px;
  z-index: 2;
}

.shortcut-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  z-index: 2;
  width: 100%;
  flex-wrap: wrap;
}

.shortcut-trust-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  width: 100%;
  max-width: 800px;
  z-index: 2;
}

.trust-indicator {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lime-green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- THE DIRECTORY FOOTER --- */
footer {
  background-color: #030712;
  padding: 80px 24px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
}

.footer-mission-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.footer-mission-logo {
  height: 48px;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-mission-text {
  font-family: 'Inter', sans-serif;
  color: #94A3B8;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 800px;
}

.footer-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--white);
  letter-spacing: 0.5px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #94A3B8;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--lime-green);
}

.footer-bottom {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  color: #64748B;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
}

.footer-socials {
  display: flex;
  gap: 14px;
  align-items: center;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
  background: var(--lime-green);
  color: var(--black);
  border-color: var(--lime-green);
  transform: translateY(-2px);
}

.footer-policies {
  display: flex;
  gap: 20px;
}

.footer-policies a {
  color: #64748B;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-policies a:hover {
  color: var(--lime-green);
}

/* ==================== STUDENT PORTAL DASHBOARD ==================== */
.dashboard-layout {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.student-card {
  text-align: center;
  width: 100%;
}

.student-avatar {
  width: 80px;
  height: 80px;
  background-color: var(--lime-green);
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 700;
  border: 4px solid var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.student-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.badge-pill {
  background-color: rgba(204, 255, 0, 0.15);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  display: inline-block;
  border: 1px solid rgba(204, 255, 0, 0.3);
  max-width: 100%;
}

.dash-menu-list {
  list-style: none;
  width: 100%;
}

.dash-menu-item button {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  min-height: 44px;
}

.dash-menu-item.active button,
.dash-menu-item button:hover {
  background-color: rgba(15, 23, 42, 0.04);
  color: var(--text-primary);
}

.dash-menu-item.active button {
  border-left: 4px solid var(--text-primary);
  background-color: rgba(204, 255, 0, 0.15);
}

/* Dashboard Workspace Components */
.dashboard-workspace {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  min-width: 0;
}

.student-welcome-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.student-avatar-display {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--lime-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(204,255,0,0.2);
  flex-shrink: 0;
}

.widgets-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.countdown-widget {
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
  border: 1px solid rgba(204, 255, 0, 0.3);
}

.countdown-timer {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--text-primary);
  margin-top: 8px;
}

.streak-widget {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
  border: 1px solid rgba(230, 126, 34, 0.3);
}

.streak-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--color-extras);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.streak-flame {
  font-size: 2.2rem;
}

.parent-widget {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
  border: 1px solid rgba(52, 152, 219, 0.3);
}

.parent-stats {
  margin-top: 10px;
  font-size: 0.9rem;
}
.p-stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.p-stat-row span {
  color: var(--text-primary);
  font-weight: 600;
}

/* Subject Grid */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
}

.subject-card {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.subject-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.subject-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.sub-math { background-color: rgba(204, 255, 0, 0.3); border: 1px solid rgba(204, 255, 0, 0.5); }
.sub-biology { background-color: rgba(46, 204, 113, 0.2); border: 1px solid rgba(46, 204, 113, 0.4); color: var(--color-games); }
.sub-civic { background-color: rgba(230, 126, 34, 0.2); border: 1px solid rgba(230, 126, 34, 0.4); color: var(--color-extras); }
.sub-science { background-color: rgba(52, 152, 219, 0.2); border: 1px solid rgba(52, 152, 219, 0.4); color: var(--color-quizzes); }

.subject-card h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.subject-progress-bar {
  width: 100%;
  height: 8px;
  background-color: rgba(15, 23, 42, 0.05);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 16px;
}

.subject-progress-fill {
  height: 100%;
  background-color: var(--color-quizzes);
  border-radius: 99px;
  transition: width 0.5s ease-out;
}

.subject-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Leaderboard panel styles */
.leaderboard-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

.leaderboard-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  margin-top: 15px;
}

.leaderboard-table th, .leaderboard-table td {
  padding: 12px;
  text-align: left;
}

.leaderboard-table th {
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--panel-border);
  font-size: 0.9rem;
}

.leaderboard-table tr {
  border-bottom: 1px solid rgba(15, 23, 42, 0.03);
}

.leaderboard-table tr.my-rank {
  background-color: rgba(204, 255, 0, 0.15);
  border-left: 3px solid var(--text-primary);
}

.rank-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
}
.rank-1 { background-color: #F59E0B; color: var(--white); }
.rank-2 { background-color: #94A3B8; color: var(--text-primary); }
.rank-3 { background-color: #B45309; color: var(--white); }

/* --- ACTIVE COURSE PLAYER --- */
.player-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

.player-main-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  min-width: 0;
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.player-back-btn {
  color: var(--color-quizzes);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  min-height: 40px;
}

.player-tab-bar {
  display: flex;
  border-bottom: 1px solid var(--panel-border);
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}

.player-tab-bar::-webkit-scrollbar {
  display: none;
}

.player-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 10px 18px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
}

.player-tab:hover, .player-tab.active {
  color: var(--text-primary);
}

.player-tab.active {
  border-bottom-color: var(--text-primary);
}

.player-content-panel {
  min-height: 380px;
  width: 100%;
}

/* Textbook Content Styles */
.textbook-reader {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
  background-color: var(--white) !important;
}

.textbook-reader h3 {
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.textbook-reader p {
  margin-bottom: 14px;
}

.textbook-reader blockquote {
  border-left: 4px solid var(--color-quizzes);
  background-color: var(--bg-primary);
  padding: 12px 18px;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-secondary);
  border-radius: 0 12px 12px 0;
}

/* Quiz system styling */
.quiz-question-box {
  margin-bottom: 20px;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
}

.quiz-option-card {
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary);
  width: 100%;
}

.quiz-option-card:hover {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.15);
}

.quiz-option-card.selected {
  border-color: var(--text-primary);
  background: rgba(204, 255, 0, 0.15);
}

.quiz-option-card.correct {
  border-color: var(--color-games) !important;
  background: rgba(46, 204, 113, 0.12) !important;
  color: var(--color-games);
}

.quiz-option-card.incorrect {
  border-color: #C0392B !important;
  background: rgba(231, 76, 60, 0.12) !important;
  color: #C0392B;
}

.quiz-check-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.quiz-option-card.selected .quiz-check-indicator {
  border-color: var(--text-primary);
  background-color: var(--text-primary);
  color: var(--white);
}

.quiz-feedback-box {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  display: none;
}
.quiz-feedback-box.correct {
  display: block;
  background-color: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.25);
  color: var(--color-games);
}
.quiz-feedback-box.incorrect {
  display: block;
  background-color: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.25);
  color: #C0392B;
}

/* Local context widget card */
.context-highlight-box {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(230, 126, 34, 0.3);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  color: var(--text-primary);
  width: 100%;
}

.context-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-extras);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

/* AI Companion Chatbot styling */
.ai-companion-box {
  display: flex;
  flex-direction: column;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
}

.ai-chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
}

.ai-message.ai {
  background-color: var(--white);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.ai-message.user {
  background-color: var(--text-primary);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.chat-badge-verified {
  font-size: 0.72rem;
  color: var(--color-games);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-weight: 600;
}

.ai-chat-input-wrapper {
  padding: 12px 16px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  gap: 10px;
  background-color: var(--white);
  width: 100%;
}

.ai-chat-input-wrapper input {
  flex-grow: 1;
  background-color: var(--bg-primary);
  border: 1px solid var(--panel-border);
  border-radius: 99px;
  padding: 10px 16px;
  color: var(--text-primary);
  outline: none;
  font-size: 0.95rem;
  min-width: 0;
}

.ai-chat-input-wrapper input:focus {
  border-color: var(--text-primary);
}

.ai-chat-send-btn {
  background-color: var(--text-primary);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.ai-chat-send-btn:hover {
  transform: scale(1.05);
}

/* Sidebar Lecture Selector */
.syllabus-curriculum-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.chapter-accordion {
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 14px;
}

.chapter-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.lecture-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.lecture-item button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  min-height: 40px;
}

.lecture-item.active button,
.lecture-item button:hover {
  background-color: rgba(15, 23, 42, 0.04);
  color: var(--text-primary);
}

.lecture-item.active button {
  font-weight: 700;
}

.lecture-item.completed button {
  color: var(--color-games);
}

/* --- MOBILE MONEY SIMULATOR MODAL --- */
.momo-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 16px;
}

.momo-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.momo-modal {
  width: 100%;
  max-width: 440px;
  background-color: var(--white);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.momo-modal-overlay.active .momo-modal {
  transform: translateY(0);
}

.momo-modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.momo-modal-header h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
}

.momo-modal-close {
  color: var(--text-secondary);
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.momo-modal-body {
  padding: 20px;
}

.momo-provider-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
}

.momo-provider-card {
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.momo-provider-card.airtel {
  background-color: rgba(224, 49, 49, 0.05);
  color: #E03131;
  border-color: rgba(224, 49, 49, 0.1);
}
.momo-provider-card.airtel.active {
  border-color: #E03131;
  background-color: rgba(224, 49, 49, 0.12);
}

.momo-provider-card.mtn {
  background-color: rgba(234, 179, 8, 0.05);
  color: #D29D00;
  border-color: rgba(234, 179, 8, 0.1);
}
.momo-provider-card.mtn.active {
  border-color: #D29D00;
  background-color: rgba(234, 179, 8, 0.12);
}

.momo-input-group {
  margin-bottom: 18px;
  width: 100%;
}

.momo-input-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.momo-input-group input {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  font-family: var(--font-sans);
}

.momo-input-group input:focus {
  border-color: var(--text-primary);
}

/* USSD Screen Mocking */
.ussd-screen {
  background-color: #05070A;
  border: 2px solid #334155;
  border-radius: 16px;
  padding: 18px;
  font-family: monospace;
  color: #22C55E;
  margin-bottom: 20px;
  display: none;
}

.ussd-screen.active {
  display: block;
}

.ussd-prompt {
  margin-bottom: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ussd-input-row {
  display: flex;
  border-bottom: 1px solid #334155;
  padding-bottom: 4px;
}

.ussd-input-row span {
  margin-right: 8px;
}

.ussd-input-row input {
  background: transparent;
  border: none;
  color: #22C55E;
  font-family: monospace;
  outline: none;
  width: 100%;
  font-size: 1rem;
}

/* Success Animation */
.momo-success-screen {
  text-align: center;
  padding: 16px 0;
  display: none;
}
.momo-success-screen.active {
  display: block;
  animation: scale-up 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-check-circle {
  width: 70px;
  height: 70px;
  background-color: var(--color-games);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(46, 204, 113, 0.3);
}

.success-check-circle svg {
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  width: 36px;
  height: 36px;
}

/* Confetti effect particles */
.confetti-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  z-index: 100;
  animation: confetti-fall 2.5s ease-out forwards;
}

/* ==================== ONBOARDING SCREENS STYLING ==================== */
#screen-onboarding {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
  padding: 36px 16px;
  width: 100%;
}

.onboarding-container {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}

.onboarding-card {
  padding: clamp(20px, 4vw, 36px);
  border-radius: 24px;
  background-color: var(--panel-bg);
  width: 100%;
}

.onboarding-header {
  margin-bottom: 24px;
  text-align: center;
}

.onboarding-logo-wrapper {
  margin-bottom: 16px;
}

.onboarding-logo {
  height: 46px;
  object-fit: contain;
  margin: 0 auto;
}

.onboarding-progress-container {
  width: 100%;
  height: 6px;
  background-color: rgba(15, 23, 42, 0.05);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.onboarding-progress-bar {
  height: 100%;
  background-color: var(--lime-green);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.onboarding-step-counter {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.onboarding-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 8px;
  text-align: center;
  color: var(--text-primary);
}

.onboarding-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: center;
}

.onboarding-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.onboarding-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.onboarding-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.onboarding-input-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.onboarding-input-group input {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  font-family: var(--font-sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.onboarding-input-group input:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Avatar grid selection */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
  width: 100%;
}

.avatar-option {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-option:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.avatar-option.active {
  background: rgba(204, 255, 0, 0.15);
  border-color: var(--lime-green);
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.15);
}

.avatar-emoji {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.avatar-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Academic select levels */
.academic-system-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.academic-system-card {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 18px;
  width: 100%;
}

.academic-system-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.academic-level-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.level-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--panel-border);
  border-radius: 99px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  min-height: 38px;
}

.level-btn:hover {
  background: rgba(255, 255, 255, 1);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.level-btn.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Subject grid selection */
.subject-selection-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
  width: 100%;
}

.subject-select-btn {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  width: 100%;
  min-height: 44px;
}

.subject-select-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
}

.subject-select-btn.selected {
  background: rgba(204, 255, 0, 0.15);
  border-color: var(--lime-green);
  color: var(--text-primary);
}

.subject-select-btn::after {
  content: '☐';
  font-size: 1.1rem;
}

.subject-select-btn.selected::after {
  content: '✓';
  color: var(--text-primary);
  font-weight: bold;
}

/* Onboarding plans selection */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.plan-card-ob {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.plan-card-ob:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.plan-card-ob.active {
  background: var(--white);
  border-color: var(--lime-green);
  box-shadow: 0 10px 25px rgba(204, 255, 0, 0.15);
}

.plan-badge-ob {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.05);
  padding: 4px 8px;
  border-radius: 6px;
  align-self: flex-start;
  margin-bottom: 10px;
}

.plan-badge-ob.recommended {
  background: var(--lime-green);
  color: var(--black);
}

.plan-title-ob {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.plan-price-ob {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-family: var(--font-display);
}

.plan-features-ob {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

/* Step 6 summary card styling */
.summary-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 20px;
  width: 100%;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  width: 100%;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--panel-border);
  padding-bottom: 8px;
  font-size: 0.92rem;
  flex-wrap: wrap;
  gap: 4px;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.summary-value {
  font-weight: 700;
  color: var(--text-primary);
}

.summary-quote {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  color: var(--color-games);
  text-align: center;
  font-style: italic;
  margin-top: 10px;
}

/* ==================== SUBJECT DETAIL VIEW STYLING ==================== */
.subject-detail-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 20px;
  animation: scale-up 0.3s ease;
}

.subject-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.subject-detail-metrics {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
  width: 100%;
}

.subject-content-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  width: 100%;
}

.readiness-status-badge {
  display: inline-block;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.readiness-status-badge.status-good {
  background-color: rgba(46, 204, 113, 0.15);
  color: var(--color-games);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.readiness-status-badge.status-warning {
  background-color: rgba(243, 156, 18, 0.15);
  color: var(--color-extras);
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.readiness-status-badge.status-danger {
  background-color: rgba(231, 76, 60, 0.15);
  color: #C0392B;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.topic-checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  transition: all 0.2s ease;
  width: 100%;
}

.topic-checklist-item:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.topic-checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--lime-green);
  flex-shrink: 0;
}

.topic-checklist-item label {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  flex-grow: 1;
}

.topic-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  text-align: left;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  width: 100%;
  min-height: 40px;
}

.topic-link-item:hover {
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--text-primary);
  transform: translateX(2px);
}

.topic-link-item::after {
  content: '→';
  font-size: 1rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ==================== GLOBAL FLOATING ACE MASCOT STYLING ==================== */
#floating-ace-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  font-family: var(--font-sans);
}

.ace-mini-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid var(--lime-green);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ace-mini-bubble:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(204, 255, 0, 0.3);
}

.ace-avatar-mini {
  font-size: 2rem;
  line-height: 1;
}

.ace-ping {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-color: #2ECC71;
  border-radius: 50%;
  border: 2px solid var(--white);
  animation: ace-pulse 2s infinite;
}

@keyframes ace-pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Expanded Ace Panel */
.ace-panel {
  width: min(320px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  background-color: var(--panel-bg);
  border: 1px solid var(--panel-border);
  animation: scale-up 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.ace-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ace-avatar {
  font-size: 1.6rem;
}

.ace-status {
  font-size: 0.72rem;
  color: var(--color-games);
  font-weight: 700;
  display: block;
}

.ace-close-btn {
  font-size: 1.3rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
}

.ace-close-btn:hover {
  color: var(--text-primary);
}

.ace-body {
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Checkbox alignment settings subject list */
.settings-subject-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  width: 100%;
}

.settings-subject-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--lime-green);
  flex-shrink: 0;
}

.settings-subject-item label {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- ANIMATION DEFINITIONS --- */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

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

@keyframes scale-up {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes confetti-fall {
  0% { transform: translateY(-80px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(500px) rotate(720deg); opacity: 0; }
}

/* ==================== CONSOLIDATED RESPONSIVE MEDIA QUERIES ==================== */

/* TABLETS & SMALL DESKTOPS (<= 1024px) */
@media (max-width: 1024px) {
  .brand-logo img {
    height: 74px;
  }
  
  .nav-menu-links {
    gap: 18px;
  }
  
  .nav-menu-link {
    font-size: 0.9rem;
  }
}

/* TABLETS & LARGE PHONES (<= 868px) */
@media (max-width: 868px) {
  .nav-main {
    min-height: 68px;
    padding: 8px 16px;
    justify-content: space-between;
  }
  
  .nav-left-slot {
    display: none;
  }
  
  .nav-mobile-toggle {
    display: flex;
    position: static;
    transform: none;
  }
  
  .brand-logo {
    position: static;
    transform: none;
    margin: 0 auto;
  }
  
  .brand-logo img {
    height: 60px;
  }
  
  .nav-auth {
    position: static;
    transform: none;
    flex: 0;
    gap: 8px;
  }
  
  .curriculum-select-wrapper#curriculum-toggle-header {
    display: none !important;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-left {
    align-items: center;
    text-align: center;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-stats-wrapper {
    justify-content: center;
  }
  
  .hero-stats-row {
    justify-content: center;
  }
  
  .how-to-use-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .offers-grid-2x2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px;
  }
  
  .widgets-row {
    grid-template-columns: 1fr;
  }
  
  .player-container {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .footer-mission-container {
    align-items: center;
    text-align: center;
  }
}

/* PHONES & NARROW SCREENS (<= 576px) */
@media (max-width: 576px) {
  .top-black-bar {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .nav-main {
    min-height: 60px;
    padding: 6px 12px;
  }
  
  .brand-logo img {
    height: 52px;
  }
  
  .btn-pill-white, .btn-pill-lime {
    padding: 8px 14px;
    font-size: 0.82rem;
    min-height: 38px;
  }
  
  #btn-login-nav {
    display: none !important;
  }
  
  .hero-section {
    padding: 100px 16px 50px;
  }
  
  .hero-headline {
    font-size: 2.1rem;
  }
  
  .hero-subheadline {
    font-size: 1.3rem;
  }
  
  .hero-supporting-text {
    font-size: 0.95rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary-cta, .btn-secondary-cta {
    width: 100%;
    max-width: 100%;
  }
  
  .hero-visual-wrapper {
    height: 300px;
  }
  
  .hero-mascot-wrapper {
    width: clamp(160px, 46vw, 200px);
  }
  
  .product-preview-card {
    height: 220px;
    max-width: 270px;
  }
  
  .how-to-use-section {
    padding: 50px 16px;
  }
  
  .offers-section {
    padding: 50px 16px;
  }
  
  .testimonials-section {
    padding: 50px 16px;
  }
  
  .testimonial-card {
    flex-direction: column;
    padding: 20px;
    gap: 12px;
  }
  
  .shortcut-banner {
    padding: 60px 16px;
  }
  
  .shortcut-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .shortcut-actions .btn-primary-cta,
  .shortcut-actions .btn-secondary-cta {
    width: 100%;
    max-width: 100%;
  }
  
  .onboarding-form-row {
    grid-template-columns: 1fr;
  }
  
  .subject-selection-container {
    grid-template-columns: 1fr;
  }
  
  .plans-grid {
    grid-template-columns: 1fr;
  }
  
  .subject-detail-metrics {
    grid-template-columns: 1fr;
  }
  
  .form-grid-two-col {
    grid-template-columns: 1fr !important;
  }
  
  .dashboard-pricing-grid {
    grid-template-columns: 1fr !important;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    justify-content: center;
  }
}

/* VERY SMALL SCREENS (<= 380px) */
@media (max-width: 380px) {
  .brand-logo img {
    height: 46px;
  }
  
  .avatar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .momo-provider-select {
    grid-template-columns: 1fr;
  }
  
  .hero-headline {
    font-size: 1.85rem;
  }
  
  .hero-visual-wrapper {
    height: 270px;
  }
  
  .product-preview-card {
    height: 190px;
    max-width: 230px;
  }
  
  .hero-mascot-wrapper {
    width: 150px;
  }
}
