:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --navy: #071d49;
  --navy-2: #0b2d68;
  --crediativos-blue: #003b79;
  --onix-yellow: #d8cb1f;
  --teal: #007e83;
  --teal-soft: #e8fbfb;
  --gold: #c49a34;
  --gold-soft: #fff8df;
  --ink: #111827;
  --muted: #667085;
  --line: #d7e0eb;
  --danger: #b42318;
  --danger-soft: #fff3f2;
  --success: #067647;
  --success-soft: #ecfdf3;
  --warning: #93650b;
  --warning-soft: #fffaeb;
  --shadow: 0 20px 50px rgba(7, 29, 73, 0.12);
  --shadow-soft: 0 8px 26px rgba(7, 29, 73, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -8%, rgba(0, 59, 121, 0.12), transparent 32rem),
    radial-gradient(circle at 88% 0%, rgba(216, 203, 31, 0.16), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
a { color: inherit; }
svg { width: 1em; height: 1em; }
svg path, svg circle, svg rect { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.portal-page {
  width: min(100% - 52px, 1480px);
  margin: 0 auto;
  padding: 26px 0 34px;
}

.portal-header {
  display: grid;
  grid-template-columns: minmax(430px, 1.25fr) auto minmax(330px, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 92px;
}
.brand-area,
.security-summary,
.trust-strip article,
.footer-help,
.section-heading,
.option-head,
.due-heading,
.footer-brand-logos {
  display: flex;
  align-items: center;
}
.brand-area { gap: 18px; }
.brand-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: none;
  text-decoration: none;
}
.brand-logo-card img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}
.combined-logo-card {
  width: min(100%, 455px);
  min-height: 78px;
  padding: 6px 0;
}
.combined-logo-card img {
  width: 455px;
  height: auto;
}
.page-title { text-align: center; }
.page-title p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.page-title h1 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.page-title span {
  display: block;
  width: 152px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--onix-yellow), transparent);
}
.security-summary {
  justify-self: end;
  gap: 12px;
  color: var(--navy);
}
.security-summary strong { display: block; }
.security-summary small { display: block; color: var(--muted); margin-top: 2px; }
.security-icon,
.trust-icon,
.summary-icon,
.footer-icon,
.input-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.security-icon {
  width: 48px;
  height: 48px;
  border: 1px solid #bdd4e9;
  border-radius: 17px;
  color: var(--crediativos-blue);
  background: #fff;
  box-shadow: 0 8px 18px rgba(7, 29, 73, .06);
}
.security-icon svg { font-size: 26px; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 18px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow-soft);
}
.trust-strip article {
  gap: 14px;
  padding: 6px 24px;
  border-right: 1px solid var(--line);
}
.trust-strip article:last-child { border-right: 0; }
.trust-strip strong { display: block; color: var(--navy); font-size: 15px; }
.trust-strip small { display: block; color: var(--muted); margin-top: 2px; font-size: 13px; }
.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: var(--crediativos-blue);
  background: #eef5ff;
  border: 1px solid #d5e5f8;
}
.trust-icon svg { font-size: 25px; }

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(430px, 1.25fr);
  gap: 42px;
  align-items: center;
  min-height: 238px;
  padding: 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 50%, rgba(216, 203, 31, 0.18), transparent 18rem),
    linear-gradient(135deg, #041638 0%, #071d49 52%, #092b63 100%);
  box-shadow: var(--shadow);
}
.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(216, 203, 31, 0.35);
  transform: rotate(-37deg);
}
.hero-panel::before {
  width: 340px;
  height: 132px;
  right: -52px;
  top: 20px;
  border-radius: 60px;
}
.hero-panel::after {
  width: 250px;
  height: 116px;
  right: 180px;
  bottom: -54px;
  border-radius: 58px;
  border-color: rgba(0, 126, 131, 0.38);
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero-copy .eyebrow { color: #dcd544; }
.hero-copy h2 {
  max-width: 600px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero-copy h2 span { color: #dcd544; }
.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.55;
}
.search-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 60px rgba(4, 12, 28, 0.25);
}
.search-tabs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}
.search-tab {
  position: relative;
  padding: 0 12px 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}
.search-tab.active { color: var(--navy); }
.search-tab.active::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--crediativos-blue), var(--navy));
}
.input-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid #cfd8e5;
  border-radius: 12px;
  background: #fff;
}
.input-shell:focus-within { border-color: var(--crediativos-blue); box-shadow: 0 0 0 4px rgba(0, 59, 121, 0.12); }
.input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 650;
}
.input-icon { color: var(--muted); }
.input-icon svg { font-size: 22px; }
.primary-action,
.confirm-action,
.secondary-action,
.primary-link,
.back-action {
  min-height: 56px;
  border: 0;
  border-radius: 12px;
  padding: 0 28px;
  background: linear-gradient(135deg, var(--navy), var(--crediativos-blue));
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(7, 29, 73, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.primary-action:hover,
.confirm-action:hover,
.secondary-action:hover,
.primary-link:hover,
.back-action:hover { filter: brightness(1.06); }
.primary-action:disabled,
.confirm-action:disabled { opacity: .72; cursor: not-allowed; }
.privacy-note {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.alert {
  margin: 16px 0;
  padding: 15px 18px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}
.alert.success { color: var(--success); background: var(--success-soft); border-color: #abefc6; }
.alert.danger { color: var(--danger); background: var(--danger-soft); border-color: #fecdca; }
.alert.warning { color: var(--warning); background: var(--warning-soft); border-color: #fedf89; }
.portal-card {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-soft);
}
.section-heading { justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.results-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 500;
}
.count-pill,
.badge,
.discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.count-pill { color: var(--navy); background: #eef4ff; }
.badge { color: var(--navy); background: #eef4ff; text-transform: uppercase; letter-spacing: .04em; }
.badge.blue { color: var(--crediativos-blue); background: #eff6ff; }
.badge.teal { color: var(--teal); background: var(--teal-soft); }
.badge.gold { color: #8f7400; background: var(--gold-soft); }
.discount {
  min-height: 38px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #06959b);
  box-shadow: 0 10px 22px rgba(0, 126, 131, .18);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
}

.muted { color: var(--muted); font-size: 13px; font-weight: 800; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 16px; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(410px, 1fr)); gap: 18px; }
.result-card,
.option-card {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(12, 31, 62, 0.04);
}
.result-card { padding: 20px; }
.result-topline { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.result-card h3 { margin: 16px 0; color: var(--navy); font-size: 20px; font-weight: 650; }
.result-data,
.option-metrics,
.confirmation-grid { display: grid; gap: 10px; }
.result-data { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.result-data div,
.option-metrics div,
.confirmation-grid div {
  padding: 13px;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  background: var(--surface-soft);
}
.result-data span,
.option-metrics span,
.confirmation-grid span,
.summary-block p,
.amount-main span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.result-data strong,
.option-metrics strong,
.confirmation-grid strong { display: block; margin-top: 3px; color: var(--ink); font-weight: 600; word-break: break-word; }
.secondary-action { width: 100%; background: linear-gradient(135deg, var(--crediativos-blue), var(--navy)); }
.portal-actions-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 18px;
}
.back-action {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #cbd8ea;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(7, 29, 73, 0.08);
}
.outline-action {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #cbd8ea;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(7, 29, 73, 0.08);
}
.outline-action:hover { border-color: var(--crediativos-blue); color: var(--crediativos-blue); }
.contract-summary {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.15fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.summary-block { gap: 16px; min-height: 150px; padding: 24px; border-right: 1px solid var(--line); }
.summary-block:last-child { border-right: 0; }
.summary-block p { margin: 0 0 9px; }
.summary-block strong {
  display: block;
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.22;
}
.client-name-highlight {
  font-size: 23px !important;
  font-weight: 680 !important;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.delay-days-value {
  font-size: 24px !important;
  color: var(--teal) !important;
}
.summary-block small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.balance-block strong { color: var(--teal); font-size: 28px; font-weight: 700; }
.summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid #d4e0ef;
  color: var(--crediativos-blue);
  background: #f3f7fc;
}
.summary-icon svg { font-size: 25px; }
.summary-icon.teal { color: var(--teal); background: var(--teal-soft); border-color: #bfe7e8; }
.summary-icon.mini { width: 38px; height: 38px; border-radius: 13px; }
.option-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.98)),
    #fff;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.option-card:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(7, 29, 73, 0.12); }
.option-card.highlight { border-color: rgba(0, 126, 131, 0.68); box-shadow: 0 14px 34px rgba(0, 126, 131, 0.10); }
.option-head { justify-content: space-between; gap: 12px; }
.option-card h3 {
  margin: 0;
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 680;
  letter-spacing: -0.01em;
}
.amount-main {
  padding: 18px;
  border: 1px solid #dce6f1;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  text-align: center;
}
.amount-main > strong { display: block; margin: 5px 0 3px; color: var(--teal); font-size: 34px; letter-spacing: -0.03em; }
.amount-main small { color: var(--muted); font-weight: 500; }
.installment-highlight {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 126, 131, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0, 126, 131, 0.075), rgba(255,255,255,0.92));
  text-align: center;
}
.installment-highlight span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.installment-highlight strong {
  display: block;
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.18;
  font-weight: 760;
  letter-spacing: -0.02em;
}
.option-benefits { display: grid; gap: 10px; }
.savings-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #bfe7e8;
  border-radius: 15px;
  background: var(--teal-soft);
}
.savings-pill.neutral { border-color: #dce6f1; background: #f8fbff; }
.savings-pill span { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.savings-pill strong { color: var(--teal); font-size: 16px; font-weight: 700; text-align: right; }
.savings-pill.neutral strong { color: var(--navy); }
.option-metrics { grid-template-columns: repeat(3, 1fr); }
.due-date-area { margin-top: 2px; padding-top: 16px; border-top: 1px solid var(--line); }
.due-heading { gap: 12px; margin-bottom: 12px; }
.due-heading strong { display: block; color: var(--navy); font-weight: 650; }
.due-heading small { display: block; color: var(--muted); margin-top: 2px; }
.date-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.date-choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}
.date-choice:hover { transform: translateY(-1px); border-color: #b9c7d8; }
.date-choice input { position: absolute; opacity: 0; pointer-events: none; }
.date-choice.selected,
.date-choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 3px rgba(0, 126, 131, 0.12); }
.date-choice.selected::after,
.date-choice:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.date-title { color: var(--navy); font-size: 13px; font-weight: 900; }
.date-choice strong { color: var(--navy); font-size: 15px; font-weight: 650; white-space: nowrap; }
.confirm-action { width: 100%; font-size: 17px; min-height: 58px; }
.terms-note { margin: -4px 0 0; color: var(--muted); text-align: center; font-size: 12px; font-weight: 700; }
.empty-state {
  display: grid;
  gap: 6px;
  padding: 28px;
  border: 1px dashed #b8c6d8;
  border-radius: 18px;
  background: #f8fbff;
  color: var(--muted);
  text-align: center;
}
.empty-state strong { color: var(--navy); }
.confirmation-card { max-width: 920px; margin: 24px auto; text-align: center; }
.confirm-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid #abefc6;
  font-size: 42px;
  font-weight: 900;
}
.confirmation-card h2 { margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; }
.confirmation-card p:not(.eyebrow) { color: var(--muted); font-size: 16px; }
.confirmation-grid { grid-template-columns: repeat(3, 1fr); margin: 22px 0; text-align: left; }
.primary-link { width: min(100%, 320px); }
.portal-footer {
  display: grid;
  grid-template-columns: 1.12fr 1fr 1fr 1.38fr;
  gap: 0;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}
.footer-help,
.footer-brand { min-height: 118px; padding: 20px 24px; border-right: 1px solid var(--line); }
.footer-help { gap: 14px; }
.footer-help:last-child,
.footer-brand { border-right: 0; }
.footer-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: var(--crediativos-blue);
  background: #f0f5fb;
  border: 1px solid #dce6f1;
}
.footer-icon svg { font-size: 24px; }
.footer-help strong { display: block; color: var(--navy); }
.footer-help small,
.footer-brand small { display: block; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.footer-brand { display: flex; flex-direction: column; justify-content: center; gap: 10px; }

.whatsapp-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(18, 140, 126, 0.18);
}
.whatsapp-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.whatsapp-action span {
  font-size: 12px;
  font-weight: 600;
  opacity: .92;
}
.whatsapp-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(18, 140, 126, 0.24);
}

.footer-brand-logos { gap: 16px; }
.footer-combined-logo img {
  width: min(100%, 360px);
  height: auto;
  display: block;
}
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 18, 43, 0.54);
  backdrop-filter: blur(6px);
}
.loading-overlay.active { display: flex; }
.loading-card {
  min-width: 280px;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0,0,0,.24);
  text-align: center;
}
.loading-card strong { display: block; color: var(--navy); margin-top: 12px; }
.loading-card small { display: block; color: var(--muted); margin-top: 4px; }
.loader {
  width: 34px;
  height: 34px;
  display: inline-block;
  border-radius: 999px;
  border: 4px solid #dce6f1;
  border-top-color: var(--crediativos-blue);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.final-actions-row { justify-content: space-between; gap: 12px; align-items: center; }
.final-agreement-card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 30px;
}
.agreement-view-card { text-align: left; }
.agreement-status-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 1px solid #dce7f3;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 6%, rgba(216, 203, 31, .16), transparent 16rem),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 10px 26px rgba(7, 29, 73, .05);
}
.agreement-status-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}
.agreement-status-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid #abefc6;
  font-size: 27px;
  font-weight: 750;
}
.agreement-status-hero h2 {
  margin: 0;
  color: var(--navy);
  font-family: inherit;
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 640;
  letter-spacing: -.02em;
}
.agreement-status-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}
.agreement-state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid #abefc6;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.final-alert { text-align: left; margin-top: 18px; }
.final-alert small { display: block; margin-top: 6px; color: inherit; font-weight: 600; }
.agreement-final-summary {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
  text-align: left;
}
.agreement-summary-item {
  min-height: 106px;
  padding: 17px;
  border: 1px solid #e1e8f2;
  border-radius: 17px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.agreement-number-item {
  border-color: #c7d8ec;
  background: linear-gradient(180deg, #ffffff, #f2f7ff);
}
.payment-value-item {
  border-color: #b8e4e5;
  background: linear-gradient(180deg, #ffffff, #f0fbfb);
}
.agreement-final-summary span,
.parcelas-table th {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.agreement-final-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-family: inherit;
  font-size: 20px;
  font-weight: 640;
  line-height: 1.2;
  word-break: break-word;
}
.agreement-number-item strong { font-size: 23px; letter-spacing: -.01em; }
.payment-value-item strong { color: var(--teal); font-size: 27px; font-weight: 700; }
.unique-boleto-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid #abefc6;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--success-soft), #ffffff);
  text-align: left;
}
.boleto-ready-label {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--success);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.unique-boleto-box strong { display: block; color: var(--navy); font-size: 19px; font-weight: 650; }
.unique-boleto-box small { display: block; color: var(--muted); margin-top: 4px; }
.parcelas-panel {
  margin: 24px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-align: left;
  box-shadow: 0 8px 22px rgba(7, 29, 73, 0.04);
}
.parcelas-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.parcelas-heading h3 {
  margin: 0;
  color: var(--navy);
  font-family: inherit;
  font-size: 25px;
  font-weight: 640;
  letter-spacing: -.01em;
}

.parcelas-list-wrap {
  border: 1px solid #edf1f7;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.parcelas-list-head,
.parcela-row-card {
  display: grid;
  grid-template-columns: 105px minmax(140px, 1fr) minmax(120px, .8fr) minmax(135px, .85fr) minmax(220px, 1.15fr);
  gap: 14px;
  align-items: center;
}
.parcelas-list-head {
  padding: 13px 16px;
  color: var(--muted);
  background: #f8fbff;
  border-bottom: 1px solid #edf1f7;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.parcelas-list { display: grid; }
.parcela-row-card {
  min-height: 78px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f7;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.parcela-row-card:last-child { border-bottom: 0; }
.parcela-row-card:hover { background: #f8fbff; }
.parcela-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.parcela-cell small {
  display: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.parcela-cell strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.2;
}
.parcela-number-cell { justify-content: flex-start; }
.parcela-boleto-cell { justify-content: flex-start; }
.parcelas-table-wrap { overflow-x: auto; border: 1px solid #edf1f7; border-radius: 16px; }
.parcelas-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
.parcelas-table th,
.parcelas-table td { padding: 15px 14px; border-bottom: 1px solid #edf1f7; vertical-align: middle; }
.parcelas-table thead th { background: #f8fbff; }
.parcelas-table tbody tr:last-child td { border-bottom: 0; }
.parcelas-table tbody tr:hover { background: #f8fbff; }
.parcelas-table td { color: var(--ink); font-weight: 500; }
.parcel-number-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--crediativos-blue);
  background: #eef5ff;
  border: 1px solid #d5e5f8;
  font-weight: 750;
}
.parcel-value-cell { color: var(--navy) !important; font-weight: 650 !important; font-size: 16px !important; }
.status-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.status-pill.ok { color: var(--success); background: var(--success-soft); border: 1px solid #abefc6; }
.status-pill.pending { color: var(--warning); background: var(--warning-soft); border: 1px solid #fedf89; }
.download-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), #056b73);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 126, 131, .18);
  white-space: nowrap;
}
.download-action-large { min-height: 46px; padding: 0 20px; font-size: 14px; border-radius: 12px; }
.download-action:hover { filter: brightness(1.06); }
.no-boleto { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); font-size: 13px; font-weight: 600; }

.agreement-end-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.end-session-action {
  min-width: min(100%, 360px);
  min-height: 52px;
  font-size: 15px;
}

@media (max-width: 980px) {
  .parcelas-list-head { display: none; }
  .parcelas-list-wrap { border: 0; background: transparent; overflow: visible; }
  .parcelas-list { gap: 12px; }
  .parcela-row-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 16px;
    min-height: 0;
    border: 1px solid #edf1f7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(7, 29, 73, 0.04);
  }
  .parcela-row-card:last-child { border-bottom: 1px solid #edf1f7; }
  .parcela-cell {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .parcela-cell small { display: block; }
  .parcela-boleto-cell { grid-column: 1 / -1; }
  .parcela-boleto-cell .download-action { width: 100%; }
}
@media (max-width: 1180px) {
  .portal-header { grid-template-columns: 1fr; text-align: center; }
  .brand-area, .security-summary { justify-content: center; }
  .hero-panel { grid-template-columns: 1fr; }
  .contract-summary { grid-template-columns: repeat(2, 1fr); }
  .summary-block:nth-child(2) { border-right: 0; }
  .summary-block:nth-child(1), .summary-block:nth-child(2) { border-bottom: 1px solid var(--line); }
  .portal-footer { grid-template-columns: repeat(2, 1fr); }
  .footer-help:nth-child(2) { border-right: 0; }
  .footer-help:nth-child(1), .footer-help:nth-child(2) { border-bottom: 1px solid var(--line); }
  .agreement-final-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .option-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .portal-page { width: min(100% - 22px, 1480px); padding-top: 16px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .brand-area { flex-wrap: nowrap; gap: 14px; }
  .combined-logo-card { width: min(100%, 380px); min-height: 62px; justify-content: center; }
  .combined-logo-card img { width: 380px; }
  .trust-strip { grid-template-columns: 1fr; padding: 8px; }
  .trust-strip article { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px; }
  .trust-strip article:last-child { border-bottom: 0; }
  .hero-panel { padding: 24px; border-radius: 18px; }
  .search-panel { grid-template-columns: 1fr; padding: 20px; }
  .primary-action { width: 100%; }
  .contract-summary { grid-template-columns: 1fr; }
  .summary-block, .summary-block:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-block:last-child { border-bottom: 0; }
  .result-data, .option-metrics, .confirmation-grid, .date-grid, .agreement-final-summary { grid-template-columns: 1fr; }
  .savings-pill { align-items: flex-start; flex-direction: column; }
  .savings-pill strong { text-align: left; }
  .portal-footer { grid-template-columns: 1fr; }
  .footer-help, .footer-brand { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-brand { border-bottom: 0; }
  .unique-boleto-box, .parcelas-heading, .agreement-status-hero, .agreement-status-main { align-items: flex-start; flex-direction: column; }
  .final-actions-row { flex-direction: column; align-items: stretch; }
  .outline-action, .back-action, .download-action, .end-session-action, .whatsapp-action { width: 100%; }
  .results-heading-actions { width: 100%; justify-content: flex-start; }
  .results-heading-actions .count-pill { width: 100%; }
  .agreement-status-icon { width: 50px; height: 50px; border-radius: 16px; }
  .parcelas-panel { padding: 16px; }
}

@media (max-width: 820px) {
  .parcela-boleto-cell .download-action { width: 100%; }
}

/* Ajuste: identificação obrigatória para acesso aos contratos */
.search-term-field {
  min-width: 0;
}
.portal-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  grid-column: 1 / -1;
}
.contact-field input {
  font-weight: 600;
}

@media (max-width: 760px) {
  .portal-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Refinamento profissional do portal: segurança, clareza e hierarquia visual */
.portal-page {
  width: min(100% - 48px, 1360px);
}

.portal-header {
  padding: 10px 0 4px;
}

.security-summary {
  max-width: 360px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 59, 121, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 10px 28px rgba(7, 29, 73, .06);
}

.security-summary strong,
.trust-strip strong,
.footer-help strong {
  font-weight: 720;
}

.trust-strip {
  margin: 20px 0 22px;
  background: rgba(255, 255, 255, .94);
}

.hero-panel {
  min-height: 330px;
  padding: clamp(28px, 3vw, 46px);
}

.hero-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, .88);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.process-steps div {
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

.process-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 999px;
  color: var(--navy);
  background: #e4dc42;
  font-size: 13px;
  font-weight: 850;
}

.process-steps strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 740;
}

.process-steps small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .76);
  font-size: 12.5px;
  line-height: 1.38;
}

.search-panel {
  align-self: stretch;
  align-content: start;
  border: 1px solid rgba(255, 255, 255, .72);
  border-top: 5px solid #e4dc42;
}

.search-panel-heading {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.search-panel-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid #d5e5f8;
  border-radius: 16px;
  color: var(--crediativos-blue);
  background: #eef5ff;
}

.search-panel-lock svg { font-size: 24px; }

.search-panel-heading strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -.01em;
}

.search-panel-heading small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.search-tab {
  padding-top: 6px;
  font-weight: 780;
}

.input-shell {
  border-color: #cbd8e8;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.input-shell input {
  font-weight: 620;
}

.input-shell input::placeholder {
  color: #7a8797;
}

.primary-action,
.confirm-action,
.secondary-action,
.primary-link,
.back-action {
  font-weight: 780;
  letter-spacing: .01em;
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #d5e5f8;
  border-radius: 13px;
  color: #344054;
  background: #f4f8ff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}

.privacy-note::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 999px;
  color: #fff;
  background: var(--success);
  font-size: 12px;
  font-weight: 900;
}

.secure-mini-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.secure-mini-list span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--crediativos-blue);
  background: #eef5ff;
  border: 1px solid #d5e5f8;
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}

.section-heading h2 {
  font-weight: 520;
  letter-spacing: -.015em;
}

.section-subtitle {
  display: block;
  max-width: 760px;
  margin-top: 7px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 520;
  line-height: 1.48;
}

.results-section,
.negotiation-section,
.final-agreement-card {
  border-color: #dce6f2;
}

.result-grid {
  gap: 18px;
}

.result-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dce6f2;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.result-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--crediativos-blue), var(--teal), var(--onix-yellow));
}

