/* ═══════════════════════════════════════════════════════════════
   modern.css — Camada de modernização visual do Portal do MEI
   Carregado DEPOIS de styles.css — sobrescreve seletivamente.
   Não remove nenhuma funcionalidade existente.
═══════════════════════════════════════════════════════════════ */

/* ── 0. Tokens adicionais ─────────────────────────────────── */
:root {
  --radius:    20px;
  --radius-sm: 14px;
  --radius-xs: 10px;

  --shadow-card: 0 2px 4px rgba(20,30,50,.04), 0 8px 24px rgba(20,30,50,.07);
  --shadow-pop:  0 28px 64px rgba(20,30,50,.24);
  --shadow-btn:  0 4px 12px rgba(20,30,50,.12);

  --red-vivid:    #dc2626;
  --red-bg:       #fef2f2;
  --red-border:   #fca5a5;
  --red-text:     #7f1d1d;

  --amber-vivid:  #d97706;
  --amber-bg:     #fffbeb;
  --amber-border: #fcd34d;

  --green-vivid:  #16a34a;
  --green-bg:     #f0fdf4;
  --green-border: #bbf7d0;

  --transition: .18s cubic-bezier(.22,.61,.36,1);
}

/* ── 1. Tipografia & baseline ─────────────────────────────── */
body {
  line-height: 1.6;
  letter-spacing: -.01em;
}

h1, h2, h3, h4 {
  letter-spacing: -.03em;
  line-height: 1.2;
}

p { margin: 0; }
p + p { margin-top: .75em; }

/* ── 2. App container ─────────────────────────────────────── */
@media (min-width: 480px) {
  body { padding: 32px 0; }
  .app {
    border-radius: 32px;
    box-shadow: 0 32px 96px rgba(20,30,50,.18), 0 2px 8px rgba(20,30,50,.06);
  }
}

/* ── 3. Topbar ────────────────────────────────────────────── */
.topbar {
  padding-top: calc(16px + var(--safe-top));
  padding-bottom: 14px;
  padding-left: 20px;
  padding-right: 20px;
}

.logo__svg { height: 36px; }

.govbr {
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  gap: 6px;
  letter-spacing: -.01em;
  box-shadow: 0 2px 8px rgba(19,81,180,.28);
}

.crumbs { margin-top: 12px; gap: 4px 8px; }
.crumbs__item { font-size: 11.5px; }

/* ── 4. Main layout ───────────────────────────────────────── */
.main { padding: 24px 20px 12px; gap: 20px; }

body.has-consult .main { gap: 22px; padding-bottom: 36px; }

/* ── 5. Cards base ────────────────────────────────────────── */
.card {
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  border-color: rgba(0,0,0,.06);
}

/* ── 6. Consult card ──────────────────────────────────────── */
.consult {
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
}

.consult__head {
  padding: 20px 20px 16px;
  margin: 0;
  border-bottom: 1px solid var(--line-soft);
  background: var(--line-soft);
  border-radius: var(--radius) var(--radius) 0 0;
}

.consult__head h2 {
  font-size: 17px;
  font-weight: 800;
}

.consult__icon {
  width: 44px; height: 44px;
  border-radius: 13px;
}

.consult__form { padding: 20px; gap: 14px; }

.field label {
  font-size: 11px;
  letter-spacing: .6px;
  margin-bottom: 7px;
}

.field input {
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  font-size: 17px;
  border-width: 1.5px;
}

.field input:focus {
  box-shadow: 0 0 0 4px rgba(88,197,198,.14);
}

.consult__seals {
  padding: 14px 20px 20px;
  margin: 0;
  border-top: 1px solid var(--line-soft);
  background: var(--line-soft);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ── 7. Botões ────────────────────────────────────────────── */
.btn {
  font-size: 16px;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  gap: 9px;
  letter-spacing: -.01em;
  transition: transform var(--transition), filter var(--transition),
              background var(--transition), box-shadow var(--transition);
}

.btn:active { transform: scale(.982); }

.btn--primary {
  box-shadow: 0 4px 14px rgba(88,197,198,.35);
}
.btn--primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(88,197,198,.45);
}

