/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
:root {
  /* ============================================
     EDITORIAL PALETTE — cream + navy + deep red
     Adopted 2026-06-13 (replaced dark+purple AI-startup palette).
     Any new component should use these tokens, not raw hex.
     ============================================ */
  --ed-bg:           #fafaf7;   /* cream page background */
  --ed-surface:      #ffffff;   /* tile / card surface */
  --ed-surface-soft: #f5f4ef;   /* alternate band background */
  --ed-text:         #1a1a1a;   /* near-black body text */
  --ed-text-muted:   #525252;   /* secondary text */
  --ed-text-faint:   #8a8a8a;   /* tertiary / footnotes */
  --ed-accent:       #991b1b;   /* deep red — CTAs, eyebrow rules */
  --ed-accent-soft:  #fef2f2;   /* deep-red tint for badges */
  --ed-border:       #d4d4d0;   /* hairline borders */
  --ed-border-soft:  #ececea;   /* lighter hairline */
  --ed-serif:        'Fraunces', 'Source Serif Pro', Georgia, serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html.preauth-app #landing-view {
  display: none !important;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0f1629;
  color: #e2e8f0;
  min-height: 100vh;
}

/* Display typeface for h1/h2/h3 on landing — a serif gives the page
   weight and personality without looking like a generic AI startup
   template. Body copy stays in Inter for readability. */
.hero-title,
.section-title,
.cta-content h2,
.founder-section h3,
.how-free-card h3,
.feature-card h3 {
  font-family: 'Fraunces', 'Source Serif Pro', Georgia, serif;
  font-feature-settings: 'ss01' 1;
}

body.app-mode {
  background: #f3f4f8;
  color: #1a1a2e;
  padding: 30px;
}

.card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8e8ef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* TOP NAV */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.92) 0%, rgba(91, 33, 182, 0.92) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(167, 139, 250, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(167, 139, 250, 0.15) inset;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s;
}

.top-nav.scrolled {
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.98) 0%, rgba(91, 33, 182, 0.98) 100%);
}

body.app-mode .top-nav {
  background: linear-gradient(135deg, #312e81 0%, #5b21b6 100%);
  border-bottom: 1px solid rgba(167, 139, 250, 0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f1f5f9;
  font-size: 18px;
  font-weight: 700;
}

.nav-brand i {
  color: #c4b5fd;
  font-size: 22px;
}

.brand-mark {
  --bm-tile: #ffffff;
  --bm-wave: #5b21b6;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.20);
}
.brand-mark svg { width: 40px; height: 40px; display: block; }
.brand-mark .bm-tile { fill: var(--bm-tile); }
.brand-mark .bm-wave {
  fill: none;
  stroke: var(--bm-wave);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-mark .bm-wave-2 { opacity: 0.55; }
.brand-mark--sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  vertical-align: middle;
  margin-right: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.brand-mark--sm svg { width: 28px; height: 28px; }

.brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; min-width: 0; }
.brand-word { font-size: 18px; font-weight: 700; }
.brand-eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.auth-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.login-btn:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.signup-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
}

.signup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.55);
  color: #fff;
}

body.app-mode .signup-btn {
  display: none;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(167, 139, 250, 0.4);
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.logout-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #1e1b4b;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: #fff;
  color: #5b21b6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================
   AUTH MODAL
   ============================================ */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.auth-modal-content {
  position: relative;
  background: #13182b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 48px 40px;
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.auth-modal-close:hover {
  color: #fff;
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-modal-icon {
  font-size: 32px;
  color: #c4b5fd;
  margin-bottom: 16px;
}

.auth-modal-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 20px rgba(108, 60, 224, 0.3);
}

.auth-modal-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.auth-modal-header p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.auth-field {
  margin-bottom: 20px;
}

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.auth-field-optional {
  font-weight: 400;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-left: 4px;
}

.auth-field input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  outline: none;
}

.auth-field input:focus {
  border-color: #6c3ce0;
  background: rgba(108,60,224,0.05);
  box-shadow: 0 0 0 3px rgba(108,60,224,0.15);
}

.auth-field input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.auth-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #6c3ce0, #5b21b6);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(108,60,224,0.4);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.auth-switch button {
  background: none;
  border: none;
  color: #c4b5fd;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  margin-left: 4px;
  text-decoration: underline;
}

.auth-switch button:hover {
  color: #fbbf24;
}

.brand-highlight {
  color: #a78bfa;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fbbf24;
}

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

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 40px 80px;
  background:
    radial-gradient(ellipse 800px 500px at 50% 0%, rgba(124, 92, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 600px 400px at 80% 100%, rgba(59, 130, 246, 0.06), transparent 70%),
    #0f1629;
}

/* Legacy orb/grid styles intentionally removed (Tier-2 visual cleanup).
   The .hero-bg / .orb / .grid-overlay DOM nodes have been deleted from
   index.html. If anything else still references these classes it will
   simply no-op. */

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(167,139,250,0.18);
  border: 1px solid rgba(167,139,250,0.4);
  border-radius: 50px;
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.gradient-text {
  color: #c4b5fd;
  font-style: italic;
  font-weight: 500;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #6c3ce0, #5b21b6);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(108,60,224,0.4);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,60,224,0.5);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.cta-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

.cta-large {
  padding: 18px 40px;
  font-size: 17px;
  border-radius: 14px;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.trust-avatars {
  display: flex;
}

.trust-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border: 2px solid #0a0f1e;
  margin-left: -8px;
}

.trust-avatar:first-child {
  margin-left: 0;
}

.trust-text {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 40px;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* Section Headers */
.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.section-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  margin-bottom: 56px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Features */
.features {
  padding: 100px 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.4s;
}

.feature-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(167,139,250,0.4);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.feature-card p {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  line-height: 1.7;
}

/* "How we stay free" trust block + "roadmap" strip under "What you get today" */
.how-free {
  padding: 100px 40px 80px;
}

.how-free-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.how-free-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 32px 28px;
  backdrop-filter: blur(10px);
  transition: all 0.4s;
}

.how-free-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(167,139,250,0.4);
  transform: translateY(-4px);
}

.how-free-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.35;
}

.how-free-card p {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.roadmap-strip {
  max-width: 1000px;
  margin: 36px auto 0;
  padding: 24px 28px;
  background: rgba(167,139,250,0.08);
  border: 1px dashed rgba(167,139,250,0.35);
  border-radius: 16px;
}

.roadmap-strip h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #fff;
  font-weight: 700;
}

.roadmap-strip p {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  line-height: 1.7;
}

.roadmap-strip a {
  color: #c4b5fd;
  text-decoration: underline;
}

/* Curriculum Timeline */
.curriculum {
  padding: 100px 40px;
  background: rgba(255,255,255,0.01);
}

.curriculum-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.curriculum-timeline::before {
  content: '';
  position: absolute;
  left: 52px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #6c3ce0, #3b82f6, #22c55e, #f59e0b);
}

.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
}

.timeline-week {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(108,60,224,0.15);
  border: 2px solid rgba(108,60,224,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #a78bfa;
  flex-shrink: 0;
  z-index: 1;
  padding-top: 2px;
}

.timeline-content {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
  flex: 1;
  transition: all 0.3s;
}

.timeline-content:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(167,139,250,0.4);
}

.timeline-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.timeline-content p {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.timeline-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-meta span {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 6px;
}

.badge-live {
  background: rgba(108,60,224,0.2) !important;
  color: #a78bfa !important;
}

.badge-upcoming {
  background: rgba(59,130,246,0.15) !important;
  color: #60a5fa !important;
}

/* Testimonials */
.testimonials {
  padding: 100px 40px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.06);
}

.testimonial-stars {
  font-size: 16px;
  margin-bottom: 16px;
}

.testimonial-card p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.testimonial-author strong {
  color: #fff;
  font-size: 14px;
}

.testimonial-author small {
  color: rgba(255, 255, 255, 0.7);
}

/* Founder Section */
.founder-section {
  padding: 100px 40px;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 28px;
  margin-top: 48px;
  text-align: left;
}

.founder-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 40px 36px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  gap: 28px;
  text-align: left;
  margin-top: 0;
  box-shadow: 0 0 40px rgba(167,139,250,0.08);
  transition: border-color 0.4s, transform 0.4s;
}

.founder-card:hover {
  border-color: rgba(167,139,250,0.35);
  transform: translateY(-2px);
}

.founder-avatar {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 30px rgba(167,139,250,0.3);
}

.founder-info {
  flex: 1;
  min-width: 0;
}

.founder-name-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.founder-name-row h3 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #0077b5;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.linkedin-btn:hover {
  background: #005f8d;
  transform: scale(1.1);
}

.founder-role {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  font-weight: 500;
}

.founder-bio p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.founder-bio p:last-child {
  margin-bottom: 0;
}

/* Partnership Banner */
.partnership-banner {
  margin-top: 40px;
  padding: 28px 36px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(167,139,250,0.1), rgba(6,182,212,0.08));
  border: 1px solid rgba(167,139,250,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.partnership-icon {
  font-size: 28px;
  background: linear-gradient(135deg, #a78bfa, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.partnership-banner p {
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  line-height: 1.6;
}

.partnership-banner strong {
  color: #e2e8f0;
}

/* Founder section responsive */
@media (max-width: 700px) {
  .founder-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px;
    gap: 24px;
  }

  .founder-name-row {
    justify-content: center;
  }

  .founder-avatar {
    width: 90px;
    height: 90px;
    font-size: 30px;
  }

  .founder-section {
    padding: 80px 20px;
  }

  .partnership-banner {
    flex-direction: column;
    padding: 24px 20px;
    gap: 12px;
  }
}

/* Final CTA */
.final-cta {
  position: relative;
  padding: 120px 40px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 700px 400px at 50% 50%, rgba(124, 92, 255, 0.08), transparent 70%),
    #0f1629;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.cta-content p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  margin-bottom: 36px;
}

.cta-buttons-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.interest-form-container {
  margin-top: 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.interest-form-container h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.interest-field {
  margin-bottom: 14px;
}

.interest-field input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.interest-field input:focus {
  border-color: #6c3ce0;
}

.interest-field input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.cta-contact-email {
  margin-top: 20px;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

.cta-contact-email a {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 600;
}

.cta-contact-email a:hover {
  text-decoration: underline;
}

/* Footer */
.landing-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand i {
  color: #6c3ce0;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 4px;
}

.footer-text {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Landing Responsive */
@media (max-width: 768px) {
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .how-free-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-bar {
    flex-wrap: wrap;
    gap: 24px;
  }
  
  .stat-divider {
    display: none;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero {
    padding: 120px 20px 60px;
  }
  
  .top-nav {
    padding: 12px 20px;
  }
  
  .curriculum-timeline::before {
    left: 32px;
  }
  
  .timeline-week {
    width: 56px;
    height: 56px;
    font-size: 11px;
  }
}

/* ============================================
   DASHBOARD — COURSES HEADER
   ============================================ */
#dashboard-view {
  padding-top: 80px;
}

#dashboard-view .courses-container {
  margin-bottom: 20px;
}

/* Batch Code Entry Bar */
.batch-code-bar {
  padding: 16px 28px;
  margin-bottom: 20px;
}

.batch-code-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.batch-code-icon {
  color: #6c3ce0;
  font-size: 1.2rem;
}

.batch-code-bar-inner > span {
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
}

.batch-code-input {
  flex: 1;
  min-width: 200px;
  padding: 8px 14px;
  border: 2px solid #e0e0e8;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.batch-code-input:focus {
  border-color: #6c3ce0;
}

.batch-code-submit {
  padding: 8px 18px;
  background: #6c3ce0;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.batch-code-submit:hover {
  background: #5a2dc5;
}

/* Course badges */
.course-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.enrolled-badge {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}

.locked-badge {
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
}

/* Locked card styling */
.locked-card {
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

.locked-card:hover {
  opacity: 1;
  transform: translateY(-4px);
}

.empty-courses-msg {
  text-align: center;
  padding: 30px 20px;
  color: #4b5563;
  font-size: 0.95rem;
}

/* Course Action Modal */
.course-action-content {
  max-width: 520px;
}

.course-action-options {
  padding: 0 10px;
}

.course-action-option {
  padding: 16px 0;
}

.course-action-option h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.course-action-option h3 i {
  color: #6c3ce0;
  margin-right: 6px;
}

.course-action-option p {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 12px;
}

.course-action-input-row {
  display: flex;
  gap: 10px;
}

.course-action-input-row .admin-input {
  flex: 1;
}

.course-action-divider {
  text-align: center;
  position: relative;
  margin: 8px 0;
}

.course-action-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #e0e0e8;
}

.course-action-divider span {
  position: relative;
  background: #fff;
  padding: 0 16px;
  color: #999;
  font-size: 0.85rem;
  font-weight: 600;
}

.course-action-interest-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.course-action-hint {
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 10px;
  font-style: italic;
}

.course-interest-btn {
  width: 100%;
}

#course-detail-view {
  padding-top: 80px;
}

#course-view {
  padding-top: 80px;
}

.courses-container {
  padding: 28px;
}

.courses-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.courses-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin-right: auto;
}

/* Filter Pills */
.courses-filters {
  display: flex;
  border: 1px solid #e0e0e8;
  border-radius: 10px;
  overflow: hidden;
}

.filter-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:not(:last-child) {
  border-right: 1px solid #e0e0e8;
}

.filter-btn.active {
  background: #6c3ce0;
  color: #fff;
}

.filter-btn:hover:not(.active) {
  background: #f3f0ff;
  color: #6c3ce0;
}

/* Category Dropdown & View Toggle */
.courses-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-dropdown {
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid #e0e0e8;
  border-radius: 10px;
  background: #fff;
  color: #333;
  cursor: pointer;
  outline: none;
}

.category-dropdown:focus {
  border-color: #6c3ce0;
}

.view-toggle {
  display: flex;
  border: 1px solid #e0e0e8;
  border-radius: 10px;
  overflow: hidden;
}

.toggle-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #fff;
  color: #888;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.toggle-btn:not(:last-child) {
  border-right: 1px solid #e0e0e8;
}

.toggle-btn.active {
  background: #1a1a2e;
  color: #fff;
}

.toggle-btn:hover:not(.active) {
  background: #f5f5f7;
}

/* ============================================
   DASHBOARD — COURSE CARDS GRID
   ============================================ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.course-card {
  border-radius: 14px;
  border: 1px solid #e8e8ef;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #fff;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Card Image Area */
.card-image {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.5s ease;
}

.course-card:hover .card-cover-img {
  transform: scale(1.06);
}

.card-cover-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.25), rgba(0,0,0,0.25));
  pointer-events: none;
}

.card-image > .card-emoji,
.card-image > .course-badge,
.card-image > .card-badge {
  z-index: 2;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-badge.live {
  background: #6c3ce0;
  color: #fff;
}

.card-badge.upcoming {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-badge.completed {
  background: #22c55e;
  color: #fff;
}

.card-emoji {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-size: 48px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Card Info Area */
.card-info {
  padding: 18px;
}

.card-week-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1a1a2e;
}

.card-course-name {
  font-size: 13px;
  color: #555;
  margin-bottom: 14px;
  line-height: 1.4;
}

/* Progress Bar */
.progress-wrapper {
  margin-bottom: 14px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #4b5563;
  margin-bottom: 6px;
  font-weight: 600;
}

.progress-bar {
  height: 6px;
  background: #e8e8ef;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.progress-fill.green {
  background: #22c55e;
}

.progress-fill.blue {
  background: #6c3ce0;
}

/* Card Meta Footer */
.card-meta {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f5;
  font-size: 12px;
  color: #4b5563;
}

.card-meta span i {
  margin-right: 4px;
  font-size: 11px;
}

/* ============================================
   COURSE VIEW — BACK BUTTON
   ============================================ */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #6c3ce0;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 16px;
  padding: 6px 0;
  transition: all 0.2s;
}

.back-btn:hover {
  text-decoration: underline;
}

/* ============================================
   COURSE VIEW — 3 PANEL LAYOUT
   ============================================ */
.course-view-container {
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  gap: 20px;
  align-items: start;
}

/* ============================================
   LEFT SIDEBAR
   ============================================ */
.sidebar-panel {
  max-height: 650px;
  overflow-y: auto;
  padding: 20px;
}

.sidebar-panel::-webkit-scrollbar {
  width: 4px;
}

.sidebar-panel::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-panel::-webkit-scrollbar-thumb {
  background: #d0d0d8;
  border-radius: 4px;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8e8ef;
  margin-bottom: 14px;
}

/* Week headers */
.week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  cursor: pointer;
  padding: 10px 0;
  user-select: none;
  transition: color 0.2s;
}

.week-header:hover {
  color: #6c3ce0;
}

