/* ═════════════════════════════════════════════════════════════════════════
   B2GO TP Dashboard — estilos (redesign "tech")
   Fundo escuro contínuo com glow verde · cards de conteúdo brancos ·
   tab bar flutuante · hero sazonal verde fluorescente.
   Paleta B2GO:
   verde-escuro #0B3D2E · verde #1DB954 · neon #39FF9E · fundo-profundo #04140E
   amarelo #FF9F1C · vermelho #E53935 · azul #2563EB · cinza #C5D9D2
   ═════════════════════════════════════════════════════════════════════════ */

:root {
  --verde-escuro: #0b3d2e;
  --verde: #1db954;
  --neon: #39ff9e;
  --fundo-profundo: #04140e;
  --amarelo: #ff9f1c;
  --vermelho: #e53935;
  --azul: #2563eb;
  --cinza: #c5d9d2;
  /* tons claros usados DENTRO dos cards brancos */
  --fundo: #f1f7f4;
  --borda: #d4e6dc;
  --texto: #3a6352;
  --texto-suave: #7a9e90;
  --laranja: #ff5a2a;
  /* sombra padrão dos cards brancos sobre o fundo escuro */
  --sombra-card: 0 8px 24px rgba(0, 0, 0, 0.28);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: #020a06;
  color: var(--verde-escuro);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
}

/* Moldura do app: mobile-first, centralizada no desktop.
   O gradiente escuro cobre a tela inteira — inclusive atrás dos headers. */
