/* ZapTrace — UI v4 "amigável": camada carregada por último, sobre o app.css.
   Colorido e com uma ação óbvia por card, em tamanhos que cabem de 320px
   (celular pequeno) até o desktop. */

:root {
  --grafite-950: #0a1620;
  --grafite-900: #11212b;
  --grafite-800: #182d39;
  --grafite-700: #213947;
  --grafite-600: #2b4756;

  --fundo: var(--grafite-950);
  --superficie: var(--grafite-900);
  --superficie-2: var(--grafite-800);
  --linha: rgba(255, 255, 255, 0.07);
  --linha-forte: rgba(255, 255, 255, 0.13);
  --texto: #f3f8f6;
  --texto-2: #a3b6c0;
  --texto-3: #6f8895;

  --roxo: #8b7bff;
  --roxo-rgb: 139, 123, 255;

  --raio: 14px;
  --raio-g: 20px;
  --sombra: 0 4px 12px rgba(0, 0, 0, 0.25);
  --sombra-elevada: 0 10px 28px rgba(0, 0, 0, 0.4);
  --brilho-verde: 0 6px 18px rgba(0, 230, 118, 0.25);

  --f-marca: 'Nunito', 'Inter', system-ui, sans-serif;
}

body {
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(0, 230, 118, 0.09), transparent 60%),
    radial-gradient(80% 50% at 100% 30%, rgba(var(--roxo-rgb), 0.06), transparent 60%),
    var(--fundo);
  background-attachment: fixed;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.01em; }

/* ---------- Barra da marca (mobile) ---------- */

.barra-marca { background: rgba(10, 22, 32, 0.94); border-bottom: 0; }
.marca { font-family: var(--f-marca); font-weight: 900; }

/* ---------- Cabeçalho da tela ---------- */

.cabecalho { min-height: 48px; }
.cabecalho h1 { font-size: 1.45rem; }
@media (max-width: 599px) { .cabecalho h1 { font-size: 1.3rem; } }

.saldo {
  height: 38px;
  padding: 0 5px;
  gap: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--ouro-rgb), 0.16), rgba(var(--ouro-rgb), 0.05));
  border: 1px solid rgba(var(--ouro-rgb), 0.32);
}
.saldo__moeda { width: 26px; height: 26px; box-shadow: 0 2px 6px rgba(var(--ouro-rgb), 0.4); }
.saldo__valor { font-size: 1rem; font-weight: 800; font-family: var(--f-marca); }
.saldo__add { width: 28px; height: 28px; border-radius: 50%; }
.saldo__add .ic { width: 14px; height: 14px; }

/* ---------- Botões ---------- */

.btn {
  height: 48px;
  padding: 0 1.2rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #2bf08c, var(--verde) 55%, #00c964);
  font-family: var(--f-marca);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: var(--brilho-verde);
  transition: transform 0.12s, opacity 0.15s, box-shadow 0.15s;
}
.btn:hover { opacity: 1; box-shadow: 0 8px 22px rgba(0, 230, 118, 0.32); }
.btn:active { transform: scale(0.97); opacity: 1; }
.btn .ic { width: 18px; height: 18px; }
.btn--claro { background: var(--superficie-2); border: 1px solid var(--linha-forte); box-shadow: none; }
.btn--claro:hover { box-shadow: none; background: var(--grafite-700); }
.btn--perigo { background: var(--perigo-fundo); border: 1px solid rgba(var(--perigo-rgb), 0.25); box-shadow: none; }
.btn--perigo:hover { box-shadow: none; }
.btn--pequeno { height: 36px; font-size: 0.85rem; border-radius: 10px; }
.btn-icone { width: 42px; height: 42px; border-radius: 12px; }

/* Botões com cor própria: o .btn deste arquivo vem por último e venceria as
   regras do app.css, que têm a mesma especificidade. */