.result-card h3 {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 620;
  letter-spacing: -.01em;
}

.result-data div {
  border-color: #e6edf5;
  background: #f9fbff;
}

.result-data span,
.agreement-summary-item span,
.summary-block p,
.parcela-cell small {
  font-weight: 620;
}

.result-data strong {
  font-weight: 600;
}

.result-security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 12px;
  padding: 10px 12px;
  border: 1px solid #d7f2df;
  border-radius: 12px;
  color: #05603a;
  background: #f0fff5;
  font-size: 12.5px;
  font-weight: 650;
}

.contract-summary {
  border-color: #dce6f2;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.summary-block strong {
  font-weight: 620;
}

.safe-context-banner,
.final-safety-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #d7f2df;
  border-radius: 16px;
  color: #05603a;
  background: linear-gradient(180deg, #f4fff7, #f9fffb);
}

.safe-context-banner > span,
.final-safety-note > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 999px;
  color: #fff;
  background: var(--success);
  font-weight: 900;
}

.safe-context-banner strong,
.final-safety-note strong {
  display: block;
  color: #045e39;
  font-weight: 740;
}

.safe-context-banner small,
.final-safety-note small {
  display: block;
  margin-top: 2px;
  color: #317159;
  font-weight: 520;
  line-height: 1.35;
}

