/* =====================================================================
   Portal de Alunas — Fernanda Crochê
   Folha de estilos única (CSS3 puro, sem framework).

   Organização:
   1. Tokens (variáveis)          5. Componentes compartilhados
   2. Reset base                  6. Página inicial
   3. Utilitários "luxo"          7. Página de autenticação / nova senha
   4. Animações                   8. Área da aluna (progresso, aulas, player)
                                  9. Página 404

   Breakpoints (iguais aos do projeto original):
   sm = 640px · md = 768px · lg = 1024px
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------------------- */
:root {
  --radius: 0.75rem;

  /* Paleta base (mesmos valores oklch do projeto original) */
  --background: oklch(0.18 0.02 40);
  --foreground: oklch(0.96 0.02 70);
  --card: oklch(0.22 0.025 40);
  --primary: oklch(0.78 0.14 80);
  --primary-foreground: oklch(0.18 0.02 40);
  --muted-foreground: oklch(0.75 0.03 70);
  --accent: oklch(0.4 0.12 30);
  --border: oklch(0.32 0.04 60 / 60%);
  --input: oklch(0.3 0.03 60);

  /* Paleta "luxo" */
  --gold: oklch(0.82 0.14 82);
  --gold-soft: oklch(0.7 0.1 78);
  --cream: oklch(0.95 0.03 85);
  --wine: oklch(0.38 0.15 22);
  --pine: oklch(0.32 0.08 150);
  --wood: oklch(0.28 0.05 50);
  --amber: oklch(0.65 0.16 55);

  /* Dourados usados diretamente nos componentes */
  --gold-hi: #f0c96a;   /* dourado claro (destaques, links) */
  --gold-mid: #d4a04a;  /* dourado médio (rótulos, bordas) */
  --gold-deep: #b8822b; /* dourado escuro (gradientes) */
  --ink: #3a2410;       /* texto sobre fundo dourado */

  /* Creme com transparência (equivalente ao text-cream/NN do original) */
  --cream-90: color-mix(in oklab, var(--cream) 90%, transparent);
  --cream-85: color-mix(in oklab, var(--cream) 85%, transparent);
  --cream-80: color-mix(in oklab, var(--cream) 80%, transparent);
  --cream-75: color-mix(in oklab, var(--cream) 75%, transparent);
  --cream-70: color-mix(in oklab, var(--cream) 70%, transparent);
  --cream-65: color-mix(in oklab, var(--cream) 65%, transparent);
  --cream-60: color-mix(in oklab, var(--cream) 60%, transparent);
  --cream-55: color-mix(in oklab, var(--cream) 55%, transparent);
  --cream-50: color-mix(in oklab, var(--cream) 50%, transparent);
  --cream-40: color-mix(in oklab, var(--cream) 40%, transparent);
  --cream-30: color-mix(in oklab, var(--cream) 30%, transparent);

  /* Verdes e vermelhos de feedback (tons "emerald" e "red") */
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --red-200: #fecaca;
  --red-400: #f87171;
  --red-500: #ef4444;

  /* Tipografia */
  --font-serif: "Cormorant Garamond", "Cinzel", Georgia, serif;
  --font-script: "Great Vibes", "Pinyon Script", cursive;
  --font-sans: "Inter", system-ui, sans-serif;

  /* Sombras genéricas */
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ---------------------------------------------------------------------
   2. RESET BASE
   --------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: var(--border);
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
  font-family: var(--font-sans);
}

body {
  min-height: 100vh;
  background: radial-gradient(
    ellipse at top,
    oklch(0.24 0.04 45) 0%,
    oklch(0.14 0.02 35) 60%,
    oklch(0.1 0.015 30) 100%
  );
  background-attachment: fixed;
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  letter-spacing: 0.01em;
  font-size: inherit;
  font-weight: inherit;
}

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

button {
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: inherit;
}

input, textarea {
  font: inherit;
  color: inherit;
  background: transparent;
}

img, svg, video, iframe {
  display: block;
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol { list-style: none; }

[hidden] { display: none !important; }

/* Barra de rolagem personalizada */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: oklch(0.14 0.02 35); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #b8822b, #6b4a18);
  border-radius: 10px;
}

/* ---------------------------------------------------------------------
   3. UTILITÁRIOS "LUXO"
   --------------------------------------------------------------------- */
.font-script { font-family: var(--font-script); }
.font-serif-display { font-family: var(--font-serif); }

.text-gradient-gold {
  background: linear-gradient(135deg, #f5d98a 0%, #d4a04a 35%, #f7e7a3 60%, #b8822b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #b8822b 0%, #f0c96a 50%, #b8822b 100%);
}

.border-gold { border-color: rgba(212, 165, 80, 0.5); }

.shadow-gold {
  box-shadow: 0 8px 40px -8px rgba(212, 165, 80, 0.35), 0 0 0 1px rgba(212, 165, 80, 0.15) inset;
}

.shadow-gold-strong {
  box-shadow: 0 0 60px -10px rgba(240, 201, 106, 0.5), 0 0 0 1px rgba(240, 201, 106, 0.3) inset;
}

.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 165, 80, 0.18);
}

