:root {
  /* Paleta da marca */
  --blue: #58C5C6;
  --blue-dark: #3aa9aa;
  --blue-soft: #e8f7f7;
  --pink: #E9655F;
  --pink-dark: #d94a44;
  --pink-soft: #fdeeed;
  --yellow: #FEC654;
  --yellow-soft: #fff6e3;
  --red: #E23A2E;
  --red-dark: #c22a20;
  --amber: #C77700;
  --amber-soft: #fdf1dc;
  --govbr-blue: #1351B4;

  --ink: #1d2430;
  --ink-soft: #4b5563;
  --muted: #8a94a6;
  --line: #ecedf2;
  --line-soft: #f4f5f8;
  --bg: #eef1f6;
  --surface: #ffffff;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 2px rgba(20,30,50,.05), 0 6px 20px rgba(20,30,50,.05);
  --shadow-pop: 0 24px 60px rgba(20,30,50,.22);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; }

/* ===== App container (formato celular) ===== */
.app {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}
@media (min-width: 480px) {
  body { padding: 24px 0; }
  .app {
    min-height: calc(100vh - 48px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(20,30,50,.16);
    border: 1px solid #e3e6ee;
  }
  body:not(.has-consult) {
    padding: 0;
  }
  body:not(.has-consult) .app {
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
}

/* ===== Topbar ===== */
.topbar {
  background: var(--surface);
  padding: calc(14px + var(--safe-top)) 18px 12px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo__svg { height: 34px; width: auto; display: block; }

/* Botão gov.br */
.govbr {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: var(--govbr-blue);
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: filter .15s, transform .08s;
  white-space: nowrap;
}
.govbr:hover { filter: brightness(1.08); }
.govbr:active { transform: scale(.97); }
.govbr__word { font-weight: 800; letter-spacing: -.3px; }
.govbr__word--dark .govbr__g,
.govbr__word--dark .govbr__br { color: var(--govbr-blue); }
.govbr__g { color: #fff; }
.govbr__o { color: var(--yellow); }
.govbr__v { color: #35b56a; }
.govbr__br { color: #fff; }
.govbr__word--dark .govbr__o { color: #E8A600; }
.govbr__word--dark .govbr__v { color: #168821; }

/* Saudação */
.hello { padding-top: 4px; }
.hello__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hello__text { display: flex; flex-direction: column; }
.hello__greet { font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: var(--ink); }
.hello__greet #greetName,
.hello__name { color: var(--blue-dark); }
.hello__name[hidden] { display: none; }
.hello__sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.bell {
  flex: none;
  position: relative;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, transform .08s;
}
.bell:hover { background: var(--line-soft); }
.bell:active { transform: scale(.95); }
.bell.is-active { color: var(--blue-dark); border-color: #cfeeee; background: var(--blue-soft); }
.bell__badge {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid var(--surface);
}
.bell__badge[hidden] { display: none; }
@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(12deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(6deg); }
  80% { transform: rotate(-4deg); }
}
.bell.is-active svg { animation: bellRing 1s ease 1; transform-origin: top center; }

/* Breadcrumb — visível só após consulta */
body:not(.has-consult) .crumbs { display: none; }

/* ===== Modo limpo (sem consulta) ===== */
body:not(.has-consult) .govbr { display: none; }
body:not(.has-consult) .site-footer { display: none; }
body:not(.has-consult) .consult__head { display: none; }
body:not(.has-consult) .consult__seals { display: none; }
body:not(.has-consult) .landing__legal { display: block; }
body.has-consult .landing__legal { display: none; }

body:not(.has-consult) .topbar {
  border-bottom: none;
  position: relative;
  background: transparent;
}
body:not(.has-consult) .topbar__row { justify-content: center; }
body:not(.has-consult) #postConsult { display: none !important; }

body:not(.has-consult) .main {
  flex: 1;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  padding: 32px 20px 40px;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

body:not(.has-consult) .consult.card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

body:not(.has-consult) .landing {
  padding: 0 4px 0;
}

body:not(.has-consult) .app {
  min-height: 100vh;
  min-height: 100dvh;
}

body.has-consult .consult {
  margin-top: 0;
}

.landing__legal {
  display: none;
  margin: 28px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}

/* Landing (página inicial sem ?cnpj=) */
.landing { padding: 8px 2px 4px; text-align: center; }
.landing[hidden] { display: none; }
.landing__title {
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink);
}
.landing__sub {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}
body.has-consult .landing { display: none; }
body.has-consult #consultCard { display: none; }

/* Breadcrumb (compacto, cabe na tela) */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 10px;
  line-height: 1.3;
}
.crumbs__item {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  flex: none;
  max-width: 100%;
}
.crumbs__item--active { color: var(--ink); font-weight: 700; }
.crumbs__sep {
  color: #cfd4de;
  flex: none;
  font-size: 11px;
  line-height: 1;
}

/* ===== Main ===== */
.main {
  flex: 1;
  padding: 20px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== Stepper (etapas) ===== */
.stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.step { display: flex; align-items: center; gap: 7px; flex: none; }
.step__dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  background: #e6e9f0; color: var(--muted);
  transition: background .2s, color .2s;
  flex: none;
}
.step__label { font-size: 12.5px; font-weight: 600; color: var(--muted); transition: color .2s; }
.step:not(:last-child)::after {
  content: "";
  width: 16px; height: 2px;
  background: #e0e4ec;
  border-radius: 2px;
  margin: 0 2px;
}
.step.is-active .step__dot { background: var(--blue); color: #fff; }
.step.is-active .step__label { color: var(--ink); }
.step.is-done .step__dot { background: #e7f7ee; color: #1f9d57; }
.step.is-done .step__label { color: var(--ink-soft); }

/* ===== Pós-consulta: ritmo entre moldes ===== */
#postConsult {
  display: flex;
  flex-direction: column;
}

#postConsult .hello {
  margin-bottom: 10px;
}

#postConsult .stepper {
  margin-bottom: 26px;
}

#postConsult .aviso {
  margin-bottom: 26px;
  padding: 20px;
}

#postConsult .result {
  gap: 26px;
}

#postConsult .taxpayer {
  padding: 20px;
}

#postConsult .taxpayer__badge {
  margin-bottom: 16px;
}

#postConsult .taxpayer__grid {
  gap: 16px 18px;
}

#postConsult .notice__head {
  padding: 18px 20px;
}

#postConsult .notice__body {
  padding: 20px;
}

#postConsult .notice__lead {
  margin-bottom: 16px;
}

#postConsult .amount {
  margin-bottom: 14px;
}

#postConsult .facts {
  margin-bottom: 16px;
  gap: 12px;
}

#postConsult .notice__note {
  margin-bottom: 8px;
}

#postConsult .guarantee {
  margin-top: 4px;
  gap: 12px;
}

#postConsult .faq {
  padding-top: 6px;
}

body.has-consult .main {
  max-width: none;
  margin: 0;
  justify-content: flex-start;
  padding-bottom: 28px;
  gap: 18px;
}