.btn.btn--ghost { background: transparent; color: var(--texto-3); border: 0; box-shadow: none; }
.btn.btn--ghost:hover { color: var(--texto); }
.btn.ig-acessar,
.btn.iginv__conv-btn { background: var(--srv-instagram); color: #fff; box-shadow: 0 6px 18px rgba(var(--srv-instagram-rgb), 0.28); }
.btn.iginv__conv-btn { height: 34px; padding: 0 12px; font-size: 0.78rem; border-radius: 10px; box-shadow: none; }
/* 34px visible, 42px to the finger. */
.btn.iginv__conv-btn { position: relative; }
.btn.iginv__conv-btn::after { content: ''; position: absolute; inset: -4px -2px; }
/* Pink is only Instagram's: WhatsApp and Messages pass their own color inline. */
.btn.iginv-popup__confirmar { background: var(--srv-instagram); color: #fff; box-shadow: none; }
.btn.btn--outline { background: transparent; color: var(--texto); border: 1px solid var(--linha-forte); box-shadow: none; }
.btn.btn--outline:hover { background: var(--superficie-2); box-shadow: none; }
.btn.prog__acelerar {
  background: linear-gradient(180deg, var(--ouro-claro), var(--ouro));
  color: #1a1200;
  box-shadow: 0 6px 18px rgba(var(--ouro-rgb), 0.28);
}
.btn.sup-chat__btn-anexo { height: 42px; padding: 0 10px; border-radius: 12px; }
.btn.sup-chat__btn-enviar { height: 42px; border-radius: 12px; }

/* ---------- Campos ---------- */

.campo > label { font-size: 0.86rem; color: var(--texto); font-weight: 700; }
.input {
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--linha-forte);
  border-radius: 14px;
  background: var(--grafite-950);
}
.input:focus { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.15); }

/* Campo com prefixo "@" no Instagram: a borda fica no contorno, não no input. */
.investiga__campo { border: 1.5px solid var(--linha-forte); border-radius: 14px; }
.investiga__campo:focus-within { box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.15); }
.investiga__arroba { width: 46px; height: 48px; }
.input.investiga__input { height: 48px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }

/* ---------- Blocos genéricos ---------- */

.bloco {
  border-radius: var(--raio-g);
  background: var(--superficie);
  border: 1px solid var(--linha);
  box-shadow: var(--sombra);
}
.bloco--pad { padding: 18px; }
.secao-titulo { font-size: 1.08rem; }
.secao-titulo > .ic {
  width: 30px; height: 30px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(0, 230, 118, 0.12);
  color: var(--verde);
}

.avatar { border-radius: 50%; background: linear-gradient(135deg, rgba(0, 230, 118, 0.25), rgba(var(--roxo-rgb), 0.25)); color: var(--texto); }
.avatar--g { width: 72px; height: 72px; font-size: 1.5rem; box-shadow: 0 0 0 3px var(--grafite-900), 0 0 0 5px rgba(0, 230, 118, 0.5); }

/* ---------- Boas-vindas ---------- */

.boas-vindas {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #00e676 0%, #00c46a 45%, #00995a 100%);
  color: #06231a;
  box-shadow: 0 10px 28px rgba(0, 230, 118, 0.22);
}
.boas-vindas::before,
.boas-vindas::after {
  content: '';
  display: block;
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}
.boas-vindas::before { width: 150px; height: 150px; right: -45px; top: -60px; }
.boas-vindas::after { width: 90px; height: 90px; right: 36px; bottom: -50px; background: rgba(255, 255, 255, 0.09); }
.boas-vindas > * { position: relative; }
.boas-vindas__etiqueta {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 35, 26, 0.16);
  color: #06231a;
}
.boas-vindas__titulo { font-size: 1.6rem; color: #04170f; margin-top: 6px; }
.boas-vindas__sub { color: rgba(4, 23, 15, 0.75); font-size: 0.95rem; font-weight: 600; }
@media (max-width: 599px) {
  .boas-vindas { padding: 18px; }
  .boas-vindas__titulo { font-size: 1.4rem; }
}

/* ---------- Card do vídeo ---------- */

.card-video-cta {
  margin-top: 0;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(var(--roxo-rgb), 0.28), rgba(var(--roxo-rgb), 0.09));
  border: 1px solid rgba(var(--roxo-rgb), 0.38);
  transition: transform 0.12s;
}
.card-video-cta:hover { background: linear-gradient(135deg, rgba(var(--roxo-rgb), 0.36), rgba(var(--roxo-rgb), 0.13)); }
.card-video-cta:active { transform: scale(0.98); }
.card-video-cta__icone {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #5a48e8;
}
.card-video-cta__icone::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: v4-pulso 1.8s ease-out infinite;
}
.card-video-cta__icone .ic { width: 20px; height: 20px; margin-left: 2px; }
.card-video-cta__corpo strong { font-family: var(--f-marca); font-size: 1rem; font-weight: 800; line-height: 1.25; }
.card-video-cta__corpo span { font-size: 0.82rem; color: #d4cfff; }
.card-video-cta__seta {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
@keyframes v4-pulso {
  0% { transform: scale(0.92); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .card-video-cta__icone::after { animation: none; } }

/* ---------- Serviços ---------- */

.servicos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.servico {
  min-width: 0;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--servico-cor) 28%, transparent);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--servico-cor) 20%, transparent), transparent 70%),
    var(--superficie);
  transition: transform 0.12s, border-color 0.15s;
}
.servico:hover {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--servico-cor) 28%, transparent), transparent 70%),
    var(--superficie);
  border-color: color-mix(in srgb, var(--servico-cor) 50%, transparent);
}
.servico:active { transform: scale(0.97); opacity: 1; }
.servico__icone {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--servico-cor);
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--servico-cor) 35%, transparent);
}
.servico__icone .ic { width: 24px; height: 24px; }
.servico__nome { font-family: var(--f-marca); font-size: 1.02rem; font-weight: 800; }
.servico__desc { font-size: 0.78rem; color: var(--texto-2); }
.servico__rodape { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; }
.servico__badge { min-width: 0; padding: 4px 9px; border-radius: 999px; font-size: 0.74rem; white-space: nowrap; }
.servico__badge--custo { background: rgba(var(--ouro-rgb), 0.14); color: var(--ouro-claro); }
.servico__badge--custo .preco { color: #fff; }
.servico__ir {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--servico-cor);
  color: #fff;
}
.servico__ir .ic { width: 16px; height: 16px; }
/* Celular pequeno: o preço precisa da largura toda, a seta sai. */
@media (max-width: 374px) {
  .servico { padding: 12px; }
  .servico__ir { display: none; }
}

