:root {
  --bg: #f5f7fa;
  --bg-deep: #d8dee8;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --line: rgba(37, 54, 76, 0.14);
  --text: #182235;
  --muted: #647184;
  --accent: #22324b;
  --accent-soft: #e6ebf2;
  --accent-deep: #142033;
  --success: #2f6f8f;
  --shadow: 0 18px 44px rgba(24, 34, 53, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(135deg, var(--bg), #edf1f6 48%, var(--bg-deep));
  background-size: 34px 34px, 34px 34px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(34, 50, 75, 0.08), transparent 42%);
}

.page-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.hero-card,
.panel {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: none;
}

.brand-logo {
  display: block;
  width: min(280px, 70%);
  max-height: 150px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 24px;
  mix-blend-mode: multiply;
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.eyebrow,
.mini-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 3.4vw, 4.6rem);
  line-height: 1.04;
  max-width: 13ch;
  margin-bottom: 16px;
}

.brand-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: none;
}

.brand-title span {
  display: block;
  width: 100%;
  flex: 0 0 100%;
}

.brand-title small {
  display: block;
  width: 100%;
  flex: 0 0 100%;
  color: var(--accent);
  font-size: clamp(1rem, 1.55vw, 1.45rem);
  line-height: 1.15;
  white-space: nowrap;
}

h2 {
  font-size: 1.55rem;
  margin-bottom: 0;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.hero-text {
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.6;
  margin-bottom: 22px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.hero-badges span,
.hero-badges a,
.period-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-badges a {
  color: var(--text);
  text-decoration: none;
}

.hero-badges a,
.hero-badges button {
  min-width: 150px;
  text-align: center;
  justify-content: center;
}

.hero-badges a:nth-child(1) {
  background: linear-gradient(135deg, #22324b, #31577f);
  color: #fff;
  border-color: transparent;
}

.hero-badges a:nth-child(2) {
  background: linear-gradient(135deg, #2f6f8f, #5f9fc2);
  color: #fff;
  border-color: transparent;
}

.hero-badges #refreshIndicesButton {
  background: linear-gradient(135deg, #e7f0fa, #ffffff);
  border-color: rgba(47, 96, 143, 0.24);
  color: var(--accent-deep);
}

.hero-badges .ghost-button {
  min-width: 86px;
  background: #ffffff;
  color: var(--accent);
}

.hero-badges a:hover {
  border-color: rgba(47, 96, 143, 0.5);
  box-shadow: 0 8px 22px rgba(24, 34, 53, 0.1);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
}

.login-shell {
  width: min(620px, calc(100% - 28px));
  padding: 36px 0;
}

.login-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 46px);
  border-radius: 34px;
  text-align: center;
  isolation: isolate;
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: -2;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 4%, rgba(47, 111, 143, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(232, 241, 250, 0.7));
}

.login-watermark {
  position: absolute;
  inset: auto -12% -10% -12%;
  z-index: -1;
  opacity: 0.07;
  filter: blur(1px) grayscale(1) drop-shadow(0 0 0 rgba(47, 111, 143, 0));
  transform: translateY(36px) scale(1.12);
  animation: loginLogoRise 1800ms ease-out both, loginWatermarkGlow 4200ms ease-in-out 1400ms infinite;
  pointer-events: none;
}

.login-watermark::after {
  content: "";
  position: absolute;
  inset: 12% 18%;
  background: radial-gradient(circle, rgba(126, 174, 211, 0.36), transparent 62%);
  opacity: 0;
  transform: scale(0.72);
  animation: loginGlowPulse 2600ms ease-out 650ms both;
}

.login-watermark img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.login-brand {
  display: grid;
  justify-items: center;
}

.login-logo {
  width: min(280px, 76%);
  max-height: 170px;
  object-position: center;
  margin: 0 auto 22px;
  animation: loginLogoFloat 900ms ease-out both, loginLogoShine 1800ms ease-out 550ms both;
}

.login-brand .eyebrow {
  margin-bottom: 14px;
}

.login-title {
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: none;
  margin: 0 0 22px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.login-title span,
.login-title strong,
.login-title small {
  display: block;
}

.login-title span {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.08rem, 3.1vw, 1.5rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.login-title strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6.4vw, 3.65rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--accent);
}

.login-title small {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 3.6vw, 1.85rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.login-brand .hero-text {
  max-width: 32rem;
  margin: 0 auto 26px;
}

.login-panel .calc-form {
  text-align: left;
}

.login-panel .primary-button {
  width: 100%;
  justify-content: center;
  min-height: 54px;
}

@keyframes loginLogoRise {
  from {
    opacity: 0;
    filter: blur(10px) grayscale(1) drop-shadow(0 0 0 rgba(47, 111, 143, 0));
    transform: translateY(150px) scale(1.34);
  }
  58% {
    opacity: 0.18;
    filter: blur(1.6px) grayscale(1) drop-shadow(0 0 34px rgba(95, 159, 194, 0.56));
  }
  to {
    opacity: 0.07;
    filter: blur(1px) grayscale(1) drop-shadow(0 0 10px rgba(47, 111, 143, 0.18));
    transform: translateY(36px) scale(1.12);
  }
}

@keyframes loginLogoFloat {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loginGlowPulse {
  0% {
    opacity: 0;
    transform: scale(0.62);
  }
  48% {
    opacity: 0.82;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.34);
  }
}

@keyframes loginWatermarkGlow {
  0%,
  100% {
    filter: blur(1px) grayscale(1) drop-shadow(0 0 10px rgba(47, 111, 143, 0.18));
  }
  50% {
    filter: blur(0.7px) grayscale(1) drop-shadow(0 0 28px rgba(95, 159, 194, 0.36));
  }
}

@keyframes loginLogoShine {
  0% {
    filter: drop-shadow(0 0 0 rgba(95, 159, 194, 0));
  }
  42% {
    filter: drop-shadow(0 0 24px rgba(95, 159, 194, 0.42));
  }
  100% {
    filter: drop-shadow(0 8px 22px rgba(24, 34, 53, 0.12));
  }
}

.form-panel,
.index-rates,
.saved-panel,
.summary-panel {
  scroll-margin-top: 22px;
}

.hero-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.hero-stat:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hero-stat span {
  color: var(--muted);
}

.hero-stat strong {
  text-align: right;
}

.grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.panel {
  border-radius: var(--radius-lg);
  padding: 26px;
}

.form-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 243, 252, 0.92)),
    var(--panel);
}

