:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eef4ff;
  --ink: #0b1220;
  --ink-soft: #4b5563;
  --ink-faint: #9aa4b2;
  --border: #e5e9f0;
  --white: #ffffff;
  --surface: #f7f9fc;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1120px;
  --max-mid: 840px;
  --max-narrow: 620px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

svg {
  display: block;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

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

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  border-color: var(--ink-faint);
  color: var(--ink);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 20px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 10px 26px rgba(37, 99, 235, 0.32);
}

.btn-on-dark {
  background: var(--white);
  color: var(--blue-dark);
}

.btn-on-dark:hover {
  background: #eef4ff;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}

.logo-text {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--ink-faint);
}

.lang-opt {
  padding: 2px 4px;
}

.lang-opt.active {
  color: var(--blue);
}

.lang-sep {
  color: var(--border);
}

/* ---------- Mobile menu (hamburger) ---------- */

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.menu-icon {
  width: 20px;
  height: 20px;
  display: flex;
}

.menu-icon svg {
  width: 100%;
  height: 100%;
}

.menu-icon-close {
  display: none;
}

.mobile-menu-toggle.open .menu-icon-open {
  display: none;
}

.mobile-menu-toggle.open .menu-icon-close {
  display: flex;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 18px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 20px 40px rgba(15, 23, 42, 0.12);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .btn {
  width: 100%;
}

/* ---------- Layout primitives ---------- */

.section {
  position: relative;
  padding: 120px 24px;
}

.section-tint {
  background: var(--surface);
}

.container-narrow {
  position: relative;
  max-width: var(--max-narrow);
  margin: 0 auto;
  text-align: center;
}

.container-mid {
  position: relative;
  max-width: var(--max-mid);
  margin: 0 auto;
}

.container-wide {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.lead {
  margin-top: 20px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.eyebrow {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--blue);
  margin: 0 0 18px;
}

/* ---------- Avatar placeholder ---------- */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  flex-shrink: 0;
}

.avatar-sm {
  width: 40px;
  height: 40px;
}

.avatar-sm svg {
  width: 20px;
  height: 20px;
}

.avatar-lg {
  width: 168px;
  height: 168px;
}

.avatar-lg svg {
  width: 76px;
  height: 76px;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 140px;
  padding-bottom: 0;
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100%);
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.display {
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero .lead {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.founder-signal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.founder-signal-text {
  text-align: left;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.founder-signal-text strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-inner .btn {
  margin-top: 28px;
}

.scarcity-note {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.scarcity-note .highlight {
  color: var(--blue);
  font-weight: 700;
}

.video-wrap {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  padding-bottom: 110px;
}

.video-caption {
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #1e3a8a 0%, var(--blue) 55%, #1d4ed8 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 40px 80px rgba(37, 99, 235, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.play-button {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease;
}

.play-button:hover {
  transform: scale(1.06);
}

.play-button svg {
  margin-left: 3px;
}

.play-button-sm {
  width: 46px;
  height: 46px;
}

/* ---------- Trust strip ---------- */

.trust {
  padding: 64px 24px 56px;
  text-align: center;
}

.trust-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-faint);
  margin: 0 0 28px;
}

.tools-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tool-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

.tool-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
}

/* ---------- Big bold statements ---------- */

.statement {
  padding: 100px 24px;
  text-align: center;
}

.statement-text {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink-faint);
}

.statement-text .highlight {
  color: var(--blue);
}

/* ---------- Meet the creator ---------- */

.creator-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: start;
}

.creator-photo {
  display: flex;
  justify-content: center;
}

.creator-text .eyebrow {
  margin-bottom: 14px;
}

.creator-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.creator-title {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-faint);
}

.creator-story {
  margin-top: 22px;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 600px;
}

/* ---------- Three step system (flowing, no boxes) ---------- */

.system-list {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.system-step {
  padding-top: 40px;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.system-step:first-child {
  border-top: none;
  padding-top: 0;
}

.system-step.visible {
  opacity: 1;
  transform: none;
}

.step-num {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.system-step h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.3;
}

.system-step p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.03rem;
  max-width: 620px;
}

/* ---------- Check rows (shared) ---------- */

.check-rows {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
}

.check-row:first-child {
  border-top: none;
}

.icon-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--blue);
}