/* ---------- Atividade, histórico, bônus ---------- */

.prova-social {
  margin-top: 0;
  padding: 14px;
  border-radius: 20px;
  background: var(--superficie);
  border: 1px solid var(--linha);
}
.prova-social__item { align-items: baseline; padding: 8px 2px; font-size: 0.82rem; border-bottom: 1px solid var(--linha); border-radius: 0; }
.prova-social__item:last-child { border-bottom: 0; }

.historico__item { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--linha); }

.bonus-diario {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(var(--ouro-rgb), 0.3);
  background: linear-gradient(135deg, rgba(var(--ouro-rgb), 0.14), transparent 70%), var(--superficie);
}
.bonus-diario__head { display: flex; align-items: center; gap: 12px; }
.bonus-diario__head > div { display: grid; line-height: 1.25; }
.bonus-diario__head strong { font-family: var(--f-marca); font-size: 1.02rem; font-weight: 800; }
.bonus-diario__icone {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--ouro);
  color: #1a1200;
}
.bonus-diario__icone .ic { width: 20px; height: 20px; }
.bonus-diario__sub { font-size: 0.78rem; color: var(--ouro-claro); font-weight: 600; }
.bonus-diario__texto { font-size: 0.86rem; color: var(--texto-2); }
.bonus-diario__creditos {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.14);
  color: var(--verde);
  font-weight: 800;
  font-size: 0.82rem;
}


/* ---------- Learn ---------- */

.tut-card {
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--tut-cor, var(--verde)) 26%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tut-cor, var(--verde)) 14%, transparent), transparent 70%), var(--superficie);
  transition: transform 0.12s;
}
.tut-card:active { transform: scale(0.98); }
.tut-card__icone { width: 44px; height: 44px; border-radius: 13px; }
.tut-card__titulo { font-family: var(--f-marca); font-size: 0.98rem; font-weight: 800; }
.tut-card__badge { padding: 6px 12px; border-radius: 999px; font-weight: 800; }
.tut-card--destaque .tut-card__icone { width: 52px; height: 52px; border-radius: 16px; }
.tut-card--destaque .tut-card__titulo { font-size: 1.15rem; }
.tut-cta { border-radius: 16px; }

/* ---------- Suporte ---------- */

.sup-opcao {
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--linha);
  transition: transform 0.12s;
}
.sup-opcao:active { transform: scale(0.98); }
.sup-opcao__icone { width: 46px; height: 46px; }
.sup-opcao__icone .ic { width: 22px; height: 22px; }
.sup-opcao__icone--obs { background: rgba(var(--srv-chamada-rgb), 0.16); }
.sup-opcao__icone--reemb { background: rgba(var(--ouro-rgb), 0.16); }
.sup-opcao__texto strong { font-family: var(--f-marca); font-size: 0.98rem; font-weight: 800; }

/* ---------- Perfil ---------- */

