.hundredmpm-retirement-calculator {
  --bg: #07111f;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.66);
  --muted-2: rgba(255, 255, 255, 0.44);
  --cyan: #67e8f9;
  --green: #86efac;
  --amber: #ffb347;
  --coral: #ff5a3d;
  --shadow: 0 24px 60px rgba(5, 12, 24, 0.4);
  --radius-xl: 2rem;
  --radius-lg: 1.45rem;
  --radius-md: 1rem;
  --font-display: "Avenir Next", "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Avenir Next", "Inter", "Segoe UI", sans-serif;
  --font-tall: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  position: relative;
  margin: 2rem 0;
  color: var(--text);
  font-family: var(--font-body);
}

.hundredmpm-retirement-calculator *,
.hundredmpm-retirement-calculator *::before,
.hundredmpm-retirement-calculator *::after {
  box-sizing: border-box;
}

.hundredmpm-retirement-calculator button,
.hundredmpm-retirement-calculator input,
.hundredmpm-retirement-calculator select {
  font: inherit;
}

.hundredmpm-retirement-calculator button {
  cursor: pointer;
}

.hundredmpm-retirement-calculator input::-webkit-outer-spin-button,
.hundredmpm-retirement-calculator input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.hundredmpm-retirement-calculator input[type="number"] {
  -moz-appearance: textfield;
}

.hundredmpm-retirement-calculator__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hundredmpm-retirement-calculator__page-bg {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius-xl) + 0.5rem);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 26%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(56, 189, 248, 0.12), transparent 35%);
  pointer-events: none;
}

.hundredmpm-retirement-calculator__shell {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  background: var(--bg);
  border-radius: calc(var(--radius-xl) + 0.5rem);
  overflow: hidden;
}

.hundredmpm-retirement-calculator__hero {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.hundredmpm-retirement-calculator__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 0.48rem 0.84rem;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: #cffafe;
  font-size: 0.88rem;
}

