/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0a0a0f;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: #6ee7b7; text-decoration: none; }
a:hover { color: #a7f3d0; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(110, 231, 183, 0.1);
}
.nav-brand {
  font-size: 1.2rem; font-weight: 700;
  background: linear-gradient(135deg, #6ee7b7, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-icon { font-size: 1.3rem; -webkit-text-fill-color: #6ee7b7; }
.nav-links {
  display: flex; gap: 1.5rem;
}
.nav-links a { color: #94a3b8; font-weight: 500; transition: color 0.3s; font-size: 0.95rem; }
.nav-links a:hover { color: #6ee7b7; }
.nav-toggle { display: none; background: none; border: none; color: #e0e0e0; font-size: 1.5rem; cursor: pointer; padding: 0.5rem; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  background: radial-gradient(ellipse at top, rgba(110, 231, 183, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
              #0a0a0f;
}
.hero-content { max-width: 800px; width: 100%; }
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #ffffff 0%, #6ee7b7 50%, #3b82f6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: clamp(1rem, 2.5vw, 1.3rem); color: #94a3b8; margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 800; color: #6ee7b7; }
.stat-label { font-size: 0.75rem; color: #64748b; text-transform: uppercase; letter-spacing: 1px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 0.8rem 1.8rem; border-radius: 50px; font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: none; transition: all 0.3s; margin: 0.4rem;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: linear-gradient(135deg, #6ee7b7, #3b82f6); color: #0a0a0f;
}
.btn-primary:hover, .btn-primary:active { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(110, 231, 183, 0.3); }
.btn-secondary {
  background: transparent; color: #6ee7b7; border: 2px solid rgba(110, 231, 183, 0.3);
}
.btn-secondary:hover, .btn-secondary:active { border-color: #6ee7b7; background: rgba(110, 231, 183, 0.05); }

/* ===== SECTIONS ===== */
.section { padding: 4rem 1.2rem; max-width: 1400px; margin: 0 auto; }
.section-dark { background: rgba(15, 15, 25, 0.5); max-width: 100%; padding-left: 1.2rem; padding-right: 1.2rem; }
.section-dark > * { max-width: 1400px; margin-left: auto; margin-right: auto; }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; text-align: center; margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff, #6ee7b7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub { text-align: center; color: #64748b; margin-bottom: 2.5rem; font-size: 1rem; }

/* ===== CATEGORY GRID ===== */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.category-card {
  background: linear-gradient(145deg, rgba(30, 30, 45, 0.8), rgba(20, 20, 35, 0.9));
  border: 1px solid rgba(110, 231, 183, 0.1);
  border-radius: 16px; padding: 1.5rem; cursor: pointer;
  transition: all 0.3s;
  position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.category-card:hover, .category-card:active {
  transform: translateY(-3px);
  border-color: rgba(110, 231, 183, 0.3);
  box-shadow: 0 8px 30px rgba(110, 231, 183, 0.08);
}
.category-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cat-color, #6ee7b7), transparent);
}
.cat-icon { font-size: 2rem; margin-bottom: 0.8rem; display: block; }
.cat-name { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.cat-count { font-size: 0.85rem; color: #64748b; }
.cat-desc { font-size: 0.85rem; color: #94a3b8; margin-top: 0.4rem; }

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex; gap: 0.8rem; margin-bottom: 1.2rem; flex-wrap: wrap;
}
.filter-bar input, .filter-bar select {
  padding: 0.7rem 1rem; border-radius: 12px;
  background: rgba(30, 30, 45, 0.8); border: 1px solid rgba(110, 231, 183, 0.15);
  color: #e0e0e0; font-size: 0.95rem; flex: 1; min-width: 0;
}
.filter-bar input:focus, .filter-bar select:focus {
  outline: none; border-color: #6ee7b7;
}
.filter-bar select option { background: #1a1a2e; }
.course-count { color: #64748b; margin-bottom: 1.2rem; font-size: 0.9rem; }

/* ===== COURSE GRID ===== */
.course-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.course-card {
  background: linear-gradient(145deg, rgba(30, 30, 45, 0.9), rgba(18, 18, 30, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px; padding: 1.5rem; cursor: pointer;
  transition: all 0.3s; position: relative;
  -webkit-tap-highlight-color: transparent;
}
.course-card:hover, .course-card:active {
  transform: translateY(-2px);
  border-color: rgba(110, 231, 183, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.course-card .course-cat {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--cat-color, #6ee7b7); margin-bottom: 0.6rem; font-weight: 600;
}
.course-card h3 { font-size: 1.05rem; color: #fff; margin-bottom: 0.4rem; font-weight: 700; line-height: 1.3; }
.course-card p { font-size: 0.85rem; color: #94a3b8; margin-bottom: 0.8rem; line-height: 1.5; }
.course-meta { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.badge {
  padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.7rem; font-weight: 600;
}
.badge-beginner { background: rgba(110, 231, 183, 0.15); color: #6ee7b7; }
.badge-intermediate { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge-advanced { background: rgba(244, 114, 182, 0.15); color: #f472b6; }
.course-meta span { font-size: 0.8rem; color: #64748b; }

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center; align-items: flex-start;
  padding: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-overlay.active { display: flex; }
.modal {
  background: linear-gradient(145deg, #1a1a2e, #12121f);
  border: 1px solid rgba(110, 231, 183, 0.15);
  border-radius: 20px; max-width: 700px; width: calc(100% - 1.5rem);
  margin: 1rem auto; position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-close {
  position: absolute; top: 0.8rem; right: 1rem; background: none; border: none;
  color: #64748b; font-size: 1.8rem; cursor: pointer; z-index: 10;
  padding: 0.5rem; -webkit-tap-highlight-color: transparent;
}
.modal-close:hover { color: #fff; }
.modal-header { padding: 2rem 1.5rem 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.modal-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: #6ee7b7; font-weight: 600; }
.modal-header h2 { font-size: 1.4rem; color: #fff; margin: 0.5rem 0; line-height: 1.3; }
.modal-meta { display: flex; gap: 1rem; color: #94a3b8; font-size: 0.85rem; flex-wrap: wrap; }
.modal-body { padding: 1.5rem; }
.modal-body h3 { color: #6ee7b7; margin: 1.2rem 0 0.8rem; font-size: 1rem; }
.modal-body p { color: #94a3b8; line-height: 1.7; font-size: 0.95rem; }
.module-list { display: flex; flex-direction: column; gap: 0.5rem; }
.module-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 1rem; border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.module-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(110, 231, 183, 0.2), rgba(59, 130, 246, 0.2));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #6ee7b7; flex-shrink: 0;
}
.module-name { color: #e0e0e0; font-size: 0.9rem; }
.outcomes-list { list-style: none; padding: 0; }
.outcomes-list li {
  padding: 0.35rem 0; color: #94a3b8; font-size: 0.9rem;
  padding-left: 1.3rem; position: relative;
}
.outcomes-list li::before {
  content: '\2713'; position: absolute; left: 0; color: #6ee7b7; font-weight: bold;
}
.modal-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex; gap: 0.8rem; justify-content: flex-end; flex-wrap: wrap;
}

/* ===== PRESENTATION MODE ===== */
.presentation {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: #0a0a0f; flex-direction: column;
}
.presentation.active { display: flex; }
.pres-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(15, 15, 25, 0.95);
  border-bottom: 1px solid rgba(110, 231, 183, 0.1);
  min-height: 48px;
}
.pres-brand { font-weight: 700; color: #6ee7b7; font-size: 0.9rem; }
.pres-title { color: #94a3b8; font-size: 0.85rem; flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 1rem; }
.pres-exit {
  background: rgba(244, 63, 94, 0.15); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 0.4rem 0.8rem; border-radius: 8px; cursor: pointer; font-size: 1.1rem;
  -webkit-tap-highlight-color: transparent;
}
.pres-exit:hover { background: rgba(244, 63, 94, 0.25); }
.pres-header-controls { display: flex; align-items: center; gap: 0.5rem; }
.pres-slide {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 2rem 1.5rem;
  text-align: center; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pres-slide h1 {
  font-size: clamp(1.5rem, 5vw, 3rem); font-weight: 800; margin-bottom: 0.8rem;
  background: linear-gradient(135deg, #fff, #6ee7b7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 800px;
}
.pres-slide h2 {
  font-size: clamp(1.3rem, 4vw, 2.2rem); font-weight: 700; color: #fff; margin-bottom: 1rem;
}
.pres-slide p { font-size: clamp(0.95rem, 2.5vw, 1.3rem); color: #94a3b8; max-width: 700px; line-height: 1.8; }
.pres-slide ul {
  list-style: none; text-align: left; max-width: 600px; width: 100%;
}
.pres-slide ul li {
  font-size: clamp(0.9rem, 2.5vw, 1.2rem); color: #e0e0e0; padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-left: 1.5rem; position: relative;
}
.pres-slide ul li::before {
  content: '\25C6'; position: absolute; left: 0; color: #6ee7b7;
}
.pres-slide .slide-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px;
  color: #6ee7b7; margin-bottom: 1rem;
}
.pres-slide .big-icon { font-size: clamp(2.5rem, 8vw, 4rem); margin-bottom: 1rem; }
.pres-controls {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  padding: 1rem;
  background: rgba(15, 15, 25, 0.95);
  border-top: 1px solid rgba(110, 231, 183, 0.1);
}
.pres-btn {
  background: linear-gradient(135deg, rgba(110, 231, 183, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(110, 231, 183, 0.2); color: #e0e0e0;
  padding: 0.7rem 1.5rem; border-radius: 10px; cursor: pointer;
  font-size: 1.1rem; transition: all 0.3s;
  -webkit-tap-highlight-color: transparent;
  min-width: 48px; min-height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.pres-btn:hover, .pres-btn:active { background: rgba(110, 231, 183, 0.2); border-color: #6ee7b7; }
.pres-progress { color: #64748b; font-size: 0.9rem; min-width: 60px; text-align: center; }

/* ===== VOICE INDICATOR (header) ===== */
.voice-indicator {
  display: flex; align-items: center; gap: 2px; height: 16px; padding: 0 4px;
}
.voice-indicator .wave {
  width: 2px; height: 4px; background: #475569; border-radius: 2px; transition: all 0.3s;
}
.voice-indicator.speaking .wave {
  background: #6ee7b7; animation: waveAnim 0.8s ease-in-out infinite alternate;
}
.voice-indicator.speaking .wave:nth-child(2) { animation-delay: 0.2s; }
.voice-indicator.speaking .wave:nth-child(3) { animation-delay: 0.4s; }
@keyframes waveAnim { 0% { height: 4px; } 100% { height: 14px; } }

/* ===== SETTINGS GEAR BUTTON ===== */
.settings-btn {
  background: none; border: 1px solid rgba(110, 231, 183, 0.15);
  color: #94a3b8; font-size: 1.2rem; cursor: pointer;
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.settings-btn:hover, .settings-btn:active {
  color: #6ee7b7; border-color: rgba(110, 231, 183, 0.4);
  background: rgba(110, 231, 183, 0.08);
}

/* ===== SETTINGS OVERLAY ===== */
.settings-overlay {
  display: none; position: fixed; inset: 0; z-index: 310;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  transition: opacity 0.3s;
}
.settings-overlay.active { display: block; }

/* ===== SETTINGS PANEL ===== */
.settings-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 320;
  width: 300px; max-width: 85vw;
  background: rgba(18, 18, 30, 0.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(110, 231, 183, 0.12);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
}
.settings-panel.active {
  transform: translateX(0);
}
.settings-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(110, 231, 183, 0.1);
}
.settings-header h3 {
  font-size: 1rem; font-weight: 700; color: #e0e0e0; margin: 0;
}
.settings-close {
  background: none; border: none; color: #64748b; font-size: 1.5rem;
  cursor: pointer; padding: 0.3rem; line-height: 1;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.settings-close:hover { color: #fff; }
.settings-body {
  flex: 1; overflow-y: auto; padding: 1rem 1.2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.setting-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.setting-item label:first-child {
  color: #c0c8d4; font-size: 0.9rem; font-weight: 500;
}
.setting-item button {
  background: rgba(110, 231, 183, 0.1); border: 1px solid rgba(110, 231, 183, 0.2);
  color: #6ee7b7; padding: 0.45rem 0.9rem; border-radius: 8px;
  cursor: pointer; font-size: 0.82rem; font-weight: 600;
  transition: all 0.2s; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.setting-item button:hover, .setting-item button:active {
  background: rgba(110, 231, 183, 0.2);
}
.setting-item button.voice-off {
  color: #64748b; border-color: rgba(100, 116, 139, 0.3);
  background: rgba(100, 116, 139, 0.08);
}
.setting-item select {
  background: rgba(30, 30, 45, 0.9); border: 1px solid rgba(110, 231, 183, 0.15);
  color: #e0e0e0; padding: 0.4rem 0.6rem; border-radius: 8px;
  font-size: 0.85rem; cursor: pointer;
}
.setting-item select option { background: #1a1a2e; }

/* ===== TOGGLE SWITCH (iOS-style) ===== */
.toggle-switch {
  position: relative; display: inline-block; width: 48px; height: 26px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(100, 116, 139, 0.3);
  border-radius: 26px; transition: all 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 20px; height: 20px; left: 3px; bottom: 3px;
  background: #94a3b8; border-radius: 50%;
  transition: all 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
  background: rgba(110, 231, 183, 0.35);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: #6ee7b7;
}

/* ===== FONT SIZE CLASSES ===== */
.pres-slide.font-small { font-size: 0.85em; }
.pres-slide.font-medium { font-size: 1em; }
.pres-slide.font-large { font-size: 1.2em; }

/* ===== ENHANCED SLIDE CONTENT ===== */
.pres-slide .slide-section { max-width: 700px; width: 100%; text-align: left; margin-top: 1.5rem; }
.pres-slide .key-point {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 0.8rem 1rem; margin-bottom: 0.6rem; border-radius: 12px;
  background: rgba(30, 30, 45, 0.6); border-left: 3px solid #6ee7b7;
}
.pres-slide .key-point-num {
  background: linear-gradient(135deg, #6ee7b7, #3b82f6);
  color: #0a0a0f; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
}
.pres-slide .key-point-text { color: #e0e0e0; font-size: clamp(0.85rem, 2vw, 1.05rem); line-height: 1.5; }
.pres-slide .exercise-box {
  max-width: 700px; width: 100%; margin-top: 1.5rem;
  padding: 1.5rem; border-radius: 16px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.08), rgba(110, 231, 183, 0.08));
  border: 1px solid rgba(110, 231, 183, 0.15); text-align: left;
}
.pres-slide .exercise-box h3 { color: #6ee7b7; font-size: 1rem; margin-bottom: 0.6rem; }
.pres-slide .exercise-box p { font-size: clamp(0.9rem, 2vw, 1.05rem); color: #e0e0e0; }
.pres-slide .module-overview {
  max-width: 700px; font-size: clamp(1rem, 2.5vw, 1.2rem); color: #94a3b8; line-height: 1.8; margin-bottom: 0.8rem;
}

/* ===== PREMIUM SLIDE ENHANCEMENTS ===== */

/* Fade-in entrance animation */
.slide-fade-in {
  animation: slideFadeIn 0.5s ease-out both;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* "What you'll discover" intro text */
.slide-discover-intro {
  font-size: 0.8rem;
  color: #6ee7b7;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* Duration / meta pill badges */
.duration-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c4b5fd;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.25);
  letter-spacing: 0.3px;
}

/* Insight card — styled card for key points */
.insight-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(30, 30, 50, 0.7), rgba(20, 20, 38, 0.9));
  border: 1px solid rgba(110, 231, 183, 0.1);
  border-left: 3px solid #6ee7b7;
  transition: transform 0.2s, box-shadow 0.2s;
}
.insight-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(110, 231, 183, 0.08);
}

/* Number circle for insights */
.insight-num {
  background: linear-gradient(135deg, #6ee7b7, #3b82f6);
  color: #0a0a0f;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(110, 231, 183, 0.25);
}

/* Exercise / activity card */
.exercise-card {
  max-width: 700px;
  width: 100%;
  margin-top: 1.2rem;
  padding: 2rem 1.8rem;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.1), rgba(110, 231, 183, 0.06));
  border: 1px solid rgba(59, 130, 246, 0.2);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.exercise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #6ee7b7, #f472b6);
}
.exercise-card-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #3b82f6;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.exercise-card h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}
.exercise-card p {
  color: #cbd5e1;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.8;
}
.exercise-card-motivation {
  margin-top: 1.2rem !important;
  color: #6ee7b7 !important;
  font-weight: 700;
  font-size: 1.1rem !important;
}

/* "Did You Know?" fun fact card */
.fun-fact-card {
  max-width: 650px;
  width: 100%;
  margin-top: 1.2rem;
  padding: 2.2rem 2rem;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(244, 114, 182, 0.08), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(244, 114, 182, 0.2);
  text-align: center;
  position: relative;
}
.fun-fact-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.3), transparent, rgba(139, 92, 246, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.fun-fact-card p {
  font-size: clamp(1.1rem, 3vw, 1.4rem) !important;
  color: #f0e6ff !important;
  line-height: 1.8 !important;
  font-weight: 500;
}

/* Module complete celebration */
.module-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 500px;
  width: 100%;
}
.module-complete h2 {
  color: #6ee7b7 !important;
  margin-bottom: 0.5rem;
}
.module-complete p {
  color: #94a3b8;
  font-size: 1.05rem;
}
.module-complete-progress {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.module-complete-bar-track {
  width: 100%;
  max-width: 300px;
  height: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 0.6rem;
  overflow: hidden;
}
.module-complete-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #6ee7b7, #3b82f6);
  transition: width 0.6s ease;
  box-shadow: 0 0 12px rgba(110, 231, 183, 0.4);
}

/* Achievement card — final completion slide */
.achievement-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  width: 100%;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(30, 30, 50, 0.8), rgba(15, 15, 30, 0.95));
  border: 1px solid rgba(110, 231, 183, 0.15);
  position: relative;
  overflow: hidden;
}
.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6ee7b7, #3b82f6, #f472b6, #6ee7b7);
  background-size: 200% 100%;
  animation: achievementShimmer 3s linear infinite;
}
@keyframes achievementShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.achievement-badge {
  font-size: clamp(3rem, 8vw, 4.5rem);
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 20px rgba(110, 231, 183, 0.3));
}
.achievement-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #6ee7b7;
  font-weight: 700;
  margin-bottom: 0.8rem;
  padding: 0.3rem 1rem;
  border: 1px solid rgba(110, 231, 183, 0.25);
  border-radius: 50px;
}
.achievement-card h1 {
  margin-bottom: 0.6rem;
}

/* Mobile adjustments for premium slides */
@media (max-width: 768px) {
  .exercise-card { padding: 1.5rem 1.2rem; }
  .fun-fact-card { padding: 1.5rem 1.2rem; }
  .achievement-card { padding: 1.8rem 1.2rem; }
  .insight-card { padding: 0.8rem 1rem; }
}
@media (max-width: 380px) {
  .exercise-card { padding: 1.2rem 1rem; border-radius: 14px; }
  .fun-fact-card { padding: 1.2rem 1rem; border-radius: 14px; }
  .achievement-card { padding: 1.5rem 1rem; border-radius: 16px; }
}

/* ===== ABOUT ===== */
.about-content { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
.about-text p { color: #94a3b8; margin-bottom: 0.8rem; font-size: 1rem; line-height: 1.7; }
.about-features { display: flex; flex-direction: column; gap: 0.6rem; }
.feature {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.8rem 1rem; border-radius: 12px;
  background: rgba(30, 30, 45, 0.6);
  border: 1px solid rgba(110, 231, 183, 0.08);
  font-size: 0.95rem;
}
.feature-icon { color: #6ee7b7; font-weight: bold; font-size: 1.1rem; }

/* ===== FOOTER ===== */
.footer {
  text-align: center; padding: 2rem 1.2rem;
  border-top: 1px solid rgba(110, 231, 183, 0.08);
  color: #475569; font-size: 0.9rem;
}
.footer p:last-child { color: #6ee7b7; margin-top: 0.3rem; font-style: italic; }

/* ===== UTILITIES ===== */
.hide-mobile { }

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 15, 0.98); flex-direction: column;
    align-items: center; justify-content: center; gap: 2rem; z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.3rem; }
  .nav-toggle { display: block; z-index: 101; }
  .hero { padding: 4.5rem 1rem 2.5rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .section { padding: 3rem 1rem; }
  .section-title { margin-bottom: 0.3rem; }
  .about-content { grid-template-columns: 1fr; gap: 1.5rem; }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .course-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; }
  .filter-bar input, .filter-bar select { min-width: auto; width: 100%; }
  .modal { margin: 0.5rem; width: calc(100% - 1rem); border-radius: 16px; max-height: 95vh; overflow-y: auto; }
  .modal-header { padding: 1.5rem 1.2rem 1rem; }
  .modal-header h2 { font-size: 1.2rem; }
  .modal-body { padding: 1.2rem; }
  .modal-footer { padding: 1rem 1.2rem; flex-direction: column; }
  .btn-full-mobile { width: 100%; text-align: center; }
  .pres-slide { padding: 1.5rem 1rem; }
  .pres-controls { gap: 1rem; padding: 0.8rem; }
  .hide-mobile { display: none !important; }
  .brand-text { font-size: 1rem; }
}

/* ===== RESPONSIVE: SMALL PHONE ===== */
@media (max-width: 380px) {
  .hero { padding: 4rem 0.8rem 2rem; }
  .hero-stats { gap: 0.5rem; }
  .stat-label { font-size: 0.65rem; }
  .btn { padding: 0.7rem 1.2rem; font-size: 0.85rem; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { padding: 1.2rem; }
  .course-card { padding: 1.2rem; }
  .pres-header { padding: 0.5rem 0.6rem; }
  .pres-slide { padding: 1rem 0.8rem; }
  .pres-btn { padding: 0.6rem 1rem; min-width: 44px; min-height: 44px; }
  .modal { margin: 0.25rem; border-radius: 12px; }
}

/* ===== TOUCH TARGETS ===== */
@media (pointer: coarse) {
  .btn, .pres-btn, .settings-btn, .pres-exit, .nav-toggle, .modal-close, .settings-close {
    min-height: 44px; min-width: 44px;
  }
  .course-card, .category-card {
    cursor: default;
  }
}

/* ===== SAFE AREA (notch phones) ===== */
@supports (padding: env(safe-area-inset-top)) {
  .nav { padding-top: max(0.8rem, env(safe-area-inset-top)); }
  .pres-controls { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
  .footer { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ===== LANDSCAPE PHONE ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 4rem 1rem 2rem; }
  .pres-slide { padding: 1rem; }
  .pres-slide h1 { font-size: 1.5rem; }
  .pres-slide h2 { font-size: 1.3rem; }
  .pres-slide .big-icon { font-size: 2rem; margin-bottom: 0.5rem; }
}

/* ============================================================
   ANIMATIONS & INTERACTIVE ELEMENTS
   ============================================================ */

/* ===== 1. SLIDE ENTER ANIMATION ===== */
@keyframes slideEnter {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pres-slide > * {
  animation: slideEnter 0.6s ease-out both;
}

/* ===== 2. STAGGERED ENTRANCE ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stagger-item {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
  animation-delay: calc(var(--i, 0) * 0.12s);
}

/* ===== 3. PULSE ANIMATION FOR NUMBERS/STATS ===== */
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.insight-num,
.module-num {
  animation: pulse 2.5s ease-in-out infinite;
}

/* ===== 4. FLOATING ANIMATION FOR ICONS ===== */
@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
.pres-slide .big-icon {
  animation: float 3s ease-in-out infinite;
}

/* ===== 5. PROGRESS BAR ===== */
.pres-progress-bar {
  position: absolute; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, #6ee7b7, #3b82f6);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(110, 231, 183, 0.4);
}
.pres-header {
  position: relative;
}

/* ===== 6. TYPING EFFECT FOR SLIDE TITLES ===== */
@keyframes typing {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes blinkCaret {
  0%, 100% { border-right-color: transparent; }
  50%      { border-right-color: #6ee7b7; }
}
.pres-slide .typed-title {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #6ee7b7;
  width: 0;
  animation: typing 1.2s steps(30, end) forwards, blinkCaret 0.7s step-end 4;
  max-width: 100%;
}

/* ===== 7. GLOW PULSE ON ACTIVE ELEMENTS ===== */
@keyframes glowPulse {
  0%   { box-shadow: 0 0 5px rgba(110, 231, 183, 0.2); }
  50%  { box-shadow: 0 0 15px rgba(110, 231, 183, 0.4), 0 0 30px rgba(59, 130, 246, 0.15); }
  100% { box-shadow: 0 0 5px rgba(110, 231, 183, 0.2); }
}
.pres-btn:focus,
.pres-btn:active,
.key-point:hover,
.quiz-option:hover,
.quiz-option.selected {
  animation: glowPulse 1.5s ease-in-out infinite;
}

/* ===== 8. SMOOTH GRADIENT BACKGROUND SHIFT ===== */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.pres-slide {
  background: linear-gradient(135deg,
    #0a0a0f 0%,
    rgba(110, 231, 183, 0.03) 25%,
    #0a0a0f 50%,
    rgba(59, 130, 246, 0.03) 75%,
    #0a0a0f 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

/* ===== SWIPE ANIMATIONS ===== */
@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-60px); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(60px); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
.pres-slide.slide-forward > * {
  animation: slideInRight 0.5s ease-out both;
}
.pres-slide.slide-backward > * {
  animation: slideInLeft 0.5s ease-out both;
}

/* ===== TOAST / CELEBRATION POPUP ===== */
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-30px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-20px) scale(0.9); }
}
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  z-index: 500;
  padding: 1rem 2rem; border-radius: 16px;
  background: linear-gradient(135deg, rgba(110, 231, 183, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(110, 231, 183, 0.3);
  color: #6ee7b7; font-weight: 600; font-size: 1rem;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: toastIn 0.4s ease-out;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 8px 30px rgba(110, 231, 183, 0.15);
}
.toast.dismissing {
  animation: toastOut 0.4s ease-in forwards;
}

/* ===== QUIZ SLIDE ===== */
.quiz-container {
  max-width: 600px; width: 100%; text-align: left; margin-top: 1.5rem;
}
.quiz-question {
  font-size: clamp(1rem, 2.5vw, 1.2rem); color: #e0e0e0;
  margin-bottom: 1.2rem; line-height: 1.6;
}
.quiz-options {
  display: flex; flex-direction: column; gap: 0.6rem;
}
.quiz-option {
  padding: 0.9rem 1.2rem; border-radius: 12px;
  background: rgba(30, 30, 45, 0.7);
  border: 2px solid rgba(110, 231, 183, 0.12);
  color: #e0e0e0; font-size: clamp(0.9rem, 2vw, 1.05rem);
  cursor: pointer; transition: all 0.3s;
  display: flex; align-items: center; gap: 0.8rem;
}
.quiz-option:hover {
  border-color: rgba(110, 231, 183, 0.5);
  background: rgba(110, 231, 183, 0.08);
  transform: translateX(6px);
  box-shadow: 0 2px 12px rgba(110, 231, 183, 0.1);
}
.quiz-option .opt-letter {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(110, 231, 183, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; color: #6ee7b7;
  flex-shrink: 0;
}
.quiz-option.correct {
  border-color: #6ee7b7;
  background: rgba(110, 231, 183, 0.12);
}
.quiz-option.correct .opt-letter {
  background: #6ee7b7; color: #0a0a0f;
}
.quiz-option.incorrect {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
}
.quiz-option.incorrect .opt-letter {
  background: #f43f5e; color: #fff;
}
.quiz-feedback {
  margin-top: 1rem; padding: 0.8rem 1rem; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600;
  animation: fadeInUp 0.3s ease-out;
}
.quiz-feedback.correct {
  background: rgba(110, 231, 183, 0.1); color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.2);
}
.quiz-feedback.incorrect {
  background: rgba(244, 63, 94, 0.1); color: #f472b6;
  border: 1px solid rgba(244, 63, 94, 0.2);
}

/* ===== REFLECTION SLIDE ===== */
.reflection-container {
  max-width: 600px; width: 100%; margin-top: 1.5rem;
}
.reflection-prompt {
  font-size: clamp(1rem, 2.5vw, 1.15rem); color: #a78bfa;
  line-height: 1.7; font-style: italic; margin-bottom: 1.2rem;
}
.reflection-textarea {
  width: 100%; min-height: 120px; padding: 1rem; border-radius: 12px;
  background: rgba(30, 30, 45, 0.7);
  border: 1px solid rgba(167, 139, 250, 0.2);
  color: #e0e0e0; font-size: 1rem; font-family: inherit;
  resize: vertical; line-height: 1.6;
}
.reflection-textarea:focus {
  outline: none; border-color: #a78bfa;
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.15);
}
.reflection-textarea::placeholder { color: #475569; }
.reflection-continue {
  margin-top: 1rem; display: inline-block;
  padding: 0.6rem 1.5rem; border-radius: 50px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #a78bfa; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: all 0.3s;
}
.reflection-continue:hover {
  background: rgba(167, 139, 250, 0.2); border-color: #a78bfa;
}

/* ===== CLICK-TO-REVEAL KEY POINTS ===== */
.key-point.revealable {
  cursor: pointer; transition: all 0.4s ease;
  position: relative;
}
.key-point.revealable .key-point-text {
  filter: blur(6px);
  transition: filter 0.4s ease;
  user-select: none;
}
.key-point.revealable:hover {
  border-left-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
  transform: translateX(4px);
}
.key-point.revealable::after {
  content: 'Tap to reveal';
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  font-size: 0.7rem; color: #6ee7b7; text-transform: uppercase; letter-spacing: 1px;
  transition: opacity 0.3s;
  background: rgba(110, 231, 183, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.key-point.revealed {
  cursor: default;
}
.key-point.revealed .key-point-text {
  filter: blur(0);
}
.key-point.revealed::after {
  opacity: 0;
}
.key-point.revealed:hover {
  transform: none;
}
.key-point {
  position: relative;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #0a0a0f;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s ease;
}
.loading-overlay.done {
  opacity: 0;
  pointer-events: none;
}
.loading-spinner {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.loading-text {
  color: #64748b; font-size: 0.9rem; letter-spacing: 1px;
}
.loading-bar {
  width: 180px; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.06); overflow: hidden;
}
.loading-bar-fill {
  width: 60%; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #6ee7b7, #3b82f6);
  animation: loadingProgress 1.2s ease-in-out infinite;
}
@keyframes loadingProgress {
  0% { width: 0%; margin-left: 0; }
  50% { width: 70%; margin-left: 15%; }
  100% { width: 0%; margin-left: 100%; }
}
body.is-loading {
  overflow: hidden;
}

/* ===== HERO CTA & TRUST ===== */
.btn-hero-cta {
  font-size: 1.1rem;
  padding: 1rem 2.4rem;
  box-shadow: 0 4px 20px rgba(110, 231, 183, 0.25);
}
.hero-trust {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: #475569;
  letter-spacing: 0.3px;
}

/* ===== FOCUS STYLES (Accessibility) ===== */
*:focus-visible {
  outline: 2px solid #6ee7b7;
  outline-offset: 2px;
}
.btn:focus-visible {
  outline: 2px solid #6ee7b7;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.15);
}
.course-card:focus-visible,
.category-card:focus-visible {
  outline: 2px solid #6ee7b7;
  outline-offset: 2px;
  border-color: rgba(110, 231, 183, 0.3);
}
.quiz-option:focus-visible {
  outline: 2px solid #6ee7b7;
  outline-offset: 2px;
}
.filter-bar input:focus-visible,
.filter-bar select:focus-visible {
  outline: none;
  border-color: #6ee7b7;
  box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.15);
}

/* ===== AVATAR ===== */
.avatar-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 140px;
  height: 175px;
  z-index: 250;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.avatar-container.hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
}

.avatar-container svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 20px rgba(110, 231, 183, 0.3));
}

/* Avatar speech bubble indicator */
.avatar-container::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #6ee7b7;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}

.avatar-container.speaking::before {
  opacity: 1;
  animation: avatarPulse 1s ease infinite;
}

@keyframes avatarPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
  50% { transform: translateX(-50%) scale(1.5); opacity: 0; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .avatar-container {
    width: 100px;
    height: 125px;
    bottom: 70px;
    right: 10px;
  }
}

@media (max-width: 380px) {
  .avatar-container {
    width: 80px;
    height: 100px;
    bottom: 65px;
    right: 5px;
  }
}

/* When settings panel is open, move avatar left */
.settings-panel.active ~ .avatar-container {
  transform: translateX(-320px);
}

/* Slide area padding to not overlap avatar */
.presentation.active .pres-slide {
  padding-right: 160px;
}

@media (max-width: 768px) {
  .presentation.active .pres-slide {
    padding-right: 10px;  /* Don't pad on mobile — avatar overlaps slightly and that's OK */
  }
}

/* ===== NAV ACTIONS ===== */
.nav-actions {
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-user {
  display: flex; align-items: center; gap: 0.4rem; cursor: pointer;
}
.nav-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #6ee7b7, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #0a0a0f;
}
.nav-user-name {
  font-size: 0.85rem; color: #94a3b8; max-width: 100px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-accent {
  background: linear-gradient(135deg, #f472b6, #a78bfa);
  color: #fff; border: none; font-weight: 600;
}
.btn-accent:hover { opacity: 0.9; }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.8rem; border-radius: 6px; cursor: pointer; }
.btn-xs { padding: 0.25rem 0.6rem; font-size: 0.72rem; border-radius: 5px; cursor: pointer; }
.btn-full { width: 100%; }

@media (max-width: 768px) {
  .nav-actions { gap: 0.3rem; }
  .nav-user-name { display: none; }
}

/* ===== AUTH MODAL ===== */
.auth-overlay {
  display: none; position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  justify-content: center; align-items: center;
}
.auth-overlay.active { display: flex; }
.auth-modal {
  background: #12121a; border: 1px solid rgba(110,231,183,0.15);
  border-radius: 16px; padding: 2rem; width: 90%; max-width: 400px;
  position: relative;
}
.auth-close {
  position: absolute; top: 0.8rem; right: 1rem;
  background: none; border: none; color: #64748b; font-size: 1.5rem; cursor: pointer;
}
.auth-close:hover { color: #e0e0e0; }
.auth-tabs {
  display: flex; gap: 0; margin-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.auth-tab {
  flex: 1; padding: 0.6rem; background: none; border: none; color: #64748b;
  font-size: 0.95rem; cursor: pointer; border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.auth-tab.active { color: #6ee7b7; border-bottom-color: #6ee7b7; }
.auth-message { color: #94a3b8; font-size: 0.85rem; margin-bottom: 1rem; text-align: center; }
.auth-form { display: flex; flex-direction: column; gap: 0.8rem; }
.auth-form input {
  padding: 0.75rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
  background: #1a1a2e; color: #e0e0e0; font-size: 0.95rem; outline: none;
  transition: border-color 0.2s;
}
.auth-form input:focus { border-color: #6ee7b7; }
.auth-error { color: #f87171; font-size: 0.8rem; min-height: 1.2rem; }
.auth-sub-note { color: #64748b; font-size: 0.78rem; text-align: center; }

/* ===== PAYWALL OVERLAY ===== */
.paywall-overlay {
  display: none; position: fixed; inset: 0; z-index: 1050;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(12px);
  overflow-y: auto; justify-content: center; align-items: flex-start;
  padding: 2rem 1rem;
}
.paywall-overlay.active { display: flex; }
.paywall-content {
  background: #12121a; border: 1px solid rgba(110,231,183,0.12);
  border-radius: 20px; padding: 2.5rem 2rem; width: 100%; max-width: 900px;
  position: relative; margin: auto;
}
.paywall-close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: none; border: none; color: #64748b; font-size: 1.8rem; cursor: pointer;
}
.paywall-close:hover { color: #e0e0e0; }
.paywall-header { text-align: center; margin-bottom: 2rem; }
.paywall-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.paywall-header h2 {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #6ee7b7, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.paywall-sub { color: #94a3b8; margin-top: 0.3rem; }
.paywall-course-msg { color: #fbbf24; margin-top: 0.6rem; font-size: 0.9rem; }
.paywall-plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem; margin-bottom: 1.5rem;
}
.paywall-plan {
  background: #1a1a2e; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 1.5rem; cursor: pointer;
  transition: all 0.2s; position: relative; text-align: center;
}
.paywall-plan:hover { border-color: rgba(110,231,183,0.3); transform: translateY(-2px); }
.paywall-plan.popular { border-color: #6ee7b7; }
.plan-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #6ee7b7, #3b82f6); color: #0a0a0f;
  padding: 0.2rem 0.8rem; border-radius: 20px; font-size: 0.7rem; font-weight: 700;
}
.plan-savings {
  background: rgba(251,191,36,0.15); color: #fbbf24;
  padding: 0.15rem 0.6rem; border-radius: 20px; font-size: 0.7rem; font-weight: 600;
  display: inline-block; margin-bottom: 0.5rem;
}
.plan-price { font-size: 2rem; font-weight: 800; color: #fff; margin: 0.5rem 0; }
.plan-period { font-size: 0.85rem; color: #64748b; font-weight: 400; }
.plan-features { list-style: none; text-align: left; margin: 1rem 0; }
.plan-features li { padding: 0.3rem 0; color: #94a3b8; font-size: 0.85rem; }
.plan-cta {
  width: 100%; padding: 0.6rem; margin-top: 0.5rem;
}
.paywall-footer { text-align: center; color: #64748b; font-size: 0.8rem; }
.paywall-free-note { margin-top: 0.5rem; }
.paywall-free-note a { color: #6ee7b7; }

/* ===== PRICING SECTION ===== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; max-width: 900px; margin: 2rem auto;
}
.pricing-card {
  background: #12121a; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 2rem; text-align: center;
  transition: all 0.3s; position: relative;
}
.pricing-card:hover { border-color: rgba(110,231,183,0.3); transform: translateY(-3px); }
.pricing-card.popular { border-color: #6ee7b7; }
.pricing-note { text-align: center; color: #64748b; font-size: 0.85rem; margin-top: 1rem; }

/* ===== STREAK BANNER ===== */
.streak-banner {
  background: linear-gradient(90deg, rgba(251,191,36,0.1), rgba(110,231,183,0.1));
  border-bottom: 1px solid rgba(251,191,36,0.2);
  padding: 0.5rem 1.2rem; text-align: center;
  font-size: 0.85rem; color: #fbbf24;
  margin-top: 56px;
}
.streak-fire { font-size: 1rem; }
.streak-badges { color: #6ee7b7; margin-left: 1rem; }

/* ===== COURSE CARD PROGRESS INDICATOR ===== */
.course-card-progress {
  height: 3px; background: rgba(255,255,255,0.05); border-radius: 2px;
  margin-top: 0.6rem; overflow: hidden;
}
.course-card-progress-fill {
  height: 100%; background: linear-gradient(90deg, #6ee7b7, #3b82f6);
  border-radius: 2px; transition: width 0.3s;
}
.course-card .free-badge {
  position: absolute; top: 0.6rem; right: 0.6rem;
  background: rgba(110,231,183,0.15); color: #6ee7b7;
  padding: 0.15rem 0.5rem; border-radius: 20px; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase;
}
.course-card .locked-badge {
  position: absolute; top: 0.6rem; right: 0.6rem;
  background: rgba(100,116,139,0.15); color: #64748b;
  padding: 0.15rem 0.5rem; border-radius: 20px; font-size: 0.65rem;
}
.course-card { position: relative; }

/* ===== MODAL PROGRESS BAR ===== */
.modal-progress-bar { margin: 1rem 0; }
.modal-progress-track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.modal-progress-fill { height: 100%; background: linear-gradient(90deg, #6ee7b7, #3b82f6); border-radius: 3px; transition: width 0.3s; }
.modal-progress-text { font-size: 0.78rem; color: #6ee7b7; margin-top: 0.3rem; display: inline-block; }

/* ===== BADGE TOAST ===== */
.badge-toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #1a1a2e, #12121a);
  border: 1px solid #6ee7b7; border-radius: 14px; padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: 0.8rem; z-index: 2000;
  animation: badgeSlideUp 0.4s ease-out;
  box-shadow: 0 4px 30px rgba(110,231,183,0.2);
}
.badge-toast-icon { font-size: 2rem; }
.badge-toast-text { display: flex; flex-direction: column; }
.badge-toast-text strong { color: #6ee7b7; font-size: 0.95rem; }
.badge-toast-text span { color: #94a3b8; font-size: 0.8rem; }
@keyframes badgeSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(30px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== DASHBOARD ===== */
.dashboard { max-width: 1000px; margin: 0 auto; padding: 2rem 1rem; padding-top: 5rem; }
.dash-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.dash-header h2 {
  font-size: 1.6rem;
  background: linear-gradient(135deg, #6ee7b7, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.dash-welcome { color: #94a3b8; font-size: 0.9rem; }
.dash-plan-badge {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; margin-top: 0.3rem;
}
.dash-plan-badge.premium { background: rgba(110,231,183,0.15); color: #6ee7b7; }
.dash-plan-badge.free { background: rgba(100,116,139,0.15); color: #64748b; }
.dash-header-right { display: flex; gap: 0.5rem; align-items: center; }

.dash-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.dash-stat-card {
  background: #12121a; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 1.2rem; text-align: center;
}
.dash-stat-num {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, #6ee7b7, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.dash-stat-label { color: #64748b; font-size: 0.8rem; margin-top: 0.2rem; }

.dash-section { margin-bottom: 2rem; }
.dash-section h3 {
  font-size: 1.1rem; color: #e0e0e0; margin-bottom: 1rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Dashboard Children */
.dash-children { display: flex; flex-direction: column; gap: 1rem; }
.dash-child-card {
  display: flex; gap: 1rem; background: #12121a;
  border: 1px solid rgba(255,255,255,0.06); border-radius: 12px;
  padding: 1.2rem; align-items: flex-start;
  border-left: 3px solid var(--child-color, #6ee7b7);
}
.dash-child-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: #0a0a0f; flex-shrink: 0;
}
.dash-child-info { flex: 1; }
.dash-child-info h4 { font-size: 1rem; color: #e0e0e0; }
.dash-child-age { font-size: 0.78rem; color: #64748b; font-weight: 400; margin-left: 0.3rem; }
.dash-child-stats { display: flex; gap: 1rem; margin-top: 0.3rem; flex-wrap: wrap; }
.dash-child-stats span { font-size: 0.8rem; color: #94a3b8; }
.dash-child-last { font-size: 0.75rem; color: #475569; margin-top: 0.3rem; }
.dash-child-recent { font-size: 0.75rem; color: #64748b; margin-top: 0.2rem; }

/* Dashboard Add Child Form */
.dash-add-child {
  display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;
}
.dash-add-child input, .dash-add-child select {
  padding: 0.5rem 0.8rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
  background: #1a1a2e; color: #e0e0e0; font-size: 0.85rem;
}
.dash-add-child input:focus { border-color: #6ee7b7; outline: none; }

/* Dashboard Badges */
.dash-badges {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem;
}
.dash-badge {
  background: #12121a; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 1rem; text-align: center;
  transition: all 0.2s;
}
.dash-badge.earned { border-color: rgba(110,231,183,0.2); }
.dash-badge.locked { opacity: 0.4; filter: grayscale(0.8); }
.dash-badge-icon { font-size: 1.8rem; display: block; margin-bottom: 0.3rem; }
.dash-badge-name { font-size: 0.8rem; font-weight: 600; color: #e0e0e0; display: block; }
.dash-badge-desc { font-size: 0.68rem; color: #64748b; display: block; margin-top: 0.2rem; }

/* Dashboard Course Progress */
.dash-course-progress { display: flex; flex-direction: column; gap: 0.6rem; }
.dash-course-item {
  display: flex; align-items: center; gap: 0.8rem;
  background: #12121a; border-radius: 8px; padding: 0.6rem 1rem;
}
.dash-course-item.completed { opacity: 0.7; }
.dash-course-title { flex: 1; font-size: 0.85rem; color: #e0e0e0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-course-bar-track { width: 100px; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.dash-course-bar-fill { height: 100%; background: linear-gradient(90deg, #6ee7b7, #3b82f6); border-radius: 2px; }
.dash-course-pct { font-size: 0.75rem; color: #6ee7b7; min-width: 36px; text-align: right; }
.dash-empty { color: #475569; font-size: 0.9rem; text-align: center; padding: 2rem; }
.dash-account-info { color: #94a3b8; font-size: 0.85rem; margin-bottom: 1rem; }
.dash-account-info p { margin-bottom: 0.3rem; }

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem; max-width: 1100px; margin: 0 auto;
}
.testimonial-card {
  background: #12121a; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 1.5rem;
  transition: all 0.2s;
}
.testimonial-card:hover { border-color: rgba(110,231,183,0.2); transform: translateY(-2px); }
.testimonial-stars { color: #fbbf24; font-size: 0.9rem; margin-bottom: 0.5rem; }
.testimonial-text { color: #e0e0e0; font-size: 0.9rem; line-height: 1.6; font-style: italic; margin-bottom: 1rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.6rem; }
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: #0a0a0f;
}
.testimonial-author strong { display: block; color: #e0e0e0; font-size: 0.82rem; }
.testimonial-author span { font-size: 0.72rem; color: #64748b; }

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem; max-width: 900px; margin: 0 auto 1.5rem;
}
.landing-stat { text-align: center; padding: 1rem; }
.landing-stat-icon { font-size: 1.6rem; display: block; margin-bottom: 0.3rem; }
.landing-stat-num {
  font-size: 1.8rem; font-weight: 800; display: block;
  background: linear-gradient(135deg, #6ee7b7, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.landing-stat-label { font-size: 0.78rem; color: #64748b; }

/* ===== TRUST BADGES ===== */
.trust-row {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
  max-width: 800px; margin: 0 auto;
}
.trust-badge {
  background: rgba(110,231,183,0.06); border: 1px solid rgba(110,231,183,0.1);
  border-radius: 20px; padding: 0.4rem 0.9rem; font-size: 0.75rem;
  color: #6ee7b7; font-weight: 500;
}

/* ===== FAQ ===== */
.faq-container { max-width: 700px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; color: #e0e0e0; font-size: 0.95rem; font-weight: 500;
}
.faq-toggle {
  font-size: 1.3rem; color: #6ee7b7; transition: transform 0.2s;
  flex-shrink: 0; margin-left: 1rem;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding: 0 0 1rem; color: #94a3b8; font-size: 0.85rem; line-height: 1.6;
}

/* ===== COMPARISON TABLE ===== */
.comp-table {
  width: 100%; max-width: 800px; margin: 0 auto;
  border-collapse: collapse; font-size: 0.82rem;
}
.comp-table th, .comp-table td {
  padding: 0.6rem 0.8rem; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.comp-table th { color: #94a3b8; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.comp-table td:first-child { text-align: left; color: #e0e0e0; }
.comp-us { background: rgba(110,231,183,0.04); }
.comp-yes { color: #6ee7b7; font-size: 1rem; }
.comp-no { color: #475569; font-size: 0.9rem; }
.comp-partial { color: #fbbf24; font-size: 0.75rem; }

/* ===== ADMIN DASHBOARD ===== */
.admin-funnel {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0;
}
.funnel-step {
  background: #12121a; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 0.8rem 1rem; text-align: center;
  min-width: 90px;
}
.funnel-num { display: block; font-size: 1.3rem; font-weight: 700; color: #6ee7b7; }
.funnel-step span:last-child { font-size: 0.7rem; color: #64748b; }
.funnel-arrow { color: #334155; font-size: 1.2rem; }
.admin-flags, .admin-ab-list { display: flex; flex-direction: column; gap: 0.4rem; }
.admin-flag-row, .admin-ab-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.8rem; background: rgba(255,255,255,0.02); border-radius: 6px;
  font-size: 0.82rem; color: #94a3b8; text-transform: capitalize;
}
.admin-ab-variant {
  background: rgba(110,231,183,0.1); color: #6ee7b7;
  padding: 0.15rem 0.5rem; border-radius: 4px; font-weight: 600;
}
.admin-event-log { max-height: 300px; overflow-y: auto; }
.admin-event-row {
  display: flex; justify-content: space-between; padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 0.78rem;
}
.admin-event-name { color: #6ee7b7; }
.admin-event-time { color: #475569; }

@media (max-width: 768px) {
  .comp-table { font-size: 0.72rem; }
  .comp-table th, .comp-table td { padding: 0.4rem 0.3rem; }
  .admin-funnel { flex-direction: column; }
  .funnel-arrow { transform: rotate(90deg); }
}

/* ===== NOTIFICATION BELL ===== */
.notif-bell {
  position: relative; background: none; border: none; font-size: 1.2rem;
  cursor: pointer; padding: 0.3rem; color: #94a3b8;
}
.notif-bell:hover { color: #e0e0e0; }
.notif-badge {
  position: absolute; top: -4px; right: -6px;
  background: #f87171; color: #fff; font-size: 0.6rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.notif-panel {
  display: none; position: fixed; top: 56px; right: 1rem; z-index: 1000;
  width: 340px; max-height: 420px; background: #12121a;
  border: 1px solid rgba(110,231,183,0.12); border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5); overflow: hidden;
  flex-direction: column;
}
.notif-panel.active { display: flex; }
.notif-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.notif-header strong { color: #e0e0e0; font-size: 0.9rem; }
.notif-list { overflow-y: auto; max-height: 350px; }
.notif-empty { color: #475569; text-align: center; padding: 2rem; font-size: 0.85rem; }
.notif-item {
  display: flex; gap: 0.6rem; padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.03); cursor: pointer;
  transition: background 0.15s;
}
.notif-item:hover { background: rgba(110,231,183,0.04); }
.notif-item.read { opacity: 0.6; }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0;
  background: rgba(255,255,255,0.1);
}
.notif-dot.active { background: #6ee7b7; }
.notif-content { flex: 1; }
.notif-content strong { display: block; font-size: 0.82rem; color: #e0e0e0; }
.notif-content span { font-size: 0.78rem; color: #94a3b8; }
.notif-time { font-size: 0.68rem !important; color: #475569 !important; display: block; margin-top: 0.2rem; }

@media (max-width: 768px) {
  .notif-panel { right: 0.5rem; left: 0.5rem; width: auto; }
}

/* ===== RECOMMENDATION BAR ===== */
.rec-bar {
  max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem 0;
}
.rec-section { margin-bottom: 1rem; }
.rec-section h4 { font-size: 0.9rem; color: #6ee7b7; margin-bottom: 0.6rem; }
.rec-cards { display: flex; gap: 0.8rem; overflow-x: auto; padding-bottom: 0.5rem; }
.rec-card {
  display: flex; align-items: center; gap: 0.7rem;
  background: #12121a; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 0.7rem 1rem; min-width: 260px;
  cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.rec-card:hover { border-color: rgba(110,231,183,0.3); }
.rec-card-icon { font-size: 1.4rem; }
.rec-card-info { flex: 1; min-width: 0; }
.rec-card-info strong { display: block; font-size: 0.82rem; color: #e0e0e0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-card-meta { font-size: 0.72rem; color: #64748b; }
.rec-card-progress { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.3rem; }
.rec-card-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.rec-card-fill { height: 100%; background: linear-gradient(90deg, #6ee7b7, #3b82f6); border-radius: 2px; }
.rec-card-progress span { font-size: 0.7rem; color: #6ee7b7; min-width: 28px; }

/* ===== EMAIL CAPTURE ===== */
.email-capture {
  text-align: center; padding: 1.5rem; margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(110,231,183,0.06), rgba(59,130,246,0.06));
  border: 1px solid rgba(110,231,183,0.1); border-radius: 12px;
}
.email-capture h4 { color: #e0e0e0; font-size: 1rem; margin-bottom: 0.3rem; }
.email-capture > p { color: #64748b; font-size: 0.82rem; margin-bottom: 0.8rem; }
.email-form { display: flex; gap: 0.5rem; justify-content: center; max-width: 400px; margin: 0 auto; }
.email-form input {
  flex: 1; padding: 0.5rem 0.8rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1); background: #1a1a2e;
  color: #e0e0e0; font-size: 0.85rem;
}
.email-form input:focus { border-color: #6ee7b7; outline: none; }
.email-capture-note { font-size: 0.75rem; margin-top: 0.4rem; min-height: 1rem; color: #64748b; }
.email-subbed { color: #6ee7b7; font-size: 0.85rem; text-align: center; padding: 1rem; }

/* ===== CLASSROOM STYLES ===== */
.classroom-empty { text-align: center; padding: 3rem 1rem; }
.classroom-empty h3 { color: #e0e0e0; margin: 0.5rem 0; }
.classroom-empty p { color: #64748b; font-size: 0.9rem; margin-bottom: 1rem; }
.classroom-classes { display: flex; flex-direction: column; gap: 1.5rem; }
.classroom-card {
  background: #12121a; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 1.5rem; overflow: hidden;
}
.classroom-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem;
}
.classroom-card-header h3 { color: #e0e0e0; font-size: 1.1rem; }
.classroom-meta { color: #64748b; font-size: 0.8rem; }
.classroom-join-code {
  background: rgba(110,231,183,0.06); border: 1px dashed rgba(110,231,183,0.2);
  border-radius: 8px; padding: 0.4rem 0.8rem; font-size: 0.8rem; color: #94a3b8;
}
.classroom-join-code strong { color: #6ee7b7; }
.classroom-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-bottom: 1rem;
}
.classroom-section { margin-top: 1rem; }
.classroom-section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.5rem;
}
.classroom-section-header h4 { font-size: 0.9rem; color: #e0e0e0; }
.classroom-assignment {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem; border-radius: 6px; background: rgba(255,255,255,0.02);
  margin-bottom: 0.3rem;
}
.classroom-assignment-icon { font-size: 1rem; }
.classroom-assignment-title { flex: 1; font-size: 0.82rem; color: #e0e0e0; }
.classroom-due { font-size: 0.72rem; color: #fbbf24; }
.classroom-roster { font-size: 0.82rem; }
.classroom-roster-header {
  display: grid; grid-template-columns: 2fr 1fr 0.5fr 2fr;
  padding: 0.4rem 0.5rem; color: #64748b; font-size: 0.72rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.classroom-roster-row {
  display: grid; grid-template-columns: 2fr 1fr 0.5fr 2fr;
  padding: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.03);
  align-items: center; color: #94a3b8;
}
.classroom-student-name { color: #e0e0e0; font-weight: 500; }
.classroom-course-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.1); margin-right: 3px;
}
.classroom-course-dot.started { background: #fbbf24; }
.classroom-course-dot.done { background: #6ee7b7; }
.classroom-modal-content {
  padding: 2rem; max-width: 400px; width: 90%;
}
.classroom-modal-content form {
  display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1rem;
}
.classroom-modal-content input {
  padding: 0.6rem 0.8rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
  background: #1a1a2e; color: #e0e0e0; font-size: 0.9rem;
}
.classroom-assign-modal { max-width: 500px; }
.classroom-course-list { max-height: 400px; overflow-y: auto; margin-top: 0.8rem; }
.classroom-course-option {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem; border-radius: 8px; cursor: pointer;
  transition: background 0.15s; border-bottom: 1px solid rgba(255,255,255,0.03);
}
.classroom-course-option:hover { background: rgba(110,231,183,0.06); }
.classroom-course-option strong { display: block; font-size: 0.85rem; color: #e0e0e0; }
.classroom-course-meta { font-size: 0.72rem; color: #64748b; }

/* ===== LEADERBOARD ===== */
.leaderboard-list { display: flex; flex-direction: column; gap: 0.5rem; }
.leaderboard-row {
  display: flex; align-items: center; gap: 0.8rem;
  background: #12121a; border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px; padding: 0.6rem 1rem;
}
.leaderboard-row.leader { border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.04); }
.leaderboard-rank { font-size: 1.2rem; width: 30px; text-align: center; }
.leaderboard-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: #0a0a0f;
}
.leaderboard-name { flex: 1; font-size: 0.9rem; color: #e0e0e0; }
.leaderboard-score { font-size: 0.8rem; color: #6ee7b7; font-weight: 600; }
.leaderboard-streak { font-size: 0.75rem; color: #fbbf24; min-width: 60px; text-align: right; }

.dash-referral-cta {
  background: linear-gradient(135deg, rgba(110,231,183,0.06), rgba(59,130,246,0.06));
  border: 1px solid rgba(110,231,183,0.12); border-radius: 12px;
  padding: 1.2rem; text-align: center;
}
.dash-referral-cta p { color: #94a3b8; font-size: 0.85rem; margin-bottom: 0.8rem; }

/* ===== FOOTER LINKS ===== */
.footer-links {
  display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 0.8rem;
}
.footer-links a { color: #64748b; font-size: 0.85rem; }
.footer-links a:hover { color: #6ee7b7; }

/* ===== CERTIFICATE MODAL ===== */
.cert-overlay {
  display: none; position: fixed; inset: 0; z-index: 1200;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(12px);
  justify-content: center; align-items: center; padding: 1rem;
}
.cert-overlay.active { display: flex; }
.cert-modal-content {
  background: #12121a; border: 1px solid rgba(110,231,183,0.15);
  border-radius: 16px; padding: 1.5rem; max-width: 700px; width: 100%;
  position: relative; text-align: center;
}
.cert-close {
  position: absolute; top: 0.8rem; right: 1rem;
  background: none; border: none; color: #64748b; font-size: 1.5rem; cursor: pointer;
}
.cert-preview {
  width: 100%; border-radius: 8px; margin-bottom: 1rem;
  box-shadow: 0 4px 30px rgba(110,231,183,0.1);
}
.cert-actions {
  display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap;
}
.cert-share-btn { text-decoration: none; }

/* ===== AI COACH WIDGET ===== */
.coach-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #6ee7b7, #3b82f6);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(110,231,183,0.3);
  transition: all 0.2s;
}
.coach-fab:hover { transform: scale(1.08); }
.coach-fab.open { background: #334155; }
.coach-fab-icon { font-size: 1.6rem; }
.coach-fab-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(110,231,183,0.4);
  animation: coachPulse 2s ease-out infinite;
}
.coach-fab.open .coach-fab-pulse { display: none; }
@keyframes coachPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}

.coach-panel {
  display: none; position: fixed; bottom: 5rem; right: 1.5rem; z-index: 901;
  width: 360px; max-height: 500px; background: #12121a;
  border: 1px solid rgba(110,231,183,0.15); border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5); overflow: hidden;
  flex-direction: column;
}
.coach-panel.active { display: flex; }
.coach-header {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1rem; background: rgba(110,231,183,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.coach-avatar { font-size: 1.5rem; }
.coach-header strong { color: #e0e0e0; font-size: 0.9rem; display: block; }
.coach-status { color: #6ee7b7; font-size: 0.7rem; }
.coach-close {
  margin-left: auto; background: none; border: none; color: #64748b;
  font-size: 1.3rem; cursor: pointer;
}
.coach-messages {
  flex: 1; overflow-y: auto; padding: 1rem; display: flex;
  flex-direction: column; gap: 0.6rem; min-height: 200px; max-height: 340px;
}
.coach-msg { display: flex; }
.coach-msg-coach { justify-content: flex-start; }
.coach-msg-user { justify-content: flex-end; }
.coach-msg-bubble {
  max-width: 80%; padding: 0.6rem 0.9rem; border-radius: 12px;
  font-size: 0.85rem; line-height: 1.5;
}
.coach-msg-coach .coach-msg-bubble {
  background: rgba(110,231,183,0.08); color: #e0e0e0;
  border-bottom-left-radius: 4px;
}
.coach-msg-user .coach-msg-bubble {
  background: rgba(59,130,246,0.15); color: #e0e0e0;
  border-bottom-right-radius: 4px;
}
.coach-input {
  display: flex; gap: 0.5rem; padding: 0.6rem; border-top: 1px solid rgba(255,255,255,0.06);
}
.coach-input input {
  flex: 1; padding: 0.5rem 0.8rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1); background: #1a1a2e;
  color: #e0e0e0; font-size: 0.85rem; outline: none;
}
.coach-input input:focus { border-color: #6ee7b7; }
.coach-send {
  background: linear-gradient(135deg, #6ee7b7, #3b82f6);
  border: none; color: #0a0a0f; width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.typing-dots span {
  animation: typingBounce 1.4s ease-in-out infinite;
  display: inline-block; font-size: 1.5rem; color: #6ee7b7;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

@media (max-width: 768px) {
  .coach-panel { right: 0.5rem; left: 0.5rem; width: auto; bottom: 4.5rem; }
  .coach-fab { bottom: 1rem; right: 1rem; width: 48px; height: 48px; }
}

/* ===== REFERRAL PANEL ===== */
.referral-overlay {
  display: none; position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  justify-content: center; align-items: center; padding: 1rem;
}
.referral-overlay.active { display: flex; }
.referral-content {
  background: #12121a; border: 1px solid rgba(110,231,183,0.15);
  border-radius: 16px; padding: 2rem; max-width: 480px; width: 100%;
  position: relative; text-align: center;
}
.referral-close {
  position: absolute; top: 0.8rem; right: 1rem;
  background: none; border: none; color: #64748b; font-size: 1.5rem; cursor: pointer;
}
.referral-header { margin-bottom: 1.5rem; }
.referral-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.referral-header h2 {
  background: linear-gradient(135deg, #6ee7b7, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.referral-header p { color: #94a3b8; font-size: 0.9rem; margin-top: 0.3rem; }
.referral-code-box {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin: 1rem 0; padding: 0.8rem;
  background: rgba(110,231,183,0.06); border: 1px dashed rgba(110,231,183,0.3);
  border-radius: 10px;
}
.referral-code { font-size: 1.3rem; font-weight: 700; color: #6ee7b7; letter-spacing: 1px; }
.referral-share-row {
  display: flex; gap: 0.5rem; justify-content: center; margin: 1rem 0; flex-wrap: wrap;
}
.referral-share-row a { text-decoration: none; }
.referral-stats {
  display: flex; justify-content: center; gap: 2rem; margin: 1.2rem 0;
}
.referral-stat { text-align: center; }
.referral-stat strong { display: block; font-size: 1.5rem; color: #6ee7b7; }
.referral-stat span { font-size: 0.75rem; color: #64748b; }
.referral-redeem { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.06); }
.referral-redeem p { color: #94a3b8; font-size: 0.85rem; margin-bottom: 0.5rem; }
.referral-redeem form {
  display: flex; gap: 0.5rem; justify-content: center;
}
.referral-redeem input {
  padding: 0.5rem 0.8rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
  background: #1a1a2e; color: #e0e0e0; font-size: 0.85rem; width: 180px;
}
.referral-redeem-msg { font-size: 0.8rem; margin-top: 0.5rem; min-height: 1.2rem; }

/* ===== ONBOARDING ===== */
.onboard-overlay {
  display: none; position: fixed; inset: 0; z-index: 1300;
  background: rgba(0,0,0,0.9); backdrop-filter: blur(16px);
  justify-content: center; align-items: center; padding: 1rem;
}
.onboard-overlay.active { display: flex; }
.onboard-modal {
  background: #12121a; border: 1px solid rgba(110,231,183,0.12);
  border-radius: 20px; padding: 2rem; max-width: 520px; width: 100%;
  text-align: center;
}
.onboard-progress {
  display: flex; justify-content: center; gap: 0.4rem; margin-bottom: 1.5rem;
}
.onboard-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.1); transition: all 0.3s;
}
.onboard-dot.active { background: #6ee7b7; width: 24px; border-radius: 4px; }
.onboard-step { animation: onboardFade 0.3s ease-out; }
@keyframes onboardFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.onboard-emoji { font-size: 3rem; margin-bottom: 0.5rem; }
.onboard-step h2 {
  font-size: 1.4rem; color: #e0e0e0; margin-bottom: 0.5rem;
}
.onboard-sub { color: #64748b; font-size: 0.85rem; margin-bottom: 1rem; }
.onboard-options {
  display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0;
}
.onboard-options.onboard-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem;
}
.onboard-option {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1rem; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer; transition: all 0.2s; color: #e0e0e0; font-size: 0.9rem;
}
.onboard-option:hover { border-color: rgba(110,231,183,0.3); background: rgba(110,231,183,0.04); }
.onboard-option.selected {
  border-color: #6ee7b7; background: rgba(110,231,183,0.08);
}
.onboard-option-icon { font-size: 1.3rem; }
.onboard-nav {
  display: flex; justify-content: space-between; margin-top: 1.2rem;
}
.onboard-nav button:disabled { opacity: 0.4; cursor: not-allowed; }
.onboard-recs {
  display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0;
  text-align: left;
}
.onboard-rec {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer; transition: all 0.2s;
}
.onboard-rec:hover { border-color: rgba(110,231,183,0.3); }
.onboard-rec-icon { font-size: 1.4rem; }
.onboard-rec-info { flex: 1; }
.onboard-rec-info strong { display: block; font-size: 0.85rem; color: #e0e0e0; }
.onboard-rec-info span { font-size: 0.75rem; color: #64748b; }

/* ===== XP BAR & GAMIFICATION ===== */
.xp-bar-container {
  margin-top: 56px; padding: 0.5rem 1.2rem;
  background: linear-gradient(90deg, rgba(110,231,183,0.04), rgba(59,130,246,0.04));
  border-bottom: 1px solid rgba(110,231,183,0.08);
}
.xp-bar-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.3rem; }
.xp-level { font-size: 0.8rem; font-weight: 700; }
.xp-total { font-size: 0.72rem; color: #64748b; }
.xp-bar-track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.xp-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease-out; }
.xp-next { font-size: 0.65rem; color: #475569; margin-top: 0.2rem; display: block; }

.xp-popup {
  position: fixed; top: 70px; right: 1.5rem; z-index: 2000;
  background: rgba(110,231,183,0.15); border: 1px solid #6ee7b7;
  color: #6ee7b7; padding: 0.4rem 0.8rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 700;
  animation: xpFloat 1.5s ease-out forwards;
  pointer-events: none;
}
.xp-popup.fade { opacity: 0; }
@keyframes xpFloat {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-30px); }
}

/* Daily Challenge */
#dailyChallenge { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.daily-challenge {
  display: flex; align-items: center; gap: 0.8rem;
  background: linear-gradient(90deg, rgba(251,191,36,0.06), rgba(110,231,183,0.06));
  border: 1px solid rgba(251,191,36,0.15); border-radius: 10px;
  padding: 0.6rem 1rem; margin-bottom: 0.5rem;
}
.daily-challenge.done { border-color: rgba(110,231,183,0.3); background: rgba(110,231,183,0.06); }
.daily-icon { font-size: 1.2rem; }
.daily-info { flex: 1; }
.daily-info strong { display: block; font-size: 0.78rem; color: #fbbf24; }
.daily-challenge.done .daily-info strong { color: #6ee7b7; }
.daily-info span { font-size: 0.75rem; color: #94a3b8; }
.daily-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; margin-top: 0.3rem; overflow: hidden; }
.daily-fill { height: 100%; background: #fbbf24; border-radius: 2px; transition: width 0.3s; }
.daily-challenge.done .daily-fill { background: #6ee7b7; }
.daily-xp { font-size: 0.72rem; color: #fbbf24; font-weight: 600; white-space: nowrap; }

/* ===== CONSENT BANNER ===== */
.consent-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
  background: #12121a; border-top: 1px solid rgba(110,231,183,0.15);
  padding: 1rem; animation: slideUp 0.4s ease-out;
}
.consent-banner.dismissing { animation: slideDown 0.4s ease-in forwards; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes slideDown { from { transform: translateY(0); } to { transform: translateY(100%); } }
.consent-content {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center;
}
.consent-content p { color: #94a3b8; font-size: 0.82rem; flex: 1; min-width: 200px; }
.consent-content a { color: #6ee7b7; }

/* ===== LEGAL PAGES ===== */
.legal-page { max-width: 700px; margin: 0 auto; padding: 2rem 1rem; padding-top: 5rem; }
.legal-page h2 {
  font-size: 1.5rem; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #6ee7b7, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.legal-content h3 { color: #e0e0e0; font-size: 1rem; margin: 1.5rem 0 0.5rem; }
.legal-content p { color: #94a3b8; font-size: 0.88rem; line-height: 1.7; margin-bottom: 0.6rem; }
.legal-content ul { color: #94a3b8; font-size: 0.85rem; padding-left: 1.2rem; margin-bottom: 0.8rem; }
.legal-content li { margin-bottom: 0.3rem; }
.legal-content a { color: #6ee7b7; }

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  background: #6ee7b7; color: #0a0a0f; padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px; font-weight: 600; font-size: 0.85rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher { display: flex; gap: 0.3rem; justify-content: center; margin-top: 0.8rem; }
.lang-btn {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  color: #64748b; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.72rem;
  cursor: pointer; transition: all 0.2s;
}
.lang-btn.active { color: #6ee7b7; border-color: rgba(110,231,183,0.3); background: rgba(110,231,183,0.06); }
.lang-btn:hover { border-color: rgba(110,231,183,0.2); }

/* ===== AFFILIATE ===== */
.affiliate-form {
  display: flex; flex-direction: column; gap: 0.7rem; max-width: 400px;
}
.affiliate-form input, .affiliate-form select {
  padding: 0.6rem 0.8rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
  background: #1a1a2e; color: #e0e0e0; font-size: 0.9rem;
}
.affiliate-form input:focus, .affiliate-form select:focus { border-color: #6ee7b7; outline: none; }
.affiliate-form-note { font-size: 0.82rem; margin-top: 0.5rem; min-height: 1.5rem; }
.affiliate-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.affiliate-tier-card {
  background: #12121a; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 1.2rem; text-align: center;
}
.affiliate-tier-card h4 { color: #e0e0e0; font-size: 0.9rem; margin-bottom: 0.3rem; }
.affiliate-tier-card p { color: #64748b; font-size: 0.78rem; margin-top: 0.3rem; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== FOUNDING FAMILY STRIP (hero CTA + paywall cross-sell) ===== */
.hero-founding-strip {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(251,191,36,0.14), rgba(249,115,22,0.14));
  border: 1px solid rgba(251,191,36,0.45);
  color: #fbbf24;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}
.hero-founding-strip:hover {
  background: linear-gradient(135deg, rgba(251,191,36,0.22), rgba(249,115,22,0.22));
  transform: translateY(-1px);
}
.hero-founding-strip strong { color: #fde68a; }
.hero-founding-strip em { color: #fca5a5; font-style: normal; }

.paywall-founding-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 12px 0 20px;
  background: linear-gradient(135deg, rgba(251,191,36,0.1), rgba(249,115,22,0.1));
  border: 1px solid rgba(251,191,36,0.35);
  border-radius: 12px;
  font-size: 0.88rem;
  color: #fde68a;
}
.paywall-founding-strip a {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.paywall-founding-strip a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .paywall-founding-strip { flex-direction: column; text-align: center; }
}
