/* Área de membros do Miafit — identidade da Laura (laranja → rosa, fundo claro, energia de academia).
   Sem framework e sem CDN: a política de segurança da página só aceita arquivos nossos.
   Feito primeiro para o celular, que é onde a aluna usa (na academia, entre uma série e outra). */

:root {
  --laranja: #ff7a00;
  --rosa: #f615a3;
  --degrade: linear-gradient(100deg, #ff7a00, #f615a3);
  --fundo: #fafafa;
  --carta: #ffffff;
  --texto: #1f1f1f;
  --apagado: #6b6b6b;
  --linha: #ececec;
  --ok: #17a673;
  --erro: #e21c1b;
  --sombra: 0 6px 24px rgba(31, 31, 31, .08);
  --raio: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--fundo);
  color: var(--texto);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 84px;
}
a { color: var(--rosa); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 8px; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
.some { display: none !important; }
.apagado { color: var(--apagado); }
.centro { text-align: center; }

/* ---------- estrutura ---------- */
.topo {
  background: var(--degrade); color: #fff; padding: 22px 20px 26px;
  border-radius: 0 0 26px 26px;
}
.topo h1 { color: #fff; }
.topo .marca { font-weight: 800; letter-spacing: .5px; opacity: .92; }
.conteudo { max-width: 680px; margin: 0 auto; padding: 18px 16px 0; }
.carta {
  background: var(--carta); border-radius: var(--raio); box-shadow: var(--sombra);
  padding: 18px; margin-bottom: 14px;
}
.linha-entre { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pilha { display: grid; gap: 10px; }

/* ---------- botões e campos ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--degrade); color: #fff; border: 0; border-radius: 999px;
  padding: 14px 24px; font-size: 16px; font-weight: 700; cursor: pointer; width: 100%;
  transition: transform .12s ease, filter .12s ease;
}
.botao:hover { filter: brightness(1.05); }
.botao:active { transform: scale(.98); }
.botao[disabled] { opacity: .55; cursor: progress; }
.botao.secundario { background: none; color: var(--texto); border: 1.5px solid var(--linha); }
.botao.pequeno { width: auto; padding: 9px 16px; font-size: 14px; }
.botao.perigo { background: none; color: var(--erro); border: 1.5px solid var(--erro); }

label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 6px; }
input, select, textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--linha); border-radius: 12px;
  font-size: 16px; background: #fff; color: var(--texto);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--rosa); outline-offset: 1px; }

.recado { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin: 12px 0; display: none; }
.recado.mostrar { display: block; }
.recado.erro { background: #fdecec; color: var(--erro); }
.recado.ok { background: #e8f8f1; color: var(--ok); }

/* ---------- progresso e gamificação ---------- */
.barra { background: var(--linha); border-radius: 999px; height: 10px; overflow: hidden; }
.barra > i { display: block; height: 100%; background: var(--degrade); width: 0; border-radius: 999px;
             transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.numero { font-size: 28px; font-weight: 800; }
.chama { font-size: 13px; font-weight: 700; color: var(--laranja); }
.selos { display: flex; flex-wrap: wrap; gap: 10px; }
.selo {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px;
  font-size: 11px; text-align: center; color: var(--apagado);
}
.selo .bolha {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #f1f1f1; font-size: 22px; filter: grayscale(1); opacity: .5;
}
.selo.ganha .bolha { background: var(--degrade); filter: none; opacity: 1; }
.selo.ganha { color: var(--texto); font-weight: 600; }

/* comemoração ao concluir (só uma vez, e só para quem não pediu menos movimento) */
.festa { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); z-index: 40; }
.festa .caixa { background: #fff; border-radius: 22px; padding: 28px; text-align: center; max-width: 320px;
                animation: entra .45s cubic-bezier(.2, 1.3, .4, 1); }
.festa .bolhao { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 14px; background: var(--degrade);
                 display: grid; place-items: center; font-size: 42px; animation: pulsa 1.2s ease-in-out infinite; }
@keyframes entra { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulsa { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) {
  .festa .caixa, .festa .bolhao, .barra > i { animation: none; transition: none; }
}

/* ---------- listas de treino ---------- */
.item {
  display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--linha);
  text-decoration: none; color: inherit;
}
.item:last-child { border-bottom: 0; }
.item .ordem { width: 34px; height: 34px; border-radius: 10px; background: #f4f4f4; display: grid;
               place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.item.feito .ordem { background: var(--ok); color: #fff; }
.item .nome { flex: 1; font-weight: 600; }
.item .abaixo { font-size: 12px; color: var(--apagado); font-weight: 400; }
.etiqueta { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: #f1f1f1; color: var(--apagado); }
.etiqueta.aviso { background: #fff3e0; color: #a35a00; }

/* ---------- rodapé de navegação ---------- */
.rodape {
  position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--linha);
  display: flex; justify-content: space-around; padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}
.rodape a { color: var(--apagado); text-decoration: none; font-size: 11px; display: grid; justify-items: center; gap: 2px; }
.rodape a.aqui { color: var(--rosa); font-weight: 700; }
.rodape .icone { font-size: 20px; }

/* ---------- vídeo ---------- */
.moldura { background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.moldura video { width: 100%; height: 100%; }
.moldura .aviso { color: #fff; font-size: 14px; opacity: .85; padding: 16px; text-align: center; }

/* ---------- painel do admin ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--linha); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--apagado); }
.admin .conteudo { max-width: 1000px; }