.glass-dark {
  background: linear-gradient(135deg, rgba(30,18,12,0.7) 0%, rgba(20,12,8,0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 165, 80, 0.2);
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(240, 201, 106, 0.25), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Rótulo pequeno em caixa alta e dourado ("eyebrow") */
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--gold-mid);
}
@media (min-width: 640px) {
  .eyebrow { font-size: 0.75rem; line-height: 1rem; }
}

/* Linha dourada decorativa (1px) */
.gold-line {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 160, 74, 0.6), transparent);
}
.gold-line--top { top: 0; }
.gold-line--bottom { bottom: 0; }

/* ---------------------------------------------------------------------
   4. ANIMAÇÕES
   --------------------------------------------------------------------- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-float-in { animation: float-in 0.6s ease-out both; }

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
.animate-slide-in-left { animation: slide-in-left 0.5s ease-out both; }

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px -5px rgba(240, 201, 106, 0.4); }
  50% { box-shadow: 0 0 40px -5px rgba(240, 201, 106, 0.7); }
}
.animate-glow { animation: glow-pulse 3s ease-in-out infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.pulse-dot { animation: pulse-dot 1.6s ease-in-out infinite; }

/* ---------------------------------------------------------------------
   5. COMPONENTES COMPARTILHADOS
   --------------------------------------------------------------------- */

/* Layout de página ---------------------------------------------------- */
.page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Botões ---------------------------------------------------------------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #b8822b 0%, #f0c96a 50%, #b8822b 100%);
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  box-shadow: 0 8px 40px -8px rgba(212, 165, 80, 0.35), 0 0 0 1px rgba(212, 165, 80, 0.15) inset;
  transition: filter 0.15s ease, opacity 0.15s ease;
}
.btn-gold:hover { filter: brightness(1.1); }
.btn-gold:disabled { opacity: 0.6; cursor: default; }

.btn-gold--lg {
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.btn-gold--block {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.btn-gold--pill {
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
}
@media (min-width: 640px) {
  .btn-gold--pill { padding: 0.5rem 1.25rem; font-size: 0.875rem; line-height: 1.25rem; }
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(212, 160, 74, 0.5);
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-hi);
  transition: border-color 0.15s ease;
}
.btn-outline-gold:hover { border-color: var(--gold-hi); }

.btn-glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: var(--cream-90);
  transition: color 0.15s ease;
}
.btn-glass-pill:hover { color: var(--gold-hi); }
@media (min-width: 640px) {
  .btn-glass-pill { padding: 0.5rem 1.25rem; font-size: 0.875rem; line-height: 1.25rem; }
}

/* Cabeçalho de seção (rótulo + título + descrição) ---------------------- */
.section-head { text-align: center; }
.section-head__title {
  margin-top: 0.5rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  color: var(--cream);
}
.section-head__title em {
  font-style: italic;
}
.section-head__text {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--cream-65);
}
@media (min-width: 640px) {
  .section-head__title { font-size: 2.25rem; line-height: 2.5rem; }
  .section-head__text { font-size: 1rem; line-height: 1.5rem; }
}
@media (min-width: 768px) {
  .section-head__title { font-size: 3rem; line-height: 1; }
}

/* Hero (cabeçalho com a foto da professora) ----------------------------- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__online {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 20;
}
.hero__online-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
}
.hero__dot {
  position: relative;
  display: flex;
  height: 0.5rem;
  width: 0.5rem;
}
.hero__dot-ping {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background: var(--emerald-400);
  opacity: 0.75;
}
.hero__dot-core {
  position: relative;
  display: inline-flex;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: var(--emerald-500);
}
.hero__online-text {
  color: var(--cream-90);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.hero__online-count { font-weight: 600; }
.hero__online-long { display: none; }
.hero__online-short { display: inline; }

.hero__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background:
    radial-gradient(circle at 20% 30%, rgba(240,201,106,0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(180, 50, 40, 0.15), transparent 55%);
}
.hero .gold-line--top {
  background: linear-gradient(to right, transparent, rgba(212, 160, 74, 0.7), transparent);
}

.hero__grid {
  position: relative;
  margin: 0 auto;
  display: grid;
  max-width: 80rem;
  align-items: center;
  gap: 2rem;
  padding: 5rem 1rem 3rem;
}

.hero__photo-wrap { margin: 0 auto; }
.hero__photo { position: relative; }
.hero__photo-glow {
  position: absolute;
  inset: -0.75rem;
  border-radius: 9999px;
  opacity: 0.6;
  filter: blur(24px);
}
.hero__photo-ring {
  position: relative;
  height: 11rem;
  width: 11rem;
  overflow: hidden;
  border-radius: 9999px;
  /* Para exibir um anel dourado de 2px ao redor da foto, acrescente:
     box-shadow: 0 0 0 2px rgba(240,201,106,0.7), 0 0 60px -10px rgba(240,201,106,0.5); */
}
.hero__photo-ring img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.hero__badge {
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 9999px;
  padding: 0.25rem 1rem;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

.hero__text { text-align: center; }
.hero__eyebrow { margin-bottom: 0.75rem; }
.hero__title {
  font-size: 1.875rem;
  line-height: 1.1;
  color: var(--cream);
}
.hero__script {
  margin-top: 1rem;
  font-size: 3rem;
  line-height: 1;
  color: var(--gold-hi);
  filter: drop-shadow(0 4px 20px rgba(240, 201, 106, 0.4));
}
.hero__lead {
  margin: 1.5rem auto 0;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--cream-75);
}