/* ---------- Audience (flowing, no cards, no icons) ---------- */

.audience-flow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
  margin-top: 56px;
}

.audience-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.audience-item p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Video testimonials ---------- */

.video-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px 28px;
  margin-top: 56px;
}

.video-testimonial {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.video-testimonial.visible {
  opacity: 1;
  transform: none;
}

.video-testimonial-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, #1e3a8a 0%, var(--blue) 60%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 16px 32px rgba(37, 99, 235, 0.16);
}

.video-testimonial-name {
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.video-testimonial-result {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

.disclaimer-note {
  color: var(--ink-faint);
  font-size: 0.85rem;
  margin-top: 48px;
}

/* ---------- FAQ (no boxes, dividers only) ---------- */

.faq-list {
  margin-top: 48px;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  position: relative;
  padding-right: 30px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 1.2rem;
  color: var(--blue);
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  color: var(--ink-soft);
  padding-bottom: 22px;
  font-size: 0.96rem;
  max-width: 640px;
}

/* ---------- Pricing (single card) ---------- */

.pricing-card {
  position: relative;
  max-width: 440px;
  margin: 56px auto 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 30px 60px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.price {
  font-size: 2.9rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.price-tag {
  color: var(--ink-faint);
  font-weight: 500;
  font-size: 0.95rem;
}

.pricing-risk {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 26px;
}

.pricing-list {
  text-align: left;
  margin-bottom: 28px;
}

.pricing-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
}

.pricing-line:first-child {
  border-top: none;
}

.micro-note {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 16px;
}

/* ---------- Final CTA ---------- */

.final-cta {
  background: var(--blue);
  color: var(--white);
}

.final-cta h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.final-cta .lead {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.82);
}

.final-cta .btn {
  margin-top: 36px;
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 36px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: 0.9rem;
  max-width: 260px;
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-bottom p {
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.disclaimer {
  font-size: 0.76rem;
  color: var(--ink-faint);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .section {
    padding: 84px 20px;
  }

  .hero {
    padding-top: 108px;
  }

  .statement {
    padding: 76px 20px;
  }

  .creator-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .creator-photo {
    margin-bottom: 8px;
  }

  .creator-text {
    text-align: center;
  }

  .creator-story {
    margin-left: auto;
    margin-right: auto;
  }

  .audience-flow {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .video-wrap {
    padding-bottom: 72px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 12px 16px;
  }

  .header-actions {
    gap: 6px;
  }

  .btn {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .header-desktop-only {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .lang-toggle {
    padding: 6px 9px;
    font-size: 0.75rem;
  }

  .section {
    padding: 64px 18px;
  }

  .hero {
    padding-top: 96px;
  }

  .founder-signal {
    flex-direction: column;
    gap: 8px;
  }

  .founder-signal-text {
    text-align: center;
  }

  .video-wrap {
    margin-top: 40px;
    padding-bottom: 56px;
  }

  .play-button {
    width: 62px;
    height: 62px;
  }

  .avatar-lg {
    width: 128px;
    height: 128px;
  }

  .avatar-lg svg {
    width: 58px;
    height: 58px;
  }

  .system-list {
    gap: 64px;
  }

  .video-testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .final-cta h2 {
    font-size: 1.7rem;
  }

  .price {
    font-size: 2.3rem;
  }

  .pricing-card {
    padding: 30px 22px;
  }
}

@media (max-width: 420px) {
  /* Prevents the header (logo + lang toggle + Get Access button) from
     overflowing horizontally on very small phones. */
  .logo-text {
    display: none;
  }

  .header-actions {
    gap: 4px;
  }

  .lang-toggle {
    padding: 5px 7px;
    font-size: 0.7rem;
  }

  .btn {
    padding: 9px 12px;
    font-size: 0.82rem;
  }

  .display {
    font-size: 2.1rem;
  }

  .statement-text {
    font-size: 1.5rem;
  }

  .video-testimonial-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================================================
   Login / reset password modal
   ========================================================= */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.55);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25);
  padding: 40px 32px 32px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--ink-faint);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}

.modal-close:hover {
  background: var(--surface);
  color: var(--ink);
}

.modal h2 {
  font-size: 1.4rem;
}

.modal-sub {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.auth-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 14px;
}

.field-label:first-child {
  margin-top: 0;
}

.field-input {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
}

.field-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-message {
  margin-top: 14px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.form-error {
  color: #b91c1c;
  background: #fef2f2;
}

.form-success {
  color: #15803d;
  background: #f0fdf4;
}

.auth-form .btn {
  margin-top: 20px;
}

/* =========================================================
   Dashboard (members area)
   ========================================================= */

.dashboard-body {
  background: var(--surface);
}

.dashboard-app[hidden] {
  display: none;
}

.dashboard-loading {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--surface);
}

.dashboard-loading[hidden] {
  display: none;
}

.dashboard-loading p {
  font-size: 0.92rem;
  color: var(--ink-faint);
}

.dashboard-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  animation: dashboard-spin 0.8s linear infinite;
}

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

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.dashboard-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-user {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.dashboard-layout {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 63px);
}

.sidebar-overlay {
  display: none;
}

.dashboard-sidebar {
  width: 300px;
  flex-shrink: 0;
  padding: 24px 16px 40px;
  position: sticky;
  top: 63px;
  max-height: calc(100vh - 63px);
  overflow-y: auto;
}

.curriculum-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.curriculum-module {
  border-bottom: 1px solid var(--border);
}

.module-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 8px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.module-toggle::after {
  content: "+";
  color: var(--blue);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.curriculum-module.open .module-toggle::after {
  content: "\2212";
}

.lesson-list {
  display: none;
  flex-direction: column;
  padding-bottom: 8px;
}

.curriculum-module.open .lesson-list {
  display: flex;
}

.lesson-item {
  text-align: left;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--ink-soft);
  padding: 10px 12px 10px 20px;
  cursor: pointer;
}

.lesson-item:hover {
  background: var(--blue-light);
  color: var(--ink);
}

.lesson-item.active {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 600;
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  padding: 40px 32px 64px;
}

.lesson-header {
  max-width: 880px;
  margin: 0 auto 24px;
}

.lesson-header h1 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.lesson-header p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.dashboard-video-frame {
  max-width: 880px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .sidebar-toggle {
    display: flex;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    max-height: none;
    width: 300px;
    background: var(--white);
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 0 0 40px rgba(15, 23, 42, 0.15);
  }

  .dashboard-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(11, 18, 32, 0.45);
  }

  .dashboard-main {
    padding: 28px 20px 48px;
  }
}

@media (max-width: 560px) {
  .dashboard-user {
    display: none;
  }

  .modal {
    padding: 32px 22px 26px;
  }
}

/* =========================================================
   Chat-style FAQ widget
   ========================================================= */

.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(37, 99, 235, 0.32);
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.chat-toggle:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.chat-toggle-icon {
  width: 24px;
  height: 24px;
  display: flex;
}

.chat-toggle-icon svg {
  width: 100%;
  height: 100%;
}

.chat-icon-close {
  display: none;
}

.chat-widget.open .chat-icon-open {
  display: none;
}

.chat-widget.open .chat-icon-close {
  display: flex;
}

.chat-panel {
  display: none;
  flex-direction: column;
  width: min(340px, calc(100vw - 40px));
  max-height: min(480px, calc(100vh - 140px));
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 30px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.chat-widget.open .chat-panel {
  display: flex;
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  flex-shrink: 0;
}

.chat-panel-close {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--ink-faint);
  border-radius: 8px;
  cursor: pointer;
}

.chat-panel-close:hover {
  background: var(--surface);
  color: var(--ink);
}

.chat-panel-body {
  padding: 16px 18px 18px;
  overflow-y: auto;
  flex: 1;
}

.chat-question-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-greeting {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.chat-question {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.chat-question:hover {
  background: var(--blue-light);
  border-color: var(--blue);
}

.chat-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 4px;
  background: none;
  border: none;
  color: var(--blue);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.chat-back:hover {
  color: var(--blue-dark);
}

.chat-question-echo {
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink);
}

.chat-answer-bubble {
  margin-top: 10px;
  background: var(--blue-light);
  color: var(--ink);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 480px) {
  .chat-widget {
    right: 14px;
    bottom: 14px;
    gap: 10px;
  }

  .chat-panel {
    width: calc(100vw - 28px);
    max-height: min(440px, calc(100vh - 120px));
  }
}