.entity-section {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(47, 96, 143, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(231, 239, 249, 0.72));
}

.calculation-params {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(34, 50, 75, 0.14);
  background: linear-gradient(135deg, rgba(241, 247, 253, 0.88), rgba(255, 255, 255, 0.78));
}

.installments:not(.calculation-params) {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(47, 96, 143, 0.16);
  background: linear-gradient(135deg, rgba(232, 242, 252, 0.86), rgba(255, 255, 255, 0.74));
}

.payments {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(34, 74, 122, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(223, 234, 248, 0.74));
}

.summary-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(226, 238, 250, 0.9));
}

.breakdown-panel {
  background: linear-gradient(135deg, rgba(246, 250, 254, 0.94), rgba(255, 255, 255, 0.9));
}

.timeline-panel,
.disclaimer-panel {
  background: linear-gradient(135deg, rgba(231, 239, 249, 0.82), rgba(255, 255, 255, 0.88));
}

.results-column {
  display: grid;
  gap: 24px;
}

.panel-header,
.section-heading,
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.mode-tab {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.mode-tab.active {
  background: linear-gradient(135deg, var(--accent), #344965);
  color: #fff;
  border-color: transparent;
}

.is-hidden {
  display: none !important;
}

.calc-form,
.installments,
.payments,
.entity-section,
.breakdown-list,
.timeline-list,
.saved-list {
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.form-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.extrajudicial-mode .calculation-params {
  background:
    linear-gradient(135deg, rgba(239, 247, 255, 0.94), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at top right, rgba(47, 96, 143, 0.15), transparent 34%);
  border-color: rgba(47, 96, 143, 0.18);
}

.future-interest-section {
  background:
    linear-gradient(135deg, rgba(231, 239, 249, 0.96), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at 88% 0%, rgba(47, 96, 143, 0.18), transparent 32%);
  border-color: rgba(47, 96, 143, 0.2);
}

.future-interest-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.parceling-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: -10px;
}

.parceling-form-actions {
  margin-top: 18px;
}

.parceling-result {
  display: grid;
  gap: 16px;
}

.parceling-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.parceling-summary-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.parceling-summary-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.parceling-summary-grid strong {
  font-size: 1.1rem;
}

.parceling-total {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(20, 35, 60, 0.94), rgba(47, 95, 145, 0.92)) !important;
  color: #fff;
}

.parceling-total span {
  color: rgba(255, 255, 255, 0.78);
}

.parceling-table-wrap {
  overflow-x: auto;
}

.parceling-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.parceling-table th,
.parceling-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: right;
  white-space: nowrap;
}