.btn--cta {
  font-size: 17px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(233,101,95,.3);
}

/* ── 8. Stepper ───────────────────────────────────────────── */
.stepper { gap: 6px; }
.step__dot { width: 26px; height: 26px; font-size: 12.5px; }
.step__label { font-size: 13px; }
.step:not(:last-child)::after { width: 20px; }

/* ── 9. Aviso (seção de alerta principal) ─────────────────── */
.aviso {
  border-radius: var(--radius);
  padding: 0;
  border: none;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border-left: none;
}

.aviso__top {
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
  border: 1.5px solid var(--amber-border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 20px;
  gap: 14px;
}

.aviso__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(217,119,6,.18);
}

.aviso__tag {
  font-size: 10px;
  letter-spacing: .8px;
}

.aviso__title {
  font-size: clamp(19px, 5.5vw, 23px);
  margin-top: 4px;
}

.aviso__title span { color: var(--red-vivid); font-weight: 900; }

.aviso__text {
  padding: 16px 20px 0;
  background: #fffbeb;
  border-left: 1.5px solid var(--amber-border);
  border-right: 1.5px solid var(--amber-border);
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

.aviso__list {
  padding: 14px 20px 20px;
  margin: 0;
  background: #fffbeb;
  border: 1.5px solid var(--amber-border);
  border-top: 1px solid #fde68a;
  border-radius: 0 0 var(--radius) var(--radius);
  gap: 11px;
}

.aviso__list li {
  font-size: 14px;
  gap: 10px;
}

/* ── 10. Agent card ───────────────────────────────────────── */
.agent-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--line);
}

.agent-card__bubble {
  padding: 20px 18px;
  gap: 12px;
  background: #fff;
  border-top: 1px solid var(--line-soft);
}

.agent-card__bubble-main {
  font-size: 14px;
  padding: 14px 16px;
  border-radius: 16px 16px 16px 4px;
  border: 1.5px solid var(--line);
  background: linear-gradient(135deg, #fff, #fafbfd);
  line-height: 1.55;
}

.agent-card__bubble-sub {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 0 4px;
}

.agent-card__btn {
  font-size: 17px;
  padding: 20px 24px;
  letter-spacing: -.02em;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.15);
  gap: 10px;
  background: var(--red-vivid);
}

.agent-card__btn:hover { background: #b91c1c; }

/* ── 11. Due-alert ────────────────────────────────────────── */
.due-alert {
  border-radius: var(--radius);
  border: none;
  border-left: 5px solid var(--red-vivid);
  background: var(--red-bg);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(220,38,38,.14), var(--shadow-card);
  animation: alertSlideIn .4s cubic-bezier(.22,.61,.36,1) both;
}

@keyframes alertSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

.due-alert__head {
  background: var(--red-vivid);
  margin: 0;
  padding: 14px 18px;
  border-radius: 0;
  gap: 10px;
  align-items: center;
}

.due-alert__icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.2);
  border-radius: 9px;
  color: #fff;
}

.due-alert__title {
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .8px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
}

.due-alert__msg {
  padding: 16px 18px 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #991b1b;
}

.due-alert__msg b { color: var(--red-vivid); font-weight: 900; }

.due-alert__creditor {
  margin: 14px 18px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--red-border);
  background: #fff;
  padding: 14px 16px;
  gap: 10px;
}

.due-alert__creditor-k {
  font-size: 10px;
  letter-spacing: .6px;
}

.due-alert__creditor-v { font-size: 14px; font-weight: 700; }

.due-alert__creditor-note {
  font-size: 12px;
  border-left-width: 4px;
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
  background: #fef2f2;
  color: #7f1d1d;
  line-height: 1.55;
}

.due-alert__timer-wrap {
  margin: 0 18px 18px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fef2f2, #fff5f5);
  border: 1.5px solid var(--red-border);
  gap: 6px;
}

