/* Portal de autoatendimento Consiga Crédito (24/10/2026). Celular primeiro; no desktop a tela fica centralizada como um celular. */
:root {
  --verde: #0B6B4F; --verde-escuro: #084D39; --verde-claro: #E7F3EE; --verde-fundo: #F1F6F3;
  --texto: #15202B; --texto-2: #3D4B5A; --texto-3: #5B6B7B; --borda: #DDE3EA; --borda-2: #C9D2DC; --fundo: #F4F6F8; --branco: #FFFFFF;
  --laranja: #C97A08; --laranja-fundo: #FFF9EE; --laranja-borda: #E89B1C; --laranja-texto: #7A4B00;
  --vermelho-fundo: #FFF4F2; --vermelho-borda: #F3C4BC; --vermelho-texto: #8A2E1F;
  --azul-fundo: #E3EFFA; --azul-texto: #1F4D7A;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #E9EDF1; }
body { font-family: Inter, system-ui, -apple-system, sans-serif; color: var(--texto); -webkit-font-smoothing: antialiased; }
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--fundo); display: flex; flex-direction: column; }
@media (min-width: 540px) { #app { min-height: calc(100dvh - 32px); margin: 16px auto; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 40px rgba(21, 32, 43, .12); } }

.topo { background: var(--branco); padding: calc(20px + env(safe-area-inset-top)) 24px 16px; border-bottom: 1px solid var(--borda); display: flex; flex-direction: column; gap: 10px; }
.marca { display: flex; align-items: center; gap: 10px; }
.marca .logo { width: 36px; height: 36px; border-radius: 10px; background: var(--verde); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.marca .nome { font-weight: 700; font-size: 17px; }
.marca .selo { margin-left: auto; font-size: 12px; color: var(--texto-3); border: 1px solid var(--borda); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; }
h2 { margin: 0; font-size: 15px; font-weight: 600; }
p { margin: 0; line-height: 1.5; }
.sub { font-size: 14px; color: var(--texto-2); }
.mini { font-size: 12px; color: var(--texto-3); line-height: 1.45; }
.voltar { font-size: 13px; color: var(--texto-3); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; text-align: left; }

.conteudo { padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.rodape { position: sticky; bottom: 0; z-index: 5; background: var(--branco); border-top: 1px solid var(--borda); padding: 12px 24px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
label.botao { margin: 0; color: var(--verde); }
ul.mini li { margin: 2px 0; }
.abas { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 8px; background: var(--branco); border-top: 1px solid var(--borda); padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); }
.abas button { flex: 1; background: none; border: 0; font: inherit; font-size: 12px; font-weight: 500; color: var(--texto-3); padding: 8px 0; cursor: pointer; border-radius: 8px; }
.abas button.ativa { color: var(--verde); font-weight: 600; }

.cartao { background: var(--branco); border: 1px solid var(--borda); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.cartao.destaque { border: 1.5px solid var(--verde); }
.cartao.aviso { background: var(--laranja-fundo); border: 1.5px solid var(--laranja-borda); }
.cartao.alerta { background: var(--vermelho-fundo); border: 1px solid var(--vermelho-borda); color: var(--vermelho-texto); }
.cartao.info { background: var(--verde-fundo); border: 0; color: #1F3A30; font-size: 13px; display: block; line-height: 1.5; }
.cartao.clicavel { cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.cartao.clicavel:active { transform: scale(.995); }
.cartao.apagado { opacity: .7; }
.linha { display: flex; align-items: center; gap: 8px; }
.linha .direita { margin-left: auto; }
.cartao > .selo { align-self: flex-start; }
.selo { font-size: 11px; font-weight: 700; letter-spacing: .04em; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.selo.verde { background: var(--verde); color: #fff; }
.selo.cinza { background: #EEF1F4; color: var(--texto-2); }
.selo.laranja { background: var(--laranja); color: #fff; }
.selo.laranja-claro { background: #FFF1D6; color: var(--laranja-texto); }
.selo.azul { background: var(--azul-fundo); color: var(--azul-texto); }
.selo.vermelho { background: #F8DDD8; color: var(--vermelho-texto); }
.valor { font-size: 18px; font-weight: 700; color: var(--verde); }
.valor-grande { font-size: 30px; font-weight: 700; }
.titulo { font-size: 17px; font-weight: 600; }
.ponto { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.ponto.laranja { background: var(--laranja-borda); } .ponto.verde { background: var(--verde); } .ponto.cinza { background: var(--borda-2); }
.status { display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.status.espera { background: var(--laranja-fundo); color: var(--laranja-texto); }
.status.ok { background: var(--verde-claro); color: #1F3A30; }

label { font-size: 13px; font-weight: 600; color: var(--texto-2); display: flex; flex-direction: column; gap: 6px; }
input, select { height: 48px; border: 1px solid var(--borda-2); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 16px; background: var(--branco); color: var(--texto); width: 100%; }
input:focus, select:focus { outline: 2px solid var(--verde); outline-offset: 1px; border-color: var(--verde); }
input.codigo { text-align: center; letter-spacing: .4em; font-size: 26px; font-weight: 700; height: 60px; }
.campos { display: flex; flex-direction: column; gap: 12px; }
.lado-a-lado { display: flex; gap: 10px; } .lado-a-lado > * { flex: 1; min-width: 0; }

.botao { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 12px; background: var(--verde); color: #fff; font: inherit; font-weight: 600; font-size: 16px; border: 0; cursor: pointer; text-decoration: none; width: 100%; }
.botao:hover { background: var(--verde-escuro); }
.botao:disabled, .botao.travado { background: var(--borda); color: var(--texto-3); cursor: not-allowed; }
.botao.secundario { background: var(--branco); color: var(--verde); border: 1px solid var(--verde); }
.botao.secundario:hover { background: var(--verde-claro); }
.botao.neutro { background: var(--branco); color: var(--texto); border: 1px solid var(--borda-2); }
.botao.pequeno { height: 40px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; color: var(--verde); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.centro { text-align: center; }
.separador { height: 1px; background: var(--borda); margin: 4px 0; }
.carregando { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 0; color: var(--texto-3); font-size: 14px; }
.girando { width: 18px; height: 18px; border: 2px solid var(--borda-2); border-top-color: var(--verde); border-radius: 50%; animation: gira .9s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.lista { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--texto-2); }
.lista .item { display: flex; justify-content: space-between; gap: 8px; }

#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; width: min(440px, calc(100vw - 32px)); }
.toast { background: var(--texto); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.4; box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.toast.erro { background: #8A2E1F; }

/* Tarja de atenção da conta bancária e confirmação de titularidade (25/10/2026) */
.cartao.tarja { gap: 6px; border-width: 2px; }
.tarja-titulo { display: inline-block; align-self: flex-start; background: var(--vermelho-texto); color: #fff; font-weight: 800; letter-spacing: .08em; font-size: 12px; padding: 3px 10px; border-radius: 6px; }
.tarja-texto { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.35; }
.modal-fundo { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: 16px; padding: 20px; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; color: var(--texto); }
.modal h2 { margin: 4px 0 0; font-size: 18px; }

/* Banco com busca (25/10/2026) */
.busca-banco { position: relative; }
.busca-banco .sugestoes { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff; border: 1px solid var(--borda-2); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); overflow: hidden; }
.busca-banco .sugestoes[hidden] { display: none; }
.busca-banco .sugestoes button { display: block; width: 100%; text-align: left; padding: 11px 12px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--texto); border-top: 1px solid var(--borda); cursor: pointer; }
.busca-banco .sugestoes button:first-child { border-top: 0; }
.busca-banco .sugestoes button:hover { background: var(--verde-claro); }
.busca-banco .sugestoes strong { display: inline-block; min-width: 38px; color: var(--verde); }

/* Barra de progresso com etapas (26/10/2026) */
.prog { display: flex; flex-direction: column; gap: 8px; }
.prog-titulo { font-weight: 700; font-size: 16px; }
.prog-barra { height: 12px; border-radius: 999px; background: var(--borda); overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, var(--verde), #3fa772); border-radius: 999px; transition: width .5s ease; }
.prog-linha { display: flex; justify-content: space-between; font-size: 13px; color: var(--texto-2); }
.prog-pct { font-weight: 700; color: var(--verde); }
.prog-lista { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--texto-3); display: flex; flex-direction: column; gap: 3px; }
.prog-lista li.feita { color: var(--verde); text-decoration: line-through; }
.prog-lista li.atual { color: var(--texto); font-weight: 600; }
.prog-fundo { align-items: center; }