#app {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  background:
    radial-gradient(90% 50% at 15% 0%, rgba(29, 185, 84, 0.22) 0%, transparent 55%),
    radial-gradient(70% 40% at 100% 30%, rgba(29, 185, 84, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, var(--verde-escuro) 0%, var(--fundo-profundo) 55%, #020a06 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
}

.tela {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rolagem {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ─── Loading global ─────────────────────────────────────────────────────── */

.carregando {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--verde);
  border-radius: 50%;
  animation: girar 0.8s linear infinite;
}

.spinner--claro {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: var(--verde);
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

.erro-carga {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.erro-carga button {
  background: linear-gradient(135deg, var(--verde), #0e8f45);
  color: var(--fundo-profundo);
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(29, 185, 84, 0.3);
}

/* ─── Dots de status ─────────────────────────────────────────────────────── */

.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot--sm {
  width: 10px;
  height: 10px;
}

.dot--xs {
  width: 8px;
  height: 8px;
}

.dot--green  { background: var(--verde);    box-shadow: 0 0 8px rgba(29, 185, 84, 0.55); }
.dot--yellow { background: var(--amarelo);  box-shadow: 0 0 8px rgba(255, 159, 28, 0.55); }
.dot--red    { background: var(--vermelho); box-shadow: 0 0 8px rgba(229, 57, 53, 0.55); }
.dot--blue   { background: var(--azul);     box-shadow: 0 0 8px rgba(37, 99, 235, 0.5); }
.dot--gray   { background: var(--cinza); }

.valor--good { color: var(--verde); }
.valor--warn { color: var(--amarelo); }
.valor--bad  { color: var(--vermelho); }

/* ─── Tela de login ──────────────────────────────────────────────────────── */

.login {
  background: transparent; /* o gradiente do #app aparece por trás */
  position: relative;
  overflow: hidden;
}

.login__bolha {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 185, 84, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.login__bolha--1 { top: -80px; right: -80px; width: 300px; height: 300px; }
.login__bolha--2 { bottom: -60px; left: -60px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(29, 185, 84, 0.14) 0%, transparent 70%); }

.login__conteudo {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 28px;
  position: relative;
  z-index: 1;
}

.login__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 44px;
}

.login__logo img {
  width: 180px;
  max-width: 60%;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(29, 185, 84, 0.35));
}

.login__subtitulo {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 12px;
  letter-spacing: 0.05em;
}

.login__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 7px;
}

.login__input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  font-size: 16px; /* ≥16px evita zoom automático no iOS */
  outline: none;
  font-family: inherit;
  caret-color: var(--verde);
}

.login__input:focus {
  border-color: rgba(29, 185, 84, 0.5);
  box-shadow: 0 0 14px rgba(29, 185, 84, 0.15);
}

.login__campo-senha {
  position: relative;
}

.login__campo-senha .login__input {
  padding-right: 48px;
}

.login__toggle-senha {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  padding: 0;
}

.login__erro {
  background: rgba(229, 57, 53, 0.12);
  border: 1px solid rgba(229, 57, 53, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #ff8a80;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login__botao {
  margin-top: 8px;
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--verde), #0e8f45);
  border: none;
  border-radius: 14px;
  color: var(--fundo-profundo);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(29, 185, 84, 0.35);
  transition: opacity 0.2s;
}

.login__botao:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.login__aviso {
  margin-top: 32px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.7;
}

.login__demo {
  margin-top: 10px;
  text-align: center;
  font-size: 10px;
  color: rgba(29, 185, 84, 0.65);
  line-height: 1.6;
}

.login__rodape {
  padding: 0 28px 32px;
  text-align: center;
  position: relative;
  z-index: 1;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
}

/* ─── Header (Home e Cliente) — transparente sobre o gradiente ───────────── */

.header {
  background: transparent;
  padding: calc(20px + env(safe-area-inset-top)) 20px 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.header__linha1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.header__logo img {
  height: 24px;
  width: auto;
  display: block;
}

.header__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__badge {
  background: var(--vermelho);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(229, 57, 53, 0.5);
}

.header__data {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.header__linha2 {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.header__titulo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.header__usuario {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__usuario-nome {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-align: right;
}

.header__sair {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: block;
  margin-left: auto;
}

.header__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--verde), #0e8f45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--fundo-profundo);
  box-shadow: 0 0 14px rgba(29, 185, 84, 0.35);
}

/* ─── Alertas de revisão ─────────────────────────────────────────────────── */

.alertas {
  padding: 10px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.alerta {
  background: #fff;
  border-left: 4px solid var(--vermelho);
  border-radius: 12px;
  padding: 11px 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: var(--sombra-card);
}

.alerta__icone {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alerta__corpo {
  flex: 1;
  min-width: 0;
}

.alerta__titulo {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vermelho);
  margin-bottom: 3px;
}

.alerta__teste {
  font-size: 12px;
  font-weight: 600;
  color: var(--verde-escuro);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alerta__sub {
  font-size: 11px;
  color: var(--texto-suave);
  margin-top: 2px;
}

.alerta__visto {
  flex-shrink: 0;
  background: var(--verde-escuro);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 2px;
}

/* ─── Hero sazonal (verde fluorescente) ──────────────────────────────────── */

.banner-wrap {
  padding: 10px 14px 0;
}

.hero {
  border-radius: 20px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #39ff9e 0%, #12d67a 55%, #049e5c 100%);
  box-shadow: 0 12px 34px rgba(29, 255, 158, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
}

.hero::after {
  bottom: -50px;
  left: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(4, 158, 92, 0.4) 0%, transparent 70%);
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  position: relative;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fundo-profundo);
}

.hero__kicker svg {
  display: block;
}

.hero__titulo {
  font-size: 20px;
  font-weight: 800;
  color: var(--fundo-profundo);
  line-height: 1.25;
  margin-bottom: 4px;
  position: relative;
}

.hero__sub {
  font-size: 12.5px;
  color: rgba(4, 20, 14, 0.65);
  font-weight: 600;
  position: relative;
}

/* ─── Lista de clientes ──────────────────────────────────────────────────── */

.lista-cabecalho,
.cliente-linha {
  display: grid;
  grid-template-columns: 1fr 58px 58px 58px;
  gap: 4px;
  align-items: center;
}

.lista-cabecalho {
  padding: 14px 14px 6px;
}

.lista-cabecalho span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.lista-cabecalho span:not(:first-child) {
  text-align: center;
}

.lista-clientes {
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cliente-linha {
  background: #fff;
  border-radius: 16px;
  padding: 13px 14px;
  border: none;
  box-shadow: var(--sombra-card);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.cliente-linha:active {
  background: #f7fbf9;
}

.cliente-linha__nome {
  font-size: 14px;
  font-weight: 700;
  color: var(--verde-escuro);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cliente-linha__plat {
  font-size: 10px;
  color: var(--texto-suave);
  margin-top: 2px;
}

.cliente-linha__dot {
  display: flex;
  justify-content: center;
}

/* ─── Legenda ────────────────────────────────────────────────────────────── */

.legenda {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 14px 4px;
}

.legenda__item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

/* ─── Blocos (tela do cliente) ───────────────────────────────────────────── */

.bloco {
  background: #fff;
  border-radius: 16px;
  border: none;
  box-shadow: var(--sombra-card);
  overflow: hidden;
  margin-bottom: 12px;
}

.bloco__cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid var(--borda);
}

.bloco__titulo {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--texto-suave);
}

.bloco__conteudo {
  padding: 13px 15px;
}

.metrica {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--fundo);
}

.metrica:last-child {
  border-bottom: none;
}

.metrica__label {
  font-size: 13px;
  color: var(--texto);
}

.metrica__label .principal-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texto-suave);
  border: 1px solid var(--borda);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: 2px;
}

.metrica__valores {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-shrink: 0;
}

.metrica__valor {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--verde-escuro);
}

.metrica__meta {
  font-size: 10px;
  color: var(--texto-suave);
}

.campanha-titulo {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin: 14px 0 4px;
}

.campanha-titulo:first-child {
  margin-top: 0;
}

/* Barra de progresso do budget */
.progresso__rotulos {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 5px;
  font-size: 10px;
  color: var(--texto-suave);
}

.progresso__trilha {
  height: 6px;
  background: #e8f0ec;
  border-radius: 99px;
  overflow: hidden;
}

.progresso__preenchimento {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.progresso__preenchimento--green  { background: var(--verde); }
.progresso__preenchimento--yellow { background: var(--amarelo); }
.progresso__preenchimento--red    { background: var(--vermelho); }

/* Tags de teste */
.tag-teste {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 4px;
  margin: 10px 0;
  font-size: 10px;
  font-weight: 700;
}

.tag-teste:first-child {
  margin-top: 0;
}

.tag-teste--ONETEST { background: #dbeafe; color: #1d4ed8; }
.tag-teste--ONETIME { background: #fee8e4; color: #c2410c; }

.tag-teste__ponto {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.tag-teste--ONETEST .tag-teste__ponto { background: var(--azul); }
.tag-teste--ONETIME .tag-teste__ponto { background: var(--laranja); }

.sem-teste {
  font-size: 13px;
  color: var(--texto-suave);
  font-style: italic;
}

.proximas-revisoes {
  margin-top: 10px;
  padding: 9px 11px;
  background: var(--fundo);
  border-radius: 8px;
}

.proximas-revisoes__titulo {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin-bottom: 6px;
}

.proximas-revisoes__linha {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--texto);
  padding-bottom: 4px;
}

.proximas-revisoes__data {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.revisao-feita {
  font-size: 11px;
  color: var(--texto-suave);
  line-height: 1.5;
  margin-top: 8px;
  padding-left: 10px;
  border-left: 2px solid var(--borda);
}

.divisor-teste {
  border: none;
  border-top: 1px dashed var(--borda);
  margin: 14px 0;
}

/* ─── Header do cliente ──────────────────────────────────────────────────── */

.header__voltar {
  font-size: 13px;
  font-weight: 600;
  color: var(--verde);
  margin-bottom: 14px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: block;
}

.header__cliente-nome {
  font-size: 23px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}

.header__cliente-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.pills {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}

.pill {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 8px;
  text-align: center;
}

.pill__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 7px;
}

.pill__dot {
  display: flex;
  justify-content: center;
}

.conteudo-cliente {
  padding: 14px 14px 0;
}

/* ─── Aba Automação ──────────────────────────────────────────────────────── */

.automacao {
  padding: 14px 14px 0;
}

.automacao__intro {
  margin-bottom: 14px;
}

.automacao__titulo {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.automacao__sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

/* Aviso de consumo de tokens — laranja translúcido com borda glow */
.aviso-tokens {
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 159, 28, 0.14), rgba(4, 20, 14, 0.4));
  border: 1px solid rgba(255, 159, 28, 0.3);
  box-shadow: 0 0 24px rgba(255, 159, 28, 0.08), 0 8px 24px rgba(0, 0, 0, 0.3);
  margin-bottom: 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.aviso-tokens__icone {
  color: var(--amarelo);
  filter: drop-shadow(0 0 6px rgba(255, 159, 28, 0.8));
  flex-shrink: 0;
  margin-top: 1px;
}

.aviso-tokens__icone svg {
  display: block;
}

.aviso-tokens__titulo {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--amarelo);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.aviso-tokens__texto {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.automacao__rotulo {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}

.automacao__cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.automacao-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.automacao-card__titulo {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.automacao-card__cor {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.automacao-card__cor--meta   { background: var(--azul); }
.automacao-card__cor--google { background: var(--amarelo); }

.automacao__fonte {
  margin-top: 16px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

/* ─── Swipe-to-confirm ───────────────────────────────────────────────────── */

.swipe {
  position: relative;
  height: 56px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: background 0.3s, border-color 0.3s;
}

.swipe__fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50px;
  transition: width 0.25s ease;
}

.swipe--meta .swipe__fill {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.33), rgba(37, 99, 235, 0.13));
}

.swipe--google .swipe__fill {
  background: linear-gradient(90deg, rgba(255, 159, 28, 0.33), rgba(255, 159, 28, 0.13));
}

.swipe__texto {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.swipe__label {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}

.swipe__sub {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1px;
}

.swipe__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  color: #fff;
  transition: left 0.25s ease;
  touch-action: none;
}

.swipe__knob:active {
  cursor: grabbing;
}

.swipe__seta svg,
.swipe__check {
  display: block;
}

.swipe__check {
  display: none;
  font-size: 16px;
  font-weight: 800;
}

.swipe--meta .swipe__knob {
  background: linear-gradient(135deg, #2563eb, rgba(37, 99, 235, 0.8));
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.47);
}

.swipe--google .swipe__knob {
  background: linear-gradient(135deg, #ff9f1c, rgba(255, 159, 28, 0.8));
  box-shadow: 0 4px 14px rgba(255, 159, 28, 0.47);
}

/* Estado concluído: trilha preenchida na cor, texto escuro, knob escuro com ✓ */
.swipe--done.swipe--meta   { background: var(--azul);    border-color: var(--azul); }
.swipe--done.swipe--google { background: var(--amarelo); border-color: var(--amarelo); }

.swipe--done .swipe__fill { opacity: 0; }

.swipe--done .swipe__label { color: var(--fundo-profundo); }
.swipe--done .swipe__sub   { display: none; }

.swipe--done .swipe__knob {
  background: var(--fundo-profundo);
  box-shadow: none;
}

.swipe--done .swipe__seta  { display: none; }
.swipe--done .swipe__check { display: block; }

.swipe--done.swipe--meta   .swipe__check { color: var(--azul); }
.swipe--done.swipe--google .swipe__check { color: var(--amarelo); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.footer {
  margin: 6px 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0 8px;
}

.footer__marca {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.footer__logo-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
}

.footer__logo-chip img {
  height: 14px;
  width: auto;
  display: block;
}

.footer__copy {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
  margin-bottom: 6px;
}

.footer__confidencial {
  background: rgba(255, 159, 28, 0.08);
  border: 1px solid rgba(255, 159, 28, 0.22);
  border-left: 3px solid var(--amarelo);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 10px;
  color: rgba(255, 220, 170, 0.75);
  line-height: 1.6;
}

.footer__confidencial strong {
  color: #ffd88a;
}

/* ─── Tab bar flutuante ──────────────────────────────────────────────────── */

.tabbar {
  position: absolute;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 14px;
  right: 14px;
  background: linear-gradient(160deg, rgba(15, 42, 32, 0.96), rgba(4, 20, 14, 0.98));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 26px;
  border: 1px solid rgba(29, 185, 84, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(29, 185, 84, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 8px 6px;
  display: flex;
  z-index: 30;
}

.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 4px;
  border-radius: 18px;
  position: relative;
  color: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  background: none;
  border: none;
  transition: all 0.2s;
}

.tabbar__item--ativo {
  background: rgba(29, 185, 84, 0.14);
  box-shadow: 0 0 0 1px rgba(29, 185, 84, 0.3), 0 0 18px rgba(29, 185, 84, 0.25);
  color: var(--verde);
}

.tabbar__barra {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--verde);
  box-shadow: 0 0 8px var(--verde);
}

.tabbar__icone svg {
  display: block;
}

.tabbar__rotulo {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.35);
}

.tabbar__item--ativo .tabbar__rotulo {
  color: #fff;
}

/* ─── Visões Budget e Testes (tabs da Home) ──────────────────────────────── */

.budget-card {
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 13px 14px;
  box-shadow: var(--sombra-card);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.budget-card__topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.budget-card__nome {
  font-size: 14px;
  font-weight: 700;
  color: var(--verde-escuro);
}

.budget-card__valores {
  font-size: 11px;
  color: var(--texto-suave);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.teste-card {
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 13px 14px;
  box-shadow: var(--sombra-card);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.teste-card__cliente {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin-bottom: 4px;
}

.teste-card__nome {
  font-size: 13px;
  font-weight: 600;
  color: var(--verde-escuro);
  margin-bottom: 6px;
}

.teste-card__info {
  font-size: 11px;
  color: var(--texto-suave);
}

.vazio {
  padding: 32px 14px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

/* ─── Toast ──────────────────────────────────────────────────────────────── */

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(104px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: #0f2a20;
  border: 1px solid rgba(29, 185, 84, 0.3);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(29, 185, 84, 0.12);
  z-index: 50;
  max-width: 85%;
  text-align: center;
  animation: toast-sobe 0.25s ease;
}

.toast--erro {
  background: var(--vermelho);
  border-color: rgba(255, 255, 255, 0.2);
}

@keyframes toast-sobe {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Espaço no fim da rolagem para o conteúdo não ficar sob a tab bar flutuante */
.espaco-final {
  height: calc(104px + env(safe-area-inset-bottom));
}

/* ─── Plataformas (Meta / Google) ────────────────────────────────────────── */
/* Mesma convenção de cor da aba Automação: meta = azul, google = amarelo */

.selo-plat {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 2px 7px;
}

.selo-plat--meta   { background: #dbeafe; color: #1d4ed8; }
.selo-plat--google { background: #fdefd8; color: #b45309; }

/* Seletor de plataforma no detalhe do cliente (só com Meta + Google ativos) */
.plat-switch {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 12px;
}

.plat-switch__item {
  flex: 1;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
}

.plat-switch__item--ativo.plat-switch__item--meta {
  background: var(--azul);
  color: #fff;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.45);
}

.plat-switch__item--ativo.plat-switch__item--google {
  background: var(--amarelo);
  color: var(--fundo-profundo);
  box-shadow: 0 0 10px rgba(255, 159, 28, 0.45);
}
