/* ══════════════════════════════════════════════
   NotesGPT — Design System & Styles
   ══════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000000;
  --bg-card: rgba(18, 18, 18, 0.7);
  --bg-card-hover: rgba(30, 30, 30, 0.85);
  --border: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(255, 255, 255, 0.4);
  --text: #F4F4F5;
  --text-muted: #A1A1AA;
  --text-heading: #FFFFFF;
  --accent: #FFFFFF;
  --accent-light: #E4E4E7;
  --accent-glow: rgba(255, 255, 255, 0.2);
  --success: #FFFFFF;
  --warning: #FFFFFF;
  --error: #FFFFFF;
  --radius: 20px;
  --radius-sm: 12px;
  --font: "Space Grotesk", sans-serif;
  --transition: 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.landing {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
}

.landing h1, 
.landing h2, 
.landing h3, 
.landing h4, 
.landing h5, 
.landing h6 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ── Legendary Neural Canvas (3D Math Matrix) ── */
.neural-matrix {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: #000000;
  contain: strict; /* Prevent canvas from triggering layout/paint for other elements */
  will-change: contents;
}

/* ── Marquee & Overlay — disabled for performance ── */
.marquee-container { display: none; }
.bg-gradient-fade { display: none; }

/* ── Universal App Header ─────────────────── */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 40px;
  justify-content: space-between;
  transition: transform 0.3s ease, background 0.3s ease;
}

.app-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.app-logo-img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}



.app-header__nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.app-header__link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
}

.app-header__link:hover {
  color: var(--text-heading);
}

.app-header__link.active {
  color: var(--text-heading);
}

.app-header__link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
}

.app-header__cta {
  background: #FFFFFF;
  color: #000000;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.app-header--scrolled {
  background: rgba(0, 0, 0, 0.8);
  height: 70px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ── Content Reveal Animations ────────────── */
.js-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

@media (max-width: 768px) {
  .app-header {
    padding: 0 16px;
    height: 60px;
  }

  .app-header__nav {
    display: none !important;
  }
  .header-auth-container {
    display: flex;
    gap: 16px;
    align-items: center;
  }
  .container {
    padding-top: 80px;
  }
}


/* ── Cinematic Film Grain — reduced opacity, no mix-blend-mode for perf ── */
.noise-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.02;
}

/* ── Container ─────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 20px 60px; /* Increased to yield for fixed app-header */
}

/* ── Hero ───────────────────────────────────── */
.hero {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.logo__icon { 
  font-size: 2.4rem;
  filter: drop-shadow(0 4px 12px var(--accent-glow));
}

.logo__text {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text-heading);
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.accent {
  color: #FFFFFF;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.hero__tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto;
  font-weight: 500;
}

/* ── Flow Stepper (New) ───────────────────── */
.flow-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  max-width: 100%;
  overflow-x: auto;
  padding: 10px 0;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: all var(--transition);
  cursor: pointer;
  user-select: none;
}

.flow-step:hover {
  opacity: 0.9;
  transform: scale(1.08);
}

.flow-step:hover .flow-step__icon {
  box-shadow: 0 0 12px var(--accent-glow);
  background: rgba(124, 58, 237, 0.35);
}

.flow-step:active {
  transform: scale(0.96);
}

.flow-step--active {
  opacity: 1;
}

.flow-step--active .flow-step__icon {
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  color: #fff;
}

.flow-step--completed {
  opacity: 0.8;
}

.flow-step--completed .flow-step__icon {
  background: var(--success);
  color: #fff;
}

.flow-step__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255,255,255,0.1);
  color: var(--text-muted);
}

.flow-step__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flow-divider {
  width: 32px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin: 0 12px;
  border-radius: 1px;
}

/* ── Cards (Glass + 3D) ────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fadeUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) both;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  opacity: 0.5;
}

.card:hover { 
  transform: translateY(-2px);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card--input { animation-delay: 0.1s; z-index: 10; }
.card--loading { text-align: center; padding: 56px 32px; }
.card--output { margin-top: 24px; animation-delay: 0s; }
.card--flashcards { margin-top: 24px; }
.preview-stack {
  display: flex;
  flex-direction: column;
  gap: -30px;
  align-items: center;
  position: relative;
  perspective: 1000px;
}

.preview-mock {
  width: 100%;
  max-width: 600px;
  background: rgba(10, 14, 20, 0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  position: relative;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.preview-mock:nth-child(1) { z-index: 3; transform: translateZ(40px) translateY(0px); }
.preview-mock:nth-child(2) { z-index: 2; transform: translateZ(0px) translateY(-50px); opacity: 0.8; }
.preview-mock:nth-child(3) { z-index: 1; transform: translateZ(-40px) translateY(-100px); opacity: 0.5; }

.preview-stack.is-hovered .preview-mock:nth-child(1) { transform: translateZ(80px) translateY(-20px); box-shadow: 0 40px 80px rgba(0,0,0,0.9); border-color: rgba(255,255,255,0.3); }
.preview-stack.is-hovered .preview-mock:nth-child(2) { transform: translateZ(0px) translateY(-90px); opacity: 0.9; }
.preview-stack.is-hovered .preview-mock:nth-child(3) { transform: translateZ(-80px) translateY(-160px); opacity: 0.7; }
.card--complete { margin-top: 24px; }
.hidden { display: none !important; }

.card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Form Elements ───────────────────────── */
.form-row { display: flex; gap: 20px; }
.form-group { margin-bottom: 24px; position: relative; }
.form-group--half { flex: 1; min-width: 0; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-heading);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 48px;
}

.form-group select option {
  background: #1A2238;
  color: var(--text);
  padding: 12px;
}

.form-group select:focus,
.form-group input:focus {
  border-color: var(--accent-light);
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.2), 
    0 0 0 4px var(--accent-glow);
  background: rgba(0, 0, 0, 0.3);
}

.form-group input::placeholder { color: rgba(255, 255, 255, 0.3); }
.form-group select:disabled { opacity: 0.5; cursor: not-allowed; }

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--text-normal);
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }

.form-hint {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── Buttons (Premium 3D) ────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  width: 100%;
  padding: 18px;
  color: #000000;
  background: #FFFFFF;
  box-shadow: 
    0 6px 20px rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0,0,0,0.1);
}

.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg); transition: 0.5s;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 10px 30px rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0,0,0,0.2);
  background: #F4F4F5;
}
.btn--primary:hover::after { left: 150%; }

.btn--primary:active { transform: scale(0.97); }
.btn--primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(50%); }

.btn__icon {
  font-size: 1.2rem;
  transition: transform var(--transition);
}
.btn--primary:hover .btn__icon { transform: translateX(5px); }

.btn--secondary {
  padding: 12px 24px;
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn--secondary:hover { 
  background: rgba(255, 255, 255, 0.1); 
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px); 
}
.btn--secondary:active { transform: scale(0.97); }

.btn--accent {
  width: 100%;
  padding: 18px;
  color: #000;
  background: #E4E4E7;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.1);
}

.btn--accent:hover { 
  transform: translateY(-2px); 
  background: #FFFFFF;
  box-shadow: 
    0 10px 30px rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0,0,0,0.2); 
}
.btn--accent:active { transform: scale(0.97); }

/* ── Error ──────────────────────────────── */
.error-msg {
  color: var(--error);
  font-size: 0.88rem;
  margin-top: 14px;
  min-height: 20px;
  transition: opacity var(--transition);
}

/* ── Output Actions ─────────────────────── */
.output__actions {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── Loader ─────────────────────────────── */
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader__spinner {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--accent);
  border-right-color: var(--accent-light);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  box-shadow: 0 0 20px var(--accent-glow);
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader__text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
}

.loader__sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dots::after {
  content: "";
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%  { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

/* ── Output ─────────────────────────────── */
.output__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.output__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #000;
  background: #FFF;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 6px;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.output__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-light);
}

/* ── Notes Content (rendered markdown) ── */
.notes-content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 32px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.notes-content h2::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0;
  width: 60px; height: 2px;
  background: #FFF;
  box-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.notes-content h2:first-child { margin-top: 0; }

.notes-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 20px 0 8px;
}

.notes-content p { margin-bottom: 10px; color: var(--text); }
.notes-content ul, .notes-content ol { padding-left: 22px; margin-bottom: 12px; }
.notes-content li { margin-bottom: 6px; line-height: 1.7; }
.notes-content strong { color: var(--text-heading); font-weight: 600; }

.notes-content code {
  background: rgba(139, 92, 246, 0.15);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.88em;
  color: var(--accent-light);
}

.notes-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ══════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════ */

.card--dashboard { margin-bottom: 24px; padding: 0; background: transparent; border: none; box-shadow: none; }

/* ── Stats Row ─────────────────────────────── */
.dash-stats {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.dash-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-stat__num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-heading);
}

.dash-stat__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.dash-stat--green .dash-stat__num { color: var(--success); }
.dash-stat--amber .dash-stat__num { color: var(--warning); }
.dash-stat--red .dash-stat__num { color: var(--error); }

/* ── Chapter Cards ─────────────────────────── */
.dash-chapters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.dash-ch {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  border-left: 4px solid var(--border);
  transition: all var(--transition);
}

.dash-ch:hover { background: var(--bg-card-hover); }
.dash-ch--strong { border-left-color: var(--success); }
.dash-ch--moderate { border-left-color: var(--warning); }
.dash-ch--weak { border-left-color: var(--error); }
.dash-ch--new { border-left-color: var(--accent-light); }

.dash-ch__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.dash-ch__icon { font-size: 1.2rem; }

.dash-ch__info { flex: 1; }

.dash-ch__name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
}

.dash-ch__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dash-ch__level {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 14px;
}

.dash-ch__level--strong { background: rgba(52, 211, 153, 0.12); color: var(--success); }
.dash-ch__level--moderate { background: rgba(251, 191, 36, 0.12); color: var(--warning); }
.dash-ch__level--weak { background: rgba(248, 113, 113, 0.12); color: var(--error); }
.dash-ch__level--new { background: rgba(139, 92, 246, 0.12); color: var(--accent-light); }

.dash-ch__scores {
  display: flex;
  gap: 16px;
  margin-bottom: 4px;
}

.dash-ch__score {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dash-ch__issue {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(248, 113, 113, 0.06);
  border-radius: 6px;
}

/* ── Today's Tasks ─────────────────────────── */
.dash-tasks { margin-bottom: 16px; }

.dash-tasks__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.dash-tasks__list {
  list-style: none;
  padding: 0;
}

.dash-tasks__item {
  padding: 10px 14px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--text);
}

.dash-tasks__item::before {
  content: "→ ";
  color: var(--accent-light);
  font-weight: 700;
}

.dash-new-btn {
  width: 100%;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════
   FLASHCARD SYSTEM
   ══════════════════════════════════════════════ */

/* ── Progress Bar ─────────────────────────── */
.fc-progress {
  margin-bottom: 24px;
}

.fc-progress__bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.fc-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 3px;
  transition: width 0.4s ease;
}

