/* ═══════════════════════════════════════════════════════════
   AudioAula — main.css  (design system premium)
   Fundo dark · neon ciano/roxo · glassmorphism · conversão
   ═══════════════════════════════════════════════════════════ */

/* Fontes: carregar apenas em base.html (evita pedido duplicado + “pulo” ao aplicar Syne antiga) */

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  /* Paleta */
  --bg:          #080b14;
  --bg-surface:  #0d1120;
  --bg-card:     #101626;
  --border:      rgba(99,179,237,.13);
  --border-glow: rgba(99,179,237,.35);

  --cyan:        #38bdf8;
  --cyan-dim:    rgba(56,189,248,.15);
  --cyan-glow:   rgba(56,189,248,.35);
  --purple:      #a78bfa;
  --purple-dim:  rgba(167,139,250,.12);
  --accent:      #f472b6;
  --accent-dim:  rgba(244,114,182,.15);

  --text:        #e2e8f0;
  --text-muted:  #7c8faa;
  --text-dim:    #4a5568;

  /* Tipografia — Plus Jakarta Sans para títulos (mais neutra que Syne) */
  --font-display: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Espaço */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Sombra */
  --shadow-card: 0 4px 32px rgba(0,0,0,.5), 0 1px 0 rgba(255,255,255,.04) inset;
  --shadow-glow-cyan:   0 0 40px rgba(56,189,248,.2);
  --shadow-glow-accent: 0 0 40px rgba(244,114,182,.2);

  /* Layout */
  --max-w: 1200px;
  --nav-h: 68px;

  /* Compatibilidade (templates / landing legados) */
  --muted: var(--text-muted);
}

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

html { scroll-behavior: smooth; }

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

/* ── Background ambient ─────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 10%, rgba(56,189,248,.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 80%, rgba(167,139,250,.07) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(244,114,182,.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Header / Nav ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8,11,20,.82);
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}
.site-logo__img { height: 36px; width: auto; }
.site-logo span {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s, background .2s;
}
.site-nav a:hover {
  color: var(--cyan);
  background: var(--cyan-dim);
}
.site-nav a i { font-size: 1rem; }

/* ── Main ───────────────────────────────────────────────────── */
.site-main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--nav-h) - 60px);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 28px 24px 32px;
  color: var(--text-dim);
  font-size: .8rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 14px;
}

.site-footer__nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s ease;
}

.site-footer__nav a:hover {
  color: var(--cyan);
}

.site-footer__tagline {
  margin: 0 0 10px;
  line-height: 1.5;
}

.site-footer__copy {
  margin: 0;
  font-size: .75rem;
  color: var(--text-dim);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 64px 24px 48px; text-align: center; }
  .hero__visual { order: -1; }
}

.hero__content { display: flex; flex-direction: column; gap: 28px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(56,189,248,.25);
  padding: 6px 14px;
  border-radius: 100px;
  width: fit-content;
}
@media (max-width: 860px) { .hero__eyebrow { margin: 0 auto; } }

.hero__eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}

/* Só heróis sem .hero__headline (landing usa .hero__headline — estilos só em landing.css) */
.hero h1:not(.hero__headline) {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #fff;
}

.hero h1:not(.hero__headline) em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}
@media (max-width: 860px) { .hero__sub { margin: 0 auto; } }

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
@media (max-width: 860px) { .hero__actions { justify-content: center; } }

.hero__trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
@media (max-width: 860px) { .hero__trust { justify-content: center; } }

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--text-muted);
}
.hero__trust-item i { color: var(--cyan); font-size: .9rem; }

/* Phone mockup */
.hero__visual { display: flex; justify-content: center; }

.phone-mockup {
  position: relative;
  width: 280px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
}

.phone-mockup::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 30px;
  background: radial-gradient(ellipse, rgba(56,189,248,.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 4s ease-in-out infinite reverse;
}

.phone-frame {
  position: relative;
  width: 100%;
  background: linear-gradient(145deg, #1a2035, #0d1120);
  border-radius: 42px;
  border: 2px solid rgba(99,179,237,.25);
  padding: 14px;
  box-shadow:
    0 40px 80px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 0 60px rgba(56,189,248,.12),
    0 0 120px rgba(167,139,250,.08);
  overflow: hidden;
}

.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg-surface);
  aspect-ratio: 9/19;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-screen-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  gap: 12px;
  overflow: hidden;
}