.perfil-topo { padding: 24px 18px; }
.perfil-topo h2 { font-size: 1.3rem; margin-top: 6px; }

/* ---------- Loja e diálogos ---------- */

dialog.folha { border-radius: 22px; border: 1px solid var(--linha-forte); box-shadow: var(--sombra-elevada); }
.loja-card { border-radius: 16px; border: 1px solid var(--linha); }
.loja-card--destaque { border: 2px solid var(--verde); }
.loja-card--melhor { border: 2px solid var(--ouro); }
.loja-card__qtd strong { font-family: var(--f-marca); font-weight: 900; }
.loja-card__preco { font-family: var(--f-marca); font-weight: 900; }
.loja-card__cta { height: 40px; border-radius: 12px; font-weight: 800; }

/* ---------- Menu de baixo (mobile e tablet) ---------- */

.abas {
  left: 50%;
  right: auto;
  bottom: calc(8px + env(safe-area-inset-bottom));
  width: min(100% - 20px, 440px);
  transform: translateX(-50%);
  padding: 6px;
  gap: 4px;
  border: 1px solid var(--linha-forte);
  border-radius: 22px;
  background: rgba(17, 33, 43, 0.96);
  box-shadow: var(--sombra-elevada);
}
.aba {
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 4px;
  border-radius: 16px;
  font-size: 0.84rem;
  font-weight: 800;
  font-family: var(--f-marca);
  color: var(--texto-2);
  transition: background 0.15s, color 0.15s;
}
.aba .ic { width: 21px; height: 21px; }
.aba[aria-current='page'] { background: var(--verde); color: #06231a; box-shadow: var(--brilho-verde); }
.aba__icone .aviso-contador { box-shadow: 0 0 0 2px rgba(17, 33, 43, 0.96); }
/* Celular pequeno: só a aba atual mostra o nome, para caber tudo numa linha. */
@media (max-width: 374px) {
  .aba:not([aria-current='page']) > span:last-child { display: none; }
}

.tela { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }

/* ---------- Botão flutuante de suporte ---------- */

.fab-suporte {
  bottom: calc(80px + env(safe-area-inset-bottom));
  width: 52px;
  height: 52px;
  background: linear-gradient(180deg, #2bf08c, var(--verde) 55%, #00c964);
  box-shadow: var(--brilho-verde), 0 6px 16px rgba(0, 0, 0, 0.4);
}
.fab-suporte .ic { width: 24px; height: 24px; }

/* ---------- Tablet ---------- */

@media (min-width: 600px) and (max-width: 899px) {
  .servicos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
  .tela { padding-bottom: 100px; }
  .fab-suporte { right: 20px; bottom: 20px; }
  .nav-item { padding: 11px 14px; border-radius: 14px; font-weight: 700; }
  .nav-item[aria-current='page'] { background: var(--verde); color: #06231a; box-shadow: var(--brilho-verde); }
  .nav-item[aria-current='page'] .ic { color: #06231a; }
  .servicos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .btn.lateral__sair {
    height: 40px;
    justify-content: flex-start;
    background: transparent;
    color: var(--texto-3);
    box-shadow: none;
    font-family: var(--f-texto);
    font-weight: 600;
    font-size: 0.86rem;
  }
  .btn.lateral__sair:hover { color: var(--texto); }
}
/* Entre 900 e 1100px a coluna de conteúdo fica perto da borda direita:
   o botão flutuante encolhe para não cobrir os cards. */
@media (min-width: 900px) and (max-width: 1100px) {
  .fab-suporte { width: 46px; height: 46px; right: 14px; bottom: 14px; }
  .fab-suporte .ic { width: 21px; height: 21px; }
}

/* ---------- Login e cadastro ---------- */

.auth__cartao { border-radius: 22px; border: 1px solid var(--linha); box-shadow: var(--sombra-elevada); }

/* ---------- Home: ferramentas ---------- */

.home-ferramentas { display: grid; gap: 10px; }
.secao-titulo--icone { display: flex; align-items: center; gap: 8px; }
.home-ferramentas__dica { margin-top: -6px; font-size: 0.8rem; color: var(--texto-3); }

/* Celular: 5 ferramentas em 2 colunas deixavam um buraco ao lado de Calls.
   O último card ímpar ocupa a linha toda, deitado. */
@media (max-width: 599px) {
  .servicos-grid > .servico:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
  }
  .servicos-grid > .servico:last-child:nth-child(odd) .servico__icone { grid-row: 1 / span 2; }
  .servicos-grid > .servico:last-child:nth-child(odd) .servico__desc { flex: none; }
  .servicos-grid > .servico:last-child:nth-child(odd) .servico__rodape { grid-column: 1 / -1; margin-top: 8px; }
}
/* Tablet e desktop: grade de 6 trilhas, 3 cards em cima e 2 mais largos
   embaixo, sem espaço vazio. */
@media (min-width: 600px) {
  .servicos-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .servicos-grid > .servico { grid-column: span 2; }
  .servicos-grid > .servico:nth-child(n+4):nth-last-child(-n+2) { grid-column: span 3; }
}
@media (min-width: 1200px) {
  .pagina--home { max-width: 860px; }
}

/* ---------- Home: cards secundários ---------- */

.bonus-diario {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  padding: 14px;
}
.bonus-diario__head { display: contents; }
.bonus-diario__icone { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
.bonus-diario__head > div { grid-column: 2; grid-row: 1; }
.bonus-diario__creditos { grid-column: 3; grid-row: 1; align-self: start; white-space: nowrap; }
.bonus-diario__texto { grid-column: 2 / -1; grid-row: 2; font-size: 0.8rem; }


.historico { gap: 10px; }
.historico__titulo { font-family: var(--f-marca); font-size: 1.02rem; font-weight: 800; }
.historico__lista { gap: 6px; }
.historico__item { min-height: 44px; background: var(--superficie); }
.historico__item-tempo { margin-left: auto; font-size: 0.72rem; }

/* ---------- Avisos ---------- */

.toasts { bottom: calc(78px + env(safe-area-inset-bottom)); }
.toast {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--linha-forte);
  background: var(--grafite-700);
  box-shadow: var(--sombra-elevada);
  font-size: 0.9rem;
  line-height: 1.35;
}
.toast--erro { border-color: rgba(var(--perigo-rgb), 0.4); }
.moeda-aviso {
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(var(--ouro-rgb), 0.3);
  box-shadow: var(--sombra-elevada);
}
@media (min-width: 900px) { .toasts { bottom: 84px; } }
/* Phone: the toast spans the width and landed on top of the support button. */
@media (max-width: 599px) { .toasts { bottom: calc(142px + env(safe-area-inset-bottom)); } }

/* ---------- Diálogos ---------- */

.folha__corpo { gap: 14px; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
.folha__topo h2 { font-family: var(--f-marca); font-size: 1.15rem; font-weight: 800; }
.folha__topo .btn-icone { width: 40px; height: 40px; border-radius: 50%; background: var(--superficie-2); }
dialog.folha::backdrop { background: rgba(3, 8, 12, 0.72); }
@media (max-width: 599px) {
  dialog.folha { border-radius: 22px 22px 0 0; border-bottom: 0; max-height: calc(100dvh - 24px); }
  dialog.folha.folha--centro { border-radius: 22px; border-bottom: 1px solid var(--linha-forte); }
}

.cobranca, .sem-cred { gap: 12px; }
.cobranca__texto, .sem-cred__texto { font-size: 0.9rem; }
.cobranca__preco {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ouro-rgb), 0.3);
  background: rgba(var(--ouro-rgb), 0.12);
}
.cobranca__preco strong { font-family: var(--f-marca); font-size: 1.35rem; font-weight: 900; }
.sem-cred__selo, .cred-popup__selo { width: 56px; height: 56px; }
.sem-cred__titulo, .cred-popup__titulo { font-family: var(--f-marca); font-size: 1.2rem; font-weight: 800; }
.sem-cred__faltam { border-radius: 999px; padding: 5px 12px; background: rgba(var(--ouro-rgb), 0.14); }
.cred-popup__policy { border-radius: 16px; background: rgba(var(--ouro-rgb), 0.07); border-color: rgba(var(--ouro-rgb), 0.22); }

/* ---------- Loja de créditos ----------
   Cada pacote vira duas colunas (quantidade | preço) e o botão embaixo:
   os três cabem na tela do celular sem rolar tanto. */

.loja { gap: 12px; }
.loja__sub { margin-top: -6px; font-size: 0.84rem; }
.loja-grade { gap: 12px; }
.loja-card {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  padding: 14px;
  background: var(--superficie-2);
}
.loja-card:hover { background: var(--grafite-700); }
.loja-card__topo { grid-column: 1; grid-row: 1; }
.loja-card__bonus { grid-column: 1; }
.loja-card__precos { grid-column: 2; grid-row: 1; justify-content: flex-end; gap: 6px; }
.loja-card__unit { grid-column: 1; grid-row: 2; }
.loja-card__economia { grid-column: 2; grid-row: 2; justify-self: end; }
.loja-card__cta { grid-column: 1 / -1; margin-top: 8px; }
.loja-card__qtd strong { font-size: 1.3rem; }
.loja-card__preco { font-size: 1.25rem; }
.loja-card__etiqueta { top: -9px; padding: 3px 10px; font-size: 0.62rem; }
.loja-selos { gap: 8px 14px; padding-top: 6px; }

/* ---------- Ajustes de integração ---------- */

/* Ícone do topo das telas de serviço: cor sólida, igual aos cards da Home. */
.investiga__icone {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--servico-cor);
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--servico-cor) 35%, transparent);
}
.investiga__icone .ic { width: 24px; height: 24px; }