.fc-progress__text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Flashcard Card ───────────────────────── */
.fc-card {
  background: linear-gradient(160deg, rgba(26, 34, 56, 0.7), rgba(18, 24, 43, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px 32px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: 
    0 20px 50px -10px rgba(0,0,0,0.6),
    inset 0 2px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

.fc-card:hover {
  transform: translateY(-5px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 
    0 25px 60px -10px rgba(0,0,0,0.7),
    0 0 30px rgba(79, 70, 229, 0.15),
    inset 0 2px 0 rgba(255,255,255,0.08);
}

.fc-card--enter {
  animation: cardEnter 0.3s ease-out;
}

.fc-card--flip {
  box-shadow: 0 0 40px var(--accent-glow);
}


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

.fc-card__type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.fc-card__question {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.6;
}

.fc-card__divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 20px 0;
  border-radius: 1px;
}

.fc-card__answer {
  font-size: 1.05rem;
  color: var(--success);
  line-height: 1.6;
  font-weight: 500;
}

.fc-answer--enter {
  animation: answerReveal 0.3s ease-out;
}

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

/* ── Show Answer Button ───────────────────── */
.fc-show-btn {
  margin-bottom: 0;
}

/* ── Rating Buttons ───────────────────────── */
.fc-rating {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.fc-rating__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.fc-rating__icon { font-size: 1.3rem; }

.fc-rating__btn--no:hover {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.4);
  color: var(--error);
}

.fc-rating__btn--partial:hover {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--warning);
}

.fc-rating__btn--yes:hover {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--success);
}

.fc-rating__btn:active { transform: scale(0.96); }

/* ── Completion Screen ────────────────────── */
.complete {
  text-align: center;
  padding: 20px 0;
}

.complete__icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.3)); }
  50% { filter: drop-shadow(0 0 20px rgba(52, 211, 153, 0.6)); }
}

.complete__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--success);
  margin-bottom: 8px;
}

.complete__sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.complete__stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.complete__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.complete__stat-num {
  font-size: 1.8rem;
  font-weight: 800;
}

.complete__stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.complete__stat--green .complete__stat-num { color: var(--success); }
.complete__stat--amber .complete__stat-num { color: var(--warning); }
.complete__stat--red .complete__stat-num { color: var(--error); }

.complete__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.complete__actions .btn { flex: 1; max-width: 280px; }

.complete__stat--blue .complete__stat-num { color: var(--accent-light); }

/* ══════════════════════════════════════════════
   PRACTICE SYSTEM
   ══════════════════════════════════════════════ */

/* ── Progress Bar ─────────────────────────── */
.pq-progress { margin-bottom: 24px; }

.pq-progress__bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.pq-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, var(--accent-light));
  border-radius: 3px;
  transition: width 0.4s ease;
}

.pq-progress__text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Question Card ────────────────────────── */
.pq-question {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  margin-bottom: 20px;
}

.pq-question--enter {
  animation: cardEnter 0.3s ease-out;
}

.pq-question__meta {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.pq-question__type {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 14px;
  color: #fff;
}

.pq-question__type--mcq { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.pq-question__type--short { background: linear-gradient(135deg, var(--warning), #f59e0b); color: #1a1a2e; }
.pq-question__type--long { background: linear-gradient(135deg, var(--accent), #7c3aed); }
.pq-question__type--case { background: linear-gradient(135deg, #ec4899, #db2777); }

.pq-question__diff {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.pq-question__diff--easy { color: var(--success); }
.pq-question__diff--medium { color: var(--warning); }
.pq-question__diff--hard { color: var(--error); }

.pq-question__text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-heading);
  white-space: pre-wrap;
}

/* ── Action Buttons ───────────────────────── */
.pq-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.pq-actions .btn { flex: 1; }

.btn--outline {
  padding: 15px;
  color: var(--accent-light);
  background: transparent;
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
}

.btn--outline:hover {
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-1px);
}

/* ── Attempt Area ─────────────────────────── */
.pq-attempt { margin-bottom: 16px; }

.pq-attempt__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pq-attempt__input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
  transition: border var(--transition), box-shadow var(--transition);
}

.pq-attempt__input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.pq-attempt__input::placeholder { color: rgba(255, 255, 255, 0.25); }

.pq-attempt .btn { margin-top: 12px; }

/* ── Solution Panel ───────────────────────── */
.pq-solution {
  background: rgba(52, 211, 153, 0.04);
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: 14px;
  padding: 24px;
  margin-top: 8px;
}

.pq-solution--enter {
  animation: answerReveal 0.3s ease-out;
}

.pq-solution__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 16px;
}

.pq-solution__steps {
  padding-left: 24px;
  margin-bottom: 20px;
}

.pq-solution__steps li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: var(--text);
  font-size: 0.95rem;
}

.pq-solution__steps li::marker {
  color: var(--success);
  font-weight: 700;
}

.pq-solution__answer {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text-heading);
}

.pq-solution__answer strong {
  color: var(--success);
}

.pq-solution__tip {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}

.pq-solution__tip-icon { margin-right: 4px; }

.pq-next-btn { margin-top: 4px; }

/* ══════════════════════════════════════════════
   TEST SYSTEM
   ══════════════════════════════════════════════ */

/* ── Test Header ──────────────────────────── */
.test-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.test-progress { flex: 1; }

.test-progress__bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.test-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.test-progress__text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.test-marks-info {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-light);
  background: rgba(139, 92, 246, 0.1);
  padding: 4px 12px;
  border-radius: 14px;
  white-space: nowrap;
}

/* ── Question Card ────────────────────────── */
.test-q {
  background: linear-gradient(160deg, rgba(26, 34, 56, 0.4), rgba(18, 24, 43, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 32px 28px;
  margin-bottom: 24px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.02);
}

.test-q__type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 14px;
  color: #fff;
  margin-bottom: 14px;
}

.test-q__type--mcq { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.test-q__type--short { background: linear-gradient(135deg, var(--warning), #f59e0b); color: #1a1a2e; }
.test-q__type--long { background: linear-gradient(135deg, var(--accent), #7c3aed); }

.test-q__text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-heading);
  white-space: pre-wrap;
}

/* ── Answer Input ─────────────────────────── */
.test-answer { margin-bottom: 20px; }

.test-answer__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.test-answer__input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
  transition: border var(--transition), box-shadow var(--transition);
}

.test-answer__input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.test-answer__input::placeholder { color: rgba(255, 255, 255, 0.25); }

.test-next-btn { width: 100%; }

/* ── Score Display ────────────────────────── */
.card--results { margin-bottom: 20px; }

.test-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 40px 0;
  position: relative;
}

.test-score__circle { 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(18, 24, 43, 0.8);
  box-shadow: 
    0 0 40px rgba(52, 211, 153, 0.2),
    inset 0 0 20px rgba(52, 211, 153, 0.1),
    0 0 0 2px rgba(52, 211, 153, 0.3);
  position: relative;
  animation: glowPulse 3s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  from { box-shadow: 0 0 40px rgba(52, 211, 153, 0.2), inset 0 0 20px rgba(52, 211, 153, 0.1), 0 0 0 2px rgba(52, 211, 153, 0.3); }
  to { box-shadow: 0 0 60px rgba(52, 211, 153, 0.4), inset 0 0 30px rgba(52, 211, 153, 0.2), 0 0 0 4px rgba(52, 211, 153, 0.6); }
}

.test-score__big {
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 20px var(--success);
  line-height: 1;
}

.test-score__total {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.test-score__accuracy { 
  text-align: left; 
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.test-score__accuracy-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.test-score__accuracy-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-heading);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.test-score__accuracy-bar {
  width: 140px;
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.test-score__accuracy-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 10px var(--success);
}

/* ── Per-Question Breakdown ───────────────── */
.test-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.test-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  border-left: 4px solid var(--border);
  animation: fadeUp 0.3s ease-out both;
}

.test-result-card--good { border-left-color: var(--success); }
.test-result-card--partial { border-left-color: var(--warning); }
.test-result-card--poor { border-left-color: var(--error); }

.test-result-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.test-result-card__num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-light);
}

.test-result-card__type {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.test-result-card__score {
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 800;
}

.test-result-card--good .test-result-card__score { color: var(--success); }
.test-result-card--partial .test-result-card__score { color: var(--warning); }
.test-result-card--poor .test-result-card__score { color: var(--error); }

.test-result-card__q {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.5;
}

.test-result-card__feedback {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.test-result-card__tip {
  font-size: 0.82rem;
  color: var(--accent-light);
  margin-top: 6px;
  line-height: 1.5;
}

/* ── Weak Areas ───────────────────────────── */
.test-weak {
  margin-bottom: 20px;
}

.test-weak__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--error);
  margin-bottom: 12px;
}

.test-weak__list {
  padding-left: 20px;
  margin-bottom: 12px;
}

.test-weak__list li {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.5;
}

.weak-score {
  color: var(--error);
  font-weight: 600;
}

.test-weak__suggestion {
  font-size: 0.88rem;
  color: var(--accent-light);
  background: rgba(139, 92, 246, 0.08);
  padding: 12px 16px;
  border-radius: 8px;
}

.test-weak__great {
  font-size: 1rem;
  color: var(--success);
  text-align: center;
  padding: 16px;
}

/* ══════════════════════════════════════════════
   CORRECTION SYSTEM
   ══════════════════════════════════════════════ */

/* ── Correction Header ─────────────────────── */
.corr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.corr-header__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-heading);
}

.corr-header__count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(139, 92, 246, 0.1);
  padding: 4px 12px;
  border-radius: 14px;
}

/* ── Correction Card ──────────────────────── */
.corr-card {
  background: rgba(18, 24, 43, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeUp 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.corr-card__question {
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.corr-card__row {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.corr-card__row:last-child { border-bottom: none; }

.corr-card__row--wrong {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.1), transparent);
  border-left: 4px solid var(--error);
}

.corr-card__row--right {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.1), transparent);
  border-left: 4px solid var(--success);
}

.corr-card__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.corr-card__text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}

.corr-card__keypoints {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.corr-card__keypoints ul {
  padding-left: 18px;
  margin-top: 6px;
}

.corr-card__keypoints li {
  font-size: 0.88rem;
  color: var(--accent-light);
  margin-bottom: 4px;
  line-height: 1.5;
}

.corr-card__feedback {
  padding: 16px 24px;
}

.corr-card__feedback p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Retry Header ─────────────────────────── */
.retry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.retry-header__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-heading);
}

.retry-header__count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--warning);
  background: rgba(251, 191, 36, 0.1);
  padding: 4px 12px;
  border-radius: 14px;
}

.complete__stat--blue .complete__stat-num {
  color: #60a5fa;
}

/* ══════════════════════════════════════════════
   MIND MAP
   ══════════════════════════════════════════════ */

.card--mindmap {
  padding: 20px;
}

.mm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.mm-header__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
}

.mm-header__actions {
  display: flex;
  gap: 6px;
}

.btn--sm {
  padding: 6px 14px;
  font-size: 0.78rem;
}

.btn--lg {
  padding: 16px 28px;
  font-size: 1rem;
  width: 100%;
}

.mm-canvas {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.5);
}

.mm-canvas svg,
.mm-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ══════════════════════════════════════════════
   SAVED HISTORY
   ══════════════════════════════════════════════ */

