:root {
  --page-bg: #f2f2f7;
  --surface: #f2f2f7;
  --surface-strong: #ffffff;
  --surface-warm: linear-gradient(180deg, #fff7dc 0%, #fff1c5 16%, #fff7e4 32%, #f7f6f4 52%, #f2f2f7 100%);
  --surface-pill: linear-gradient(180deg, #f6f6fb 0%, #f1f1f7 100%);
  --surface-pill-soft: linear-gradient(180deg, #f6f6fb 0%, #f2f2f7 56%, #ededf4 100%);
  --text: #171923;
  --muted: #9097ab;
  --muted-strong: #6d7488;
  --border: #edf1f8;
  --shadow: 0 26px 52px rgba(224, 230, 241, 0.92);
  --shadow-soft: 0 16px 30px rgba(227, 233, 244, 0.8);
  --yellow: #f7c948;
  --yellow-deep: #edb91c;
  --yellow-soft: rgba(247, 201, 72, 0.2);
  --accent-bar-start: #ffd15a;
  --accent-bar-mid: #ffe08a;
  --accent-bar-end: #ffd15a;
  --cyan: #41c4e2;
  --cyan-soft: rgba(65, 196, 226, 0.16);
  --green: #32c8b0;
  --green-soft: rgba(50, 200, 176, 0.15);
  --blue: #86aaf9;
  --blue-soft: rgba(134, 170, 249, 0.16);
  --purple: #b89ff9;
  --purple-soft: rgba(184, 159, 249, 0.16);
  --orange: #f9b265;
  --orange-soft: rgba(249, 178, 101, 0.18);
  --pink: #ff91be;
  --pink-soft: rgba(255, 145, 190, 0.16);
  --mint: #66d3a8;
  --mint-soft: rgba(102, 211, 168, 0.15);
  --gold-soft: rgba(247, 201, 72, 0.18);
  --danger: #FF6467;
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --rail-shadow:
    0 20px 36px rgba(226, 232, 243, 0.9),
    0 2px 10px rgba(244, 246, 251, 0.98),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -10px 18px rgba(236, 240, 247, 0.8);
  --pill-shadow:
    0 16px 28px rgba(226, 232, 243, 0.92),
    0 2px 8px rgba(245, 247, 252, 0.98),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -10px 18px rgba(236, 240, 247, 0.82);
  --soft-card-shadow:
    0 20px 34px rgba(226, 232, 243, 0.96),
    0 4px 10px rgba(244, 246, 251, 0.98),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -12px 18px rgba(236, 240, 247, 0.82);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background: var(--page-bg);
}

button,
input,
select,
output {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
}

.forecast-page {
  position: relative;
  overflow-x: clip;
  padding: 2rem 0 3rem;
  background: var(--page-bg) !important;
}

.forecast-page.neu-light {
  background: var(--page-bg) !important;
}

.page-shell {
  position: relative;
  z-index: 2;
  max-width: 1140px;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.14;
  pointer-events: none;
}

.bg-orb--left {
  top: 8rem;
  left: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(255, 233, 161, 0.34);
}

.bg-orb--right {
  top: 10rem;
  right: -6rem;
  width: 22rem;
  height: 22rem;
  background: rgba(255, 245, 201, 0.42);
}

.page-header {
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(237, 240, 247, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.page-title-accent {
  color: var(--yellow);
}

.page-subtitle {
  max-width: 31rem;
  margin: 0 auto;
  color: var(--muted-strong);
  font-size: 0.98rem;
  line-height: 1.7;
}

.header-controls {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

.service-switcher {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  width: 100%;
}

.control-label {
  color: #99a5c0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.service-switcher .control-label {
  flex: 0 0 auto;
  min-width: 9.5rem;
  text-align: right;
}

.segmented-control {
  display: inline-flex;
  gap: 0.55rem;
  padding: 0.5rem;
  border: 1px solid #edf1f8;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7f8fc 0%, #f2f4fa 100%);
  position: relative;
  overflow: hidden;
}

.segmented-control.deep-pill-in {
  border-color: rgba(234, 238, 245, 0.92);
  background: linear-gradient(180deg, #f6f6fa 0%, #f1f2f7 56%, #eff0f5 100%) !important;
  box-shadow:
    inset 14px 14px 24px rgba(228, 232, 239, 0.72),
    inset -12px -12px 22px rgba(255, 255, 255, 0.96),
    inset 0 0 0 1px rgba(242, 245, 250, 0.88),
    0 8px 16px rgba(231, 235, 242, 0.2),
    1px 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.segmented-control.deep-pill-in::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.86),
    inset -1px -1px 0 rgba(225, 230, 239, 0.72);
  pointer-events: none;
  content: "";
}

.segmented-control.deep-pill-in::after {
  position: absolute;
  inset: 0.28rem;
  border-radius: inherit;
  box-shadow:
    inset 7px 7px 14px rgba(228, 233, 240, 0.34),
    inset -7px -7px 14px rgba(255, 255, 255, 0.52);
  opacity: 0.78;
  pointer-events: none;
  content: "";
}

.segmented-control--compact {
  padding: 0.38rem;
}

.segmented-control--rank {
  width: min(100%, 58rem);
}

.segmented-control--rank.deep-pill-in {
  border-color: transparent;
  background: #f2f2f7 !important;
  box-shadow:
    inset 6px 6px 12px rgba(0, 0, 0, 0.05),
    inset -6px -6px 12px rgba(255, 255, 255, 0.8) !important;
}

.segmented-control--rank.deep-pill-in::before,
.segmented-control--rank.deep-pill-in::after {
  display: none;
}

.segmented-control--service {
  width: min(100%, 28rem);
}

.segmented-control-button {
  flex: 1 1 0;
  min-height: 3.95rem;
  padding: 0.92rem 1.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #aeb6c7;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 340ms ease-in-out,
    color 340ms ease-in-out,
    box-shadow 340ms ease-in-out,
    transform 340ms ease-in-out,
    border-color 340ms ease-in-out;
}

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

.segmented-control-button.is-active {
  border: 1px solid #e5e9f3;
  background: var(--surface-pill);
  color: var(--text);
}

.segmented-control--rank .segmented-control-button.is-active {
  border-color: transparent;
  background: #f2f2f7;
  color: #0f172b;
}

.segmented-control-button--subtle.is-active {
  background: var(--surface-pill);
}

.segmented-control--service .segmented-control-button {
  min-height: 3.25rem;
  padding: 0.78rem 1.35rem;
  font-size: 0.92rem;
}

.header-controls .segmented-control-button.deep-pill-out {
  background: var(--surface-pill) !important;
  box-shadow:
    3px 0 8px rgba(191, 197, 209, 0.14),
    -3px 0 8px rgba(191, 197, 209, 0.14),
    0 6px 12px rgba(182, 188, 201, 0.24),
    0 0 0 1px rgba(223, 228, 237, 0.88),
    inset 0 1px 0 rgba(255, 255, 255, 0.66) !important;
}

.segmented-control--rank .segmented-control-button.deep-pill-out {
  background: #f2f2f7 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.95fr);
  gap: 1.35rem;
  align-items: start;
}

.left-stack {
  display: grid;
  gap: 1.2rem;
}

.left-stack,
.earnings-panel {
  transform-origin: top center;
  will-change: opacity, transform;
}

.left-stack.is-tab-leaving,
.earnings-panel.is-tab-leaving {
  animation: tab-swap-out 220ms ease-in both;
}

.left-stack.is-tab-entering,
.earnings-panel.is-tab-entering {
  animation: tab-swap-in 320ms ease-out both;
}

@keyframes tab-swap-out {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.996);
  }
}

@keyframes tab-swap-in {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.994);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #f2f2f7;
}

.panel--soft {
  background: #f2f2f7;
}

.revenue-panel,
.scheme-panel {
  padding: 1.4rem;
}

.scheme-panel {
  padding: 1.18rem 1.08rem 1.16rem;
}

.earnings-panel {
  align-self: start;
  padding: 1.4rem 1.4rem 4.9rem;
  background: linear-gradient(180deg, #fbfaf6 0%, #f7f2e4 24%, #f3ead6 44%, #f6efdf 62%, #f7f8fc 100%);
}

@media (min-width: 992px) {
  .earnings-panel {
    position: sticky;
    top: 1.5rem;
  }
}

.earnings-panel.neu-flat {
  box-shadow:
    -10px -10px 22px rgba(255, 255, 255, 0.96),
    12px 12px 26px rgba(224, 228, 237, 0.62) !important;
}

.earnings-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 16rem;
  background:
    radial-gradient(ellipse at 24% 34%, rgba(255, 232, 171, 0.14) 0%, rgba(255, 240, 205, 0.13) 28%, rgba(255, 247, 226, 0.06) 52%, rgba(255, 255, 255, 0) 76%),
    linear-gradient(180deg, rgba(247, 239, 210, 0.16) 0%, rgba(244, 233, 198, 0.42) 18%, rgba(242, 229, 188, 0.54) 36%, rgba(247, 239, 210, 0.24) 58%, rgba(255, 255, 255, 0.05) 74%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(90deg, rgba(247, 239, 210, 0.1) 0%, rgba(244, 233, 198, 0.22) 32%, rgba(244, 233, 198, 0.22) 72%, rgba(255, 255, 255, 0.04) 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  pointer-events: none;
  content: "";
}

.earnings-panel::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0.5rem;
  background: linear-gradient(90deg, var(--accent-bar-start) 0%, var(--accent-bar-mid) 50%, var(--accent-bar-end) 100%);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: 0 8px 16px rgba(255, 209, 90, 0.16);
  content: "";
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.panel-header--tight {
  margin-bottom: 0.8rem;
}

.panel-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.panel-title--small {
  font-size: 1.08rem;
}

.panel-copy {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.panel-chip {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 1rem;
  background: var(--surface-pill-soft);
}

.panel-chip-icon {
  display: block;
  width: 1.14rem;
  height: 1.14rem;
  object-fit: contain;
}

.panel-chip-line {
  position: relative;
  width: 0.9rem;
  height: 0.9rem;
}

.panel-chip-line::before,
.panel-chip-line::after {
  position: absolute;
  content: "";
}

.panel-chip-line::before {
  inset: auto 0 0 0;
  height: 2px;
  background: var(--yellow);
}

.panel-chip-line::after {
  right: 0;
  bottom: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--yellow);
  border-right: 2px solid var(--yellow);
  transform: translateY(-2px) rotate(45deg);
}

.revenue-input {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.3rem 0 1rem;
  border-bottom: 1.5px solid rgba(190, 197, 212, 0.8);
  position: relative;
  transition: border-color 180ms ease;
}

.revenue-prefix {
  color: rgba(144, 151, 171, 0.48);
  font-size: 1.9rem;
  font-weight: 100;
  letter-spacing: -0.04em;
  transition: color 180ms ease;
}

.revenue-input:focus-within {
  border-bottom-color: rgba(247, 201, 72, 0.72);
}

.revenue-input:focus-within .revenue-prefix {
  color: var(--yellow-deep);
}

.revenue-input:focus-within input {
  color: var(--text);
}

.revenue-input input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: clamp(2rem, 4.3vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  outline: none;
}

.revenue-input.revenue-input--empty:not(:focus-within) input {
  color: #f1f5f9;
}

.projects-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.05rem;
}

.projects-label {
  font-size: 0.8rem;
  font-weight: 700;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.stepper-button,
.stepper-value {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.2rem;
  border-radius: 999px;
}

.stepper-button {
  color: var(--muted-strong);
  font-weight: 800;
  background: var(--surface-pill);
  cursor: pointer;
}

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

.stepper-value {
  min-width: 2.9rem;
  padding: 0 0.85rem;
  background: var(--surface-pill);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  border: 0;
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.stepper-value::-webkit-outer-spin-button,
.stepper-value::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.target-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 1rem;
  padding: 0.45rem;
  border: 1px solid #edf1f8;
  border-radius: 24px;
  background: linear-gradient(180deg, #f7f8fc 0%, #f1f3fa 100%);
}

.target-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem 0.95rem 1.05rem;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
  position: relative;
}

.target-pill > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 1.8rem;
}

.target-pill--warm {
  background: transparent;
}

.target-pill:first-child::after {
  position: absolute;
  top: 0.55rem;
  right: 0;
  bottom: 0.55rem;
  width: 1px;
  background: #eceff6;
  content: "";
}

.target-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 0.84rem;
  background: var(--surface-pill);
  position: relative;
}

.target-icon-image {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
}

.target-icon--gold {
  background: var(--surface-pill);
}

.target-icon--cyan {
  background: var(--surface-pill);
}

.target-icon::before,
.target-icon::after {
  position: absolute;
  content: "";
}

.target-icon--gold::before {
  inset: 0.42rem;
  border: 2px solid var(--yellow);
  border-radius: 999px;
}

.target-icon--gold::after {
  top: 0.78rem;
  left: 0.78rem;
  width: 0.24rem;
  height: 0.24rem;
  border-radius: 999px;
  background: var(--yellow);
}

.target-icon--cyan::before {
  left: 0.48rem;
  bottom: 0.58rem;
  width: 0.68rem;
  height: 2px;
  background: var(--cyan);
  transform: rotate(-30deg);
  transform-origin: left center;
}

.target-icon--cyan::after {
  top: 0.48rem;
  right: 0.42rem;
  width: 0.35rem;
  height: 0.35rem;
  border-top: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
  transform: rotate(12deg);
}

.target-label {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.target-value {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.target-meta {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.target-meta--positive {
  color: var(--green);
}

.cogs-block {
  padding: 0 0.1rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: -0.03em;
}

.section-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.08rem;
}

.section-total-label {
  color: #90a1b9;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-total-value {
  color: var(--danger);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cogs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.cogs-card {
  position: relative;
  min-height: 11.3rem;
  padding: 1rem 1rem 1.2rem;
  border-radius: 24px;
  background: var(--surface-pill-soft);
}

.cogs-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.cogs-card-value-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.08rem;
}

.cogs-card-top strong {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cogs-card-value-note {
  color: #a4abc0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  max-width: 6.5rem;
  text-align: right;
}

.cogs-card-rate-input-shell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.08rem;
  min-width: 3.3rem;
  padding: 0.14rem 0.28rem 0.16rem 0.34rem;
  border-radius: 0.7rem;
  background: var(--surface-pill);
}

.cogs-card-rate-input-shell:focus-within {
  box-shadow:
    inset 4px 4px 8px rgba(229, 233, 240, 0.86),
    inset -4px -4px 8px rgba(255, 255, 255, 0.99),
    0 0 0 1px rgba(247, 201, 72, 0.34) !important;
}

.cogs-card-rate-input {
  width: 2.05rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8e96aa;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-align: right;
  outline: none;
}

.cogs-card-rate-suffix {
  color: #a4abc0;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.cogs-card-rate-select-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 8rem;
  max-width: 8rem;
  padding: 0 0.34rem 0 0.42rem;
  border-radius: 0.7rem;
  background: var(--surface-pill);
}

.cogs-card-rate-select-shell--amount {
  min-width: 9.3rem;
  max-width: 9.3rem;
}

.cogs-card-rate-select-shell:focus-within {
  box-shadow:
    inset 4px 4px 8px rgba(229, 233, 240, 0.86),
    inset -4px -4px 8px rgba(255, 255, 255, 0.99),
    0 0 0 1px rgba(247, 201, 72, 0.34) !important;
}

.cogs-card-rate-select {
  width: 100%;
  min-width: 0;
  padding: 0.16rem 1rem 0.18rem 0;
  border: 0;
  background: transparent;
  color: #8e96aa;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.2;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.cogs-card-rate-select-icon {
  position: absolute;
  right: 0.36rem;
  top: 50%;
  width: 0.44rem;
  height: 0.44rem;
  pointer-events: none;
  transform: translateY(-44%);
}

.cogs-card-rate-select-icon::before,
.cogs-card-rate-select-icon::after {
  position: absolute;
  top: 0.18rem;
  width: 0.28rem;
  height: 1.5px;
  border-radius: 999px;
  background: #a4abc0;
  content: "";
}

.cogs-card-rate-select-icon::before {
  left: 0;
  transform: rotate(45deg);
}

.cogs-card-rate-select-icon::after {
  right: 0;
  transform: rotate(-45deg);
}

.cogs-icon-shell {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.35rem;
  border-radius: 0.95rem;
  background: var(--surface-pill);
}

.cogs-icon-image {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
}

.cogs-icon {
  position: relative;
  width: 1rem;
  height: 1rem;
}

.cogs-icon::before,
.cogs-icon::after {
  position: absolute;
  content: "";
}

.cogs-icon--blue::before {
  inset: 0.14rem 0.14rem 0.18rem;
  border: 1.8px solid #88a8ff;
  border-radius: 0.35rem;
}

.cogs-icon--blue::after {
  left: 0.28rem;
  bottom: 0.22rem;
  width: 0.44rem;
  height: 0.12rem;
  background: #88a8ff;
  border-radius: 999px;
}

.cogs-icon--purple::before {
  inset: 0.16rem;
  border: 1.8px solid #b79bff;
  border-radius: 0.22rem;
}

.cogs-icon--purple::after {
  left: 0.22rem;
  right: 0.22rem;
  bottom: 0.2rem;
  height: 0.12rem;
  background: #b79bff;
  border-radius: 999px;
}

.cogs-icon--orange::before {
  left: 0.16rem;
  top: 0.14rem;
  width: 0.64rem;
  height: 0.64rem;
  border: 1.8px solid #f49b51;
  border-radius: 52% 48% 50% 48%;
}

.cogs-icon--orange::after {
  top: 0.24rem;
  right: 0.1rem;
  width: 0.14rem;
  height: 0.14rem;
  border-radius: 999px;
  background: #f49b51;
  box-shadow:
    -0.32rem 0.18rem 0 #f49b51,
    -0.5rem -0.04rem 0 #f49b51;
}

.cogs-icon--pink::before {
  left: 0.14rem;
  top: 0.28rem;
  width: 0.46rem;
  height: 0.3rem;
  border: 1.8px solid #ff78b8;
  border-right: 0;
  border-radius: 0.12rem;
  transform: skewX(-16deg);
}

.cogs-icon--pink::after {
  right: 0.12rem;
  top: 0.38rem;
  width: 0.34rem;
  height: 0.12rem;
  background: #ff78b8;
  box-shadow: -0.18rem 0.16rem 0 0 #ff78b8;
  border-radius: 999px;
}

.cogs-icon--mint::before {
  inset: 0.22rem 0.12rem;
  border: 1.8px solid #54d0a0;
  border-radius: 0.18rem;
}

.cogs-icon--mint::after {
  left: 0.18rem;
  right: 0.18rem;
  top: 0.44rem;
  height: 0.1rem;
  background: #54d0a0;
  border-radius: 999px;
}

.cogs-icon--gold::before {
  left: 0.18rem;
  top: 0.2rem;
  width: 0.62rem;
  height: 0.54rem;
  border: 1.8px solid #efc03d;
  border-radius: 0.22rem 0.22rem 0.38rem 0.38rem;
}

.cogs-icon--gold::after {
  left: 0.34rem;
  top: 0.08rem;
  width: 0.32rem;
  height: 0.18rem;
  border: 1.8px solid #efc03d;
  border-bottom: 0;
  border-radius: 0.28rem 0.28rem 0 0;
}

.cogs-card-title {
  margin: 0 0 0.35rem;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cogs-card-copy {
  margin: 0 0 0.18rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.55;
}

.cogs-card-note {
  margin: 0;
  color: #a8afc2;
  font-size: 0.6rem;
  line-height: 1.45;
}

.cogs-card-bar {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  left: 1rem;
  height: 0.24rem;
  border-radius: 999px;
  background: #e9edf3;
  overflow: hidden;
}

.cogs-card-bar::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--cogs-progress, 26%);
  border-radius: inherit;
  transition: width 440ms ease-in-out;
  content: "";
}

.cogs-card--blue .cogs-card-bar::after {
  background: rgba(134, 170, 249, 0.82);
}

.cogs-card--purple .cogs-card-bar::after {
  background: rgba(184, 159, 249, 0.82);
}

.cogs-card--orange .cogs-card-bar::after {
  background: rgba(249, 178, 101, 0.9);
}

.cogs-card--pink .cogs-card-bar::after {
  background: rgba(255, 145, 190, 0.88);
}

.cogs-card--mint .cogs-card-bar::after {
  background: rgba(102, 211, 168, 0.9);
}

.cogs-card--gold .cogs-card-bar::after {
  background: rgba(247, 201, 72, 0.9);
}

.scheme-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.panel-chip--scheme {
  width: 2.55rem;
  height: 2.55rem;
}

.scheme-chip-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

.scheme-chip-spark {
  position: relative;
  width: 0.95rem;
  height: 0.95rem;
}

.scheme-chip-spark::before,
.scheme-chip-spark::after {
  position: absolute;
  content: "";
}

.scheme-chip-spark::before {
  inset: 0.18rem;
  border: 2px solid #7ec7f1;
  border-radius: 0.32rem;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.scheme-chip-spark::after {
  top: 0.08rem;
  left: 0.56rem;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 999px;
  background: #7ec7f1;
}

.scheme-section {
  display: grid;
  gap: 0.75rem;
}

.scheme-section + .scheme-section {
  margin-top: 1.9rem;
}

.scheme-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #a6aec1;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scheme-section-icon {
  position: relative;
  width: 0.74rem;
  height: 0.74rem;
  flex: 0 0 auto;
}

.scheme-section-icon-image {
  display: block;
  width: 0.74rem;
  height: 0.74rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.scheme-section-icon::before,
.scheme-section-icon::after {
  position: absolute;
  content: "";
}

.scheme-section-icon--ratio::before {
  inset: 0.1rem;
  border: 1.8px solid #7ec7f1;
  border-radius: 0.2rem;
  opacity: 0.95;
}

.scheme-section-icon--ratio::after {
  left: 0;
  top: 0.16rem;
  width: 0.42rem;
  height: 0.42rem;
  border: 1.8px solid #a8d7f3;
  border-radius: 0.16rem;
}

.scheme-section-icon--support::before {
  inset: 0.14rem;
  border: 1.8px solid #f1a1a8;
  border-radius: 999px;
}

.scheme-section-icon--support::after {
  top: 0.26rem;
  left: 0.31rem;
  width: 0.12rem;
  height: 0.12rem;
  border-radius: 999px;
  background: #f1a1a8;
}

.scheme-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.92rem 1rem;
  border-radius: 20px;
}

.scheme-share-label {
  color: #6e7488;
  font-size: 0.82rem;
  font-weight: 700;
}

.scheme-share-value {
  color: var(--cyan);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
  margin-bottom: 1.15rem;
}

.bonus-card {
  padding: 0.9rem 1rem;
  border-radius: 20px;
  background: var(--surface-pill-soft);
  transition: box-shadow 240ms ease, transform 240ms ease, opacity 240ms ease, color 240ms ease;
}

.bonus-card--locked {
  background: transparent;
  box-shadow: none !important;
  border: 0;
}

.bonus-card--unlocked {
  transform: translateY(0);
}

.bonus-card-label {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.bonus-card-value {
  display: block;
  margin-bottom: 0.22rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #c2c8d8;
}

.bonus-card-value--green {
  color: var(--green);
}

.bonus-card-value--cyan {
  color: var(--cyan);
}

.bonus-card-copy {
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.45;
}

.bonus-card--locked .bonus-card-label,
.bonus-card--locked .bonus-card-copy {
  color: #b9bfd0;
}

.bonus-card--locked .bonus-card-value {
  color: #c7cddb;
}

.support-box {
  display: block;
  margin-top: 2.65rem;
  padding-top: 0.55rem;
}

.support-box .scheme-section-label {
  margin-bottom: 0.75rem;
}

.support-charge-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  text-align: left;
  cursor: pointer;
}

.support-charge-copy {
  min-width: 0;
}

.support-charge-copy strong {
  display: block;
  margin-bottom: 0.28rem;
  color: #52586b;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.support-description {
  max-width: 20.5rem;
  color: #99a2b7;
  font-size: 0.58rem;
  line-height: 1.35;
}

.support-charge-value-group {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  flex: 0 0 auto;
}

.support-charge-value-group strong {
  color: var(--danger);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.support-charge-toggle {
  width: 0.42rem;
  height: 0.42rem;
  border-top: 1.8px solid #bcc4d5;
  border-right: 1.8px solid #bcc4d5;
  transform: rotate(-45deg) translateY(1px);
  transition: transform 180ms ease;
}

.support-charge-card.is-collapsed .support-charge-toggle {
  transform: rotate(135deg) translateY(-1px);
}

.support-charge-card:focus-visible {
  outline: 2px solid rgba(126, 199, 241, 0.45);
  outline-offset: 2px;
}

.support-list-card {
  margin-top: 0.8rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 22px;
  overflow: hidden;
  max-height: 48rem;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 280ms ease,
    opacity 180ms ease,
    transform 220ms ease,
    margin-top 220ms ease,
    padding-top 220ms ease,
    padding-bottom 220ms ease;
}

.support-list-card.is-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.support-list {
  display: grid;
  gap: 0.68rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-list li {
  position: relative;
  padding-left: 0.92rem;
}

.support-list li::before {
  position: absolute;
  top: 0.42rem;
  left: 0;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: #aeb6c7;
  content: "";
}

.support-list-title {
  display: block;
  margin-bottom: 0.14rem;
  color: #8e96aa;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-list-copy {
  display: block;
  color: #98a1b5;
  font-size: 0.62rem;
  line-height: 1.5;
}

.earnings-hero {
  position: relative;
  z-index: 1;
  padding: 0.22rem 0 1.35rem;
  margin-bottom: 1.2rem;
}

.earnings-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(224, 229, 238, 0) 0%, rgba(224, 229, 238, 0.78) 12%, rgba(224, 229, 238, 0.78) 88%, rgba(224, 229, 238, 0) 100%);
  content: "";
}

.earnings-label {
  color: rgba(23, 25, 35, 0.38);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.earnings-total {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.earnings-copy {
  color: var(--muted-strong);
  font-size: 0.8rem;
  line-height: 1.7;
}

.breakdown-card {
  display: grid;
  gap: 0.72rem;
  background: transparent;
  position: relative;
  z-index: 1;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.08rem;
  border: 1px solid #edf1f8;
  border-radius: 20px;
  background: var(--surface-pill-soft);
}

.earnings-panel .breakdown-row,
.earnings-panel .bonus-row,
.earnings-panel .status-button {
  box-shadow:
    inset 4px 4px 8px rgba(228, 232, 239, 0.72),
    inset -5px -5px 10px rgba(255, 255, 255, 0.98),
    1px 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.breakdown-row span,
.breakdown-row-copy {
  color: var(--muted-strong);
  font-size: 0.77rem;
  font-weight: 700;
}

.breakdown-row-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.breakdown-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.72rem;
  color: #c7cedd;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}

.breakdown-marker--ghost {
  opacity: 0;
}

.breakdown-marker--gold {
  width: 0.34rem;
  height: 2px;
  border-radius: 999px;
  background: var(--yellow);
}

.breakdown-row strong {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.breakdown-row--negative strong {
  color: var(--danger);
}

.breakdown-row--accent strong {
  color: var(--green);
}

.breakdown-row--total span,
.breakdown-row--total strong {
  color: var(--text);
  font-size: 0.95rem;
}

.percent-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.38rem;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(50, 200, 176, 0.14);
  color: var(--green);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.bonus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #f4f4f9 0%, #efeff5 100%);
}

.bonus-row span {
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.bonus-row strong {
  color: rgba(23, 25, 35, 0.22);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.bonus-row--active strong {
  color: var(--yellow-deep);
}

.status-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 1rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4f4f9 0%, #efeff5 100%);
  color: rgba(23, 25, 35, 0.34);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: default;
}

.status-button-icon {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7d2 0%, #ffeeb2 100%);
  box-shadow:
    0 8px 18px rgba(226, 184, 56, 0.26),
    0 1px 0 rgba(255, 247, 210, 0.85) inset !important;
}

.status-button-icon img {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
}

.status-button-label {
  display: block;
  line-height: 1.05;
}

.status-button--active {
  background: #ffd15a !important;
  color: #1f2430;
  box-shadow:
    0 18px 32px rgba(255, 209, 90, 0.34),
    0 6px 14px rgba(226, 184, 56, 0.22),
    inset 1px 1px 0 rgba(255, 243, 196, 0.82),
    inset -1px -1px 0 rgba(226, 184, 50, 0.24) !important;
}

.status-button--annual {
  justify-content: flex-start;
  padding: 0.82rem 1.05rem 0.82rem 0.9rem;
}

.status-button--annual .status-button-icon {
  display: inline-flex;
}

.page-footer {
  margin-top: 2.4rem;
  color: rgba(144, 151, 171, 0.5);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

.deep-pill-in {
  background: linear-gradient(180deg, #f4f4f9 0%, #efeff5 100%) !important;
  box-shadow:
    inset 5px 5px 10px rgba(228, 232, 239, 0.78),
    inset -6px -6px 12px rgba(255, 255, 255, 0.98),
    1px 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.deep-pill-out {
  background: linear-gradient(180deg, #f6f6fb 0%, #f1f1f7 100%) !important;
  box-shadow:
    -7px -7px 14px rgba(255, 255, 255, 0.98),
    12px 14px 24px rgba(213, 219, 230, 0.46),
    4px 5px 10px rgba(195, 202, 215, 0.24),
    inset 1px 1px 0 rgba(255, 255, 255, 0.92),
    inset -1px -1px 0 rgba(230, 234, 242, 0.88) !important;
}

.panel.panel--soft.deep-pill-out {
  background: #f2f2f7 !important;
  box-shadow:
    -10px -10px 22px rgba(255, 255, 255, 0.96),
    14px 16px 28px rgba(211, 217, 228, 0.34),
    4px 5px 10px rgba(194, 201, 214, 0.18),
    inset 1px 1px 0 rgba(255, 255, 255, 0.9),
    inset -1px -1px 0 rgba(231, 235, 243, 0.78) !important;
}

.panel.deep-pill-out {
  box-shadow:
    -10px -10px 22px rgba(255, 255, 255, 0.98),
    18px 22px 36px rgba(212, 218, 229, 0.44),
    6px 8px 14px rgba(194, 201, 214, 0.2),
    inset 1px 1px 0 rgba(255, 255, 255, 0.92),
    inset -1px -1px 0 rgba(230, 234, 242, 0.86) !important;
}

.stepper-button.deep-pill-out {
  background: #f2f2f7 !important;
  box-shadow:
    4px 4px 8px rgba(0, 0, 0, 0.03),
    -4px -4px 8px rgba(255, 255, 255, 0.8) !important;
}

.target-icon.deep-pill-out {
  background: #f2f2f7 !important;
  box-shadow:
    4px 4px 8px rgba(0, 0, 0, 0.03),
    -4px -4px 8px rgba(255, 255, 255, 0.8) !important;
}

.cogs-card.deep-pill-out,
.bonus-card.deep-pill-out,
.segmented-control-button.deep-pill-out,
.cogs-icon-shell.deep-pill-out {
  box-shadow:
    -6px -6px 12px rgba(255, 255, 255, 0.98),
    11px 12px 20px rgba(212, 218, 229, 0.42),
    3px 4px 7px rgba(194, 201, 214, 0.2),
    inset 1px 1px 0 rgba(255, 255, 255, 0.92),
    inset -1px -1px 0 rgba(230, 234, 242, 0.86) !important;
}

.target-strip.deep-pill-in,
.breakdown-row.deep-pill-in,
.bonus-row.deep-pill-in,
.status-button.deep-pill-in,
.target-icon.deep-pill-in,
.stepper-value.deep-pill-in,
.cogs-card-rate-input-shell.deep-pill-in,
.cogs-card-rate-select-shell.deep-pill-in {
  box-shadow:
    inset 5px 5px 10px rgba(229, 233, 240, 0.78),
    inset -6px -6px 12px rgba(255, 255, 255, 0.99),
    1px 1px 0 rgba(255, 255, 255, 0.76) !important;
}

.panel-chip.deep-pill-in {
  background: #f2f2f7 !important;
  box-shadow:
    inset 4px 4px 8px rgba(0, 0, 0, 0.05),
    inset -4px -4px 8px rgba(255, 255, 255, 0.8) !important;
}

.support-list-card.deep-pill-in {
  background: #f2f2f7 !important;
  box-shadow:
    inset 4px 4px 8px rgba(0, 0, 0, 0.05),
    inset -4px -4px 8px rgba(255, 255, 255, 0.8) !important;
}

.status-button.status-button--active.deep-pill-out {
  background: #ffd15a !important;
  box-shadow:
    0 18px 32px rgba(255, 209, 90, 0.34),
    0 6px 14px rgba(226, 184, 56, 0.22),
    inset 1px 1px 0 rgba(255, 243, 196, 0.82),
    inset -1px -1px 0 rgba(226, 184, 50, 0.24) !important;
}

.status-button-icon.deep-pill-out {
  background: linear-gradient(180deg, #fff7d2 0%, #ffeeb2 100%) !important;
  box-shadow:
    0 8px 18px rgba(226, 184, 56, 0.26),
    0 1px 0 rgba(255, 247, 210, 0.85) inset !important;
}

@media (max-width: 991.98px) {
  .calculator-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-header {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .forecast-page {
    padding: 1.25rem 0 2.5rem;
  }

  .service-switcher {
    flex-direction: column;
    gap: 0.75rem;
  }

  .service-switcher .control-label {
    min-width: auto;
    text-align: center;
  }

  .segmented-control {
    flex-wrap: wrap;
    justify-content: center;
  }

  .target-strip,
  .cogs-grid,
  .bonus-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .target-strip {
    gap: 0.2rem;
  }

  .target-pill:first-child::after {
    display: none;
  }

  .revenue-panel,
  .scheme-panel,
  .earnings-panel {
    padding: 1rem;
    padding-bottom: 4rem;
  }

  .support-list-card {
    max-height: 80rem;
  }

  .breakdown-row {
    padding: 0.9rem;
  }
}

@media (max-width: 479.98px) {
  .projects-row,
  .support-charge,
  .breakdown-row,
  .bonus-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .breakdown-row strong,
  .bonus-row strong {
    white-space: normal;
  }
}
