/* ═══════════════════════════════════════════════════════════════════
   COURSEFORGE AI — DESIGN SYSTEM
   RJ Business Solutions | 2026
═══════════════════════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --sidebar-w: 260px;
  --topbar-h: 64px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* LIGHT THEME */
  --bg-base:       #f4f5f7;
  --bg-surface:    #ffffff;
  --bg-elevated:   #f8f9fb;
  --bg-sidebar:    #0f0f14;
  --border:        rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);
  --text-primary:  #0f0f14;
  --text-secondary:#5a5f6e;
  --text-muted:    #9298a8;
  --text-invert:   #ffffff;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.12);
  --accent:        #0A66FF;
  --accent-2:      #003B8F;
  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --cyan:          #06b6d4;
}

[data-theme="dark"] {
  --bg-base:       #0a0a10;
  --bg-surface:    #13131f;
  --bg-elevated:   #1a1a28;
  --bg-sidebar:    #0d0d18;
  --border:        rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);
  --text-primary:  #f0f0fa;
  --text-secondary:#9298b8;
  --text-muted:    #5a5f7a;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.3);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.5);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: width var(--transition), transform var(--transition);
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  min-height: var(--topbar-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(10,102,255,0.4);
}
.logo-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #f0f0fa;
  display: block;
  letter-spacing: -0.02em;
}
.logo-tag {
  font-size: 0.65rem;
  color: #6366f1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sidebar-toggle {
  background: none; border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  transition: color var(--transition);
}
.sidebar-toggle:hover { color: rgba(255,255,255,0.8); }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.nav-section {
  margin-bottom: 1.5rem;
}
.nav-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.2);
  padding: 0 0.5rem;
  display: block;
  margin-bottom: 0.4rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  border: none;
  background: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  position: relative;
  font-family: 'Inter', sans-serif;
}
.nav-item i { width: 18px; text-align: center; flex-shrink: 0; }
.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.15));
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.25);
}
.nav-item.active i { color: #818cf8; }

.nav-badge {
  margin-left: auto;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.usage-bar { margin-bottom: 1rem; }
.usage-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.4rem;
}
.usage-track {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}
.usage-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 99px;
  transition: width 0.5s ease;
}

.brand-footer {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.brand-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.brand-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  line-height: 1.2;
}
.brand-url {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.25);
}

/* ═══════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition);
}

/* ─── TOPBAR ─── */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.topbar-right { display: flex; align-items: center; gap: 0.75rem; }

.mobile-menu-btn {
  display: none;
  background: none; border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.page-breadcrumb i { color: var(--accent); }

.topbar-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  position: relative;
}
.topbar-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 6px; height: 6px;
  background: var(--danger);
  border-radius: 50%;
  border: 1.5px solid var(--bg-surface);
}

.topbar-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

/* ─── PAGES ─── */
.page-container { flex: 1; overflow-y: auto; }
.page {
  display: none;
  padding: 2rem;
  animation: fadeInPage 0.3s ease;
}
.page.active { display: block; }

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

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.btn-secondary:hover { background: var(--bg-surface); border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  color: var(--accent);
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}
.btn-ghost:hover { background: rgba(99,102,241,0.1); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239,68,68,0.1);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.2);
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }

/* ═══════════════════════════════════════
   DASHBOARD STATS
═══════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.2rem 0;
}
.stat-change {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-change.positive { color: var(--success); }

/* ─── SECTION HEADER ─── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ─── QUICK ACTIONS ─── */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.quick-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}
.quick-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
  background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(139,92,246,0.04));
}
.quick-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.quick-card:hover::before { opacity: 1; }

.quick-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
.quick-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}
.quick-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.quick-arrow {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: all var(--transition);
}
.quick-card:hover .quick-arrow { color: var(--accent); transform: translate(2px, -2px); }

/* ─── EMPTY STATE ─── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}
.empty-icon {
  width: 72px; height: 72px;
  background: var(--bg-elevated);
  border: 2px dashed var(--border-strong);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.empty-state h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  max-width: 360px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════
   GENERATOR PAGE
═══════════════════════════════════════ */
.generator-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.gen-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.gen-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gen-card-title i { color: var(--accent); }

/* ─── FORMS ─── */
.form-group { margin-bottom: 1.125rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-label {
  display: block;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: all var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
  background: var(--bg-surface);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239298a8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
  color-scheme: dark;
}
.form-textarea { resize: vertical; min-height: 80px; }

/* ─── COLOR PICKER ─── */
.color-picker-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.color-swatch {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px var(--bg-surface), 0 0 0 4px var(--text-primary);
}

/* ─── GENERATE OPTIONS ─── */
.generate-options {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.gen-options-title {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}
.option-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.option-check input { display: none; }
.checkmark {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.option-check input:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}
.option-check input:checked + .checkmark::after {
  content: '';
  width: 4px; height: 8px;
  border: 2px solid white;
  border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}

/* ─── GENERATE BUTTON ─── */
.btn-generate {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Syne', sans-serif;
  box-shadow: 0 6px 20px rgba(99,102,241,0.35);
  letter-spacing: 0.01em;
}
.btn-generate:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(99,102,241,0.5); }
.btn-generate:active { transform: translateY(0); }
.btn-generate:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ─── GEN OUTPUT PANEL ─── */
.gen-output-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* IDLE */
.gen-idle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}
.gen-idle-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
  border: 2px dashed rgba(99,102,241,0.3);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.gen-idle h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.gen-idle p { color: var(--text-secondary); font-size: 0.875rem; max-width: 320px; line-height: 1.7; margin-bottom: 1.5rem; }
