/* Páginas do cliente (criar conta, minha conta, adicionar playlist, ativar). Usa os tokens de estilo.css. */

.pagina { padding: 44px 0 40px; }
.pagina-topo { max-width: 680px; margin-bottom: 30px; }
.pagina-topo h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 12px; text-wrap: balance; }
.pagina-topo p { color: var(--mut); font-size: 1.06rem; text-wrap: pretty; }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.duas.larga-esq { grid-template-columns: 1.05fr .95fr; }
.centro { max-width: 480px; margin: 0 auto; }

/* cartão */
.painel { background: var(--sup); border: 1px solid var(--linha); border-radius: var(--r-lg); padding: 26px; }
.painel + .painel { margin-top: 20px; }
.duas > .painel + .painel, .duas > .painel { margin-top: 0; }
.painel h2 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 14px; }
.painel p { color: #cfcfdb; }
.painel .peq, .peq { font-size: .9rem; }
.mut { color: var(--mut); }
.painel-titulo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.painel-titulo h2 { margin: 0; }

/* campos */
.campo { margin-top: 16px; }
.campo:first-of-type { margin-top: 0; }
.campo label { display: block; font-weight: 650; font-size: .95rem; margin-bottom: 7px; }
.campo input, .campo textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--txt); background: var(--sup2);
  border: 1px solid #34344a; border-radius: 12px; padding: 13px 14px; min-height: 52px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.campo textarea { min-height: 112px; resize: vertical; word-break: break-all; line-height: 1.5; }