@media (min-width: 640px) {
  .hero__online { right: 2rem; top: 1.5rem; }
  .hero__online-pill { padding: 0.5rem 1rem; font-size: 0.875rem; line-height: 1.25rem; }
  .hero__online-long { display: inline; }
  .hero__online-short { display: none; }
  .hero__grid { padding: 6rem 1.5rem 4rem; }
  .hero__photo-ring { height: 14rem; width: 14rem; }
  .hero__badge { font-size: 0.75rem; line-height: 1rem; }
  .hero__title { font-size: 2.25rem; }
  .hero__script { font-size: 3.75rem; }
  .hero__lead { font-size: 1rem; }
}
@media (min-width: 768px) {
  .hero__grid { grid-template-columns: auto 1fr; gap: 3rem; padding-top: 7rem; }
  .hero__photo-wrap { margin: 0; }
  .hero__photo-ring { height: 16rem; width: 16rem; }
  .hero__text { text-align: left; }
  .hero__title { font-size: 3rem; }
  .hero__script { font-size: 4.5rem; }
  .hero__lead { margin-left: 0; margin-right: 0; }
}
@media (min-width: 1024px) {
  .hero__grid { padding-left: 2rem; padding-right: 2rem; }
  .hero__title { font-size: 3.75rem; }
}

/* Cartão Pix ------------------------------------------------------------- */
.pix-section {
  position: relative;
  margin: 0 auto;
  max-width: 56rem;
  padding: 2.5rem 1rem;
}
.pix-section--compact { padding: 0; max-width: none; }

.pix-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 1.5rem;
}
.pix-card__blob {
  pointer-events: none;
  position: absolute;
  height: 10rem;
  width: 10rem;
  border-radius: 9999px;
  filter: blur(64px);
}
.pix-card__blob--left { left: -4rem; top: -4rem; background: rgba(240, 201, 106, 0.15); }
.pix-card__blob--right { right: -4rem; bottom: -4rem; background: rgba(154, 42, 31, 0.2); }

.pix-card__body { position: relative; text-align: center; }
.pix-card__tag {
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(212, 160, 74, 0.4);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.25rem 1rem;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold-hi);
}
.pix-card__title {
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--cream);
}
.pix-card__title .text-gradient-gold { font-weight: 600; font-style: italic; }
.pix-card__br { display: none; }

.pix-card__box {
  margin: 2rem auto 0;
  max-width: 36rem;
  border-radius: 20px;
  border: 1px solid rgba(212, 160, 74, 0.3);
  background: rgba(0, 0, 0, 0.4);
  padding: 1.25rem;
}
.pix-card__label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold-mid);
}
.pix-card__key {
  margin-top: 0.5rem;
  user-select: all;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
  color: var(--cream);
}
.pix-card__owner {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-style: italic;
  color: var(--cream-70);
}
.pix-card__copy {
  position: relative;
  margin-top: 1.5rem;
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
  border-radius: 9999px;
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink);
  transition: transform 0.15s ease;
}
.pix-card__copy:hover { transform: scale(1.02); }
.pix-card__copy:active { transform: scale(0.98); }
.pix-card__copy .shimmer { position: absolute; inset: 0; }
.pix-card__copy-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pix-card__trust {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 1rem;
  row-gap: 0.25rem;
  font-size: 11px;
  color: var(--cream-55);
}
.pix-card__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .pix-section { padding: 4rem 1.5rem; }
  .pix-section--compact { padding: 0; }
  .pix-card { padding: 2.5rem; }
  .pix-card__tag { font-size: 0.75rem; line-height: 1rem; }
  .pix-card__title { font-size: 1.875rem; line-height: 2.25rem; }
  .pix-card__br { display: block; }
  .pix-card__box { padding: 1.75rem; }
  .pix-card__key { font-size: 2.25rem; line-height: 2.5rem; }
  .pix-card__copy { font-size: 1rem; line-height: 1.5rem; }
  .pix-card__trust { font-size: 0.75rem; line-height: 1rem; }
}
@media (min-width: 768px) {
  .pix-card__title { font-size: 2.25rem; line-height: 2.5rem; }
}