.gen-features-list { display: flex; flex-direction: column; gap: 0.5rem; text-align: left; width: 100%; max-width: 280px; }
.gen-feature {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.825rem;
  color: var(--text-secondary);
}
.gen-feature i { color: var(--success); width: 14px; }

/* LOADING */
.gen-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}
.gen-loading-animation {
  position: relative;
  width: 80px; height: 80px;
  margin-bottom: 2rem;
}
.loading-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #6366f1;
  animation: spin 1s linear infinite;
}
.loading-ring.ring-2 { inset: 8px; border-top-color: #8b5cf6; animation-duration: 0.75s; animation-direction: reverse; }
.loading-ring.ring-3 { inset: 16px; border-top-color: #a5b4fc; animation-duration: 0.5s; }
.loading-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #6366f1;
}
@keyframes spin { to { transform: rotate(360deg); } }

.gen-loading h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; }
.loading-steps { display: flex; flex-direction: column; gap: 0.625rem; text-align: left; width: 100%; max-width: 300px; }
.loading-step {
  display: flex; align-items: center; gap: 0.625rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.loading-step.active { color: var(--accent); font-weight: 600; }
.loading-step.done { color: var(--success); }
.loading-step.done i::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }

/* RESULT */
.gen-result { flex: 1; display: flex; flex-direction: column; }
.result-success-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(99,102,241,0.06));
}
.result-success-icon {
  width: 44px; height: 44px;
  background: var(--success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.125rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}
.result-success-header h2 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; }
.result-success-header p { font-size: 0.825rem; color: var(--text-secondary); }

.result-tabs {
  display: flex;
  padding: 0 1.75rem;
  border-bottom: 1px solid var(--border);
  gap: 0;
  overflow-x: auto;
}
.result-tab {
  padding: 0.875rem 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.result-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.result-tab:hover { color: var(--text-primary); }

.result-content { flex: 1; padding: 1.75rem; overflow-y: auto; }
.result-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  flex-wrap: wrap;
}

/* ─── RESULT TAB CONTENT ─── */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.overview-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.overview-card-val {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}
.overview-card-lbl { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.25rem; }

.module-list { display: flex; flex-direction: column; gap: 0.75rem; }
.module-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
}
.module-item:hover { border-color: var(--accent); }
.module-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.module-number {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.module-title { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.module-lessons { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.5rem; }
.lesson-tag {
  background: rgba(99,102,241,0.1);
  color: var(--accent);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 500;
}

.sales-preview, .landing-preview, .email-preview {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.preview-section { margin-bottom: 1.25rem; }
.preview-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}
.preview-section h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}
.preview-section p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

.email-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.875rem;
  margin-bottom: 0.625rem;
}
.email-item-day { font-size: 0.65rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.email-item-subject { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); margin: 0.2rem 0; }
.email-item-preview { font-size: 0.775rem; color: var(--text-secondary); line-height: 1.5; }

/* ═══════════════════════════════════════
   COURSES PAGE
═══════════════════════════════════════ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.875rem;
  flex: 1;
  min-width: 200px;
}
.search-box i { color: var(--text-muted); font-size: 0.875rem; }
.search-input {
  border: none;
  background: none;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  outline: none;
  width: 100%;
}
.search-input::placeholder { color: var(--text-muted); }

.filter-tabs { display: flex; gap: 0.375rem; }
.filter-tab {
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}
.filter-tab.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-color: transparent;
}
.filter-tab:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.course-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--border-strong); }

.course-card-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.course-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
}
.course-card-status {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}
.status-Published { background: rgba(16,185,129,0.9); color: white; }
.status-Draft { background: rgba(245,158,11,0.9); color: white; }
.status-Archived { background: rgba(107,114,128,0.9); color: white; }

.course-card-body { padding: 1.25rem; }
.course-card-category {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.375rem;
}
.course-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.course-card-meta {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 1rem;
}
.course-card-meta span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.course-card-price {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}
.course-card-price-original {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 0.375rem;
  font-weight: 400;
}

.course-card-footer {
  display: flex;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

/* ═══════════════════════════════════════
   CONTENT EDITOR
═══════════════════════════════════════ */
.editor-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.editor-placeholder {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.editor-placeholder i { font-size: 3rem; color: var(--text-muted); margin-bottom: 1rem; }
.editor-placeholder h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.editor-placeholder p { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 1.5rem; max-width: 320px; }

/* MODULE TREE */
.module-tree {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.module-tree-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-family: 'Syne', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.module-tree-item {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.825rem;
}
.module-tree-item:hover { background: var(--bg-elevated); }
.module-tree-item.active { background: rgba(99,102,241,0.1); border-left: 3px solid var(--accent); color: var(--accent); font-weight: 600; }
.module-tree-lesson {
  padding: 0.5rem 1.25rem 0.5rem 2.5rem;
  font-size: 0.775rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: all var(--transition);
}
.module-tree-lesson:hover { background: var(--bg-elevated); color: var(--text-primary); }
.module-tree-lesson.active { color: var(--accent); font-weight: 600; }

/* LESSON EDITOR */
.lesson-editor {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.lesson-editor-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.lesson-editor-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.lesson-editor-body { padding: 1.5rem; }
.rich-editor {
  min-height: 300px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-primary);
  outline: none;
  font-family: 'Inter', sans-serif;
}
.rich-editor:focus { border-color: var(--accent); }

/* ═══════════════════════════════════════
   QUIZ BUILDER
═══════════════════════════════════════ */
.quiz-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
}
.quiz-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.quiz-main { display: flex; flex-direction: column; gap: 1rem; }

.question-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all var(--transition);
}
.question-card:hover { border-color: var(--border-strong); }
.question-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.question-num { font-size: 0.7rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.question-type-badge {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
  background: rgba(99,102,241,0.12);
  color: var(--accent);
}
.question-text {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 1rem;
  width: 100%;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  resize: none;
  outline: none;
}
.answers-list { display: flex; flex-direction: column; gap: 0.5rem; }
.answer-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.answer-radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition);
}
.answer-radio.correct { border-color: var(--success); background: var(--success); }
.answer-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.825rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all var(--transition);
}
.answer-input:focus { border-color: var(--accent); }
.answer-input.correct-answer { border-color: var(--success); background: rgba(16,185,129,0.06); }