.hist-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

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

.hist-header__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.hist-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.hist-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
}

.hist-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(18, 24, 43, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hist-card:hover {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.05);
}

.hist-card__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.hist-card__info {
  flex: 1;
  min-width: 0;
}

.hist-card__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.hist-card__chapter {
  font-size: 0.78rem;
  color: var(--text-heading);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hist-card__meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hist-card__score {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-light);
}

.hist-card__resume {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent-light);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.hist-card__resume:hover {
  background: var(--accent);
  color: #fff;
}

/* ══════════════════════════════════════════════
   AUDIO CHARACTER LABEL
   ══════════════════════════════════════════════ */

.audio-char-label {
  font-size: 0.78rem;
  color: var(--accent-light);
  text-align: center;
  margin-top: 8px;
  animation: charPulse 2s ease-in-out infinite;
}

@keyframes charPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ══════════════════════════════════════════════
   MUSIC GENERATION
   ══════════════════════════════════════════════ */

.music-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

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

.music-header__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.music-style-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--accent);
  color: var(--accent-light);
}

.music-loading {
  text-align: center;
  padding: 20px 0;
}

.music-loading__text {
  font-size: 0.88rem;
  color: var(--text);
  margin-top: 8px;
  font-weight: 600;
}

.music-loading__sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.music-error {
  text-align: center;
  padding: 16px 0;
}

.music-error__msg {
  font-size: 0.85rem;
  color: #ef4444;
  margin-bottom: 10px;
}

.music-player-wrap {
  margin-top: 14px;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(18, 24, 43, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.music-play-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.music-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45);
}

.music-progress {
  flex: 1;
  min-width: 60px;
}

.music-progress__bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.music-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 3px;
  width: 0%;
  transition: width 0.2s ease;
}

.music-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.music-lyrics {
  margin-top: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.music-lyrics p {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 4px;
}

/* ══════════════════════════════════════════════
   AUDIO LEARNING
   ══════════════════════════════════════════════ */

.audio-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.audio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.audio-header__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
}

.audio-modes {
  display: flex;
  gap: 6px;
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(18, 24, 43, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.audio-mode-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-light);
  white-space: nowrap;
}

.audio-play-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: none;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
  transition: all 0.2s ease;
}

.audio-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.audio-progress {
  flex: 1;
  min-width: 60px;
}

.audio-progress__bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.audio-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}

.audio-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.audio-speed-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.audio-speed-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.audio-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.audio-download-btn:hover {
  border-color: #22c55e;
  color: #22c55e;
}

.audio-download-btn.hidden {
  display: none;
}

/* ══════════════════════════════════════════════
   VIDEO HELP
   ══════════════════════════════════════════════ */

.card--video {
  border: 1px solid rgba(139, 92, 246, 0.2);
}

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

.vid-header__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-heading);
}

.vid-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vid-card {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
  animation: fadeUp 0.3s ease-out both;
}

.vid-card:hover {
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.vid-card__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 56px;
  background: linear-gradient(135deg, #1a1a2e, #2d1b69);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vid-card__play {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  transition: all 0.2s ease;
}

.vid-card:hover .vid-card__play {
  background: var(--accent);
  transform: scale(1.15);
}

.vid-card__info {
  flex: 1;
  min-width: 0;
}

.vid-card__focus {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.vid-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.4;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.vid-card__meta {
  display: flex;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.vid-error {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
}

/* ══════════════════════════════════════════════
   DOUBT SOLVER
   ══════════════════════════════════════════════ */

/* ── Floating Action Button ───────────────── */
.doubt-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #08080c;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 14px 22px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  z-index: 900;
  animation: fabPulse 3s ease-in-out infinite;
}

.doubt-fab:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.08);
}

.doubt-fab__icon { font-size: 1.1rem; }

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 255, 255, 0.05); }
  50% { box-shadow: 0 6px 32px rgba(0, 0, 0, 0.6), 0 0 15px 0 rgba(255, 255, 255, 0.1); }
}

/* ── Modal Overlay ────────────────────────── */
.doubt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.doubt-overlay--active { opacity: 1; }

/* ── Modal ────────────────────────────────── */
.doubt-modal {
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  background: #08080c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px 20px 0 0;
  padding: 24px 20px;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

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

.doubt-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.doubt-modal__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-heading);
}

.doubt-modal__close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
}

.doubt-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

/* ── Hint ──────────────────────────────────── */
.doubt-hint {
  font-size: 0.82rem;
  color: var(--accent-light);
  background: rgba(139, 92, 246, 0.08);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
}

/* ── Input Wrap ──────────────────────────── */
.doubt-modal__input-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.doubt-modal__input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
  transition: border var(--transition);
}

.doubt-modal__input:focus {
  border-color: var(--border-focus);
}

.doubt-modal__input::placeholder { color: rgba(255, 255, 255, 0.25); }

.doubt-modal__ask {
  padding: 14px 24px;
  width: 100%;
  font-size: 0.95rem;
  background: #08080c;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  transition: all 0.25s ease;
}
.doubt-modal__ask:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ── Response ─────────────────────────────── */
.doubt-response {
  margin-bottom: 14px;
}

.doubt-response__body {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}

.doubt-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 6px;
}

.doubt-section__icon { font-size: 1rem; }

.doubt-section__title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-heading);
}

.doubt-section__body {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
}

.doubt-section__body--key {
  border-left-color: var(--accent);
  background: rgba(139, 92, 246, 0.06);
  color: var(--accent-light);
  font-weight: 600;
}

.doubt-section__body--tip {
  border-left-color: var(--success);
  background: rgba(52, 211, 153, 0.06);
  color: var(--success);
}

/* ── Follow-up Buttons ────────────────────── */
.doubt-follow {
  display: flex;
  gap: 8px;
}

.doubt-follow__btn {
  flex: 1;
  font-size: 0.82rem;
  padding: 10px 8px;
}

/* ── Doubt Action Bar (feature generation trigger) ── */
.doubt-action-bar {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.doubt-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: actionPulse 2s ease-in-out infinite;
}
.doubt-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}
.doubt-action-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  animation: none;
}
.doubt-action-btn__icon { font-size: 1.2rem; }
.doubt-action-btn__label { flex: 1; text-align: left; }
.doubt-action-btn__arrow { font-size: 1.1rem; opacity: 0.7; }
@keyframes actionPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2); }
  50% { box-shadow: 0 4px 16px rgba(124, 58, 237, 0.5); }
}

/* ── Footer ─────────────────────────────── */
.footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Utility ────────────────────────────── */
.hidden { display: none !important; }

/* ── Animations ─────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- NEW 3D PHYSICS BLOCK INJECTED PREVIOUSLY --- */
.clean-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  perspective: 1200px;
}

.clean-card {
  position: relative;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(20, 24, 32, 0.8), rgba(10, 14, 20, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.clean-card.is-active-3d {
  transition: box-shadow 0.3s ease, border-color 0.3s ease; /* Remove transform lag while moving */
}

.clean-card:hover {
  border-color: rgba(255,255,255,0.15);
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 40px rgba(255,255,255,0.03); 
}

.clean-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 32px;
  border-radius: 20px;
  background: rgba(20, 20, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
  color: var(--text-normal);
  font-weight: 600;
  position: relative;
  z-index: 5;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.clean-step::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 16px;
  pointer-events: none;
}

.clean-step:hover {
  transform: scale(1.15) translateY(-5px) rotateX(5deg);
  background: rgba(30, 30, 40, 0.9);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 
    0 20px 40px rgba(139, 92, 246, 0.3), 
    0 10px 15px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.1);
  color: #fff;
  z-index: 10;
}

.clean-step__icon {
  font-size: 2rem;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.clean-step:hover .clean-step__icon {
  transform: scale(1.2) translateY(-2px);
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.3));
}

.clean-step__label {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.clean-step__arrow {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  opacity: 0.7;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ══════════════════════════════════════════════
   LANDING PAGE (Clean Minimalist Professional)
   ══════════════════════════════════════════════ */
#landing-view {
  --l-bg: #F8FAFC;
  --l-surface: #FFFFFF;
  --l-border: #E5E7EB;
  --l-primary: #4F46E5;
  --l-text: #0F172A;
  --l-text-muted: #6B7280;

  background-color: transparent;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--l-text);
  position: relative;
  z-index: 100;
}

.landing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* Typography Base */
.landing-heading,
.landing-promise__title,
.landing-hero__title {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: normal;
  word-spacing: normal;
}

/* Hero Section */
.landing-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 80px 0 100px;
  animation: fadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.landing-hero__content {
  flex: 1;
  max-width: 520px;
}

.landing-hero__trust {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #A1A1AA;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.landing-hero__title {
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  text-shadow: 0 0 40px rgba(255,255,255,0.1);
}

.landing-hero__sub {
  font-size: 1.25rem;
  color: #A1A1AA;
  line-height: 1.6;
  margin-bottom: 40px;
}

.landing-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.landing-btn--primary {
  background: #FFFFFF;
  color: #000000;
  padding: 16px 28px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 0 30px rgba(255,255,255,0.2);
  transition: all var(--transition);
}

.landing-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(255,255,255,0.4);
}

.landing-btn--secondary {
  background: rgba(255,255,255,0.03);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 16px 28px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all var(--transition);
}

.landing-btn--secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
}