.parceling-table th:first-child,
.parceling-table td:first-child {
  text-align: left;
}

.extrajudicial-mode .calculation-params .form-grid {
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.75fr) minmax(190px, 0.85fr) minmax(190px, 0.85fr);
  align-items: end;
}

.section-note {
  color: var(--muted);
  margin-top: 6px;
  max-width: 780px;
}

.party-picker {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  margin-top: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(96, 71, 40, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
  border-color: rgba(47, 96, 143, 0.78);
  box-shadow: 0 0 0 4px rgba(47, 96, 143, 0.14);
}

button {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), #344965);
  color: #fff;
  font-weight: 800;
}

.secondary-button,
.ghost-button,
.danger-button {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}

.danger-button {
  color: #1f4e79;
}

.installments-list,
.payments-list {
  display: grid;
  gap: 14px;
}

.installment-card,
.payment-card {
  display: grid;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.installment-card {
  grid-template-columns:
    minmax(74px, 0.35fr)
    minmax(220px, 1.45fr)
    minmax(170px, 0.85fr)
    minmax(150px, 0.75fr)
    minmax(180px, 1fr)
    minmax(150px, 0.8fr)
    auto;
}

.installment-index {
  display: grid;
  gap: 8px;
}

.installment-index span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.installment-index strong {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(47, 96, 143, 0.16);
  background: rgba(239, 247, 255, 0.96);
  color: var(--accent);
}

.extrajudicial-mode .installments:not(.calculation-params) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.92)),
    radial-gradient(circle at 14% 0%, rgba(47, 96, 143, 0.12), transparent 28%);
  border-color: rgba(47, 96, 143, 0.16);
}

.extrajudicial-mode .installment-card {
  grid-template-columns:
    minmax(70px, 0.35fr)
    minmax(220px, 1.25fr)
    minmax(170px, 0.95fr)
    minmax(150px, 0.8fr)
    minmax(190px, 1fr)
    minmax(145px, 0.75fr)
    auto;
  background: rgba(255, 255, 255, 0.82);
}

.installment-card.is-credit {
  border-color: rgba(25, 132, 105, 0.28);
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.9), rgba(255, 255, 255, 0.84)),
    radial-gradient(circle at top left, rgba(25, 132, 105, 0.12), transparent 30%);
}