/* Fake app UI inside phone */
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-logo-text {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.app-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--accent));
}

.app-greeting { font-size: .65rem; color: var(--text-muted); }
.app-title { font-size: .85rem; font-weight: 600; color: #fff; margin-top: 2px; }

.app-progress-ring {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}
.app-progress-ring svg { width: 72px; height: 72px; }

.app-lessons { display: flex; flex-direction: column; gap: 7px; }
.app-lesson {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
}
.app-lesson-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  flex-shrink: 0;
}
.app-lesson-icon.cyan { background: var(--cyan-dim); color: var(--cyan); }
.app-lesson-icon.purple { background: var(--purple-dim); color: var(--purple); }
.app-lesson-icon.pink { background: var(--accent-dim); color: var(--accent); }

.app-lesson-info { flex: 1; min-width: 0; }
.app-lesson-title { font-size: .6rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-lesson-dur { font-size: .55rem; color: var(--text-muted); margin-top: 1px; }

.app-lesson-play {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid rgba(56,189,248,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem;
  color: var(--cyan);
  flex-shrink: 0;
}
.app-lesson--active .app-lesson-play {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* ── Stats Bar ──────────────────────────────────────────────── */
.stats-bar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (max-width: 640px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }

.stat-item {
  background: var(--bg-card);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: background .2s;
}
.stat-item:hover { background: rgba(56,189,248,.04); }

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-value span { color: var(--cyan); }
.stat-label { font-size: .8rem; color: var(--text-muted); }

/* ── Section headers ────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  color: #fff;
  line-height: 1.15;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Course cards ───────────────────────────────────────────── */
.grid-cards {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .3s, box-shadow .3s;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(56,189,248,.06), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), var(--shadow-glow-cyan);
}
.card:hover::before { opacity: 1; }

.card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-surface);
}
.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card__img { transform: scale(1.04); }

.card__body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.card__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: -.02em;
}
.card__price-sub {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 400;
  font-family: var(--font-body);
}

.card__desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.card__actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.card__actions .btn { flex: 1; justify-content: center; }

/* ── How it works ───────────────────────────────────────────── */
.how-it-works {
  padding: 0 24px 100px;
}

.how-steps {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

@media (max-width: 640px) {
  .how-steps { grid-template-columns: 1fr; gap: 24px; }
  .how-step::after { display: none; }
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 32px;
  position: relative;
}

.how-step::after {
  content: '';
  position: absolute;
  top: 56px;
  right: -1px;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan-dim), transparent);
}
.how-step:last-child::after { display: none; }

.how-step__num {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cyan);
  background: var(--cyan-dim);
  margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(56,189,248,.15);
  position: relative;
}

.how-step__icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.how-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.how-step p { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials {
  padding: 0 24px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.section-header--testimonials {
  align-items: center;
  text-align: center;
  width: 100%;
}

.testimonials-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  text-align: left;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.testimonial-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 8rem;
  line-height: 1;
  color: rgba(56,189,248,.06);
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  color: #fbbf24;
  font-size: .88rem;
  letter-spacing: 0;
  line-height: 1;
}

.testimonial-star--off {
  color: rgba(148, 163, 184, 0.35);
}

.testimonial-text {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

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

.testimonial-avatar--letter {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border-glow);
  background: linear-gradient(135deg, var(--cyan-dim), var(--purple-dim));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
}

.testimonial-avatar--img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-glow);
  flex-shrink: 0;
  display: block;
}

.testimonial-name { font-size: .875rem; font-weight: 600; color: #fff; }
.testimonial-role { font-size: .75rem; color: var(--text-muted); margin-top: 1px; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-section {
  padding: 0 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.section-header--faq {
  align-items: center;
  text-align: center;
  width: 100%;
}

.faq-section__inner {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.faq-section__more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item:hover {
  border-color: rgba(56, 189, 248, .25);
}

.faq-item.is-open {
  border-color: var(--border-glow);
  box-shadow: 0 0 32px rgba(56, 189, 248, .06);
}

.faq-item__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: none;
  background: transparent;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
}

.faq-item__trigger:hover {
  color: var(--cyan);
}

.faq-item__chevron {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform .25s ease, color .2s ease;
}

.faq-item.is-open .faq-item__chevron {
  transform: rotate(180deg);
  color: var(--cyan);
}

.faq-item__panel {
  padding: 0 22px 20px;
}

.faq-item__panel p {
  margin: 0;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
  white-space: pre-line;
}

.faq-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.faq-page__hero {
  text-align: center;
  margin-bottom: 40px;
}

.faq-page__hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  margin: 8px 0 12px;
}

.faq-page__lead {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto 20px;
}

.faq-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: .9rem;
  text-decoration: none;
}

.faq-page__back:hover {
  text-decoration: underline;
}

.faq-page__content {
  margin-bottom: 36px;
}

.faq-page__contact {
  background: linear-gradient(135deg, rgba(56,189,248,.08), rgba(167,139,250,.06));
  border: 1px solid var(--border-glow);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
}

.faq-page__contact h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 10px;
}