.landing-hero__visual {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.landing-mockup {
  width: 100%;
  max-width: 480px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  box-shadow: 
    0 40px 80px rgba(0,0,0,0.8),
    0 0 40px rgba(255,255,255,0.05);
  transform: rotateY(-15deg) rotateX(10deg);
  transform-style: preserve-3d;
  transition: transform 0.1s linear;
  /* Removed infinite floatUI so JS parallax takes pure control */
}

/* Holographic children constraints */
.landing-mockup__header,
.mockup-search,
.mockup-grid,
.mockup-progress-bar,
.mockup-status {
  transition: transform 0.1s linear;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.landing-mockup__header {
  height: 48px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.5;
}
.mockup-dot.red { background: #ff5f56; }
.mockup-dot.yellow { background: #ffbd2e; }
.mockup-dot.green { background: #27c93f; }

.landing-mockup__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mockup-search {
  height: 44px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 22px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  color: #A1A1AA;
  font-size: 0.9rem;
  box-shadow: 0 0 15px rgba(255,255,255,0.05);
}

.mockup-search svg {
  animation: pulse-glow 2s infinite alternate;
}

.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mockup-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100px;
}

.pulse-block {
  position: relative;
  overflow: hidden;
}

.pulse-block::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: data-sweep 3s infinite linear;
}

.mockup-line {
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.mockup-line.title {
  width: 80%; margin-bottom: 8px; height: 10px; background: rgba(255,255,255,0.3);
}

.mockup-graph {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100%;
  width: 100%;
}

.graph-bar {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
}

.mockup-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.mockup-progress-fill {
  width: 60%;
  height: 100%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: progress-load 4s infinite alternate ease-in-out;
}

.mockup-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.neon-text {
  color: #fff;
  text-shadow: 0 0 10px #fff;
  font-weight: bold;
}

@keyframes pulse-glow {
  0% { opacity: 0.5; filter: drop-shadow(0 0 2px rgba(255,255,255,0)); }
  100% { opacity: 1; filter: drop-shadow(0 0 8px rgba(255,255,255,0.8)); }
}

@keyframes data-sweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes progress-load {
  0% { width: 10%; }
  100% { width: 95%; }
}

/* ══════════════════════════════════════════════
   PREVIEW STACK - RICH CARDS
   ══════════════════════════════════════════════ */

.mock-summary {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-summary__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #A1A1AA;
}

.mock-summary__title {
  font-size: 1.2rem;
  color: #fff;
  font-weight: bold;
}

.mock-summary__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-bullet {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.mock-dot {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--primary);
}

.mock-flashcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(30,30,40,0.9), rgba(15,15,20,0.9)) !important;
}

.mock-flashcard__icon {
  background: rgba(255,255,255,0.05);
  padding: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
}

.mock-flashcard__q {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
}

.mock-flashcard__hint {
  font-size: 0.85rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

.mock-test {
  display: flex;
  align-items: center;
  gap: 24px;
  text-align: left;
}

.mock-test__ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conical-gradient(#22c55e 92%, rgba(255,255,255,0.1) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  border: 4px solid rgba(255,255,255,0.05);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.mock-test__right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-test__title {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 4px;
}

.mock-test__stat {
  font-size: 0.9rem;
  color: #A1A1AA;
}

.text-green { color: #22c55e; font-weight: bold; }
.text-red { color: #ef4444; font-weight: bold; }

/* ══════════════════════════════════════════════
   CHAPTER SELECTION GRID (BADGES)
   ══════════════════════════════════════════════ */

.chapter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.chapter-chips::-webkit-scrollbar {
  width: 4px;
}
.chapter-chips::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.chapter-badge {
  background: rgba(20, 20, 25, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #A1A1AA;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  white-space: nowrap;
}

.chapter-badge:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.chapter-badge.selected {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Problem Section */
.landing-problem {
  text-align: center;
  padding: 100px 0;
  max-width: 700px;
  margin: 0 auto;
}

.landing-problem__text {
  font-size: 1.6rem;
  color: #A1A1AA;
  line-height: 1.6;
  margin-bottom: 24px;
  font-weight: 400;
}

.landing-problem__solution {
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* System Flow */
.landing-flow {
  padding: 100px 0;
  text-align: center;
}

/* End duplicated section cleanup */
.flow-steps-clean {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Base border line (static) */
.clean-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: rgba(255,255,255,0.08); /* Static border */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* Trace laser glow */
.clean-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px; /* The thickness of the glowing border */
  background: radial-gradient(
    400px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(255, 255, 255, 0.9),
    transparent 40%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.clean-card:hover::after {
  opacity: 1;
}

.clean-card:hover {
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.8),
    0 0 40px rgba(255,255,255,0.03); /* Subtle outer glow from laser */
  transform: translateY(-4px);
}

.clean-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.clean-card__desc {
  color: #A1A1AA;
  line-height: 1.6;
}

/* Product Preview Stack */
.landing-preview {
  padding: 100px 0;
  display: flex;
  justify-content: center;
}

/* End duplicated preview mock cleanup */

/* Result Promise */
.landing-promise {
  text-align: center;
  padding: 100px 0;
}

.landing-promise__title {
  font-size: 3rem;
  margin-bottom: 16px;
}

.landing-promise__sub {
  font-size: 1.3rem;
  color: #A1A1AA;
}

/* Final CTA */
.landing-cta {
  text-align: center;
  padding: 80px 0 120px;
}

.landing-cta__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 32px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE DESIGN — Full Device Compatibility
   ══════════════════════════════════════════════ */

/* ── Large Tablet / Small Laptop (≤1100px) ─ */
@media (max-width: 1100px) {
  .landing { padding: 40px 24px 60px; }
  .landing-hero { gap: 40px; padding: 60px 0 80px; }
  .landing-hero__title { font-size: 3.2rem; }
  .landing-hero__visual { flex: 0 0 45%; }
  .landing-mockup { max-width: 380px; }
  .clean-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
}

/* ── Tablet (≤900px) ─────────────────────── */
@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    overflow-y: visible;
  }

  /* Landing hero — stack vertically */
  .landing-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    padding: 60px 0 70px;
    text-align: left;
  }
  .landing-hero__content { max-width: 100%; }
  .landing-hero__visual {
    width: 100%;
    flex: none;
    justify-content: center;
  }
  .landing-mockup {
    max-width: 100%;
    transform: rotateY(-8deg) rotateX(5deg);
  }
  .landing-hero__title { font-size: 3rem; }
  .landing-hero__sub { font-size: 1.1rem; }

  /* Flow steps wrap nicely */
  .flow-steps-clean {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }
  .clean-step__arrow { display: none; }

  /* Promise & CTA */
  .landing-promise__title { font-size: 2.4rem; }
  .landing-cta__title { font-size: 2rem; }
  .landing-flow { padding: 70px 0; }
  .landing-promise { padding: 70px 0; }
  .landing-cta { padding: 60px 0 80px; }
  .clean-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile Landscape / Large Phone (≤768px) */
@media (max-width: 768px) {
  /* Base */
  html { font-size: 15px; }
  .container { padding: 80px 16px 40px; }
  .landing { padding: 32px 16px 48px; }

  /* Hero */
  .landing-hero {
    padding: 44px 0 56px;
    gap: 36px;
  }
  .landing-hero__title { font-size: 2.5rem; }
  .landing-hero__sub { font-size: 1rem; margin-bottom: 28px; }
  .landing-hero__actions {
    flex-direction: column;
    gap: 12px;
  }
  .landing-btn--primary,
  .landing-btn--secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px 24px;
  }

  /* Mockup */
  .landing-mockup {
    transform: none;
    border-radius: 12px;
  }

  /* Feature grid */
  .clean-grid { grid-template-columns: 1fr; gap: 14px; }
  .clean-card { padding: 24px 18px; }
  .clean-card__title { font-size: 1.2rem; }

  /* Flow steps */
  .flow-steps-clean {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .clean-step { padding: 18px 14px; }
  .clean-step__icon { font-size: 1.6rem; }
  .clean-step__label { font-size: 0.8rem; }

  /* Landing text sections */
  .landing-promise__title { font-size: 2rem; }
  .landing-cta__title { font-size: 1.8rem; }
  .landing-flow { padding: 56px 0; }
  .landing-promise { padding: 56px 0; }
  .landing-cta { padding: 48px 0 64px; }

  /* Logo */
  .logo__text { font-size: 1.8rem; }
  .hero__tagline { font-size: 0.95rem; }

  /* Card & form */
  .card { padding: 24px 16px; }
  .card__title { font-size: 1.1rem; }
  .form-row { flex-direction: column; gap: 0; }
  .form-group { margin-bottom: 18px; }
  .form-group select,
  .form-group input { padding: 14px 16px; font-size: 0.95rem; }

  /* Output section */
  .output__header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .output__actions { flex-wrap: wrap; gap: 8px; }

  /* App layout sidebar */
  .app-sidebar { display: none; }
  .app-layout { display: block; }

  /* Flashcards */
  .fc-card { padding: 24px 18px; min-height: 150px; }
  .fc-card__question { font-size: 1rem; }
  .fc-card__answer { font-size: 0.9rem; }
  .fc-rating { gap: 6px; }
  .fc-rating__btn { padding: 12px 8px; font-size: 0.72rem; }

  /* Complete screen */
  .complete__stats { gap: 12px; flex-wrap: wrap; }
  .complete__stat-num { font-size: 1.4rem; }
  .complete__actions { flex-direction: column; gap: 10px; }
  .complete__actions .btn { max-width: 100%; width: 100%; }

  /* Practice questions */
  .pq-question { padding: 18px 14px; }
  .pq-question__text { font-size: 0.95rem; }
  .pq-actions { flex-direction: column; gap: 8px; }
  .pq-solution { padding: 16px 12px; }

  /* Test */
  .test-score { flex-direction: column; gap: 16px; }
  .test-score__big { font-size: 2.2rem; }
  .test-q { padding: 18px 14px; }
  .test-result-card { padding: 12px 14px; }

  /* Dashboard */
  .dash-stats { gap: 12px; flex-wrap: wrap; }
  .dash-stat { min-width: calc(50% - 6px); }
  .dash-stat__num { font-size: 1.4rem; }
  .dash-ch { padding: 12px 14px; }
  .dash-ch__scores { flex-wrap: wrap; gap: 8px; }

  /* Progress bar */
  .prog-steps { gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .prog-step__label { display: none; }

  /* Cursor — disable on touch */
  .cursor-dot, .cursor-ring { display: none !important; }
  body, a, button, input, select, textarea { cursor: auto !important; }

  /* Notes content */
  .notes-content { font-size: 0.9rem; }
  .notes-content h2 { font-size: 1.2rem; }
  .notes-content h3 { font-size: 1.05rem; }

  /* Mind map */
  .mm-canvas { overflow-x: auto; }

  /* AI visual lesson — handled in cinema player section */
}

/* ── Mobile Portrait (≤480px) ─────────────── */
@media (max-width: 480px) {
  html { font-size: 14px; }
  .container { padding: 80px 14px 32px; }
  .landing { padding: 24px 14px 36px; }

  /* Hero */
  .landing-hero { padding: 32px 0 40px; gap: 28px; }
  .landing-hero__title { font-size: 2rem; letter-spacing: -0.01em; }
  .landing-hero__trust { font-size: 0.78rem; padding: 6px 12px; }

  /* Flow steps — single column on very small */
  .flow-steps-clean { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .clean-step { padding: 14px 10px; }
  .clean-step__icon { font-size: 1.4rem; }
  .clean-step__label { font-size: 0.72rem; }

  /* Feature cards */
  .clean-card { padding: 20px 14px; border-radius: 12px; }
  .clean-card__title { font-size: 1.1rem; }
  .clean-card__desc { font-size: 0.85rem; }

  /* Promise & CTA */
  .landing-promise__title { font-size: 1.7rem; }
  .landing-promise__sub { font-size: 1rem; }
  .landing-cta__title { font-size: 1.5rem; }

  /* Buttons */
  .btn { font-size: 0.9rem; }
  .btn--primary { padding: 15px; }

  /* Form */
  .card { padding: 20px 14px; border-radius: 16px; }
  .card__title { font-size: 1.05rem; }

  /* Flashcards rating */
  .fc-rating { gap: 4px; }
  .fc-rating__btn { padding: 10px 4px; font-size: 0.67rem; }

  /* Dashboard stats — 2 columns */
  .dash-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dash-stat { min-width: unset; }

  /* Test options */
  .test-options { gap: 8px; }
  .test-option { padding: 10px 12px; font-size: 0.9rem; }

  /* Note content */
  .notes-content { font-size: 0.85rem; line-height: 1.7; }

  /* Disable heavy 3D effects that wreck performance on low-end devices */
  .clean-card:hover { transform: translateY(-2px); }
  .clean-step:hover { transform: scale(1.03) translateY(-2px); }
  .landing-mockup { transform: none !important; transition: none !important; }

  /* Space canvas — reduce star density on mobile */
  #neural-matrix { opacity: 0.7; }
  .marquee-container { display: none; }

  /* Ask doubt floating button — reposition for small screen */
  #ask-doubt-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* ── Ultra-small (≤360px) ─────────────────── */
@media (max-width: 360px) {
  html { font-size: 13px; }
  .landing-hero__title { font-size: 1.8rem; }
  .flow-steps-clean { grid-template-columns: repeat(2, 1fr); }
  .fc-rating { flex-direction: column; gap: 6px; }
  .fc-rating__btn { width: 100%; padding: 10px; }
}

/* ── Touch-device specifics ───────────────── */
@media (hover: none) and (pointer: coarse) {
  /* Disable cursor ring entirely on touch */
  .cursor-dot, .cursor-ring { display: none !important; }
  body, a, button, input, select, textarea { cursor: auto !important; }

  /* Disable 3D tilt on cards (needs mouse) */
  .clean-card { transform: none !important; }
  .clean-card:hover { transform: translateY(-3px) !important; }
  .clean-step:hover { transform: scale(1.04) translateY(-2px); }
  .landing-mockup { transform: none !important; }
}

/* ── Safe bottom area (iOS notch / home indicator) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .container, .landing {
    padding-bottom: max(60px, env(safe-area-inset-bottom));
  }
  #ask-doubt-btn {
    bottom: max(20px, env(safe-area-inset-bottom));
  }
}


/* ══════════════════════════════════════════════
   MASTERPIECE: SCROLL MATRIX & CURSORS
   ══════════════════════════════════════════════ */
.js-hidden {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: all 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

.js-hidden.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body {
  cursor: auto;
}

a, button, input, select, textarea {
  cursor: pointer;
}

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background-color: #FFFFFF;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}

.cursor-hover.cursor-ring {
  width: 48px; height: 48px;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.text-glow-hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px var(--accent);
  transform: scale(1.01) translateY(-1px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ── Dynamic Mouse Spotlights ── */
.clean-card, .card {
  position: relative;
  overflow: hidden;
}

.clean-card::after, .card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(
    400px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(255, 255, 255, 0.08),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}

.clean-card:hover::after, .card:hover::after {
  opacity: 1;
}

.clean-card > *, .card > * {
  position: relative;
  z-index: 10;
}

/* ══════════════════════════════════════════════
   REVIEW SECTION (Resume from History)
   ══════════════════════════════════════════════ */
.card--review {
  max-height: 80vh;
  overflow-y: auto;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.review-header__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-bright);
}

.review-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.review-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
}

.review-block__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.review-block__body {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-normal);
}

.review-fc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-fc {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px;
}

.review-fc__q {
  color: var(--text-bright);
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.review-fc__a {
  color: var(--accent-light);
  font-size: 0.85rem;
}

.review-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── History Card Buttons ─────────────────── */
.hist-card__buttons {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.hist-card__revise {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 6px;
  background: rgba(139,92,246,0.1);
  color: var(--accent-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hist-card__revise:hover {
  background: rgba(139,92,246,0.3);
  border-color: rgba(139,92,246,0.6);
}

/* ── History Section Below Form ───────────── */
.card--history {
  margin-top: 16px;
}

/* ══════════════════════════════════════════════
   AI VIDEO SECTION
   ══════════════════════════════════════════════ */
.aivideo-header {
  margin-bottom: 12px;
}

.aivideo-header__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
}

.aivideo-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.aivideo-error {
  padding: 12px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 8px;
  margin-top: 12px;
}

.aivideo-error__msg {
  font-size: 0.85rem;
  color: #f59e0b;
}

/* ── Unlock Pulse Animation ───────────────── */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ══════════════════════════════════════════════
   AI VISUAL LESSON — CINEMA PLAYER
   ══════════════════════════════════════════════ */
.vl-cinema {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  background: #09090b;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.vl-cinema__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.vl-cinema__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}
.vl-cinema__meta {
  font-size: 0.75rem;
  color: #71717a;
  font-weight: 500;
}

/* Viewport — 16:9 */
.vl-cinema__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.vl-cinema__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  will-change: opacity, transform;
}
.vl-cinema__img--active {
  opacity: 1;
}

/* Ken Burns variations */
.vl-kb-1 { animation: kenBurns1 12s ease-in-out forwards; }
.vl-kb-2 { animation: kenBurns2 12s ease-in-out forwards; }
.vl-kb-3 { animation: kenBurns3 12s ease-in-out forwards; }
.vl-kb-4 { animation: kenBurns4 12s ease-in-out forwards; }

@keyframes kenBurns1 {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1%, -1%); }
}
@keyframes kenBurns2 {
  from { transform: scale(1.08) translate(-1%, 0); }
  to   { transform: scale(1) translate(1%, 1%); }
}
@keyframes kenBurns3 {
  from { transform: scale(1) translate(1%, -1%); }
  to   { transform: scale(1.06) translate(0, 1%); }
}
@keyframes kenBurns4 {
  from { transform: scale(1.06) translate(0, 1%); }
  to   { transform: scale(1) translate(-1%, 0); }
}

/* Scene title overlay */
.vl-cinema__scene-title {
  position: absolute;
  top: 16px;
  left: 18px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  z-index: 5;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.vl-title-animate {
  animation: titlePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes titlePop {
  from { opacity: 0; transform: translateY(-8px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Big play button */
.vl-cinema__play-big {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  border: none;
  cursor: pointer;
  z-index: 10;
  font-size: 4rem;
  color: #fff;
  transition: background 0.3s ease;
}
.vl-cinema__play-big:hover {
  background: rgba(0,0,0,0.6);
}
.vl-cinema__play-big.hidden { display: none; }

/* Subtitle bar */
.vl-cinema__subtitle {
  padding: 14px 18px;
  background: rgba(139, 92, 246, 0.06);
  border-top: 1px solid rgba(139, 92, 246, 0.15);
  min-height: 60px;
}
.vl-cinema__subtitle p {
  font-size: 0.88rem;
  color: #d4d4d8;
  line-height: 1.6;
  margin: 0;
}

/* Controls bar */
.vl-cinema__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.vl-ctrl-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.vl-ctrl-btn:hover { background: rgba(255,255,255,0.1); }

/* Progress bar */
.vl-cinema__progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}
.vl-cinema__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.vl-cinema__marker {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  transform: translateX(-1px);
}
.vl-cinema__time {
  font-size: 0.75rem;
  color: #71717a;
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
}

/* Chapter list */
.vl-cinema__chapters {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(0,0,0,0.15);
  scrollbar-width: none;
}
.vl-cinema__chapters::-webkit-scrollbar { display: none; }

.vl-chapter {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-size: 0.78rem;
  color: #71717a;
  border: 1px solid transparent;
}
.vl-chapter:hover {
  color: #d4d4d8;
  background: rgba(255,255,255,0.05);
}
.vl-chapter--active {
  color: #fff;
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.3);
}
.vl-chapter--done { color: #a78bfa; }
.vl-chapter__num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}
.vl-chapter--active .vl-chapter__num {
  background: #7c3aed;
  color: #fff;
}
.vl-chapter--done .vl-chapter__num {
  background: rgba(139,92,246,0.3);
}
.vl-chapter__title {
  font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
  .vl-cinema__header { padding: 10px 14px; }
  .vl-cinema__title { font-size: 0.85rem; max-width: 55%; }
  .vl-cinema__subtitle { padding: 10px 14px; }
  .vl-cinema__play-big { font-size: 3rem; }
  .vl-chapter { padding: 4px 8px; font-size: 0.72rem; }
}


/* =========================================================
   14. STATIC HTML PAGES (About, Privacy, How It Works)
========================================================= */

.static-page-container {
  max-width: 800px;
  margin: 100px auto 120px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  animation: fadeUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.static-header {
  text-align: center;
  margin-bottom: 64px;
}

.static-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text-heading);
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.static-header p {
  font-size: 1.2rem;
  color: var(--text-normal);
  max-width: 600px;
  margin: 0 auto;
}

.static-content {
  background: rgba(10, 14, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-normal);
  line-height: 1.8;
  font-size: 1.1rem;
}

.static-content h2 {
  color: var(--text-heading);
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 16px;
  font-weight: 700;
}

.static-content h2:first-child {
  margin-top: 0;
}

.static-content p {
  margin-bottom: 24px;
}

.static-content ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

.static-content li {
  margin-bottom: 12px;
}

.static-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.static-nav {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 10;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-normal);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.2s ease;
}

.btn-back-home:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-heading);
  transform: translateY(-2px);
}

/* ── Footer Nav Links ── */
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-normal);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--text-heading);
}

@media (max-width: 768px) {
  .static-page-container { margin-top: 80px; padding: 0 16px; }
  .static-header h1 { font-size: 2.5rem; }
  .static-content { padding: 32px 24px; }
  .static-nav { position: relative; top: 0; left: 0; margin-bottom: 32px; }
}

/* ── Premium Static Components ── */
.static-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.card-step-indicator {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.cta-banner {
  margin-top: 80px;
  padding: 80px 40px;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 40px;
  text-align: center;
}

.cta-banner__content h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--text-heading);
}

.cta-banner__content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.mission-statement {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.mission-quote {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-heading);
  border-left: 4px solid #fff;
  padding-left: 40px;
  margin: 40px 0;
}

@media (max-width: 768px) {
  .cta-banner { padding: 40px 20px; }
  .cta-banner__content h2 { font-size: 1.8rem; }
  .mission-quote { font-size: 1.5rem; padding-left: 20px; }
}

/* ═══════════════════════════════════════════════
   AUTH UI STYLES — Premium Black & White
   ═══════════════════════════════════════════════ */

/* ── User Profile Badge (Header) ── */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  cursor: default;
  transition: all 0.3s ease;
}
.user-profile-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.user-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-signout-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}
.user-signout-btn:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.08);
}

/* ── Guest Banner ── */
.guest-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(8, 8, 12, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  z-index: 9000;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.guest-banner__icon { font-size: 1.1rem; }
.guest-banner__text { font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); }
@keyframes slideUp {
  from { transform: translateX(-50%) translateY(24px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ── Auth Overlay ── */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.auth-overlay.hidden { display: none; }

/* ── Auth Modal — Pure Black ── */
.auth-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #08080c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 44px 40px 36px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.auth-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: all 0.2s;
  line-height: 1;
}
.auth-modal__close:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

/* ── Auth Header ── */
.auth-modal__header {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.auth-logo-img { width: 30px; height: 30px; opacity: 0.9; }
.auth-modal__sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Google Button — Outlined Dark ── */
/* ── Social Buttons Container ── */
.auth-social-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.auth-google-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
}
.auth-google-btn:active { transform: scale(0.98); }
.auth-google-btn svg { flex-shrink: 0; }

/* ── Apple Sign-In Button ── */
.auth-apple-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  background: #fff;
  color: #000;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.auth-apple-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}
.auth-apple-btn:active { transform: scale(0.98); }
.auth-apple-btn svg { flex-shrink: 0; fill: #000; }

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
  text-transform: lowercase;
  letter-spacing: 0.08em;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

/* ── Tab Switcher ── */
.auth-tabs {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 10px 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.25s ease;
}
.auth-tab--active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
}
.auth-tab:hover:not(.auth-tab--active) { color: rgba(255, 255, 255, 0.55); }

/* ── Form Fields — Underline Style ── */
.auth-field { margin-bottom: 20px; }
.auth-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.auth-field input {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  color: #fff;
  caret-color: #fff;
  cursor: text;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}
.auth-field input:focus {
  outline: none;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}
.auth-field input::placeholder { color: rgba(255, 255, 255, 0.18); }

/* ── Submit Button — Solid White ── */
.auth-submit-btn {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  background: #fff;
  color: #08080c;
  border: none;
  cursor: pointer !important;
  font-family: inherit;
  transition: all 0.25s ease;
  position: relative;
  z-index: 2;
}
.auth-submit-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}
.auth-submit-btn:active { transform: translateY(0); }

/* ── Forgot Password ── */
.auth-forgot {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.auth-forgot:hover { color: rgba(255, 255, 255, 0.6); }

/* ── Error/Success Messages ── */
.auth-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255, 80, 80, 0.06);
  border: 1px solid rgba(255, 80, 80, 0.15);
  border-radius: 12px;
  color: rgba(255, 140, 140, 0.9);
  font-size: 0.8rem;
  text-align: center;
}
.auth-success {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(80, 255, 120, 0.06);
  border: 1px solid rgba(80, 255, 120, 0.15);
  border-radius: 12px;
  color: rgba(140, 255, 170, 0.9);
  font-size: 0.8rem;
  text-align: center;
}

/* ── Mobile Auth ── */
@media (max-width: 480px) {
  .auth-modal {
    margin: 16px;
    padding: 32px 24px 28px;
    border-radius: 20px;
    max-width: none;
  }
  .guest-banner {
    left: 16px;
    right: 16px;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  @keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .user-profile-badge { padding: 4px 10px 4px 6px; gap: 6px; }
  .user-avatar { width: 24px; height: 24px; }
  .user-name { font-size: 0.78rem; max-width: 80px; }
}

/* ── Guest Button ── */
.auth-guest-btn {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-guest-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ══════════════════════════════════════════════
   AGGRESSIVE LANDING PAGE (BLACK & WHITE 3D)
   ══════════════════════════════════════════════ */

.landing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.lp-section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 3rem;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(255,255,255,0.15);
}

@media (max-width: 768px) {
  .lp-section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
}

/* Base CTA */
.lp-cta-btn {
  background: linear-gradient(180deg, #ffffff 0%, #dcdcdc 100%);
  color: #000;
  padding: 18px 36px;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.5), 0 30px 40px rgba(0,0,0,0.8), inset 0 2px 4px rgba(255,255,255,1);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  animation: pulseGlow 4s infinite alternate;
}
.lp-cta-btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  transform: skewX(-20deg);
  animation: glareSweep 4s infinite;
}
.lp-cta-btn:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 0 0 1px #fff, 0 40px 60px rgba(255, 255, 255, 0.15), inset 0 2px 4px rgba(255,255,255,1);
}
.lp-cta-btn:active {
  transform: scale(0.95) translateY(2px);
}
@keyframes glareSweep {
  0%, 80% { left: -100%; }
  100% { left: 200%; }
}
@keyframes borderSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 1. Hero */
/* 1. Hero (Redesigned 2-Column Demo) */

/* Hero badge — always white */
.lp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

/* Hero animation classes */
.animate-float {
  animation: animFloat 3s ease-in-out infinite;
}
.animate-type-pop {
  animation: typePop 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.animate-fade-delay {
  animation: animFadeUp 0.6s ease 0.3s both;
}
.animate-fade-delay-2 {
  animation: animFadeUp 0.6s ease 0.6s both;
}

@keyframes animFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
@keyframes animFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* On mobile — keep animations but simpler (no perspective) */
@media (max-width: 768px) {
  .animate-type-pop {
    animation: animFadeUp 0.5s ease both;
  }
  .animate-float {
    animation: animFloat 3s ease-in-out infinite;
  }
}

.lp-hero {
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 120px 5% 60px;
  position: relative;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
}

.lp-hero__left {
  flex: 1;
  max-width: 600px;
  z-index: 2;
  position: relative;
}

.lp-hero__right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  perspective: 1000px;
}

/* ── Hero App Mockup ── */
.hero-mockup {
  width: 100%;
  max-width: 500px;
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 24px 80px rgba(0, 0, 0, 0.8), 
    0 0 60px rgba(255, 255, 255, 0.05), /* Subtle white ambient glow */
    0 0 0 1px rgba(255, 255, 255, 0.25); /* Crisper white border */
  display: flex;
  flex-direction: column;
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.hero-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.hero-mockup__header {
  background: #ffffff; /* Solid White Header for contrast */
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D4D4D8;
}
.mockup-dot:nth-child(1) { background: #FF5F56; }
.mockup-dot:nth-child(2) { background: #FFBD2E; }
.mockup-dot:nth-child(3) { background: #27C93F; }

.mockup-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.75rem;
  font-family: var(--font);
  color: #000000;
  font-weight: 700;
  transform: translateX(-15px); /* Offset dots */
}

.hero-mockup__body {
  height: 480px;
  position: relative;
  background: #09090b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.mockup-screens {
  position: relative;
  width: 100%;
  height: 100%;
}

.mockup-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #000000;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-sequence 10s infinite;
}

/* ── Screen Sequences ── */
.mockup-screen--1 { animation-delay: 0s; }
.mockup-screen--2 { animation-delay: 2.5s; }
.mockup-screen--3 { animation-delay: 5.0s; }
.mockup-screen--4 { animation-delay: 7.5s; }

@keyframes hero-sequence {
  0%, 3% { opacity: 0; transform: translateY(16px); z-index: 1; }
  5%, 20% { opacity: 1; transform: translateY(0); z-index: 2; }
  25%, 100% { opacity: 0; transform: translateY(-16px); z-index: 1; }
}

/* Mobile: compact card that fits hero nicely */
@media (max-width: 768px) {
  .lp-hero__right {
    width: 100%;
    perspective: none;
    margin-top: 20px;
  }
  .hero-mockup {
    max-width: 90%;
    margin: 0 auto;
    transform: none;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.15);
  }
  .hero-mockup:hover {
    transform: none;
  }
  .hero-mockup__header {
    padding: 8px 12px;
  }
  .mockup-dot {
    width: 8px;
    height: 8px;
  }
  .mockup-title {
    font-size: 0.65rem;
  }
  .hero-mockup__body {
    height: 200px;
    padding: 12px;
  }
  .mockup-screens {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .mockup-screen {
    animation: hero-sequence 10s infinite;
    position: absolute;
    inset: 0;
    padding: 14px;
    border-radius: 8px;
    overflow: hidden;
  }
  .mockup-screen--1 { animation-delay: 0s; }
  .mockup-screen--2 { animation-delay: 2.5s; }
  .mockup-screen--3 { animation-delay: 5.0s; }
  .mockup-screen--4 { animation-delay: 7.5s; }
  /* Scale down inner content to fit */
  .ms-header { font-size: 0.75rem; margin-bottom: 10px; }
  .ms-skeleton { height: 10px; margin-bottom: 8px; border-radius: 4px; }
  .ms-label { font-size: 0.65rem; }
  .ms-flashcard { padding: 10px; font-size: 0.75rem; }
  .ms-option { padding: 6px 10px; font-size: 0.7rem; margin-bottom: 4px; }
  .ms-result-circle { width: 60px; height: 60px; }
  .ms-result-score { font-size: 1.2rem; }
}




/* ── Common Mockup Elements ── */
.ms-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 8px;
}

.ms-skeleton {
  background: #ffffff;
  border-radius: 4px;
  margin-bottom: 12px;
}
.ms-skeleton--title { height: 24px; width: 60%; margin-bottom: 24px; background: #ffffff; }
.ms-skeleton--text { height: 12px; width: 100%; opacity: 0.9; }
.ms-skeleton--text.block-1 { width: 90%; }
.ms-skeleton--text.block-2 { width: 75%; margin-bottom: 24px; }

.ms-highlight {
  background: #ffffff;
  border-left: 4px solid #F59E0B;
  padding: 12px;
  border-radius: 0 8px 8px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ms-highlight-icon { font-size: 1.2rem; }
.ms-highlight-text { font-size: 0.8rem; color: #000000; font-weight: 700; line-height: 1.4; }

/* ── Screen 2: Flashcards ── */
.ms-flashcard-scene {
  flex: 1;
  perspective: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ms-flashcard {
  width: 100%;
  height: 200px;
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  animation: card-flip 10s infinite;
}
@keyframes card-flip {
  0%, 25% { transform: rotateY(0deg); }
  28%, 100% { transform: rotateY(180deg); } /* Flips shortly after screen becomes visible */
}

.ms-flashcard-front, .ms-flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.ms-flashcard-front { background: #ffffff; border: 1px solid rgba(255,255,255,0.8); color: #000000; }
.ms-flashcard-back { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #FFFFFF; transform: rotateY(180deg); font-size: 0.85rem;}

/* ── Screen 3: Test ── */
.ms-options { display: flex; flex-direction: column; gap: 10px; }
.ms-option {
  height: 40px;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 0.8rem;
  color: #000000;
  font-weight: 600;
}
.ms-option--correct {
  animation: option-correct 10s infinite;
  justify-content: space-between;
}
@keyframes option-correct {
  0%, 53% { background: #ffffff; border-color: #ffffff; color: #000000; }
  56%, 100% { background: #DCFCE7; border-color: #22C55E; color: #166534; }
}
.ms-option-check {
  background: #22C55E;
  color: white;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.7rem;
  opacity: 0;
  animation: check-fade 10s infinite;
}
@keyframes check-fade {
  0%, 53% { opacity: 0; transform: scale(0.5); }
  56%, 100% { opacity: 1; transform: scale(1); }
}

/* ── Screen 4: Results ── */
.ms-result-circle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ms-result-circle svg { width: 160px; height: 160px; transform: rotate(-90deg); }
.ms-circle-bg { fill: none; stroke: #ffffff; stroke-width: 8; opacity: 0.3; }
.ms-circle-progress { 
  fill: none; 
  stroke: #22C55E; 
  stroke-width: 8; 
  stroke-dasharray: 251.2; 
  stroke-dashoffset: 251.2;
  stroke-linecap: round;
  animation: progress-fill 10s infinite;
}
@keyframes progress-fill {
  0%, 78% { stroke-dashoffset: 251.2; } /* Wait for screen to show */
  82%, 100% { stroke-dashoffset: 55.26; } /* 78% of 251.2 is 195.93. 251.2 - 195.93 = 55.26 */
}
.ms-result-score {
  position: absolute;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  opacity: 0;
  animation: score-fade 10s infinite;
}
@keyframes score-fade {
  0%, 78% { opacity: 0; transform: translateY(10px); }
  81%, 100% { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .lp-hero {
    flex-direction: column;
    padding-top: 80px;
    text-align: center;
  }
  .lp-hero__left { margin-bottom: 24px; }
  .lp-hero__title { font-size: 2.5rem; }
  .lp-hero__sub { font-size: 1.1rem; }
  .hero-mockup { max-width: 90%; margin: 0 auto; transform: none; }
  .hero-mockup__body { height: 220px; }
}
.lp-hero__title {
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin-bottom: 24px;
  color: transparent !important;
  background: linear-gradient(90deg, #fff, #999, #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: textShine 4s linear infinite;
  text-shadow: 0 0 40px rgba(255,255,255,0.2), 0 0 15px rgba(255,255,255,0.4);
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
  -webkit-text-fill-color: transparent !important;
}
.lp-hero__sub {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
}
.lp-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.lp-hero__trust {
  font-size: 0.85rem;
  color: #fff;
}

@media (max-width: 900px) {
  .lp-hero__title { font-size: 2.5rem; }
  .lp-hero__sub { font-size: 1.1rem; }
  /* Center the badge and CTA button on mobile */
  .lp-hero__badge {
    margin-left: auto;
    margin-right: auto;
    color: #ffffff !important;
  }
  .lp-hero__actions {
    align-items: center;
    width: 100%;
  }
  .lp-cta-btn {
    width: 100%;
    max-width: 340px;
    text-align: center;
    justify-content: center;
  }
}

/* 2. Hook */
.lp-hook {
  padding: 60px 20px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.01);
}

/* 3. Problem */
.lp-problem {
  padding: 100px 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.lp-problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.lp-problem__text p {
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 20px;
}
.lp-problem__text strong { color: #fff; }
.lp-problem__punchline {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff !important;
  margin-top: 30px;
  border-left: 4px solid #fff;
  padding-left: 16px;
}
.lp-mock-error {
  background: #111;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 16px;
  font-family: monospace;
  box-shadow: 10px 10px 0px rgba(0, 0, 0, 1), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: perspective(800px) rotateY(-10deg) rotateX(5deg);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: floatElement 6s ease-in-out infinite;
}
.lp-mock-error:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg) scale(1.05);
  box-shadow: 0 30px 60px rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.lp-mock-graph {
  height: 60px;
  background: repeating-linear-gradient(45deg, #333, #333 10px, #222 10px, #222 20px);
  margin: 20px 0;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .lp-problem__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* 4. Solution */
.lp-solution {
  padding: 40px 20px 100px;
  max-width: 800px;
  margin: 0 auto;
}
.lp-solution__card {
  position: relative;
  border-radius: 24px;
  color: #fff !important;
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0,0,0,1);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  padding: 50px;
}
.lp-solution__card::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, transparent 60%, rgba(255, 255, 255, 0.7) 80%, transparent 100%);
  animation: borderSpin 4s linear infinite;
  z-index: 0;
}
.lp-solution__card::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: #050505;
  border-radius: 23px;
  z-index: 1;
}
.lp-solution__card * {
  position: relative;
  z-index: 2;
}
.lp-solution__card:hover {
  transform: perspective(1000px) rotateX(3deg) rotateY(-3deg) scale(1.03);
  box-shadow: 0 50px 120px rgba(0,0,0,1), 0 0 60px rgba(255, 255, 255, 0.05);
}
.lp-solution__card p:not(:last-child) { margin-bottom: 24px; }

/* 5. Benefits */
.lp-benefits {
  padding: 80px 20px;
  background: #040406;
}
.lp-benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.lp-benefit-card {
  background: #060608;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: inset 1px 1px 0px rgba(255,255,255,0.05), 0 20px 40px rgba(0,0,0,0.8);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lp-benefit-card:hover {
  transform: perspective(1000px) rotateX(4deg) scale(1.03) translateY(-10px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 1px 1px 0px rgba(255,255,255,0.2), 0 40px 80px rgba(0,0,0,1), 0 0 60px rgba(255, 255, 255, 0.04);
  z-index: 2;
}
.lp-benefit-card__icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.lp-benefit-card__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.lp-benefit-card__desc {
  color: #fff;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.lp-benefit-card__meta {
  font-family: monospace;
  font-size: 0.75rem;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .lp-benefits__grid { grid-template-columns: 1fr; }
}

/* 6. How it Works */
.lp-how {
  padding: 100px 20px;
  max-width: 900px;
  margin: 0 auto;
}
.lp-how__steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.lp-how-step {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lp-how-step:hover {
  transform: scale(1.02) translateX(10px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: -10px 20px 40px rgba(0,0,0,0.5);
}
.lp-how-step__num {
  position: absolute;
  top: -30px;
  right: -10px;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
}
.lp-how-step__title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
  z-index: 1;
}
.lp-how-step__desc {
  color: #fff;
  z-index: 1;
}

/* 7. Experience Split */
.lp-experience {
  padding: 60px 20px 100px;
  max-width: 1000px;
  margin: 0 auto;
}
.lp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-radius: 24px;
  overflow: hidden;
}
.lp-split__col {
  padding: 50px 40px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lp-split__col:hover {
  transform: perspective(1000px) rotateX(2deg) scale(1.02);
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 0 40px rgba(255,255,255,0.02);
  z-index: 2;
}
.lp-split__col h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.lp-split__col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lp-split__col li {
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
}
.lp-split__col--bad {
  background: #0d0d0d;
  color: #fff;
}
.lp-split__col--good {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

@media (max-width: 768px) {
  .lp-split { grid-template-columns: 1fr; }
}

/* 8. Compare */
.lp-compare {
  padding: 80px 20px;
  background: #020202;
}
.lp-compare__table-wrap {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
}
.lp-compare__table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.lp-compare__table th, .lp-compare__table td {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff !important;
}
.lp-compare__table th {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}
.lp-compare__table th:nth-child(2),
.lp-compare__table td:nth-child(2) {
  background: rgba(255, 255, 255, 0.1);
  font-weight: bold;
}
.muted { color: #fff !important; opacity: 0.8; }

/* 9. Proof */
.lp-proof {
  padding: 100px 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.lp-proof__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lp-testimonial {
  background: #08080c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 16px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lp-testimonial:hover {
  transform: perspective(1000px) rotateY(-5deg) scale(1.03) translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 30px 30px 60px rgba(0,0,0,0.8);
  z-index: 2;
}
.lp-testimonial::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  font-family: serif;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}
.lp-testimonial p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.lp-testimonial__author {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

@media (max-width: 768px) {
  .lp-proof__grid { grid-template-columns: 1fr; }
}

/* 10. Features */
.lp-features {
  padding: 60px 20px 100px;
  max-width: 800px;
  margin: 0 auto;
}
.lp-features__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.lp-features__list li {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.5;
}
.lp-features__list strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .lp-features__list { grid-template-columns: 1fr; }
}

.lp-final-cta {
  padding: 120px 20px;
  background: transparent;
  color: #fff;
  text-align: center;
}
.lp-final-cta__content {
  max-width: 800px;
  margin: 0 auto;
}
.lp-final-cta h2 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #fff;
}
.lp-final-cta p {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 40px;
}
.lp-final-cta .lp-cta-btn {
  background: #fff;
  color: #000;
  box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.2);
}
.lp-final-cta .lp-cta-btn:hover {
  background: #f8f8f8;
  box-shadow: 6px 6px 0px rgba(255, 255, 255, 0.3);
}
.lp-final-cta__sub {
  margin-top: 24px;
  font-size: 0.85rem !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  .lp-final-cta h2 { font-size: 2rem; }
}

/* 12. FAQ */
.lp-faq {
  padding: 100px 20px;
  max-width: 800px;
  margin: 0 auto;
}
.lp-faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lp-faq__item {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.lp-faq__item summary {
  padding: 24px 0;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}
.lp-faq__item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: #fff;
  transition: transform 0.2s;
}
.lp-faq__item[open] summary::after {
  transform: rotate(45deg);
}
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__ans {
  padding: 0 0 24px 0;
  color: #fff;
  line-height: 1.6;
}

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

@keyframes textShine {
  to { background-position: 200% center; }
}

@keyframes floatElement {
  0% { transform: perspective(800px) rotateY(-10deg) rotateX(5deg) translateY(0px); }
  50% { transform: perspective(800px) rotateY(-10deg) rotateX(5deg) translateY(-15px); }
  100% { transform: perspective(800px) rotateY(-10deg) rotateX(5deg) translateY(0px); }
}

@keyframes pulseGlow {
  from { box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.2), 0 0 0px rgba(255, 255, 255, 0); }
  to { box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.2), 0 0 20px rgba(255, 255, 255, 0.2); }
}

@keyframes orbFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(50px) scale(1.2); }
}
@keyframes gridScroll {
  0% { background-position: 0 0; }
  100% { background-position: 0 50px; }
}
@keyframes typePop {
  0% { opacity: 0; filter: blur(20px); transform: scale(0.8) translateY(20px) rotateX(-20deg); letter-spacing: -0.2em; }
  100% { opacity: 1; filter: blur(0px); transform: scale(1) translateY(0) rotateX(0deg); letter-spacing: -0.05em; }
}

/* ═══ Exam Arena (High-Performance Decision Game) ═══ */
.card--arena {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(255, 255, 255, 0.02);
  min-height: 550px;
  display: flex;
  flex-direction: column;
}

.arena-hud {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
}

.arena-progress {
  width: 100%;
}

.arena-progress__bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.arena-progress__fill {
  height: 100%;
  background: #fff;
  width: 10%;
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.arena-progress__text {
  font-family: monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.arena-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
}

.arena-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arena-stat__label {
  font-family: monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}

.arena-stat__value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
}

.arena-timer {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
}

.arena-timer__svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.arena-timer__bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 6;
}

.arena-timer__fill {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.1s linear;
  stroke-linecap: round;
}

.arena-timer__text {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
}

.arena-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.arena-q {
  margin-bottom: 40px;
}

.arena-q__badge {
  display: inline-block;
  font-family: monospace;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.arena-q__text {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.arena-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.arena-choice-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: 16px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: left;
}

.arena-choice-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px) scale(1.02);
}

.arena-choice-btn:active {
  transform: scale(0.97);
}

.arena-choice-btn.correct {
  background: rgba(46, 213, 115, 0.1) !important;
  border-color: #2ed573 !important;
  color: #2ed573 !important;
  box-shadow: 0 0 20px rgba(46, 213, 115, 0.2);
}

.arena-choice-btn.wrong {
  background: rgba(255, 71, 87, 0.1) !important;
  border-color: #ff4757 !important;
  color: #ff4757 !important;
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.2);
}

.arena-feedback {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: fadeIn 0.3s ease;
}

.arena-feedback__content {
  text-align: center;
  max-width: 400px;
}

.arena-feedback__icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 20px;
}

.arena-feedback__msg {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.arena-feedback__insight {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* Arena Results */
.card--arena-results {
  text-align: center;
  padding: 60px 40px;
}

.arena-big-score {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
}

.arena-big-score__val {
  font-size: 6rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.arena-big-score__label {
  font-family: monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 10px;
}

.arena-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.arena-metric {
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

.arena-metric__label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.arena-metric__val {
  font-size: 1.5rem;
  font-weight: 800;
}

.arena-insight-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 30px;
  text-align: left;
  margin-bottom: 40px;
}

.arena-insight-box__title {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.arena-insight-box__text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.arena-results__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

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

@media (max-width: 768px) {
  .arena-hud { grid-template-columns: 1fr auto; }
  .arena-progress { grid-column: span 2; }
  .arena-choices { grid-template-columns: 1fr; }
  .arena-q__text { font-size: 1.5rem; }
  .arena-metrics { grid-template-columns: 1fr; }
}

.hist-card__score--arena {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  box-shadow: 2px 2px 0 rgba(255, 255, 255, 0.2);
}

/* Hero 3D Element Animation */
.lp-hero-3d-element {
  position: absolute;
  top: 40%;
  left: 65%;
  width: 500px;
  height: 500px;
  background-image: url('../assets/floating_3d_element.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
  pointer-events: none;
  animation: float3DElement 8s ease-in-out infinite, rotate3DElement 30s linear infinite;
  opacity: 0.8;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 40px rgba(255,255,255,0.1));
}

@keyframes float3DElement {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.02); }
}

@keyframes rotate3DElement {
  from { transform: rotate(0deg); }
  to { transform: rotate(36deg); /* subtle rotation */ }
}

@media (max-width: 1024px) {
  .lp-hero-3d-element {
    width: 350px;
    height: 350px;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.4;
  }
}

@media (max-width: 768px) {
  .lp-hero-3d-element {
    /* Use mobile-safe animation without perspective transforms */
    animation: float3DElementMobile 8s ease-in-out infinite !important;
    opacity: 0.35;
  }
}

@keyframes float3DElementMobile {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(-20px) scale(1.02); }
}

/* ══════════════════════════════════════════════
   CHAPTER COMPLETION SCREEN
   ══════════════════════════════════════════════ */

.chapter-complete {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  animation: ccFadeIn 0.6s ease-out;
}

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

.cc-container {
  max-width: 520px;
  width: 100%;
  text-align: center;
}

/* ── Check Ring Animation ── */
.cc-header {
  margin-bottom: 36px;
}

.cc-check-ring {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  position: relative;
}

.cc-check-svg {
  width: 72px;
  height: 72px;
}

.cc-check-circle {
  stroke: #22c55e;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  stroke-linecap: round;
  transition: none;
}

.cc-check-mark {
  stroke: #22c55e;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  transition: none;
}

.cc-check-ring--animate .cc-check-circle {
  animation: ccCircleDraw 0.6s ease-out 0.1s forwards;
}

.cc-check-ring--animate .cc-check-mark {
  animation: ccCheckDraw 0.4s ease-out 0.5s forwards;
}

@keyframes ccCircleDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes ccCheckDraw {
  to { stroke-dashoffset: 0; }
}

.cc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.cc-subtitle {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.4;
}

/* ── Performance Stats Grid ── */
.cc-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.cc-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color 0.3s ease;
}

.cc-stat:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.cc-stat__icon {
  font-size: 1.4rem;
}

.cc-stat__value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.cc-stat__label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ── Insight Box ── */
.cc-insight {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-insight__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  text-align: left;
}

.cc-insight__row--strong {
  background: rgba(34, 197, 94, 0.08);
  border-left: 3px solid rgba(34, 197, 94, 0.5);
}

.cc-insight__row--weak {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid rgba(245, 158, 11, 0.5);
}

.cc-insight__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cc-insight__text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

/* ── Confidence Message ── */
.cc-confidence {
  margin-bottom: 28px;
  padding: 0 12px;
}

.cc-confidence__text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  font-style: italic;
  margin: 0;
}

/* ── Progress Bar ── */
.cc-progress-reward {
  margin-bottom: 36px;
  padding: 0 4px;
}

.cc-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cc-progress-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.cc-progress-badge {
  font-size: 0.72rem;
  color: #22c55e;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
}

.cc-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
}

.cc-progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 6px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Action Buttons ── */
.cc-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
  margin: 0 auto;
}

.cc-btn-primary {
  padding: 15px 28px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  border-radius: 14px !important;
  letter-spacing: -0.01em;
}

.cc-btn-secondary {
  padding: 12px 24px !important;
  font-size: 0.85rem !important;
  border-radius: 12px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.cc-btn-secondary:hover {
  color: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

/* ── Mobile ── */
@media (max-width: 520px) {
  .cc-title { font-size: 1.5rem; }
  .cc-stats-grid { gap: 8px; }
  .cc-stat { padding: 16px 8px; }
  .cc-stat__value { font-size: 1.2rem; }
  .cc-insight__row { padding: 12px 14px; }
  .chapter-complete { padding: 28px 16px; }
  .dash-new-btn { width: 100%; margin-top: 8px; min-height: 48px; font-size: 1rem; }
}

/* ── Full Screen Welcome Intro ── */
.welcome-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-out, visibility 0.8s;
}

.welcome-intro.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease-out;
}

.welcome-intro__content {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.welcome-intro.is-active .welcome-intro__content {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile Footer Navigation ── */
.mobile-footer-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-footer-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10000;
    justify-content: space-around;
    align-items: center;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .mobile-footer__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .mobile-footer__link:hover,
  .mobile-footer__link:active {
    color: var(--text-heading);
  }

  /* Adjust body so the footer doesn't overlap text content */
  body {
    padding-bottom: 70px;
  }
}

/* ── PRICING PAGE STYLES ── */
.pricing-page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1rem;
  z-index: 2;
  overflow: hidden;
}

.pricing-ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
  animation: floatAmbient 10s infinite alternate ease-in-out;
}
.pricing-ambient-orb.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent), transparent);
  top: 10%;
  left: 10%;
}
.pricing-ambient-orb.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #3b82f6, transparent);
  bottom: 0%;
  right: 5%;
  animation-delay: -5s;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.1); }
}