.hundredmpm-retirement-calculator__title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hundredmpm-retirement-calculator__hero-copy {
  max-width: 52rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.hundredmpm-retirement-calculator__grid {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.hundredmpm-retirement-calculator__control-panel,
.hundredmpm-retirement-calculator__results-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hundredmpm-retirement-calculator__control-panel {
  padding: 1.35rem;
}

.hundredmpm-retirement-calculator__panel-head,
.hundredmpm-retirement-calculator__results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hundredmpm-retirement-calculator__panel-head {
  margin-bottom: 1.15rem;
}

.hundredmpm-retirement-calculator__panel-label,
.hundredmpm-retirement-calculator__summary-label,
.hundredmpm-retirement-calculator__target-label,
.hundredmpm-retirement-calculator__table th {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hundredmpm-retirement-calculator__panel-copy {
  margin: 0.32rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hundredmpm-retirement-calculator__currency-select select {
  min-height: 2.85rem;
  min-width: 5.75rem;
  padding: 0 0.9rem;
}

.hundredmpm-retirement-calculator__form {
  display: grid;
  gap: 1rem;
}

.hundredmpm-retirement-calculator__field,
.hundredmpm-retirement-calculator__mini-field {
  display: grid;
  gap: 0.55rem;
}

.hundredmpm-retirement-calculator__field > span,
.hundredmpm-retirement-calculator__field-group > div > span,
.hundredmpm-retirement-calculator__mini-field > span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.96rem;
  font-weight: 700;
}

.hundredmpm-retirement-calculator__field small,
.hundredmpm-retirement-calculator__field-group small,
.hundredmpm-retirement-calculator__section-note {
  color: var(--muted-2);
  font-size: 0.84rem;
  line-height: 1.45;
}

.hundredmpm-retirement-calculator__field-group {
  gap: 0.85rem;
}

.hundredmpm-retirement-calculator__field-row {
  display: grid;
  gap: 0.85rem;
}

.hundredmpm-retirement-calculator__field-row--three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hundredmpm-retirement-calculator__section-divider {
  height: 1px;
  margin: 0.2rem 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

.hundredmpm-retirement-calculator__section-divider--soft {
  opacity: 0.65;
}

.hundredmpm-retirement-calculator__input-shell,
.hundredmpm-retirement-calculator select,
.hundredmpm-retirement-calculator__mini-field input,
.hundredmpm-retirement-calculator__primary-button,
.hundredmpm-retirement-calculator__tab-button,
.hundredmpm-retirement-calculator__target-card,
.hundredmpm-retirement-calculator__summary-metric,
.hundredmpm-retirement-calculator__table-card,
.hundredmpm-retirement-calculator__chart-card {
  border-radius: var(--radius-md);
}

.hundredmpm-retirement-calculator__input-shell,
.hundredmpm-retirement-calculator select,
.hundredmpm-retirement-calculator__mini-field input {
  width: 100%;
  min-height: 3.35rem;
  border: 1px solid var(--border);
  background: rgba(8, 18, 34, 0.78);
  color: var(--text);
}

.hundredmpm-retirement-calculator__input-shell {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hundredmpm-retirement-calculator__input-shell--compact {
  min-height: 3rem;
}

.hundredmpm-retirement-calculator__prefix {
  padding-left: 0.9rem;
  color: var(--muted);
  font-weight: 700;
}

.hundredmpm-retirement-calculator__input-shell input {
  width: 100%;
  min-height: 3.35rem;
  border: 0;
  outline: none;
  padding: 0 1rem;
  background: transparent;
  color: var(--text);
  font-size: 1.06rem;
}

.hundredmpm-retirement-calculator__input-shell--compact input {
  min-height: 3rem;
  padding-left: 0.65rem;
}

.hundredmpm-retirement-calculator select,
.hundredmpm-retirement-calculator__mini-field input {
  outline: none;
  padding: 0 1rem;
  font-size: 1.02rem;
}

.hundredmpm-retirement-calculator__mini-field input {
  min-height: 3rem;
}

.hundredmpm-retirement-calculator__primary-button {
  min-height: 4.15rem;
  margin-top: 0.35rem;
  border: 1px solid rgba(103, 232, 249, 0.22);
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  color: #fff;
  font-size: 1.13rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 20px 45px rgba(49, 46, 129, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hundredmpm-retirement-calculator__primary-button:hover,
.hundredmpm-retirement-calculator__primary-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 24px 50px rgba(49, 46, 129, 0.42);
}

.hundredmpm-retirement-calculator__results-panel {
  overflow: hidden;
}

.hundredmpm-retirement-calculator__results-toolbar {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.hundredmpm-retirement-calculator__tablist {
  display: flex;
  gap: 0.85rem;
}

.hundredmpm-retirement-calculator__tab-button {
  min-height: 2.75rem;
  padding: 0.35rem 0.2rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.hundredmpm-retirement-calculator__tab-button.is-active {
  color: #fff;
  border-bottom-color: var(--cyan);
}

.hundredmpm-retirement-calculator__results-body {
  padding: 1.5rem;
}

.hundredmpm-retirement-calculator__results-headline {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.hundredmpm-retirement-calculator__headline-lead,
.hundredmpm-retirement-calculator__headline-sub {
  margin: 0;
}

.hundredmpm-retirement-calculator__headline-lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.35;
}

.hundredmpm-retirement-calculator__headline-value {
  margin: 0;
  color: var(--text);
  font-family: var(--font-tall);
  font-size: clamp(2.7rem, 6vw, 4.9rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hundredmpm-retirement-calculator__headline-sub {
  color: var(--muted);
  font-size: 1rem;
}

.hundredmpm-retirement-calculator__tab-panel {
  display: none;
}

.hundredmpm-retirement-calculator__tab-panel.is-active {
  display: block;
}

.hundredmpm-retirement-calculator__chart-card,
.hundredmpm-retirement-calculator__table-card,
.hundredmpm-retirement-calculator__target-card,
.hundredmpm-retirement-calculator__summary-metric {
  border: 1px solid var(--border);
  background: var(--panel-2);
  backdrop-filter: blur(14px);
}

.hundredmpm-retirement-calculator__chart-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(8, 18, 34, 0.44);
}

.hundredmpm-retirement-calculator__chart {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
}

.hundredmpm-retirement-calculator__target-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.95rem;
}

.hundredmpm-retirement-calculator__target-card {
  padding: 1rem 1.05rem;
}

.hundredmpm-retirement-calculator__target-card--featured {
  border-color: rgba(103, 232, 249, 0.24);
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.1), rgba(103, 232, 249, 0.04));
}

.hundredmpm-retirement-calculator__target-value {
  margin: 0.55rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.hundredmpm-retirement-calculator__table-card {
  overflow-x: auto;
}

.hundredmpm-retirement-calculator__table {
  width: 100%;
  border-collapse: collapse;
}

.hundredmpm-retirement-calculator__table th,
.hundredmpm-retirement-calculator__table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
}

.hundredmpm-retirement-calculator__table td {
  color: rgba(255, 255, 255, 0.84);
}

.hundredmpm-retirement-calculator__table tbody tr:last-child td {
  border-bottom: 0;
}

.hundredmpm-retirement-calculator__wr-good {
  color: var(--green);
}

.hundredmpm-retirement-calculator__wr-caution {
  color: var(--amber);
}

.hundredmpm-retirement-calculator__wr-high {
  color: #fca5a5;
}

.hundredmpm-retirement-calculator__summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.hundredmpm-retirement-calculator__summary-metric {
  padding: 1rem 1.1rem;
}

.hundredmpm-retirement-calculator__summary-value {
  margin: 0.6rem 0 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.hundredmpm-retirement-calculator__footer {
  margin-top: 1.4rem;
  padding: 1rem 0 0.25rem;
}

.hundredmpm-retirement-calculator__footer-note {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.95rem;
}

.hundredmpm-retirement-calculator__footer-note a {
  color: #d9faff;
  text-decoration: none;
}

.hundredmpm-retirement-calculator__footer-note a:hover,
.hundredmpm-retirement-calculator__footer-note a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.hundredmpm-retirement-calculator__chart-tooltip {
  position: absolute;
  min-width: 13rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 1rem;
  background: rgba(8, 18, 34, 0.94);
  color: var(--text);
  box-shadow: 0 18px 50px rgba(5, 12, 24, 0.48);
  transform: translate(-50%, calc(-100% - 14px));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.hundredmpm-retirement-calculator__chart-tooltip.is-visible {
  opacity: 1;
}

.hundredmpm-retirement-calculator__chart-tooltip-title {
  margin: 0 0 0.55rem;
  font-weight: 700;
}

.hundredmpm-retirement-calculator__chart-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hundredmpm-retirement-calculator__chart-tooltip-row + .hundredmpm-retirement-calculator__chart-tooltip-row {
  margin-top: 0.32rem;
}

.hundredmpm-retirement-calculator__chart-tooltip-row strong {
  color: var(--text);
}

@media (max-width: 1100px) {
  .hundredmpm-retirement-calculator__grid {
    grid-template-columns: 1fr;
  }

  .hundredmpm-retirement-calculator__results-headline {
    justify-items: start;
    text-align: left;
  }

  .hundredmpm-retirement-calculator__headline-value {
    font-size: clamp(2.7rem, 10vw, 4.6rem);
  }
}

@media (max-width: 760px) {
  .hundredmpm-retirement-calculator__shell {
    padding: 1.25rem 1rem 1rem;
  }

  .hundredmpm-retirement-calculator__panel-head,
  .hundredmpm-retirement-calculator__results-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hundredmpm-retirement-calculator__field-row--three-up,
  .hundredmpm-retirement-calculator__target-grid,
  .hundredmpm-retirement-calculator__summary-strip {
    grid-template-columns: 1fr;
  }

  .hundredmpm-retirement-calculator__results-body,
  .hundredmpm-retirement-calculator__control-panel {
    padding: 1rem;
  }

  .hundredmpm-retirement-calculator__table th,
  .hundredmpm-retirement-calculator__table td {
    padding: 0.8rem;
    font-size: 0.93rem;
  }
}