.due-alert__timer-label {
  font-size: 11px;
  letter-spacing: .7px;
}

.due-alert__timer {
  font-size: clamp(38px, 11vw, 56px);
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(220,38,38,.2);
}

.due-alert__timer-sub {
  font-size: 12px;
}

/* ── 12. Company info ─────────────────────────────────────── */
.company-info {
  border-radius: var(--radius);
  padding: 20px;
  border: 1.5px solid var(--line);
}

.company-info__head { gap: 14px; margin-bottom: 18px; }
.company-info__ic { width: 44px; height: 44px; border-radius: 13px; }

.company-info__grid { gap: 16px 20px; }

.ci-cell dt {
  font-size: 10px;
  letter-spacing: .5px;
  margin-bottom: 4px;
}

.ci-cell dd { font-size: 14px; font-weight: 600; }

/* ── 13. Guarantee seals ──────────────────────────────────── */
.guarantee { gap: 12px; }

.guarantee__item {
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  gap: 10px;
  font-size: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1.5px solid var(--line);
}

.guarantee__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* ── 14. FAQ ──────────────────────────────────────────────── */
.faq { padding: 4px 0; }

.faq__title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.faq__item {
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border: 1.5px solid var(--line);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq__item[open] {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(88,197,198,.1);
}

.faq__item summary {
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 700;
  gap: 12px;
  user-select: none;
}

.faq__item summary::after {
  font-size: 22px;
  font-weight: 300;
  color: var(--blue-dark);
  transition: transform .25s ease;
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p {
  padding: 0 18px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  color: var(--ink-soft);
}

/* ── 15. Sticky CTA ───────────────────────────────────────── */
.sticky-cta { padding: 0 14px calc(14px + var(--safe-bottom)); }

.sticky-cta__inner {
  border-radius: 20px;
  padding: 10px 10px 10px 16px;
  box-shadow: 0 20px 48px rgba(20,30,50,.18), 0 2px 8px rgba(20,30,50,.06);
  border: 1.5px solid rgba(255,255,255,.9);
  gap: 13px;
}

.sticky-cta__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
}

.sticky-cta__k { font-size: 11.5px; }
.sticky-cta__v { font-size: 17px; font-weight: 900; }

.sticky-cta__btn {
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 15px;
  background: var(--red-vivid);
  box-shadow: 0 6px 18px rgba(220,38,38,.4);
}

.sticky-cta__btn:hover { background: #b91c1c; }

/* ── 16. Modal base ───────────────────────────────────────── */
.modal__overlay { background: rgba(10,14,28,.58); }

.modal__box {
  border-radius: 26px 26px 0 0;
  padding: 28px 24px calc(28px + var(--safe-bottom));
  box-shadow: var(--shadow-pop);
}

@media (min-width: 480px) {
  .modal__box { border-radius: 26px; }
}

.modal__close {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--line-soft);
  border: none;
  font-size: 20px;
  top: 14px; right: 16px;
  transition: background var(--transition);
}

.modal__close:hover { background: var(--line); }

.modal__box h3 { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.modal__sub { font-size: 14px; margin-top: 4px; }

/* ── 17. Checkout modal ───────────────────────────────────── */
.modal__box--checkout {
  border-radius: 26px 26px 0 0;
  padding-bottom: calc(20px + var(--safe-bottom));
}

@media (min-width: 480px) {
  .modal__box--checkout { border-radius: 26px; max-width: 440px; }
}

.co-head {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.co-head h3 { font-size: 20px; font-weight: 800; }

/* Service summary */
.service-summary {
  background: var(--red-bg);
  border: 1.5px solid var(--red-border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
  flex: none;
}

.service-summary__label {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: #fff;
  background: var(--red-vivid);
  padding: 9px 14px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-summary__items {
  margin: 0;
  padding: 0;
}

.service-summary__items > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--red-border);
}

.service-summary__items > div:last-child {
  border-bottom: none;
}

.service-summary__items dt { color: var(--ink-soft); font-weight: 600; }
.service-summary__items dd { margin: 0; color: var(--ink); font-weight: 700; }

.service-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--red-bg);
  border-top: 1.5px solid var(--red-border);
  font-size: 13px;
}

.service-summary__total b { color: var(--ink-soft); font-weight: 700; }
.service-summary__total strong { font-size: 18px; font-weight: 900; color: var(--red-vivid); }

.service-summary__details {
  border-top: 1px solid var(--red-border);
}

.service-summary__details summary {
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red-vivid);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.service-summary__details summary::-webkit-details-marker { display: none; }

.service-summary__details div {
  padding: 0 14px 14px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.service-summary__details p { margin: 0 0 8px; }
.service-summary__details p:last-child { margin: 0; }

/* co-block */
.co-block { margin-bottom: 14px; }

.co-block__title {
  font-size: 10.5px;
  letter-spacing: .6px;
  margin-bottom: 10px;
}

.co-data { border-radius: var(--radius-sm); border: 1.5px solid var(--line); }
.co-data div { padding: 12px 14px; font-size: 13.5px; }

/* PIX copy area */
.pix-copy {
  gap: 10px;
  margin-bottom: 12px;
  flex-direction: column;
}

.pix-copy textarea {
  width: 100%;
  min-height: 72px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 11.5px;
  color: var(--ink-soft);
  background: #fafbfe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: none;
  line-height: 1.55;
}

.pix-copy .btn--ghost {
  width: 100%;
  justify-content: center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14.5px;
  padding: 13px 16px;
  transition: background var(--transition), border-color var(--transition);
}

.pix-copy .btn--ghost:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue-dark);
}

