:root {
  /* Cores oficiais da marca Safe-ID Brasil (Web Development Kit v1.0-HML) */
  --azul: #163a63;
  --azul-escuro: #0f2846;
  --azul-claro: #e9edf4;
  --dourado: #d4af37;
  --dourado-escuro: #b8942e;
  --dourado-claro: #faf3e0;
  --texto: #1a2333;
  --texto-suave: #5b6472;
  --borda: #e3e8ef;
  --sucesso: #1c9c5f;
  --erro: #d92d20;
}

* { box-sizing: border-box; }

body {
  font-family: "Montserrat", "Segoe UI", Roboto, -apple-system, sans-serif;
  color: var(--texto);
  background: #fafbfd;
  margin: 0;
}

a { color: var(--azul); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--borda);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 16px;
}
.logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--azul);
  letter-spacing: -0.5px;
}
.logo span { color: var(--texto); font-weight: 400; }
.logo-link { display: flex; align-items: center; flex: none; }
.logo-img { height: 42px; width: auto; display: block; }
.nav-links { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--texto); font-weight: 500; font-size: 0.86rem; white-space: nowrap; }
.nav-links a:hover { color: var(--azul); }
.btn-cta {
  background: var(--azul);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.86rem;
}
.btn-cta:hover { background: var(--azul-escuro); color: #fff; }
.btn-cta-lg { padding: 14px 28px; font-size: 1.05rem; border-radius: 10px; }

/* Menu hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  border: none; background: none;
  padding: 0; cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--azul); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header .btn-cta { display: none; }
  .header .container { flex-wrap: wrap; }
  .nav-links {
    flex-basis: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 480px; margin-top: 12px; border-top: 1px solid var(--borda); padding-top: 2px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 2px; border-bottom: 1px solid var(--borda); font-size: 0.95rem; }
  .nav-links li:last-child a { border-bottom: none; }
}

.badge-trust {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

/* Hero — Renovação A3 (inspirado na peça de campanha + identa.com.br) */
.hero-a3 {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 25%, #0e2a63 0%, #050d1f 65%);
  color: #fff;
  padding: 110px 32px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-a3-conteudo, .hero-a3-visual { position: relative; z-index: 1; }
.hero-a3-conteudo { max-width: 540px; padding: 12px 0; }
.hero-a3-conteudo h1 { font-size: 2.7rem; font-weight: 800; margin: 0 0 28px; line-height: 1.2; }
.hero-a3-conteudo h1 .destaque { color: #5ec8ff; }
.hero-a3-icones { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-a3-icone {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.92rem; font-weight: 600; color: #dbe6ff;
}
.hero-a3-icone svg { flex-shrink: 0; color: #5ec8ff; }
.hero-a3-nota {
  display: flex; align-items: center; gap: 8px;
  margin-top: 22px; font-size: 0.85rem; color: #9fc4ff;
}
.hero-a3-nota svg { color: #4ade80; flex-shrink: 0; }

.pulse-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; margin-right: 6px;
  box-shadow: 0 0 0 rgba(74,222,128,0.6);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.hero-stats { display: flex; gap: 44px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat-n { font-size: 1.8rem; font-weight: 800; color: #fff; }
.hero-stat-n sup { font-size: 0.85rem; font-weight: 700; color: #5ec8ff; margin-left: 2px; }
.hero-stat-l { font-size: 0.8rem; color: #9fc4ff; margin-top: 4px; }

.hero-a3-visual { width: 400px; max-width: 100%; flex-shrink: 0; padding: 12px 0 24px; }
.hero-ilustracao { width: 100%; height: auto; overflow: visible; }

.ilus-flutua { animation: ilus-flutua 5s ease-in-out infinite; transform-origin: center; }
.ilus-flutua-b { animation-duration: 4.2s; animation-delay: 0.3s; }
.ilus-flutua-c { animation-duration: 4.6s; animation-delay: 0.7s; }
@keyframes ilus-flutua {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Ticker — cada item carrega sua própria margem (em vez de gap no container),
   assim os dois blocos duplicados têm exatamente a mesma largura e o loop de
   -50% fecha sem salto/soluço no ponto de emenda. */
.ticker {
  position: relative; z-index: 1;
  width: 100%;
  margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  padding: 18px 0 22px;
}
.ticker-track {
  display: flex; width: max-content;
  /* 4 cópias da lista (ver index.html) — precisa de conteúdo suficiente pra
     nunca "acabar" antes do loop resetar em telas largas. Com 1 cópia tendo
     ~1065px, 4 cópias garantem ~3195px de buffer à frente do ponto de reset,
     cobrindo qualquer largura de tela realista. Desloca 1/4 (25%), não 1/2,
     porque agora são 4 cópias, não 2. */
  animation: ticker 24s linear infinite;
}
.ticker-item {
  font-size: 0.82rem; font-weight: 600; color: #7f9fd6;
  white-space: nowrap;
  margin-right: 40px;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-25%); } }

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(.22,1,.36,1), transform 0.65s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

.reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }

/* Faixa de confiança */
.trust-bar { background: var(--azul-escuro); padding: 22px 24px; }
.trust-bar-grid {
  max-width: 1220px; margin: 0 auto;
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 32px;
}
.trust-bar-item {
  display: flex; align-items: center; gap: 10px;
  color: #dbe6ff; font-size: 0.85rem; font-weight: 600;
  opacity: 0;
  animation: trust-item-in 0.6s ease forwards;
}
.trust-bar-item:nth-child(1) { animation-delay: 0.05s; }
.trust-bar-item:nth-child(2) { animation-delay: 0.15s; }
.trust-bar-item:nth-child(3) { animation-delay: 0.25s; }
.trust-bar-item:nth-child(4) { animation-delay: 0.35s; }
@keyframes trust-item-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.trust-bar-item svg { color: var(--dourado); flex-shrink: 0; }

/* O que você faz com o certificado */
.grid-usos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1080px; margin: 0 auto;
}
.card-uso {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 6px 18px rgba(11,61,145,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card-uso:hover { transform: translateY(-3px) scale(1.015); box-shadow: 0 10px 26px rgba(11,61,145,0.14); }
.card-uso svg { color: var(--azul); flex-shrink: 0; transition: transform 0.25s ease; }
.card-uso:hover svg { transform: scale(1.15) rotate(-4deg); }
.card-uso:nth-child(even) svg { color: var(--dourado); }
.card-uso h3 { margin: 0; font-size: 0.98rem; font-weight: 700; }

/* FAQ */
.faq-lista { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 6px 20px;
}
.faq-item summary {
  padding: 16px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 0; top: 14px;
  font-size: 1.3rem; font-weight: 400; color: var(--dourado);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: var(--texto-suave); font-size: 0.92rem; line-height: 1.5; }

/* Institucional */
.institucional-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.institucional-grid h2 { font-size: 1.9rem; margin: 0 0 14px; }
.badge-inline {
  display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--dourado-escuro);
  background: var(--dourado-claro); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.institucional-foto img {
  width: 100%; height: auto; border-radius: 16px;
  box-shadow: 0 20px 50px rgba(11,61,145,0.18);
}
@media (max-width: 800px) {
  .institucional-grid { grid-template-columns: 1fr; }
  .institucional-grid h2 { text-align: center !important; }
  .institucional-grid > div:first-child { text-align: center; }
}

@media (max-width: 800px) {
  .badge-float { display: none; }
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
#painelProdutos .container { max-width: 1280px; }

/* Produtos */
.section { padding: 56px 24px; }
.section h2 { text-align: center; font-size: 1.8rem; margin-bottom: 8px; }
.section .subtitle { text-align: center; color: var(--texto-suave); margin-bottom: 36px; }

.categoria-titulo {
  font-size: 1.05rem; color: var(--texto); margin: 40px 0 18px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  text-align: center;
}
.categoria-titulo:first-of-type { margin-top: 8px; }
.badge-novidade {
  display: inline-block; background: var(--dourado); color: #fff;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px;
}

.grid-produtos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.grid-produtos:empty { display: none; }
.card-produto {
  position: relative;
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: 14px;
  padding: 22px;
  flex: 1 1 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card-produto::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--azul), var(--dourado));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.card-produto:hover::before { transform: scaleX(1); }
.card-produto:hover { box-shadow: 0 10px 28px rgba(11,61,145,0.14); transform: translateY(-3px); }
.card-produto.card-destaque {
  border-color: var(--dourado);
  box-shadow: 0 8px 26px rgba(212,175,55,0.2);
}
.card-produto.card-destaque::before {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--dourado), var(--dourado-escuro));
}
.card-produto.card-destaque:hover { box-shadow: 0 14px 32px rgba(212,175,55,0.28); }
.selo-destaque {
  position: absolute; top: 34px; right: -60px;
  width: 190px;
  text-align: center;
  background: var(--dourado); color: #fff;
  font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 5px 0;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.card-produto .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--azul);
  background: var(--azul-claro);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  width: fit-content;
}
.card-produto h3 { margin: 0 0 6px; font-size: 1.15rem; }
.passo-icone {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--azul-claro);
  color: var(--azul);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.card-produto:hover .passo-icone {
  transform: rotate(-6deg) scale(1.08);
  background: var(--dourado-claro);
  color: var(--dourado-escuro);
}
.card-produto .desc { color: var(--texto-suave); font-size: 0.9rem; flex-grow: 1; margin-bottom: 16px; }
.card-produto .preco { font-size: 1.6rem; font-weight: 800; color: var(--texto); margin-bottom: 4px; }
.card-produto .validade { color: var(--texto-suave); font-size: 0.85rem; margin-bottom: 16px; }
.card-produto button {
  background: var(--azul);
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.card-produto button:hover { background: var(--azul-escuro); }
.btn-whatsapp {
  display: block;
  text-align: center;
  background: #25d366;
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  width: 100%;
}
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }

/* Checkout */
#checkout { background: #fff; border-top: 1px solid var(--borda); display: none; }
#checkout.active { display: block; }
.checkout-box {
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: 16px;
  padding: 32px;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.resumo-produto {
  background: var(--azul-claro);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stepper { display: flex; gap: 6px; margin-bottom: 26px; }
.stepper .dot { flex: 1; height: 4px; border-radius: 4px; background: var(--borda); }
.stepper .dot.done { background: var(--azul); }

.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-step h4 { margin-top: 0; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: var(--texto); }
.form-group input, .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--borda);
  border-radius: 8px;
  font-size: 0.95rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn-primary {
  background: var(--azul);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn-primary:hover { background: var(--azul-escuro); }
.btn-primary:disabled { background: #a8bde0; cursor: not-allowed; }
.btn-outline {
  background: #fff;
  color: var(--azul);
  border: 1px solid var(--azul);
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.alert { padding: 14px 16px; border-radius: 10px; font-size: 0.9rem; margin-top: 14px; }
.alert-ok { background: #e7f7ee; color: var(--sucesso); border: 1px solid #b9ecd0; }
.alert-erro { background: #fdecec; color: var(--erro); border: 1px solid #f6c6c2; }
.alert-info { background: var(--azul-claro); color: var(--azul); border: 1px solid #c7dcfb; }
.alert-loading { background: #fff8e6; color: #8a6d00; border: 1px solid #f5e6ab; }


.pix-box { text-align: center; }
.pix-box img { border: 1px solid var(--borda); border-radius: 10px; margin-bottom: 14px; }
.pix-copia {
  display: flex; gap: 8px; align-items: center; background: #f4f6f9;
  border: 1px solid var(--borda); border-radius: 8px; padding: 8px 10px;
}
.pix-copia input { border: none; background: transparent; flex: 1; font-size: 0.78rem; color: var(--texto-suave); }
.pix-copia button { border: none; background: var(--azul); color: #fff; border-radius: 6px; padding: 6px 12px; cursor: pointer; font-size: 0.8rem; }

.badge-tag {
  font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
}
.badge-real { background: #e7f7ee; color: var(--sucesso); }
.badge-mock { background: #f0f1f3; color: var(--texto-suave); }

footer {
  background: var(--azul-escuro);
  color: #cfe0ff;
  padding: 44px 24px 0;
  font-size: 0.88rem;
  margin-top: 40px;
}
.footer-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-logo-badge {
  display: inline-flex;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
}
.footer-logo-badge img { height: 46px; width: auto; display: block; }
.footer-sobre { color: #9db9e8; font-size: 0.85rem; margin: 12px 0 16px; }
.footer-selo {
  display: inline-block;
  margin-bottom: 4px;
  max-width: 142px;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: normal;
}
.footer-selo * { box-sizing: content-box; }
.footer-selo img { display: block; height: 44px; width: auto; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff;
  transition: background 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.24); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-col h5 { color: #fff; font-size: 0.85rem; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #cfe0ff; text-decoration: none; font-size: 0.87rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #7f9fd6;
}
.footer-bottom a { color: #7f9fd6; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-a3 { text-align: center; justify-content: center; }
  .hero-a3-icones { justify-content: center; }
}

.tabela-admin {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: 10px;
  overflow: hidden;
}
.tabela-admin th, .tabela-admin td {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid var(--borda);
  font-size: 0.85rem;
}
.tabela-admin th { background: #f4f6f9; font-size: 0.78rem; text-transform: uppercase; color: var(--texto-suave); }
.tabela-admin tr:last-child td { border-bottom: none; }

#logDev {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  background: #0d1117;
  color: #9fb0c3;
  padding: 10px;
  border-radius: 8px;
  max-height: 130px;
  overflow-y: auto;
  margin-top: 10px;
}

/* Botão flutuante do WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.05); color: #fff; box-shadow: 0 14px 36px rgba(0,0,0,0.4); }
.whatsapp-float-texto { white-space: nowrap; }
.whatsapp-float::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.55);
  animation: whatsapp-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes whatsapp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 560px) {
  .whatsapp-float {
    bottom: 18px; right: 18px;
    width: 60px; height: 60px;
    padding: 0; justify-content: center;
  }
  .whatsapp-float-texto { display: none; }
}

/* Páginas de conteúdo (políticas, documentação) */
.pagina-conteudo {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 48px;
  padding-bottom: 64px;
}
.pagina-conteudo h1 { font-size: 1.9rem; margin: 0 0 8px; }
.pagina-conteudo .pagina-versao { color: var(--texto-suave); font-size: 0.85rem; margin: 0 0 32px; }
.pagina-conteudo h2 { font-size: 1.25rem; margin: 36px 0 12px; color: var(--azul); }
.pagina-conteudo h3 { font-size: 1.02rem; margin: 22px 0 8px; }
.pagina-conteudo p { color: var(--texto-suave); line-height: 1.7; margin: 0 0 14px; }
.pagina-conteudo ul, .pagina-conteudo ol { color: var(--texto-suave); line-height: 1.7; margin: 0 0 14px; padding-left: 22px; }
.pagina-conteudo li { margin-bottom: 4px; }
.pagina-conteudo a { color: var(--azul); font-weight: 600; }

.contato-info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin: 28px 0; padding: 22px; background: #f9fafb;
  border-radius: 12px; border: 1px solid var(--borda);
}
.contato-info-item h3 { margin: 0 0 8px; font-size: 0.95rem; color: var(--azul); }
.contato-info-item p { margin: 0; font-size: 0.9rem; line-height: 1.6; }

.contato-mapa {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--borda);
  margin-bottom: 8px;
}
.contato-mapa iframe { width: 100%; height: 320px; border: 0; display: block; }

/* Painel admin — abas */
.admin-tabs { background: #fff; border-bottom: 1px solid var(--borda); }
.admin-tabs-inner { display: flex; gap: 6px; padding-top: 12px; }
.admin-tab {
  background: none; border: none; cursor: pointer;
  padding: 10px 18px; font-weight: 600; font-size: 0.92rem;
  color: var(--texto-suave); border-bottom: 3px solid transparent;
}
.admin-tab:hover { color: var(--azul); }
.admin-tab.active { color: var(--azul); border-bottom-color: var(--azul); }

/* Painel admin — status de pedidos */
.status-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.status-ok { background: #e7f7ee; color: var(--sucesso); }
.status-erro { background: #fdecec; color: var(--erro); }
.status-espera { background: var(--azul-claro); color: var(--azul); }

.pedido-detalhe {
  background: #fff; border: 1px solid var(--borda); border-radius: 12px;
  padding: 22px; margin-top: 20px;
}
.pedido-detalhe h4 { margin-top: 0; }
.pedido-detalhe pre {
  background: #f4f6f9; border-radius: 8px; padding: 14px;
  font-size: 0.78rem; overflow-x: auto; white-space: pre-wrap; word-break: break-word;
}
.pedido-resumo-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 12px; margin-bottom: 18px;
}
.pedido-resumo-grid div span { display: block; font-size: 0.72rem; color: var(--texto-suave); text-transform: uppercase; margin-bottom: 3px; }
.pedido-resumo-grid div strong { font-size: 0.92rem; overflow-wrap: break-word; word-break: break-word; }

/* Painel admin — dashboard */
.dash-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-tile { background: #fff; border: 1px solid var(--borda); border-radius: 12px; padding: 18px 20px; }
.stat-tile .stat-label { font-size: 0.76rem; color: var(--texto-suave); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 8px; }
.stat-tile .stat-value { font-size: 1.9rem; font-weight: 700; color: var(--texto); line-height: 1.15; }
.stat-tile .stat-sub { font-size: 0.8rem; color: var(--texto-suave); margin-top: 6px; }

.dash-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 24px; }
.chart-panel { background: #fff; border: 1px solid var(--borda); border-radius: 12px; padding: 20px 22px; }
.chart-panel h4 { margin: 0 0 18px; font-size: 0.95rem; }
.chart-empty { color: var(--texto-suave); font-size: 0.85rem; padding: 30px 0; text-align: center; }

/* barra horizontal — pedidos por status */
.bar-h-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bar-h-row:last-child { margin-bottom: 0; }
.bar-h-label { flex: 0 0 172px; font-size: 0.82rem; color: var(--texto); display: flex; align-items: center; gap: 7px; }
.bar-h-label .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.bar-h-track { flex: 1; background: #f4f6f9; border-radius: 4px; height: 20px; position: relative; overflow: hidden; }
.bar-h-fill { height: 100%; border-radius: 0 4px 4px 0; min-width: 3px; }
.bar-h-value { flex: 0 0 30px; text-align: right; font-size: 0.82rem; font-weight: 700; color: var(--texto); }

/* barra vertical — pedidos por produto */
.bar-v-group { display: flex; align-items: flex-end; gap: 20px; height: 170px; padding-top: 22px; }
.bar-v-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar-v-value { font-size: 0.82rem; font-weight: 700; color: var(--texto); margin-bottom: 6px; }
.bar-v-fill { width: 24px; border-radius: 4px 4px 0 0; }
.bar-v-label { font-size: 0.72rem; color: var(--texto-suave); margin-top: 8px; text-align: center; line-height: 1.25; }

.dash-recentes { background: #fff; border: 1px solid var(--borda); border-radius: 12px; padding: 20px 22px; }
.dash-recentes h4 { margin: 0 0 14px; font-size: 0.95rem; }
.dash-recentes table { width: 100%; border-collapse: collapse; }
.dash-recentes td { padding: 9px 6px; font-size: 0.84rem; border-bottom: 1px solid var(--borda); }
.dash-recentes tr:last-child td { border-bottom: none; }