/* ═══════════════════════════════════════
   SALES & LANDING PAGE BUILDERS
═══════════════════════════════════════ */
.page-builder-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.builder-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
.builder-panel-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 10;
}
.builder-section { padding: 1.25rem; border-bottom: 1px solid var(--border); }
.builder-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.875rem;
}

.page-preview-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 600px;
}
.preview-frame-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.preview-dots { display: flex; gap: 0.375rem; }
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot:nth-child(1) { background: #ef4444; }
.preview-dot:nth-child(2) { background: #f59e0b; }
.preview-dot:nth-child(3) { background: #10b981; }
.preview-url {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.preview-actions { display: flex; gap: 0.5rem; }

.sales-page-content, .landing-page-content { padding: 0; }

/* ═══════════════════════════════════════
   GENERATED PAGE PREVIEWS
═══════════════════════════════════════ */
.sp-hero {
  padding: 4rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sp-hero::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.08;
  background: radial-gradient(ellipse at 50% 0%, currentColor 0%, transparent 70%);
}
.sp-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 1.25rem;
  background: rgba(255,255,255,0.1);
}
.sp-headline {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.sp-sub { font-size: 1rem; opacity: 0.85; max-width: 560px; margin: 0 auto 2rem; line-height: 1.7; }
.sp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
}
.sp-section { padding: 3rem 2.5rem; border-top: 1px solid rgba(0,0,0,0.06); }
[data-theme="dark"] .sp-section { border-top-color: rgba(255,255,255,0.05); }
.sp-section-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.sp-section-sub { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; max-width: 580px; margin-bottom: 1.5rem; }
.outcomes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.875rem; }
.outcome-item {
  display: flex; align-items: flex-start; gap: 0.625rem;
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5;
}
.outcome-item i { color: var(--success); margin-top: 2px; flex-shrink: 0; }
.pricing-box {
  background: var(--bg-elevated);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 400px;
  text-align: center;
}

/* ═══════════════════════════════════════
   PREVIEW PAGE
═══════════════════════════════════════ */
.preview-course-selector {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.preview-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.preview-tab-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}
.preview-tab-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-color: transparent;
}
.preview-iframe-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.export-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.export-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}
.export-btn:hover { border-color: var(--accent); background: rgba(99,102,241,0.06); }
.export-btn i { font-size: 1.5rem; color: var(--accent); }
.export-btn span { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.export-btn small { font-size: 0.7rem; color: var(--text-muted); }

/* ═══════════════════════════════════════
   COURSES LIST (dashboard)
═══════════════════════════════════════ */
.courses-list { display: flex; flex-direction: column; gap: 0.75rem; }
.course-list-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
}
.course-list-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.course-list-thumb {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.course-list-info { flex: 1; min-width: 0; }
.course-list-title { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-list-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }
.course-list-price { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 800; color: var(--text-primary); flex-shrink: 0; }
.course-list-status { flex-shrink: 0; }

/* ═══════════════════════════════════════
   TOAST NOTIFICATIONS
═══════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 360px;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  animation: slideInToast 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-left: 3px solid var(--accent);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast-icon { font-size: 1rem; margin-top: 1px; color: var(--accent); }
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast-content { flex: 1; }
.toast-title { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.toast-msg { font-size: 0.775rem; color: var(--text-secondary); margin-top: 0.15rem; }
@keyframes slideInToast {
  from { opacity: 0; transform: translateX(100%) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes slideOutToast {
  to { opacity: 0; transform: translateX(100%); }
}

/* ═══════════════════════════════════════
   MODAL
═══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeInOverlay 0.2s ease;
}
.modal-overlay.hidden { display: none; }
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideInModal 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}
@keyframes slideInModal { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--danger); color: white; }
.modal-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════
   UTILITIES
═══════════════════════════════════════ */
.hidden { display: none !important; }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}
.tag-blue { background: rgba(99,102,241,0.12); color: #818cf8; }
.tag-green { background: rgba(16,185,129,0.12); color: #34d399; }
.tag-amber { background: rgba(245,158,11,0.12); color: #fbbf24; }

/* GRADIENT THEMES */
.theme-purple { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
.theme-cyan { background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%); }
.theme-fire { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }
.theme-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.theme-pink { background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%); }
.theme-gold { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

/* ═══════════════════════════════════════
   RICH COURSE CONTENT DISPLAY STYLES
═══════════════════════════════════════ */

/* ─── RESULT OVERVIEW ─── */
.result-overview { display: flex; flex-direction: column; gap: 1.5rem; }

.result-course-header {
  padding: 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  color: white;
}
.result-course-emoji { font-size: 3rem; flex-shrink: 0; }
.result-course-title { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; color: white; margin-bottom: 0.4rem; }
.result-course-subtitle { font-size: 0.9rem; opacity: 0.85; margin-bottom: 0.8rem; }
.result-course-meta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.8rem; opacity: 0.9; }
.result-course-meta-row span { display: flex; align-items: center; gap: 0.3rem; background: rgba(255,255,255,0.15); padding: 3px 10px; border-radius: 20px; }

.result-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.result-stat { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; text-align: center; }
.result-stat-num { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; }
.result-stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

.result-section { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.result-section-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.result-desc-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1rem; }
.result-meta-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.meta-pill { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; font-size: 0.8rem; color: var(--text-secondary); }

.instructor-card { display: flex; gap: 1rem; align-items: flex-start; }
.instructor-avatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; color: white; flex-shrink: 0; }
.instructor-info h4 { font-weight: 700; margin-bottom: 0.4rem; }
.instructor-info p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

.outcomes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.outcome-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.875rem; line-height: 1.5; }
.outcome-item i { flex-shrink: 0; margin-top: 2px; }