.faq-page__contact p {
  margin: 0 0 8px;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-page__contact a {
  color: var(--cyan);
}

.faq-page__empty {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 0;
}

/* ── CTA Section ────────────────────────────────────────────── */
.cta-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 100px;
}

.cta-inner {
  background: linear-gradient(135deg, rgba(56,189,248,.1) 0%, rgba(167,139,250,.1) 50%, rgba(244,114,182,.08) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--r-xl);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(56,189,248,.08), 0 0 160px rgba(167,139,250,.05);
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(56,189,248,.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1.2;
  max-width: 680px;
  margin: 0 auto 16px;
}
.cta-inner h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-inner p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 36px;
}

.cta-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.cta-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--text-muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
}
.cta-badge i { color: var(--cyan); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg);
}
.btn-primary:hover {
  background: #67d2fb;
  box-shadow: 0 0 24px rgba(56,189,248,.4);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(56,189,248,.2);
}
.btn-accent:hover {
  box-shadow: 0 6px 30px rgba(56,189,248,.4);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,.05);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.09);
  border-color: var(--border-glow);
}

.btn-lg { padding: 15px 30px; font-size: 1rem; border-radius: var(--r-md); }

.btn-outline-cyan {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
}
.btn-outline-cyan:hover {
  background: var(--cyan-dim);
  box-shadow: 0 0 20px rgba(56,189,248,.2);
}

/* ── Badges ─────────────────────────────────────────────────── */
.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(167,139,250,.25);
}

/* ── Glass panels ───────────────────────────────────────────── */
.glass {
  background: rgba(16,22,38,.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
}

.form-wide {
  max-width: 560px;
  margin: 60px auto;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-stack label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.input {
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}
.input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56,189,248,.12);
}

.input.textarea {
  min-height: 100px;
  resize: vertical;
}

/* ── Flash messages ─────────────────────────────────────────── */
.flash {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: .875rem;
}
.flash--success { background: rgba(56,189,248,.1); color: var(--cyan); border: 1px solid rgba(56,189,248,.25); }
.flash--danger  { background: rgba(244,114,182,.1); color: var(--accent); border: 1px solid rgba(244,114,182,.25); }
.flash--warning { background: rgba(251,191,36,.08); color: #fbbf24; border: 1px solid rgba(251,191,36,.2); }
.flash--info    { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(56,189,248,.25); }

/* ── Product detail ─────────────────────────────────────────── */
.detail {
  max-width: 720px;
  margin: 60px auto;
  padding: 48px;
}
@media (max-width: 600px) { .detail { padding: 28px 20px; margin: 24px 16px; } }

.detail__media { margin-bottom: 28px; border-radius: var(--r-md); overflow: hidden; }
.detail__img { width: 100%; max-height: 360px; object-fit: cover; display: block; }
.detail__meta { margin: 8px 0; }
.detail__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.025em;
  margin: 6px 0 20px;
}
.detail__body { color: var(--text-muted); line-height: 1.75; }
.detail__body p + p { margin-top: 12px; }
.detail__actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ── Admin ──────────────────────────────────────────────────── */
.admin-head {
  max-width: var(--max-w);
  margin: 40px auto 24px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-head h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.table {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  padding: 0 24px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table th, .table td {
  padding: 12px 16px;
  text-align: left;
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
}
.table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .1em;
}
.table td { color: var(--text); }
.table tr:hover td { background: rgba(56,189,248,.03); }
.table a { color: var(--cyan); text-decoration: none; font-weight: 500; }
.table a:hover { text-decoration: underline; }

.table-thumb__img { border-radius: 6px; object-fit: cover; display: block; }
.table-thumb__empty { color: var(--text-dim); }

.auth-card { max-width: 400px; margin: 80px auto; }
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
}

