:root {
  --wine: #3d2229;
  --wine-soft: #4a2a32;
  --pink: #e3889c;
  --pink-pale: #fff1f4;
  --pink-line: #f1d3da;
  --gold: #c9a227;
  --green-1: #25cc43;
  --green-2: #16a82e;
  --gray: #8a7a7e;
  --heading: 'Archivo Black', 'Arial Black', Arial, sans-serif;
  --script: 'Great Vibes', cursive;
  --body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  font-family: var(--body);
  color: var(--wine);
  background: var(--pink-pale);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.logo { font-family: var(--script); font-size: 34px; line-height: 1; text-decoration: none; color: var(--wine); }
.logo small {
  display: block; margin-top: 4px;
  font-family: var(--body); font-size: 11px; font-weight: bold;
  letter-spacing: 2px; text-transform: uppercase; color: var(--pink);
}

.btn-area {
  border: 0; border-radius: 10px;
  padding: 13px 22px;
  font-weight: bold; color: #fff;
  background: linear-gradient(180deg, var(--green-1), var(--green-2));
  box-shadow: 0 6px 16px rgba(22,168,46,.3);
  text-decoration: none; text-align: center;
}
.btn-area:disabled { background: #bdbdbd; box-shadow: none; cursor: wait; }
.btn-area.feito { background: #fff; color: var(--green-2); box-shadow: inset 0 0 0 2px var(--green-2); }
.btn-sec {
  border: 2px solid var(--pink-line); border-radius: 10px;
  padding: 11px 16px;
  background: #fff; color: var(--wine); font-weight: bold;
}
.btn-sec:disabled { opacity: .4; cursor: default; }
.link { background: none; border: 0; color: var(--wine); text-decoration: underline; font-size: 14px; }

.aviso-demo {
  background: #fff7d6; color: #6b5300;
  border: 1px solid #f0dc8a; border-radius: 10px;
  padding: 10px 14px; font-size: 14px;
}

/* ---------- Login / nova senha ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.auth-card {
  width: 100%; max-width: 420px;
  background: #fff; border-radius: 18px;
  padding: 34px 28px 28px;
  box-shadow: 0 20px 50px rgba(61,34,41,.15);
  text-align: center;
}
.auth-card .logo { display: inline-block; margin-bottom: 22px; }
.auth-card .aviso-demo { margin-bottom: 18px; text-align: left; }
.auth-card h1 { font-family: var(--heading); font-size: 22px; margin-bottom: 6px; }
.auth-card .sub { color: var(--gray); font-size: 15px; margin-bottom: 20px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.auth-card label { font-weight: bold; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.auth-card input {
  font: inherit; font-weight: normal; font-size: 16px;
  padding: 12px 14px;
  border: 2px solid var(--pink-line); border-radius: 10px;
  color: var(--wine);
}
.auth-card input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(227,136,156,.2); }
.auth-card .btn-area { margin-top: 4px; font-size: 16px; }
.auth-card .link { align-self: center; }
.msg { font-size: 14px; min-height: 1em; }
.msg.erro { color: #b3261e; }
.msg.ok { color: var(--green-2); }
.auth-rodape { margin-top: 22px; font-size: 13px; color: var(--gray); }

/* ---------- Área da aluna ---------- */
.topo {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(61,34,41,.08);
}
.topo-usuario { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--gray); min-width: 0; }
.topo-usuario span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-sair { border: 0; background: var(--pink-pale); color: var(--wine); font-weight: bold; padding: 8px 14px; border-radius: 8px; }

.area-main { max-width: 1240px; margin: 0 auto; padding: 24px 20px 60px; }
.area-main > .aviso-demo { margin-bottom: 18px; }

.progresso-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 24px;
  background: var(--wine); color: #fff;
  border-radius: 18px; padding: 22px 26px;
  margin-bottom: 24px;
}
.progresso-card h1 { font-family: var(--heading); font-size: clamp(18px, 3vw, 24px); }
.progresso-card p { opacity: .8; font-size: 15px; }
.progresso-card strong { font-family: var(--heading); font-size: 34px; color: var(--pink); grid-row: span 2; }
.barra { grid-column: 1; height: 12px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.barra span {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--gold));
  transition: width .5s ease;
}

.layout { display: grid; gap: 24px; }

