/* ============================================================
   ÁREA DO CLIENTE — visual
   ============================================================
   Site de serviço de verdade, no padrão que o brasileiro conhece de banco e
   operadora: faixa azul-noite com a marca da revenda, conteúdo claro em
   largura total no computador, uma coluna no celular. A cor de ação é um
   verde-petróleo que conversa com a cor do Pix, porque pagar é o gesto
   principal daqui. Nenhum emoji: ícones são desenhos próprios.

   A assinatura visual é "a luz da tela": toda superfície azul-noite carrega
   um brilho suave de tela ligando e linhas de varredura quase invisíveis,
   como uma TV acordando. Fraunces (serifada) fala nos momentos de cerimônia
   (entrada, boas-vindas, confirmação); Archivo carrega título, botão e
   dinheiro; o corpo fica com a fonte do sistema. */

@font-face {
  font-family: 'Fraunces';
  src: url('fontes/fraunces-latin.woff2') format('woff2');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fontes/archivo-latin.woff2') format('woff2');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --papel: #F2F4F8;
  --superficie: #FFFFFF;
  --tinta: #16243A;
  --tinta-2: #5A6B84;
  --linha: #E3E8EF;
  --faixa: #17253C;
  --faixa-funda: #101B2E;
  --faixa-tinta: #FFFFFF;
  --faixa-tinta-2: rgba(255, 255, 255, 0.66);
  --acao: #0B7A66;
  --acao-escura: #095E4F;
  --ouro: #C9A96A;
  --creme: #F2ECDD;
  --titulo: 'Archivo', -apple-system, sans-serif;
  --texto: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sombra-cartao: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 8px rgba(16, 24, 40, 0.04);
}

/* A luz da tela: um brilho vindo de cima, linhas de varredura a 3% e um
   escurecimento no pé. Pintada por cima da cor sólida, então continua legível
   mesmo se algum navegador antigo ignorar os gradientes. */