/* Notificações ao vivo --------------------------------------------------- */
.notifs {
  pointer-events: none;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 50;
  display: flex;
  width: calc(100vw - 2rem);
  max-width: 24rem;
  flex-direction: column;
  gap: 0.5rem;
}
.notif {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 20px;
  padding: 0.75rem 1rem;
}
.notif__icon {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.notif__body { min-width: 0; flex: 1; }
.notif__msg {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: var(--cream);
}
.notif__time {
  font-size: 10px;
  color: rgba(212, 160, 74, 0.8);
}
@media (min-width: 640px) {
  .notifs { bottom: 1.5rem; left: 1.5rem; }
  .notif__msg { font-size: 0.875rem; line-height: 1.25rem; }
}

/* Rodapé ----------------------------------------------------------------- */
.footer {
  position: relative;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(212, 160, 74, 0.3);
  background: rgba(0, 0, 0, 0.4);
  padding-bottom: 2.5rem;
  padding-top: 3.5rem;
}
.footer .gold-line--top {
  background: linear-gradient(to right, transparent, var(--gold-mid), transparent);
}
.footer__inner {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0 1rem;
}
.footer__thanks { text-align: center; }
.footer__script {
  font-size: 3rem;
  line-height: 1;
  color: var(--gold-hi);
  filter: drop-shadow(0 4px 20px rgba(240, 201, 106, 0.3));
}
.footer__msg {
  margin: 1rem auto 0;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--cream-70);
}
.footer__pix { margin-top: 2.5rem; }
.footer__cols {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
  border-top: 1px solid rgba(212, 160, 74, 0.15);
  padding-top: 2rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--cream-65);
}
.footer__brand {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--cream);
}
.footer__brand-text {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--cream-55);
}
.footer__col-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold-mid);
}
.footer__list {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
}
.footer__list li + li { margin-top: 0.5rem; }
.footer__list a:hover { color: var(--gold-hi); }
.footer__copy {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(212, 160, 74, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--cream-40);
}
@media (min-width: 640px) {
  .footer { padding-top: 5rem; }
  .footer__inner { padding: 0 1.5rem; }
  .footer__script { font-size: 3.75rem; }
  .footer__msg { font-size: 1rem; line-height: 1.5rem; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Barras de progresso (usadas nos cards e no player) -------------------- */
.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cream-55);
}
.progress-meta__pct { color: var(--gold-hi); }
.progress-track {
  margin-top: 0.375rem;
  height: 0.375rem;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.5);
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.7s ease;
}

/* Mensagens de feedback -------------------------------------------------- */
.msg {
  border-radius: 16px;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.msg--error {
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: var(--red-200);
}
.msg--info {
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-200);
}
.msg--center { text-align: center; padding: 0.75rem 1rem; }

/* ---------------------------------------------------------------------
   6. PÁGINA INICIAL
   --------------------------------------------------------------------- */

/* Botão superior esquerdo (Entrar / Minhas aulas) */
.site-header {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
}
@media (min-width: 640px) {
  .site-header { left: 2rem; top: 1.5rem; }
}

/* Chamada para as aulas bloqueadas */
.cta-section {
  margin: 0 auto;
  max-width: 72rem;
  padding: 2.5rem 1rem;
}
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
}
.cta-card__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    radial-gradient(circle at 30% 20%, rgba(240,201,106,0.16), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(180,50,40,0.14), transparent 55%);
}
.cta-card__body { position: relative; }
.cta-card__icon {
  margin: 0 auto;
  display: flex;
  height: 4rem;
  width: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}
.cta-card__title {
  margin-top: 1.5rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  color: var(--cream);
}
.cta-card__title em { font-style: italic; }
.cta-card__text {
  margin: 1rem auto 0;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--cream-70);
}
.cta-card__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.cta-card__perks {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 2rem;
  row-gap: 0.75rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cream-55);
}
@media (min-width: 640px) {
  .cta-section { padding: 4rem 1.5rem; }
  .cta-card { padding: 3.5rem; }
  .cta-card__title { font-size: 2.25rem; line-height: 2.5rem; }
  .cta-card__text { font-size: 1rem; }
  .cta-card__perks { font-size: 0.75rem; line-height: 1rem; }
}
@media (min-width: 768px) {
  .cta-card__title { font-size: 3rem; line-height: 1; }
}

