:root {
  --rosa: #d6146f;
  --rosa-vivo: #ec3f8f;
  --hero: #ee4f9a;
  --fundo: #fbf3f7;
  --fundo-2: #f8e9f1;
  --texto: #1b1420;
  --suave: #5f5864;
  --trilha: #dddbdf;
  --raio: 18px;
  --sombra: 0 6px 18px rgba(120, 40, 90, .09);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: linear-gradient(180deg, var(--fundo), var(--fundo-2));
  background-attachment: fixed;
  color: var(--texto);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.3;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video { display: block; }
svg { display: block; }
h1, h2 { margin: 0; letter-spacing: -.02em; }
.tela { max-width: 480px; margin: 0 auto; min-height: 100dvh; animation: entra .2s ease; }
@keyframes entra { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Tela 1: início ---------- */
.hero { background: var(--hero); padding-top: env(safe-area-inset-top); }
.hero img { width: 100%; height: auto; }
.painel { position: relative; margin-top: -28px; padding: 22px 16px 118px; border-radius: 34px 34px 0 0; background: linear-gradient(180deg, #fff, var(--fundo) 40%); }
.atalhos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.atalho { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: var(--raio); background: #fff; color: var(--rosa); box-shadow: var(--sombra); }
.atalho svg { width: 34px; height: 34px; }
.sec { margin: 26px 2px 14px; font-size: 22px; font-weight: 600; }
.treinos { display: flex; flex-direction: column; gap: 18px; }
.treino { display: flex; align-items: center; width: 100%; min-height: 88px; border-radius: var(--raio); background: #fff; box-shadow: var(--sombra); overflow: hidden; text-align: left; }
.treino img { flex: none; width: 112px; height: 88px; object-fit: cover; border-radius: var(--raio); }
.treino b { flex: 1; min-width: 0; padding: 0 8px 0 16px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.chevron { flex: none; margin-right: 12px; color: var(--rosa); }

/* ---------- Tela 2: exercícios ---------- */
.lista { padding: calc(14px + env(safe-area-inset-top)) 16px 118px; }
.cab { position: relative; min-height: 76px; }
.voltar { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -6px; }
.cab h1 { margin-top: 4px; text-align: center; font-size: 27px; font-weight: 700; }
.grade-ex { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.ex { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px; border-radius: var(--raio); background: rgba(255, 255, 255, .92); box-shadow: var(--sombra); text-align: left; }
.ex img { width: 70%; aspect-ratio: 16 / 9.2; object-fit: cover; border-radius: 14px; background: #eee8ec; }
.play { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: 10px; border: 2.5px solid #8b8790; border-radius: 50%; color: #8b8790; }
.ex.feito .play { border-color: var(--rosa); color: var(--rosa); }
.iniciar { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 5; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 14px; width: calc(100% - 32px); max-width: 448px; height: 60px; border-radius: 16px; background: var(--rosa); color: #fff; font-size: 21px; font-weight: 600; box-shadow: 0 10px 24px rgba(214, 20, 111, .35); }
.vazio { margin-top: 34px; text-align: center; color: var(--suave); }
.grupo { margin: 24px 2px 0; font-size: 18px; font-weight: 700; }
.grupo + .grade-ex { margin-top: 10px; }

/* ---------- Tela 3: player ---------- */
.player { display: flex; flex-direction: column; height: 100dvh; min-height: 560px; background: linear-gradient(180deg, #fff, var(--fundo)); }
.palco { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; border-radius: 0 0 26px 26px; background: #2d2a2e; }
.palco video { width: 100%; height: 100%; object-fit: cover; background: #2d2a2e; }
.palco.deitado video { object-fit: contain; }
.flut { position: absolute; top: calc(10px + env(safe-area-inset-top)); z-index: 2; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.flut.esq { left: 10px; }
.flut.dir { right: 10px; }
.flut.on svg { fill: currentColor; }
.ctrl { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(180deg, rgba(40, 36, 40, 0), rgba(40, 36, 40, .86) 60%); color: #fff; }
.prog { height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .55); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; border-radius: 9px; background: var(--rosa-vivo); }
.ctrl-linha { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.ctrl-linha .tempo { flex: 1; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ctrl-linha button { display: flex; color: #fff; }
.baixo { flex: none; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); text-align: center; }
.anel-linha { display: flex; align-items: center; justify-content: space-between; }
.seta { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #55505a; box-shadow: var(--sombra); }
.seta[disabled] { opacity: .35; cursor: default; }
.anel { position: relative; width: 172px; height: 172px; }
.anel svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anel span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.serie { margin-top: 10px; font-size: 19px; font-weight: 500; }
.pontos { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.pontos i { width: 50px; height: 10px; border-radius: 9px; background: var(--trilha); }
.pontos i.on { background: var(--rosa-vivo); }

/* Fim do treino */
.fim { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 100dvh; padding: 24px; text-align: center; }
.fim-icone { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: var(--rosa); color: #fff; }
.fim h1 { font-size: 28px; }
.fim p { margin: 0; color: var(--suave); }
.botao { display: block; width: 100%; max-width: 340px; height: 56px; margin-top: 12px; border-radius: 16px; background: var(--rosa); color: #fff; font-size: 18px; font-weight: 600; }

/* ---------- Tela 4: progresso ---------- */
.progresso { padding: calc(30px + env(safe-area-inset-top)) 16px 118px; }
.progresso h1 { font-size: 27px; font-weight: 700; margin-left: 8px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.stat { padding: 16px 8px 18px; border-radius: var(--raio); background: rgba(255, 255, 255, .92); box-shadow: var(--sombra); text-align: center; }
.stat svg { width: 32px; height: 32px; margin: 0 auto; color: var(--rosa); }
.stat .fogo { color: #e0243b; }
.stat b { display: block; margin-top: 8px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 4px; font-size: 17px; font-weight: 500; line-height: 1.2; color: #2e2833; }
.cartao { margin-top: 18px; padding: 14px 12px 16px; border-radius: var(--raio); background: rgba(255, 255, 255, .92); box-shadow: var(--sombra); }
.cartao h2 { font-size: 20px; font-weight: 600; }
.grafico { width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.titulo-plano { margin: 26px 8px 12px; font-size: 20px; font-weight: 600; }
.plano { display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px 16px; border-radius: var(--raio); background: rgba(255, 255, 255, .92); box-shadow: var(--sombra); text-align: left; }
.plano > svg:first-child { flex: none; width: 36px; height: 36px; color: var(--rosa); }
.plano div { flex: 1; min-width: 0; }
.plano b { display: block; font-size: 17px; font-weight: 600; }
.plano span { display: block; margin-top: 4px; font-size: 16px; color: var(--suave); }
.plano .chevron { margin-right: 0; }
.plano.feita > svg:first-child { color: #16a34a; }
.foto-faixas { width: 100%; height: auto; margin-top: 30px; border-radius: var(--raio); }
.planos { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.dias { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.dia { padding: 10px; border-radius: 12px; background: var(--fundo); font-size: 14px; font-weight: 600; text-align: left; }
.dia.feito { background: var(--rosa); color: #fff; }

/* ---------- Menu inferior ---------- */
.nav { position: fixed; left: 50%; bottom: 0; z-index: 4; transform: translateX(-50%); display: none; width: 100%; max-width: 480px; padding: 14px 18px calc(12px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #fff; box-shadow: 0 -6px 20px rgba(120, 40, 90, .08); }
.nav.on { display: grid; grid-template-columns: repeat(4, 1fr); }
.nav button { position: relative; display: flex; justify-content: center; padding: 4px 0 12px; color: #55505a; }
.nav button svg { width: 32px; height: 32px; }
.nav button.on { color: var(--rosa); }
.nav button.on svg.preenche { fill: currentColor; }
.nav button.on::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 48px; height: 4px; margin-left: -24px; border-radius: 9px; background: var(--rosa); }

/* ---------- Telas pequenas ---------- */
@media (max-width: 350px) {
  .atalho svg { width: 28px; height: 28px; }
  .treino b { font-size: 16px; }
  .anel { width: 140px; height: 140px; }
  .anel span { font-size: 32px; }
  .stat span { font-size: 15px; }
}
@media (max-height: 680px) {
  .anel { width: 128px; height: 128px; }
  .anel span { font-size: 30px; }
  .serie { margin-top: 6px; font-size: 17px; }
  .pontos { margin-top: 8px; }
  .baixo { padding-top: 10px; }
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .tela { max-width: 760px; }
  .nav { max-width: 760px; }
  .iniciar { max-width: 460px; }
  .hero { max-height: 340px; overflow: hidden; }
  .hero img { margin-top: -30px; }
  .atalhos { max-width: 420px; margin: 0 auto; }
  .treinos { display: grid; grid-template-columns: 1fr 1fr; }
  .grade-ex { display: grid; grid-template-columns: 1fr 1fr; }
  .stats { max-width: 520px; margin-left: auto; margin-right: auto; }
  .foto-faixas { max-width: 520px; margin-left: auto; margin-right: auto; display: block; }
}

/* ---------- Computador ---------- */
@media (min-width: 1000px) {
  .tela { max-width: 1120px; }
  .nav { max-width: 520px; bottom: 16px; border-radius: 24px; box-shadow: 0 10px 30px rgba(120, 40, 90, .16); }

  .inicio { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 32px 24px 110px; }
  .hero { max-height: none; border-radius: 28px; overflow: hidden; }
  .hero img { margin: 0; }
  .painel { margin: 0; padding: 0; background: none; border-radius: 0; }
  .atalhos { max-width: none; }
  .treinos { display: flex; }
  .treino { cursor: pointer; transition: transform .15s; }
  .treino:hover, .ex:hover, .atalho:hover { transform: translateY(-2px); }

  .lista { padding-bottom: 120px; }
  .grade-ex { grid-template-columns: repeat(3, 1fr); }
  .ex { transition: transform .15s; }
  .iniciar { position: static; transform: none; margin: 28px auto 0; }

  .player { flex-direction: row; max-width: none; height: 100dvh; }
  .palco { border-radius: 0 26px 26px 0; }
  .baixo { display: flex; flex-direction: column; justify-content: center; width: 420px; padding: 24px 32px; }
  .anel { width: 200px; height: 200px; }

  .progresso { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-content: start; padding: 36px 24px 120px; }
  .progresso h1 { grid-column: 1 / -1; }
  .progresso .col { min-width: 0; }
  .stats { max-width: none; }
  .foto-faixas { max-width: none; margin-top: 18px; }
  .planos { display: grid; grid-template-columns: repeat(3, 1fr); }
}

/* Ícones dos atalhos mais cheios, como no desenho */
.atalho svg { stroke-width: 2.4; }
.atalho:nth-child(3) svg { stroke-width: 3.6; }


/* ---------- Planos prontos ---------- */
.etiqueta { display: inline-block; padding: 3px 9px; border-radius: 99px; background: #fce3ef; color: var(--rosa); font-size: 12px; font-weight: 700; vertical-align: middle; }
.plano-ativo { margin-top: 16px; padding: 16px; }
.plano-ativo h2 { margin-top: 8px; }
.plano-ativo p { margin: 8px 0 0; color: var(--suave); font-size: 14px; }
.plano-ativo .botao { max-width: none; height: 50px; font-size: 16px; }
.barra-plano { height: 8px; margin-top: 12px; border-radius: 9px; background: var(--trilha); overflow: hidden; }
.barra-plano i { display: block; height: 100%; border-radius: 9px; background: var(--rosa-vivo); }
.objetivos { display: flex; flex-direction: column; gap: 14px; }
.objetivo { padding: 12px; border-radius: var(--raio); background: #fff; box-shadow: var(--sombra); }
.objetivo-topo { display: flex; gap: 12px; }
.objetivo-topo img { flex: none; width: 76px; height: 76px; object-fit: cover; border-radius: 14px; }
.objetivo h3 { margin: 2px 0 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.objetivo p { margin: 4px 0 0; font-size: 13.5px; color: var(--suave); }
.duracoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.duracao { min-height: 48px; padding: 6px 4px; border-radius: 12px; background: #fdeef5; color: var(--rosa); font-size: 13px; font-weight: 600; }
.duracao b { font-size: 18px; font-weight: 800; }
.duracao.on { background: var(--rosa); color: #fff; }
.plano-desc { margin: 8px 4px 0; text-align: center; color: var(--suave); font-size: 15px; }
.resumo-plano { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.resumo-plano div { padding: 12px 4px; border-radius: 14px; background: #fff; box-shadow: var(--sombra); text-align: center; }
.resumo-plano b { display: block; font-size: 22px; font-weight: 800; color: var(--rosa); }
.resumo-plano span { display: block; font-size: 12.5px; color: var(--suave); }
.dias-lista { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.dia-linha { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 2px solid transparent; border-radius: 16px; background: #fff; box-shadow: var(--sombra); text-align: left; }
.dia-linha.hoje { border-color: var(--rosa); }
.dia-num { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fdeef5; color: var(--rosa); font-weight: 800; }
.dia-linha.feito .dia-num { background: var(--rosa); color: #fff; }
.dia-txt { flex: 1; min-width: 0; }
.dia-txt b { display: block; font-size: 15.5px; font-weight: 600; }
.dia-txt small { display: block; margin-top: 2px; font-size: 13px; color: var(--suave); }
.dia-linha .chevron { margin-right: 0; }

/* ---------- Perfil ---------- */
.perfil { padding: calc(30px + env(safe-area-inset-top)) 16px 118px; }
.perfil h1 { margin-left: 8px; font-size: 27px; font-weight: 700; }
.perfil-topo { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 14px; border-radius: var(--raio); background: #fff; box-shadow: var(--sombra); }
.avatar { flex: none; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--rosa); color: #fff; font-size: 28px; font-weight: 700; }
.nome-campo { flex: 1; min-width: 0; }
.nome-campo span, .dado span { display: block; font-size: 13px; color: var(--suave); }
.nome-campo input { width: 100%; margin-top: 2px; padding: 2px 0; border: 0; border-bottom: 2px solid #f3d3e2; background: none; font: inherit; font-size: 20px; font-weight: 600; color: var(--texto); outline: none; border-radius: 0; }
.nome-campo input:focus { border-color: var(--rosa); }
.dados { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dado { padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: var(--sombra); }
.dado div { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.dado input { width: 100%; min-width: 0; padding: 0; border: 0; background: none; font: inherit; font-size: 22px; font-weight: 700; color: var(--texto); outline: none; }
.dado em { flex: none; font-style: normal; font-size: 13px; color: var(--suave); }
.falta { min-height: 18px; margin: 12px 8px 0; font-size: 14px; font-weight: 600; color: var(--rosa); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 14px; border-radius: 99px; background: #fff; box-shadow: var(--sombra); font-size: 14px; font-weight: 600; color: #3c3540; }
.chip.on { background: var(--rosa); color: #fff; }
.perfil-links { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.perfil-links .plano > svg:first-child { width: 32px; height: 32px; }
.aviso-local { margin: 16px 8px 0; font-size: 13px; color: var(--suave); text-align: center; }

@media (min-width: 640px) {
  .objetivos { display: grid; grid-template-columns: 1fr 1fr; }
  .dias-lista { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .objetivos { grid-template-columns: repeat(3, 1fr); }
  .dias-lista { grid-template-columns: repeat(3, 1fr); }
  .resumo-plano { max-width: 520px; margin-left: auto; margin-right: auto; }
  .plano-desc { max-width: 620px; margin-left: auto; margin-right: auto; }
  .plano-ativo { max-width: 520px; }
  .perfil { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-content: start; padding: 36px 24px 120px; }
  .perfil h1 { grid-column: 1 / -1; }
  .perfil-col { min-width: 0; }
}


/* ---------- Login ---------- */
.entrada-painel { padding-bottom: 40px; min-height: 60vh; }
.entrada-logo { display: block; width: auto; height: 62px; margin: 2px auto 18px; }
.entrada h1 { font-size: 26px; font-weight: 700; text-align: center; }
.entrada form { margin-top: 18px; }
.entrada-sub { margin: 10px 4px 0; color: var(--suave); text-align: center; font-size: 15px; line-height: 1.45; }
.campo-entrada { display: block; margin-top: 12px; }
.campo-entrada span { display: block; margin: 0 4px 6px; font-size: 14px; font-weight: 600; color: #3c3540; }
.campo-entrada input { display: block; width: 100%; height: 54px; padding: 0 16px; border: 1.5px solid #eddbe5; border-radius: 14px; background: #fff; font: inherit; color: var(--texto); outline: none; }
.campo-entrada input:focus { border-color: var(--rosa); }
.entrada-msg { min-height: 20px; margin: 12px 4px 0; font-size: 14px; font-weight: 500; color: #c81e3a; text-align: center; line-height: 1.4; }
.entrada-msg.ok { color: #15803d; }
.entrada .botao { max-width: none; margin-top: 8px; }
.entrada .botao[disabled] { opacity: .7; cursor: default; }
.link-entrada { display: block; width: 100%; margin-top: 14px; padding: 4px; color: var(--rosa); font-size: 15px; font-weight: 600; text-align: center; }
.conta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 18px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .92); box-shadow: var(--sombra); }
.conta > span { min-width: 0; overflow-wrap: anywhere; font-size: 14px; color: var(--suave); }
.conta > div { display: flex; gap: 14px; }
.conta button, .conta a { color: var(--rosa); font-size: 14px; font-weight: 700; text-decoration: none; }
@media (min-width: 1000px) {
  .entrada { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding: 32px 24px; min-height: 100dvh; }
  .entrada .hero { border-radius: 28px; overflow: hidden; }
  .entrada-painel { min-height: 0; padding: 0; background: none; border-radius: 0; }
}
