/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #fce4ec 0%, #e8eaf6 20%, #e0f7fa 40%, #fff9c4 60%, #f3e5f5 80%, #e8f5e9 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: #1A1A2E;
  overflow-x: hidden;
  position: relative;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff;
  height: 68px;
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(90deg, #FF3366, #FFD023, #00C9FF, #7B2FF7, #00E676, #FF6D00) 1;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 20px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: baseline; gap: 0;
  font-family: 'Fredoka', cursive; font-weight: 700;
  font-size: 30px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo:hover { transform: scale(1.05) rotate(-2deg); }
.logo-draw { color: #1A1A2E; letter-spacing: -0.5px; }
.logo-d, .logo-o1, .logo-o2 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  color: #fff; font-size: 22px; font-weight: 700;
  margin-left: 2px; line-height: 1;
}
.logo-d { background: #FF3366; }
.logo-o1 { background: #FFD023; color: #1A1A2E; }
.logo-o2 { background: #00C9FF; }

.nav { display: flex; gap: 8px; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 16px;
  font-weight: 700; font-size: 14px;
  color: #6B7280; transition: all 0.2s;
}
.nav-link:hover {
  color: #FF3366;
  background: rgba(255,51,102,0.08);
  transform: translateY(-1px);
}
.nav-link.active {
  background: #FF3366;
  color: #fff;
  box-shadow: 0 4px 0 #CC2952;
  transform: translateY(-1px);
}
.nav-link.active:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #CC2952;
}
.nav-icon { font-size: 17px; }

.menu-toggle { display: none; width: 32px; height: 24px; position: relative; }
.menu-toggle span {
  display: block; width: 100%; height: 3px;
  background: #FF3366; border-radius: 3px;
  position: absolute; left: 0;
  transition: all 0.3s;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

/* ===== BOTTOM NAV (mobile) ===== */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  justify-content: space-around;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, #FF3366, #FFD023, #00C9FF, #7B2FF7, #00E676, #FF6D00) 1;
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 6px 16px; border-radius: 16px;
  font-size: 11px; font-weight: 700; color: #9CA3AF;
  transition: all 0.2s;
}
.bottom-nav-item.active { color: #FF3366; }
.bottom-nav-item.active .bottom-nav-icon {
  transform: scale(1.3) translateY(-2px);
  animation: iconBounce 0.4s ease;
}
.bottom-nav-icon { font-size: 22px; transition: transform 0.2s; }

/* ===== MAIN ===== */
.main {
  max-width: 1400px; margin: 0 auto;
  padding: 88px 20px 40px;
  min-height: 100vh;
}

/* ===== HERO ===== */
.hero {
  text-align: center; padding: 30px 20px 40px;
  animation: fadeInUp 0.6s ease;
  position: relative;
}
.hero-title {
  font-family: 'Fredoka', cursive;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  background: linear-gradient(135deg, #FF3366, #7B2FF7, #00C9FF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2; margin-bottom: 12px;
  text-shadow: none;
}
.hero-subtitle {
  font-size: clamp(15px, 2.2vw, 20px);
  color: #6B7280;
  font-weight: 500; max-width: 550px; margin: 0 auto 30px;
}
.hero-stats {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
}
.hero-stat {
  background: #fff;
  border-radius: 20px; padding: 16px 28px;
  text-align: center;
  border-left: 4px solid #FF3366;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-stat:hover { transform: translateY(-4px) rotate(-2deg); }
.hero-stat:nth-child(1) { background: #FFE0EB; border-color: #FF3366; }
.hero-stat:nth-child(2) { background: #E0F4FF; border-color: #00C9FF; }
.hero-stat:nth-child(3) { background: #E8FFE0; border-color: #00E676; }
.hero-stat-number {
  font-family: 'Fredoka', cursive;
  font-size: 32px; font-weight: 700;
  color: #FF3366;
  line-height: 1;
}
.hero-stat:nth-child(2) .hero-stat-number { color: #00C9FF; }
.hero-stat:nth-child(3) .hero-stat-number { color: #00B85E; }
.hero-stat-label { font-size: 12px; color: #6B7280; margin-top: 4px; font-weight: 700; }

/* ===== THEME CHIPS ===== */
.themes-section { margin-bottom: 32px; }
.themes-title {
  font-family: 'Fredoka', cursive;
  font-size: 22px; font-weight: 700; color: #1A1A2E;
  margin-bottom: 14px;
}
.theme-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.theme-chip {
  padding: 10px 22px; border-radius: 50px;
  font-size: 14px; font-weight: 700;
  background: #fff;
  color: #6B7280; cursor: pointer;
  border: 2.5px solid #E5E7EB;
  transition: all 0.2s;
  box-shadow: 0 3px 0 #E5E7EB;
}
.theme-chip:hover {
  transform: translateY(-2px);
  border-color: #FF3366;
  color: #FF3366;
  box-shadow: 0 4px 0 rgba(255,51,102,0.2);
}
.theme-chip:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #E5E7EB;
}
.theme-chip.active {
  background: #FF3366;
  color: #fff;
  border-color: #FF3366;
  box-shadow: 0 4px 0 #CC2952;
}
.theme-emoji { margin-right: 6px; }

/* ===== CATEGORY GRID ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.category-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  position: relative;
  border-left: 5px solid #FF3366;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.category-card:nth-child(6n+1) { border-color: #FF3366; }
.category-card:nth-child(6n+2) { border-color: #FFD023; }
.category-card:nth-child(6n+3) { border-color: #00C9FF; }
.category-card:nth-child(6n+4) { border-color: #7B2FF7; }
.category-card:nth-child(6n+5) { border-color: #00E676; }
.category-card:nth-child(6n+6) { border-color: #FF6D00; }
.category-card:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.category-card-img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  background: linear-gradient(135deg, #F0F4FF, #FFE0EB, #E0F4FF);
}
.category-card-body { padding: 14px 16px; }
.category-card-name {
  font-family: 'Fredoka', cursive;
  font-size: 16px; font-weight: 600;
  color: #1A1A2E; line-height: 1.2;
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.category-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; font-size: 12px; color: #9CA3AF;
  overflow: hidden;
}
.category-card-count {
  background: #FF3366;
  color: #fff; padding: 2px 8px;
  border-radius: 50px; font-weight: 800; font-size: 11px;
  white-space: nowrap; flex-shrink: 0;
  min-width: 24px; text-align: center;
}
.category-card:nth-child(6n+2) .category-card-count { background: #E5B800; color: #1A1A2E; }
.category-card:nth-child(6n+3) .category-card-count { background: #00C9FF; }
.category-card:nth-child(6n+4) .category-card-count { background: #7B2FF7; }
.category-card:nth-child(6n+5) .category-card-count { background: #00B85E; }
.category-card:nth-child(6n+6) .category-card-count { background: #FF6D00; }
.category-card-theme {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.95);
  padding: 4px 10px; border-radius: 50px;
  font-size: 11px; font-weight: 700; color: #FF3366;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== CATEGORY PAGE ===== */
.category-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 30px; animation: fadeInUp 0.4s ease;
}
.back-btn {
  width: 48px; height: 48px;
  background: #fff;
  border-radius: 16px; display: flex;
  align-items: center; justify-content: center;
  font-size: 24px; transition: all 0.2s;
  box-shadow: 0 4px 0 #E5E7EB;
  border: 2.5px solid #E5E7EB;
  flex-shrink: 0; color: #FF3366;
}
.back-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #E5E7EB; border-color: #FF3366; }
.back-btn:active { transform: translateY(1px); box-shadow: 0 2px 0 #E5E7EB; }
.category-info { flex: 1; }
.category-page-title {
  font-family: 'Fredoka', cursive;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700; color: #1A1A2E;
  line-height: 1.1;
}
.category-page-count {
  font-size: 14px; color: #6B7280;
  margin-top: 4px; font-weight: 600;
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.lesson-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  position: relative;
  border-top: 4px solid #00C9FF;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.lesson-card:nth-child(5n+1) { border-color: #FF3366; }
.lesson-card:nth-child(5n+2) { border-color: #FFD023; }
.lesson-card:nth-child(5n+3) { border-color: #00C9FF; }
.lesson-card:nth-child(5n+4) { border-color: #7B2FF7; }
.lesson-card:nth-child(5n+5) { border-color: #00E676; }
.lesson-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 14px 36px rgba(0,0,0,0.1);
}
.lesson-card.completed::after {
  content: 'DONE!'; position: absolute; top: 12px; right: -28px;
  font-family: 'Fredoka', cursive; font-size: 11px; font-weight: 700;
  background: #00E676; color: #fff;
  padding: 4px 32px; transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0,230,118,0.3);
}
.lesson-card-img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: linear-gradient(135deg, #F0F4FF, #FFE0EB, #E0F4FF);
}
.lesson-card-body { padding: 12px 14px; }
.lesson-card-name {
  font-family: 'Fredoka', cursive;
  font-size: 14px; font-weight: 600; color: #1A1A2E;
  margin-bottom: 6px; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.lesson-card-stars { font-size: 14px; letter-spacing: 1px; }

/* ===== LESSON VIEWER ===== */
.lesson-viewer {
  animation: fadeInUp 0.4s ease;
  max-width: 800px; margin: 0 auto;
}
.lesson-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
.lesson-title {
  font-family: 'Fredoka', cursive;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700; color: #1A1A2E;
  flex: 1;
}
.lesson-stars-badge {
  background: #FFE0EB;
  padding: 8px 16px; border-radius: 50px;
  font-size: 18px;
  border: 2px solid rgba(255,51,102,0.2);
}

/* Step display */
.step-container {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  border: 3px solid #00C9FF;
  position: relative;
}
.step-image-wrapper {
  position: relative; width: 100%;
  aspect-ratio: 1; overflow: hidden;
  background: #FAFBFF;
  touch-action: pan-y;
}
.step-image {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}
.step-image.loading { opacity: 0; }

.step-nav-btn {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  background: #FF3366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; z-index: 10;
  box-shadow: 0 4px 0 #CC2952;
  color: #fff;
  transition: all 0.2s;
}
.step-nav-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 0 #CC2952;
}
.step-nav-btn:active {
  transform: translateY(calc(-50% + 2px));
  box-shadow: 0 2px 0 #CC2952;
}
.step-nav-btn.prev { left: 12px; }
.step-nav-btn.next { right: 12px; }
.step-nav-btn:disabled { opacity: 0.3; pointer-events: none; }

/* Progress bar */
.step-progress {
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
}
.step-progress-bar {
  flex: 1; height: 12px;
  background: #E8EBF0; border-radius: 12px;
  overflow: hidden;
}
.step-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF3366, #FFD023, #00C9FF);
  background-size: 200% 100%;
  animation: rainbowShift 3s linear infinite;
  border-radius: 12px;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.step-counter {
  font-family: 'Fredoka', cursive;
  font-size: 16px; font-weight: 700; color: #FF3366;
  white-space: nowrap;
}

/* Step thumbnails */
.step-thumbnails {
  display: flex; gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #d0d5dd #f0f2f5;
  -webkit-overflow-scrolling: touch;
}
.step-thumbnails::-webkit-scrollbar { height: 4px; }
.step-thumbnails::-webkit-scrollbar-track { background: #f0f2f5; border-radius: 4px; }
.step-thumbnails::-webkit-scrollbar-thumb { background: #d0d5dd; border-radius: 4px; }

.step-thumb {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 14px; overflow: hidden;
  border: 3px solid transparent;
  cursor: pointer; transition: all 0.2s;
  background: #F0F4FF;
}
.step-thumb img { width: 100%; height: 100%; object-fit: cover; }
.step-thumb.active {
  border-color: #FF3366;
  box-shadow: 0 2px 10px rgba(255,51,102,0.3);
  transform: scale(1.12);
}
.step-thumb:hover { border-color: #00C9FF; }

/* Completion */
.lesson-complete-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,26,46,0.5);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  animation: fadeIn 0.3s ease;
}
.lesson-complete-modal {
  background: linear-gradient(135deg, #FFE0EB, #E0F4FF);
  border-radius: 28px;
  padding: 40px; text-align: center;
  max-width: 360px; width: 90%;
  border: 4px solid #FFD023;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.lesson-complete-emoji { font-size: 64px; margin-bottom: 16px; }
.lesson-complete-title {
  font-family: 'Fredoka', cursive;
  font-size: 28px; font-weight: 700;
  color: #FF3366; margin-bottom: 8px;
}
.lesson-complete-text { font-size: 15px; color: #6B7280; margin-bottom: 24px; font-weight: 600; }
.lesson-complete-btn {
  padding: 14px 36px; border-radius: 50px;
  background: #FF3366;
  color: #fff; font-weight: 700; font-size: 16px;
  font-family: 'Nunito', sans-serif;
  transition: all 0.2s;
  box-shadow: 0 6px 0 #CC2952;
  border: none;
}
.lesson-complete-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #CC2952; }
.lesson-complete-btn:active { transform: translateY(2px); box-shadow: 0 3px 0 #CC2952; }

/* ===== SEARCH / EXPLORE PAGE ===== */
.explore-page { animation: fadeInUp 0.4s ease; }
.search-wrapper {
  max-width: 600px; margin: 0 auto 30px;
  position: relative;
}
.search-input {
  width: 100%; padding: 16px 24px 16px 52px;
  border: 3px solid #E5E7EB;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 16px; font-weight: 600;
  background: #fff;
  box-shadow: 0 4px 0 #E5E7EB;
  outline: none; transition: all 0.3s;
  color: #1A1A2E;
}
.search-input:focus {
  box-shadow: 0 4px 0 rgba(0,201,255,0.3);
  border-color: #00C9FF;
}
.search-input::placeholder { color: #9CA3AF; }
.search-icon {
  position: absolute; left: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px; pointer-events: none;
}

/* ===== PROGRESS PAGE ===== */
.progress-page { animation: fadeInUp 0.4s ease; }
.progress-hero {
  text-align: center; margin-bottom: 40px;
}
.progress-hero-emoji { font-size: 64px; margin-bottom: 16px; }
.progress-hero-title {
  font-family: 'Fredoka', cursive;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  background: linear-gradient(135deg, #FF3366, #7B2FF7, #00C9FF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.progress-stats {
  display: flex; justify-content: center; gap: 20px;
  flex-wrap: wrap; margin-top: 24px;
}
.progress-stat-card {
  background: #fff;
  border-left: 4px solid #FF3366;
  border-radius: 20px; padding: 20px 28px;
  text-align: center; min-width: 140px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.progress-stat-card:nth-child(2) { border-color: #7B2FF7; }
.progress-stat-number {
  font-family: 'Fredoka', cursive;
  font-size: 36px; font-weight: 700;
  color: #FF3366;
  line-height: 1;
}
.progress-stat-card:nth-child(2) .progress-stat-number { color: #7B2FF7; }
.progress-stat-label { font-size: 13px; color: #6B7280; margin-top: 4px; font-weight: 700; }

.progress-section-title {
  font-family: 'Fredoka', cursive;
  font-size: 22px; font-weight: 700; color: #1A1A2E;
  margin: 30px 0 16px;
}
.progress-empty {
  text-align: center; padding: 60px 20px;
  color: #9CA3AF;
  font-size: 16px; font-weight: 600;
}
.progress-empty-emoji { font-size: 48px; margin-bottom: 12px; }

/* ===== ADS ===== */
.ad-container {
  max-width: 728px;
  margin: 24px auto;
  min-height: 90px;
  text-align: center;
  overflow: hidden;
}
.ad-in-grid {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 728px;
  margin: 12px auto;
  min-height: 90px;
  text-align: center;
  overflow: hidden;
}
.grid-ad-row {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 728px;
  margin: 8px auto;
  min-height: 90px;
  text-align: center;
  overflow: hidden;
}

/* ===== CONFETTI ===== */
.confetti-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 300;
}

/* ===== LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, #E8EBF0 25%, #F0F4FF 50%, #E8EBF0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.5); }
  60% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0) rotate(-5deg); }
  60% { transform: scale(1.08) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes iconBounce {
  0%, 100% { transform: scale(1.3) translateY(-2px); }
  50% { transform: scale(1.3) translateY(-8px); }
}
@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

.fade-enter { animation: fadeInUp 0.35s ease forwards; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: space-between; }
  .bottom-nav { display: flex; }
  .main { padding-bottom: 90px; }
  .hero { padding: 20px 10px 30px; }
  .hero-stats { gap: 12px; }
  .hero-stat { padding: 12px 20px; }
  .hero-stat-number { font-size: 24px; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .category-card-body { padding: 10px 12px; }
  .category-card-name { font-size: 14px; }
  .category-card-theme { display: none; }
  .lessons-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .step-nav-btn { width: 40px; height: 40px; font-size: 18px; }
  .step-nav-btn.prev { left: 6px; }
  .step-nav-btn.next { right: 6px; }
  .step-thumb { width: 48px; height: 48px; }
  .lesson-complete-modal { padding: 30px; }
}

@media (max-width: 480px) {
  .header { height: 56px; }
  .main { padding-top: 76px; }
  .logo { font-size: 22px; }
  .logo-d, .logo-o1, .logo-o2 { width: 26px; height: 26px; font-size: 18px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lessons-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lesson-card-body { padding: 8px 10px; }
  .lesson-card-name { font-size: 13px; }
  .theme-chip { padding: 8px 16px; font-size: 13px; }
  .back-btn { width: 40px; height: 40px; border-radius: 12px; font-size: 20px; }
}

@media (min-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .step-container { border-radius: 28px; }
}

/* ===== SCROLLBAR GLOBAL ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,51,102,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,51,102,0.4); }
