:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --navy: #071d49;
  --navy-2: #0b2d68;
  --daycoval-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(--daycoval-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(--daycoval-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(--daycoval-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(--daycoval-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(--daycoval-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; }
.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(--daycoval-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(--daycoval-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(--daycoval-blue); color: var(--daycoval-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(--daycoval-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(--daycoval-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(--daycoval-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(--daycoval-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; }
  .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%; }
  .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(--daycoval-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(--daycoval-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(--daycoval-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(--daycoval-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; }
}