/* Depoimentos principais */
.testimonials {
  margin: 0 auto;
  max-width: 72rem;
  padding: 3.5rem 1rem;
}
.testimonials .section-head { margin-bottom: 2.5rem; }
.testimonials__grid {
  display: grid;
  gap: 1.5rem;
}
.testimonial {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 1.5rem;
  transition: border-color 0.15s ease;
}
.testimonial:hover { border-color: rgba(240, 201, 106, 0.6); }
.testimonial__quote {
  pointer-events: none;
  position: absolute;
  right: -2.5rem;
  top: -2.5rem;
  font-family: var(--font-serif);
  font-size: 12rem;
  line-height: 1;
  color: rgba(212, 160, 74, 0.1);
}
.testimonial__head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial__avatar {
  position: relative;
  display: flex;
  height: 4rem;
  width: 4rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
}
.testimonial__avatar span {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--ink);
}
.testimonial__name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--cream);
}
.testimonial__place {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(212, 160, 74, 0.9);
}
.testimonial__stars {
  margin-top: 0.25rem;
  display: flex;
  gap: 0.125rem;
}
.testimonial__text {
  position: relative;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--cream-85);
}
@media (min-width: 640px) {
  .testimonials { padding: 5rem 1.5rem; }
  .testimonials .section-head { margin-bottom: 3.5rem; }
  .testimonial { padding: 2rem; }
  .testimonial__avatar { height: 5rem; width: 5rem; }
  .testimonial__name { font-size: 1.25rem; }
  .testimonial__place { font-size: 0.75rem; line-height: 1rem; }
  .testimonial__text { font-size: 1rem; }
}
@media (min-width: 768px) {
  .testimonials__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------------
   7. AUTENTICAÇÃO / NOVA SENHA
   --------------------------------------------------------------------- */
.auth-main {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  padding: 4rem 1rem;
}
.auth-main--plain { padding: 0 1rem; }
.auth-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background:
    radial-gradient(circle at 20% 30%, rgba(240,201,106,0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(180, 50, 40, 0.15), transparent 55%);
}
.auth-wrap {
  position: relative;
  width: 100%;
  max-width: 28rem;
}
.auth-back {
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold-mid);
  transition: color 0.15s ease;
}
.auth-back:hover { color: var(--gold-hi); }

.auth-card {
  border-radius: 24px;
  padding: 1.5rem;
}
.auth-card--center {
  padding: 2rem;
  text-align: center;
  max-width: 28rem;
}
.auth-card__head { text-align: center; }
.auth-card__title {
  margin-top: 0.5rem;
  font-family: var(--font-script);
  font-size: 2.25rem;
  line-height: 2.5rem;
  color: var(--gold-hi);
}
.auth-card__text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--cream-70);
}
.auth-card__plain-title {
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--cream);
}
.auth-card__plain-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--cream-70);
}
.auth-card__plain-btn {
  margin-top: 1.5rem;
  display: inline-flex;
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.btn-google {
  margin-top: 1.5rem;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 9999px;
  background: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.btn-google:hover { background: color-mix(in oklab, var(--cream) 90%, transparent); }
.btn-google:disabled { opacity: 0.6; }

.auth-divider {
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--cream-40);
}
.auth-divider span {
  height: 1px;
  flex: 1;
  background: rgba(212, 160, 74, 0.3);
}

.auth-form > * + * { margin-top: 1rem; }
.auth-form--mt { margin-top: 1.5rem; }

.field { display: block; }
.field__label {
  margin-bottom: 0.375rem;
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--cream-60);
}
.field__input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(212, 160, 74, 0.3);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--cream);
}
.field__input::placeholder { color: var(--cream-30); }
.field__input:focus {
  border-color: var(--gold-hi);
  outline: none;
  box-shadow: 0 0 0 1px rgba(240, 201, 106, 0.6);
}

.auth-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--cream-70);
}
.auth-links p + p { margin-top: 0.5rem; }
.link-gold {
  color: var(--gold-hi);
  text-underline-offset: 2px;
}
.link-gold:hover { text-decoration: underline; }
.link-muted {
  color: var(--cream-60);
  text-underline-offset: 2px;
}
.link-muted:hover { text-decoration: underline; }

.auth-recovery-link {
  margin-top: 0.75rem;
  display: inline-flex;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-hi);
  text-underline-offset: 2px;
  text-decoration: underline;
}

@media (min-width: 640px) {
  .auth-card { padding: 2rem; }
  .auth-card--center { padding: 2rem; }
}

/* ---------------------------------------------------------------------
   8. ÁREA DA ALUNA
   --------------------------------------------------------------------- */

/* Navegação superior direita (Início / Sair) */
.portal-nav {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.portal-nav__btn {
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--cream-85);
  transition: color 0.15s ease;
}
.portal-nav__btn:hover { color: var(--gold-hi); }
@media (min-width: 640px) {
  .portal-nav { right: 2rem; top: 1.5rem; }
  .portal-nav__btn { padding: 0.5rem 1rem; font-size: 0.875rem; line-height: 1.25rem; }
}