.option-card {
  border: 1px solid #dce6f2;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.option-card.highlight {
  border-color: rgba(0, 126, 131, .42);
  box-shadow: 0 18px 40px rgba(0, 126, 131, .11);
}

.option-card h3 {
  font-weight: 580;
}

.discount {
  border-color: #f1df8c;
  color: #74560b;
  background: linear-gradient(180deg, #fff9d7, #fffdf1);
  font-size: 13px;
  font-weight: 840;
}

.amount-main {
  border: 1px solid #e6edf5;
  border-radius: 18px;
  padding: 16px;
  background: #f9fbff;
}

.installment-highlight {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #eef8ff;
  border: 1px solid #cfe5f7;
}

.installment-highlight strong {
  font-size: clamp(18px, 1.9vw, 24px) !important;
  line-height: 1.18;
}

.due-date-area {
  background: #f8fbff;
  border: 1px solid #e2ebf5;
}

.date-choice {
  background: #fff;
}

.option-footer-security {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #05603a;
  font-size: 12.5px;
  font-weight: 650;
}

.option-footer-security span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--success);
  flex: none;
}

.confirm-action {
  width: 100%;
  margin-top: 10px;
}

.agreement-status-hero {
  background: linear-gradient(135deg, #f5f9ff, #ffffff);
  border: 1px solid #dce6f2;
  border-radius: 20px;
  padding: 18px;
}

.agreement-status-hero h2 {
  font-weight: 520;
}

.agreement-final-summary {
  margin-top: 16px;
}

.agreement-summary-item {
  border-color: #e1ebf5;
  background: #fbfdff;
}

.agreement-summary-item strong {
  font-weight: 620;
}

.payment-value-item strong {
  color: var(--crediativos-blue);
  font-size: clamp(22px, 2.3vw, 31px);
}

.unique-boleto-box,
.parcelas-panel {
  border-color: #dce6f2;
  background: #fbfdff;
}

.parcela-row-card {
  background: #fff;
}

.portal-footer {
  border-color: #dce6f2;
  background: rgba(255,255,255,.94);
}

.whatsapp-action {
  margin-top: 8px;
}

@media (max-width: 1180px) {
  .process-steps { grid-template-columns: 1fr; }
  .process-steps div { min-height: 0; }
}

@media (max-width: 820px) {
  .portal-page { width: min(100% - 22px, 1360px); }
  .search-panel-heading { align-items: flex-start; }
  .secure-mini-list { grid-template-columns: 1fr; }
  .safe-context-banner,
  .final-safety-note { align-items: flex-start; }
}

.agreements-overview-card {
  margin-top: 18px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  border-color: #dce6f2;
}

.agreements-overview-card .section-heading {
  margin-bottom: 0;
}

/* Clareza de parcelas em atraso e parcelas negociadas */
.installments-clarity-panel {
  margin: 18px 0 22px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid #dce6f2;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  box-shadow: 0 14px 32px rgba(11, 44, 86, .06);
}

.installments-clarity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.installments-clarity-head h3 {
  margin: 4px 0 0;
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 560;
  color: var(--crediativos-blue);
}

.installments-clarity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.installments-mini-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #e1ebf5;
  background: #fff;
}

.installments-mini-card.emphasized {
  border-color: #bee0f7;
  background: #f2f9ff;
}

.mini-card-heading strong {
  display: block;
  color: #102a43;
  font-size: 15px;
  font-weight: 620;
}

.mini-card-heading small,
.muted-line {
  display: block;
  margin-top: 4px;
  color: #60758b;
  font-size: 13px;
  line-height: 1.45;
}

.mini-parcel-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.mini-parcel-row {
  display: grid;
  grid-template-columns: minmax(90px, .8fr) minmax(86px, .7fr) minmax(150px, 1.4fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e7eef7;
  background: rgba(255,255,255,.92);
}

.mini-parcel-row span {
  color: #23384f;
  font-size: 13.5px;
  font-weight: 560;
}

.mini-parcel-row strong {
  color: var(--crediativos-blue);
  font-size: 14px;
  font-weight: 660;
}

.mini-parcel-row small {
  color: #60758b;
  font-size: 12.5px;
}

.option-parcel-summary {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fffaf0;
  border: 1px solid #f2d48c;
}

.option-parcel-summary span {
  display: block;
  color: #7a5a13;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.option-parcel-summary strong {
  display: block;
  margin-top: 3px;
  color: #2e3b4e;
  font-size: 15px;
  font-weight: 650;
}

.agreement-negotiated-parcels {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #dce6f2;
  background: #f8fbff;
}

.negotiated-parcel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.negotiated-parcel-tag {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  min-width: 160px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #d7e6f5;
  background: #fff;
  color: #23384f;
  font-weight: 620;
}

.negotiated-parcel-tag small {
  color: #60758b;
  font-size: 12.5px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .installments-clarity-grid { grid-template-columns: 1fr; }
  .installments-clarity-head { flex-direction: column; }
  .mini-parcel-row { grid-template-columns: 1fr; gap: 4px; }
}


/* ==========================================================================
   Portal de Negociação Onix - Página inicial V2 (2026-09-25)
   Escopo: somente a home. As telas de resultado/negociação permanecem intactas.
   ========================================================================== */

.portal-home-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #f4f7fb;
}

.onix-home-container {
  width: min(100% - 48px, 1420px);
  margin: 0 auto;
}

.onix-home-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(7, 29, 73, .09);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 8px 30px rgba(7, 29, 73, .05);
}

.onix-home-header-inner {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(360px, 1.25fr) minmax(270px, .8fr) auto;
  align-items: center;
  gap: 32px;
}

.onix-home-brand {
  display: inline-flex;
  align-items: center;
  width: min(100%, 440px);
  text-decoration: none;
}

.onix-home-brand img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
}

.onix-home-header-title {
  padding-left: 28px;
  border-left: 1px solid #dbe3ee;
}

.onix-home-header-title span,
.onix-home-header-title strong {
  display: block;
}

.onix-home-header-title span {
  color: #071d49;
  font-size: 17px;
  font-weight: 900;
}

.onix-home-header-title strong {
  margin-top: 5px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.onix-home-header-help {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  padding: 10px 14px;
  border: 1px solid #d6e0ee;
  border-radius: 16px;
  color: #071d49;
  background: #fff;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.onix-home-header-help:hover {
  transform: translateY(-1px);
  border-color: #b9cbe0;
  box-shadow: 0 10px 24px rgba(7, 29, 73, .08);
}

.onix-home-header-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #fff;
  background: #007e83;
}

.onix-home-header-help-icon svg { font-size: 22px; }
.onix-home-header-help small, .onix-home-header-help strong { display: block; }
.onix-home-header-help small { color: #7b8798; font-size: 11px; }
.onix-home-header-help strong { margin-top: 1px; font-size: 13px; }

.portal-home-page > .alert {
  width: min(100% - 48px, 1420px);
  margin: 22px auto 0;
}

.onix-home-main { background: #f4f7fb; }

.onix-home-hero {
  position: relative;
  isolation: isolate;
  min-height: 610px;
  padding: 62px 0 70px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 11% 10%, rgba(216, 203, 31, .15), transparent 25rem),
    radial-gradient(circle at 94% 78%, rgba(0, 126, 131, .18), transparent 26rem),
    linear-gradient(125deg, #06183c 0%, #071d49 48%, #0b3471 100%);
}

.onix-home-hero::before {
  content: \"\";
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 430px;
  right: -160px;
  top: -150px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
}

.onix-home-hero::after {
  content: \"\";
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 190px;
  left: -110px;
  bottom: -115px;
  border: 1px solid rgba(216, 203, 31, .18);
  border-radius: 50%;
  transform: rotate(-11deg);
}

.onix-home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(470px, .92fr);
  gap: clamp(44px, 6vw, 92px);
  align-items: center;
}

.onix-home-hero-copy { padding: 14px 0; }

.onix-home-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 22px;
  color: #d9e2f1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}

.onix-home-kicker span {
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: #d8cb1f;
}

.onix-home-hero-copy h1 {
  max-width: 770px;
  margin: 0;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: .99;
  letter-spacing: -.045em;
  font-weight: 850;
}

.onix-home-hero-copy h1 em {
  color: #e6db42;
  font-style: normal;
}

.onix-home-hero-text {
  max-width: 720px;
  margin: 26px 0 0;
  color: #dce5f2;
  font-size: 18px;
  line-height: 1.65;
}

.onix-home-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  color: #eef4fb;
  font-size: 13px;
  font-weight: 700;
}

.onix-home-assurance span { display: inline-flex; align-items: center; gap: 8px; }
.onix-home-assurance b { color: #8dd9c9; }

.onix-home-correspondent-note {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 720px;
  margin-top: 34px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 18px;
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(8px);
}

.onix-home-correspondent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #071d49;
  background: #e6db42;
}

.onix-home-correspondent-icon svg { font-size: 24px; }
.onix-home-correspondent-note strong, .onix-home-correspondent-note small { display: block; }
.onix-home-correspondent-note strong { font-size: 14px; }
.onix-home-correspondent-note small { margin-top: 3px; color: #c8d5e7; line-height: 1.45; }

.onix-search-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 28px;
  color: #111827;
  background: #fff;
  box-shadow: 0 30px 74px rgba(0, 0, 0, .25);
}

.onix-search-card::before {
  content: \"\";
  position: absolute;
  width: 88px;
  height: 4px;
  top: 0;
  left: 34px;
  border-radius: 0 0 999px 999px;
  background: #d8cb1f;
}