/* Preço dentro de botão verde: o dourado some no fundo verde. */
.btn:not(.btn--claro):not(.btn--ghost):not(.btn--perigo) .preco { color: inherit; }

/* Celular pequeno: título e saldo dividem a linha sem cortar o título. */
@media (max-width: 374px) {
  .cabecalho { gap: 8px; }
  .cabecalho h1 { font-size: 1.12rem; }
  .cabecalho .btn-icone { width: 38px; height: 38px; }
  .saldo { gap: 5px; padding: 0 4px; }
  .saldo__moeda { width: 22px; height: 22px; }
  .saldo__valor { font-size: 0.9rem; }
  .saldo__add { width: 26px; height: 26px; }
}

/* Barras de rolagem finas e discretas em todo o app (no Windows o padrão é
   uma barra larga com setinhas, que destoa do visual). */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent; }
*:hover { scrollbar-color: rgba(255, 255, 255, 0.28) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); }
::-webkit-scrollbar-button { display: none; }

/* ---------- Home: tool cards + 3-step guide ---------- */

@media (max-width: 599px) { .pagina--home { gap: 12px; } }

/* Each card is a size container, so the CTA adapts to the card's own width:
   full "Start" pill when it fits beside the price, arrow circle when narrow,
   hidden when the price needs the whole row. */