/* co-total */
.co-total {
  padding: 14px 2px 10px;
  border-top: 1.5px dashed var(--line);
}

.co-total b { font-size: clamp(20px, 5.5vw, 22px); }

/* co-footer */
.co-footer {
  padding-top: 14px;
  background: linear-gradient(to top, #fff 80%, rgba(255,255,255,.88));
}

.co-confirm {
  font-size: 16.5px;
  padding: 17px 22px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--red-vivid);
  box-shadow: 0 6px 20px rgba(220,38,38,.28);
  letter-spacing: -.01em;
}

.co-confirm:hover:not(:disabled) { background: #b91c1c; }

.co-notice {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  gap: 12px;
  background: linear-gradient(135deg, #f0fafb, #fffff8);
  border: 1.5px solid #dceef0;
}

.co-notice p { font-size: 13px; line-height: 1.55; }

/* QR canvas/img */
.qr {
  margin-bottom: 16px;
  padding: 8px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
}

.qr__canvas,
.qr__img {
  border: none;
  border-radius: 10px;
  width: 190px;
  height: 190px;
  display: block;
  margin: 0;
  padding: 0;
}

/* ── 18. Payment-generated notice (ipop) ──────────────────── */
.ipop__header {
  background: var(--red-vivid);
  padding: 16px 20px;
  gap: 12px;
  border-radius: 0;
}

.ipop__title {
  font-size: 12px;
  letter-spacing: .6px;
}

.ipop__body { padding: 20px 20px 0; }
.ipop__lead { font-size: 15px; margin-bottom: 12px; font-weight: 700; }
.ipop__para { font-size: 13.5px; line-height: 1.6; margin-bottom: 12px; }

.ipop__details {
  margin-top: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
}

.ipop__details-title {
  font-size: 10px;
  letter-spacing: .6px;
  padding: 9px 14px;
}

.ipop__row {
  padding: 10px 14px;
  font-size: 13px;
}

.ipop__row span { width: 130px; font-size: 12px; }

.ipop__actions {
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  gap: 10px;
  border-top: 1.5px solid var(--line-soft);
}

/* ── 19. Gov.br modal ─────────────────────────────────────── */
.gov-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(31,157,87,.25);
}

.gov-auth-badge {
  font-size: 12.5px;
  padding: 6px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  gap: 7px;
}

.gov-list { gap: 12px; }
.gov-list li { font-size: 14px; gap: 10px; }
.gov-note { font-size: 13px; padding: 14px 16px; border-radius: var(--radius-sm); }

/* ── 20. Sucesso ──────────────────────────────────────────── */
.success-check {
  width: 76px; height: 76px;
  box-shadow: 0 6px 20px rgba(31,157,87,.3);
}

.success-receipt { border-radius: var(--radius-sm); border: 1.5px solid var(--line); }

.success-receipt div { padding: 12px 14px; font-size: 13.5px; }

/* ── 21. Final modal ──────────────────────────────────────── */
.modal__box--final {
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.final-mascote-wrap {
  background: linear-gradient(160deg, #1d2333, #0f1520);
  padding: 0;
  display: flex;
  justify-content: center;
}

.final-mascote { height: 200px; object-fit: contain; }

.final-conclude-btn {
  background: var(--red-vivid);
  border-radius: 0;
  font-size: 16px;
  padding: 18px 24px;
  letter-spacing: -.01em;
  box-shadow: none;
}

.final-conclude-btn:hover { background: #b91c1c; }

.final-title {
  font-size: 22px;
  font-weight: 800;
  padding: 18px 20px 4px;
  margin: 0;
  border-bottom: none;
}

#finalSummary { padding: 0 20px 24px; }

.final-company {
  margin: 12px 0 16px;
  background: var(--line-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.final-company__cnpj {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.final-company__name {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  word-break: break-word;
}

.final-status-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.final-status-item {
  background: var(--line-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.final-status-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.final-status-value {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  word-break: break-word;
}

.final-notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  gap: 12px;
  border: 1.5px solid var(--green-border);
}

.final-notice p { font-size: 13px; line-height: 1.55; }

.final-receipts {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
}

.final-receipt-item { padding: 12px 14px; font-size: 13.5px; gap: 12px; }

.final-receipt-item--total {
  background: linear-gradient(135deg, var(--blue-soft), #fff);
  border-top: 1.5px solid #cfeeee !important;
}

.final-receipt-item--total b { font-size: 17px; color: var(--blue-dark); font-weight: 900; }

/* ── 22. Protection / upsell modal ───────────────────────── */
.modal__box > h3[id="protectionTitle"] {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.35;
  color: var(--ink);
}

#protectionWarning {
  background: var(--red-bg);
  border: 1.5px solid var(--red-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: #7f1d1d;
  line-height: 1.55;
  margin-bottom: 4px;
}

#protectionValueText {
  font-size: 17px;
  font-weight: 800;
  display: block;
  margin: 12px 0 8px;
  color: var(--ink);
  text-align: center;
}

#addProtection {
  background: var(--red-vivid);
  box-shadow: 0 6px 20px rgba(220,38,38,.28);
  font-size: 16px;
  margin-bottom: 10px;
}

#addProtection:hover { background: #b91c1c; }

#declineProtection {
  color: var(--muted);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  padding: 13px 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#declineProtection:hover { background: var(--line-soft); color: var(--ink); }

/* ── 23. CNPJ loading overlay ─────────────────────────────── */
.cnpj-loading__inner {
  border-radius: var(--radius);
  padding: 28px 24px;
  gap: 20px;
}

.cnpj-loading__title { font-size: 18px; font-weight: 800; }
.cnpj-loading__sub { font-size: 13px; }

.cnpj-steps { gap: 12px; }

.cnpj-step {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  gap: 14px;
  border: 1.5px solid transparent;
}

.cnpj-step__ic {
  width: 34px; height: 34px;
  border-radius: 50%;
  border-width: 2px;
}

.cnpj-step__title { font-size: 14.5px; }
.cnpj-step__desc { font-size: 12.5px; }

/* ── 24. Bell & hello section ─────────────────────────────── */
.hello { padding-top: 6px; }
.hello__row { gap: 14px; }
.hello__greet { font-size: 20px; font-weight: 900; }
.hello__sub { font-size: 13.5px; margin-top: 3px; line-height: 1.45; }

.bell {
  width: 44px; height: 44px;
  border-radius: 13px;
  transition: background var(--transition), transform var(--transition);
}

/* ── 25. Co-consequences ──────────────────────────────────── */
.co-consequences {
  margin: 16px 0 6px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--red-border);
  background: var(--red-bg);
}

.co-consequences__title {
  font-size: 10.5px;
  letter-spacing: .6px;
  color: var(--red-vivid);
  font-weight: 900;
  margin-bottom: 10px;
}

.co-consequences__list { gap: 9px; }

.co-consequences__list li {
  font-size: 13px;
  color: var(--red-text);
  gap: 9px;
  line-height: 1.4;
}

/* ── 26. Footer ───────────────────────────────────────────── */
.site-footer { padding: 30px 20px calc(22px + var(--safe-bottom)); }
.footer-col a { font-size: 14px; padding: 6px 0; }
.site-footer__desc { font-size: 13px; }

/* ── 27. Admin ────────────────────────────────────────────── */
.admin-card { border-radius: var(--radius); padding: 30px 26px; }
.admin-wrap { gap: 20px; padding-top: 28px; }

/* ── 28. Animações utilitárias ────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.result { animation: fadeInUp .38s cubic-bezier(.22,.61,.36,1) both; }

/* ── 29. Scrollbar (chromium) ─────────────────────────────── */
.modal__box--checkout::-webkit-scrollbar,
.modal__box--info::-webkit-scrollbar { width: 4px; }
.modal__box--checkout::-webkit-scrollbar-track,
.modal__box--info::-webkit-scrollbar-track { background: transparent; }
.modal__box--checkout::-webkit-scrollbar-thumb,
.modal__box--info::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 2px;
}

/* ── 30. Responsividade extra ─────────────────────────────── */
@media (max-width: 380px) {
  .main { padding: 18px 14px 10px; gap: 16px; }
  .card { padding: 18px 16px; }
  .due-alert__timer { font-size: 34px; }
  .agent-card__btn { font-size: 16px; padding: 18px 20px; }
  .co-confirm { padding: 15px 18px; font-size: 15.5px; }
  .consult__form { padding: 16px; }
}

@media (min-width: 481px) {
  .sticky-cta { max-width: 480px; }
  .modal__box--checkout { max-width: 460px; }
}

/* ── 31. Focus visible acessível ──────────────────────────── */
:focus-visible {
  outline: 3px solid rgba(88,197,198,.55);
  outline-offset: 3px;
}

.btn:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(88,197,198,.55);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(88,197,198,.15);
}

/* ── 32. Pix copied feedback ──────────────────────────────── */
.pix-copied {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-vivid);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-xs);
}

/* ── 33. Pix-code-area textarea ───────────────────────────── */
.pix-code-area {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  background: #fafbfe;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  resize: none;
  min-height: 80px;
}

/* ── Upsell payment modal — QR centralizado, Copiar afastado ── */
.modal__box--upsell-pay {
  text-align: left;
}

.modal__box--upsell-pay h3 {
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}

/* QR no centro */
.upsell-qr-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 14px;
  padding: 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
}

.upsell-qr-wrap .qr__img,
.upsell-qr-wrap canvas {
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto;
  border: none;
  padding: 0;
  background: transparent;
}

/* Textarea do código PIX */
.modal__box--upsell-pay .pix-code-area {
  margin-bottom: 0;
}

/* Botão Copiar — afastado, largura total, destaque */
.upsell-copy-wrap {
  margin-top: 16px;
  margin-bottom: 20px;
}

.upsell-copy-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border: 1.5px solid #cfeeee;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  transition: background .15s, border-color .15s;
}