/* Boas-vindas */
.welcome {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0 1rem 0.5rem;
  text-align: center;
}
.welcome__script {
  font-size: 1.875rem;
  line-height: 2.25rem;
  color: var(--gold-hi);
}
.welcome__text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--cream-70);
}
@media (min-width: 640px) {
  .welcome { padding-left: 1.5rem; padding-right: 1.5rem; }
  .welcome__script { font-size: 2.25rem; line-height: 2.5rem; }
  .welcome__text { font-size: 1rem; line-height: 1.5rem; }
}

/* Seção de progresso geral */
.progress-section {
  margin: 0 auto;
  max-width: 72rem;
  padding: 2.5rem 1rem;
}
.progress-card {
  border-radius: 24px;
  padding: 1.5rem;
}
.progress-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.progress-card__eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold-mid);
}
.progress-card__title {
  margin-top: 0.25rem;
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--cream);
}
.progress-card__title .text-gradient-gold { font-weight: 600; }
.progress-card__stats {
  display: flex;
  gap: 1.5rem;
  text-align: right;
}
.stat__value {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  line-height: 2.25rem;
  color: var(--cream);
}
.stat__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cream-55);
}
.progress-card__bar {
  position: relative;
  margin-top: 1.5rem;
  height: 0.75rem;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 1px rgba(212, 160, 74, 0.2);
}
.progress-card__fill {
  position: relative;
  height: 100%;
  border-radius: 9999px;
  transition: width 1s ease-out;
}
.progress-card__fill .shimmer { position: absolute; inset: 0; }
.progress-card__note {
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-style: italic;
  color: var(--cream-60);
}
@media (min-width: 640px) {
  .progress-section { padding: 3.5rem 1.5rem; }
  .progress-card { padding: 2.5rem; }
  .progress-card__eyebrow { font-size: 0.75rem; line-height: 1rem; }
  .progress-card__title { font-size: 1.875rem; line-height: 2.25rem; }
  .stat__value { font-size: 2.25rem; line-height: 2.5rem; }
  .stat__label { font-size: 0.75rem; line-height: 1rem; }
  .progress-card__note { font-size: 0.875rem; line-height: 1.25rem; }
}

/* Biblioteca de aulas */
.lessons {
  margin: 0 auto;
  max-width: 80rem;
  padding: 2.5rem 1rem;
}
.lessons .section-head { margin-bottom: 2rem; }
.lessons__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .lessons { padding: 4rem 1.5rem; }
  .lessons .section-head { margin-bottom: 3rem; }
  .lessons__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lessons__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.lesson-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(212, 160, 74, 0.25);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: var(--shadow-md);
  transition: all 0.5s ease;
}
.lesson-card:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(240, 201, 106, 0.6);
  box-shadow: 0 0 60px -10px rgba(240, 201, 106, 0.5), 0 0 0 1px rgba(240, 201, 106, 0.3) inset;
}
.lesson-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a0f08;
}
.lesson-card__img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.lesson-card:hover .lesson-card__img { transform: scale(1.1); }
.lesson-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
}
.lesson-card__num {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.25rem 0.625rem;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-hi);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lesson-card__play-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lesson-card__play {
  position: relative;
  cursor: pointer;
}
.lesson-card__play-glow {
  position: absolute;
  inset: -0.5rem;
  border-radius: 9999px;
  background: rgba(240, 201, 106, 0.3);
  filter: blur(24px);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.lesson-card:hover .lesson-card__play-glow { opacity: 1; }
.lesson-card__play-btn {
  position: relative;
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  transition: transform 0.15s ease;
}
.lesson-card:hover .lesson-card__play-btn { transform: scale(1.1); }
.lesson-card__play-btn svg {
  margin-left: 0.25rem;
  height: 1.5rem;
  width: 1.5rem;
}
.lesson-card__body { padding: 1.25rem; }
.lesson-card__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.375;
  color: var(--cream);
}
.lesson-card__progress { margin-top: 1rem; }
.lesson-card__cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: var(--gold-hi);
  transition: all 0.15s ease;
}
.lesson-card:hover .lesson-card__cta { gap: 0.625rem; }
.lesson-card__shine {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(240, 201, 106, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.lesson-card:hover .lesson-card__shine { opacity: 1; }
@media (min-width: 640px) {
  .lesson-card__play-btn { height: 4rem; width: 4rem; }
  .lesson-card__play-btn svg { height: 1.75rem; width: 1.75rem; }
  .lesson-card__title { font-size: 1.25rem; }
  .lesson-card__cta { font-size: 0.875rem; line-height: 1.25rem; }
}

/* Player em modal */
.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.player {
  position: relative;
  margin: 1.5rem 0;
  width: 100%;
  max-width: 64rem;
  padding: 0 1rem;
}
.player__topbar {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.player__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(212, 160, 74, 0.4);
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cream);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.player__back:hover { border-color: var(--gold-hi); color: var(--gold-hi); }
.player__close {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(212, 160, 74, 0.4);
  background: rgba(0, 0, 0, 0.7);
  color: var(--cream);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.player__close:hover { background: #000; color: var(--gold-hi); }

.player__frame {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(212, 160, 74, 0.3);
  background: #000;
}
.player__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.player__stage:fullscreen {
  aspect-ratio: auto;
  width: 100vw;
  height: 100vh;
}
.player__iframe-wrap {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.player__iframe {
  position: absolute;
  left: 50%;
  top: 50%;
  height: calc(100% + 130px);
  width: calc(100% + 2px);
  transform: translate(-50%, -50%);
  border: 0;
}
.player__shield {
  position: absolute;
  inset: 0;
  z-index: 10;
  height: 100%;
  width: 100%;
  cursor: pointer;
  background: transparent;
}
.player__paused {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player__paused-btn {
  display: flex;
  height: 4rem;
  width: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
}
.player__paused-btn svg {
  margin-left: 0.25rem;
  height: 1.75rem;
  width: 1.75rem;
}

/* Aviso quando o vídeo não pode ser carregado
   (página aberta por file://, rede fora, vídeo removido) */
.player__fallback {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.88);
}
.player__fallback-box { max-width: 34rem; }
.player__fallback-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--cream);
}
.player__fallback-text {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--cream-70);
}
.player__fallback-text code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.75rem;
  color: var(--gold-hi);
  white-space: nowrap;
}
.player__fallback-btn {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}

/* Variante em faixa: usada quando o vídeo pode estar apenas lento,
   para não cobrir a imagem */
.player__fallback--bar {
  inset: 0 0 auto 0;
  padding: 0.625rem 1rem;
  text-align: left;
  background: rgba(0, 0, 0, 0.82);
}
.player__fallback--bar .player__fallback-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: none;
}
.player__fallback--bar .player__fallback-title { font-size: 0.875rem; line-height: 1.25rem; }
.player__fallback--bar .player__fallback-text { margin-top: 0.125rem; font-size: 0.75rem; }
.player__fallback--bar .player__fallback-btn {
  margin-top: 0;
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
}