.week-header .chevron {
  font-size: 11px;
  transition: transform 0.25s ease;
  color: #6b7280;
}

.week-header.collapsed .chevron {
  transform: rotate(-90deg);
}

.week-content {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.week-content.collapsed {
  max-height: 0 !important;
  overflow: hidden;
}

/* Module headers */
.module-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  padding: 8px 0 4px 12px;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.module-header:hover {
  color: #6c3ce0;
}

.module-header .caret {
  font-size: 9px;
  transition: transform 0.25s ease;
  color: #6b7280;
}

.module-header.collapsed .caret {
  transform: rotate(-90deg);
}

.module-lessons {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.module-lessons.collapsed {
  max-height: 0 !important;
  overflow: hidden;
}

/* Lesson items */
.lesson-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 50px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: all 0.2s;
}

.lesson-item:hover {
  background: #f8f7ff;
}

.lesson-item.current {
  border-left-color: #6c3ce0;
  background: #f3f0ff;
  color: #6c3ce0;
  font-weight: 600;
}

.lesson-item.completed .lesson-check {
  color: #6c3ce0;
}

.lesson-icon {
  font-size: 12px;
  color: #6b7280;
  width: 16px;
  text-align: center;
}

.lesson-item.current .lesson-icon {
  color: #6c3ce0;
}

.lesson-check {
  margin-left: auto;
  font-size: 12px;
  color: #9ca3af;
}

/* ============================================
   CENTER — LESSON PANEL
   ============================================ */
.lesson-panel {
  padding: 0;
  overflow: hidden;
}

.lesson-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #e8e8ef;
}

.lesson-content-title {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
}

.slide-counter {
  font-size: 12px;
  font-weight: 600;
  color: #6c3ce0;
  background: #f3f0ff;
  padding: 4px 12px;
  border-radius: 20px;
}

.lesson-main-title {
  font-size: 20px;
  font-weight: 700;
  padding: 20px 24px 0;
  color: #1a1a2e;
}

/* ============================================
   SLIDE VIEWER
   ============================================ */
.slide-viewer {
  background: #0f1729;
  border-radius: 12px;
  margin: 16px 24px;
  overflow: hidden;
}

.slide-content {
  min-height: 280px;
  padding: 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.slide-body {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.slide-body ul,
.slide-body ol {
  padding-left: 20px;
  margin-top: 10px;
}

.slide-body li {
  margin-bottom: 6px;
}

.slide-body strong {
  color: #fff;
}

.slide-body code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.slide-visual {
  margin-top: 20px;
  padding: 20px;
  background: #f5f3ff;
  border-radius: 12px;
  font-size: 13px;
  color: #1e293b;
  line-height: 1.6;
}

.slide-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.slide-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.slide-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slide-dots {
  display: flex;
  gap: 6px;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.slide-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.slide-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Narration Controls */
.narration-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px 16px;
  justify-content: center;
}

.narrate-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #6c3ce0;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}

.narrate-btn:hover {
  background: #7c4dff;
  transform: scale(1.08);
}

.narrate-stop {
  background: #dc2626;
}

.narrate-stop:hover {
  background: #ef4444;
}

.narrate-progress {
  flex: 1;
  max-width: 200px;
}

.narrate-bar {
  height: 4px;
  background: rgba(108,60,224,0.2);
  border-radius: 4px;
  overflow: hidden;
}

.narrate-bar-fill {
  height: 100%;
  background: #6c3ce0;
  border-radius: 4px;
  width: 0%;
}

.narrate-lang {
  background: #f3f4f8;
  border: 1px solid #e0e0e8;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  color: #1a1a2e;
}

/* ============================================
   LESSON TABS
   ============================================ */
.lesson-tabs {
  display: flex;
  border-bottom: 1px solid #e8e8ef;
  padding: 0 24px;
}

.tab {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #4b5563;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover {
  color: #6c3ce0;
}

.tab.active {
  color: #6c3ce0;
  border-bottom-color: #6c3ce0;
}

.tab-content {
  padding: 20px 24px;
  min-height: 120px;
}

/* Overview Tab */
.objectives-list {
  list-style: none;
  padding: 0;
}

.objectives-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

.objectives-list li i {
  color: #6c3ce0;
  margin-top: 3px;
  font-size: 13px;
  flex-shrink: 0;
}

/* Notes Tab */
.notes-content {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}

.notes-content p {
  margin-bottom: 14px;
}

/* Resources Tab */
.resources-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resource-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #e8e8ef;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.resource-card:hover {
  border-color: #6c3ce0;
  background: #faf8ff;
}

.resource-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.resource-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
}

.resource-type {
  font-size: 11px;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ============================================
   RIGHT — AI PLAYGROUND
   ============================================ */
.playground-panel {
  padding: 0;
  overflow: hidden;
}

.playground-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8ef;
}

.playground-title {
  font-size: 15px;
  font-weight: 700;
  color: #6c3ce0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.playground-content {
  padding: 20px;
}

.playground-label {
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  margin-top: 18px;
}

.playground-label:first-of-type {
  margin-top: 0;
}

.playground-task {
  font-size: 13px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 8px;
}

/* Hint */
.exercise-hint {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  font-style: italic;
  color: #92400e;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.exercise-hint i {
  color: #f59e0b;
  margin-top: 2px;
}

.btn-hint {
  background: none;
  border: 1px solid #e0e0e8;
  color: #777;
  font-size: 12px;
  font-family: inherit;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.btn-hint:hover {
  border-color: #f59e0b;
  color: #f59e0b;
}

/* Prompt Input */
.playground-input {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid #e0e0e8;
  border-radius: 10px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.6;
}

.playground-input:focus {
  border-color: #6c3ce0;
  box-shadow: 0 0 0 3px rgba(108, 60, 224, 0.1);
}

/* Run Button */
.btn-run {
  width: 100%;
  padding: 10px 18px;
  background: #6c3ce0;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.btn-run:hover {
  background: #5a2ec4;
}

.btn-run:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-run.loading {
  background: #7c52e8;
  pointer-events: none;
}

/* AI Output */
.playground-output {
  min-height: 80px;
  max-height: 260px;
  overflow-y: auto;
  background: #f8f8fc;
  border: 1px solid #e8e8ef;
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}

.playground-output h4 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #1a1a2e;
}

.playground-output ul,
.playground-output ol {
  padding-left: 18px;
  margin: 6px 0;
}

.playground-output li {
  margin-bottom: 4px;
}

.placeholder-text {
  color: #6b7280;
  font-style: italic;
}

/* Playground Actions */
.playground-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-save {
  flex: 1;
  padding: 10px;
  background: #fff;
  color: #6c3ce0;
  border: 1px solid #6c3ce0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-save:hover {
  background: #f3f0ff;
}

.btn-submit {
  flex: 1;
  padding: 10px;
  background: #6c3ce0;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #5a2ec4;
}

.btn-submit.submitted {
  background: #22c55e;
  pointer-events: none;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
#toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #1a1a2e;
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: toastIn 0.35s ease forwards;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success {
  border-left: 4px solid #22c55e;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.info {
  border-left: 4px solid #3b82f6;
}

.toast.removing {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(60px);
  }
}

/* ============================================
   SLIDE TRANSITIONS
   ============================================ */
.slide-content.fade-in {
  animation: slideFadeIn 0.35s ease forwards;
}

.slide-content.fade-out {
  animation: slideFadeOut 0.2s ease forwards;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-view-container {
    grid-template-columns: 1fr;
  }

  .sidebar-panel {
    max-height: none;
  }
}

@media (max-width: 768px) {
  body {
    padding: 16px;
  }

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

  .courses-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .courses-header h2 {
    margin-right: 0;
  }
}

/* ============================================
   ADMIN VIEW
   ============================================ */
#admin-view {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 80px;
}

.admin-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 24px;
}

.admin-form {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.admin-input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid #e0e0e8;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.admin-input:focus {
  border-color: #6c3ce0;
}

.admin-user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-user-table th {
  text-align: left;
  padding: 12px 16px;
  background: #f3f4f8;
  color: #555;
  font-weight: 600;
  border-bottom: 2px solid #e0e0e8;
}

.admin-user-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f5;
  color: #333;
}

.admin-user-table tr:nth-child(even) {
  background: #fafafa;
}

.admin-user-table tr:hover {
  background: #f3f0ff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  background: #f3f4f8;
  color: #555;
  font-weight: 600;
  border-bottom: 2px solid #e0e0e8;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f5;
  color: #333;
}

.admin-table tr:nth-child(even) {
  background: #fafafa;
}

.admin-table tr:hover {
  background: #f3f0ff;
}

.access-yes {
  color: #10b981;
  font-weight: 600;
}

.access-no {
  color: #999;
}

.grant-btn {
  background: #10b981;
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.grant-btn:hover {
  background: #0d9668;
}

.revoke-btn {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.revoke-btn:hover {
  background: #dc2626;
}

.admin-nav-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 12px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

body:not(.app-mode) .admin-nav-btn {
  color: #fff;
  border: none;
}

.admin-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.5);
}

/* ============================================
   ANALYTICS DASHBOARD
   ============================================ */
.analytics-section {
  margin: 0 auto 24px;
  padding: 28px;
  background: #1a1a2e;
  border-radius: 16px;
  border: 1px solid rgba(108, 60, 224, 0.25);
}

.analytics-section .admin-title {
  color: #e0e0ff;
  margin-bottom: 16px;
}

.analytics-period {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.analytics-period select {
  background: #16213e;
  color: #e0e0ff;
  border: 1px solid rgba(108, 60, 224, 0.3);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.analytics-refresh-btn {
  background: rgba(108, 60, 224, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(108, 60, 224, 0.3);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.analytics-refresh-btn:hover {
  background: rgba(108, 60, 224, 0.4);
}

.analytics-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.analytics-card {
  background: #16213e;
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.15s;
}

.analytics-card:hover {
  transform: translateY(-2px);
}

.analytics-card-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.analytics-card-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.analytics-card-label {
  font-size: 0.78rem;
  color: #8888aa;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analytics-charts-row {
  margin-bottom: 20px;
}

.analytics-chart-card,
.analytics-table-card {
  background: #16213e;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.analytics-chart-card h3,
.analytics-table-card h3 {
  color: #c4b5fd;
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-weight: 600;
}

.analytics-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
  padding-top: 10px;
}

.analytics-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.analytics-bar-value {
  font-size: 0.72rem;
  color: #c4b5fd;
  margin-bottom: 4px;
  font-weight: 600;
}

.analytics-bar {
  width: 100%;
  max-width: 48px;
  background: linear-gradient(180deg, #6c3ce0, #06b6d4);
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  transition: height 0.4s ease;
}

.analytics-bar-label {
  font-size: 0.68rem;
  color: #8888aa;
  margin-top: 6px;
  white-space: nowrap;
}

.analytics-tables-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.analytics-table th {
  text-align: left;
  padding: 8px 12px;
  color: #8888aa;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.analytics-table td {
  padding: 8px 12px;
  color: #ddd;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.analytics-table tr:hover {
  background: rgba(108, 60, 224, 0.08);
}

.analytics-empty {
  color: #b0b8cc;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

.analytics-recent-list {
  max-height: 320px;
  overflow-y: auto;
}

.analytics-event-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
}

.analytics-event-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  text-transform: capitalize;
}

.analytics-event-user {
  color: #cbd5e1;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-event-time {
  color: #b0b8cc;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Scrollbar for recent activity */
.analytics-recent-list::-webkit-scrollbar {
  width: 5px;
}
.analytics-recent-list::-webkit-scrollbar-track {
  background: transparent;
}
.analytics-recent-list::-webkit-scrollbar-thumb {
  background: rgba(108, 60, 224, 0.3);
  border-radius: 3px;
}

@media (max-width: 700px) {
  .analytics-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .analytics-tables-row {
    grid-template-columns: 1fr;
  }
  .analytics-section {
    padding: 16px;
    margin: 0 8px 16px;
  }
}

/* ===============================================
   COMMUNITY DISCUSSIONS
   =============================================== */
#community-view {
  padding-top: 80px;
  min-height: 100vh;
}

.community-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.community-header {
  margin-bottom: 24px;
}

.community-header h2 {
  color: #1a1a2e;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.community-header h2 i {
  color: #6c3ce0;
  margin-right: 8px;
}

.community-course-tabs {
  display: flex;
  gap: 8px;
}

.community-tab {
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid #e0e0e8;
  background: #f8f8fc;
  color: #555;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.community-tab.active {
  background: linear-gradient(135deg, #6c3ce0, #8b5cf6);
  color: #fff;
  border-color: transparent;
}

.community-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #6c3ce0, #8b5cf6);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 20px;
}

.community-new-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(108, 60, 224, 0.4);
}

.community-empty {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 1rem;
}

/* Thread list */
.thread-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thread-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e0e0e8;
  border-left: 3px solid #6c3ce0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}

.thread-card:hover {
  background: #f8f6ff;
  transform: translateX(4px);
  border-left-color: #06b6d4;
}

.thread-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.thread-info {
  flex: 1;
  min-width: 0;
}

.thread-title {
  color: #1a1a2e;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-meta {
  color: #888;
  font-size: 0.82rem;
  margin: 0;
}

.thread-author {
  color: #06b6d4;
  font-weight: 500;
}

.thread-reply-count {
  color: #10b981;
}

.thread-activity {
  flex-shrink: 0;
}

.thread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 14px;
  background: #f0edf8;
  color: #6c3ce0;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Thread detail */
.community-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e0e0e8;
  background: transparent;
  color: #555;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 20px;
  transition: color 0.2s, border-color 0.2s;
}

.community-back-btn:hover {
  color: #6c3ce0;
  border-color: #6c3ce0;
}

.thread-detail-card {
  background: #fff;
  border: 1px solid #e0e0e8;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.thread-detail-title {
  color: #1a1a2e;
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.thread-detail-meta {
  color: #888;
  font-size: 0.85rem;
  margin: 0 0 16px;
}

.thread-detail-body {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Replies */
.thread-replies-section {
  margin-top: 8px;
}

.replies-heading {
  color: #1a1a2e;
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e8;
}

.replies-empty {
  text-align: center;
  color: #888;
  padding: 24px;
  font-size: 0.9rem;
}

.reply-card {
  background: #fff;
  border: 1px solid #e0e0e8;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 10px;
}

.reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.reply-author {
  color: #06b6d4;
  font-weight: 600;
  font-size: 0.88rem;
}

.reply-date {
  color: #666;
  font-size: 0.8rem;
}

.reply-body {
  color: #333;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Reply / New discussion form */
.reply-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.community-form-card {
  background: #fff;
  border: 1px solid #e0e0e8;
  border-radius: 12px;
  padding: 28px;
}

.community-form-card h3 {
  color: #1a1a2e;
  font-size: 1.2rem;
  margin: 0 0 20px;
}

.community-form-card h3 i {
  color: #6c3ce0;
  margin-right: 8px;
}

.community-field {
  margin-bottom: 16px;
}

.community-field label {
  display: block;
  color: #555;
  font-size: 0.85rem;
  margin-bottom: 6px;
  font-weight: 500;
}

.community-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e0e0e8;
  background: #f8f8fc;
  color: #1a1a2e;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.community-input:focus {
  outline: none;
  border-color: #6c3ce0;
}

.community-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e0e0e8;
  background: #f8f8fc;
  color: #1a1a2e;
  font-size: 0.92rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.community-textarea:focus {
  outline: none;
  border-color: #6c3ce0;
}

.community-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

.community-cancel-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e8;
  background: transparent;
  color: #555;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.community-cancel-btn:hover {
  color: #1a1a2e;
  border-color: #1a1a2e;
}

.community-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #6c3ce0, #8b5cf6);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.community-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(108, 60, 224, 0.4);
}

.community-nav-btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

.community-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.5);
  color: #fff;
}

@media (max-width: 600px) {
  .community-container {
    padding: 0 12px 32px;
  }
  .thread-card {
    padding: 12px 14px;
  }
  .thread-detail-card {
    padding: 16px;
  }
  .community-form-card {
    padding: 18px;
  }
  .community-form-actions {
    flex-direction: column;
  }
}

/* ============ BATCH MANAGEMENT ============ */

.batch-create-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.batch-create-form .admin-input {
  flex: 1;
  min-width: 180px;
}

.batch-date-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 180px;
}

.batch-date-field label {
  color: #555;
  font-size: 0.85rem;
  white-space: nowrap;
}

.batch-date-field input[type="date"] {
  flex: 1;
  background: #f8f8fc;
  border: 1px solid #e0e0e8;
  color: #1a1a2e;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.batch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.batch-card {
  background: #f8f8fc;
  border: 1px solid #e0e0e8;
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.2s;
}

.batch-card:hover {
  border-color: #6c3ce0;
}