.servico { container: servico / inline-size; }
.servico__topo { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; }

.servico--popular {
  border-color: color-mix(in srgb, var(--servico-cor) 55%, transparent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--servico-cor) 16%, transparent);
}
.servico__popular-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px 3px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1.2; white-space: nowrap;
}
.servico__popular-tag .ic { width: 11px; height: 11px; color: var(--ouro); }

.servico__ir {
  display: grid; place-items: center;
  width: 30px; height: 30px; padding: 0; flex: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #2bf08c, var(--verde) 55%, #00c964);
  color: #06231a;
  font-size: 0.74rem; font-weight: 800; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 230, 118, 0.28);
}
.servico__ir .ic { width: 16px; height: 16px; }
.servico__ir-texto { display: none; }
@container servico (min-width: 200px) {
  .servico__ir { display: inline-flex; align-items: center; gap: 3px; width: auto; padding: 0 10px 0 14px; }
  .servico__ir-texto { display: inline; }
  .servico__ir .ic { width: 14px; height: 14px; }
}
@container servico (max-width: 140px) {
  .servico__ir { display: none; }
}

/* Full-width last card on phones: the wrapper steps aside so the icon keeps
   its two-row slot in the horizontal layout above. */
@media (max-width: 599px) {
  .servicos-grid > .servico:last-child:nth-child(odd) .servico__topo { display: contents; }
}

.home-steps {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 16px;
  border-radius: 20px;
  background: var(--superficie);
  border: 1px solid var(--linha);
}
.home-steps__item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.home-steps__num {
  display: grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--verde); color: #06231a;
  font-size: 0.74rem; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.12);
}
.home-steps__text { font-size: 0.82rem; font-weight: 700; color: var(--texto); white-space: nowrap; }
.home-steps__divider { flex: none; display: grid; color: var(--texto-3); }
.home-steps__divider .ic { width: 14px; height: 14px; }

/* Phones: a 3-column stepper (number on top, label below) keeps the labels
   readable instead of shrinking them to fit one line. */
@media (max-width: 599px) {
  .home-steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start; gap: 2px;
    padding: 14px 8px 12px;
  }
  .home-steps__item { flex-direction: column; gap: 6px; text-align: center; }
  .home-steps__text { font-size: 0.74rem; line-height: 1.25; white-space: normal; text-wrap: balance; }
  .home-steps__divider { margin-top: 5px; }
}