.requirements-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.requirements-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.875rem; color: var(--text-secondary); }
.requirements-list li i { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.curriculum-summary { display: flex; flex-direction: column; gap: 0.75rem; }
.curriculum-mod { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.curriculum-mod-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.curriculum-mod-num { color: white; padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; white-space: nowrap; }
.curriculum-mod-title { font-weight: 700; font-size: 0.9rem; flex: 1; }
.curriculum-mod-count { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.curriculum-mod-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }

.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q { width: 100%; background: var(--bg-elevated); border: none; padding: 0.85rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--text-primary); text-align: left; }
.faq-q:hover { background: var(--border); }
.faq-a { padding: 0.85rem 1rem; background: var(--bg-surface); }
.faq-a p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }
.acc-icon { transition: transform 0.25s ease; flex-shrink: 0; }

.generated-checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.gen-check-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; color: var(--text-secondary); }
.gen-check-item i { flex-shrink: 0; margin-top: 2px; }

/* ─── MODULES FULL VIEW ─── */
.modules-full-view { display: flex; flex-direction: column; gap: 1.5rem; }
.modules-header-bar { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; }
.modules-header-bar h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.modules-header-bar p { font-size: 0.85rem; color: var(--text-secondary); }

.module-full-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.module-full-header { padding: 1.5rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; color: white; }
.module-full-header-left { display: flex; align-items: flex-start; gap: 1rem; flex: 1; }
.module-badge { background: rgba(255,255,255,0.25); padding: 3px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; flex-shrink: 0; margin-top: 4px; }
.module-full-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 0.35rem; }
.module-full-desc { font-size: 0.82rem; opacity: 0.9; line-height: 1.5; }
.module-full-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; font-size: 0.78rem; opacity: 0.9; white-space: nowrap; flex-shrink: 0; }
.module-full-header-right span { display: flex; align-items: center; gap: 0.3rem; }

.module-objective { padding: 0.85rem 1.25rem; background: var(--bg-elevated); border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
.module-objective i { color: var(--warning); margin-right: 0.4rem; }

.lessons-list { display: flex; flex-direction: column; }
.lesson-full-item { border-bottom: 1px solid var(--border); }
.lesson-full-item:last-child { border-bottom: none; }

.lesson-toggle { width: 100%; background: none; border: none; padding: 0.85rem 1.25rem; display: flex; align-items: center; justify-content: space-between; cursor: pointer; color: var(--text-primary); gap: 1rem; }
.lesson-toggle:hover { background: var(--bg-elevated); }
.lesson-toggle-left { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; }
.lesson-toggle-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.lesson-title-text { font-size: 0.875rem; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson-duration { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.25rem; }

.lesson-type-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 2px 8px; border-radius: 8px; font-size: 0.68rem; font-weight: 700; flex-shrink: 0; }
.lesson-type-video { background: rgba(99,102,241,0.12); color: #818cf8; }
.lesson-type-exercise { background: rgba(245,158,11,0.12); color: #fbbf24; }
.lesson-type-case-study { background: rgba(6,182,212,0.12); color: #22d3ee; }
.lesson-type-resource { background: rgba(16,185,129,0.12); color: #34d399; }

.lesson-full-body { padding: 1.25rem; background: var(--bg-elevated); display: flex; flex-direction: column; gap: 1rem; }

.lesson-content-block h5,
.lesson-keypoints h5,
.lesson-exercise h5 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.4rem; }
.lesson-content-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.8; }
.lesson-content-text p { margin-bottom: 0.75rem; }
.lesson-content-text p:last-child { margin-bottom: 0; }

.lesson-keypoints ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.lesson-keypoints li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.83rem; color: var(--text-secondary); }
.lesson-keypoints li i { color: var(--success); flex-shrink: 0; margin-top: 2px; font-size: 0.75rem; }

.lesson-exercise { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); border-radius: var(--radius); padding: 0.85rem 1rem; }
.lesson-exercise p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

/* ─── MODULE QUIZ ─── */
.module-quiz-section { border-top: 2px solid var(--border); padding: 1.25rem; background: var(--bg-elevated); }
.quiz-section-title { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; display: flex; align-items: center; gap: 0.5rem; }
.quiz-section-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }

.quiz-questions-list { display: flex; flex-direction: column; gap: 1.25rem; }
.quiz-q-item { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.quiz-q-text { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; line-height: 1.5; }
.quiz-options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-bottom: 0.75rem; }
.quiz-option { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.75rem; border-radius: var(--radius); border: 1px solid var(--border); font-size: 0.8rem; color: var(--text-secondary); background: var(--bg-elevated); }
.quiz-option.correct-option { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: var(--success); font-weight: 600; }
.quiz-option.correct-option i { margin-left: auto; font-size: 0.8rem; }
.opt-letter { width: 22px; height: 22px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }
.correct-option .opt-letter { background: var(--success); color: white; }
.quiz-explanation { background: rgba(99,102,241,0.08); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 0.65rem 0.85rem; font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }
.quiz-explanation i { color: var(--warning); margin-right: 0.4rem; }

/* ─── SALES PAGE FULL VIEW ─── */
.sales-full-view { display: flex; flex-direction: column; gap: 1.5rem; }
.sales-preview-bar { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.sales-preview-bar h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.sales-preview-bar p { font-size: 0.83rem; color: var(--text-muted); }

.sp-section { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.sp-hero { color: white; border-color: transparent; }
.sp-hero-content { max-width: 800px; margin: 0 auto; text-align: center; }
.sp-headline { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; line-height: 1.3; color: white; margin-bottom: 1rem; }
.sp-subheadline { font-size: 1rem; opacity: 0.9; line-height: 1.7; margin-bottom: 1.5rem; }
.sp-cta-row { margin-bottom: 1rem; }
.sp-cta-btn { background: white; border: none; border-radius: 50px; padding: 0.85rem 2.5rem; font-size: 1rem; font-weight: 700; cursor: pointer; }
.sp-proof-line { font-size: 0.85rem; opacity: 0.8; }

.sp-section-h { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; margin-bottom: 1.25rem; text-align: center; }
.sp-pain-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.sp-pain-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; color: var(--text-secondary); }
.sp-pain-list li i { color: var(--danger); flex-shrink: 0; margin-top: 2px; }
.sp-agitation { background: var(--bg-elevated); border-left: 4px solid var(--danger); border-radius: var(--radius); padding: 1rem 1.25rem; position: relative; }
.sp-agitation i { color: var(--danger); font-size: 1.2rem; opacity: 0.4; margin-bottom: 0.5rem; display: block; }
.sp-agitation p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

.sp-solution-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.25rem; text-align: center; }
.sp-differentiators { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.sp-diff-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; color: var(--text-secondary); }

.sp-modules-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.sp-mod-item { display: flex; align-items: flex-start; gap: 1rem; background: var(--bg-elevated); border-radius: var(--radius); padding: 0.9rem 1rem; }
.sp-mod-num { color: white; padding: 4px 12px; border-radius: 8px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.sp-mod-info h4 { font-weight: 700; font-size: 0.875rem; margin-bottom: 0.25rem; }
.sp-mod-info p { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.25rem; }
.sp-mod-info span { font-size: 0.72rem; color: var(--text-muted); }

.sp-outcomes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.sp-outcome { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.875rem; color: var(--text-secondary); }

.sp-instructor-box { display: flex; gap: 1.5rem; align-items: flex-start; }
.sp-instructor-avatar { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem; color: white; flex-shrink: 0; }
.sp-instructor-content h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.sp-instructor-content p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.75rem; }
.sp-credentials { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.sp-credentials li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-secondary); }

.sp-pricing { color: white; border-color: transparent; }
.sp-pricing-h { color: white; }
.sp-price-box { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border-radius: var(--radius-lg); padding: 2rem; max-width: 500px; margin: 0 auto; text-align: center; }
.sp-price-original { text-decoration: line-through; opacity: 0.6; font-size: 1.1rem; }
.sp-price-current { font-family: 'Syne', sans-serif; font-size: 3rem; font-weight: 800; color: white; }
.sp-price-savings { background: rgba(16,185,129,0.2); border: 1px solid rgba(16,185,129,0.4); color: #34d399; padding: 4px 16px; border-radius: 20px; display: inline-block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.75rem; }
.sp-price-note { opacity: 0.8; font-size: 0.85rem; margin-bottom: 1rem; }
.sp-includes-list { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.5rem; text-align: left; }
.sp-include { font-size: 0.85rem; opacity: 0.9; }
.sp-enroll-btn { background: white; border: none; border-radius: 50px; padding: 1rem 2.5rem; font-size: 1rem; font-weight: 700; cursor: pointer; width: 100%; margin-bottom: 0.75rem; }
.sp-guarantee { font-size: 0.8rem; opacity: 0.75; }

.sp-urgency-calc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; text-align: center; background: var(--bg-elevated); border-radius: var(--radius); padding: 1rem; border-left: 4px solid var(--warning); }