.batch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.batch-card-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #1a1a2e;
}

.batch-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.batch-status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.batch-status-expired {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.batch-card-info {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 14px;
}

.batch-card-info i {
  margin-right: 4px;
  color: #6c3ce0;
}

.batch-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.batch-toggle-btn {
  background: #f0edf8;
  border: 1px solid #e0e0e8;
  color: #555;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: background 0.2s;
}

.batch-toggle-btn:hover {
  background: #e8e4f4;
}

.batch-add-member {
  display: flex;
  gap: 6px;
  flex: 1;
}

.batch-member-input {
  flex: 1;
  min-width: 140px;
  padding: 6px 10px !important;
  font-size: 0.85rem !important;
}

.batch-add-btn {
  padding: 6px 12px !important;
  font-size: 0.82rem !important;
  white-space: nowrap;
}

.batch-members-list {
  margin-top: 12px;
  border-top: 1px solid #e0e0e8;
  padding-top: 10px;
}

.batch-members-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.batch-members-table th {
  text-align: left;
  padding: 6px 10px;
  color: #888;
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e0e0e8;
}

.batch-members-table td {
  padding: 8px 10px;
  color: #333;
  border-bottom: 1px solid #f0f0f4;
}

.batch-remove-btn {
  padding: 4px 8px !important;
  font-size: 0.78rem !important;
  min-width: auto !important;
}

@media (max-width: 600px) {
  .batch-grid {
    grid-template-columns: 1fr;
  }
  .batch-create-form {
    flex-direction: column;
  }
  .batch-add-member {
    flex-direction: column;
  }
}

/* ============================================
   ADMIN SIDEBAR LAYOUT
   ============================================ */
body.app-mode #admin-view {
  margin: -30px;
  padding: 0;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 70px;
}

.admin-sidebar {
  width: 220px;
  min-width: 220px;
  background: #1a1a2e;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.admin-back-btn {
  margin: 0 16px 16px;
  background: rgba(255,255,255,0.08);
  color: #ccc;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.admin-back-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.admin-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
}

.admin-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 0.88rem;
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: all 0.2s;
  white-space: nowrap;
}

.admin-tab:hover {
  background: rgba(108, 60, 224, 0.15);
  color: #d4bfff;
}

.admin-tab.active {
  background: rgba(108, 60, 224, 0.25);
  color: #fff;
  font-weight: 600;
}

.admin-tab i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
}

.admin-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  background: #f3f4f8;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

/* ============================================
   BATCH USER SEARCH SUGGESTIONS
   ============================================ */
.batch-user-search-wrap {
  position: relative;
  flex: 1;
}

.batch-user-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e8;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  max-height: 260px;
  overflow-y: auto;
}

.sug-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f8;
  transition: background 0.15s;
}

.sug-item:hover {
  background: #f0edf8;
}

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

.sug-name {
  font-weight: 600;
  color: #1a1a2e;
  font-size: 0.88rem;
}

.sug-detail {
  color: #888;
  font-size: 0.78rem;
}

.sug-empty {
  padding: 12px 14px;
  color: #999;
  font-size: 0.85rem;
  text-align: center;
}

/* ============================================
   BATCH MEMBER STATUS BADGES
   ============================================ */
.member-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

.member-status.enrolled {
  background: #d1fae5;
  color: #065f46;
}

.member-status.pre-approved {
  background: #fef3c7;
  color: #92400e;
}