.pricing-header-text {
  text-align: center;
  margin-bottom: 4rem;
  z-index: 2;
}
.pricing-header-text h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
}
.pricing-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 1rem auto 0;
  line-height: 1.6;
}

.pricing-glow-card-wide {
  position: relative;
  width: 100%;
  max-width: 1000px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20,20,20,0.8) 0%, rgba(10,10,10,0.9) 100%);
  padding: 1px;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.pricing-glow-card-wide::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}
.pricing-glow-card-wide:hover {
  transform: translateY(-8px);
}
.pricing-glow-card-wide:hover::before {
  opacity: 1;
}

.pricing-glow-card-wide::after {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center, var(--accent), transparent 70%);
  opacity: 0;
  z-index: -1;
  border-radius: 40px;
  filter: blur(30px);
  transition: opacity 0.4s ease;
}
.pricing-glow-card-wide:hover::after {
  opacity: 0.2;
}

.pricing-wide-inner {
  position: relative;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(30px);
  border-radius: 23px;
  padding: 4rem;
  display: flex;
  gap: 4rem;
  align-items: center;
  z-index: 2;
}
@media (max-width: 768px) {
  .pricing-wide-inner {
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    gap: 2.5rem;
  }
}

.pw-left {
  flex: 1;
  text-align: left;
}
@media (max-width: 768px) {
  .pw-left { text-align: center; }
}
.pw-badge {
  display: inline-block;
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.tier-name-large {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}
.tier-desc-large {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}
.price-amount-large {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin-bottom: 2rem;
}
.price-interval-large {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 0.5rem;
}
.btn--massive {
  font-size: 1.25rem;
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
}
.trial-microcopy-large {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #64748b;
}

.pw-right {
  flex: 1.2;
  text-align: left;
  border-left: 1px solid rgba(255,255,255,0.05);
  padding-left: 4rem;
}
@media (max-width: 768px) {
  .pw-right {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-left: 0;
    padding-top: 2.5rem;
  }
}
.pw-list-title {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 2rem;
}

.pricing-perks-spacious {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pricing-perks-spacious li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.5;
}
.perk-icon-wrapper {
  flex-shrink: 0;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.btn--glow-shine {
  width: 100%;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.btn--glow-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  animation: shine 5s infinite;
}
@keyframes shine {
  0%, 70% { left: -100%; }
  100% { left: 200%; }
}

.pricing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  width: 100%;
  max-width: 1100px;
  margin-top: 6rem;
  z-index: 2;
}
.pricing-feat-box {
  padding: 2.5rem;
  text-align: left;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.pricing-feat-box:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}
.feat-icon-large {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.pricing-feat-box h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.pricing-feat-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* AI Video - Pause Animation Support */
.vl-is-paused .vl-cinema__img {
  animation-play-state: paused !important;
}
\n/* ── 3D HOVER PRICING CARDS ── */\n.pricing-container { display: flex; flex-direction: column; gap: 2rem; max-width: 1000px; margin: 0 auto; }\n@media (min-width: 800px) { .pricing-container { flex-direction: row; align-items: stretch; } }\n.pricing-card-3d { flex: 1; position: relative; background: rgba(15,15,20, 0.6); backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 3rem; display: flex; flex-direction: column; overflow: hidden; transform-style: preserve-3d; will-change: transform; transition: border-color 0.4s ease, box-shadow 0.4s ease; }\n.pricing-card-3d:hover { border-color: rgba(255,255,255,0.2); box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(100,100,255,0.1); }\n.pricing-card-3d--pro { background: linear-gradient(145deg, rgba(20,20,30,0.8), rgba(10,10,15,0.95)); border: 1px solid rgba(138,43,226,0.3); box-shadow: 0 0 30px rgba(138,43,226,0.15); }\n.pricing-card-3d--pro:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 60px rgba(138,43,226,0.3); border-color: rgba(138,43,226,0.6); }\n.pricing-glare { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), transparent 60%); opacity: 0; transition: opacity 0.3s ease; mix-blend-mode: overlay; z-index: 10; }\n.card-content-3d { transform: translateZ(40px); z-index: 2; }\n.pricing-model-container { height: 200px; display: flex; justify-content: center; align-items: center; margin-bottom: 2rem; transform: translateZ(80px); }\n.pricing-model-img { max-width: 160px; max-height: 160px; animation: float3d 6s ease-in-out infinite; filter: drop-shadow(0 20px 20px rgba(0,0,0,0.5)); }\n@keyframes float3d { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-15px) rotate(2deg); } }\n.glow-border-wrap { position: absolute; inset: -2px; border-radius: 26px; z-index: -1; background: conic-gradient(from 0deg, transparent 0%, rgba(138,43,226,0.1) 20%, rgba(138,43,226,1) 50%, rgba(0,255,255,1) 80%, transparent 100%); animation: spin 4s linear infinite; opacity: 0.5; transition: opacity 0.4s ease; }\n.pricing-card-3d--pro:hover .glow-border-wrap { opacity: 1; }\n@keyframes spin { 100% { transform: rotate(360deg); } }\n.pricing-features-list { list-style: none; padding: 0; margin: 2rem 0; flex-grow: 1; display: flex; flex-direction: column; gap: 1rem; }\n.pricing-features-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; color: var(--text); }\n.pricing-features-list svg { flex-shrink: 0; color: #fff; opacity: 0.8; }