.upsell-copy-btn:hover {
  background: #dff5f5;
  border-color: var(--blue);
}

/* Espaço entre hint e textarea */
.modal__box--upsell-pay .modal__hint {
  text-align: center;
  margin-bottom: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   Substituição bonecas → ícones profissionais
═══════════════════════════════════════════════════════════════ */

/* Agent card: hero com ícone de alerta */
.agent-card__hero--alert {
  flex-direction: column;
  align-items: center;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 100%);
  padding: 28px 20px 0;
  gap: 16px;
  min-height: 0;
}

.agent-alert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  background: rgba(220, 38, 38, 0.15);
  border-radius: 50%;
  border: 2px solid rgba(220, 38, 38, 0.4);
  animation: alertPulse 2.4s ease infinite;
  flex-shrink: 0;
}

@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.35); }
  50%       { box-shadow: 0 0 0 12px rgba(220,38,38,0); }
}

.agent-card__hero--alert .agent-card__bubble {
  background: transparent;
  border-top: 1px solid rgba(255,255,255,.1);
  width: 100%;
  padding: 16px 18px;
}

.agent-card__hero--alert .agent-card__bubble-main {
  border-radius: 14px;
  background: rgba(255,255,255,.97);
  border: 1.5px solid rgba(220,38,38,.25);
}

