/* ═══════════════════════════════════════════════════════════════
   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;
}