.luz-de-tela {
  background-color: var(--faixa);
  background-image:
    repeating-linear-gradient(180deg,
      rgba(255, 255, 255, 0.028) 0 1px, rgba(255, 255, 255, 0) 1px 4px),
    radial-gradient(120% 90% at 22% -18%,
      rgba(103, 138, 199, 0.34) 0%, rgba(103, 138, 199, 0.10) 42%, rgba(0, 0, 0, 0) 68%),
    linear-gradient(180deg, var(--faixa) 0%, var(--faixa-funda) 130%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: light; }
body {
  font-family: var(--texto);
  background: var(--papel);
  color: var(--tinta);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
.escondido { display: none !important; }
#tela-home { display: flex; flex-direction: column; min-height: 100dvh; }
#tela-home .conteudo { flex: 1; width: 100%; }
.largura { max-width: 1140px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--acao); outline-offset: 2px; border-radius: 4px; }
.faixa :focus-visible, .entrada-painel :focus-visible, .boasvindas-topo :focus-visible { outline-color: #fff; }

.marca {
  font-family: var(--titulo); font-weight: 800; font-size: 19px;
  letter-spacing: -0.01em; color: var(--faixa-tinta);
}

/* ───────────────── entrada ─────────────────
   Neutra de propósito: o endereço é um só para todas as revendas. A serifada
   (Fraunces) e o traço dourado dão o tom de banco premium sem citar marca. */
.entrada { display: grid; grid-template-columns: minmax(400px, 44%) 1fr; min-height: 100dvh; }

.entrada-painel {
  color: var(--faixa-tinta);
  display: flex; flex-direction: column; justify-content: center;
  padding: 44px 52px;
}
.entrada-chamada h1 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 560;
  font-size: clamp(38px, 4vw, 60px); line-height: 1.05; letter-spacing: -0.015em;
  color: var(--creme);
  max-width: 420px; text-wrap: balance;
}
.entrada-traco {
  width: 46px; height: 2px; margin: 22px 0 18px;
  background: linear-gradient(90deg, var(--ouro), rgba(201, 169, 106, 0.25));
}
.entrada-chamada p { color: var(--faixa-tinta-2); font-size: 16px; line-height: 1.55; max-width: 340px; }

.entrada-form { display: grid; place-items: center; padding: 48px 24px; }
.form-login {
  width: min(430px, 100%);
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: 16px;
  padding: 34px 32px 30px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 40px rgba(23, 37, 60, 0.08);
}
.form-login h2 { font-family: var(--titulo); font-weight: 700; font-size: 25px; letter-spacing: -0.01em; margin-bottom: 18px; }

.rotulo { display: block; font-size: 13.5px; font-weight: 600; color: var(--tinta); margin: 16px 0 6px; }
.campo {
  width: 100%; padding: 13px 14px; border-radius: 10px; font-size: 16px;
  background: var(--superficie); color: var(--tinta);
  border: 1px solid #C9D2DE; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.campo:focus { border-color: var(--acao); box-shadow: 0 0 0 3px rgba(11, 122, 102, 0.15); }
.campo-senha { letter-spacing: 0.35em; }

.botao {
  border: none; border-radius: 10px; font-weight: 700;
  padding: 14px 20px; font-size: 15.5px;
  background: var(--acao); color: #fff;
  transition: background 0.15s, transform 0.1s;
}
.botao:hover { background: var(--acao-escura); }
.botao:active { transform: translateY(1px); }
.botao:disabled { opacity: 0.55; cursor: default; transform: none; }
.botao-cheio { width: 100%; margin-top: 22px; }

.link-simples {
  display: block; width: 100%; margin-top: 14px; padding: 8px;
  background: none; border: none;
  color: var(--acao); font-size: 14.5px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-simples:hover { color: var(--acao-escura); }

.erro { color: #B42318; font-size: 13.5px; margin-top: 12px; line-height: 1.45; }
.nota { color: var(--tinta-2); font-size: 13px; margin-top: 18px; line-height: 1.5; }
.nota-ok { color: var(--acao-escura); font-size: 13.5px; margin-top: 12px; line-height: 1.5; }

/* ───────────────── a faixa (topo da casa) ───────────────── */
.faixa { color: var(--faixa-tinta); }

.faixa-topo {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-topo {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
  color: var(--faixa-tinta); font-size: 13.5px; font-weight: 600; padding: 8px 16px;
  transition: background 0.15s, border-color 0.15s;
}
.btn-topo:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }
.btn-topo svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.faixa-status {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  padding-top: 36px; padding-bottom: 40px;
}
.ola { color: var(--faixa-tinta-2); font-size: 15px; }
.status-titulo {
  font-family: var(--titulo); font-weight: 800;
  font-size: clamp(28px, 3.4vw, 41px); letter-spacing: -0.02em; line-height: 1.1;
  margin-top: 6px;
}
.status-linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.status-sub { color: var(--faixa-tinta-2); font-size: 14.5px; }

.selo {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
}
.selo::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.selo-ok { color: #7EE2C4; }
.selo-alerta { color: #FFD08A; }
.selo-perigo { color: #FFA8A8; }

/* O trilho do plano: quanto do plano do cliente ainda está pela frente.
   Fino, com a cabeça acesa, no tom da luz da tela. */
.trilho {
  width: min(430px, 100%); height: 6px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  margin-top: 24px;
}
.trilho-fill {
  position: relative; height: 100%; border-radius: 99px; width: 0;
  background: linear-gradient(90deg, #0FA08D, #2DD4A7);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.trilho-fill::after {
  content: ''; position: absolute; right: -2px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: #2DD4A7; border: 2.5px solid var(--faixa);
  box-shadow: 0 0 0 3px rgba(45, 212, 167, 0.25), 0 0 14px rgba(45, 212, 167, 0.55);
}
#heroi.alerta .trilho-fill { background: linear-gradient(90deg, #D98F26, #F5B04C); }
#heroi.alerta .trilho-fill::after { background: #F5B04C; box-shadow: 0 0 0 3px rgba(245, 176, 76, 0.25), 0 0 14px rgba(245, 176, 76, 0.5); }
#heroi.vencido .trilho-fill { background: #F87171; }
#heroi.vencido .trilho-fill::after { background: #F87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25), 0 0 14px rgba(248, 113, 113, 0.5); }
.trilho-legenda { color: var(--faixa-tinta-2); font-size: 12.5px; margin-top: 9px; }
.trilho-legenda span {
  color: var(--faixa-tinta); font-family: var(--titulo); font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.status-acao { text-align: right; flex-shrink: 0; }
.status-botoes { display: flex; gap: 10px; }
.botao-renovar {
  border: none; border-radius: 10px;
  background: #fff; color: var(--acao-escura);
  font-family: var(--titulo); font-weight: 800; font-size: 15.5px;
  padding: 14px 24px;
  transition: transform 0.12s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}
.botao-renovar:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.34); }
.botao-renovar:active { transform: none; }
.botao-cartao-topo {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 10px;
  background: none; color: var(--faixa-tinta);
  font-family: var(--titulo); font-weight: 700; font-size: 15.5px;
  padding: 14px 20px; transition: background 0.15s, border-color 0.15s;
}
.botao-cartao-topo:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.7); }
.botao-cartao-topo svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.status-acao-nota { color: var(--faixa-tinta-2); font-size: 12.5px; margin-top: 10px; }

/* ───────────────── conteúdo ───────────────── */
.conteudo {
  display: grid; grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr); gap: 36px;
  padding-top: 36px; align-items: start;
}
.secao { font-family: var(--titulo); font-weight: 700; font-size: 17px; letter-spacing: -0.005em; margin-bottom: 14px; }

/* acessos */
.acesso {
  display: flex; align-items: center; gap: 14px;
  background: var(--superficie); border: 1px solid var(--linha); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 10px;
  box-shadow: var(--sombra-cartao);
  transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s;
}
.acesso:hover {
  transform: translateY(-1px);
  border-color: #D3DBE6;
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.05), 0 10px 26px rgba(23, 37, 60, 0.08);
}
.acesso-icone {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #EEF2F7, #E6EBF3); color: var(--tinta);
}
.acesso-icone svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.acesso-meio { flex: 1; min-width: 0; }
.acesso-nome { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.acesso-linha { color: var(--tinta-2); font-size: 13px; margin-top: 3px; overflow-wrap: anywhere; }
.acesso-linha b, .acesso-linha span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; color: var(--tinta); letter-spacing: 0.02em; }
.selo-teste {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  color: #B54708; background: #FFFAEB; border: 1px solid #FEDF89;
  border-radius: 99px; padding: 2px 8px; margin-left: 8px; vertical-align: 1px;
}
.btn-olho {
  background: none; border: 1px solid var(--linha); border-radius: 8px;
  color: var(--acao); font-size: 13px; font-weight: 700; padding: 7px 13px;
  flex-shrink: 0; transition: border-color 0.15s, background 0.15s;
}
.btn-olho:hover { border-color: var(--acao); background: #F0FAF7; }

/* pagamentos */
.tabela-caixa {
  background: var(--superficie); border: 1px solid var(--linha); border-radius: 14px;
  box-shadow: var(--sombra-cartao); overflow-x: auto;
}
.tabela-pagamentos { width: 100%; border-collapse: collapse; }
.tabela-pagamentos th {
  text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--tinta-2);
  padding: 13px 18px; border-bottom: 1px solid var(--linha);
}
.tabela-pagamentos td { padding: 14px 18px; border-bottom: 1px solid #EEF1F5; font-size: 14px; }
.tabela-pagamentos tbody tr { transition: background 0.12s; }
.tabela-pagamentos tbody tr:hover { background: #FAFBFD; }
.tabela-pagamentos tr:last-child td { border-bottom: none; }
.fat-data { font-weight: 600; white-space: nowrap; }
.fat-sub { color: var(--tinta-2); }
.th-valor, .fat-valor { text-align: right; }
.fat-valor {
  font-family: var(--titulo); font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fatura-selo {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
  padding: 3px 10px; border-radius: 999px; text-transform: uppercase;
}
.pago { color: #067647; background: #ECFDF3; border: 1px solid #ABEFC6; }
.pendente { color: #B54708; background: #FFFAEB; border: 1px solid #FEDF89; }
.gratis { color: #175CD3; background: #EFF8FF; border: 1px solid #B2DDFF; }
.tabela-vazia { color: var(--tinta-2); text-align: center; padding: 26px 18px !important; }
.fat-situacao { white-space: nowrap; }
.btn-pagar-fatura {
  margin-left: 8px; padding: 4px 12px; border-radius: 8px;
  border: none; background: var(--acao); color: #fff;
  font-size: 12px; font-weight: 700;
}
.btn-pagar-fatura:hover { background: var(--acao-escura); }

.rodape { text-align: center; color: var(--tinta-2); font-size: 13px; padding-top: 44px; padding-bottom: 40px; }

/* ───────────────── janelas ───────────────── */
.veu { position: fixed; inset: 0; background: rgba(13, 22, 38, 0.52); z-index: 40; backdrop-filter: blur(2px); }
.folha {
  position: fixed; z-index: 50;
  background: var(--superficie);
  padding: 26px 26px 30px;
  box-shadow: 0 24px 70px rgba(13, 22, 38, 0.35);
  max-height: calc(100dvh - 32px); overflow-y: auto;
}
.folha-fechar {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--papel); color: var(--tinta-2);
  display: grid; place-items: center;
  transition: background 0.15s, color 0.15s;
}
.folha-fechar:hover { background: var(--linha); color: var(--tinta); }
.folha-fechar svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.folha h3 { font-family: var(--titulo); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.folha-sub { color: var(--tinta-2); font-size: 14px; margin: 6px 0 16px; }
.folha-alca { display: none; }

.pix-valor {
  font-family: var(--titulo); font-weight: 800; font-size: 34px;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
  margin: 2px 0 14px;
}
.pix-passo { color: var(--tinta-2); font-size: 12.5px; text-align: center; margin-top: 8px; }
.pix-ou {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 10px;
  color: var(--tinta-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
}
.pix-ou::before, .pix-ou::after { content: ''; flex: 1; height: 1px; background: var(--linha); }
.pix-rotulo { font-size: 12.5px; font-weight: 700; color: var(--tinta); margin-bottom: 6px; }
.pix-codigo {
  border: 1px solid var(--linha); border-radius: 10px; background: var(--papel);
  padding: 10px 12px; margin-bottom: 10px;
}
.pix-codigo code {
  display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: var(--tinta-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.botao-contorno {
  width: 100%; border-radius: 10px; padding: 12px 16px; font-weight: 700;
  background: none; border: 1.5px solid var(--acao); color: var(--acao);
  transition: background 0.15s;
}
.botao-contorno:hover { background: #F0FAF7; }
.btn-cartao { display: flex; align-items: center; justify-content: center; gap: 9px; }
.btn-cartao svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.pix-depois { border-top: 1px solid var(--linha); margin-top: 16px; padding-top: 14px; }
.pix-depois .nota { margin-top: 10px; }

/* boas-vindas do primeiro acesso: premium, e sem saída sem o nome */
.folha-boasvindas { padding: 0; overflow: hidden; }
.boasvindas-topo { color: var(--faixa-tinta); padding: 30px 28px 26px; }
.boasvindas-topo h3 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 560; font-size: 30px;
  color: var(--creme); letter-spacing: -0.01em;
}
.boasvindas-topo .entrada-traco { margin: 14px 0 12px; }
.boasvindas-topo p { color: var(--faixa-tinta-2); font-size: 14.5px; line-height: 1.55; }
.boasvindas-corpo { padding: 20px 28px 28px; }
.folha-boasvindas .folha-alca { display: none; }

/* minha conta */
.conta-quem { display: flex; align-items: center; gap: 14px; margin: 16px 0 14px; }
.conta-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--faixa), var(--faixa-funda));
  color: var(--creme);
  font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 600;
  box-shadow: inset 0 0 0 1.5px rgba(201, 169, 106, 0.55);
}
.conta-nome { font-weight: 700; font-size: 17px; }
.conta-telefone { color: var(--tinta-2); font-size: 13.5px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.conta-dados { border-top: 1px solid var(--linha); margin: 0; }
.conta-dados > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid #EEF1F5;
}
.conta-dados dt { color: var(--tinta-2); font-size: 13px; }
.conta-dados dd { margin: 0; font-weight: 600; font-size: 14px; text-align: right; }
.conta-secao { border-top: 1px solid var(--linha); margin-top: 4px; padding-top: 4px; }

/* pagamento confirmado: o check se desenha dentro de um anel que acende */
.pix-sucesso { text-align: center; padding: 18px 0 4px; }
/* O Fechar não ocupa a largura toda: botão de tamanho de botão, centrado
   (pedido do dono na aprovação, 12/08). */
.pix-sucesso .botao-cheio {
  display: inline-block; width: auto; min-width: 200px;
  padding-left: 46px; padding-right: 46px; margin-top: 22px;
}
.sucesso-anel { width: 84px; height: 84px; margin: 0 auto 16px; display: block; animation: acender 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.sucesso-circulo { fill: #ECFDF3; stroke: #ABEFC6; stroke-width: 2; }
.sucesso-check {
  fill: none; stroke: #067647; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 48; stroke-dashoffset: 48;
  animation: desenhar 0.6s 0.15s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
@keyframes desenhar { to { stroke-dashoffset: 0; } }
@keyframes acender { from { transform: scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* O QR com cantoneiras de leitor de código: a moldura diz "aponte aqui". */
.pix-qr {
  position: relative;
  display: grid; place-items: center;
  border: 1px solid var(--linha); border-radius: 12px; padding: 14px; margin: 4px 0 12px;
}
.pix-qr::before, .pix-qr::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--ouro);
}
.pix-qr::before { top: 7px; left: 7px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.pix-qr::after { bottom: 7px; right: 7px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }
.pix-qr img { width: 190px; height: 190px; display: block; }

/* computador: janela centrada; a de pagamento vira um checkout de duas colunas */
@media (min-width: 761px) {
  .folha {
    left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 48px));
    border-radius: 16px;
  }
  #folha-pix { width: min(790px, calc(100vw - 48px)); padding: 12px; }
  /* minmax(0,...) obrigatório: sem ele o código copia e cola (comprido, sem
     espaço) empurra a coluna para fora da janela */
  .checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0 32px; }
  /* o resumo vive num painel de névoa: o olho separa "o que estou pagando"
     de "como pagar" sem precisar de linha dura */
  .checkout-resumo {
    display: flex; flex-direction: column;
    background: #F7F9FC; border: 1px solid #EDF1F6; border-radius: 12px;
    padding: 24px 24px 20px;
  }
  .checkout-pagamento { padding: 20px 22px 20px 0; }
  .checkout-resumo .pix-valor { font-size: 40px; margin: 6px 0 4px; }
  .checkout-resumo .pix-depois { margin-top: auto; padding-top: 18px; }
  .checkout-pagamento .pix-qr img { width: 180px; height: 180px; }
  #folha-pix .folha-fechar { top: 22px; right: 22px; }
  #folha-pix .pix-sucesso { padding: 40px 0 34px; }
}

/* tablet em pé: as duas colunas não cabem, empilha mais cedo */
@media (max-width: 900px) {
  .conteudo { grid-template-columns: minmax(0, 1fr); }
  .col-pagamentos { margin-top: 20px; }
}

/* ───────────────── celular ───────────────── */
@media (max-width: 760px) {
  .largura { padding-left: 18px; padding-right: 18px; }

  .entrada { grid-template-columns: 1fr; min-height: auto; }
  .entrada-painel { padding: 46px 24px 38px; }
  .entrada-chamada h1 { font-size: 34px; }
  .entrada-traco { margin: 16px 0 12px; }
  .entrada-chamada p { font-size: 14.5px; }
  .entrada-form { padding: 26px 18px 44px; place-items: start center; }
  .form-login { padding: 24px 20px 22px; }

  .faixa-status { flex-direction: column; align-items: stretch; gap: 24px; padding-top: 26px; padding-bottom: 30px; }
  .status-botoes { width: 100%; }
  .botao-renovar, .botao-cartao-topo { flex: 1; padding: 14px 10px; font-size: 14.5px; }
  .status-acao-nota { text-align: center; }

  .conteudo { gap: 8px; padding-top: 26px; }

  /* a tabela vira lista */
  .tabela-pagamentos thead { display: none; }
  .tabela-pagamentos tr {
    display: grid; grid-template-columns: 1fr auto; gap: 2px 12px;
    padding: 13px 16px; border-bottom: 1px solid #EEF1F5;
  }
  .tabela-pagamentos tr:last-child { border-bottom: none; }
  .tabela-pagamentos td { display: block; padding: 0; border: none; }
  .fat-valor { grid-column: 2; grid-row: 1; }
  .fat-sub { grid-column: 1; grid-row: 2; font-size: 13px; }
  .tabela-pagamentos td:last-child { grid-column: 2; grid-row: 2; justify-self: end; }
  .tabela-vazia { grid-column: 1 / -1; }

  /* janelas viram folha de baixo, como app; a de pagamento é comprida, então
     tudo nela aperta o passo para caber sem virar rolagem infinita */
  .folha {
    left: 0; right: 0; bottom: 0;
    border-radius: 18px 18px 0 0;
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
    animation: subir 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .folha-boasvindas { padding: 0 0 calc(6px + env(safe-area-inset-bottom)); }
  .folha-alca { display: block; width: 40px; height: 4px; border-radius: 99px; background: #D4DAE3; margin: -4px auto 12px; }
  #folha-pix .pix-valor { font-size: 28px; margin: 0 0 8px; }
  #folha-pix .pix-qr { padding: 8px; margin: 2px 0 6px; }
  #folha-pix .pix-qr::before { top: 4px; left: 4px; width: 14px; height: 14px; }
  #folha-pix .pix-qr::after { bottom: 4px; right: 4px; width: 14px; height: 14px; }
  #folha-pix .pix-qr img { width: 148px; height: 148px; }
  #folha-pix .pix-passo { margin-top: 4px; }
  #folha-pix .pix-ou { margin: 10px 0 6px; }
  #folha-pix .pix-codigo { padding: 8px 10px; margin-bottom: 8px; }
  #folha-pix .botao, #folha-pix .botao-contorno { padding: 11px 14px; font-size: 14.5px; }
  #folha-pix .pix-depois { margin-top: 12px; padding-top: 10px; }
  #folha-pix .pix-depois .nota { margin-top: 8px; }
  #folha-pix h3 { font-size: 17px; }
  #folha-pix .folha-sub { margin: 3px 0 8px; }
  /* no celular a ordem é a do gesto: valor, código, copiar, cartão e SÓ
     ENTÃO o "depois de pagar" (no computador ele mora na coluna do resumo) */
  #folha-pix .checkout { display: flex; flex-direction: column; }
  #folha-pix .checkout-resumo, #folha-pix .checkout-pagamento { display: contents; }
  #folha-pix .pix-depois { order: 99; }
}

/* ───────────────── avisos do portal ─────────────────
   O pop-up do navegador não entra aqui (decisão do dono, 12/08): erro,
   confirmação e qualquer recado aparecem neste cartão, com a cara da casa. */
.avisos {
  position: fixed; z-index: 90;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: min(430px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.aviso-cartao {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--superficie); color: var(--tinta);
  border: 1px solid var(--linha); border-left: 4px solid var(--tinta-2);
  border-radius: 12px; padding: 13px 14px;
  box-shadow: 0 12px 40px rgba(13, 22, 38, 0.22);
  font-size: 14px; line-height: 1.45;
  animation: aviso-entrar 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.aviso-cartao.saindo { animation: aviso-sair 0.2s ease forwards; }
.aviso-cartao.erro { border-left-color: #B42318; }
.aviso-cartao.ok { border-left-color: var(--acao); }
.aviso-icone { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; }
.aviso-icone svg { width: 22px; height: 22px; display: block; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aviso-cartao.erro .aviso-icone svg { stroke: #B42318; }
.aviso-cartao.ok .aviso-icone svg { stroke: var(--acao); }
.aviso-texto { flex: 1; padding-top: 1px; }
.aviso-fechar {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: none; color: var(--tinta-2);
  display: grid; place-items: center; margin: -2px -4px 0 0;
}
.aviso-fechar:hover { background: var(--papel); color: var(--tinta); }
.aviso-fechar svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@keyframes aviso-entrar { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes aviso-sair { to { transform: translateY(-8px); opacity: 0; } }

@keyframes subir { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .folha { animation: none; }
  .trilho-fill { transition: none; }
  .sucesso-check { animation: none; stroke-dashoffset: 0; }
  .sucesso-anel { animation: none; }
  .acesso, .acesso:hover { transform: none; }
  .aviso-cartao { animation: none; }
  .aviso-cartao.saindo { animation: none; display: none; }
}