.installment-card.is-credit [name="installmentPenaltyRate"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.payment-card {
  grid-template-columns: minmax(260px, 1.4fr) minmax(160px, 0.8fr) minmax(180px, 0.8fr) auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.stat-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.stat-card span,
.breakdown-item small,
.timeline-item time,
.disclaimer-panel p {
  color: var(--muted);
}

.stat-card strong {
  font-size: 1.4rem;
}

.stat-card.accent {
  background: linear-gradient(135deg, #ffffff, #e7edf5);
  border-color: rgba(34, 50, 75, 0.22);
}

.breakdown-item,
.timeline-item {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.breakdown-item {
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
}

.timeline-item {
  position: relative;
  padding-left: 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(34, 50, 75, 0.12);
}

.timeline-item strong,
.breakdown-item strong,
.currency {
  font-family: "IBM Plex Mono", monospace;
}

.timeline-item p {
  margin-bottom: 0;
  line-height: 1.5;
}

.disclaimer-panel {
  background: linear-gradient(135deg, rgba(34, 50, 75, 0.08), rgba(255, 255, 255, 0.72));
  border-color: rgba(34, 50, 75, 0.12);
}

.empty-state {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed var(--line);
  color: var(--muted);
}

.update-status {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.update-status strong {
  color: var(--text);
}

.compact-status {
  margin-top: 14px;
  font-size: 0.86rem;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(235, 243, 252, 0.9), rgba(255, 255, 255, 0.86));
  border-color: rgba(47, 96, 143, 0.16);
}

.saved-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.84)),
    radial-gradient(circle at top right, rgba(47, 96, 143, 0.08), transparent 34%);
  border: 1px solid rgba(47, 96, 143, 0.16);
  box-shadow: 0 14px 30px rgba(24, 34, 53, 0.06);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.saved-card-copy {
  display: grid;
  gap: 6px;
}

.saved-card-copy small {
  color: var(--muted);
}

.saved-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.saved-card-actions form {
  margin: 0;
}

.saved-card-actions a,
.saved-card-actions button {
  min-width: 118px;
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(24, 34, 53, 0.08);
}

.saved-card-actions a.ghost-button {
  background: linear-gradient(135deg, #14233c, #2f5f91);
  color: #fff;
  border-color: transparent;
}

.saved-card-actions a.secondary-button {
  background: linear-gradient(135deg, #e7f0fa, #ffffff);
  color: #14233c;
  border-color: rgba(47, 96, 143, 0.24);
}

.saved-card-actions .danger-button {
  background: #fff;
  border-color: rgba(47, 96, 143, 0.22);
  color: #1f4e79;
}

.saved-calculations-panel .saved-list {
  gap: 18px;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .extrajudicial-mode .calculation-params .form-grid,
  .extrajudicial-mode .installment-card,
  .installment-card,
  .payment-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .installment-card .remove-installment,
  .payment-card .remove-payment {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    padding-top: 18px;
  }

  .hero-copy,
  .hero-card,
  .panel {
    padding: 20px;
  }

  .form-grid,
  .future-interest-grid,
  .extrajudicial-mode .calculation-params .form-grid,
  .extrajudicial-mode .installment-card,
  .party-picker,
  .stats-grid,
  .installment-card,
  .payment-card {
    grid-template-columns: 1fr;
  }

  .saved-card-actions {
    flex-direction: column;
  }

  .saved-card {
    grid-template-columns: 1fr;
  }

  .saved-card-actions {
    align-items: stretch;
  }

  .saved-card-actions a,
  .saved-card-actions button,
  .saved-card-actions form {
    width: 100%;
  }

  .panel-header,
  .section-heading,
  .form-actions,
  .mode-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .mode-tabs {
    grid-template-columns: 1fr;
  }

  .hero-badges a,
  .hero-badges button {
    width: 100%;
    min-width: 0;
  }

  h1 {
    max-width: none;
    font-size: 2.5rem;
  }

  .brand-title small {
    white-space: normal;
  }
}

.hero .hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
}

.hero .hero-badges a,
.hero .hero-badges button {
  min-width: 154px;
  text-align: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(24, 34, 53, 0.08);
}

.hero .hero-badges a:nth-child(1) {
  background: linear-gradient(135deg, #14233c, #2f5f91);
  color: #fff;
  border-color: transparent;
}

.hero .hero-badges a:nth-child(2) {
  background: linear-gradient(135deg, #1f6f9f, #73afd0);
  color: #fff;
  border-color: transparent;
}

.hero .hero-badges #refreshIndicesButton {
  background: linear-gradient(135deg, #dbeaf8, #ffffff);
  border: 1px solid rgba(47, 96, 143, 0.28);
  color: #14233c;
}

.hero .hero-badges .ghost-button {
  min-width: 88px;
  background: #ffffff;
  color: #22324b;
}