.sp-final-cta { color: white; border-color: transparent; text-align: center; }
.sp-final-sub { opacity: 0.88; font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ─── LANDING PAGE FULL VIEW ─── */
.landing-full-view { display: flex; flex-direction: column; gap: 1.5rem; }
.landing-preview-bar { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; }
.landing-preview-bar h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.landing-preview-bar p { font-size: 0.83rem; color: var(--text-muted); }

.lp-section { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.lp-hero { color: white; border-color: transparent; text-align: center; }
.lp-headline { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; color: white; line-height: 1.3; margin-bottom: 1rem; }
.lp-subheadline { font-size: 0.95rem; opacity: 0.88; line-height: 1.7; }

.lp-magnet h2 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.lp-magnet-items { display: flex; flex-direction: column; gap: 0.6rem; }
.lp-magnet-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.875rem; color: var(--text-secondary); }

.lp-learn h2 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.lp-learn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.lp-learn-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; color: var(--text-secondary); }

.lp-who h2 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.lp-who-list { display: flex; flex-direction: column; gap: 0.6rem; }
.lp-who-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.875rem; color: var(--text-secondary); }

.lp-instructor-intro h2 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.lp-instructor-intro p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

.lp-form { color: white; border-color: transparent; text-align: center; }
.lp-form-h { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; color: white; margin-bottom: 1.5rem; }
.lp-form-mock { max-width: 420px; margin: 0 auto; }
.lp-form-fields { display: flex; flex-direction: column; gap: 0.75rem; }
.lp-form-input { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius); padding: 0.85rem 1rem; color: white; font-size: 0.9rem; width: 100%; }
.lp-form-input::placeholder { color: rgba(255,255,255,0.6); }
.lp-form-btn { background: white; border: none; border-radius: 50px; padding: 1rem 2rem; font-size: 0.95rem; font-weight: 700; cursor: pointer; width: 100%; margin-top: 0.25rem; }
.lp-form-note { font-size: 0.8rem; opacity: 0.7; margin-top: 0.75rem; }

.lp-urgency { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.2); }
.lp-urgency-text { font-size: 0.875rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.5rem; }
.lp-proof { text-align: center; background: var(--bg-elevated); }
.lp-proof p { font-size: 0.875rem; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; gap: 0.5rem; }

/* ─── EMAIL FULL VIEW ─── */
.emails-full-view { display: flex; flex-direction: column; gap: 1.25rem; }
.emails-header-bar { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; }
.emails-header-bar h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.emails-header-bar p { font-size: 0.83rem; color: var(--text-muted); }

.email-full-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.email-header { padding: 1.25rem 1.5rem; }
.email-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem; }
.email-num { color: white; padding: 3px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.email-day { font-size: 0.78rem; color: var(--text-muted); background: var(--bg-elevated); padding: 3px 10px; border-radius: 20px; }
.email-subject-block { margin-bottom: 1rem; }
.email-subject-label, .email-preview-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.25rem; }
.email-subject-text { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.6rem; }
.email-preview-text { font-size: 0.82rem; color: var(--text-secondary); }

.email-toggle { width: 100%; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.65rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; cursor: pointer; font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.email-toggle:hover { background: var(--border); }
.email-body-full { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg-elevated); }
.email-body-content { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.8; white-space: pre-wrap; }

/* ═══════════════════════════════════════
   PREVIEW PAGE STYLES
═══════════════════════════════════════ */
.preview-wrapper { display: flex; flex-direction: column; gap: 0; }
.preview-hero {
  padding: 2.5rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  color: white;
}
.preview-hero-inner { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.preview-hero-emoji { font-size: 4rem; flex-shrink: 0; }
.preview-hero-text { flex: 1; min-width: 0; }
.preview-hero-cat { font-size: 0.8rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.preview-hero-title { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; color: white; margin-bottom: 0.5rem; line-height: 1.2; }
.preview-hero-subtitle { opacity: 0.85; font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.preview-hero-stats { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.8rem; }
.preview-hero-stats span { background: rgba(255,255,255,0.15); padding: 3px 12px; border-radius: 20px; display: flex; align-items: center; gap: 0.3rem; }
.preview-hero-price-box { background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; flex-shrink: 0; min-width: 200px; }
.preview-orig-price { text-decoration: line-through; opacity: 0.6; font-size: 0.9rem; }
.preview-price { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800; color: white; }
.preview-enroll-btn { width: 100%; background: white; border: none; border-radius: 50px; padding: 0.75rem; font-size: 0.9rem; font-weight: 700; cursor: pointer; margin: 0.75rem 0 0.4rem; }
.preview-guarantee { font-size: 0.75rem; opacity: 0.75; display: flex; align-items: center; justify-content: center; gap: 0.3rem; }

.preview-tabs-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: none;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.preview-view-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition);
}
.preview-view-tab:hover { color: var(--text-primary); }
.preview-view-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.preview-tab-spacer { flex: 1; }
.preview-export-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.preview-content-area { background: var(--bg-base); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius-xl) var(--radius-xl); padding: 1.5rem; }