.player__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
  padding: 2rem 0.75rem 0.75rem;
  transition: all 0.5s ease-out;
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
}
.player__controls--hidden {
  pointer-events: none;
  transform: translateY(0.75rem);
  opacity: 0;
}

.portal-seek {
  height: 0.375rem;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
}
.portal-seek:focus { outline: none; }
.portal-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f7e7a3, #d4a04a);
  border: 1px solid rgba(160, 106, 24, 0.8);
  box-shadow: 0 2px 8px rgba(240, 201, 106, 0.5);
  cursor: pointer;
}
.portal-seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f7e7a3, #d4a04a);
  border: 1px solid rgba(160, 106, 24, 0.8);
  cursor: pointer;
}
.portal-seek::-moz-range-track {
  background: transparent;
}

.player__buttons {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ctrl-btn {
  display: flex;
  height: 2rem;
  width: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(212, 160, 74, 0.4);
  background: rgba(0, 0, 0, 0.6);
  color: var(--gold-hi);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.ctrl-btn:hover {
  transform: scale(1.05);
  border-color: var(--gold-hi);
  background: #000;
}
.ctrl-btn svg { height: 1rem; width: 1rem; }
.ctrl-btn svg.ml { margin-left: 0.125rem; }
.player__time {
  margin-left: 0.25rem;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--cream-80);
}
.player__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.player__brand {
  display: none;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold-mid);
}

.player__info {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.5rem;
}
.player__eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold-mid);
}
.player__title {
  margin-top: 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--cream);
}
.player__desc {
  margin-top: 0.5rem;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--cream-70);
}

.rating {
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
}
.rating__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cream-60);
}
.rating__stars {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.rating__stars button {
  display: flex;
  transition: transform 0.15s ease;
}
.rating__stars button:hover { transform: scale(1.25); }
.rating__avg {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--gold-hi);
}
.rating__avg span {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 400;
  color: var(--cream-55);
}
.rating__count {
  font-size: 10px;
  color: var(--cream-50);
}
.rating__thanks {
  margin-top: 0.5rem;
  font-size: 10px;
  font-style: italic;
  color: rgba(110, 231, 183, 0.8);
}

.star {
  filter: drop-shadow(0 2px 6px rgba(240, 201, 106, 0.5));
}

.player__progress { margin-top: 1.5rem; }
.player__progress .progress-meta { color: var(--cream-60); }