.campo input::placeholder, .campo textarea::placeholder { color: #6f6f85; }
@media (hover: hover) { .campo input:hover, .campo textarea:hover { border-color: #4a4a62; } }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px rgba(225, 29, 46, .35); background: #20202d; }
.campo .ajuda { color: var(--mut); font-size: .88rem; margin-top: 7px; }
.campo-senha { position: relative; }
.campo-senha input { padding-right: 96px; }
.ver-senha {
  position: absolute; right: 6px; top: 6px; height: 40px; padding: 0 14px; border-radius: 9px; border: 0; cursor: pointer;
  background: transparent; color: var(--mut); font: inherit; font-size: .9rem; font-weight: 600; touch-action: manipulation;
  transition: color 150ms ease, background-color 150ms ease;
}
@media (hover: hover) { .ver-senha:hover { color: var(--txt); background: rgba(255, 255, 255, .07); } }
.codigo input { text-transform: uppercase; letter-spacing: .4em; font-size: 1.6rem; font-weight: 700; text-align: center; padding-left: 20px; }

/* caixa de aceite */
.aceite { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: .92rem; color: #cfcfdb; }
.aceite input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--acento); cursor: pointer; }
.aceite label { cursor: pointer; }

/* botões de formulário */
.acoes-form { margin-top: 20px; display: grid; gap: 10px; }
.bt.cheio { width: 100%; }
.bt.perigo { color: #ff8a93; border-color: #5a2a31; background: #1c1115; }
@media (hover: hover) { .bt.perigo:hover { background: #2a1519; border-color: #7a3640; color: #ffb0b6; } }
.bt.whats { background: #1f9d55; border-color: #1f9d55; color: #fff; }
@media (hover: hover) { .bt.whats:hover { background: #26b865; border-color: #26b865; } }
.bt.leve { background: transparent; }
.bt:disabled, .bt[aria-busy="true"] { opacity: .7; cursor: default; transform: none; }
.bt[type="submit"]:disabled::after, .bt.carregando::after {
  content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: gira .7s linear infinite;
}
@keyframes gira { to { transform: rotate(360deg); } }
.link-botao { background: none; border: 0; padding: 6px 2px; color: var(--acento-txt); font: inherit; font-size: .95rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; touch-action: manipulation; }
@media (hover: hover) { .link-botao:hover { color: #ffa0a8; } }

/* alertas (cor + ícone + texto: nunca só cor) */
.alerta { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--linha); background: var(--sup2); font-size: .96rem; margin-top: 14px; color: #e6e6ee; }
.alerta:empty { display: none; }
.alerta::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.alerta.info { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E"); color: #9db7ff; background: #141a2b; border-color: #2a3560; }
.alerta.info span { color: #dfe6ff; }
.alerta.ok { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); color: var(--ok); background: #0f1d17; border-color: #1d5a3d; }
.alerta.ok span { color: #d3f5e4; }
.alerta.aviso { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9L1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E"); color: #f5b84a; background: #1f1810; border-color: #5c4519; }
.alerta.aviso span { color: #fbe8c4; }
.alerta.erro { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E"); color: #ff8a93; background: #1c1115; border-color: #5a2a31; }
.alerta.erro span { color: #ffd9dc; }
.alerta.carrega::before { -webkit-mask: none; mask: none; background: none; border: 2.5px solid rgba(157, 183, 255, .3); border-top-color: #9db7ff; border-radius: 50%; animation: gira .8s linear infinite; }

/* linhas de dados */
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--linha); }
.kv:last-of-type { border-bottom: 0; }
.kv > span { color: var(--mut); font-size: .94rem; }
.kv > b { text-align: right; font-weight: 650; word-break: break-all; }
.kv .acao { display: inline-flex; align-items: center; gap: 10px; }

/* selos de situação */
.selo-s { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; border: 1px solid var(--linha); background: var(--sup2); color: var(--txt); }
.selo-s::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.selo-s.ok { color: var(--ok); border-color: #1d5a3d; background: #0f1d17; }
.selo-s.aviso { color: #f5b84a; border-color: #5c4519; background: #1f1810; }
.selo-s.erro { color: #ff8a93; border-color: #5a2a31; background: #1c1115; }
.selo-s.neutro { color: #cfcfdb; }

/* abas */
.abas { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--sup2); border: 1px solid var(--linha); border-radius: 14px; margin-bottom: 18px; }
.aba { min-height: 46px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--mut); font: inherit; font-weight: 650; font-size: .95rem; cursor: pointer; touch-action: manipulation; transition: background-color 150ms ease, color 150ms ease; line-height: 1.2; }
@media (hover: hover) { .aba:hover { color: var(--txt); } }
.aba[aria-selected="true"] { background: var(--acento); color: #fff; }

/* lista numerada de passos */
.lista-passos { list-style: none; counter-reset: p; display: grid; gap: 16px; padding: 0; }
.lista-passos li { counter-increment: p; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; color: #dcdce6; }
.lista-passos li::before { content: counter(p); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--acento); color: #fff; font-weight: 800; }
.lista-passos b { color: #fff; }
.lista-passos small { display: block; color: var(--mut); font-size: .9rem; margin-top: 2px; }

/* lista de vantagens */
.vantagens { list-style: none; display: grid; gap: 13px; padding: 0; margin: 0; }
.vantagens li { display: flex; gap: 12px; align-items: flex-start; color: #dcdce6; }
.vantagens svg { flex: none; margin-top: 3px; color: var(--ok); }

/* preço */
.preco-card { text-align: left; }
.preco-valor { font-size: clamp(2.3rem, 6vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.preco-valor small { font-size: 1rem; font-weight: 600; color: var(--mut); letter-spacing: 0; }
.preco-card hr { border: 0; border-top: 1px solid var(--linha); margin: 20px 0; }

/* contagem da sessão */
.tempo { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }

/* confirmação inline de apagar */
.confirmar { margin-top: 14px; padding: 16px; border-radius: 12px; background: #1c1115; border: 1px solid #5a2a31; }
.confirmar p { color: #ffd9dc; font-size: .95rem; margin-bottom: 12px; }
.confirmar .linha { display: flex; gap: 10px; flex-wrap: wrap; }
.confirmar .bt { flex: 1 1 140px; }

/* resumo da conta */
.ola { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ola h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 0; letter-spacing: -.02em; word-break: break-word; }
.ola p { color: var(--mut); margin-top: 4px; word-break: break-all; }

/* troca de etapa: entra com leve subida (240ms, ease-out) */
.etapa-entra { animation: entra var(--dur-3) var(--ease-out-quart); }

/* aviso sobre o app (rodapé das páginas) */
.nota-player { margin-top: 26px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--linha); background: rgba(255, 255, 255, .03); color: var(--mut); font-size: .88rem; }
.nota-player b { color: #dcdce6; }

[hidden] { display: none !important; }

@media (max-width: 860px) {
  .duas, .duas.larga-esq { grid-template-columns: 1fr; }
  .pagina { padding-top: 28px; }
  .painel { padding: 20px; }
}
@media (max-width: 480px) {
  .kv { flex-direction: column; gap: 2px; align-items: flex-start; }
  .kv > b { text-align: left; }
  .acoes-form .bt { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .alerta.carrega::before, .bt[type="submit"]:disabled::after, .bt.carregando::after { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
}