.preview-empty { text-align: center; padding: 4rem 2rem; }

/* Preview curriculum */
.prev-curriculum { display: flex; flex-direction: column; gap: 1.25rem; }
.prev-stats-banner { display: flex; gap: 1.5rem; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 2rem; flex-wrap: wrap; justify-content: center; }
.prev-stat { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.prev-stat i { font-size: 1.1rem; }
.prev-stat span { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; }
.prev-stat small { font-size: 0.72rem; color: var(--text-muted); }

.prev-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.prev-card-h { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.prev-card-body { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.8; }
.prev-card-goal { margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 0.5rem; }

.prev-outcomes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
.prev-outcome-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.prev-outcome-item i { flex-shrink: 0; margin-top: 2px; }

.prev-requirements { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.prev-requirements li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; color: var(--text-secondary); }
.prev-requirements li i { flex-shrink: 0; margin-top: 2px; }

.prev-modules-list { display: flex; flex-direction: column; gap: 0.75rem; }
.prev-module { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.prev-module-header {
  width: 100%; background: var(--bg-elevated); border: none; padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer; text-align: left;
}
.prev-module-header:hover { background: var(--border); }
.prev-mod-header-left { display: flex; align-items: flex-start; gap: 0.75rem; flex: 1; min-width: 0; }
.prev-mod-badge { color: white; padding: 3px 10px; border-radius: 8px; font-size: 0.7rem; font-weight: 700; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.prev-mod-title { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); margin-bottom: 0.2rem; }
.prev-mod-desc { font-size: 0.78rem; color: var(--text-secondary); }
.prev-mod-header-right { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; }

.prev-module-body { background: var(--bg-surface); }
.prev-mod-objective { padding: 0.75rem 1.25rem; background: var(--bg-elevated); border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--text-secondary); display: flex; gap: 0.4rem; }
.prev-mod-objective i { color: var(--warning); flex-shrink: 0; }

.prev-lessons { display: flex; flex-direction: column; }
.prev-lesson-row { border-bottom: 1px solid var(--border); }
.prev-lesson-row:last-child { border-bottom: none; }
.prev-lesson-toggle { width: 100%; background: none; border: none; padding: 0.75rem 1.25rem; display: flex; align-items: center; justify-content: space-between; cursor: pointer; gap: 1rem; }
.prev-lesson-toggle:hover { background: var(--bg-elevated); }
.prev-lesson-left { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; }
.prev-lesson-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; font-size: 0.75rem; color: var(--text-muted); }
.prev-lesson-icon { font-size: 0.9rem; flex-shrink: 0; }
.prev-lesson-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prev-lesson-type { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 8px; padding: 2px 8px; font-size: 0.68rem; font-weight: 600; }
.prev-lesson-dur { white-space: nowrap; }

.prev-lesson-content { padding: 1.25rem; background: var(--bg-elevated); display: flex; flex-direction: column; gap: 1rem; }
.prev-lesson-script-label, .prev-kp-label, .prev-ex-label { font-size: 0.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.prev-lesson-script-body { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.8; }
.prev-lesson-script-body p { margin-bottom: 0.6rem; }
.prev-lesson-kp ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.prev-lesson-kp li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.82rem; color: var(--text-secondary); }
.prev-lesson-kp li i { color: var(--success); flex-shrink: 0; margin-top: 2px; font-size: 0.72rem; }
.prev-lesson-exercise { background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.2); border-radius: var(--radius); padding: 0.85rem; }
.prev-lesson-exercise p { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.7; }

.prev-quiz-section { border-top: 2px solid var(--border); }
.prev-quiz-header { padding: 1rem 1.25rem; display: flex; gap: 0.75rem; align-items: center; color: white; }
.prev-quiz-title { font-weight: 700; font-size: 0.9rem; }
.prev-quiz-meta { font-size: 0.78rem; opacity: 0.85; }
.prev-quiz-questions { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.prev-quiz-q { display: flex; gap: 0.75rem; }
.prev-q-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.prev-q-body { flex: 1; }
.prev-q-text { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.65rem; line-height: 1.5; }
.prev-q-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; margin-bottom: 0.65rem; }
.prev-q-opt { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.7rem; border-radius: var(--radius); border: 1px solid var(--border); font-size: 0.78rem; background: var(--bg-elevated); color: var(--text-secondary); }
.prev-q-opt.correct { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: var(--success); font-weight: 600; }
.prev-q-opt.correct i { margin-left: auto; font-size: 0.78rem; }
.prev-opt-letter { width: 20px; height: 20px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; flex-shrink: 0; }
.correct .prev-opt-letter { background: var(--success); color: white; }
.prev-q-explanation { background: rgba(99,102,241,0.07); border-left: 3px solid var(--accent); padding: 0.55rem 0.75rem; font-size: 0.78rem; color: var(--text-secondary); border-radius: 0 var(--radius) var(--radius) 0; }
.prev-q-explanation i { color: var(--warning); margin-right: 0.35rem; }