.aula { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(61,34,41,.08); align-self: start; }
.video { position: relative; aspect-ratio: 16 / 9; background: #111; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-vazio {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: rgba(255,255,255,.75); text-align: center; padding: 20px;
}
.video-vazio span {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); font-size: 24px;
}
.aula-info { padding: 22px 24px 26px; }
.aula-modulo { font-size: 13px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; color: var(--pink); }
.aula-info h2 { font-family: var(--heading); font-size: clamp(20px, 3vw, 26px); line-height: 1.25; margin: 4px 0 8px; }
.aula-desc { color: #6a5a5e; margin-bottom: 20px; }
.aula-acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.aula-acoes .btn-sec { flex: 1 1 0; white-space: nowrap; }
.aula-acoes .btn-area { flex: 2 1 220px; }

.lateral { display: flex; flex-direction: column; gap: 18px; }

.cert-card {
  background: #fff; border-radius: 16px; padding: 18px 20px;
  border: 2px dashed var(--pink-line);
  display: flex; gap: 14px; align-items: center;
}
.cert-card .icone { font-size: 30px; }
.cert-card h3 { font-size: 16px; }
.cert-card p { font-size: 13px; color: var(--gray); }
.cert-card.liberado { border: 2px solid var(--gold); background: linear-gradient(135deg, #fffaf0, #fff); }
.cert-card.liberado .btn-area { margin-top: 10px; display: inline-block; padding: 9px 16px; font-size: 14px; }

.materiais {
  background: #fff; border-radius: 16px;
  padding: 16px 12px 10px;
  box-shadow: 0 10px 30px rgba(61,34,41,.08);
}
.materiais h3 { font-size: 16px; padding: 0 8px 8px; }
.materiais ul { list-style: none; }
.materiais a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px; border-radius: 10px;
  text-decoration: none; color: var(--wine);
}
.materiais a:hover { background: var(--pink-pale); }
.materiais .pdf {
  flex: 0 0 40px; height: 40px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--pink); color: #fff;
  font-size: 11px; font-weight: bold; letter-spacing: .5px;
}
.materiais strong { display: block; font-size: 14px; line-height: 1.3; }
.materiais small { display: block; font-size: 12px; line-height: 1.35; color: var(--gray); }

.modulos { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(61,34,41,.08); }
.mod + .mod { border-top: 1px solid var(--pink-line); }
.mod summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
}
.mod summary::-webkit-details-marker { display: none; }
.mod summary::after {
  content: ''; flex-shrink: 0;
  width: 8px; height: 8px;
  border-right: 2px solid var(--gray); border-bottom: 2px solid var(--gray);
  transform: rotate(45deg); margin-top: -4px;
  transition: transform .2s;
}
.mod[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.mod-num {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pink-pale); color: var(--wine);
  font-weight: bold; font-size: 14px;
}
.mod.completo .mod-num { background: var(--green-2); color: #fff; }
.mod-titulo { flex: 1; min-width: 0; font-weight: bold; font-size: 15px; line-height: 1.3; }
.mod-titulo small { display: block; font-weight: normal; font-size: 12px; color: var(--gray); }

.mod ul { list-style: none; padding: 0 10px 10px; }
.mod li button {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px;
  border: 0; border-radius: 10px;
  background: none; color: var(--wine);
  text-align: left; font-size: 14px; line-height: 1.35;
}
.mod li button:hover { background: var(--pink-pale); }
.mod li button.atual { background: var(--pink-pale); font-weight: bold; box-shadow: inset 3px 0 0 var(--pink); }
.check {
  flex: 0 0 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--pink-line);
  display: grid; place-items: center;
  font-size: 11px; color: transparent;
}
.feita .check { background: var(--green-2); border-color: var(--green-2); color: #fff; }

.estado { max-width: 520px; margin: 60px auto; padding: 0 20px; text-align: center; }
.estado h1 { font-family: var(--heading); font-size: 22px; margin-bottom: 10px; }
.estado p { color: #6a5a5e; margin-bottom: 18px; }

@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .lateral { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; padding-bottom: 4px; }
}

@media (max-width: 560px) {
  .topo { padding: 10px 16px; }
  .topo-usuario span { display: none; }
  .progresso-card { padding: 18px; }
  .aula-info { padding: 18px; }
}

@media (max-width: 700px) {
  .aula-acoes .btn-area { flex-basis: 100%; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  .barra span { transition: none; }
}