/* ============================================
   ADMIN RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    min-width: 100%;
    position: relative;
    top: auto;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px;
    gap: 6px;
  }
  .admin-back-btn {
    margin: 0;
  }
  .admin-sidebar-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
  }
  .admin-tab {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .admin-content {
    padding: 16px;
  }
}

/* ===== Python Playground (Pyodide runner) ===== */
.code-input {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border: 1px solid #334155 !important;
  border-radius: 8px;
  min-height: 140px;
  tab-size: 4;
}
.code-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,.2) !important;
}
.code-output {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 13px;
  background: #0f172a;
  color: #86efac;
  padding: 12px 14px;
  border-radius: 8px;
  white-space: pre-wrap;
  min-height: 60px;
  margin: 0;
  overflow-x: auto;
  border: 1px solid #1e293b;
}
.code-output.has-error { color: #fca5a5; }
.code-output .placeholder-text { color: #64748b; font-style: italic; font-family: inherit; }
.py-runner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
}
.py-status {
  font-size: 12px;
  color: #94a3b8;
  margin-left: auto;
}
.py-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 12px;
  font-weight: 600;
  animation: fadeIn .3s ease;
}
.py-success i { font-size: 18px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ========== FREE PLAYGROUNDS (Dashboard tiles + standalone view) ========== */
.playgrounds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  padding: 20px;
}
.playground-tile {
  display: flex;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.playground-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(59,130,246,.15);
  border-color: #93c5fd;
}
.pg-tile-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: white; font-size: 26px;
  flex-shrink: 0;
}
.pg-tile-body h3 { margin: 0 0 6px; color: #1e293b; font-size: 18px; }
.pg-tile-body p { margin: 0 0 8px; color: #64748b; font-size: 14px; }
.pg-tile-cta { color: #3b82f6; font-weight: 600; font-size: 13px; }
.section-sub { color: #64748b; font-size: 14px; margin-top: 4px; }

/* Standalone playground view */
.playground-page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}
.playground-page-header h2 { color: #1e293b; margin: 0 0 8px; }
.playground-page-header .playground-page-sub { color: #64748b; margin-bottom: 20px; }
.pg-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.pg-tab {
  background: #f1f5f9; border: 1px solid #e2e8f0;
  padding: 10px 18px; border-radius: 8px;
  color: #475569; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.pg-tab.active { background: #3b82f6; color: white; border-color: #3b82f6; }
.pg-tab:hover:not(.active) { background: #e2e8f0; }

.pg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-height: 500px;
}
.pg-side {
  display: flex;
  flex-direction: column;
  background: #1e293b;
  border-radius: 10px;
  overflow: hidden;
  min-height: 420px;
}
.pg-side-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #0f172a;
  border-bottom: 1px solid #334155;
}
.pg-side-header h4 { color: #e2e8f0; margin: 0; font-size: 14px; }
.pg-side-actions { display: flex; gap: 8px; }
.pg-side .code-input,
.pg-side .code-output { flex: 1; border-radius: 0; margin: 0; }

.pg-html-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-height: 600px;
  position: relative;
}
.pg-html-editors {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 12px;
}
.pg-html-editors .pg-side { min-height: 0; }
.pg-preview-side { background: white; border: 1px solid #e2e8f0; }
.pg-preview-side .pg-side-header { background: #f8fafc; }
.pg-preview-side .pg-side-header h4 { color: #1e293b; }
.pg-preview { flex: 1; border: 0; width: 100%; background: white; }

.pg-examples-menu {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pg-example-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  color: #1e293b;
}
.pg-example-btn:hover { background: #3b82f6; color: white; border-color: #3b82f6; }

@media (max-width: 900px) {
  .pg-split, .pg-html-grid { grid-template-columns: 1fr; }
}

/* ===== Progressive Hints (lesson playground) ===== */
.hints-stack { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.hint-card {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 12px 14px;
  animation: fadeIn .3s ease;
}
.hint-card.hint-level-2 { background: #fef3c7; border-left-color: #d97706; }
.hint-card.hint-level-3 { background: #ecfccb; border-left-color: #65a30d; }
.hint-card.hint-level-4 { background: #dcfce7; border-left-color: #16a34a; }
.hint-card .hint-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  color: #92400e; font-weight: 700; margin-bottom: 6px;
}
.hint-card.hint-level-3 .hint-label { color: #3f6212; }
.hint-card.hint-level-4 .hint-label { color: #166534; }
.hint-card .hint-body { color: #1f2937; font-size: 14px; line-height: 1.55; }
.hint-card .hint-body code {
  background: #fff; padding: 1px 5px; border-radius: 4px;
  font-family: ui-monospace, monospace; font-size: 13px; color: #b45309;
}
.hint-code {
  background: #1e293b; color: #e2e8f0;
  padding: 12px; border-radius: 8px; font-size: 13px;
  font-family: ui-monospace, monospace;
  white-space: pre-wrap; word-break: break-word;
  margin: 10px 0 8px;
}
.use-this-code-btn { background: #16a34a !important; color: white !important; border: 0 !important; }
.use-this-code-btn:hover { background: #15803d !important; }
.hint-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.btn-reveal { background: #f97316 !important; color: white !important; border: 0 !important; }
.btn-reveal:hover { background: #ea580c !important; }

/* ===== Task header + Narrate button ===== */
.task-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.task-narrate-btn {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  border: 0;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .15s, box-shadow .15s;
}
.task-narrate-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(239,68,68,.25); }

/* ===== Success Criteria checklist ===== */
.success-criteria {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
}
.success-criteria .criteria-label {
  font-weight: 700;
  color: #0369a1;
  font-size: 13px;
  margin-bottom: 6px;
}
.success-criteria ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.success-criteria li {
  padding: 4px 0;
  color: #1e293b;
  font-size: 14px;
  line-height: 1.5;
}
.success-criteria .crit-box {
  display: inline-block;
  width: 18px;
  color: #0ea5e9;
  font-weight: 700;
}

/* ===== Score Panel ===== */
.score-panel {
  background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 100%);
  border: 2px solid #fbbf24;
  border-radius: 14px;
  padding: 20px;
  margin: 16px 0;
  animation: fadeIn .4s ease;
}
.score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.score-stars {
  font-size: 28px;
  letter-spacing: 2px;
}
.score-num {
  font-size: 32px;
  font-weight: 800;
  color: #b45309;
}
.score-num small {
  font-size: 16px;
  color: #92400e;
  font-weight: 600;
}
.score-feedback {
  background: white;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.fb-hi, .fb-en {
  color: #1f2937;
  font-size: 14px;
  line-height: 1.55;
  margin: 4px 0;
}
.fb-hi { font-weight: 600; }
.score-bits {
  background: rgba(255,255,255,.6);
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 6px;
  font-size: 13px;
  color: #1e293b;
}
.crit-results {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  background: white;
  border-radius: 10px;
  padding: 10px 14px;
}
.crit-results li {
  padding: 4px 0;
  font-size: 13px;
  color: #1e293b;
}
.crit-results li.met { color: #166534; }
.crit-results li.unmet { color: #991b1b; opacity: .8; }
.crit-evidence {
  color: #64748b;
  font-style: italic;
  font-size: 12px;
}
.score-loading, .score-err {
  text-align: center;
  padding: 18px;
  color: #475569;
}
.score-err { color: #b91c1c; }

/* ===== Speech Playground ===== */
.pg-speech-wrap { display:flex; flex-direction:column; gap:18px; padding:20px; }
.pg-speech-prompt-card, .pg-speech-record-card, .pg-speech-result {
  background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08);
  border-radius:14px; padding:18px;
}
.pg-speech-label { color:#94a3b8; font-size:13px; font-weight:600; margin-bottom:8px; text-transform:uppercase; letter-spacing:0.04em; }
.pg-speech-prompt { color:#f1f5f9; font-size:22px; line-height:1.5; font-weight:500; padding:14px 16px; background:rgba(59,130,246,0.08); border-left:4px solid #3b82f6; border-radius:8px; }
.pg-speech-prompt-actions { display:flex; gap:10px; align-items:center; margin-top:12px; flex-wrap:wrap; }
.pg-speech-custom-input { flex:1; min-width:200px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); color:#e5e7eb; padding:8px 12px; border-radius:8px; font-size:14px; }
.pg-speech-record-card { display:flex; flex-direction:column; align-items:center; gap:12px; }
.pg-mic-btn {
  display:flex; flex-direction:column; align-items:center; gap:8px;
  background:linear-gradient(135deg,#3b82f6,#1d4ed8); color:white; border:0;
  width:140px; height:140px; border-radius:50%; font-size:42px; cursor:pointer;
  box-shadow:0 8px 24px rgba(59,130,246,0.4); transition:transform 0.15s, box-shadow 0.15s;
}
.pg-mic-btn:hover { transform:scale(1.05); }
.pg-mic-btn.recording { background:linear-gradient(135deg,#ef4444,#b91c1c); animation:micPulse 1.2s ease-in-out infinite; }
.pg-mic-label { font-size:13px; font-weight:600; }
@keyframes micPulse { 0%,100% { box-shadow:0 8px 24px rgba(239,68,68,0.4); } 50% { box-shadow:0 8px 32px rgba(239,68,68,0.8); } }
.pg-speech-timer { color:#fbbf24; font-size:18px; font-family:monospace; font-weight:700; }
.pg-speech-status { color:#cbd5e1; font-size:14px; text-align:center; }
.pg-speech-status.err { color:#fca5a5; }
.pg-speech-scores { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.pg-score-pill { background:rgba(59,130,246,0.12); border:1px solid rgba(59,130,246,0.3); padding:8px 14px; border-radius:999px; display:flex; flex-direction:column; align-items:center; min-width:80px; }
.ps-label { color:#93c5fd; font-size:11px; text-transform:uppercase; letter-spacing:0.05em; font-weight:600; }
.ps-value { color:#f1f5f9; font-size:18px; font-weight:700; }
.pg-speech-transcript-row { color:#e5e7eb; padding:10px 0; border-top:1px solid rgba(255,255,255,0.08); border-bottom:1px solid rgba(255,255,255,0.08); margin-bottom:12px; }
.pg-speech-words { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:14px; }
.ps-word { padding:4px 8px; border-radius:6px; font-size:14px; font-weight:500; }
.ps-word.word-good { background:rgba(34,197,94,0.18); color:#86efac; }
.ps-word.word-ok   { background:rgba(250,204,21,0.18); color:#fde047; }
.ps-word.word-bad  { background:rgba(239,68,68,0.18); color:#fca5a5; text-decoration:underline wavy; }
.ps-word.word-omit { background:rgba(148,163,184,0.18); color:#94a3b8; text-decoration:line-through; }
.pg-speech-feedback { display:flex; flex-direction:column; gap:8px; color:#e2e8f0; font-size:14px; line-height:1.55; }
.psf-hi { color:#fcd34d; }
.psf-tip { color:#a7f3d0; }

/* ===== Landing courses showcase ===== */
.courses-showcase { max-width: 1200px; margin: 80px auto; padding: 0 24px; }
.courses-showcase-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px; margin-top: 32px;
}
.course-showcase-card {
  position: relative; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 18px;
  padding: 24px; cursor: pointer; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; gap: 10px;
}
.course-showcase-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 18px;
  background: linear-gradient(135deg, var(--accent, #a855f7) 0%, transparent 60%);
  opacity: 0.10; pointer-events: none; transition: opacity 0.2s;
}
.course-showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent, #a855f7);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 0 1px var(--accent, #a855f7);
}
.course-showcase-card:hover::before { opacity: 0.22; }
.csc-emoji { font-size: 44px; line-height: 1; margin-bottom: 4px; }
.csc-cover {
  position: relative;
  margin: -24px -24px 6px;
  height: 150px;
  border-radius: 17px 17px 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15,15,35,0.6), rgba(15,15,35,0.2));
}
.csc-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.course-showcase-card:hover .csc-cover img { transform: scale(1.06); }
.csc-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(10,10,25,0.85) 100%),
    linear-gradient(135deg, rgba(0,0,0,0.15), rgba(0,0,0,0.25));
  pointer-events: none;
}
.csc-cover .csc-emoji {
  position: absolute;
  bottom: 8px;
  left: 14px;
  font-size: 38px;
  margin: 0;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.55));
  z-index: 2;
}
.course-showcase-card .csc-badge-new {
  z-index: 3;
}
.course-showcase-card h3 { color: #f1f5f9; font-size: 19px; margin: 0; font-weight: 700; }
.csc-tag { color: var(--accent, #a855f7); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin: 0; }
.csc-desc { color: #cbd5e1; font-size: 14px; line-height: 1.55; margin: 4px 0 0; flex: 1; }
.csc-cta { color: var(--accent, #a855f7); font-weight: 700; font-size: 14px; margin-top: 12px; }
.csc-featured {
  background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(20,184,166,0.06));
  border-color: rgba(251,191,36,0.4);
}
.csc-badge-new {
  position: absolute; top: 14px; right: 14px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #1a0533; font-size: 10px; font-weight: 800;
  padding: 4px 8px; border-radius: 999px; letter-spacing: 0.06em;
}

/* Stdin pane (input() helper) */
.py-stdin-wrap {
  margin-top: 12px;
  padding: 12px;
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: 10px;
}
.py-stdin-header { display:flex; align-items:center; justify-content:space-between; margin-bottom: 6px; }
.py-stdin-label { font-size: 13px; font-weight: 600; color: #713f12; }
.py-stdin-label small { font-weight: 400; color: #854d0e; margin-left: 4px; }
.py-stdin-label code { background: rgba(0,0,0,0.06); padding: 1px 5px; border-radius: 4px; font-size: 11px; }
textarea.py-stdin {
  width: 100%; min-height: 70px; max-height: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; padding: 8px 10px;
  border: 1px solid #fde047; border-radius: 8px;
  background: #fffef0; color: #422006; resize: vertical;
}
textarea.py-stdin:focus { outline: none; border-color: #ca8a04; box-shadow: 0 0 0 3px rgba(202,138,4,0.2); }

/* =====================================================================
   BLOCK-BASED LESSON FORMAT (v1)
   When body has .block-lesson-mode, the slide chrome is hidden and the
   block stream takes over.
   ===================================================================== */
body.block-lesson-mode .slide-controls,
body.block-lesson-mode .slide-counter,
body.block-lesson-mode .slide-dots,
body.block-lesson-mode .nav-arrow { display: none !important; }
body.block-lesson-mode #slide-content { padding: 0; max-width: none; }

.bl-stream { display: flex; flex-direction: column; gap: 28px; padding: 0 12px 140px; max-width: 1200px; margin: 0 auto; }
.bl-block { background: white; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); padding: 28px; transition: box-shadow .25s, transform .25s; border: 2px solid transparent; }
.bl-block.bl-focused { border-color: #6366f1; box-shadow: 0 8px 24px rgba(99,102,241,0.18); transform: translateY(-2px); }
.bl-block-heading { font-size: 22px; font-weight: 700; margin: 0 0 16px; color: #111827; }

/* hero */
.bl-hero { background: linear-gradient(135deg, #312e81 0%, #6366f1 50%, #14b8a6 100%); color: white; padding: 48px 36px; text-align: center; }
.bl-hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; opacity: 0.85; margin-bottom: 12px; }
.bl-hero-title { font-size: 38px; font-weight: 800; margin: 0 0 12px; line-height: 1.15; }
.bl-hero-subtitle { font-size: 17px; opacity: 0.9; margin: 0 auto 18px; max-width: 720px; line-height: 1.55; }
.bl-hero-bullets { list-style: none; padding: 0; margin: 18px auto 0; max-width: 580px; text-align: left; display: grid; gap: 8px; }
.bl-hero-bullets li { background: rgba(255,255,255,0.12); padding: 10px 14px; border-radius: 8px; backdrop-filter: blur(6px); }
.bl-hero-cta { margin-top: 24px; font-weight: 600; opacity: 0.95; }

/* prose */
.bl-prose-heading { font-size: 24px; font-weight: 700; margin: 0 0 14px; color: #1f2937; }
.bl-prose-body { font-size: 16px; line-height: 1.7; color: #374151; }
.bl-prose-body p { margin: 0 0 12px; }
.bl-prose-body code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 0.9em; color: #be185d; }
.bl-prose-body pre { background: #1e293b; color: #e2e8f0; padding: 14px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
.bl-prose-body strong { color: #111827; }

/* reveal-diagram */
.bl-reveal-steps { display: flex; flex-direction: column; gap: 12px; }
.bl-reveal-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: #f9fafb; border-radius: 10px; border-left: 4px solid #6366f1; }
.bl-reveal-step-num { width: 32px; height: 32px; min-width: 32px; border-radius: 50%; background: #6366f1; color: white; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.bl-reveal-step-label { font-weight: 600; color: #111827; margin-bottom: 4px; }
.bl-reveal-step-detail { font-size: 14px; color: #4b5563; }

/* live-ide */
.bl-ide-task { background: #fef3c7; color: #78350f; padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.bl-ide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-height: 360px; }
.bl-ide-editor-wrap, .bl-ide-preview-wrap { display: flex; flex-direction: column; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #1e293b; }
.bl-ide-tabs, .bl-ide-preview-bar { background: #0f172a; color: #94a3b8; padding: 8px 12px; font-size: 12px; font-family: monospace; border-bottom: 1px solid #334155; }
.bl-ide-tab.active { color: #f59e0b; }
.bl-ide-editor { flex: 1; background: #1e293b; color: #e2e8f0; border: none; padding: 12px; font-family: 'Monaco', 'Consolas', monospace; font-size: 13px; line-height: 1.55; resize: none; min-height: 240px; outline: none; }
.bl-ide-actions { display: flex; gap: 8px; padding: 10px; background: #0f172a; flex-wrap: wrap; }
.bl-ide-btn { background: #334155; color: white; border: none; padding: 8px 14px; border-radius: 6px; font-size: 13px; cursor: pointer; transition: background .15s; }
.bl-ide-btn:hover { background: #475569; }
.bl-ide-btn-primary { background: #6366f1; }
.bl-ide-btn-primary:hover { background: #4f46e5; }
.bl-ide-btn-check { background: #14b8a6; }
.bl-ide-btn-check:hover { background: #0d9488; }
.bl-ide-feedback { padding: 0 12px 12px; }
.bl-ide-pass { background: #d1fae5; color: #065f46; padding: 10px 14px; border-radius: 6px; font-size: 14px; margin-top: 8px; }
.bl-ide-fail { background: #fee2e2; color: #991b1b; padding: 10px 14px; border-radius: 6px; font-size: 14px; margin-top: 8px; }
.bl-ide-fail ul { margin: 6px 0 0; padding-left: 20px; }
.bl-ide-preview { flex: 1; background: white; border: none; min-height: 240px; }

/* quiz */
.bl-quiz-q { font-size: 18px; font-weight: 600; color: #111827; margin-bottom: 16px; }
.bl-quiz-options { display: grid; gap: 10px; margin-bottom: 14px; }
.bl-quiz-option { display: flex; align-items: center; gap: 12px; background: #f9fafb; border: 2px solid #e5e7eb; border-radius: 8px; padding: 12px 16px; text-align: left; cursor: pointer; font-size: 15px; transition: all .15s; }
.bl-quiz-option:hover:not(.bl-quiz-disabled) { border-color: #6366f1; background: #eef2ff; }
.bl-quiz-letter { width: 28px; height: 28px; border-radius: 50%; background: #6366f1; color: white; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.bl-quiz-correct { background: #d1fae5 !important; border-color: #10b981 !important; }
.bl-quiz-correct .bl-quiz-letter { background: #10b981; }
.bl-quiz-wrong { background: #fee2e2 !important; border-color: #ef4444 !important; }
.bl-quiz-wrong .bl-quiz-letter { background: #ef4444; }
.bl-quiz-disabled { cursor: default; }
.bl-quiz-explain { background: #eef2ff; color: #312e81; padding: 14px; border-radius: 8px; font-size: 14px; line-height: 1.6; }

/* devlog */
.bl-devlog { background: #fffbeb; border-left: 5px solid #f59e0b; }
.bl-devlog-tag { display: inline-block; background: #f59e0b; color: white; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; letter-spacing: 1px; margin-bottom: 12px; }
.bl-devlog-intro { color: #78350f; font-size: 14px; margin: 0 0 14px; line-height: 1.6; }
.bl-devlog-fields { display: flex; flex-direction: column; gap: 12px; }
.bl-devlog-label { display: block; font-weight: 600; color: #422006; margin-bottom: 6px; font-size: 14px; }
.bl-devlog-input { width: 100%; padding: 10px 12px; border: 2px solid #fde68a; border-radius: 6px; background: #fffef0; font-family: inherit; font-size: 14px; resize: vertical; }
.bl-devlog-input:focus { outline: none; border-color: #f59e0b; }
.bl-devlog-saved { font-size: 12px; color: #92400e; margin-top: 8px; opacity: 0.6; transition: opacity .3s; }
.bl-devlog-saved-flash { opacity: 1; color: #16a34a; }

/* inbox */
.bl-inbox { background: #f0f9ff; border-left: 5px solid #0ea5e9; }
.bl-inbox-header { font-size: 12px; color: #0369a1; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.bl-inbox-subject { font-weight: 700; color: #0c4a6e; font-size: 17px; margin-bottom: 10px; }
.bl-inbox-body { color: #075985; font-size: 14px; line-height: 1.7; }

/* sticky narration player */
.bl-narration-player { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: rgba(17, 24, 39, 0.95); backdrop-filter: blur(10px); color: white; padding: 10px 18px; border-radius: 32px; display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 40px rgba(0,0,0,0.3); z-index: 1000; max-width: 92vw; }
.bl-narr-btn { background: transparent; color: white; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; transition: background .15s; display: flex; align-items: center; justify-content: center; }
.bl-narr-btn:hover { background: rgba(255,255,255,0.15); }
.bl-narr-play { background: #6366f1; }
.bl-narr-play:hover { background: #4f46e5; }
.bl-narr-caption { font-size: 13px; opacity: 0.85; max-width: 380px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-narr-lang { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; padding: 4px 8px; font-size: 12px; cursor: pointer; }

@media (max-width: 720px) {
  .bl-ide-grid { grid-template-columns: 1fr; }
  .bl-hero-title { font-size: 28px; }
  .bl-narr-caption { display: none; }
  .bl-block { padding: 18px; }
  .bl-stream { padding: 0 8px 120px; }
}

/* python-ide / cpp-ide */
.bl-py-output { background: #0a0e1a; color: #d1fae5; padding: 14px; margin: 0; font-family: 'Monaco','Consolas',monospace; font-size: 13px; line-height: 1.55; min-height: 240px; flex: 1; overflow: auto; white-space: pre-wrap; word-wrap: break-word; border: none; border-radius: 0; }
.bl-py-output-err { color: #fca5a5; }
.bl-py-stdin-wrap { background: #0f172a; border-top: 1px solid #1e293b; }
.bl-py-stdin-wrap summary { color: #94a3b8; padding: 8px 12px; cursor: pointer; font-size: 12px; user-select: none; }
.bl-py-stdin-wrap summary:hover { color: #e2e8f0; }
.bl-py-stdin { background: #1e293b; color: #e2e8f0; border: none; padding: 8px 12px; font-family: 'Monaco','Consolas',monospace; font-size: 12px; min-height: 56px !important; resize: vertical; }
.bl-py-editor, .bl-cpp-editor { font-family: 'Monaco','Consolas',monospace; }

/* terminal-sim */
.bl-term-shell { background: #0a0e1a; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.18); margin-bottom: 12px; }
.bl-term-bar { background: #1e293b; padding: 8px 12px; display: flex; align-items: center; gap: 6px; }
.bl-term-dot { width: 11px; height: 11px; border-radius: 50%; }
.bl-term-dot-r { background: #ef4444; }
.bl-term-dot-y { background: #f59e0b; }
.bl-term-dot-g { background: #22c55e; }
.bl-term-bar-title { color: #94a3b8; font-size: 12px; margin-left: 12px; font-family: monospace; }
.bl-term-body { padding: 14px 16px; min-height: 220px; max-height: 380px; overflow-y: auto; font-family: 'Monaco','Consolas',monospace; font-size: 13px; line-height: 1.55; color: #e2e8f0; }
.bl-term-line { white-space: pre-wrap; word-wrap: break-word; }
.bl-term-cmd { color: #fde68a; }
.bl-term-out { color: #a7f3d0; }
.bl-term-input-line { display: flex; align-items: center; gap: 6px; }
.bl-term-prompt { color: #fbbf24; flex: none; }
.bl-term-input { flex: 1; background: transparent; border: none; outline: none; color: #e2e8f0; font-family: inherit; font-size: inherit; padding: 0; }
.bl-term-input::placeholder { color: #475569; }

/* speak-along */
.bl-speak { background: #fff; }
.bl-speak-intro { color: #475569; margin-bottom: 14px; font-size: 14px; }
.bl-speak-prompt { background: linear-gradient(135deg, #eef2ff, #e0e7ff); color: #1e1b4b; padding: 22px; border-radius: 12px; font-size: 22px; line-height: 1.45; font-weight: 600; text-align: center; margin-bottom: 12px; }
.bl-speak-translation { color: #6b7280; font-size: 14px; text-align: center; margin-bottom: 16px; font-style: italic; }
.bl-speak-controls { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.bl-speak-btn { background: #6366f1; color: white; border: none; padding: 12px 20px; border-radius: 999px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: transform .15s, background .15s; }
.bl-speak-btn:hover { transform: translateY(-1px); }
.bl-speak-listen { background: #14b8a6; }
.bl-speak-listen:hover { background: #0d9488; }
.bl-speak-recording { background: #ef4444 !important; animation: bl-speak-pulse 1s infinite; }
@keyframes bl-speak-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); } 50% { box-shadow: 0 0 0 12px rgba(239,68,68,0); } }
.bl-speak-playback { width: 100%; margin-top: 10px; }
.bl-speak-feedback { margin-top: 12px; }

/* mobile */
@media (max-width: 720px) {
  .bl-py-output { min-height: 160px; font-size: 12px; }
  .bl-term-body { min-height: 160px; }
  .bl-speak-prompt { font-size: 18px; padding: 16px; }
}

/* ===== js-ide (browser sandbox) ===== */
.bl-js-ide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.bl-js-editor { min-height: 220px; }

/* ===== live-preview (HTML+CSS+JS combined) ===== */
.bl-lp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.bl-lp-tabs { display: flex; gap: 0; margin-bottom: 0; border-bottom: 1px solid #1e293b; }
.bl-lp-tab { background: #0f172a; color: #94a3b8; border: 1px solid #1e293b; border-bottom: none; padding: 8px 14px; cursor: pointer; font-size: 12px; font-family: 'Monaco','Consolas',monospace; border-radius: 6px 6px 0 0; }
.bl-lp-tab.active { background: #1e293b; color: #e2e8f0; border-color: #334155; }
.bl-lp-editor { display: none; min-height: 220px; }
.bl-lp-editor.active { display: block; }
.bl-lp-iframe { width: 100%; min-height: 280px; background: #fff; border: 1px solid #1e293b; border-radius: 8px; }

/* ===== latex-render (KaTeX) ===== */
.bl-latex { background: linear-gradient(135deg, #fef3c7, #fde68a); padding: 24px; border-radius: 12px; border-left: 4px solid #f59e0b; }
.bl-latex-intro { color: #78350f; margin-bottom: 16px; font-size: 15px; line-height: 1.55; }
.bl-latex-body { background: #fff; padding: 20px; border-radius: 10px; text-align: center; overflow-x: auto; min-height: 60px; font-size: 17px; }
.bl-latex-note { color: #92400e; margin-top: 12px; font-size: 13px; font-style: italic; }

/* ===== sql-sandbox (sql.js) ===== */
.bl-sql-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.bl-sql-editor { min-height: 200px; }
.bl-sql-schema { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.bl-sql-schema summary { cursor: pointer; color: #475569; font-weight: 600; }
.bl-sql-schema pre { margin: 8px 0 0 0; background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 6px; font-size: 12px; overflow-x: auto; }
.bl-sql-result { padding: 12px; min-height: 200px; max-height: 380px; overflow: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 0 0 8px 8px; }
.bl-sql-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.bl-sql-table th, .bl-sql-table td { border: 1px solid #e2e8f0; padding: 6px 10px; text-align: left; }
.bl-sql-table th { background: #f1f5f9; font-weight: 600; color: #1e293b; }
.bl-sql-table tr:nth-child(even) td { background: #f8fafc; }

/* ===== prompt-block (DALL-E) ===== */
.bl-prompt { background: linear-gradient(135deg, #fdf4ff, #fae8ff); padding: 20px; border-radius: 12px; border-left: 4px solid #c026d3; }
.bl-pb-presets-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.bl-pb-presets-label { color: #86198f; font-weight: 600; }
.bl-pb-preset { background: #fff; color: #86198f; border: 1px solid #f0abfc; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 12px; transition: all .15s; }
.bl-pb-preset:hover { background: #f0abfc; color: #fff; transform: translateY(-1px); }
.bl-pb-editor { width: 100%; padding: 12px 14px; border: 2px solid #f0abfc; border-radius: 10px; font-size: 14px; font-family: inherit; line-height: 1.5; resize: vertical; background: #fff; color: #1e293b; }
.bl-pb-editor:focus { outline: none; border-color: #c026d3; }
.bl-pb-loading { color: #86198f; font-style: italic; padding: 8px 0; }
.bl-pb-result { margin-top: 14px; }
.bl-pb-image { width: 100%; max-width: 600px; border-radius: 12px; box-shadow: 0 8px 24px rgba(192, 38, 211, .25); display: block; margin: 0 auto; }
.bl-pb-revised { margin-top: 10px; background: #fff; padding: 10px 14px; border-radius: 8px; font-size: 13px; color: #6b7280; }
.bl-pb-revised summary { cursor: pointer; color: #86198f; font-weight: 600; }

/* mobile for new blocks */
@media (max-width: 720px) {
  .bl-js-ide-grid, .bl-lp-grid, .bl-sql-grid { grid-template-columns: 1fr; }
  .bl-lp-iframe, .bl-sql-result { min-height: 200px; }
  .bl-latex-body { font-size: 15px; padding: 14px; }
}

/* Beyond Lessons section — slight visual differentiation */
.beyond-lessons {
  background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.04) 50%, transparent 100%);
  border-top: 1px solid rgba(99, 102, 241, 0.08);
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  margin-top: 20px;
}

/* =====================================================================
   CUSTOM-HTML LESSON ENGINE — .cl-* classes for bespoke lessons (Blind 75 / NeetCode 150)
   ===================================================================== */
body.custom-lesson-mode #slide-content { padding: 0; max-width: none; }
.cl-stream { display: flex; flex-direction: column; gap: 18px; padding: 24px; max-width: 1080px; margin: 0 auto 60px; }
.cl-loading, .cl-error { padding: 60px 20px; text-align: center; color: #4b5563; font-size: 16px; }
.cl-error { color: #b91c1c; background: #fef2f2; border-radius: 12px; }

/* Section + focus highlight */
.cl-section { background: #fff; border-radius: 16px; padding: 28px 32px; box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06); border: 1px solid #f1f5f9; transition: box-shadow .35s ease, transform .35s ease, border-color .35s ease; scroll-margin-top: 80px; }
.cl-section.cl-focused { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.18), 0 12px 32px rgba(99,102,241,.18); transform: translateY(-1px); }
.cl-section-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6366f1; margin-bottom: 8px; }
.cl-section-heading { font-size: 24px; font-weight: 700; color: #0f172a; margin: 0 0 14px; line-height: 1.25; }
.cl-section-body { color: #1f2937; font-size: 16px; line-height: 1.7; }
.cl-section-body p { margin: 0 0 14px; }
.cl-section-body code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; color: #0c4a6e; }
.cl-section-body strong { color: #0f172a; }
.cl-section-footer { margin-top: 18px; }

/* Hero */
.cl-hero { padding: 36px 32px; background: linear-gradient(135deg, #1e293b 0%, #4338ca 50%, #7c3aed 100%); color: #fff; --cl-accent: #fbbf24; }
.cl-hero[style*="--cl-accent"] { background: linear-gradient(135deg, #1e293b 0%, var(--cl-accent) 100%); }
.cl-hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; margin-bottom: 10px; }
.cl-hero-title { font-size: 30px; font-weight: 800; margin: 0 0 12px; line-height: 1.2; color: #fff; }
.cl-hero-subtitle { font-size: 17px; line-height: 1.6; opacity: .92; margin: 0; }

/* Callouts */
.cl-callout { border-radius: 12px; padding: 16px 18px; border-left: 4px solid; background: #f8fafc; margin: 12px 0; }
.cl-callout-pro-tip { background: #ecfeff; border-color: #06b6d4; }
.cl-callout-gotcha { background: #fef3c7; border-color: #f59e0b; }
.cl-callout-india-context { background: #ecfdf5; border-color: #10b981; }
.cl-callout-interview { background: #ede9fe; border-color: #8b5cf6; }
.cl-callout-why { background: #eff6ff; border-color: #3b82f6; }
.cl-callout-mistake { background: #fef2f2; border-color: #ef4444; }
.cl-callout-head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; color: #0f172a; }
.cl-callout-icon { font-size: 18px; }
.cl-callout-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.cl-callout-title { font-size: 14px; color: #475569; font-weight: 600; }
.cl-callout-body { color: #1f2937; font-size: 15px; line-height: 1.65; }

/* Compare table */
.cl-compare-wrap { margin: 14px 0; }
.cl-compare-heading { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0 0 8px; }
.cl-compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.cl-compare th { background: #f1f5f9; padding: 10px 12px; font-size: 13px; font-weight: 700; text-align: left; color: #334155; text-transform: uppercase; letter-spacing: .05em; }
.cl-compare td { padding: 12px; border-top: 1px solid #f1f5f9; font-size: 14px; color: #1f2937; vertical-align: top; }
.cl-compare code { background: #f8fafc; padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 13px; }

/* Reveal steps */
.cl-reveal { background: #fafbfc; border-radius: 12px; padding: 18px; }
.cl-reveal-heading { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0 0 14px; }
.cl-reveal-list { list-style: none; padding: 0; margin: 0; counter-reset: rs; display: flex; flex-direction: column; gap: 12px; }
.cl-reveal-step { display: flex; align-items: flex-start; gap: 14px; }
.cl-reveal-num { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: #6366f1; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.cl-reveal-content { flex: 1; }
.cl-reveal-label { font-size: 15px; font-weight: 600; color: #0f172a; }
.cl-reveal-detail { font-size: 14px; color: #475569; margin-top: 4px; line-height: 1.6; }

/* Code walk (line-by-line annotated code) */
.cl-codewalk { background: #0f172a; border-radius: 12px; overflow: hidden; margin: 12px 0; }
.cl-cw-head { background: #1e293b; color: #e2e8f0; padding: 10px 16px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.cl-cw-lang { background: #6366f1; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.cl-cw-body { padding: 12px 0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; line-height: 1.7; }
.cl-cw-line { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; padding: 0 16px; gap: 10px; color: #cbd5e1; position: relative; }
.cl-cw-line.cl-cw-noted { background: rgba(99,102,241,.10); }
.cl-cw-num { color: #475569; font-size: 11px; text-align: right; user-select: none; }
.cl-cw-code { margin: 0; color: #e2e8f0; white-space: pre; overflow-x: auto; font-family: inherit; font-size: inherit; background: transparent; padding: 0; }
.cl-cw-arrow { color: #fbbf24; font-size: 16px; padding: 0 6px; }
.cl-cw-note { color: #fcd34d; font-style: italic; font-family: ui-sans-serif, system-ui; font-size: 12px; max-width: 280px; }

/* Quiz */
.cl-quiz { background: #fff; border-radius: 12px; padding: 18px; border: 1px solid #e5e7eb; margin: 12px 0; }
.cl-quiz-q { font-size: 16px; font-weight: 600; color: #0f172a; margin-bottom: 12px; line-height: 1.5; }
.cl-quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.cl-quiz-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px; border: 2px solid #e5e7eb; background: #f9fafb; cursor: pointer; transition: all .15s; text-align: left; font-size: 14px; color: #1f2937; }
.cl-quiz-opt:hover:not(.cl-quiz-locked) { background: #f1f5f9; border-color: #6366f1; }
.cl-quiz-opt.cl-quiz-locked { cursor: default; }
.cl-quiz-opt.cl-quiz-right { background: #d1fae5; border-color: #10b981; color: #064e3b; }
.cl-quiz-opt.cl-quiz-wrong { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; }
.cl-quiz-letter { width: 26px; height: 26px; border-radius: 50%; background: #e5e7eb; color: #475569; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: 0 0 auto; }
.cl-quiz-opt.cl-quiz-right .cl-quiz-letter { background: #10b981; color: #fff; }
.cl-quiz-opt.cl-quiz-wrong .cl-quiz-letter { background: #ef4444; color: #fff; }
.cl-quiz-text { flex: 1; }
.cl-quiz-feedback { margin-top: 12px; }
.cl-quiz-msg { padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.cl-quiz-msg.ok { background: #d1fae5; color: #064e3b; }
.cl-quiz-msg.bad { background: #fef3c7; color: #7c2d12; }

/* IDE (python + js) */
.cl-ide { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e5e7eb; margin: 14px 0; }
.cl-ide-head { background: #0f172a; color: #e2e8f0; padding: 10px 16px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.cl-ide-lang { background: #fbbf24; color: #0f172a; padding: 2px 8px; border-radius: 4px; font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.cl-ide-task { padding: 14px 18px; background: #f8fafc; color: #1f2937; font-size: 14px; line-height: 1.6; border-bottom: 1px solid #e5e7eb; }
.cl-ide-task code { background: #fff; padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 13px; }
.cl-ide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #e5e7eb; }
.cl-ide-pane { background: #fff; display: flex; flex-direction: column; }
.cl-ide-editor { flex: 1; min-height: 240px; padding: 12px 16px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; line-height: 1.6; border: none; outline: none; resize: vertical; background: #0f172a; color: #e2e8f0; tab-size: 4; }
.cl-ide-actions { display: flex; gap: 8px; padding: 8px 12px; background: #1e293b; border-top: 1px solid #334155; }
.cl-ide-btn { background: #334155; color: #e2e8f0; border: none; padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s; }
.cl-ide-btn:hover { background: #475569; }
.cl-ide-btn.cl-ide-primary { background: #10b981; color: #fff; }
.cl-ide-btn.cl-ide-primary:hover { background: #059669; }
.cl-ide-btn.cl-ide-check { background: #6366f1; color: #fff; }
.cl-ide-btn.cl-ide-check:hover { background: #4f46e5; }
.cl-ide-out-bar { padding: 8px 16px; background: #1e293b; color: #94a3b8; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cl-ide-out { flex: 1; min-height: 240px; max-height: 380px; padding: 12px 16px; background: #0f172a; color: #e2e8f0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; line-height: 1.6; margin: 0; overflow: auto; white-space: pre-wrap; }

/* Array viz */
.cl-arrviz { margin: 14px 0; }
.cl-arrviz-label { font-size: 13px; color: #475569; font-weight: 600; margin-bottom: 8px; }
.cl-arr-row { display: flex; gap: 4px; overflow-x: auto; padding: 4px 0; }
.cl-arr-cell { min-width: 70px; background: #fff; border: 2px solid #cbd5e1; border-radius: 8px; padding: 8px 6px; text-align: center; font-family: 'JetBrains Mono', ui-monospace, monospace; transition: all .25s; }
.cl-arr-cell.cl-arr-hi { border-color: #6366f1; background: #ede9fe; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(99,102,241,.25); }
.cl-arr-cell.cl-arr-found { border-color: #10b981; background: #d1fae5; }
.cl-arr-cell.cl-arr-target { border-color: #f59e0b; background: #fef3c7; }
.cl-arr-addr { font-size: 9px; color: #94a3b8; margin-bottom: 2px; }
.cl-arr-val { font-size: 16px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.cl-arr-idx { font-size: 10px; color: #6366f1; margin-top: 2px; font-weight: 600; }

/* Linked list viz */
.cl-llviz { margin: 14px 0; overflow-x: auto; }
.cl-llviz-label { font-size: 13px; color: #475569; font-weight: 600; margin-bottom: 8px; }
.cl-ll-row { display: flex; align-items: center; gap: 0; padding: 8px 4px; }
.cl-ll-head { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; color: #6366f1; font-weight: 700; margin-right: 6px; }
.cl-ll-node { display: flex; align-items: center; background: #fff; border: 2px solid #cbd5e1; border-radius: 8px; min-width: 80px; min-height: 48px; transition: all .25s; }
.cl-ll-node.cl-ll-cur { border-color: #6366f1; background: #ede9fe; transform: translateY(-2px); }
.cl-ll-node.cl-ll-prev { border-color: #f59e0b; background: #fef3c7; }
.cl-ll-val { padding: 8px 12px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; font-size: 16px; color: #0f172a; border-right: 1px solid #e5e7eb; }
.cl-ll-next { padding: 8px 10px; font-size: 12px; color: #94a3b8; min-width: 24px; text-align: center; }
.cl-ll-arrow { padding: 0 8px; color: #6366f1; font-size: 22px; font-weight: 700; transition: transform .35s; }
.cl-ll-arrow.cl-ll-flipped { color: #f59e0b; }

/* Tree viz */
.cl-treeviz { margin: 14px 0; background: #fafbfc; border-radius: 8px; padding: 12px; }
.cl-treeviz-label { font-size: 13px; color: #475569; font-weight: 600; margin-bottom: 8px; }
.cl-tv-svg { width: 100%; max-width: 100%; height: auto; }

/* Recursion tree */
.cl-rectree { margin: 14px 0; background: #fafbfc; border-radius: 8px; padding: 12px; overflow-x: auto; }
.cl-rectree-label { font-size: 13px; color: #475569; font-weight: 600; margin-bottom: 8px; }
.cl-rt-svg { width: 100%; min-width: 600px; height: auto; }

/* Architecture diagram */
.cl-arch { position: relative; background: #fafbfc; border-radius: 8px; border: 1px dashed #cbd5e1; margin: 14px 0; overflow: hidden; }
.cl-arch-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cl-arch-node { position: absolute; background: #fff; border: 2px solid #6366f1; border-radius: 8px; padding: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #0f172a; box-shadow: 0 2px 6px rgba(0,0,0,.06); z-index: 2; }
.cl-arch-node.cl-arch-db { border-color: #10b981; background: #d1fae5; }
.cl-arch-node.cl-arch-cache { border-color: #f59e0b; background: #fef3c7; }
.cl-arch-node-label { text-align: center; }

/* Problem card (LeetCode-style) */
.cl-prob { background: #fff; border-radius: 12px; padding: 20px 24px; border: 1px solid #e5e7eb; }
.cl-prob-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cl-prob-diff { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cl-prob-diff-easy { background: #d1fae5; color: #065f46; }
.cl-prob-diff-medium { background: #fef3c7; color: #78350f; }
.cl-prob-diff-hard { background: #fee2e2; color: #7f1d1d; }
.cl-prob-title { font-size: 18px; font-weight: 700; color: #0f172a; }
.cl-prob-statement { font-size: 15px; line-height: 1.7; color: #1f2937; margin-bottom: 16px; }
.cl-prob-examples { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.cl-prob-ex { background: #f8fafc; border-left: 3px solid #6366f1; padding: 10px 14px; border-radius: 4px; }
.cl-prob-ex-num { font-size: 12px; font-weight: 700; color: #6366f1; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.cl-prob-ex-row { font-size: 14px; color: #1f2937; line-height: 1.6; margin: 2px 0; }
.cl-prob-ex-row code { background: #fff; padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 13px; }
.cl-prob-cons { font-size: 14px; color: #475569; margin: 8px 0 0; padding-left: 22px; }
.cl-prob-hints { margin-top: 14px; }
.cl-prob-hints summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #6366f1; }
.cl-prob-hints ol { font-size: 14px; line-height: 1.6; color: #1f2937; padding-left: 22px; }

/* BigO card */
.cl-bigo { background: #f8fafc; border-radius: 8px; padding: 12px 16px; border: 1px solid #e5e7eb; margin: 10px 0; display: flex; flex-direction: column; gap: 4px; }
.cl-bigo-row { display: flex; gap: 12px; font-size: 14px; }
.cl-bigo-label { color: #6366f1; font-weight: 700; min-width: 80px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.cl-bigo-val { color: #0f172a; font-weight: 600; }
.cl-bigo-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; }
.cl-bigo-note { margin-top: 6px; font-size: 13px; color: #475569; font-style: italic; }

/* Companies row */
.cl-companies { background: #f8fafc; border-radius: 8px; padding: 14px 16px; margin: 14px 0; }
.cl-companies-head { font-size: 12px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.cl-companies-row { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-co-badge { background: #fff; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #475569; border: 1px solid #e5e7eb; }

/* Pattern card */
.cl-pattern { background: linear-gradient(135deg, #ede9fe 0%, #fce7f3 100%); border-radius: 12px; padding: 16px 18px; margin: 14px 0; border-left: 4px solid #8b5cf6; }
.cl-pattern-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cl-pattern-tag { background: #8b5cf6; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cl-pattern-name { font-size: 16px; font-weight: 700; color: #0f172a; }
.cl-pattern-row { font-size: 14px; line-height: 1.6; color: #1f2937; margin: 4px 0; }
.cl-pattern-row code { background: #fff; padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 12px; }

/* Mobile */
@media (max-width: 720px) {
  .cl-stream { padding: 14px; gap: 14px; }
  .cl-section { padding: 20px 18px; border-radius: 12px; }
  .cl-section-heading { font-size: 20px; }
  .cl-hero { padding: 24px 20px; }
  .cl-hero-title { font-size: 24px; }
  .cl-ide-grid { grid-template-columns: 1fr; }
  .cl-cw-line { grid-template-columns: 30px 1fr; }
  .cl-cw-arrow, .cl-cw-note { display: none; }
}

/* Coming-soon placeholder for not-yet-authored lessons */
.cl-coming-soon { padding: 56px 40px; text-align: center; background: linear-gradient(180deg,#fef3c7 0%,#fff 100%); border-radius: 14px; border: 1px dashed #d97706; }
.cl-coming-soon h2 { font-size: 32px; margin: 12px 0 14px; color: #1e293b; }
.cl-coming-soon p { max-width: 640px; margin: 0 auto 14px; color: #475569; line-height: 1.7; font-size: 15px; }
.cl-topic-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 14px 0; }
.cl-topic-pill { display: inline-block; padding: 4px 12px; background: #ede9fe; color: #5b21b6; border-radius: 999px; font-size: 12px; font-weight: 600; }
.cl-cs-actions { margin: 22px 0 12px; }
.cl-cs-actions a { display: inline-block; padding: 10px 22px; background: #6366f1; color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; }
.cl-cs-actions a:hover { background: #4f46e5; }
.cl-cs-note { margin-top: 18px; font-size: 13px; color: #64748b; font-style: italic; }
.cl-loading { padding: 60px; text-align: center; color: #64748b; font-size: 14px; }
.cl-error { padding: 24px; background: #fee2e2; color: #991b1b; border-radius: 8px; font-family: ui-monospace,monospace; font-size: 13px; }

/* Custom-lesson mode: hide playground, stretch lesson panel, remove cl-stream cap */
body.custom-lesson-mode .course-view-container { grid-template-columns: 280px 1fr; gap: 16px; }
body.custom-lesson-mode .playground-panel { display: none !important; }
body.custom-lesson-mode .lesson-panel { padding: 0; }
body.custom-lesson-mode .lesson-header-bar { padding: 14px 24px 0; }
body.custom-lesson-mode .lesson-main-title { padding: 0 24px 6px; }
body.custom-lesson-mode .lesson-tabs { padding: 0 24px; }
body.custom-lesson-mode .tab-content { padding: 0 24px 24px; }
body.custom-lesson-mode #slide-content { padding: 0; max-width: none; }
body.custom-lesson-mode .cl-stream { max-width: 1400px; padding: 24px 32px 80px; }

body.custom-lesson-mode .cl-section { padding: 32px 36px; }
body.custom-lesson-mode .cl-section h2 { font-size: 28px; line-height: 1.25; }
body.custom-lesson-mode .cl-hero { padding: 48px 40px; }
body.custom-lesson-mode .cl-hero-title { font-size: 42px; line-height: 1.1; }

/* Algorithm Player — code + state side-by-side animated */
.cl-algoplayer { background: #0f172a; border-radius: 12px; padding: 0; overflow: hidden; box-shadow: 0 8px 24px rgba(15,23,42,.18); margin: 18px 0; }
.cl-ap-header { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: linear-gradient(90deg,#1e293b,#334155); color: #f1f5f9; }
.cl-ap-title { font-weight: 600; font-size: 14px; flex: 1; }
.cl-ap-controls { display: flex; gap: 6px; align-items: center; }
.cl-ap-btn { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: #f1f5f9; width: 34px; height: 34px; border-radius: 6px; cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.cl-ap-btn:hover { background: rgba(255,255,255,.2); }
.cl-ap-btn.cl-ap-play { background: #6366f1; border-color: #6366f1; width: 40px; }
.cl-ap-btn.cl-ap-play:hover { background: #4f46e5; }
.cl-ap-speed { background: rgba(255,255,255,.1); color: #f1f5f9; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.cl-ap-progress { flex: 0 0 120px; height: 6px; background: rgba(255,255,255,.15); border-radius: 3px; overflow: hidden; }
.cl-ap-progress-bar { height: 100%; background: linear-gradient(90deg,#a78bfa,#fbbf24); width: 0%; transition: width .25s; }
.cl-ap-step-label { font-family: ui-monospace,monospace; font-size: 11px; color: #94a3b8; min-width: 56px; text-align: right; }
.cl-ap-body { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 380px; }
@media (max-width: 1024px) { .cl-ap-body { grid-template-columns: 1fr; } }
.cl-ap-code { padding: 18px 22px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; line-height: 1.85; color: #cbd5e1; background: #0f172a; overflow-x: auto; }
.cl-ap-line { display: grid; grid-template-columns: 32px 1fr; padding: 2px 6px; border-radius: 4px; transition: background .25s, color .25s; white-space: pre; }
.cl-ap-line .cl-ap-ln { color: #475569; user-select: none; padding-right: 12px; text-align: right; }
.cl-ap-line.cl-ap-active { background: rgba(251,191,36,.18); color: #fef3c7; }
.cl-ap-line.cl-ap-active .cl-ap-ln { color: #fbbf24; font-weight: 700; }
.cl-ap-state { padding: 22px; background: #1e293b; border-left: 1px solid rgba(255,255,255,.06); color: #e2e8f0; font-family: ui-monospace,monospace; font-size: 13px; overflow: auto; }
.cl-ap-state h4 { font-family: -apple-system, system-ui, sans-serif; color: #94a3b8; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; font-weight: 600; }
.cl-ap-narration { padding: 14px 22px; background: #0b1220; color: #94a3b8; font-size: 13px; line-height: 1.6; border-top: 1px solid rgba(255,255,255,.06); min-height: 50px; font-family: -apple-system, system-ui, sans-serif; }
.cl-ap-narration strong { color: #fbbf24; }

/* Animated array cells inside AlgoPlayer state pane */
.cl-ap-arr { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 18px; }
.cl-ap-cell { min-width: 50px; padding: 8px 0; background: #334155; border: 2px solid #475569; border-radius: 6px; text-align: center; transition: all .35s cubic-bezier(.4,0,.2,1); position: relative; }
.cl-ap-cell.is-i { border-color: #fbbf24; background: #78350f; transform: translateY(-4px); box-shadow: 0 6px 14px rgba(251,191,36,.3); }
.cl-ap-cell.is-j { border-color: #a78bfa; background: #4c1d95; transform: translateY(-4px); }
.cl-ap-cell.is-found { border-color: #22c55e; background: #166534; box-shadow: 0 0 0 4px rgba(34,197,94,.25); }
.cl-ap-cell-val { font-weight: 700; font-size: 16px; color: #f1f5f9; }
.cl-ap-cell-idx { font-size: 10px; color: #94a3b8; margin-top: 2px; }
.cl-ap-cell-tag { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #fbbf24; font-weight: 700; white-space: nowrap; }

.cl-ap-map { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 18px; padding: 12px; background: #0f172a; border-radius: 8px; min-height: 50px; border: 1px dashed #334155; }
.cl-ap-map-empty { color: #475569; font-style: italic; font-size: 12px; }
.cl-ap-map-entry { background: #312e81; border: 1px solid #6366f1; padding: 4px 10px; border-radius: 6px; font-size: 12px; color: #e0e7ff; transition: all .35s; }
.cl-ap-map-entry.just-added { background: #6366f1; transform: scale(1.15); }
.cl-ap-map-entry.is-hit { background: #16a34a; border-color: #22c55e; transform: scale(1.2); box-shadow: 0 0 12px rgba(34,197,94,.5); }

.cl-ap-vars { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0; }
.cl-ap-vars dt { color: #94a3b8; font-size: 12px; }
.cl-ap-vars dd { margin: 0; color: #fef3c7; font-weight: 700; font-size: 13px; }

/* Linked list animated nodes inside AlgoPlayer */
.cl-ap-llrow { display: flex; align-items: center; gap: 4px; margin: 14px 0 18px; flex-wrap: wrap; }
.cl-ap-llnode { display: flex; flex-direction: column; align-items: center; padding: 10px 14px; background: #334155; border: 2px solid #475569; border-radius: 8px; transition: all .4s; min-width: 50px; }
.cl-ap-llnode.is-prev { border-color: #22c55e; background: #14532d; }
.cl-ap-llnode.is-curr { border-color: #fbbf24; background: #78350f; transform: translateY(-6px); box-shadow: 0 6px 14px rgba(251,191,36,.3); }
.cl-ap-llnode.is-next { border-color: #a78bfa; background: #4c1d95; }
.cl-ap-llnode-val { font-weight: 700; font-size: 16px; color: #f1f5f9; }
.cl-ap-llnode-tag { font-size: 9px; color: #fbbf24; margin-top: 2px; font-weight: 700; }
.cl-ap-llarrow { color: #64748b; font-size: 22px; font-weight: 700; transition: all .4s; }
.cl-ap-llarrow.is-flipped { color: #f59e0b; transform: rotate(180deg); }
.cl-ap-llarrow.is-cut { color: #475569; opacity: .3; }

/* Recursion tree animated growth */
.cl-rt-anim { transition: opacity .35s; }
.cl-rt-node-entering { animation: cl-pop-in .4s cubic-bezier(.34,1.56,.64,1); transform-origin: center; }
@keyframes cl-pop-in { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }

/* ===============================================
   PAYWALL — premium-module gating
   =============================================== */

.premium-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.free-badge {
  background: rgba(16, 185, 129, 0.92);
  color: #fff;
}

.preview-badge {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.preview-card {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.locked-week-card {
  cursor: pointer;
  position: relative;
  opacity: 0.92;
  transition: opacity 0.2s, transform 0.2s;
}

.locked-week-card:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.locked-week-card .card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

/* Paywall modal */
.paywall-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.paywall-modal-content {
  background: #fff;
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  padding: 36px 32px 28px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: paywallIn 0.25s ease-out;
}

@keyframes paywallIn {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.paywall-modal-content .modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
}
.paywall-modal-content .modal-close:hover { color: #1e293b; }

.paywall-card {
  text-align: center;
}

.paywall-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.paywall-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.paywall-subtitle {
  font-size: 0.98rem;
  color: #475569;
  margin: 0 0 22px;
  line-height: 1.55;
}

.paywall-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
}

.paywall-perks li {
  padding: 6px 0;
  color: #1e293b;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.paywall-perks li i {
  color: #10b981;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.paywall-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.paywall-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.paywall-btn:hover { transform: translateY(-2px); }

.paywall-btn-wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}
.paywall-btn-wa:hover { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55); }

.paywall-btn-email {
  background: #1e293b;
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.3);
}
.paywall-btn-email:hover { box-shadow: 0 6px 20px rgba(30, 41, 59, 0.45); }

.paywall-foot {
  font-size: 0.8rem;
  color: #64748b;
  margin: 12px 0 0;
  line-height: 1.5;
}

/* Inline lesson paywall — reuses the card inside the lesson stream */
.lesson-paywall-stream {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 20px;
}
.lesson-paywall-stream .paywall-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 36px 36px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

@media (max-width: 600px) {
  .paywall-modal-content { padding: 28px 22px 20px; }
  .paywall-title { font-size: 1.4rem; }
}

/* =====================================================================
   Claude Mastery (dark-authored) lesson surface
   The cm-* lessons were authored on a dark base; their inline cards use
   rgba(15,23,42,…) + light text. Override TWA primitive surfaces to dark
   when the lesson is in narrationScope:'claude-mastery'.
   ===================================================================== */
.cl-stream[data-theme="cm-dark"] {
  color: #e2e8f0;
}
.cl-stream[data-theme="cm-dark"] .cl-section {
  background: #0f172a;
  border-color: rgba(99, 102, 241, 0.18);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 8px 28px rgba(2, 6, 23, 0.45);
  color: #e2e8f0;
}
.cl-stream[data-theme="cm-dark"] .cl-section.cl-focused {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.45), 0 18px 40px rgba(99, 102, 241, 0.35);
}
.cl-stream[data-theme="cm-dark"] .cl-section-eyebrow { color: #a5b4fc; }
.cl-stream[data-theme="cm-dark"] .cl-section-heading,
.cl-stream[data-theme="cm-dark"] .cl-section h1,
.cl-stream[data-theme="cm-dark"] .cl-section h2,
.cl-stream[data-theme="cm-dark"] .cl-section h3,
.cl-stream[data-theme="cm-dark"] .cl-section h4,
.cl-stream[data-theme="cm-dark"] .cl-section h5 { color: #f8fafc; }
.cl-stream[data-theme="cm-dark"] .cl-section-body,
.cl-stream[data-theme="cm-dark"] .cl-section-body p,
.cl-stream[data-theme="cm-dark"] .cl-section-body li,
.cl-stream[data-theme="cm-dark"] .cl-section-body td { color: #cbd5e1; }
.cl-stream[data-theme="cm-dark"] .cl-section-body strong { color: #f8fafc; }
.cl-stream[data-theme="cm-dark"] .cl-section-body em { color: #e2e8f0; }
.cl-stream[data-theme="cm-dark"] .cl-section-body code {
  background: rgba(2, 6, 23, 0.6);
  color: #f9a8d4;
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.cl-stream[data-theme="cm-dark"] .cl-section-body a {
  color: #67e8f9;
  text-decoration-color: rgba(103, 232, 249, 0.4);
}
.cl-stream[data-theme="cm-dark"] .cl-section-body a:hover { color: #a5f3fc; }
.cl-stream[data-theme="cm-dark"] .cl-section-body hr {
  border: 0; border-top: 1px solid rgba(148, 163, 184, 0.2); margin: 18px 0;
}

/* Callouts — dark variants */
.cl-stream[data-theme="cm-dark"] .cl-callout {
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
}
.cl-stream[data-theme="cm-dark"] .cl-callout-pro-tip      { background: rgba(6, 182, 212, 0.10);  }
.cl-stream[data-theme="cm-dark"] .cl-callout-gotcha       { background: rgba(245, 158, 11, 0.10); }
.cl-stream[data-theme="cm-dark"] .cl-callout-india-context{ background: rgba(16, 185, 129, 0.10); }
.cl-stream[data-theme="cm-dark"] .cl-callout-interview    { background: rgba(139, 92, 246, 0.10); }
.cl-stream[data-theme="cm-dark"] .cl-callout-why          { background: rgba(59, 130, 246, 0.10); }
.cl-stream[data-theme="cm-dark"] .cl-callout-mistake      { background: rgba(239, 68, 68, 0.10);  }
.cl-stream[data-theme="cm-dark"] .cl-callout-head { color: #f8fafc; }
.cl-stream[data-theme="cm-dark"] .cl-callout-title { color: #cbd5e1; }
.cl-stream[data-theme="cm-dark"] .cl-callout-body { color: #cbd5e1; }
.cl-stream[data-theme="cm-dark"] .cl-callout-body strong { color: #f8fafc; }
.cl-stream[data-theme="cm-dark"] .cl-callout-body a { color: #67e8f9; }

/* Compare table — dark */
.cl-stream[data-theme="cm-dark"] .cl-compare-heading { color: #f8fafc; }
.cl-stream[data-theme="cm-dark"] .cl-compare {
  background: #0b1426;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.cl-stream[data-theme="cm-dark"] .cl-compare th {
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
}
.cl-stream[data-theme="cm-dark"] .cl-compare td {
  color: #e2e8f0;
  border-top-color: rgba(148, 163, 184, 0.12);
}
.cl-stream[data-theme="cm-dark"] .cl-compare code {
  background: rgba(2, 6, 23, 0.6);
  color: #f9a8d4;
}

/* Reveal — dark */
.cl-stream[data-theme="cm-dark"] .cl-reveal {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.cl-stream[data-theme="cm-dark"] .cl-reveal-heading { color: #f8fafc; }
.cl-stream[data-theme="cm-dark"] .cl-reveal-label { color: #f8fafc; }
.cl-stream[data-theme="cm-dark"] .cl-reveal-detail { color: #cbd5e1; }

/* Quiz — dark */
.cl-stream[data-theme="cm-dark"] .cl-quiz {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.2);
}
.cl-stream[data-theme="cm-dark"] .cl-quiz-q { color: #f8fafc; }
.cl-stream[data-theme="cm-dark"] .cl-quiz-opt {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}
.cl-stream[data-theme="cm-dark"] .cl-quiz-opt:hover:not(.cl-quiz-locked) {
  background: rgba(99, 102, 241, 0.18);
  border-color: #8b5cf6;
}
.cl-stream[data-theme="cm-dark"] .cl-quiz-opt.cl-quiz-right {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10b981;
  color: #a7f3d0;
}
.cl-stream[data-theme="cm-dark"] .cl-quiz-opt.cl-quiz-wrong {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
  color: #fecaca;
}
.cl-stream[data-theme="cm-dark"] .cl-quiz-letter {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}
.cl-stream[data-theme="cm-dark"] .cl-quiz-msg.ok  { background: rgba(16, 185, 129, 0.18); color: #a7f3d0; }
.cl-stream[data-theme="cm-dark"] .cl-quiz-msg.bad { background: rgba(245, 158, 11, 0.18); color: #fde68a; }

/* Generic dark fallbacks for tables/details inside lesson body */
.cl-stream[data-theme="cm-dark"] table { color: #e2e8f0; }
.cl-stream[data-theme="cm-dark"] th { color: #f8fafc; }
.cl-stream[data-theme="cm-dark"] details {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
}
.cl-stream[data-theme="cm-dark"] details summary { color: #f8fafc; }
.cl-stream[data-theme="cm-dark"] details p { color: #cbd5e1; }

/* ==================== MENTORING LIBRARY ==================== */
.mentoring-card .card-image {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mentoring-card .card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.mentoring-card .card-emoji {
  font-size: 3.2rem;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}

/* Single-session view */
#mentoring-view {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}
.mentoring-container {
  margin-top: 16px;
}
.mentoring-player-wrap {
  margin-top: 20px;
  background: #0f172a;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 36px rgba(15,23,42,0.18);
}
.mentoring-player {
  width: 100%;
  max-height: 70vh;
  display: block;
  border-radius: 10px;
  background: #000;
  outline: none;
}
.mentoring-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  padding: 8px 4px 0;
  color: #cbd5e1;
  font-size: 0.92rem;
}
.mentoring-meta-row i { margin-right: 6px; opacity: 0.85; }

/* Paywall card inside mentoring view */
.mentoring-paywall {
  margin-top: 24px;
}
.mentoring-paywall .paywall-card {
  margin: 0 auto;
  max-width: 720px;
}

/* ==================== ADMIN: USER ACCESS SUMMARY ==================== */
.admin-access-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.access-stat {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}
.access-stat.full { border-color: #facc15; background: linear-gradient(135deg,#fffbeb,#fef3c7); }
.access-stat.partial { border-color: #60a5fa; background: linear-gradient(135deg,#eff6ff,#dbeafe); }
.access-stat.none { border-color: #f87171; background: linear-gradient(135deg,#fef2f2,#fee2e2); }
.access-stat.total { border-color: #a78bfa; background: linear-gradient(135deg,#f5f3ff,#ede9fe); }
.access-stat-num { font-size: 1.6rem; font-weight: 700; color: #1f2937; }
.access-stat-label { font-size: 0.85rem; color: #4b5563; margin-top: 2px; }

.admin-access-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.admin-access-filter > * { flex: 1 1 200px; }

.access-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.access-badge.full { background: #fef3c7; color: #92400e; border: 1px solid #facc15; }
.access-badge.partial { background: #dbeafe; color: #1e40af; border: 1px solid #60a5fa; }
.access-badge.none { background: #fee2e2; color: #991b1b; border: 1px solid #f87171; }

.access-details { margin-top: 4px; }
.access-details summary {
  cursor: pointer;
  font-size: 0.78rem;
  color: #6b7280;
  user-select: none;
}
.access-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  max-width: 360px;
}
.access-chip {
  font-size: 0.72rem;
  background: #f3f4f6;
  color: #374151;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.access-row-full td { background: linear-gradient(90deg, #fffbeb 0%, transparent 100%); }

/* ==================== ADMIN: SUPERBATCH STYLING ==================== */
.batch-card-superbatch {
  border: 2px solid #facc15;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 60%);
  box-shadow: 0 6px 18px rgba(250,204,21,0.18);
}
.batch-status-super {
  background: linear-gradient(135deg, #f59e0b, #facc15);
  color: #fff;
  border: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  margin-left: 8px;
}

/* ============================================================
   FREE MARKETING — share buttons, invite modal, course subtitle
   ============================================================ */

.course-detail-subtitle {
  color: #c4b5fd;
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
  padding: .75rem 1rem;
  background: rgba(168,85,247,.08);
  border: 1px solid rgba(168,85,247,.22);
  border-radius: 14px;
}
.share-label {
  color: #e9d5ff;
  font-weight: 600;
  font-size: .92rem;
  margin-right: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
  background: #444;
}
.share-btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.share-whatsapp { background: #25D366; }
.share-telegram { background: #0088cc; }
.share-twitter  { background: #000; }
.share-linkedin { background: #0A66C2; }
.share-reddit   { background: #FF4500; }
.share-facebook { background: #1877F2; }
.share-copy     { background: #6c3ce0; }

/* Invite modal */
.invite-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,4,24,.78);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.invite-modal {
  background: linear-gradient(135deg,#1a0533 0%,#2d1560 100%);
  border: 1px solid rgba(168,85,247,.4);
  border-radius: 20px;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  color: #f3f0ff;
}
.invite-modal h2 {
  margin: 0 0 .5rem;
  background: linear-gradient(135deg,#fbbf24,#a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.invite-modal p { color: #d4d4d8; line-height: 1.55; }
.invite-modal .invite-foot { font-size: .85rem; color: #a78bfa; margin-top: 1rem; }
.invite-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,.08);
  border: none;
  color: #f3f0ff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}
.invite-link-row {
  display: flex;
  gap: 8px;
  margin: 1rem 0;
}
.invite-link-row input {
  flex: 1;
  padding: .75rem;
  border-radius: 10px;
  border: 1px solid rgba(168,85,247,.35);
  background: rgba(0,0,0,.35);
  color: #f3f0ff;
  font-family: inherit;
  font-size: .9rem;
}
.invite-link-row button {
  background: linear-gradient(135deg,#a855f7,#6c3ce0);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0 1.1rem;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}

/* Invite nav button */
.invite-nav-btn {
  background: linear-gradient(135deg,#fbbf24,#f97316);
  color: #1a0533;
  border: none;
  padding: .55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.invite-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(251,191,36,.4);
}

/* Referral stats inside invite modal */
.invite-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 1rem 0;
}
.invite-stat {
  background: rgba(168,85,247,.10);
  border: 1px solid rgba(168,85,247,.25);
  border-radius: 12px;
  padding: .85rem .5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.invite-stat strong {
  font-size: 1.6rem;
  background: linear-gradient(135deg,#a855f7,#22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.invite-stat span {
  color: #c4b5fd;
  font-size: .75rem;
  text-align: center;
  line-height: 1.2;
}
.invite-reward-note {
  background: rgba(34,211,238,.10);
  border-left: 3px solid #22d3ee;
  padding: .65rem .8rem;
  border-radius: 8px;
  margin: .5rem 0 1rem;
  color: #e0f2fe;
  font-size: .9rem;
}

/* ===============================================
   COURSE-PAGE LEADERBOARD
   =============================================== */
.leaderboard-wrap {
  margin-top: 28px;
}
.leaderboard-card {
  background: linear-gradient(140deg, rgba(124, 58, 237, 0.10), rgba(6, 182, 212, 0.10));
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 14px;
  padding: 20px 22px;
  color: #f4f4f7;
}
.leaderboard-header {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.leaderboard-header h3 {
  margin: 0; font-size: 1.15rem; letter-spacing: 0.2px;
}
.leaderboard-header h3 i { color: #fbbf24; margin-right: 6px; }
.leaderboard-meta { font-size: 0.82rem; opacity: 0.7; }
.leaderboard-loading { padding: 18px 0; opacity: 0.7; font-size: 0.9rem; }
.leaderboard-tabs {
  display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap;
}
.lb-tab {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  color: #d1d5db; border-radius: 999px; padding: 6px 14px; font-size: 0.82rem;
  cursor: pointer; transition: background 120ms, color 120ms, border-color 120ms;
}
.lb-tab:hover { background: rgba(255,255,255,0.10); color: #fff; }
.lb-tab.active {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  border-color: transparent; color: #fff; font-weight: 600;
}
.lb-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.lb-list.hidden { display: none; }
.lb-row {
  display: grid; grid-template-columns: 44px 1fr auto;
  align-items: center; gap: 10px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  font-size: 0.92rem;
  transition: background 120ms;
}
.lb-row:hover { background: rgba(255,255,255,0.08); }
.lb-row-you {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.45);
}
.lb-row-you:hover { background: rgba(251, 191, 36, 0.20); }
.lb-rank { font-size: 1rem; text-align: center; opacity: 0.85; }
.lb-name { color: #f4f4f7; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name em { color: #fbbf24; font-style: normal; font-weight: 600; font-size: 0.78rem; margin-left: 4px; }
.lb-points { font-variant-numeric: tabular-nums; font-weight: 600; color: #c4b5fd; }
.lb-points small { font-weight: 400; opacity: 0.7; margin-left: 2px; }
.lb-empty {
  padding: 14px 12px; opacity: 0.7; font-size: 0.88rem;
  background: rgba(255,255,255,0.03); border-radius: 10px;
  list-style: none; text-align: center;
}
.leaderboard-foot {
  margin: 14px 0 0; font-size: 0.78rem; opacity: 0.7; line-height: 1.5;
}
.leaderboard-invite-link {
  margin-top: 8px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #fff; border: none; border-radius: 999px;
  padding: 8px 16px; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: transform 120ms;
}
.leaderboard-invite-link:hover { transform: translateY(-1px); }

/* Free-for-all hero footnote */
.hero-foot {
  margin: 14px auto 0;
  max-width: 720px;
  font-size: 0.88rem;
  color: #a5b4fc;
  opacity: 0.9;
  line-height: 1.55;
  text-align: center;
}
@media (max-width: 640px) {
  .hero-foot { font-size: 0.82rem; padding: 0 14px; }
}

/* ---------- Universal "Mark complete & next" footer ---------- */
.lesson-complete-footer {
  margin: 36px auto 24px;
  padding: 28px 24px;
  max-width: 760px;
  text-align: center;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
}
.lesson-complete-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.lesson-complete-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.38);
  filter: brightness(1.05);
}
.lesson-complete-btn:active { transform: translateY(0); }
.lesson-complete-btn.is-done {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
}
.lesson-complete-hint {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #64748b;
}
[data-theme="cm-dark"] .lesson-complete-footer { border-top-color: rgba(255,255,255,0.12); }
[data-theme="cm-dark"] .lesson-complete-hint { color: rgba(226, 232, 240, 0.7); }

/* ---------- chart-chooser widget ---------- */
.bl-chartchooser { }
.bl-cc-q { font-weight: 600; font-size: 1.02rem; margin-bottom: 14px; }
.bl-cc-q .fa-chart-column { color: #1f6feb; margin-right: 6px; }
.bl-cc-options { display: flex; flex-wrap: wrap; gap: 12px; }
.bl-cc-option {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 96px; padding: 14px 16px; cursor: pointer;
  background: #fff; border: 2px solid #e2e8f0; border-radius: 12px;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.bl-cc-option:hover { transform: translateY(-2px); border-color: #1f6feb; box-shadow: 0 6px 16px rgba(31,111,235,.15); }
.bl-cc-icon { font-size: 1.8rem; line-height: 1; }
.bl-cc-label { font-size: .9rem; font-weight: 600; color: #334155; }
.bl-cc-disabled { pointer-events: none; opacity: .85; }
.bl-cc-correct { border-color: #16a34a; background: rgba(22,163,74,.08); }
.bl-cc-correct .bl-cc-label { color: #15803d; }
.bl-cc-wrong { border-color: #dc2626; background: rgba(220,38,38,.08); }
.bl-cc-wrong .bl-cc-label { color: #b91c1c; }
.bl-cc-explain {
  margin-top: 14px; padding: 12px 14px; border-left: 4px solid #1f6feb;
  background: rgba(31,111,235,.06); border-radius: 8px; font-size: .94rem; line-height: 1.5;
}

/* ---------- predict-output widget ---------- */
.bl-predict-data { margin: 10px 0; overflow-x: auto; }
.bl-predict-data table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.bl-predict-data th, .bl-predict-data td { border: 1px solid #e2e8f0; padding: 6px 10px; text-align: left; }
.bl-predict-data th { background: #f1f5f9; font-weight: 700; }
.bl-predict-expr {
  background: #0f172a; color: #e2e8f0; padding: 12px 14px; border-radius: 8px;
  overflow-x: auto; font-size: .92rem; margin: 10px 0;
}
.bl-predict-expr code { color: #7dd3fc; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.bl-predict-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.bl-predict-input {
  flex: 1; min-width: 160px; padding: 10px 12px; font-size: 1rem;
  border: 2px solid #e2e8f0; border-radius: 8px;
}
.bl-predict-input:focus { outline: none; border-color: #1f6feb; }
.bl-predict-feedback { margin-top: 10px; }
.bl-predict-reveal {
  padding: 12px 14px; border-left: 4px solid #6366f1;
  background: rgba(99,102,241,.08); border-radius: 8px; font-size: .94rem; line-height: 1.5;
}
[data-theme="cm-dark"] .bl-cc-option { background: rgba(15,23,42,.6); border-color: rgba(255,255,255,.12); }
[data-theme="cm-dark"] .bl-cc-label { color: #e2e8f0; }

/* ===== Bharat Pulse — flagship product showcase ===== */
.product-showcase { padding: 100px 40px; }
.ps-eyebrow {
  text-align: center; text-transform: uppercase; letter-spacing: 2px;
  font-size: 12px; font-weight: 700; color: #c4b5fd; margin-bottom: 14px;
}
.ps-card {
  max-width: 1000px; margin: 44px auto 0;
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px; overflow: hidden;
}
.ps-visual { display: block; position: relative; background: #0a0c11; min-height: 100%; }
.ps-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ps-body { padding: 40px; display: flex; flex-direction: column; }
.ps-tricolor {
  width: 56px; height: 6px; border-radius: 3px; margin-bottom: 18px;
  background: linear-gradient(90deg, #ff9933 0 33.33%, #ffffff 33.33% 66.66%, #138808 66.66% 100%);
}
.ps-name {
  font-family: 'Fraunces', Georgia, serif; font-size: 30px; font-weight: 700;
  color: #fff; margin: 0 0 8px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.ps-motto { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.5); font-family: 'Inter', sans-serif; }
.ps-tagline { color: rgba(255,255,255,0.78); font-size: 15.5px; line-height: 1.65; margin: 0 0 20px; }
.ps-tagline strong { color: #fff; }
.ps-chips { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.ps-chips li {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; color: rgba(255,255,255,0.85);
}
.ps-cta {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #6c3ce0, #5b21b6); color: #fff;
  padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 24px rgba(108,60,224,0.35);
}
.ps-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(108,60,224,0.45); }
.ps-free { margin: 16px 0 0; font-size: 13px; color: rgba(255,255,255,0.5); }
/* AI Pandit branded visual (no external og image) */
.ps-visual--pandit { background: radial-gradient(120% 120% at 50% -10%, #E0701A 0%, #B5300B 55%, #7c2408 100%); display: flex; align-items: center; justify-content: center; padding: 36px 28px; text-decoration: none; }
.psv-pandit { text-align: center; color: #fff; width: 100%; }
.psv-om { font-size: 62px; line-height: 1; }
.psv-wordmark { font-family: 'Fraunces', Georgia, serif; font-size: 34px; font-weight: 700; margin-top: 8px; letter-spacing: -.5px; }
.psv-sub { font-size: 12.5px; opacity: .9; margin-top: 8px; }
.psv-mock { margin: 22px auto 0; max-width: 280px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.28); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.psv-mock span { font-size: 12.5px; font-weight: 600; text-align: left; }
.psv-mock b { font-size: 24px; font-weight: 800; line-height: 1; white-space: nowrap; }
.psv-mock small { font-size: 12px; opacity: .85; font-weight: 600; }
@media (max-width: 820px) {
  .product-showcase { padding: 70px 22px; }
  .ps-card { grid-template-columns: 1fr; }
  .ps-visual { aspect-ratio: 1200 / 630; }
  .ps-visual--pandit, .ps-visual--medi, .ps-visual--kids, .ps-visual--form, .ps-visual--seva, .ps-visual--ai { aspect-ratio: auto; min-height: 280px; }
  .ps-body { padding: 28px 24px; }
}
.ps-visual--medi { background: radial-gradient(120% 120% at 50% -10%, #12a07f 0%, #0e7c66 55%, #0a4a3c 100%); display: flex; align-items: center; justify-content: center; padding: 36px 28px; text-decoration: none; }
.psv-medi { text-align: center; color: #fff; width: 100%; }
.psv-lotus { font-size: 62px; line-height: 1; }
.ps-visual--kids { background: radial-gradient(120% 120% at 50% -10%, #ff6fb5 0%, #8a5cff 50%, #4a2bd6 100%); display: flex; align-items: center; justify-content: center; padding: 36px 28px; text-decoration: none; }
.psv-kids { text-align: center; color: #fff; width: 100%; }
.psv-emoji { font-size: 60px; line-height: 1; letter-spacing: 4px; }
/* FormPhoto branded visual (no external og image) */
.ps-visual--form { background: radial-gradient(120% 120% at 50% -10%, #3aa0ff 0%, #2563eb 55%, #1e3a8a 100%); display: flex; align-items: center; justify-content: center; padding: 36px 28px; text-decoration: none; }
.psv-form { text-align: center; color: #fff; width: 100%; }
.ps-visual--seva { background: radial-gradient(125% 125% at 50% -10%, #ff9a3c 0%, #f1592a 48%, #138808 100%); display: flex; align-items: center; justify-content: center; padding: 36px 28px; text-decoration: none; }
.psv-seva { text-align: center; color: #fff; width: 100%; }
.ps-visual--ai { background: radial-gradient(120% 120% at 50% -10%, #7c8cff 0%, #5b46d9 45%, #0b0e14 100%); display: flex; align-items: center; justify-content: center; padding: 36px 28px; text-decoration: none; }
.psv-ai { text-align: center; color: #fff; width: 100%; }

/* =========================================================================
   EDITORIAL PALETTE OVERRIDES — landing page chrome
   =========================================================================
   These rules override the prior dark + purple palette on the public landing
   pages (techwaveacademy.com /, /about, /how-we-stay-free, /courses/*).
   Scope is `body:not(.app-mode)` so the signed-in dashboard, lesson player,
   and admin panel stay on the existing dark theme (focus mode is
   intentional there).
   ========================================================================= */

body:not(.app-mode) {
  background: var(--ed-bg);
  color: var(--ed-text);
}

/* ------- top nav -------------------------------------------------------- */
body:not(.app-mode) .top-nav {
  background: var(--ed-bg);
  border-bottom: 1px solid var(--ed-border);
  box-shadow: none;
  backdrop-filter: none;
  padding: 16px 48px;
  gap: 48px;
}
body:not(.app-mode) .top-nav.scrolled {
  background: rgba(250, 250, 247, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--ed-border);
  box-shadow: 0 1px 0 var(--ed-border), 0 6px 24px rgba(20, 20, 20, 0.05);
}
body:not(.app-mode) .nav-brand {
  color: var(--ed-text);
  font-family: var(--ed-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
body:not(.app-mode) .nav-brand i { color: var(--ed-accent); }
body:not(.app-mode) .brand-mark {
  --bm-tile: var(--ed-accent);
  --bm-wave: #fafaf7;
  box-shadow: 0 3px 12px rgba(153, 27, 27, 0.22);
}
body:not(.app-mode) .brand-word {
  font-family: var(--ed-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
}
body:not(.app-mode) .brand-eyebrow {
  font-family: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  color: var(--ed-text-faint);
  letter-spacing: 0.22em;
}
body:not(.app-mode) .brand-highlight {
  color: var(--ed-text);
  font-style: italic;
  font-weight: 400;
}
body:not(.app-mode) .nav-links {
  gap: 32px;
  flex: 1;
  justify-content: center;
}
body:not(.app-mode) .nav-links a {
  color: var(--ed-text);
  font-weight: 500;
  font-size: 14.5px;
  white-space: nowrap;
  position: relative;
}
body:not(.app-mode) .nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--ed-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}
body:not(.app-mode) .nav-links a:hover { color: var(--ed-accent); }
body:not(.app-mode) .nav-links a:hover::after { transform: scaleX(1); }
body:not(.app-mode) .auth-section { flex-shrink: 0; }

body:not(.app-mode) .login-btn {
  background: transparent;
  color: var(--ed-text);
  border: 1px solid var(--ed-border);
  white-space: nowrap;
  padding: 8px 16px;
}
body:not(.app-mode) .login-btn:hover {
  background: var(--ed-surface);
  border-color: var(--ed-text);
  transform: none;
}
body:not(.app-mode) .signup-btn {
  background: var(--ed-accent);
  color: #fff;
  box-shadow: none;
  border-radius: 4px;
  white-space: nowrap;
  padding: 8px 16px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
body:not(.app-mode) .signup-btn:hover {
  background: #7f1717;
  box-shadow: 0 6px 18px rgba(153, 27, 27, 0.25);
  transform: translateY(-1px);
}

/* ------- hero ----------------------------------------------------------- */
body:not(.app-mode) .hero {
  background: var(--ed-bg);
  border-bottom: 1px solid var(--ed-border);
  min-height: auto;
  padding: 120px 40px 90px;
}
body:not(.app-mode) .hero-badge {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--ed-accent);
  border-radius: 0;
  color: var(--ed-accent);
  padding: 0 0 8px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body:not(.app-mode) .hero-title {
  font-family: var(--ed-serif);
  color: var(--ed-text);
  letter-spacing: -0.01em;
  font-weight: 600;
}
body:not(.app-mode) .gradient-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--ed-accent);
  font-family: var(--ed-serif);
  font-style: italic;
  font-weight: 500;
}
body:not(.app-mode) .hero-subtitle {
  font-family: 'Source Serif Pro', 'Charter', Georgia, serif;
  color: var(--ed-text-muted);
  font-size: 19px;
  line-height: 1.55;
}

/* ------- CTAs ----------------------------------------------------------- */
body:not(.app-mode) .cta-primary {
  background: var(--ed-accent);
  color: #fff;
  border-radius: 4px;
  box-shadow: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}
body:not(.app-mode) .cta-primary:hover {
  background: #7f1717;
  box-shadow: none;
  transform: translateY(-1px);
}
body:not(.app-mode) .cta-secondary {
  background: transparent;
  color: var(--ed-text);
  border: 1.5px solid var(--ed-text);
  border-radius: 4px;
  font-weight: 600;
  backdrop-filter: none;
}
body:not(.app-mode) .cta-secondary:hover {
  background: var(--ed-text);
  color: var(--ed-bg);
  border-color: var(--ed-text);
}

/* ------- stats bar ------------------------------------------------------ */
body:not(.app-mode) .stats-bar {
  background: var(--ed-surface-soft);
  border-top: 1px solid var(--ed-border);
  border-bottom: 1px solid var(--ed-border);
}
body:not(.app-mode) .stat-number { color: var(--ed-text); }
body:not(.app-mode) .stat-label  { color: var(--ed-text-muted); }
body:not(.app-mode) .stat-divider { background: var(--ed-border); }

/* ------- section headers ------------------------------------------------ */
body:not(.app-mode) .section-title {
  color: var(--ed-text);
  font-family: var(--ed-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}
body:not(.app-mode) .section-subtitle {
  color: var(--ed-text-muted);
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: 17px;
}

/* ------- feature cards / how-free cards / timeline ---------------------- */
body:not(.app-mode) .feature-card,
body:not(.app-mode) .how-free-card,
body:not(.app-mode) .timeline-content {
  background: var(--ed-surface);
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  backdrop-filter: none;
}
body:not(.app-mode) .feature-card:hover,
body:not(.app-mode) .how-free-card:hover,
body:not(.app-mode) .timeline-content:hover {
  background: var(--ed-surface);
  border-color: var(--ed-text);
  transform: translateY(-2px);
}
body:not(.app-mode) .feature-card h3,
body:not(.app-mode) .how-free-card h3,
body:not(.app-mode) .timeline-content h3 {
  color: var(--ed-text);
  font-family: var(--ed-serif);
  font-weight: 600;
}
body:not(.app-mode) .feature-card p,
body:not(.app-mode) .how-free-card p,
body:not(.app-mode) .timeline-content p {
  color: var(--ed-text-muted);
}
body:not(.app-mode) .timeline-week {
  background: var(--ed-accent-soft);
  border: 1.5px solid var(--ed-accent);
  color: var(--ed-accent);
}
body:not(.app-mode) .curriculum-timeline::before {
  background: var(--ed-border);
}
body:not(.app-mode) .roadmap-strip {
  background: var(--ed-surface-soft);
  border: 1px dashed var(--ed-border);
}
body:not(.app-mode) .roadmap-strip h3 { color: var(--ed-text); }
body:not(.app-mode) .roadmap-strip p  { color: var(--ed-text-muted); }

/* ------- course showcase cards (tiles use inline --accent) -------------- */
body:not(.app-mode) .course-showcase-card,
body:not(.app-mode) .csc-card {
  background: var(--ed-surface);
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  box-shadow: none;
}
body:not(.app-mode) .course-showcase-card:hover,
body:not(.app-mode) .csc-card:hover {
  border-color: var(--ed-text);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
body:not(.app-mode) .course-showcase-card h3,
body:not(.app-mode) .csc-card h3 {
  color: var(--ed-text);
  font-family: var(--ed-serif);
  font-weight: 600;
}
body:not(.app-mode) .csc-tag,
body:not(.app-mode) .csc-desc { color: var(--ed-text-muted); }
body:not(.app-mode) .csc-cta { color: var(--ed-accent); font-weight: 600; }

/* ------- playground tiles ----------------------------------------------- */
body:not(.app-mode) .playground-tile {
  background: var(--ed-surface);
  border: 1px solid var(--ed-border);
  border-radius: 6px;
}
body:not(.app-mode) .playground-tile:hover {
  border-color: var(--ed-text);
  transform: translateY(-2px);
}
body:not(.app-mode) .pg-tile-body h3 { color: var(--ed-text); font-family: var(--ed-serif); font-weight: 600; }
body:not(.app-mode) .pg-tile-body p  { color: var(--ed-text-muted); }
body:not(.app-mode) .pg-tile-cta     { color: var(--ed-accent); }

/* ------- generic body section text contrast on cream bg ----------------- */
body:not(.app-mode) .cta-contact-email a { color: var(--ed-accent); }
body:not(.app-mode) .cta-contact-email a:hover { text-decoration: underline; }

/* ------- footer --------------------------------------------------------- */
body:not(.app-mode) .landing-footer {
  background: var(--ed-bg);
  border-top: 1px solid var(--ed-border);
}
body:not(.app-mode) .footer-brand   { color: var(--ed-text); font-family: var(--ed-serif); }
body:not(.app-mode) .footer-brand i { color: var(--ed-accent); }
body:not(.app-mode) .footer-text    { color: var(--ed-text-muted); }
body:not(.app-mode) .footer-links a { color: var(--ed-text-muted); }
body:not(.app-mode) .footer-links a:hover { color: var(--ed-accent); }

/* ------- founders section ----------------------------------------------- */
body:not(.app-mode) .founder-card {
  background: var(--ed-surface);
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  backdrop-filter: none;
  box-shadow: none;
}
body:not(.app-mode) .founder-card:hover {
  border-color: var(--ed-text);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
body:not(.app-mode) .founder-avatar {
  box-shadow: 0 0 0 2px var(--ed-border);
}
body:not(.app-mode) .founder-name-row h3 {
  color: var(--ed-text);
  font-family: var(--ed-serif);
  font-weight: 600;
}
body:not(.app-mode) .founder-role  { color: var(--ed-accent); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
body:not(.app-mode) .founder-bio p { color: var(--ed-text-muted); font-family: 'Source Serif Pro', Georgia, serif; font-size: 16px; line-height: 1.6; }

/* ------- partnership banner -------------------------------------------- */
body:not(.app-mode) .partnership-banner {
  background: var(--ed-surface-soft);
  border: 1px solid var(--ed-border);
  border-radius: 6px;
}
body:not(.app-mode) .partnership-banner p { color: var(--ed-text-muted); }
body:not(.app-mode) .partnership-banner strong { color: var(--ed-text); }
body:not(.app-mode) .partnership-icon {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  color: var(--ed-accent);
}

/* ------- final CTA band ------------------------------------------------- */
body:not(.app-mode) .final-cta {
  background: var(--ed-surface-soft);
  border-top: 1px solid var(--ed-border);
  border-bottom: 1px solid var(--ed-border);
}
body:not(.app-mode) .cta-content h2 {
  color: var(--ed-text);
  font-family: var(--ed-serif);
}
body:not(.app-mode) .cta-content p {
  color: var(--ed-text-muted);
  font-family: 'Source Serif Pro', Georgia, serif;
}
body:not(.app-mode) .cta-whatsapp {
  border-radius: 4px;
  box-shadow: none;
}
body:not(.app-mode) .cta-whatsapp:hover {
  box-shadow: 0 4px 14px rgba(37,211,102,0.25);
}

/* ------- interest form -------------------------------------------------- */
body:not(.app-mode) .interest-form-container {
  background: var(--ed-surface);
  border: 1px solid var(--ed-border);
  border-radius: 6px;
}
body:not(.app-mode) .interest-form-container h3 { color: var(--ed-text); font-family: var(--ed-serif); }
body:not(.app-mode) .interest-field input {
  background: #fff;
  border: 1px solid var(--ed-border);
  color: var(--ed-text);
  border-radius: 4px;
}
body:not(.app-mode) .interest-field input:focus {
  border-color: var(--ed-accent);
  outline: none;
}

/* ------- nav-links tightening — keep them on one line on desktop --------
   The dark nav hid the wrap; on cream it shows. Shrink font + gap to fit. */
body:not(.app-mode) .nav-links { gap: 22px; flex-wrap: nowrap; }
body:not(.app-mode) .nav-links a { font-size: 13.5px; white-space: nowrap; }

/* ------- "We ship" / showcase cards keep their colored chrome but use
   editorial body text below them (psc-card / ps-body) ------------------- */
body:not(.app-mode) .psc-card,
body:not(.app-mode) .ps-card {
  background: var(--ed-surface);
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  box-shadow: none;
}
body:not(.app-mode) .psc-card:hover,
body:not(.app-mode) .ps-card:hover {
  border-color: var(--ed-text);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
body:not(.app-mode) .ps-body h3 {
  color: var(--ed-text);
  font-family: var(--ed-serif);
  font-weight: 600;
}
body:not(.app-mode) .ps-body p {
  color: var(--ed-text-muted);
}
body:not(.app-mode) .ps-body .ps-cta {
  background: var(--ed-accent);
  color: #fff;
  border-radius: 4px;
  box-shadow: none;
  padding: 12px 22px;
  font-weight: 600;
}
body:not(.app-mode) .ps-body .ps-cta:hover {
  background: #7f1717;
  box-shadow: none;
  transform: none;
}
body:not(.app-mode) .ps-body .ps-cta,
body:not(.app-mode) .ps-body .ps-cta i { color: #fff; }
body:not(.app-mode) .ps-tagline strong { color: var(--ed-text); }
body:not(.app-mode) .ps-tagline { color: var(--ed-text-muted); }
body:not(.app-mode) .ps-chips li {
  background: rgba(0,0,0,0.04);
  border-color: var(--ed-border);
  color: var(--ed-text-muted);
}

/* ------- showcase: motto + free-line readable on cream ----------------- */
body:not(.app-mode) .ps-motto {
  color: var(--ed-text-faint);
  font-style: italic;
}
body:not(.app-mode) .ps-free { color: var(--ed-text-faint); }

/* ------- hero footer disclaimer (Free on signup. No card, no trial.) --- */
body:not(.app-mode) .hero-foot {
  color: var(--ed-text-muted);
  opacity: 1;
}
body:not(.app-mode) .hero-foot a {
  color: var(--ed-accent) !important;
  text-decoration: underline;
}

/* ------- defensive sweep: any leftover whitish text on cream surfaces -- */
body:not(.app-mode) .feature-card p,
body:not(.app-mode) .how-free-card p,
body:not(.app-mode) .timeline-content p,
body:not(.app-mode) .testimonial-card p,
body:not(.app-mode) .trust-text,
body:not(.app-mode) .roadmap-strip,
body:not(.app-mode) .testimonial-author small,
body:not(.app-mode) .partnership-banner p,
body:not(.app-mode) .cta-content p,
body:not(.app-mode) .interest-note {
  color: var(--ed-text-muted);
}
body:not(.app-mode) .interest-field input::placeholder { color: var(--ed-text-faint); }


/* ==================== ADMIN: USER 360 ==================== */
.u360-table th:first-child, .u360-table td:first-child { width: 28px; padding-right: 0; }
.u360-row { cursor: pointer; }
.u360-row:hover { background: #f3f0ff; }
.u360-caret { color: #9ca3af; transition: transform 0.15s; }
.u360-name { font-weight: 600; color: #1f2937; }
.u360-sub { font-size: 0.78rem; color: #6b7280; margin-top: 2px; }
.u360-num { text-align: right; font-variant-numeric: tabular-nums; }
.u360-muted { color: #9ca3af; font-size: 0.82rem; }
.u360-detail td { background: #faf9ff !important; padding: 0 !important; }
.u360-detail-box { padding: 14px 18px 18px; border-left: 3px solid #6c3ce0; }
.u360-detail-head { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.u360-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 14px;
}
@media (max-width: 720px) { .u360-detail-grid { grid-template-columns: 1fr; } }
.u360-detail-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: #6b7280; font-weight: 700; margin-bottom: 6px;
}
.u360-chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.u360-chip {
  font-size: 0.74rem; background: #eef2ff; color: #4338ca;
  padding: 2px 9px; border-radius: 999px; border: 1px solid #c7d2fe; white-space: nowrap;
}
.u360-timeline { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.u360-event {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 6px 8px; background: #fff; border: 1px solid #eee; border-radius: 8px;
}
.u360-event-site { font-size: 0.74rem; color: #6b7280; background: #f3f4f6; padding: 1px 7px; border-radius: 6px; }
.u360-event-detail { font-size: 0.78rem; color: #374151; font-family: ui-monospace, monospace; }
.u360-event-time { font-size: 0.74rem; color: #9ca3af; margin-left: auto; }