.prev-testimonials { display: flex; flex-direction: column; gap: 1rem; }
.prev-testimonial { display: flex; gap: 1rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.25rem; }
.prev-testi-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; color: white; flex-shrink: 0; }
.prev-testi-body { flex: 1; }
.prev-stars { font-size: 0.8rem; margin-bottom: 0.4rem; }
.prev-testi-body p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.4rem; }
.prev-testi-meta { font-size: 0.78rem; color: var(--text-muted); }

.prev-faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.prev-faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.prev-faq-q { width: 100%; background: var(--bg-elevated); border: none; padding: 0.85rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--text-primary); text-align: left; }
.prev-faq-q:hover { background: var(--border); }
.prev-faq-a { padding: 0.85rem 1rem; }
.prev-faq-a p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

.prev-instructor { display: flex; gap: 1rem; align-items: flex-start; }
.prev-instructor-avatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; color: white; flex-shrink: 0; }
.prev-instructor h4 { font-weight: 700; margin-bottom: 0.4rem; }
.prev-instructor p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

/* Preview sales/landing */
.prev-sp-note { background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.2); border-radius: var(--radius); padding: 0.65rem 1rem; font-size: 0.82rem; color: var(--accent); margin-bottom: 1rem; }
.prev-sales-page, .prev-landing-page, .prev-emails { display: flex; flex-direction: column; gap: 1.25rem; }
.prev-sp-hero { padding: 2.5rem 2rem; border-radius: var(--radius-lg); text-align: center; color: white; }
.prev-sp-hero h1 { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; color: white; margin-bottom: 0.75rem; line-height: 1.3; }
.prev-sp-hero p { opacity: 0.88; font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.25rem; }
.prev-sp-hero button { background: white; border: none; border-radius: 50px; padding: 0.85rem 2.5rem; font-size: 0.95rem; font-weight: 700; cursor: pointer; }
.prev-sp-section { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem 2rem; }
.prev-sp-section h2 { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; }
.prev-sp-section ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.prev-sp-section li { font-size: 0.875rem; color: var(--text-secondary); }
.prev-sp-section blockquote { background: var(--bg-elevated); border-left: 4px solid var(--danger); border-radius: var(--radius); padding: 1rem; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; margin-top: 1rem; }
.prev-sp-diffs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.prev-sp-diffs div { font-size: 0.85rem; color: var(--text-secondary); }
.prev-sp-outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.prev-sp-outcomes div { font-size: 0.85rem; color: var(--text-secondary); }
.prev-sp-pricing { color: white; border-color: transparent; text-align: center; }
.prev-sp-price-box { background: rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 2rem; max-width: 400px; margin: 0 auto; }
.prev-sp-original { text-decoration: line-through; opacity: 0.6; font-size: 1rem; color: white; }
.prev-sp-current { font-family: 'Syne', sans-serif; font-size: 3rem; font-weight: 800; color: white; margin-bottom: 1rem; }
.prev-sp-cta-btn { background: white; border: none; border-radius: 50px; padding: 0.9rem 2.5rem; font-size: 0.95rem; font-weight: 700; cursor: pointer; width: 100%; margin-top: 1.25rem; }
.prev-sp-final { text-align: center; border-color: transparent; }

.prev-lp-hero { padding: 2.5rem 2rem; border-radius: var(--radius-lg); text-align: center; color: white; }
.prev-lp-hero h1 { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; color: white; margin-bottom: 0.75rem; line-height: 1.3; }
.prev-lp-hero p { opacity: 0.88; font-size: 0.9rem; line-height: 1.7; }
.prev-lp-form { max-width: 360px; margin: 1.25rem auto 0; display: flex; flex-direction: column; gap: 0.75rem; }
.prev-lp-field { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius); padding: 0.85rem 1rem; color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.prev-lp-cta-btn { border-radius: 50px; padding: 1rem; font-size: 0.95rem; font-weight: 700; text-align: center; }

/* Emails */
.prev-email-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.prev-email-header { padding: 1.25rem 1.5rem; }
.prev-email-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.prev-email-num { color: white; padding: 3px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.prev-email-day { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; font-size: 0.75rem; color: var(--text-muted); }
.prev-email-subject { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; }
.prev-email-preview { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.85rem; }
.prev-email-toggle { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem 1rem; font-size: 0.82rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; }
.prev-email-toggle:hover { background: var(--border); }
.prev-email-body { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); background: var(--bg-elevated); }
.prev-email-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.8; white-space: pre-wrap; font-family: 'Inter', sans-serif; }

.prev-placeholder { text-align: center; padding: 3rem 2rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; color: var(--text-muted); }
.prev-placeholder i { font-size: 2.5rem; opacity: 0.3; }
.prev-placeholder p { font-size: 0.9rem; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1200px) {
  .generator-layout { grid-template-columns: 360px 1fr; }
  .page-builder-layout { grid-template-columns: 300px 1fr; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-260px); width: 260px; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .mobile-menu-btn { display: flex; }
  .generator-layout { grid-template-columns: 1fr; }
  .editor-layout { grid-template-columns: 1fr; }
  .quiz-layout { grid-template-columns: 1fr; }
  .page-builder-layout { grid-template-columns: 1fr; }
  .page { padding: 1.25rem; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .quick-actions-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .options-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .courses-grid { grid-template-columns: 1fr; }
  .result-tabs { padding: 0 1rem; }
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.5); }

/* SELECTION */
::selection { background: rgba(99,102,241,0.25); color: var(--text-primary); }