/* ===== Aviso informativo (o que é a taxa) — sóbrio/profissional ===== */
.aviso {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px;
}
.aviso__top { display: flex; gap: 12px; align-items: flex-start; }
.aviso__icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--amber-soft);
  color: var(--amber);
}
.aviso__tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--amber);
}
.aviso__title {
  font-size: clamp(18px, 5.2vw, 22px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.4px;
  margin-top: 2px;
  color: var(--ink);
}
.aviso__title span { color: var(--ink-soft); font-weight: 700; }
.aviso__text {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.aviso__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.aviso__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.aviso__list svg { color: var(--amber); flex: none; }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px;
}

/* Consulta */
.consult__head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.consult__icon {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.consult__head h2 { font-size: 16.5px; }
.consult__head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.consult__form { display: flex; flex-direction: column; gap: 12px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.field input {
  width: 100%;
  padding: 14px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fbfcfe;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input::placeholder { color: #b6bdca; }
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(88,197,198,.18);
  background: #fff;
}
.consult__error { color: var(--pink-dark); font-size: 13px; margin: 10px 0 0; }
.consult__seals {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.consult__seals span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.consult__seals svg { color: var(--blue-dark); }

/* ===== Botões ===== */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 15.5px;
  border-radius: var(--radius-sm);
  padding: 15px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: transform .08s ease, filter .15s, background .15s, opacity .15s;
}
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--cta {
  background: var(--pink);
  color: #fff;
  font-size: 16px;
  justify-content: space-between;
  padding: 16px 20px;
  margin-top: 4px;
}
.btn--cta:hover { background: var(--pink-dark); }
.btn--cta b { font-weight: 800; }
.btn--ghost { background: var(--line-soft); color: var(--ink); width: auto; padding: 13px 16px; }
.btn--ghost:hover { background: #e9ebf1; }

/* Botão de teste (simulação de pagamento) */
.btn--test-pay {
  margin-top: 10px;
  width: 100%;
  background: #fff;
  color: #7c4dff;
  border: 1.5px dashed #7c4dff;
  font-size: .82rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  opacity: .85;
  transition: opacity .15s, background .15s;
}
.btn--test-pay:hover { opacity: 1; background: #f3eeff; }
.btn[disabled] { opacity: .75; cursor: progress; }

.btn__spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin .7s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Resultado ===== */
.result { display: flex; flex-direction: column; gap: 26px; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Contribuinte */
.taxpayer__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-soft);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.taxpayer__grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tp-cell--full { grid-column: 1 / -1; }
.tp-cell dt {
  font-size: 11px; color: var(--muted); margin-bottom: 3px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
}
.tp-cell dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); word-break: break-word; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.pill--ok { background: #e7f7ee; color: #1f9d57; }
.pill--bad { background: var(--pink-soft); color: var(--pink-dark); }

/* ===== Notice (pendência) — profissional e discreto ===== */
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.notice__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.notice__ic {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--amber-soft);
  color: var(--amber);
}
.notice__head-txt { flex: 1; line-height: 1.3; }
.notice__head-txt strong { display: block; font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; }
.notice__head-txt span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.status-pill {
  flex: none;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 5px 11px;
  border-radius: 999px;
}
.notice__body { padding: 16px; }

/* Órgão emissor + bandeira do estado */
.gov {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}
.gov[hidden] { display: none; }
.gov__flag {
  width: 46px; height: 32px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  background: #f0f0f0;
  flex: none;
}
.gov__txt { display: flex; flex-direction: column; line-height: 1.2; }
.gov__k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; font-weight: 700; color: var(--muted); }
.gov__v { font-size: 14px; font-weight: 700; color: var(--ink); }

.notice__lead { margin: 0 0 14px; font-size: 14px; color: var(--ink-soft); }

.amount {
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.amount__k { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.amount__v { font-size: clamp(18px, 5vw, 21px); font-weight: 800; color: var(--ink); letter-spacing: -.3px; white-space: nowrap; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.fact {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
}
.fact--due .fact__k { color: var(--ink-soft); }
.fact__k { display: block; font-size: 11px; color: var(--muted); font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .2px; }
.fact--warn .fact__k { color: #a9791b; }
.fact__v { display: block; font-size: 15.5px; font-weight: 800; color: var(--ink); }
.fact--warn { background: var(--yellow-soft); border-color: #f0d68a; }
.fact--warn .fact__v { color: #9a6a12; }

.notice__note { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; line-height: 1.55; }
.countdown { display: block; text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }
.countdown b { color: var(--ink-soft); }

/* ===== Selos de garantia ===== */
.guarantee {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.guarantee__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.35;
}
.guarantee__item svg { color: var(--blue-dark); }

/* ===== FAQ ===== */
.faq { padding: 2px 2px; }
.faq__title { font-size: 15px; font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--blue-dark);
  transition: transform .2s;
  flex: none;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ===== Sticky CTA (card flutuante moderno) ===== */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  padding: 0 12px calc(12px + var(--safe-bottom));
  transform: translateX(-50%) translateY(160%);
  opacity: 0;
  z-index: 90;
  transition: transform .38s cubic-bezier(.22,.61,.36,1), opacity .3s ease;
  will-change: transform;
  pointer-events: none;
}
.sticky-cta.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sticky-cta__inner {
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px 8px 8px 14px;
  box-shadow: 0 16px 38px rgba(20,30,50,.16), 0 2px 8px rgba(20,30,50,.08);
}
.sticky-cta__icon {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.sticky-cta__info { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.sticky-cta__k { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .2px; }
.sticky-cta__v { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; white-space: nowrap; }
.sticky-cta__v em { font-style: normal; font-weight: 600; font-size: 11px; color: var(--muted); margin-left: 2px; }
.sticky-cta__btn {
  flex: none;
  width: auto;
  margin: 0;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 13px;
  font-size: 14.5px;
  background: var(--pink);
  color: #fff;
  box-shadow: 0 6px 16px rgba(233,101,95,.4);
}
.sticky-cta__btn:hover { background: var(--pink-dark); }
.sticky-cta__btn svg { transition: transform .2s ease; }
.sticky-cta__btn:hover svg { transform: translateX(3px); }

/* ===== Footer completo ===== */
.site-footer {
  background: var(--ink);
  color: #aeb6c6;
  padding: 28px 18px calc(20px + var(--safe-bottom));
  margin-top: 8px;
}
.site-footer__brand-row { margin-bottom: 22px; }
.site-footer__logo { display: inline-flex; margin-bottom: 10px; }
.site-footer__logo svg { height: 30px; }
.site-footer__desc { font-size: 12.5px; color: #8b93a6; margin: 0; max-width: 34ch; line-height: 1.5; }
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 16px;
}
.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  margin: 0 0 12px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: #aeb6c6;
  padding: 5px 0;
  transition: color .15s;
}
.footer-col a:hover { color: var(--blue); }
.site-footer__bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #7d8698;
}
.site-footer__legal a { color: #9aa3b5; }
.site-footer__legal a:hover { color: var(--blue); }
.app.has-cta .site-footer { padding-bottom: calc(90px + var(--safe-bottom)); }

/* ===== Cabeçalho de subpágina ===== */
.topbar--sub .back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
}
.topbar--sub .back:hover { color: var(--blue); }

/* ===== Voltar à consulta (CNPJ salvo) ===== */
body.has-consult-return .app {
  padding-bottom: calc(76px + var(--safe-bottom));
}

.consult-return--fixed {
  position: fixed;
  bottom: calc(14px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  width: calc(100% - 28px);
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(20, 30, 50, .18);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.consult-return--fixed:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 16px 40px rgba(20, 30, 50, .22);
}
.consult-return--fixed .consult-return__txt b {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.consult-return--fixed .consult-return__txt small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.consult-return--strip {
  padding: 0 18px 14px;
}
.consult-return__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: var(--blue-soft);
  border: 1px solid #cfeeee;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background .15s ease;
}
.consult-return__btn:hover { background: #dff5f5; }
.consult-return__ic {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--blue-dark);
}
.consult-return__txt { flex: 1; min-width: 0; }
.consult-return__txt b {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.consult-return__txt small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.35;
}
.consult-return__arrow { flex: none; color: var(--blue-dark); }

/* ===== Página interna / conteúdo ===== */
.page-head { margin-bottom: 6px; }
.page-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.page-title2 {
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.15;
  margin: 0 0 6px;
  color: var(--ink);
}
.page-updated { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }

.prose { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }
.prose h2 { font-size: 17px; color: var(--ink); margin: 22px 0 8px; font-weight: 800; letter-spacing: -.2px; }
.prose h3 { font-size: 15px; color: var(--ink); margin: 16px 0 6px; font-weight: 700; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
.prose .lead { font-size: 15.5px; color: var(--ink); margin-bottom: 16px; }

/* ===== Serviços ===== */
.svc-list { display: flex; flex-direction: column; gap: 12px; }
.svc {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 16px;
  transition: transform .12s ease, box-shadow .15s;
}
a.svc:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20,30,50,.09); }
.svc__ic {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.svc__ic--amber { background: var(--amber-soft); color: var(--amber); }
.svc__ic--pink { background: var(--pink-soft); color: var(--pink-dark); }
.svc__tt { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 3px; }
.svc__tx { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.svc__go { margin-left: auto; align-self: center; color: var(--muted); flex: none; }

/* ===== Blog ===== */
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .15s;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,30,50,.10); }
.post-card__cover {
  height: 120px;
  display: grid; place-items: center;
  color: #fff;
}
.post-card__cover svg { opacity: .95; }
.cover--blue { background: linear-gradient(135deg, #58C5C6, #3aa9aa); }
.cover--amber { background: linear-gradient(135deg, #FEC654, #e9a92f); }
.cover--pink { background: linear-gradient(135deg, #E9655F, #d94a44); }
.post-card__body { padding: 15px 16px 17px; }
.post-card__tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--blue-dark); }
.post-card__tt { font-size: 16px; font-weight: 800; color: var(--ink); margin: 6px 0 6px; line-height: 1.25; letter-spacing: -.2px; }
.post-card__ex { font-size: 13px; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.post-card__meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.post-card__more { color: var(--blue-dark); font-weight: 700; font-size: 13px; }

.post-hero {
  height: 150px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 16px;
}

/* ===== Banner de cookies ===== */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  transform: translateX(-50%);
  z-index: 95;
  padding: 0 12px calc(12px + var(--safe-bottom));
}
.cookie[hidden] { display: none; }
.cookie__box {
  background: #171f30;
  color: #d7dbe4;
  border-radius: 16px;
  padding: 15px 16px;
  box-shadow: 0 18px 40px rgba(10,16,30,.34);
}
.cookie__box p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; }
.cookie__box a { color: var(--blue); font-weight: 600; }
.cookie__actions { display: flex; gap: 10px; }
.cookie__actions .btn { padding: 10px 16px; font-size: 13.5px; }
.cookie__reject { background: rgba(255,255,255,.1); color: #fff; }
.cookie__reject:hover { background: rgba(255,255,255,.16); }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; padding: 0; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(15,20,32,.5); backdrop-filter: blur(2px); }
.modal__box {
  position: relative;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 26px 22px calc(26px + var(--safe-bottom));
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: var(--shadow-pop);
  animation: slideUp .3s ease both;
}
@media (min-width: 480px) {
  .modal { place-items: center; padding: 20px; }
  .modal__box { border-radius: 24px; max-width: 380px; animation: pop .25s ease both; }
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 12px; right: 14px;
  background: var(--line-soft); border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 20px; line-height: 1;
  color: var(--ink-soft); cursor: pointer;
}
.modal__box h3 { font-size: 19px; }
.modal__sub { margin: 3px 0 4px; color: var(--muted); font-size: 13.5px; }
.modal__amount { font-size: 30px; font-weight: 800; color: var(--pink-dark); margin: 6px 0 18px; }
.qr { display: grid; place-items: center; margin-bottom: 14px; }
.qr__grid {
  width: 172px; height: 172px;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  grid-template-rows: repeat(21, 1fr);
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.qr__grid i { background: #16202e; border-radius: 1px; }
.qr__img {
  width: 172px;
  height: 172px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  margin: 0 auto 8px;
  display: block;
}
.qr__img[hidden] + .qr__grid { display: grid; }
.qr__img:not([hidden]) + .qr__grid { display: none; }
.co-loading {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  margin: 12px 0;
}
.co-loading[hidden] { display: none; }
.modal__hint { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.pix-copy { display: flex; gap: 8px; margin-bottom: 14px; }
.pix-copy input {
  flex: 1; min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 12px;
  color: var(--ink-soft);
  background: #fbfcfe;
}
.modal__disclaimer { font-size: 11.5px; color: var(--muted); margin: 0; }

/* Modal gov.br */
.gov-check {
  width: 58px; height: 58px;
  margin: 4px auto 12px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #e7f7ee;
  color: #1f9d57;
}
.gov-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gov-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink);
}
.gov-list svg { color: #1f9d57; flex: none; }
.gov-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--blue-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0 0 16px;
  line-height: 1.5;
}

/* gov.br — verificação de dispositivo */
.gov-brand { font-size: 24px; margin-bottom: 16px; }
.gov-spinner {
  width: 46px; height: 46px;
  margin: 6px auto 14px;
  border: 4px solid var(--line);
  border-top-color: var(--govbr-blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.gov-steps {
  list-style: none;
  margin: 16px 0 4px;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.gov-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  transition: color .2s;
}
.gov-steps__ic {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  position: relative;
  transition: background .2s, border-color .2s;
}
.gov-steps li.is-done { color: var(--ink); font-weight: 600; }
.gov-steps li.is-done .gov-steps__ic { background: #1f9d57; border-color: #1f9d57; }
.gov-steps li.is-done .gov-steps__ic::after {
  content: "";
  position: absolute;
  left: 6px; top: 2.5px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.gov-steps li.is-active { color: var(--govbr-blue); font-weight: 600; }
.gov-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #1f9d57;
  background: #e7f7ee;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ===== Checkout ===== */
.modal__box--checkout {
  text-align: left;
  max-width: 440px;
  max-height: min(94dvh, 780px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(18px + var(--safe-bottom));
}
@media (min-width: 480px) {
  .modal__box--checkout { max-width: 420px; max-height: min(90vh, 760px); }
}
.co-head { text-align: center; margin-bottom: 14px; flex: none; }
.co-head h3 { font-size: 19px; }
.co-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-soft);
  border: 1px solid #d5eeee;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  flex: none;
}
.co-summary__ic {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--blue-dark);
}
.co-summary__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-summary__name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.co-summary__desc { font-size: 11.5px; color: var(--muted); }
.co-block__title {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--muted);
  margin-bottom: 8px;
}
.co-data {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.co-data div + div { border-top: 1px solid var(--line-soft); }
.co-data span { color: var(--muted); flex: none; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--blue);
  background: var(--blue-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.pay-method__ic {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--blue-dark);
}
.pay-method__txt { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pay-method__txt b { font-size: 14px; color: var(--ink); }
.pay-method__txt small { font-size: 11.5px; color: var(--muted); }
.pay-method__radio {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  position: relative;
}
.pay-method.is-selected .pay-method__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--blue);
}
.co-summary__price { font-size: clamp(15px, 4.5vw, 17px); font-weight: 800; color: var(--ink); white-space: nowrap; }
.co-block { margin-bottom: 12px; flex: none; }
.co-data b { color: var(--ink); font-weight: 700; text-align: right; word-break: break-word; max-width: 62%; }
.co-data--contact { display: none; }
.co-data div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 13px;
  font-size: 13px;
}
@media (max-width: 360px) {
  .co-data div { flex-direction: column; gap: 3px; }
  .co-data b { text-align: left; max-width: 100%; }
  .co-summary { flex-wrap: wrap; }
  .co-summary__price { margin-left: auto; }
}
.pay-method { margin-bottom: 0; }
.co-pix { margin-top: 12px; }
.co-summary__ic--flag {
  width: 46px;
  height: 34px;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.co-summary__flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.co-summary__flag[hidden] + .co-summary__flag-fallback { display: block; }
.co-summary__flag:not([hidden]) + .co-summary__flag-fallback { display: none; }
.co-summary__flag-fallback { display: block; }
.co-pix-error {
  text-align: center;
  font-size: 12.5px;
  color: var(--pink-dark);
  margin: 0 0 10px;
}
.co-pix-error[hidden] { display: none; }
.qr__img {
  width: 184px;
  height: 184px;
  max-width: 100%;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  display: block;
  margin: 0 auto 8px;
}
.qr__img[hidden] { display: none; }
.qr__canvas {
  width: 184px;
  height: 184px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  display: block;
  margin: 0 auto 8px;
}
.qr__canvas[hidden] { display: none; }
.pix-copy {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: stretch;
}
@media (max-width: 400px) {
  .pix-copy { flex-direction: column; }
  .pix-copy .btn { width: 100%; justify-content: center; }
}
.pix-copy input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 11px;
  color: var(--ink-soft);
  background: #fbfcfe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.pix-copied {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #1f9d57;
  margin: 0 0 8px;
}
.pix-copied[hidden] { display: none; }
.co-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px 8px;
  border-top: 1px dashed var(--line);
  margin-bottom: 0;
  flex: none;
}
.co-total span { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.co-total b { font-size: clamp(18px, 5vw, 20px); font-weight: 800; color: var(--ink); }
.co-footer {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, #fff 78%, rgba(255,255,255,.92));
  padding-top: 10px;
  margin-top: auto;
  flex: none;
  z-index: 2;
}
.co-confirm {
  width: 100%;
  background: var(--pink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(233,101,95,.32);
  margin-bottom: 10px;
  min-height: 48px;
}
.co-confirm:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}
.co-confirm--waiting:disabled {
  opacity: .72;
  background: #d8dde5;
  color: #6b7688;
}
.co-confirm:hover:not(:disabled) { background: var(--pink-dark); }
.co-confirm.is-loading .btn__label { opacity: .85; }
.co-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f0fafb 0%, #fff8e8 100%);
  border: 1px solid #dceef0;
  border-radius: 12px;
  margin: 0;
}
.co-notice__ic {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--blue-dark);
}
.co-notice p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.co-notice b { color: var(--ink); }

/* ===== Sucesso ===== */
.modal__box--success { text-align: center; }
.success-check {
  width: 72px; height: 72px;
  margin: 4px auto 14px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #e7f7ee;
  color: #1f9d57;
  animation: pop .3s ease both;
}
.success-text { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 12px 0 10px; }
.success-note { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 0 0 16px; }
.success-receipt {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 18px;
}
.success-receipt div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  font-size: 13px;
}
.success-receipt div + div { border-top: 1px solid var(--line-soft); }
.success-receipt span { color: var(--muted); }
.success-receipt b { color: var(--ink); font-weight: 700; text-align: right; }
.success-receipt b.ok { color: #1f9d57; }

/* Aviso de consequências no modal de checkout */
.co-consequences {
  margin: 16px 0 4px;
  padding: 14px 16px;
  background: #fff5f5;
  border: 1.5px solid #feb2b2;
  border-radius: 10px;
}
.co-consequences__title {
  font-size: .78rem;
  font-weight: 700;
  color: #c53030;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 8px;
}
.co-consequences__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.co-consequences__list li {
  font-size: .84rem;
  font-weight: 600;
  color: #742a2a;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}
.co-consequences__ic { flex-shrink: 0; font-size: .75rem; }
/* ===== Acesso exclusivo pelo celular ===== */
.mobile-only { display: none; }

html.mobile-only-blocked,
html.mobile-only-blocked body {
  min-height: 100%;
  overflow: hidden;
}

html.mobile-only-blocked body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(88, 197, 198, .22), transparent 34%),
    radial-gradient(circle at 85% 85%, rgba(254, 198, 84, .22), transparent 32%),
    #f5f8fb;
}

html.mobile-only-blocked body > :not(.mobile-only) { display: none !important; }
html.mobile-only-blocked .mobile-only {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px;
  display: grid;
  place-items: center;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  box-sizing: border-box;
}

.mobile-only__card {
  width: min(100%, 480px);
  padding: 42px 48px 38px;
  text-align: center;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(216, 225, 235, .9);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(23, 32, 51, .14);
  box-sizing: border-box;
}

.mobile-only__icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: #148c8e;
  background: #e4f7f7;
  border-radius: 18px;
}
.mobile-only__icon svg { width: 34px; height: 34px; }
.mobile-only__eyebrow {
  margin: 0 0 9px;
  color: #148c8e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.mobile-only h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.16;
  letter-spacing: -.035em;
}
.mobile-only__text {
  margin: 14px auto 24px;
  max-width: 350px;
  color: #607087;
  font-size: 15px;
  line-height: 1.55;
}
.mobile-only__qr-wrap {
  width: 244px;
  min-height: 244px;
  margin: 0 auto 16px;
  padding: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #dce4ed;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(23, 32, 51, .08);
  box-sizing: border-box;
}
.mobile-only__qr-wrap img { width: 220px; height: 220px; display: block; }
.mobile-only__fallback { margin: 0; color: #607087; font-size: 14px; line-height: 1.5; }
.mobile-only__label {
  margin: 0;
  color: #344157;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}

/* Desktop: app visível normalmente (guard mobile removido) */
@media (min-width: 1024px) and (hover: hover) {
  .mobile-only { display: none !important; }
}

/* ===== Verificação antes do acesso mobile ===== */
.human-check { display: none; }

html.human-check-pending,
html.human-check-pending body {
  min-height: 100%;
  overflow: hidden;
}

html.human-check-pending body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(88, 197, 198, .2), transparent 35%),
    radial-gradient(circle at 85% 85%, rgba(254, 198, 84, .2), transparent 34%),
    #f5f8fb;
}

html.human-check-pending .app { display: none !important; }
html.human-check-pending .human-check {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 18px;
  display: grid;
  place-items: center;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  box-sizing: border-box;
}

.human-check__card {
  width: min(100%, 390px);
  padding: 28px 22px 24px;
  text-align: center;
  background: rgba(255, 255, 255, .97);
  border: 1px solid #dce4ed;
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(23, 32, 51, .14);
  box-sizing: border-box;
}
.human-check__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 23px;
  color: #344157;
  font-size: 15px;
}
.human-check__brand-mark {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 9px;
  background: linear-gradient(135deg, #58c5c6 0 45%, #fec654 45% 70%, #e9655f 70%);
}
.human-check h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.human-check__intro {
  margin: 10px auto 22px;
  max-width: 300px;
  color: #607087;
  font-size: 14px;
  line-height: 1.5;
}
.human-check__control {
  width: 100%;
  min-height: 84px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  color: #172033;
  background: #f8fafc;
  border: 1.5px solid #cfd9e5;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.human-check__control:hover:not(:disabled) { border-color: #58c5c6; background: #f3fbfb; }
.human-check__control:active:not(:disabled) { transform: scale(.99); }
.human-check__control:focus-visible { outline: 3px solid rgba(88, 197, 198, .28); outline-offset: 3px; }
.human-check__control.is-approved { border-color: #43aa72; background: #f1fbf6; }
.human-check__box {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  background: #fff;
  border: 2px solid #93a3b7;
  border-radius: 5px;
  box-sizing: border-box;
}
.human-check__box svg { width: 22px; height: 22px; opacity: 0; transform: scale(.5); transition: .2s ease; }
.human-check__box.is-checked { border-color: #2fa765; background: #2fa765; }
.human-check__box.is-checked svg { opacity: 1; transform: scale(1); }
.human-check__spinner {
  position: absolute;
  width: 20px;
  height: 20px;
  display: none;
  border: 2px solid #c9eaea;
  border-top-color: #148c8e;
  border-radius: 50%;
  animation: human-check-spin .75s linear infinite;
}
.is-checking .human-check__box { border-color: transparent; }
.is-checking .human-check__spinner { display: block; }
.human-check__copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.human-check__copy strong { font-size: 16px; font-weight: 700; }
.human-check__copy small { color: #718096; font-size: 11.5px; }
.human-check__shield { width: 35px; height: 35px; flex: none; color: #58aeb0; }
.human-check__shield svg { width: 100%; height: 100%; }
.human-check__note { margin: 18px 8px 0; color: #8290a3; font-size: 11px; line-height: 1.45; }

@keyframes human-check-spin { to { transform: rotate(360deg); } }

/* ── Taxa modals (2 & 3) + Final modal ─────────────────────────────── */
.taxa-alert { display:flex; align-items:center; gap:12px; background:#fff8f0; border:1px solid #fcd1a0; border-radius:12px; padding:12px 14px; margin-bottom:14px; }
.taxa-alert__icon { font-size:24px; flex-shrink:0; }
.taxa-alert__tag { display:block; font-size:11px; font-weight:700; color:#b45309; text-transform:uppercase; letter-spacing:.04em; }
.taxa-alert__title { margin:2px 0 0; font-size:15px; font-weight:700; color:#1a202c; }
.taxa-info__lead { font-size:13.5px; color:#4a5568; line-height:1.55; margin:0 0 10px; }
.taxa-warn { display:flex; gap:10px; background:#fff5f5; border:1px solid #fed7d7; border-radius:10px; padding:10px 12px; font-size:13px; color:#c53030; }
.taxa-warn ul { margin:4px 0 0 0; padding-left:16px; }
.taxa-warn li { margin-bottom:2px; }
.final-title { font-size:22px; font-weight:800; text-align:center; margin:8px 0 4px; }
.final-sub { text-align:center; font-size:14px; color:#4a5568; margin:0 0 14px; }
.final-notice { display:flex; align-items:flex-start; gap:10px; background:#f0fff4; border:1px solid #9ae6b4; border-radius:10px; padding:12px; font-size:13px; color:#276749; margin-bottom:14px; }
.final-receipts { border:1px solid #e2e8f0; border-radius:10px; overflow:hidden; margin-bottom:8px; }
.final-receipt-item { display:flex; align-items:center; gap:8px; padding:9px 12px; font-size:13px; border-bottom:1px solid #f0f0f0; }
.final-receipt-item:last-child { border-bottom:none; }
.final-receipt-item span { flex:1; color:#4a5568; }
.final-receipt-item b { color:#1a202c; }
.final-receipt-item--total { background:#f7fafc; }
.final-receipt-item--total span, .final-receipt-item--total b { font-weight:800; font-size:14px; color:#1a202c; }

/* ═══════════════════════════════════════════════════════════════
   TELA DE CARREGAMENTO CNPJ (item 7)
═══════════════════════════════════════════════════════════════ */
.cnpj-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(238, 241, 246, 0.96);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
}
.cnpj-loading-overlay[hidden] { display: none; }

.cnpj-loading__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  max-width: 320px;
  width: calc(100% - 40px);
  text-align: center;
  animation: pop .25s ease both;
}

.cnpj-loading__spinner svg {
  animation: spinSmooth 1s linear infinite;
  display: block;
}
@keyframes spinSmooth { to { transform: rotate(360deg); } }

.cnpj-loading__text {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -.2px;
}
.cnpj-loading__sub {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

/* Skeleton rows — exibidos quando o loading está ativo */
.cnpj-loading__skeleton {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.skeleton-row {
  height: 12px;
  background: linear-gradient(90deg, #ecedf2 25%, #f4f5f8 50%, #ecedf2 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmer 1.4s infinite;
}
.skeleton-row--short { width: 60%; }
.skeleton-row--medium { width: 80%; }
@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ═══════════════════════════════════════════════════════════════
   STATUS DÉBITO EM ABERTO (item 1)
═══════════════════════════════════════════════════════════════ */
.status-pill--debt {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .3px;
  color: #fff;
  background: var(--red);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
  animation: pulseDebt 2.4s ease infinite;
}
@keyframes pulseDebt {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226,58,46,.45); }
  50%       { box-shadow: 0 0 0 6px rgba(226,58,46,0); }
}

.debt-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff5f5;
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.debt-status__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #9b1c1c;
}
.debt-status__value {
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: .2px;
}

/* Fato com timer de prazo */
.fact--timer {
  background: #fff8e8;
  border-color: #fcd34d;
}
.fact--timer .fact__k { color: #92400e; }
.fact--timer .fact__v {
  color: #92400e;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL ASSISTENTE VIRTUAL (item 3)
═══════════════════════════════════════════════════════════════ */
.modal__box--assistant {
  text-align: left;
  max-width: 440px;
  padding: 0 0 calc(20px + var(--safe-bottom));
  overflow: hidden;
}
@media (min-width: 480px) {
  .modal__box--assistant { max-width: 400px; border-radius: 24px; }
}

.assistant-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  background: linear-gradient(160deg, #1a1f2e 0%, #0f1420 100%);
  min-height: 210px;
  padding: 0;
  position: relative;
}

.assistant-img-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 210px;
  overflow: hidden;
  background: transparent;
}
/* Foto real da assistente (PNG com fundo removido) */
.assistant-photo {
  width: 100%;
  height: 210px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
/* SVG inline da assistente (fallback) */
.assistant-svg {
  width: 140px;
  height: 210px;
  display: block;
  flex: none;
}

.assistant-bubble {
  padding: 20px 18px 20px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.assistant-bubble__text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.45;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 14px;
  box-shadow: 0 2px 10px rgba(20,30,50,.08);
  position: relative;
}
.assistant-bubble__sub {
  font-size: 12.5px;
  color: rgba(255,255,255,.75);
  margin: 0;
  padding: 0 4px;
  line-height: 1.45;
}

.assistant-charge {
  margin: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.assistant-charge__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
}
.assistant-charge__row + .assistant-charge__row {
  border-top: 1px solid var(--line-soft);
}
.assistant-charge__row span { color: var(--muted); font-weight: 600; flex: none; }
.assistant-charge__row b { color: var(--ink); text-align: right; }
.assistant-charge__value { color: var(--red) !important; font-size: 15px !important; }

.assistant-cta {
  margin: 14px 20px 0;
  width: calc(100% - 40px);
  font-size: 16px;
  padding: 16px 20px;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL SELEÇÃO DE PAGAMENTO (item 4)
═══════════════════════════════════════════════════════════════ */
.modal__box--paymethod {
  text-align: left;
  max-width: 440px;
  padding: 24px 22px calc(24px + var(--safe-bottom));
}
@media (min-width: 480px) {
  .modal__box--paymethod { max-width: 390px; }
}

.pay-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .12s;
  font-family: inherit;
  text-align: left;
  width: 100%;
}
.pay-option:hover { border-color: var(--blue); background: var(--blue-soft); }
.pay-option--selected {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(88,197,198,.18);
}
.pay-option__ic {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 1px 4px rgba(20,30,50,.08);
}
.pay-option--selected .pay-option__ic { color: var(--blue-dark); }
.pay-option__txt { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.pay-option__txt b { font-size: 14px; font-weight: 700; color: var(--ink); }
.pay-option__txt small { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.pay-option__check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  color: transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.pay-option--selected .pay-option__check {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.pay-method-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--amber-soft);
  border: 1px solid #f0d68a;
  border-radius: 10px;
  padding: 10px 13px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.pay-method-note[hidden] { display: none; }
.pay-method-note svg { flex: none; color: var(--amber); margin-top: 1px; }

/* ═══════════════════════════════════════════════════════════════
   POPUP INFORMATIVO — Eu entendi (item 5)
═══════════════════════════════════════════════════════════════ */
.modal__box--info {
  text-align: left;
  max-width: 440px;
  padding: 26px 22px calc(22px + var(--safe-bottom));
}
@media (min-width: 480px) {
  .modal__box--info { max-width: 390px; border-radius: 24px; }
}

.info-popup__icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1e40af;
  display: grid; place-items: center;
}

.modal__box--info h3 {
  text-align: center;
  font-size: 18px;
  margin-bottom: 16px;
}

.info-popup__body {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
}
.info-popup__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
}
.info-popup__row + .info-popup__row { border-top: 1px solid var(--line-soft); }
.info-popup__row span { color: var(--muted); font-weight: 600; flex: none; }
.info-popup__row b { color: var(--ink); font-weight: 700; text-align: right; }

.info-popup__terms {
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.info-popup__terms p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.info-popup__terms b { color: var(--ink); }

.info-popup__back {
  width: 100%;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
}
.info-popup__back:hover { background: var(--line-soft); color: var(--ink); }

/* ═══════════════════════════════════════════════════════════════
   TAXA-ALERT (limpeza — sem emoji)
═══════════════════════════════════════════════════════════════ */
.taxa-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 14px;
  background: #fff8f0;
  border-bottom: 1px solid #fde8cc;
  flex: none;
}
.taxa-alert__icon {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--amber);
}
.taxa-alert__tag {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 3px;
}
.taxa-alert__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  letter-spacing: -.2px;
}

.taxa-info { padding: 16px 18px 0; }
.taxa-info__lead { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 14px; }

.taxa-details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
}
.taxa-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  font-size: 13px;
}
.taxa-detail-row + .taxa-detail-row { border-top: 1px solid var(--line-soft); }
.taxa-detail-label { color: var(--muted); font-weight: 600; }
.taxa-detail-value { color: var(--ink); font-weight: 700; }
.taxa-detail-value--red { color: var(--red); }

.taxa-warn {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #fff5f5;
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.taxa-warn svg { flex: none; color: var(--red); margin-top: 2px; }
.taxa-warn b { display: block; font-size: 12.5px; color: var(--ink); margin-bottom: 6px; }
.taxa-warn ul {
  margin: 0; padding: 0 0 0 14px;
  display: flex; flex-direction: column; gap: 5px;
}
.taxa-warn li { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; }

.co-confirm-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 8px 0 0;
}
.co-confirm-hint b { color: var(--ink-soft); }

/* ═══════════════════════════════════════════════════════════════
   FINAL RECEIPTS (sem emoji no check)
═══════════════════════════════════════════════════════════════ */
.final-title { font-size: clamp(20px,5vw,24px); font-weight: 800; letter-spacing: -.4px; color: var(--ink); margin: 0 0 6px; }
.final-sub { font-size: 14px; color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.final-notice {
  display: flex; align-items: flex-start; gap: 10px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm); padding: 12px 14px;
  margin-bottom: 14px; text-align: left;
}
.final-notice p { margin: 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.final-notice svg { flex: none; margin-top: 1px; }
.final-receipts {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; margin-bottom: 4px;
}
.final-receipt-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: 13px;
}
.final-receipt-item + .final-receipt-item { border-top: 1px solid var(--line-soft); }
.final-receipt-item span { flex: 1; color: var(--ink-soft); }
.final-receipt-item b { color: var(--ink); font-weight: 700; }
.final-receipt-item--total {
  background: var(--blue-soft); border-top: 1px solid #cfeeee !important;
}
.final-receipt-item--total span { font-weight: 700; color: var(--ink); }
.final-receipt-item--total b { color: var(--blue-dark); font-size: 16px; }

/* Consequências verificáveis (sem emojis) */
.co-consequences {
  margin: 14px 0 4px;
  padding: 13px 15px;
  background: #fff8f0;
  border: 1.5px solid #fcd9a4;
  border-radius: 10px;
}
.co-consequences__title {
  font-size: 11px;
  font-weight: 800;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 8px;
}
.co-consequences__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 7px;
}
.co-consequences__list li {
  font-size: 12.5px;
  font-weight: 600;
  color: #78350f;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
}
.co-consequences__list svg { flex: none; color: var(--amber); margin-top: 1px; }

/* ═══════════════════════════════════════════════════════════════
   AGENT CARD — painel principal da assistente (estilo referência)
═══════════════════════════════════════════════════════════════ */
.agent-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* Imagem em largura total, com o balão abaixo. */
.agent-card__hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: #fff;
  min-height: 200px;
  position: relative;
}

/* Foto */
.agent-card__photo-wrap {
  flex: none;
  width: 100%;
  align-self: stretch;
  overflow: hidden;
  position: relative;
}
.agent-card__photo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1024px;
  max-height: none;
  margin-inline: auto;
  object-fit: contain;
  object-position: bottom center;
  user-select: none;
  -webkit-user-drag: none;
}

/* Balão */
.agent-card__bubble {
  flex: 1;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: stretch;
}
.agent-card__bubble-main {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
  box-shadow: 0 2px 10px rgba(20,30,50,.07);
}
.agent-card__bubble-main b { color: var(--ink); }
.agent-card__bubble-sub {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
  padding: 0 2px;
}
.agent-card__bubble-sub b { color: var(--ink); }

/* Botão principal — full width, vermelho/salmão como referência */
.agent-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--pink);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  padding: 18px 24px;
  border-radius: 0;          /* sem arredondamento — cola no fundo do card */
  letter-spacing: -.2px;
  transition: background .15s, transform .08s;
  box-shadow: none;
  border: none;
}
.agent-card__btn:hover  { background: var(--pink-dark); }
.agent-card__btn:active { transform: scale(.99); }
.agent-card__btn svg { flex: none; opacity: .9; }

/* ═══════════════════════════════════════════════════════════════
   CHAR MODAL — personagem centralizada, grande, sem caixa
═══════════════════════════════════════════════════════════════ */

/* Container principal: centraliza tudo na tela */
.char-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
}
.char-modal[hidden] { display: none; }

/* Overlay escurecido — clicável para fechar */
.char-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

/* Stage: coluna central, sem fundo — personagem + botão, CENTRALIZADO na tela */
.char-modal__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;       /* centraliza horizontalmente */
  justify-content: center;   /* centraliza verticalmente */
  width: 100%;
  max-width: 480px;
  /* Padding lateral para não tocar as bordas em telas estreitas */
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  animation: charSlideIn .44s cubic-bezier(.22,.68,.36,1.08) both;
}

/* Personagem — grande, centralizada, sem corte */
.char-modal__figure {
  pointer-events: none;
  width: min(98vw, 520px);
  /* Altura máxima: deixa espaço para o botão abaixo */
  max-height: calc(100dvh - 110px);
  max-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.char-modal__img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: inherit;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
  background: transparent;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.45));
}

/* Botão — full-width relativo à figura, centralizado, com bounce */
.char-modal__action {
  pointer-events: auto;
  width: min(98vw, 520px);     /* mesma largura da figura */
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  margin-top: 16px;
  animation: charBtnPop .38s cubic-bezier(.34,1.56,.64,1) .28s both;
}

.char-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--pink);
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.2px;
  padding: 16px 24px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(233,101,95,.6);
  transition: background .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
}
.char-modal__btn:hover  { background: var(--pink-dark); box-shadow: 0 12px 32px rgba(233,101,95,.7); }
.char-modal__btn:active { transform: scale(.97); }
.char-modal__btn svg    { flex: none; opacity: .9; }

/* Animações */
@keyframes charSlideIn {
  from { opacity: 0; transform: translateY(72px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes charBtnPop {
  from { opacity: 0; transform: scale(.82) translateY(14px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* Tablet / Desktop: limita para não ficar enorme em telas grandes */
@media (min-width: 600px) {
  .char-modal__figure {
    width: min(70vw, 600px);
    max-height: calc(100dvh - 140px);
    max-height: calc(100vh  - 140px);
  }
  .char-modal__action {
    width: min(70vw, 600px);
  }
}

@media (min-width: 1024px) {
  .char-modal__figure {
    width: min(48vw, 640px);
    max-height: calc(100dvh - 160px);
    max-height: calc(100vh  - 160px);
  }
  .char-modal__action {
    width: min(48vw, 640px);
  }
  .char-modal__btn {
    font-size: 18px;
    padding: 18px 28px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DUE-ALERT — aviso de vencimento vermelho com contador
═══════════════════════════════════════════════════════════════ */

.due-alert {
  background: #fff5f5;
  border: 1.5px solid #fca5a5;
  border-left: 4px solid #dc2626;
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  animation: rise .3s ease both;
}
.due-alert[hidden] { display: none; }

/* Cabeçalho: ícone + título em maiúsculas */
.due-alert__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.due-alert__icon {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: #fee2e2;
  color: #dc2626;
}
.due-alert__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #991b1b;
}

/* Mensagem */
.due-alert__msg {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: #7f1d1d;
  line-height: 1.55;
}
.due-alert__msg b { color: #991b1b; }

/* Área do contador */
.due-alert__timer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 14px 18px 12px;
}
.due-alert__timer-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #b91c1c;
}
.due-alert__timer {
  font-size: clamp(36px, 10vw, 52px);
  font-weight: 900;
  letter-spacing: 2px;
  color: #dc2626;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  /* Animação de pulso suave a cada segundo */
  animation: timerPulse 1s ease-in-out infinite;
}
.due-alert__timer--expired {
  font-size: 22px;
  letter-spacing: .5px;
  animation: none;
  color: #9b1c1c;
}
.due-alert__timer-sub {
  font-size: 11.5px;
  color: #9b1c1c;
  text-align: center;
}
.due-alert__timer-sub b { font-weight: 700; }

@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .82; }
}

/* ═══════════════════════════════════════════════════════════════
   IPOP — popup informativo antes do pagamento (redesenhado)
═══════════════════════════════════════════════════════════════ */

/* Caixa do modal */
.modal__box--info {
  text-align: left;
  padding: 0;
  overflow: hidden;
  max-height: min(94dvh, 720px);
  display: flex;
  flex-direction: column;
}
@media (min-width: 480px) {
  .modal__box--info { max-width: 420px; }
}

/* Cabeçalho vermelho */
.ipop__header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #dc2626;
  padding: 16px 20px;
  flex: none;
}
.ipop__header-icon {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.18);
  border-radius: 9px;
  color: #fff;
}
.ipop__title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  line-height: 1.35;
}

/* Corpo com scroll */
.ipop__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px 0;
}

.ipop__lead {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.45;
}
.ipop__para {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 10px;
}

/* Tabela de detalhes */
.ipop__details {
  margin-top: 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.ipop__details-title {
  background: var(--line-soft);
  padding: 8px 12px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.ipop__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
}
.ipop__row:last-child { border-bottom: none; }
.ipop__row span {
  flex: none;
  width: 120px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}
.ipop__row b {
  flex: 1;
  text-align: right;
  color: var(--ink);
  font-weight: 700;
  word-break: break-word;
  line-height: 1.4;
}

.ipop__status-pending {
  color: #b45309;
  background: #fff7ed;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
}
.ipop__status-paid {
  color: #1f9d57;
  background: #e7f7ee;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
}

/* Botões */
.ipop__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  flex: none;
  border-top: 1px solid var(--line-soft);
  background: #fff;
}
.ipop__btn-ok {
  background: #dc2626;
}
.ipop__btn-ok:hover { background: #b91c1c; }

.ipop__btn-detail {
  background: var(--line-soft);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 16px;
}
.ipop__btn-detail:hover { background: #e9ebf1; }

.ipop__btn-back {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
}


/* ═══════════════════════════════════════════════════════════════
   TELA DE CARREGAMENTO CNPJ — 3 ETAPAS (atualização)
   Substitui o spinner único por 3 etapas sequenciais, cada uma com
   estado: pendente / processando / concluída / erro.
═══════════════════════════════════════════════════════════════ */

.cnpj-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(238, 241, 246, 0.96);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.cnpj-loading-overlay[hidden] { display: none; }

.cnpj-loading__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  max-width: 380px;
  width: 100%;
  text-align: left;
  animation: pop .25s ease both;
}
.cnpj-loading__inner--steps {
  max-width: 420px;
}

.cnpj-loading__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 4px;
}
.cnpj-loading__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.2px;
  margin: 0;
}
.cnpj-loading__sub {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

.cnpj-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cnpj-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--line-soft);
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}

.cnpj-step__ic {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--muted);
  overflow: hidden;
}

/* Por padrão, mostra o número. Spinner/check/error ficam ocultos. */
.cnpj-step__num { font-size: 13px; font-weight: 800; }
.cnpj-step__spinner,
.cnpj-step__check,
.cnpj-step__error { display: none; }

/* Estado pendente (cinza) */
.cnpj-step.is-pending .cnpj-step__ic {
  border-color: var(--line);
  color: var(--muted);
  background: var(--surface);
}
.cnpj-step.is-pending .cnpj-step__num { display: block; }

/* Estado carregando (spinner azul) */
.cnpj-step.is-loading {
  background: var(--blue-soft);
  border-color: #cfeeee;
}
.cnpj-step.is-loading .cnpj-step__ic {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}
.cnpj-step.is-loading .cnpj-step__num { display: none; }
.cnpj-step.is-loading .cnpj-step__spinner {
  display: block;
  width: 24px;
  height: 24px;
  animation: spinSmooth 1s linear infinite;
}

/* Estado concluído (check verde) */
.cnpj-step.is-done {
  background: #f3fbf6;
  border-color: #c6edda;
}
.cnpj-step.is-done .cnpj-step__ic {
  border-color: #1f9d57;
  color: #1f9d57;
  background: #e7f7ee;
}
.cnpj-step.is-done .cnpj-step__num { display: none; }
.cnpj-step.is-done .cnpj-step__check {
  display: block;
  width: 22px;
  height: 22px;
  animation: pop .25s ease both;
}

/* Estado erro (X vermelho) */
.cnpj-step.is-error {
  background: #fff5f5;
  border-color: #fca5a5;
}
.cnpj-step.is-error .cnpj-step__ic {
  border-color: #dc2626;
  color: #dc2626;
  background: #fee2e2;
}
.cnpj-step.is-error .cnpj-step__num { display: none; }
.cnpj-step.is-error .cnpj-step__error {
  display: block;
  width: 22px;
  height: 22px;
  animation: pop .25s ease both;
}

.cnpj-step__txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.cnpj-step__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.1px;
}
.cnpj-step__desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  word-break: break-word;
}
.cnpj-step.is-loading .cnpj-step__title { color: var(--blue-dark); }
.cnpj-step.is-done .cnpj-step__title { color: #14532d; }
.cnpj-step.is-error .cnpj-step__title { color: #991b1b; }

.cnpj-loading__retry {
  align-self: stretch;
  margin-top: 4px;
}
.cnpj-loading__retry[hidden] { display: none; }

/* ═══════════════════════════════════════════════════════════════
   BLOCO CREDOR + NATUREZA (dentro do .due-alert)
═══════════════════════════════════════════════════════════════ */

.due-alert__creditor {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.due-alert__creditor-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.due-alert__creditor-k {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #9b1c1c;
}
.due-alert__creditor-v {
  font-weight: 600;
  color: var(--ink);
  font-size: 13.5px;
}
.due-alert__creditor-note {
  margin: 4px 0 0;
  padding: 8px 10px;
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  border-radius: 6px;
  font-size: 11.5px;
  color: #7f1d1d;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   BLOCO DE INFORMAÇÕES DA EMPRESA (.company-info)
═══════════════════════════════════════════════════════════════ */

.company-info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  box-shadow: var(--shadow-card);
  animation: rise .3s ease both;
}
.company-info[hidden] { display: none; }

.company-info__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.company-info__ic {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.company-info__chip {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-soft);
  padding: 3px 8px;
  border-radius: 999px;
}
.company-info__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 4px;
  letter-spacing: -.2px;
}

.company-info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin: 0;
}
.ci-cell { display: flex; flex-direction: column; gap: 4px; }
.ci-cell--full { grid-column: 1 / -1; }
.ci-cell dt {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--muted);
}
.ci-cell dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
  line-height: 1.4;
}

.company-info__source {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--muted);
}
.company-info__source b { color: var(--ink-soft); font-weight: 700; }

@media (max-width: 380px) {
  .company-info__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   BTN --danger (variant para excluir, etc.)
═══════════════════════════════════════════════════════════════ */

.btn--danger {
  background: var(--red);
  color: #fff;
  border: none;
}
.btn--danger:hover { filter: brightness(1.08); }
.btn--danger:active { transform: scale(.97); }

/* ═══════════════════════════════════════════════════════════════
   PAINEL ADMINISTRATIVO (/upload)
═══════════════════════════════════════════════════════════════ */

.admin-body {
  background: var(--bg);
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.admin-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
}
.admin-card[hidden] { display: none; }

/* — Boot — */
.admin-boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
.admin-boot__spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spinSmooth 1s linear infinite;
}

/* — Login — */
.admin-login {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-login__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.admin-login__logo { height: 38px; width: auto; }
.admin-login__chip {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.admin-login__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.2px;
  text-align: center;
  margin: 0;
}
.admin-login__sub {
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  margin: 0;
}
.admin-login__btn { width: 100%; margin-top: 4px; }
.admin-login__legal {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  margin: 4px 0 0;
  line-height: 1.5;
}

/* — Forms — */
.admin-form { display: flex; flex-direction: column; gap: 12px; }
.admin-field { display: flex; flex-direction: column; gap: 6px; }
.admin-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--ink-soft);
}
.admin-field input[type="password"],
.admin-field input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.admin-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.admin-field__pwd { position: relative; }
.admin-field__pwd input { padding-right: 44px; }
.admin-field__toggle {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--muted);
  padding: 4px 6px;
  border-radius: 6px;
}
.admin-field__toggle:hover { background: var(--line-soft); }

.admin-error {
  font-size: 12.5px;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0;
}
.admin-error[hidden] { display: none; }
.admin-success {
  font-size: 12.5px;
  color: #14532d;
  background: #f3fbf6;
  border: 1px solid #c6edda;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0;
}
.admin-success[hidden] { display: none; }

/* — Panel — */
.admin-panel { display: flex; flex-direction: column; gap: 16px; }
.admin-panel[hidden] { display: none; }
.admin-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.admin-panel__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-panel__logo { height: 34px; width: auto; }
.admin-panel__chip {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.admin-logout { font-size: 12.5px; padding: 8px 14px; }
.admin-panel__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.2px;
  margin: 0;
}
.admin-panel__sub {
  font-size: 13px;
  color: var(--muted);
  margin: -8px 0 0;
}
.admin-panel__footer {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  margin: 4px 0 0;
}

.admin-panel__card {
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
}
.admin-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
}

/* — Upload — */
.admin-upload__form { display: flex; flex-direction: column; gap: 14px; }
.admin-dropzone { display: block; cursor: pointer; }
.admin-dropzone__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 18px;
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: center;
  transition: border-color .15s, background .15s;
}
.admin-dropzone__inner.is-dragover {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.admin-dropzone__ic {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.admin-dropzone__txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-dropzone__txt b { font-size: 13.5px; color: var(--ink); font-weight: 700; }
.admin-dropzone__txt small { font-size: 11.5px; color: var(--muted); }

.admin-upload__file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--blue-soft);
  border: 1px solid #cfeeee;
  border-radius: var(--radius-sm);
}
.admin-upload__file-ic { color: var(--blue-dark); flex: none; }
.admin-upload__file-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-upload__file-info b { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-upload__file-info small { font-size: 11.5px; color: var(--muted); }
.admin-upload__file-remove {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 6px;
}
.admin-upload__file-remove:hover { background: #fff; color: var(--red); }
.admin-upload__btn { width: 100%; }

.admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
}
.admin-check input { margin: 0; }

/* — Lista de arquivos — */
.admin-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.admin-list__head .admin-section__title { margin: 0; }
.admin-list__refresh {
  font-size: 12px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.admin-list__status {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}
.admin-list__status[hidden] { display: none; }

.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.admin-table th, .admin-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.admin-table th {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-table__name { max-width: 220px; }
.admin-table__name b {
  display: block;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-table__actions {
  text-align: right;
  white-space: nowrap;
}
.admin-table__empty td {
  text-align: center;
  color: var(--muted);
  padding: 20px 8px;
  font-style: italic;
}

.admin-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: .2px;
}
.admin-tag--ok { background: #e7f7ee; color: #1f9d57; }
.admin-tag--bad { background: #fee2e2; color: #dc2626; }

.admin-ic {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  width: 30px; height: 30px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  margin-left: 4px;
  transition: background .15s, color .15s, border-color .15s;
}
.admin-ic:hover { background: var(--line-soft); }
.admin-ic--delete:hover { color: var(--red); border-color: #fca5a5; background: #fff5f5; }
.admin-ic--download:hover { color: var(--blue-dark); border-color: #cfeeee; background: var(--blue-soft); }
.admin-ic--replace:hover { color: var(--amber); border-color: #fcd34d; background: #fff8e8; }

/* — Modal de confirmação — */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
}
.admin-modal[hidden] { display: none; }
.admin-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,30,50,.5);
  backdrop-filter: blur(2px);
}
.admin-modal__box {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 24px 22px;
  max-width: 420px;
  width: 100%;
  animation: pop .2s ease both;
}
.admin-modal__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
}
.admin-modal__text {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 18px;
}
.admin-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@keyframes pop {
  from { opacity: 0; transform: scale(.96) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 540px) {
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 8px 6px; }
  .admin-table__name { max-width: 130px; }
}

/* Situação exibida nos dois blocos de dados da empresa. */
#rStatus.pill--debt, #ciSituacao.pill--debt {
  background: #fef2f2;
  color: #dc2626;
}

/* Confirmação da consulta, dentro do overlay existente. */
.cnpj-confirmation__actions { display: grid; gap: 10px; margin-top: 18px; }
.cnpj-confirmation__actions .btn { width: 100%; white-space: normal; }
.cnpj-loading__inner--steps { max-height: calc(100dvh - 32px); overflow-y: auto; }
.cnpj-step__desc { overflow-wrap: anywhere; }

#cnpjSteps[hidden], .cnpj-loading__header[hidden], #cnpjConfirmation[hidden] { display: none; }

/* Condição financeira separada da situação cadastral oficial. */
.tp-cell .pill--debt, .ci-cell .pill--debt { color: #dc2626; background: #fef2f2; }
#rDevedoraRow[hidden], #ciDevedoraRow[hidden], #confirmDevedoraRow[hidden] { display: none; }

/* ═══════════════════════════════════════════════════════════════
   DEVEDORA / DÉBITO EM ABERTO — sempre em vermelho forte
═══════════════════════════════════════════════════════════════ */

/* Situação cadastral DEVEDORA: vermelho legível */
.pill--bad {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fca5a5;
  font-weight: 800;
  letter-spacing: .2px;
}

/* Débito em Aberto: vermelho forte */
.pill--debt {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  background: #dc2626 !important;
  color: #fff !important;
  letter-spacing: .2px;
  animation: pulseDebt 2.4s ease infinite;
}
@keyframes pulseDebt {
  0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.4); }
  50%      { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
}

/* ═══════════════════════════════════════════════════════════════
   MASCOTE TAXA GOVERNO FEDERAL — antes do modal taxa2
═══════════════════════════════════════════════════════════════ */

.taxa2-mascote-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  margin-bottom: 8px;
  /* afasta levemente o modal__box do topo para acomodar a imagem */
  overflow: visible;
}
.taxa2-mascote {
  display: block;
  width: min(88vw, 320px);
  max-height: 320px;
  object-fit: contain;
  object-position: center bottom;
  /* transparência: sem fundo */
  background: transparent;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.28));
  animation: pop .3s ease both;
}

@media (max-width: 400px) {
  .taxa2-mascote {
    width: min(92vw, 260px);
    max-height: 240px;
  }
}
@media (min-width: 600px) {
  .taxa2-mascote {
    width: min(60vw, 360px);
    max-height: 360px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MASCOTE DAS SIMPLES NACIONAL — antes do modal taxa3
═══════════════════════════════════════════════════════════════ */

.taxa3-mascote-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  margin-bottom: 8px;
  overflow: visible;
}
.taxa3-mascote {
  display: block;
  width: min(88vw, 320px);
  max-height: 320px;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.28));
  animation: pop .3s ease both;
}

@media (max-width: 400px) {
  .taxa3-mascote {
    width: min(92vw, 260px);
    max-height: 240px;
  }
}
@media (min-width: 600px) {
  .taxa3-mascote {
    width: min(60vw, 360px);
    max-height: 360px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   COMPANY-INFO COMO PRIMEIRO BLOCO (substitui Cadastro Localizado)
   Mesmo espaçamento/margin-top que .card.taxpayer tinha no fluxo.
═══════════════════════════════════════════════════════════════ */
.company-info--first {
  /* garante que não flutue acima do que estava antes */
  margin-top: 0;
}

/* Conclusão: imagem inteira e controles adaptados à largura disponível. */
.modal__box--final { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; box-sizing: border-box; }
.final-mascote-wrap { display: flex; justify-content: center; width: 100%; }
.final-mascote { display: block; width: 100%; max-width: 420px; height: auto; object-fit: contain; }
.final-conclude-btn { display: flex; justify-content: center; margin: 16px auto; width: 100%; max-width: 360px; min-height: 48px; }
.final-conclude-btn[hidden], #finalSummary[hidden] { display: none; }
.final-company { display: grid; gap: 8px; text-align: center; margin: 16px 0; overflow-wrap: anywhere; }
.final-company__name { font-weight: 700; }
.final-status-row { display: grid; gap: 12px; margin-bottom: 16px; }
.final-status-item { display: grid; gap: 4px; }
.final-status-label { font-size: 13px; color: var(--muted); }
.final-status-value { font-weight: 600; overflow-wrap: anywhere; }

/* ═══════════════════════════════════════════════════════════════
   PIX COPIA E COLA — exibição completa sem truncamento
   O campo mostra o código visual integralmente com scroll horizontal.
═══════════════════════════════════════════════════════════════ */

.pix-copy input {
  /* Permite rolagem horizontal para ver o código completo */
  overflow-x: auto;
  white-space: nowrap;
  text-overflow: clip;
  cursor: text;
  /* Fonte levemente menor para caber mais conteúdo */
  font-size: 10.5px;
  letter-spacing: 0;
}

/* ═══════════════════════════════════════════════════════════════
   PIX COPIA E COLA — campo expandido, código visível por completo
═══════════════════════════════════════════════════════════════ */

/* Quebra o layout para o campo ficar em cima e o botão embaixo */
.pix-copy {
  flex-direction: column !important;
  gap: 10px !important;
}

/* Campo expandido: quebra o código em múltiplas linhas */
.pix-copy .pix-code-area,
.pix-code-area {
  display: block;
  width: 100%;
  min-height: 90px;        /* mostra ~3 linhas */
  resize: none;
  overflow: hidden;        /* sem scrollbar — o texto quebra e expande */
  word-break: break-all;
  white-space: pre-wrap;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-soft);
  background: #fbfcfe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  cursor: text;
  box-sizing: border-box;
}

/* Botão Copiar em largura total abaixo do campo */
.pix-copy .btn {
  width: 100% !important;
  justify-content: center !important;
}

/* PIX completo: multiline, sem cortes, com altura ajustada ao conteudo. */
.pix-copy textarea.pix-code-area {
  min-width: 0;
  max-width: 100%;
  height: auto;
  max-height: none;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-all;
  font-size: 12px;
  line-height: 1.6;
  resize: none;
}

/* ═══════════════════════════════════════════════════════════════
   PIX COPIA E COLA — REGRA DEFINITIVA (sobrescreve todas anteriores)
   Textarea que exibe o código PIX inteiro, sem corte, sem scroll.
═══════════════════════════════════════════════════════════════ */

/* Layout vertical: campo em cima, botão embaixo */
.pix-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}

/* Textarea: exibe todo o conteúdo sem truncar */
.pix-copy textarea,
.pix-copy textarea.pix-code-area,
textarea.pix-code-area {
  display: block !important;
  width: 100% !important;
  min-height: 100px !important;
  height: auto !important;
  max-height: none !important;
  resize: none !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
  word-break: break-all !important;
  white-space: pre-wrap !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 10px !important;
  padding: 12px !important;
  font-size: 11px !important;
  line-height: 1.6 !important;
  color: var(--ink-soft) !important;
  background: #fbfcfe !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  cursor: text !important;
  box-sizing: border-box !important;
  flex: unset !important;
}

/* Botão Copiar: largura total, fácil de tocar */
.pix-copy .btn {
  width: 100% !important;
  justify-content: center !important;
  flex: unset !important;
}