.comments {
  margin-top: 2rem;
  border-radius: 20px;
  padding: 1.25rem;
}
.comments__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--cream);
}
.comments__hint {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--cream-55);
}
.comments__textarea {
  margin-top: 0.75rem;
  display: block;
  width: 100%;
  resize: none;
  border-radius: 16px;
  border: 1px solid rgba(212, 160, 74, 0.3);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--cream);
}
.comments__textarea::placeholder { color: var(--cream-40); }
.comments__textarea:focus { border-color: var(--gold-hi); outline: none; }
.comments__foot {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.comments__sent {
  font-size: 0.75rem;
  line-height: 1rem;
  font-style: italic;
  color: var(--emerald-300);
}
.comments__note {
  font-size: 10px;
  color: var(--cream-40);
}
.comments__btn {
  flex-shrink: 0;
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink);
  transition: transform 0.15s ease;
}
.comments__btn:hover { transform: scale(1.03); }

.lesson-testimonials { margin-top: 2rem; }
.lesson-testimonials__head {
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.lesson-testimonials__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--cream);
}
.lesson-testimonials__tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cream-50);
  white-space: nowrap;
}
.lesson-testimonials__grid {
  display: grid;
  gap: 1rem;
}
.mini-testimonial {
  border-radius: 20px;
  padding: 1.25rem;
  transition: border-color 0.15s ease;
}
.mini-testimonial:hover { border-color: rgba(240, 201, 106, 0.5); }
.mini-testimonial__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mini-testimonial__avatar {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.mini-testimonial__name {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--cream);
}
.mini-testimonial__place {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cream-55);
}
.mini-testimonial__stars {
  margin-left: auto;
  display: flex;
  gap: 0.125rem;
}
.mini-testimonial__text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  font-style: italic;
  color: var(--cream-80);
}
.player__spacer { height: 2.5rem; }

@media (min-width: 640px) {
  .player { margin: 2.5rem 0; padding: 0 1.5rem; }
  .player__back { font-size: 0.875rem; line-height: 1.25rem; }
  .player__controls { padding-left: 1rem; padding-right: 1rem; padding-bottom: 1rem; }
  .player__buttons { gap: 0.75rem; }
  .ctrl-btn { height: 2.25rem; width: 2.25rem; }
  .player__time { font-size: 0.75rem; line-height: 1rem; }
  .player__brand { display: inline; }
  .player__title { font-size: 1.875rem; line-height: 2.25rem; }
  .player__desc { font-size: 1rem; line-height: 1.5rem; }
  .comments { padding: 1.75rem; }
  .comments__title { font-size: 1.5rem; line-height: 2rem; }
  .comments__btn { font-size: 0.875rem; line-height: 1.25rem; }
  .lesson-testimonials__title { font-size: 1.5rem; line-height: 2rem; }
  .lesson-testimonials__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .player__info { grid-template-columns: 1fr auto; align-items: end; }
  .player__title { font-size: 2.25rem; line-height: 2.5rem; }
}

/* Trava a rolagem do fundo enquanto o player está aberto */
body.player-open { overflow: hidden; }

/* ---------------------------------------------------------------------
   9. PÁGINA 404
   --------------------------------------------------------------------- */
.error-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: var(--background);
  padding: 0 1rem;
}
.error-page__box {
  max-width: 28rem;
  text-align: center;
}
.error-page__code {
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 700;
  color: var(--foreground);
}
.error-page__title {
  margin-top: 1rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: var(--foreground);
}
.error-page__text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}
.error-page__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.error-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) - 2px);
  background: var(--primary);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--primary-foreground);
  transition: background-color 0.15s ease;
}
.error-page__btn:hover { background: color-mix(in oklab, var(--primary) 90%, transparent); }

/* ---------------------------------------------------------------------
   10. GERADOR DE CERTIFICADO (certificado/index.html)
   --------------------------------------------------------------------- */
.cert-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 3rem 1rem 4rem;
}
.cert-wrap {
  position: relative;
  margin: 0 auto;
  max-width: 64rem;
}
.cert-head { text-align: center; }
.cert-title {
  margin-top: 0.5rem;
  font-size: 2.25rem;
  line-height: 2.5rem;
  color: var(--cream);
}
.cert-title em { font-style: italic; }
.cert-sub {
  margin: 0.75rem auto 0;
  max-width: 38rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--cream-70);
}

.cert-form {
  margin: 2rem auto 0;
  display: grid;
  gap: 1rem;
  border-radius: 24px;
  padding: 1.5rem;
}
.cert-form .field__input[type="date"] { color-scheme: dark; }
.cert-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cert-form .msg { margin: 0; }

.cert-preview {
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(212, 160, 74, 0.3);
  background: #f3e8d3;
}
.cert-preview canvas {
  display: block;
  width: 100%;
  height: auto;
}
.cert-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--cream-50);
}

@media (min-width: 640px) {
  .cert-page { padding: 4rem 1.5rem 5rem; }
  .cert-title { font-size: 3rem; line-height: 1; }
  .cert-form {
    grid-template-columns: minmax(0, 1fr) 15rem;
    align-items: end;
    padding: 2rem;
  }
  .cert-form__actions,
  .cert-form .msg { grid-column: 1 / -1; }
}