.agent-card__hero--alert .agent-card__bubble-sub {
  color: rgba(255,255,255,.82);
}

/* Final modal: ícone de check verde */
.final-success-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 0 20px;
  background: linear-gradient(160deg, #0f2d1e 0%, #14532d 100%);
  animation: pop .35s cubic-bezier(.34,1.56,.64,1) both;
}

.final-success-icon svg {
  filter: drop-shadow(0 4px 16px rgba(22,163,74,.5));
}

/* Upsell alert header */
.upsell-alert-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #fef2f2, #fff5f5);
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius-sm, 14px) var(--radius-sm, 14px) 0 0;
  padding: 16px 18px;
  margin: -28px -24px 16px;
}

.upsell-alert-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #fca5a5;
  box-shadow: 0 2px 8px rgba(220,38,38,.15);
}

.upsell-alert-header h3 {
  font-size: 16px !important;
  font-weight: 800;
  color: #7f1d1d;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -.02em;
}

/* ═══════════════════════════════════════════════════════════════
   Aviso de status do pagamento no checkout
═══════════════════════════════════════════════════════════════ */

.payment-status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-xs, 10px);
  margin-bottom: 14px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}

.payment-status-banner--pending {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  color: #78350f;
}

.payment-status-banner--pending svg { color: #d97706; flex: none; }

.payment-status-banner--paid {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #14532d;
}

.payment-status-banner--paid svg { color: #16a34a; flex: none; }

.payment-status-banner--error {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #7f1d1d;
}

.payment-status-banner--error svg { color: #dc2626; flex: none; }

/* Valor destacado no checkout de upsell */
.upsell-value-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius-xs, 10px);
  padding: 12px 16px;
  margin-bottom: 14px;
}

.upsell-value-highlight__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft, #4b5563);
}