.onix-search-card-head { display: flex; gap: 14px; align-items: flex-start; }
.onix-search-card-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #007e83;
  background: #e9f8f7;
}
.onix-search-card-lock svg { font-size: 25px; }
.onix-search-card-head p { margin: 1px 0 4px; color: #007e83; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.onix-search-card-head h2 { margin: 0; color: #071d49; font-size: 27px; letter-spacing: -.02em; }
.onix-search-card-head small { display: block; margin-top: 5px; color: #667085; line-height: 1.45; }

.onix-search-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 5px;
  border: 0;
  border-radius: 16px;
  background: #eef3fa;
}

.onix-search-card .search-tab {
  min-height: 46px;
  padding: 9px 14px;
  border: 0;
  border-radius: 12px;
  color: #667085;
  background: transparent;
  font-weight: 850;
  cursor: pointer;
  box-shadow: none;
}

.onix-search-card .search-tab::after { display: none; }
.onix-search-card .search-tab.active {
  color: #071d49;
  background: #fff;
  box-shadow: 0 5px 14px rgba(7, 29, 73, .08);
}

.onix-field { display: grid; gap: 7px; }
.onix-field-label { color: #344054; font-size: 12px; font-weight: 800; }
.onix-field-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid #ccd7e6;
  border-radius: 14px;
  background: #fbfcfe;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.onix-field-control:focus-within {
  border-color: #6b8fbc;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 59, 121, .08);
}
.onix-field-icon { display: inline-flex; color: #6c7c91; }
.onix-field-icon svg { font-size: 20px; }
.onix-field-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #071d49;
  background: transparent;
  font-size: 15px;
}
.onix-field-control input::placeholder { color: #98a2b3; }

.onix-search-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.onix-home-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  margin-top: 2px;
  border: 0;
  border-radius: 15px;
  color: #071d49;
  background: #e6db42;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(216, 203, 31, .22);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.onix-home-primary-action:hover { transform: translateY(-1px); background: #eee454; box-shadow: 0 14px 30px rgba(216, 203, 31, .28); }
.onix-home-primary-action:disabled { opacity: .72; cursor: wait; transform: none; }
.onix-home-primary-action span { font-size: 22px; line-height: 1; }

.onix-home-privacy { margin: -3px 0 0; color: #7b8798; font-size: 11px; line-height: 1.45; }
.onix-home-secure-row { display: flex; align-items: center; justify-content: center; gap: 7px; color: #667085; font-size: 11px; font-weight: 700; }
.onix-home-secure-row span { display: inline-flex; color: #007e83; }

.onix-home-benefits { padding: 80px 0 86px; background: #f4f7fb; }
.onix-home-section-heading { max-width: 780px; margin: 0 auto 38px; text-align: center; }
.onix-home-section-heading p,
.onix-home-about > .onix-home-container > div:first-child > p,
.onix-home-faq-title > p {
  margin: 0 0 10px;
  color: #007e83;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .18em;
}
.onix-home-section-heading h2,
.onix-home-security-copy h2,
.onix-home-about h2,
.onix-home-faq-title h2 {
  margin: 0;
  color: #071d49;
  font-size: clamp(31px, 3.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.onix-home-section-heading > span { display: block; margin-top: 14px; color: #667085; font-size: 16px; line-height: 1.55; }

.onix-home-benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.onix-home-benefit-grid article {
  display: flex;
  gap: 18px;
  min-height: 172px;
  padding: 27px;
  border: 1px solid #dce4ef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(7, 29, 73, .055);
}
.onix-home-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  color: #071d49;
  background: #f2efbc;
}
.onix-home-benefit-icon svg { font-size: 28px; }
.onix-home-benefit-grid strong { display: block; color: #071d49; font-size: 18px; }
.onix-home-benefit-grid p { margin: 9px 0 0; color: #667085; line-height: 1.6; }

.onix-home-security { padding: 78px 0; background: #fff; }
.onix-home-security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .85fr);
  gap: clamp(45px, 7vw, 100px);
  align-items: center;
}
.onix-home-security-kicker { margin: 0 0 10px; color: #b77908; font-size: 11px; font-weight: 950; letter-spacing: .18em; }
.onix-home-security-copy > p:not(.onix-home-security-kicker) { margin: 20px 0 0; color: #667085; font-size: 16px; line-height: 1.7; }
.onix-home-security-copy ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.onix-home-security-copy li { position: relative; padding-left: 27px; color: #344054; line-height: 1.55; }
.onix-home-security-copy li::before { content: \"✓\"; position: absolute; left: 0; top: 0; color: #007e83; font-weight: 950; }
.onix-home-security-copy a { display: inline-flex; margin-top: 24px; color: #003b79; font-weight: 900; text-decoration: none; }
.onix-home-security-copy a:hover { text-decoration: underline; }

.onix-home-boleto-demo {
  position: relative;
  padding: 28px;
  border: 1px solid #d9e2ee;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 24px 60px rgba(7, 29, 73, .12);
}
.onix-home-boleto-demo::after {
  content: \"CONFERÊNCIA\";
  position: absolute;
  right: -16px;
  top: 42px;
  padding: 7px 16px;
  border-radius: 10px 0 0 10px;
  color: #071d49;
  background: #e6db42;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
}
.onix-home-boleto-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 16px; border-bottom: 2px solid #0d527f; }
.onix-home-boleto-top span, .onix-home-boleto-top strong { display: block; }
.onix-home-boleto-top span { color: #667085; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.onix-home-boleto-top strong { margin-top: 3px; color: #0d527f; font-size: 20px; }
.onix-home-boleto-top b { padding: 7px 11px; border: 1px solid #e6db42; border-radius: 10px; color: #071d49; background: #fffdeb; font-size: 24px; }
.onix-home-barcode { height: 46px; margin: 17px 0; opacity: .9; background: repeating-linear-gradient(90deg, #071d49 0 2px, transparent 2px 5px, #071d49 5px 6px, transparent 6px 10px, #071d49 10px 13px, transparent 13px 16px); }
.onix-home-boleto-lines { display: grid; grid-template-columns: 110px 1fr; gap: 7px 12px; font-size: 12px; }
.onix-home-boleto-lines span { color: #8a96a8; }
.onix-home-boleto-lines strong { color: #475467; overflow-wrap: anywhere; }
.onix-home-boleto-value { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e0e7f0; color: #071d49; }
.onix-home-boleto-value strong { font-size: 24px; }
.onix-home-boleto-demo > small { display: block; margin-top: 15px; color: #98a2b3; line-height: 1.45; }

.onix-home-about { padding: 82px 0; background: #071d49; color: #fff; }
.onix-home-about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 70px; align-items: start; }
.onix-home-about > .onix-home-container > div:first-child > p { color: #e6db42; }
.onix-home-about h2 { color: #fff; }
.onix-home-about > .onix-home-container > div:first-child > span { display: block; margin-top: 20px; max-width: 620px; color: #c8d5e7; font-size: 16px; line-height: 1.7; }
.onix-home-about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.onix-home-about-facts article { min-height: 210px; padding: 23px; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; background: rgba(255,255,255,.055); }
.onix-home-about-facts b { display: block; color: #e6db42; font-size: 13px; }
.onix-home-about-facts strong { display: block; margin-top: 36px; font-size: 17px; }
.onix-home-about-facts small { display: block; margin-top: 8px; color: #bac8da; line-height: 1.55; }

.onix-home-faq { padding: 82px 0 92px; background: #f4f7fb; }
.onix-home-faq-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 70px; align-items: start; }
.onix-home-faq-title > span { display: block; margin-top: 16px; color: #667085; line-height: 1.65; }
.onix-home-faq-list { display: grid; gap: 12px; }
.onix-home-faq-list details { border: 1px solid #dce4ef; border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 7px 22px rgba(7,29,73,.035); }
.onix-home-faq-list summary { position: relative; padding: 20px 52px 20px 22px; color: #071d49; font-weight: 850; cursor: pointer; list-style: none; }
.onix-home-faq-list summary::-webkit-details-marker { display: none; }
.onix-home-faq-list summary::after { content: \"+\"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: #007e83; font-size: 24px; font-weight: 400; }
.onix-home-faq-list details[open] summary::after { content: \"−\"; }
.onix-home-faq-list details p { margin: 0; padding: 0 22px 22px; color: #667085; line-height: 1.65; }

.onix-home-footer { padding: 42px 0 20px; color: #dce5f2; background: #041638; }
.onix-home-footer-grid { display: grid; grid-template-columns: 1.25fr .7fr .8fr; gap: 44px; align-items: start; }
.onix-home-footer-brand img { display: block; width: min(100%, 365px); padding: 10px; border-radius: 12px; background: #fff; }
.onix-home-footer-brand p { max-width: 620px; margin: 16px 0 0; color: #aebdd1; font-size: 12px; line-height: 1.6; }
.onix-home-footer-contact, .onix-home-footer-action { display: grid; gap: 6px; }
.onix-home-footer-contact strong, .onix-home-footer-action strong { color: #fff; margin-bottom: 4px; }
.onix-home-footer-contact span { color: #afbed2; font-size: 13px; }
.onix-home-footer-action a { display: inline-grid; width: max-content; max-width: 100%; margin-top: 6px; padding: 11px 14px; border-radius: 12px; color: #071d49; background: #e6db42; font-size: 12px; font-weight: 900; text-decoration: none; }
.onix-home-footer-action a span { margin-top: 2px; font-size: 10px; opacity: .76; }
.onix-home-footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #8394ac; font-size: 11px; }

@media (max-width: 1180px) {
  .onix-home-header-inner { grid-template-columns: minmax(330px, 1fr) auto; }
  .onix-home-header-title { display: none; }
  .onix-home-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr); gap: 42px; }
  .onix-home-about-grid, .onix-home-faq-grid { gap: 44px; }
  .onix-home-about-facts { grid-template-columns: 1fr; }
  .onix-home-about-facts article { min-height: 0; }
  .onix-home-about-facts strong { margin-top: 18px; }
}

@media (max-width: 960px) {
  .onix-home-container { width: min(100% - 34px, 760px); }
  .portal-home-page > .alert { width: min(100% - 34px, 760px); }
  .onix-home-header-inner { min-height: 92px; grid-template-columns: 1fr auto; gap: 18px; }
  .onix-home-brand { max-width: 360px; }
  .onix-home-hero { padding: 48px 0 56px; }
  .onix-home-hero-grid, .onix-home-security-grid, .onix-home-about-grid, .onix-home-faq-grid { grid-template-columns: 1fr; }
  .onix-home-hero-grid { gap: 38px; }
  .onix-home-hero-copy h1 { max-width: 680px; }
  .onix-home-benefit-grid { grid-template-columns: 1fr; }
  .onix-home-security-grid { gap: 42px; }
  .onix-home-about-facts { grid-template-columns: repeat(3, 1fr); }
  .onix-home-faq-grid { gap: 34px; }
  .onix-home-footer-grid { grid-template-columns: 1fr 1fr; }
  .onix-home-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .onix-home-container { width: min(100% - 24px, 620px); }
  .portal-home-page > .alert { width: min(100% - 24px, 620px); }
  .onix-home-header-inner { min-height: 78px; }
  .onix-home-brand { width: 250px; }
  .onix-home-header-help { min-width: 0; padding: 9px; border: 0; background: #eef7f6; }
  .onix-home-header-help > span:last-child { display: none; }
  .onix-home-header-help-icon { width: 38px; height: 38px; }
  .onix-home-hero { padding: 40px 0 46px; }
  .onix-home-kicker { font-size: 10px; }
  .onix-home-hero-copy h1 { font-size: clamp(22px, 6.5vw, 28px); line-height: 1.08; }
  .onix-home-hero-text { font-size: 16px; }
  .onix-home-assurance { display: grid; gap: 9px; }
  .onix-home-correspondent-note { align-items: flex-start; }
  .onix-search-card { padding: 24px 18px; border-radius: 22px; }
  .onix-search-card-head h2 { font-size: 23px; }
  .onix-search-contact-grid { grid-template-columns: 1fr; }
  .onix-home-benefits, .onix-home-security, .onix-home-about, .onix-home-faq { padding-top: 62px; padding-bottom: 66px; }
  .onix-home-benefit-grid article { padding: 22px; }
  .onix-home-boleto-demo { padding: 22px 18px; }
  .onix-home-boleto-lines { grid-template-columns: 1fr; gap: 3px; }
  .onix-home-boleto-lines strong { margin-bottom: 7px; }
  .onix-home-about-facts { grid-template-columns: 1fr; }
  .onix-home-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .onix-home-footer-brand { grid-column: auto; }
  .onix-home-footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 430px) {
  .onix-home-brand { width: 212px; }
  .onix-search-card-lock { display: none; }
  .onix-home-assurance { font-size: 12px; }
  .onix-home-boleto-demo::after { display: none; }
}


/* ==========================================================================
   Portal de Negociação Onix - Etapa 2 (2026-09-25)
   Cabeçalho consistente + resultado da consulta.
   Mantém rotas, regras, serviços e fluxo de negociação existentes.
   ========================================================================== */

.portal-page:not(.portal-home-page) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #f4f7fb;
}

.portal-page:not(.portal-home-page) > .alert {
  width: min(100% - 48px, 1240px);
  margin: 22px auto 0;
}

.portal-page:not(.portal-home-page) .onix-home-header-inner {
  width: min(100% - 48px, 1240px);
  min-height: 88px;
  grid-template-columns: minmax(300px, .95fr) minmax(260px, .8fr) auto;
}

.portal-page:not(.portal-home-page) .onix-home-brand {
  width: min(100%, 350px);
}

.portal-page:not(.portal-home-page) .onix-home-brand img {
  max-width: 350px;
}

.portal-page:not(.portal-home-page) .onix-home-header-title {
  padding-left: 24px;
}

.onix-results-stage {
  min-height: calc(100vh - 88px);
  padding: 46px 0 72px;
  background:
    radial-gradient(circle at 85% 5%, rgba(230, 219, 66, .12), transparent 24%),
    linear-gradient(180deg, #f8fafc 0, #f4f7fb 46%, #eef3f8 100%);
}

.onix-results-wrap {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
}

.onix-results-back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.onix-results-back {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.onix-results-back:hover {
  color: #003b79;
}

.onix-results-security {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #14704f;
  font-size: 12px;
  font-weight: 800;
}

.onix-results-security::first-letter {
  color: #007e83;
}

.onix-results-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  margin-bottom: 30px;
  padding: 34px 38px;
  border: 1px solid #dce4ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(7, 29, 73, .07);
}

.onix-results-kicker {
  margin: 0 0 8px;
  color: #007e83;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .16em;
}

.onix-results-intro h1 {
  margin: 0;
  color: #071d49;
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.onix-results-intro p:not(.onix-results-kicker) {
  max-width: 760px;
  margin: 12px 0 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.62;
}

.onix-results-intro p strong {
  color: #344054;
}

.onix-results-count {
  display: grid;
  place-items: center;
  min-width: 112px;
  min-height: 92px;
  padding: 14px 18px;
  border-radius: 20px;
  color: #071d49;
  background: #f2efbc;
}

.onix-results-count strong {
  font-size: 32px;
  line-height: 1;
}

.onix-results-count span {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.onix-results-list {
  display: grid;
  gap: 18px;
}

.onix-contract-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 0;
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(7, 29, 73, .055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.onix-contract-card:hover {
  transform: translateY(-2px);
  border-color: #c6d5e6;
  box-shadow: 0 20px 48px rgba(7, 29, 73, .085);
}

.onix-contract-card.has-agreement {
  border-color: #cae6db;
}

.onix-contract-main {
  padding: 27px 30px 28px;
}

.onix-contract-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e7edf4;
}

.onix-contract-product-tag {
  display: inline-flex;
  margin-bottom: 8px;
  color: #007e83;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.onix-contract-heading h2 {
  margin: 0;
  color: #071d49;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -.02em;
}

.onix-contract-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 230px;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.onix-contract-status i {
  font-style: normal;
}

.onix-contract-status.available {
  color: #0b5b8d;
  background: #edf7ff;
  border: 1px solid #d2eafa;
}

.onix-contract-status.agreement {
  color: #086240;
  background: #effaf4;
  border: 1px solid #cae9d8;
}

.onix-contract-data {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.onix-contract-data > div {
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid #e6ecf3;
  border-radius: 14px;
  background: #fbfcfe;
}

.onix-contract-data span,
.onix-contract-data strong {
  display: block;
}

.onix-contract-data span {
  color: #8a96a8;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.onix-contract-data strong {
  margin-top: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.onix-contract-data .onix-contract-balance strong {
  color: #071d49;
  font-size: 17px;
}

.onix-contract-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 27px;
  border-left: 1px solid #e2e9f2;
  background: linear-gradient(160deg, #f8fbff, #f1f6fb);
}

.onix-contract-card.has-agreement .onix-contract-action {
  background: linear-gradient(160deg, #f7fcf9, #edf8f2);
}

.onix-contract-action-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.onix-contract-action-note > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  color: #fff;
  background: #007e83;
}

.onix-contract-action-note svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.onix-contract-action-note small {
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.onix-contract-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  color: #fff;
  background: #071d49;
  box-shadow: 0 10px 22px rgba(7, 29, 73, .15);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease;
}

.onix-contract-button:hover {
  transform: translateY(-1px);
  background: #0a2b68;
}

.onix-contract-button span {
  color: #e6db42;
  font-size: 18px;
}

.onix-results-help {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid #dce4ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
}

.onix-results-help-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #071d49;
  background: #f2efbc;
  font-size: 18px;
  font-weight: 950;
}

.onix-results-help strong,
.onix-results-help small {
  display: block;
}

.onix-results-help strong {
  color: #344054;
  font-size: 13px;
}

.onix-results-help small {
  margin-top: 3px;
  color: #7a8798;
  font-size: 11px;
  line-height: 1.45;
}

.onix-results-help a {
  padding: 10px 13px;
  border-radius: 11px;
  color: #003b79;
  background: #edf5ff;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1040px) {
  .onix-contract-card {
    grid-template-columns: 1fr;
  }

  .onix-contract-action {
    border-top: 1px solid #e2e9f2;
    border-left: 0;
  }

  .onix-contract-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .onix-contract-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    align-items: center;
  }
}

@media (max-width: 760px) {
  .portal-page:not(.portal-home-page) > .alert,
  .portal-page:not(.portal-home-page) .onix-home-header-inner,
  .onix-results-wrap {
    width: min(100% - 24px, 680px);
  }

  .portal-page:not(.portal-home-page) .onix-home-header-inner {
    min-height: 76px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .portal-page:not(.portal-home-page) .onix-home-brand {
    width: 210px;
  }

  .portal-page:not(.portal-home-page) .onix-home-header-title {
    display: none;
  }

  .onix-results-stage {
    padding: 28px 0 48px;
  }

  .onix-results-back-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
  }

  .onix-results-intro {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 20px;
    border-radius: 20px;
  }

  .onix-results-intro h1 {
    font-size: clamp(24px, 7.8vw, 32px);
  }

  .onix-results-count {
    grid-auto-flow: column;
    justify-content: start;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    width: max-content;
    padding: 10px 13px;
    border-radius: 13px;
  }

  .onix-results-count strong {
    font-size: 22px;
  }

  .onix-results-count span {
    margin: 0;
  }

  .onix-contract-main {
    padding: 22px 18px;
  }

  .onix-contract-heading {
    flex-direction: column;
    gap: 12px;
  }

  .onix-contract-data {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .onix-contract-data > div {
    min-height: 0;
  }

  .onix-contract-action {
    display: flex;
    padding: 20px 18px;
  }

  .onix-results-help {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .onix-results-help a {
    grid-column: 1 / -1;
    text-align: center;
  }
}


/* ========================================================================== 
   Portal de Negociação Onix - Etapa 3 (2026-09-25)
   Detalhe do contrato + apresentação das condições de negociação.
   Alteração visual: rotas, names dos inputs e fluxo de confirmação preservados.
   ========================================================================== */

.onix-negotiation-stage {
  min-height: calc(100vh - 88px);
  padding: 38px 0 72px;
  background:
    radial-gradient(circle at 92% 4%, rgba(230, 219, 66, .12), transparent 23%),
    radial-gradient(circle at 6% 35%, rgba(0, 126, 131, .07), transparent 25%),
    linear-gradient(180deg, #f8fafc 0%, #f3f7fb 50%, #eef3f8 100%);
}

.onix-negotiation-wrap {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
}

.onix-negotiation-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.onix-negotiation-back {
  appearance: none;
  border: 0;
  padding: 8px 0;
  color: #344054;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.onix-negotiation-back:hover { color: #003b79; }

.onix-negotiation-secure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #14704f;
  font-size: 12px;
  font-weight: 800;
}

.onix-negotiation-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 34px;
  align-items: stretch;
  margin-bottom: 22px;
  border: 1px solid #dbe5f0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(7, 29, 73, .09);
}

.onix-negotiation-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #e6db42, #007e83 58%, #071d49);
}

.onix-negotiation-hero-copy {
  padding: 36px 38px 34px 42px;
}

.onix-negotiation-kicker {
  margin: 0 0 10px;
  color: #007e83;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.onix-negotiation-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #071d49;
  font-size: clamp(28px, 3.2vw, 43px);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.onix-negotiation-hero-copy > p:not(.onix-negotiation-kicker) {
  max-width: 720px;
  margin: 14px 0 0;
  color: #667085;
  font-size: 14px;
  font-weight: 520;
  line-height: 1.55;
}

.onix-negotiation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.onix-negotiation-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #dfe7f0;
  border-radius: 999px;
  color: #4b5b70;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 650;
}

.onix-negotiation-tags strong { color: #071d49; }

.onix-negotiation-tags .delay {
  color: #9b3f23;
  border-color: #f0d6cc;
  background: #fff7f3;
}

.onix-negotiation-tags .delay strong { color: #b42318; }

.onix-negotiation-balance {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(230, 219, 66, .18), transparent 42%),
    linear-gradient(145deg, #082454, #0b3f79);
}

.onix-negotiation-balance > span {
  color: #c7d7ea;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.onix-negotiation-balance > strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: clamp(30px, 3.3vw, 44px);
  font-weight: 900;
  letter-spacing: -.045em;
}

.onix-negotiation-balance > small {
  display: block;
  margin-top: 5px;
  color: #b8cbe1;
  font-size: 11px;
  line-height: 1.45;
}

.onix-negotiation-creditor {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.onix-negotiation-creditor span,
.onix-negotiation-creditor b,
.onix-negotiation-creditor small { display: block; }

.onix-negotiation-creditor span {
  color: #a9bfd9;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.onix-negotiation-creditor b {
  margin-top: 3px;
  color: #fff;
  font-size: 15px;
}

.onix-negotiation-creditor small {
  margin-top: 4px;
  color: #d3dfed;
  font-size: 11px;
}

.onix-negotiation-alert { margin: 16px 0; }

.onix-offers-section {
  margin-top: 22px;
  padding: 30px;
  border: 1px solid #dbe5f0;
  border-radius: 28px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 46px rgba(7, 29, 73, .07);
}

.onix-offers-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 20px;
}

.onix-offers-heading h2 {
  margin: 0;
  color: #071d49;
  font-size: clamp(25px, 2.8vw, 36px);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.onix-offers-heading > div:first-child > p:last-child {
  max-width: 760px;
  margin: 9px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.onix-offers-count {
  display: grid;
  place-items: center;
  min-width: 92px;
  min-height: 82px;
  padding: 10px 16px;
  border: 1px solid #dbe5f0;
  border-radius: 18px;
  background: #f8fafc;
}

.onix-offers-count strong {
  color: #071d49;
  font-size: 27px;
  line-height: 1;
}

.onix-offers-count span {
  margin-top: 4px;
  color: #667085;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.onix-offers-safe-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #d5eee0;
  border-radius: 16px;
  background: #f4fff8;
}

.onix-offers-safe-note > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 999px;
  color: #fff;
  background: #067647;
  font-weight: 950;
}

.onix-offers-safe-note strong,
.onix-offers-safe-note small { display: block; }
.onix-offers-safe-note strong { color: #075b3c; font-size: 13px; }
.onix-offers-safe-note small { margin-top: 2px; color: #4f7867; font-size: 11px; line-height: 1.45; }

.onix-composition-details {
  margin: 0 0 22px;
  border: 1px solid #e0e7ef;
  border-radius: 16px;
  background: #fbfcfe;
  overflow: hidden;
}

.onix-composition-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 14px 17px;
  cursor: pointer;
  list-style: none;
}

.onix-composition-details summary::-webkit-details-marker { display: none; }
.onix-composition-details summary b { display: block; color: #344054; font-size: 13px; }
.onix-composition-details summary small { display: block; margin-top: 2px; color: #7a8798; font-size: 11px; }
.onix-composition-details summary i { color: #003b79; font-size: 22px; font-style: normal; transition: transform .15s ease; }
.onix-composition-details[open] summary i { transform: rotate(45deg); }

.onix-composition-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 17px 17px;
}

.onix-composition-body > div {
  padding: 14px;
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  background: #fff;
}

.onix-composition-body > div > strong { color: #344054; font-size: 12px; }
.onix-composition-body p { margin: 8px 0 0; color: #667085; font-size: 11px; line-height: 1.45; }

.onix-composition-tags {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.onix-composition-tags span {
  padding: 9px 10px;
  border-radius: 10px;
  color: #5c6878;
  background: #f7f9fc;
  font-size: 10px;
  line-height: 1.35;
}

.onix-composition-tags.emphasized span {
  color: #075b3c;
  background: #f2fbf6;
}

.onix-offers-empty {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border: 1px solid #f0dfb8;
  border-radius: 18px;
  background: #fffaf0;
}

.onix-offers-empty > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 999px;
  color: #7a5407;
  background: #f8df9a;
  font-weight: 950;
}

.onix-offers-empty strong { color: #714f0a; }
.onix-offers-empty p { margin: 5px 0 0; color: #81672f; font-size: 12px; line-height: 1.5; }

.onix-featured-offers { display: grid; gap: 18px; }

.onix-featured-offer {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  min-height: 330px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 0%, rgba(230,219,66,.16), transparent 30%),
    linear-gradient(135deg, #0a376f 0%, #0a4e87 50%, #123c78 100%);
  box-shadow: 0 20px 44px rgba(7, 29, 73, .19);
}

.onix-featured-offer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #e6db42, #f0c64b, #007e83);
}

.onix-featured-offer-main {
  padding: 30px 32px;
  color: #fff;
}

.onix-featured-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  justify-content: space-between;
}

.onix-featured-label,
.onix-featured-discount {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.onix-featured-label { color: #0a376f; background: #e6db42; }
.onix-featured-discount { color: #fff8d3; border: 1px solid rgba(255,248,211,.28); background: rgba(255,255,255,.08); }

.onix-featured-caption {
  margin: 32px 0 5px;
  color: #d6e2f0;
  font-size: 14px;
  font-weight: 650;
}

.onix-featured-value {
  display: block;
  color: #fff;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.055em;
}

.onix-featured-original {
  display: block;
  margin-top: 8px;
  color: #a9bfd8;
  font-size: 13px;
  font-weight: 650;
}

.onix-featured-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 26px;
}

.onix-featured-benefits span {
  min-height: 64px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.07);
}

.onix-featured-benefits small,
.onix-featured-benefits b { display: block; }
.onix-featured-benefits small { color: #b8cbe1; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.onix-featured-benefits b { margin-top: 5px; color: #fff; font-size: 12px; overflow-wrap: anywhere; }

.onix-featured-offer-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border-left: 1px solid #dde6ef;
  background: #fff;
}

.onix-offer-due-heading strong,
.onix-offer-due-heading small { display: block; }
.onix-offer-due-heading strong { color: #071d49; font-size: 14px; }
.onix-offer-due-heading small { margin-top: 3px; color: #7a8798; font-size: 10px; }

.onix-offer-date-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.onix-offer-date {
  min-height: 48px;
  padding: 9px 8px;
  border-radius: 12px;
}

.onix-offer-date strong { font-size: 12px; }

.onix-featured-action,
.onix-installment-action {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.onix-featured-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  margin-top: 16px;
  padding: 0 18px;
  border-radius: 13px;
  color: #071d49;
  background: #e6db42;
  box-shadow: 0 10px 22px rgba(216,203,31,.22);
  font-size: 13px;
}

.onix-featured-action:hover { filter: brightness(.98); transform: translateY(-1px); }

.onix-offer-audit {
  display: block;
  margin-top: 10px;
  color: #47735f;
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
}

.onix-installment-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 14px;
  padding-top: 24px;
  border-top: 1px solid #e1e8f0;
}

.onix-installment-heading h3 {
  margin: 0;
  color: #071d49;
  font-size: 24px;
  letter-spacing: -.025em;
}

.onix-installment-heading > div > span {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-size: 12px;
}

.onix-installment-count {
  flex: none;
  padding: 8px 11px;
  border-radius: 999px;
  color: #31587f;
  background: #edf5ff;
  font-size: 10px;
  font-weight: 900;
}

.onix-installment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.onix-installment-offer {
  overflow: hidden;
  border: 1px solid #dbe5f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(7, 29, 73, .05);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.onix-installment-offer:hover {
  transform: translateY(-2px);
  border-color: #bfd1e5;
  box-shadow: 0 13px 28px rgba(7, 29, 73, .08);
}

.onix-installment-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 17px 8px;
}

.onix-installment-card-head > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.onix-installment-number {
  color: #071d49;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.onix-installment-discount {
  padding: 5px 8px;
  border-radius: 999px;
  color: #6b5708;
  background: #f5efb8;
  font-size: 9px;
  font-weight: 900;
}

.onix-installment-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #003b79;
  background: #edf5ff;
  font-weight: 900;
}

.onix-installment-price { padding: 0 17px 14px; }
.onix-installment-price > span { display: block; color: #667085; font-size: 10px; font-weight: 750; }
.onix-installment-price > strong { display: block; margin-top: 2px; color: #003b79; font-size: 28px; font-weight: 950; letter-spacing: -.035em; }
.onix-installment-price > small { display: block; margin-top: 3px; color: #7a8798; font-size: 10px; }
.onix-installment-price > small b { color: #4b5b70; }

.onix-installment-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 17px 14px;
  overflow: hidden;
  border: 1px solid #e6ebf1;
  border-radius: 11px;
  background: #e6ebf1;
}

.onix-installment-meta span {
  padding: 8px;
  color: #7a8798;
  background: #f8fafc;
  font-size: 9px;
  text-align: center;
}
.onix-installment-meta b { display: block; margin-top: 2px; color: #445164; font-size: 10px; }

.onix-installment-details {
  border-top: 1px solid #e3e9f0;
  background: #fbfcfe;
}

.onix-installment-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 17px;
  color: #003b79;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.onix-installment-details > summary::-webkit-details-marker { display: none; }
.onix-installment-details[open] > summary { border-bottom: 1px solid #e3e9f0; background: #f3f8fe; }

.onix-installment-details-body { padding: 15px 17px 17px; }
.onix-offer-date-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.onix-installment-composition {
  margin: 12px 0 0;
  color: #667085;
  font-size: 10px;
  line-height: 1.4;
}
.onix-installment-composition strong { color: #344054; }

.onix-installment-action {
  width: 100%;
  min-height: 46px;
  margin-top: 13px;
  border-radius: 11px;
  color: #fff;
  background: #071d49;
  font-size: 11px;
}
.onix-installment-action:hover { background: #0a2f6f; }

.onix-offers-footnote {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 13px 15px;
  border-radius: 14px;
  color: #596779;
  background: #f7f9fc;
}

.onix-offers-footnote > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 999px;
  color: #003b79;
  background: #e5effa;
  font-family: Georgia, serif;
  font-weight: 900;
}
.onix-offers-footnote p { margin: 2px 0 0; font-size: 10.5px; line-height: 1.5; }

/* Mantém as telas de acordo/boletos legíveis dentro do layout full-width da Etapa 2. */
.portal-page:not(.portal-home-page) > .portal-card,
.portal-page:not(.portal-home-page) > .portal-actions-row {
  width: min(100% - 48px, 1240px);
  margin-left: auto;
  margin-right: auto;
}

.portal-page:not(.portal-home-page) > .portal-card { margin-top: 22px; margin-bottom: 22px; }
.portal-page:not(.portal-home-page) > .portal-actions-row { margin-top: 22px; }

@media (max-width: 1080px) {
  .onix-featured-offer { grid-template-columns: 1fr; }
  .onix-featured-offer-action { border-top: 1px solid #dde6ef; border-left: 0; }
  .onix-installment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .onix-negotiation-stage { padding: 26px 0 48px; }
  .onix-negotiation-wrap { width: min(100% - 24px, 680px); }

  .onix-negotiation-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
  }

  .onix-negotiation-hero {
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 20px;
  }

  .onix-negotiation-hero-copy { padding: 25px 20px 23px 24px; }
  .onix-negotiation-hero-copy h1 { font-size: clamp(23px, 7vw, 30px); }
  .onix-negotiation-hero-copy > p:not(.onix-negotiation-kicker) { font-size: 12px; }
  .onix-negotiation-tags { margin-top: 18px; }
  .onix-negotiation-tags span { min-height: 32px; font-size: 10.5px; }

  .onix-negotiation-balance { padding: 23px 20px; }
  .onix-negotiation-balance > strong { font-size: clamp(30px, 10vw, 40px); }
  .onix-negotiation-creditor { margin-top: 17px; padding-top: 14px; }

  .onix-offers-section { padding: 22px 16px; border-radius: 20px; }
  .onix-offers-heading { grid-template-columns: 1fr; gap: 14px; }
  .onix-offers-heading h2 { font-size: 25px; }
  .onix-offers-count { grid-auto-flow: column; justify-content: start; gap: 7px; min-width: 0; min-height: 0; width: max-content; padding: 8px 11px; border-radius: 12px; }
  .onix-offers-count strong { font-size: 20px; }
  .onix-offers-count span { margin: 0; }

  .onix-composition-body { grid-template-columns: 1fr; }

  .onix-featured-offer { min-height: 0; border-radius: 18px; }
  .onix-featured-offer-main { padding: 24px 20px; }
  .onix-featured-caption { margin-top: 24px; }
  .onix-featured-value { font-size: clamp(38px, 13vw, 50px); }
  .onix-featured-benefits { grid-template-columns: 1fr; }
  .onix-featured-benefits span { min-height: 0; }
  .onix-featured-offer-action { padding: 21px 18px; }
  .onix-offer-date-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .onix-installment-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .onix-installment-heading h3 { font-size: 21px; }
  .onix-installment-grid { grid-template-columns: 1fr; }
  .onix-installment-price > strong { font-size: 26px; }

  .portal-page:not(.portal-home-page) > .portal-card,
  .portal-page:not(.portal-home-page) > .portal-actions-row {
    width: min(100% - 24px, 680px);
  }
}

@media (max-width: 420px) {
  .onix-negotiation-secure { font-size: 10.5px; }
  .onix-negotiation-hero-copy h1 { font-size: 22px; line-height: 1.12; }
  .onix-negotiation-tags { display: grid; grid-template-columns: 1fr; }
  .onix-negotiation-tags span { justify-content: center; }
  .onix-offers-section { padding: 20px 13px; }
  .onix-featured-value { font-size: 38px; }
  .onix-offer-date-grid,
  .onix-offer-date-grid.compact { grid-template-columns: 1fr 1fr; }
  .onix-installment-meta { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ETAPA 4 — CONFIRMAÇÃO EM MODAL + ACORDO/BOLETOS ONIX
   ========================================================================== */

.onix-offer-simple-action {
  justify-content: center;
  gap: 18px;
}

.onix-offer-choice-copy {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border: 1px solid #e0e8f1;
  border-radius: 14px;
  background: #f8fbfe;
}

.onix-offer-choice-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 999px;
  color: #075b3c;
  background: #dcf4e7;
  font-size: 13px;
  font-weight: 950;
}

.onix-offer-choice-copy strong,
.onix-offer-choice-copy small { display: block; }
.onix-offer-choice-copy strong { color: #25364c; font-size: 12px; }
.onix-offer-choice-copy small { margin-top: 3px; color: #6d7b8d; font-size: 10px; line-height: 1.45; }

.onix-installment-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 34px);
  min-height: 48px;
  margin: 0 17px 17px;
  padding: 0 15px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #071d49;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.onix-installment-select:hover { background: #0a2f6f; }
.onix-installment-arrow { transform: none; }

/* Modal */
.onix-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.onix-confirm-modal.active { display: flex; }

.onix-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 51, .72);
  backdrop-filter: blur(5px);
}

.onix-confirm-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 28px 30px 30px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(5, 19, 43, .34);
}

.onix-confirm-close {
  position: absolute;
  top: 17px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  color: #667085;
  background: #f3f6fa;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.onix-confirm-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 45px 26px 0;
}

.onix-confirm-progress span {
  height: 6px;
  border-radius: 999px;
  background: #e1e8f1;
  transition: background .15s ease;
}

.onix-confirm-progress span.active {
  background: linear-gradient(90deg, #d7cb27, #e6db42);
}

.onix-confirm-step { display: none; }
.onix-confirm-step.active { display: block; }

.onix-confirm-kicker {
  margin: 0 0 8px;
  color: #0d5f88;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .13em;
}

.onix-confirm-step h3 {
  margin: 0;
  color: #071d49;
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.onix-confirm-description {
  margin: 8px 0 20px;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.onix-confirm-selected {
  padding: 20px;
  border: 1px solid #dce6f2;
  border-radius: 17px;
  background: linear-gradient(145deg, #f8fbff, #f3f7fc);
}

.onix-confirm-selected > span,
.onix-confirm-selected > strong,
.onix-confirm-selected > small { display: block; }

.onix-confirm-selected > span {
  color: #7a8798;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.onix-confirm-selected > strong {
  margin-top: 6px;
  color: #00568b;
  font-size: 22px;
  font-weight: 950;
}

.onix-confirm-selected > small {
  margin-top: 5px;
  color: #6b5708;
  font-size: 11px;
  font-weight: 850;
}

.onix-confirm-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.onix-confirm-summary > div {
  padding: 13px 14px;
  border: 1px solid #e3eaf2;
  border-radius: 13px;
}

.onix-confirm-summary span,
.onix-confirm-summary strong { display: block; }
.onix-confirm-summary span { color: #7a8798; font-size: 9px; }
.onix-confirm-summary strong { margin-top: 4px; color: #344054; font-size: 12px; }

.onix-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 22px;
}

.onix-confirm-actions button {
  min-height: 54px;
  border-radius: 13px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.onix-confirm-secondary {
  border: 1px solid #d8e1eb;
  color: #28415f;
  background: #fff;
}

.onix-confirm-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  color: #071d49;
  background: #e6db42;
  box-shadow: 0 10px 22px rgba(216,203,31,.2);
}

.onix-confirm-dates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.onix-confirm-date {
  min-height: 70px;
  padding: 10px;
  border: 1px solid #d9e3ee;
  border-radius: 13px;
  color: #31506f;
  background: #fff;
  cursor: pointer;
}

.onix-confirm-date small,
.onix-confirm-date strong { display: block; }
.onix-confirm-date small { color: #8a96a6; font-size: 8px; text-transform: uppercase; }
.onix-confirm-date strong { margin-top: 4px; font-size: 14px; }

.onix-confirm-date.selected {
  border-color: #d1bd16;
  box-shadow: 0 0 0 2px rgba(230,219,66,.28);
  color: #071d49;
  background: #fffef4;
}

.onix-confirm-safety {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 14px;
  border-radius: 13px;
  color: #476252;
  background: #f0faf4;
}

.onix-confirm-safety > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 999px;
  color: #075b3c;
  background: #d7f0e1;
  font-weight: 950;
}

.onix-confirm-safety p { margin: 1px 0 0; font-size: 10.5px; line-height: 1.45; }
.onix-confirm-safety strong { color: #075b3c; }

/* Tela final */
.onix-agreement-stage {
  padding: 34px 0 70px;
  background:
    radial-gradient(circle at 82% 0%, rgba(230,219,66,.13), transparent 26%),
    linear-gradient(180deg, #eef4fa 0%, #f8fafc 42%, #eef3f8 100%);
}

.onix-agreement-wrap {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
}

.onix-agreement-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.onix-agreement-nav a {
  color: #31587f;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.onix-agreement-nav span {
  color: #51705f;
  font-size: 10px;
  font-weight: 750;
}

.onix-agreement-overview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px 26px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #071d49, #0b5688);
  box-shadow: 0 16px 38px rgba(7,29,73,.15);
}

.onix-agreement-kicker {
  margin: 0 0 7px;
  color: #0b668f;
  font-size: 9.5px;
  font-weight: 950;
  letter-spacing: .13em;
}

.onix-agreement-overview .onix-agreement-kicker { color: #e6db42; }
.onix-agreement-overview h1 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.onix-agreement-overview p:last-child { margin: 7px 0 0; color: #c8d8e9; font-size: 11px; }
.onix-agreement-overview > strong { font-size: 42px; }

.onix-agreement-card {
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #dce5ee;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(7,29,73,.09);
}

.onix-agreement-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 17px;
  align-items: center;
  padding: 28px 30px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(230,219,66,.16), transparent 30%),
    linear-gradient(135deg, #071d49 0%, #0b4f82 100%);
}

.onix-agreement-success-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #063e35;
  background: #e6db42;
  font-size: 23px;
  font-weight: 950;
}

.onix-agreement-hero .onix-agreement-kicker { color: #e6db42; }
.onix-agreement-hero-copy h1 { margin: 0; font-size: 29px; letter-spacing: -.035em; }
.onix-agreement-hero-copy > p:last-child { margin: 6px 0 0; color: #cfdeec; font-size: 11.5px; line-height: 1.5; }

.onix-agreement-state {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.09);
  font-size: 9.5px;
  font-weight: 900;
}

.onix-agreement-number {
  margin: 24px 30px 0;
  padding: 17px 19px;
  border: 1px solid #e0e7ef;
  border-radius: 15px;
  background: #f8fbfe;
}

.onix-agreement-number span,
.onix-agreement-number strong,
.onix-agreement-number small { display: block; }

.onix-agreement-number span { color: #7a8798; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.onix-agreement-number strong { margin-top: 4px; color: #00568b; font-size: 23px; letter-spacing: .01em; }
.onix-agreement-number small { margin-top: 4px; color: #7a8798; font-size: 9.5px; }

.onix-agreement-warning {
  display: flex;
  gap: 11px;
  margin: 16px 30px 0;
  padding: 14px;
  border: 1px solid #f0dfb8;
  border-radius: 14px;
  color: #775a17;
  background: #fffaf0;
}

.onix-agreement-warning > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: none;
  border-radius: 999px;
  background: #f8df9a;
  font-weight: 950;
}

.onix-agreement-warning strong,
.onix-agreement-warning p,
.onix-agreement-warning small { display: block; }
.onix-agreement-warning p { margin: 3px 0; font-size: 10px; }
.onix-agreement-warning small { margin-top: 3px; font-size: 9px; }

.onix-agreement-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 30px 0;
}

.onix-agreement-summary-grid > div {
  padding: 14px;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
}

.onix-agreement-summary-grid span,
.onix-agreement-summary-grid strong { display: block; }
.onix-agreement-summary-grid span { color: #7a8798; font-size: 9px; }
.onix-agreement-summary-grid strong { margin-top: 5px; color: #25364c; font-size: 13px; }

.onix-agreement-primary-boleto {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 18px 30px 0;
  padding: 18px;
  border: 1px solid #d7e7dd;
  border-radius: 17px;
  background: linear-gradient(135deg, #f1fbf5, #fbfefd);
}

.onix-agreement-boleto-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #075b3c;
  background: #d9f0e2;
  font-size: 20px;
}

.onix-agreement-primary-boleto span,
.onix-agreement-primary-boleto strong,
.onix-agreement-primary-boleto small { display: block; }

.onix-agreement-primary-boleto > div:nth-child(2) > span {
  color: #38755b;
  font-size: 8.5px;
  font-weight: 950;
  letter-spacing: .08em;
}

.onix-agreement-primary-boleto > div:nth-child(2) > strong { margin-top: 3px; color: #154a36; font-size: 14px; }
.onix-agreement-primary-boleto > div:nth-child(2) > small { margin-top: 2px; color: #648070; font-size: 9.5px; }

.onix-agreement-primary-boleto > a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  padding: 0 15px;
  border-radius: 11px;
  color: #fff;
  background: #075b3c;
  font-size: 10.5px;
  font-weight: 900;
  text-decoration: none;
}

.onix-agreement-processing {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 18px 30px 0;
  padding: 17px;
  border-radius: 15px;
  color: #526070;
  background: #f6f8fb;
}

.onix-agreement-processing .loader { width: 24px; height: 24px; border-width: 3px; }
.onix-agreement-processing strong,
.onix-agreement-processing small { display: block; }
.onix-agreement-processing strong { color: #344054; font-size: 12px; }
.onix-agreement-processing small { margin-top: 3px; font-size: 9.5px; line-height: 1.45; }

.onix-agreement-composition {
  margin: 18px 30px 0;
  border: 1px solid #e1e8f0;
  border-radius: 15px;
  overflow: hidden;
}

.onix-agreement-composition summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 60px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.onix-agreement-composition summary::-webkit-details-marker { display: none; }
.onix-agreement-composition summary strong,
.onix-agreement-composition summary small { display: block; }
.onix-agreement-composition summary strong { color: #344054; font-size: 11px; }
.onix-agreement-composition summary small { margin-top: 3px; color: #7a8798; font-size: 9px; }
.onix-agreement-composition summary > b { color: #00568b; font-size: 20px; }
.onix-agreement-composition[open] summary > b { transform: rotate(45deg); }

.onix-agreement-composition > div {
  display: grid;
  gap: 7px;
  padding: 0 16px 16px;
}

.onix-agreement-composition > div > span {
  padding: 9px 10px;
  border-radius: 10px;
  color: #5f6d7e;
  background: #f7f9fc;
  font-size: 9.5px;
}

.onix-agreement-installments {
  margin: 24px 30px 0;
  padding-top: 22px;
  border-top: 1px solid #e3e9f0;
}

.onix-agreement-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.onix-agreement-section-heading h2 {
  margin: 0;
  color: #071d49;
  font-size: 23px;
  letter-spacing: -.03em;
}

.onix-agreement-section-heading > div > span {
  display: block;
  margin-top: 4px;
  color: #7a8798;
  font-size: 10.5px;
}

.onix-agreement-section-heading > b {
  padding: 7px 10px;
  border-radius: 999px;
  color: #31587f;
  background: #edf5ff;
  font-size: 9px;
}

.onix-agreement-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.onix-agreement-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr 1.1fr 150px;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 11px 13px;
  border: 1px solid #e1e7ee;
  border-radius: 13px;
  background: #fff;
}

.onix-agreement-row.available { border-left: 4px solid #2f9567; }
.onix-agreement-row.pending { border-left: 4px solid #d4af37; }

.onix-agreement-row small,
.onix-agreement-row strong { display: block; }
.onix-agreement-row small { color: #8994a3; font-size: 8px; text-transform: uppercase; }
.onix-agreement-row strong { margin-top: 3px; color: #344054; font-size: 10.5px; }

.onix-agreement-row-number strong {
  color: #00568b;
  font-size: 16px;
}

.onix-agreement-row-status {
  display: inline-flex;
  max-width: 100%;
  margin-top: 3px;
  padding: 5px 7px;
  border-radius: 999px;
  color: #526070;
  background: #f0f3f7;
  font-size: 8px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.onix-agreement-row-action { text-align: right; }
.onix-agreement-row-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 11px;
  border-radius: 9px;
  color: #fff;
  background: #0b5688;
  font-size: 9.5px;
  font-weight: 850;
  text-decoration: none;
}

.onix-agreement-row-action > span {
  color: #8a6b1d;
  font-size: 9px;
  font-weight: 800;
}

.onix-agreement-empty {
  margin-top: 14px;
  padding: 18px;
  border-radius: 13px;
  background: #f7f9fc;
}
.onix-agreement-empty strong,
.onix-agreement-empty span { display: block; }
.onix-agreement-empty strong { color: #344054; font-size: 11px; }
.onix-agreement-empty span { margin-top: 4px; color: #7a8798; font-size: 9.5px; }

.onix-agreement-security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 30px 0;
  padding: 13px 15px;
  border-radius: 13px;
  color: #4e6f5c;
  background: #f2faf5;
}

.onix-agreement-security-note > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 999px;
  color: #075b3c;
  background: #d9f0e2;
  font-weight: 950;
}

.onix-agreement-security-note strong,
.onix-agreement-security-note small { display: block; }
.onix-agreement-security-note strong { color: #075b3c; font-size: 10px; }
.onix-agreement-security-note small { margin-top: 2px; font-size: 9px; line-height: 1.45; }

.onix-agreement-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px 30px 28px;
}

.onix-agreement-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 10px;
  color: #fff;
  background: #071d49;
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
}

.onix-agreement-actions a.help {
  color: #31587f;
  border: 1px solid #d9e3ed;
  background: #fff;
}

body.onix-modal-open { overflow: hidden; }

@media (max-width: 900px) {
  .onix-agreement-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onix-agreement-row { grid-template-columns: 70px 1fr 1fr; }
  .onix-agreement-row > div:nth-child(4),
  .onix-agreement-row > div:nth-child(5) { grid-column: auto; }
  .onix-agreement-row-action { text-align: left; }
}

@media (max-width: 760px) {
  .onix-confirm-dialog { padding: 24px 18px 20px; border-radius: 19px; }
  .onix-confirm-step h3 { font-size: 23px; }
  .onix-confirm-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onix-confirm-actions { grid-template-columns: 1fr; }
  .onix-confirm-secondary { order: 2; }
  .onix-confirm-primary { order: 1; }

  .onix-agreement-stage { padding: 24px 0 48px; }
  .onix-agreement-wrap { width: min(100% - 24px, 680px); }
  .onix-agreement-nav { align-items: flex-start; flex-direction: column; gap: 6px; }
  .onix-agreement-overview { grid-template-columns: 1fr; }
  .onix-agreement-overview > strong { font-size: 30px; }

  .onix-agreement-card { border-radius: 19px; }
  .onix-agreement-hero { grid-template-columns: auto 1fr; padding: 22px 18px; }
  .onix-agreement-state { grid-column: 1 / -1; width: max-content; }
  .onix-agreement-success-icon { width: 43px; height: 43px; font-size: 18px; }
  .onix-agreement-hero-copy h1 { font-size: 22px; }

  .onix-agreement-number,
  .onix-agreement-warning,
  .onix-agreement-summary-grid,
  .onix-agreement-primary-boleto,
  .onix-agreement-processing,
  .onix-agreement-composition,
  .onix-agreement-installments,
  .onix-agreement-security-note {
    margin-left: 16px;
    margin-right: 16px;
  }

  .onix-agreement-summary-grid { grid-template-columns: 1fr 1fr; }
  .onix-agreement-primary-boleto { grid-template-columns: auto 1fr; }
  .onix-agreement-primary-boleto > a { grid-column: 1 / -1; width: 100%; justify-content: center; }

  .onix-agreement-section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .onix-agreement-section-heading h2 { font-size: 20px; }

  .onix-agreement-row {
    grid-template-columns: 68px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .onix-agreement-row > div:nth-child(3),
  .onix-agreement-row > div:nth-child(4),
  .onix-agreement-row > div:nth-child(5) {
    grid-column: 2;
  }

  .onix-agreement-row-action a { width: 100%; }
  .onix-agreement-actions { flex-direction: column; padding: 18px 16px 22px; }
  .onix-agreement-actions a { width: 100%; }
}

@media (max-width: 420px) {
  .onix-confirm-modal { padding: 12px; }
  .onix-confirm-dates { grid-template-columns: 1fr 1fr; gap: 8px; }
  .onix-confirm-date { min-height: 62px; }
  .onix-confirm-summary { grid-template-columns: 1fr; }
  .onix-agreement-summary-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ETAPA 4.1 — REFINOS VISUAIS
   - mensagens do fluxo integradas ao design
   - contrato/atraso mais visíveis e alinhados
   - parcelamentos em lista horizontal inspirada na experiência do credor
   ========================================================================== */

/* Mensagem de retorno da busca */
.portal-page:not(.portal-home-page) > .alert {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  width: min(100% - 48px, 1240px);
  margin: 22px auto 0;
  padding: 13px 20px 13px 58px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
  box-shadow: 0 10px 26px rgba(7, 29, 73, .055);
}

.portal-page:not(.portal-home-page) > .alert::before {
  position: absolute;
  left: 18px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 950;
}

.portal-page:not(.portal-home-page) > .alert.success {
  color: #185c52;
  border-color: #cfe7e1;
  background: linear-gradient(90deg, #f4fbf9 0%, #ffffff 72%);
}

.portal-page:not(.portal-home-page) > .alert.success::before {
  content: "✓";
  color: #fff;
  background: #087f76;
}

.portal-page:not(.portal-home-page) > .alert.danger {
  color: #8e2f2a;
  border-color: #efd3d0;
  background: linear-gradient(90deg, #fff7f6 0%, #ffffff 72%);
}

.portal-page:not(.portal-home-page) > .alert.danger::before {
  content: "!";
  color: #fff;
  background: #b5473f;
}

/* Produto / contrato / atraso */
.onix-negotiation-tags {
  display: grid;
  grid-template-columns: minmax(170px, max-content) minmax(235px, max-content) minmax(145px, max-content);
  justify-content: start;
  gap: 10px;
  margin-top: 24px;
}

.onix-negotiation-tags span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid #dce6f0;
  border-radius: 14px;
  color: #344054;
  background: #f8fbfe;
}

.onix-negotiation-tags span small {
  display: block;
  margin-bottom: 4px;
  color: #8793a4;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.onix-negotiation-tags span strong {
  display: block;
  color: #071d49;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.onix-negotiation-tags .contract {
  border-color: #d2e0ef;
  background: #f4f9fe;
}

.onix-negotiation-tags .contract strong {
  color: #00568b;
  font-size: 13px;
  letter-spacing: .01em;
}

.onix-negotiation-tags .delay {
  color: #8f3b28;
  border-color: #f0d1c7;
  background: #fff6f2;
}

.onix-negotiation-tags .delay small { color: #a9604d; }

.onix-negotiation-tags .delay strong {
  color: #b42318;
  font-size: 13px;
}

/* Parcelamentos em lista */
.onix-installment-heading {
  align-items: center;
  margin-bottom: 16px;
}

.onix-installment-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.onix-installment-list .onix-installment-offer {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.onix-installment-list .onix-installment-offer:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.onix-installment-row-button {
  appearance: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  width: 100%;
  min-height: 94px;
  padding: 17px 20px;
  border: 1px solid #d7e2ee;
  border-radius: 16px;
  color: #071d49;
  background: #fff;
  box-shadow: 0 5px 15px rgba(7, 29, 73, .025);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease;
}

.onix-installment-row-button:hover {
  transform: translateY(-1px);
  border-color: #acc6df;
  background: #fbfdff;
  box-shadow: 0 9px 23px rgba(7, 29, 73, .065);
}

.onix-installment-row-copy {
  display: block;
  min-width: 0;
}

.onix-installment-row-copy > strong {
  display: block;
  color: #00568b;
  font-size: 21px;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.onix-installment-row-copy > strong small {
  color: #58697c;
  font-size: 12px;
  font-weight: 750;
}

.onix-installment-row-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: #728094;
  font-size: 10px;
  font-weight: 650;
}

.onix-installment-row-sub b {
  color: #6f5b08;
  font-weight: 850;
}

.onix-installment-row-sub i {
  color: #b4bfcc;
  font-style: normal;
}

.onix-installment-row-composition {
  display: block;
  margin-top: 7px;
  color: #8a95a4;
  font-size: 9px;
}

.onix-installment-row-composition strong {
  color: #596779;
  font-weight: 850;
}

.onix-installment-row-side {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 15px;
  align-items: center;
  justify-items: end;
  min-width: 126px;
}

.onix-installment-row-side small {
  grid-column: 1;
  color: #8a95a4;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.onix-installment-row-side b {
  grid-column: 1;
  color: #257052;
  font-size: 10px;
  font-weight: 900;
}

.onix-installment-row-side > i {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #00568b;
  background: #edf5fc;
  font-size: 17px;
  font-style: normal;
  font-weight: 950;
  transition: background .15s ease, transform .15s ease;
}

.onix-installment-row-button:hover .onix-installment-row-side > i {
  transform: translateX(2px);
  background: #e1effb;
}

@media (max-width: 760px) {
  .portal-page:not(.portal-home-page) > .alert {
    width: min(100% - 24px, 620px);
    min-height: 54px;
    margin-top: 14px;
    padding: 11px 14px 11px 49px;
    border-radius: 14px;
    font-size: 11px;
  }

  .portal-page:not(.portal-home-page) > .alert::before {
    left: 13px;
    width: 25px;
    height: 25px;
  }

  .onix-negotiation-tags {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .onix-negotiation-tags .product {
    grid-column: 1 / -1;
  }

  .onix-negotiation-tags span {
    min-height: 55px;
    padding: 9px 11px;
  }

  .onix-negotiation-tags .contract strong,
  .onix-negotiation-tags .delay strong {
    font-size: 11.5px;
  }

  .onix-installment-heading {
    align-items: flex-start;
  }

  .onix-installment-row-button {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 88px;
    padding: 14px;
    border-radius: 14px;
  }

  .onix-installment-row-copy > strong {
    font-size: 18px;
  }

  .onix-installment-row-sub {
    gap: 5px;
    font-size: 9px;
  }

  .onix-installment-row-sub span:last-child,
  .onix-installment-row-sub i:last-of-type {
    display: none;
  }

  .onix-installment-row-side {
    min-width: 42px;
    grid-template-columns: 1fr;
  }

  .onix-installment-row-side small,
  .onix-installment-row-side b {
    display: none;
  }

  .onix-installment-row-side > i {
    grid-column: 1;
    grid-row: 1;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 430px) {
  .onix-negotiation-tags {
    grid-template-columns: 1fr;
  }

  .onix-negotiation-tags .product {
    grid-column: auto;
  }

  .onix-installment-row-copy > strong {
    font-size: 17px;
  }

  .onix-installment-row-composition {
    font-size: 8.5px;
  }
}

/* ==========================================================================
   ACORDO ATIVO — PARCELAS E BOLETOS ANTES DAS NOVAS OFERTAS
   ========================================================================== */

.onix-agreement-stage.embedded {
  padding: 20px 0 30px;
  background: transparent;
}

.onix-agreement-stage.embedded .onix-agreement-wrap {
  width: 100%;
  margin: 0;
}

.onix-agreement-embedded-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
  padding: 0 2px;
}

.onix-agreement-embedded-intro h2 {
  margin: 0;
  color: #071d49;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.onix-agreement-embedded-intro > div > span {
  display: block;
  margin-top: 4px;
  color: #718096;
  font-size: 10.5px;
}

.onix-agreement-embedded-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #cfe8dc;
  border-radius: 999px;
  color: #176244;
  background: #eef9f3;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.onix-agreement-stage.embedded .onix-agreement-card {
  margin-bottom: 0;
  border-color: #d5e2ec;
  box-shadow: 0 14px 34px rgba(7, 29, 73, .075);
}

.onix-agreement-stage.embedded .onix-agreement-actions {
  padding-top: 14px;
}

.onix-agreement-stage.embedded .onix-agreement-actions .help {
  margin-left: auto;
}

.onix-agreement-stage.embedded + .onix-offers-section {
  margin-top: 4px;
  border-top: 1px solid #dde6ef;
  padding-top: 28px;
}

.onix-agreement-row-action > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  color: #8a6b1d;
  background: #fff8e8;
  font-size: 8.5px;
  font-weight: 850;
}

@media (max-width: 760px) {
  .onix-agreement-stage.embedded {
    padding: 16px 0 24px;
  }

  .onix-agreement-embedded-intro {
    align-items: flex-start;
  }

  .onix-agreement-embedded-intro h2 {
    font-size: 19px;
  }

  .onix-agreement-embedded-badge {
    min-height: 29px;
    padding: 0 9px;
  }

  .onix-agreement-stage.embedded .onix-agreement-number,
  .onix-agreement-stage.embedded .onix-agreement-warning,
  .onix-agreement-stage.embedded .onix-agreement-summary-grid,
  .onix-agreement-stage.embedded .onix-agreement-primary-boleto,
  .onix-agreement-stage.embedded .onix-agreement-processing,
  .onix-agreement-stage.embedded .onix-agreement-composition,
  .onix-agreement-stage.embedded .onix-agreement-installments,
  .onix-agreement-stage.embedded .onix-agreement-security-note {
    margin-left: 14px;
    margin-right: 14px;
  }
}

/* ==========================================================================
   PARCELA PAGA — PORTAL DE NEGOCIAÇÃO
   ========================================================================== */

.onix-agreement-row.paid {
  border-left: 4px solid #2f9567;
  background: #fbfefc;
}

.onix-agreement-row-status.paid {
  color: #176244;
  background: #eaf7ef;
}

.onix-agreement-paid-date {
  display: inline-flex !important;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 118px;
  min-height: 42px !important;
  padding: 7px 10px !important;
  border-radius: 10px !important;
  color: #176244 !important;
  background: #edf8f2 !important;
}

.onix-agreement-paid-date small {
  display: block;
  color: #5d7d6b !important;
  font-size: 7.5px !important;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.onix-agreement-paid-date strong {
  display: block;
  margin-top: 4px !important;
  color: #176244 !important;
  font-size: 10px !important;
  font-weight: 900;
  line-height: 1.1;
}

@media (max-width: 760px) {
  .onix-agreement-paid-date {
    align-items: flex-start;
    width: 100%;
  }
}

/* Ajustes exclusivos do conteúdo Crediativos sobre o mesmo padrão visual. */
.onix-agreement-row > div:nth-child(4) { min-width: 0; }
.onix-agreement-row-code {
  display: block;
  margin-top: 5px;
  color: #7a8798 !important;
  font-size: 7.5px !important;
  line-height: 1.35;
  text-transform: none !important;
  overflow-wrap: anywhere;
}
.onix-agreement-row-action { gap: 6px; }

@media (max-width: 760px) {
  .onix-home-brand img,
  .portal-page:not(.portal-home-page) .onix-home-brand img {
    width: 100%;
    height: auto;
  }
}