/* ── Checkout ───────────────────────────────────────────────── */
.checkout-start__head { margin-bottom: 28px; }
.checkout-start__head h1 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #fff; }
.checkout-start__eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 600; color: var(--cyan);
  margin-bottom: 8px;
}
.lead { font-size: 1rem; color: var(--text-muted); margin-top: 6px; }
.plan-badge { }

.checkout-start__highlights {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 28px;
}
.checkout-start__highlights p {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .875rem; color: var(--text-muted);
}
.checkout-start__highlights i { color: var(--cyan); margin-top: 2px; font-size: 1rem; flex-shrink: 0; }

.checkout-start__paymode {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  border: none; padding: 0;
}
.checkout-start__paymode-option {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.04);
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-size: .875rem; color: var(--text);
  transition: border-color .2s, background .2s;
}
.checkout-start__paymode-option:has(input:checked) {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  color: var(--cyan);
}

.checkout-start__submit { margin-top: 8px; }

.checkout-price-summary {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.checkout-price-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 4px 0;
}
.checkout-price-summary__row--total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text);
}
.checkout-price-summary__list--struck {
  text-decoration: line-through;
  opacity: 0.65;
}
.checkout-price-summary__discount {
  color: #6ee7b7;
  font-weight: 600;
}
.checkout-price-summary__total {
  font-size: 1.15rem;
  color: #fff;
}
.checkout-coupon-msg {
  margin: 12px 0 0;
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: var(--r-sm);
}
.checkout-coupon-msg.is-hidden { display: none; }
.checkout-coupon-msg--success {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.checkout-coupon-msg--error {
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.25);
}
.checkout-coupon-msg--warn,
.checkout-coupon-msg--info {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.checkout-coupon-field { margin-top: 4px; }
.checkout-coupon-field__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}
.checkout-coupon-field__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.checkout-coupon-field__row .input { flex: 1; min-width: 0; }
.checkout-coupon-field__row .btn { flex-shrink: 0; white-space: nowrap; }
.checkout-coupon-field__hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.is-hidden { display: none !important; }

.field-errors { font-size: .78rem; color: var(--accent); margin-top: 2px; }
.field-help { font-size: .78rem; color: var(--text-dim); margin-top: 3px; }

/* ── Preview course ─────────────────────────────────────────── */
.preview-course-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.preview-course-head h1 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #fff; }
.preview-course-head__actions { display: flex; gap: 10px; flex-shrink: 0; }

.preview-discipline { margin-bottom: 32px; }
.preview-discipline h2 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700; color: #fff;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.preview-lesson-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.preview-lesson {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.preview-lesson--locked { opacity: .6; }

.preview-lesson__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.preview-lesson__title { font-size: .9rem; font-weight: 500; color: var(--text); }
.preview-lesson__player { width: 100%; height: 36px; accent-color: var(--cyan); }

.badge {
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: 100px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
}
.badge--free { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(56,189,248,.25); }
.badge--locked { background: rgba(255,255,255,.05); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Admin product form ─────────────────────────────────────── */
.form-stack--wide { max-width: 100%; }
.form-wide { max-width: 700px; }
.cover-preview { margin: 4px 0; }
.cover-preview__img { border-radius: var(--r-sm); border: 1px solid var(--border); }
.checkbox { flex-direction: row !important; align-items: center !important; gap: 10px !important; cursor: pointer; }
.input--select { appearance: auto; }
.preview-config { margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.preview-config h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.preview-config__list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.preview-config__discipline {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
}
.preview-config__discipline summary { font-size: .9rem; font-weight: 600; color: var(--text); cursor: pointer; }
.preview-config__lessons { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-left: 8px; }

/* ── Accessibility ──────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ── Empty states ───────────────────────────────────────────── */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Scroll animations ──────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-up { animation: fade-up .6s ease both; }
.anim-delay-1 { animation-delay: .1s; }
.anim-delay-2 { animation-delay: .2s; }
.anim-delay-3 { animation-delay: .3s; }
.anim-delay-4 { animation-delay: .4s; }

/* ── Responsive utilities ───────────────────────────────────── */
@media (max-width: 480px) {
  .glass { padding: 24px 20px; border-radius: var(--r-lg); }
  .btn-lg { padding: 13px 22px; font-size: .925rem; }
  .grid-cards { padding: 0 16px 64px; }
  .stats-bar { padding: 0 16px 64px; margin: 0 16px; }
}