.upsell-value-highlight__amount {
  font-size: 22px;
  font-weight: 900;
  color: #dc2626;
  letter-spacing: -.03em;
}

/* Ajuste botão "Ignorar" no upsell — menos agressivo visualmente */
#declineProtection {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  border: none;
  padding: 10px 0;
}

#declineProtection:hover {
  color: var(--ink-soft, #4b5563);
  background: transparent;
}

/* ═══════════════════════════════════════════════════════════════
   Melhorias estéticas gerais
═══════════════════════════════════════════════════════════════ */

/* Checkout title melhorado */
.co-head h3 {
  font-size: 18px;
  font-weight: 800;
}

/* Botão confirmar desabilitado — texto mais claro */
.co-confirm--waiting:disabled .btn__label {
  opacity: .75;
}

/* Loading state no modal */
.co-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 0;
  color: var(--muted, #8a94a6);
  font-size: 14px;
}

.co-loading::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--line, #ecedf2);
  border-top-color: var(--blue, #58C5C6);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

/* Hint abaixo do QR */
.modal__hint {
  text-align: center;
  font-size: 13px;
  color: var(--muted, #8a94a6);
  margin: 0 0 12px;
  line-height: 1.5;
}

/* Garantia visual de responsividade */
@media (max-width: 380px) {
  .agent-alert-icon { width: 72px; height: 72px; }
  .upsell-alert-header { padding: 14px 16px; margin: -24px -20px 14px; }
  .final-success-icon { padding: 22px 0 16px; }
}
/* Ajuste restrito ao modal de conclusão */
#finalModal .modal__box--final {
  box-sizing:border-box; width:calc(100% - 28px); max-width:440px;
  max-height:calc(100dvh - 32px); overflow-y:auto; padding:30px 26px;
  border:1px solid #e5ecee; border-radius:24px; background:#fff;
  text-align:center; box-shadow:0 24px 80px rgba(15,32,45,.2);
}
#finalModal .final-success-icon {
  width:64px; height:64px; margin:0 auto 20px; padding:0;
  background:#eef9f3; border:1px solid #d9efe2; border-radius:20px;
  display:grid; place-items:center; animation:none;
}
#finalModal .final-success-icon svg { width:34px; height:34px; filter:none; }
#finalModal .final-eyebrow { display:block; color:#538078; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1.5px; margin-bottom:10px; }
#finalModal .final-title { padding:0; margin:0; font-size:25px; line-height:1.25; font-weight:800; letter-spacing:-.7px; color:#202e3a; }
#finalModal .final-intro { margin:14px auto 24px; max-width:330px; color:#647280; font-size:14px; line-height:1.7; }
#finalModal .final-conclude-btn { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:52px; margin:0; padding:14px 20px; border:1px solid #278f8f; border-radius:12px; background:#278f8f; color:#fff; font-size:15px; font-weight:700; box-shadow:0 4px 10px rgba(39,143,143,.12); transition:background .16s,transform .16s; }
#finalModal .final-conclude-btn:hover { background:#207a7a; border-color:#207a7a; }
#finalModal .final-conclude-btn:active { transform:translateY(1px); }
#finalModal .final-conclude-btn:focus-visible { outline:3px solid #90cfd0; outline-offset:4px; }
#finalModal #finalSummary { padding:0; margin-top:24px; text-align:left; }
#finalModal:has(#finalSummary:not([hidden])) .final-intro { display:none; }
#finalModal .final-company { margin:0 0 16px; padding:16px; background:#f7f9fa; border:1px solid #e5ecee; border-radius:12px; }
#finalModal .final-company__cnpj { color:#6c7b87; font-size:12px; letter-spacing:.2px; }
#finalModal .final-company__name { margin-top:5px; font-size:15px; line-height:1.5; }
#finalModal .final-status-row { gap:10px; }
#finalModal .final-status-item { padding:14px 12px; border:1px solid #e5ecee; border-radius:12px; background:#fff; }
#finalModal .final-status-label { font-size:10px; line-height:1.6; letter-spacing:.2px; color:#6c7b87; }
#finalModal .final-status-value { font-size:13px; line-height:1.5; color:#334452; }
#finalModal .final-notice { margin:16px 0; padding:14px; background:#f2f8f6; border:1px solid #deebe5; border-radius:12px; gap:10px; }
#finalModal .final-notice p { color:#50665b; font-size:12px; line-height:1.7; }
#finalModal .final-receipts { border:1px solid #e5ecee; border-radius:12px; overflow:hidden; }
#finalModal .final-receipt-item { display:flex; align-items:center; justify-content:space-between; padding:14px; gap:16px; font-size:12px; line-height:1.6; }
#finalModal .final-receipt-item b { white-space:nowrap; font-variant-numeric:tabular-nums; }
#finalModal .final-receipt-item--total { background:#f0f8f8; border-top:1px solid #dce9e9 !important; }
#finalModal .final-receipt-item--total b { font-size:18px; color:#237c7c; }
@media(max-width:360px) { #finalModal .modal__box--final { padding:26px 20px; } #finalModal .final-title { font-size:22px; } }
@media(prefers-reduced-motion:reduce) { #finalModal .final-conclude-btn { transition:none; } }
