* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #080b12;
  color: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  min-height: 100vh;
  overflow: hidden;
}

.app-shell {
  --stream-panel-pad: clamp(10px, 1.35vh, 18px);
  --control-panel-width: 460px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.page-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 12px;
  background: #070b12;
  border-right: 2px solid #242b3b;
  box-shadow: 10px 0 28px rgba(0, 0, 0, 0.28);
}

.page-nav-btn {
  display: grid;
  gap: 6px;
  min-height: 62px;
  align-items: center;
  justify-items: stretch;
  padding: 10px;
  color: #9aa6bb;
  background: #101722;
  border: 1px solid #263144;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  white-space: nowrap;
}

.page-nav-btn span {
  display: block;
  justify-self: end;
  color: #ff7891;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.72rem;
}

.page-nav-btn.active,
.page-nav-btn[aria-current="page"],
.page-nav-btn:hover {
  color: #ffffff;
  background: #1b2130;
  border-color: #ff5e7e;
}

.page-stage,
.app-page {
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.app-page {
  display: none;
}

.app-page.active {
  display: block;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(480px, 1fr) var(--control-panel-width);
  height: 100%;
  overflow: hidden;
}

.stream-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 420px;
  height: 100vh;
  height: 100dvh;
  padding: var(--stream-panel-pad);
  overflow: hidden;
  background: #020711;
  border-top: none;
  border-bottom: none;
}

.control-panel,
.salary-control-panel {
  width: var(--control-panel-width);
  min-width: var(--control-panel-width);
  max-width: var(--control-panel-width);
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  padding: 18px;
  background: #070b12;
  border-left: 2px solid #242b3b;
  box-shadow: -14px 0 36px rgba(0, 0, 0, 0.36);
}

.display-card {
  --display-card-fit-scale: 1;
  --display-card-design-width: 820px;
  --display-card-design-height: 1260px;
  --display-card-live-fit-height: 1080px;
  --stream-card-pad: clamp(11px, 1.45vh, 22px);
  --stream-card-pad-bottom: clamp(10px, 1vh, 14px);
  width: var(--display-card-design-width);
  max-width: none;
  flex: 0 0 auto;
  min-height: var(--display-card-design-height);
  overflow: hidden;
  transform: scale(var(--display-card-fit-scale));
  transform-origin: center center;
  border: 1px solid rgba(92, 114, 149, 0.28);
  border-top: 0;
  border-bottom: 0;
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.48);
}

.stream-card {
  --stream-bg-offset: 0px;
  padding: var(--stream-card-pad);
  padding-bottom: var(--stream-card-pad-bottom);
  background:
    linear-gradient(#030811, #030811),
    linear-gradient(180deg, rgba(3, 8, 17, 0) 0%, rgba(3, 8, 17, 0.88) var(--stream-bg-offset), rgba(3, 8, 17, 0) calc(var(--stream-bg-offset) + 82px)),
    linear-gradient(180deg, rgba(3, 8, 17, 0) 0%, rgba(3, 8, 17, 0.1) 31%, rgba(3, 8, 17, 0.58) 58%, rgba(3, 8, 17, 0.9) 100%),
    url("https://raw.githubusercontent.com/azrizMY/car-images/d09d0ef1276303ae75bc8361093b6d75f24eddb1/images/background.png");
  background-size: 100% var(--stream-bg-offset), 100% 100%, 100% 100%, 75% auto;
  background-position: center top, center top, center var(--stream-bg-offset), 0% var(--stream-bg-offset);
  background-repeat: no-repeat;
  background-color: #030811;
  border-radius: 0;
}

.stream-card.live-mode {
  --stream-bg-offset: clamp(78px, 12.2vh, 160px);
  min-height: auto;
  padding-top: var(--stream-bg-offset);
}

.stream-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: clamp(10px, 1.45vh, 18px);
  align-items: stretch;
  margin-bottom: clamp(8px, 1.2vh, 16px);
}

.promo-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.45vh, 18px);
  min-height: clamp(252px, 32vh, 350px);
  padding: clamp(14px, 2vh, 24px) clamp(16px, 2.1vh, 26px) clamp(14px, 1.9vh, 22px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 4%,
      rgba(76, 102, 147, 0.24),
      rgba(6, 12, 24, 0) 56%),
    linear-gradient(145deg, rgba(13, 23, 39, 0.94), rgba(5, 10, 19, 0.92)),
    linear-gradient(#0b1322, #0b1322);
  border: 1px solid rgba(126, 148, 185, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 38px rgba(255, 255, 255, 0.025),
    0 18px 34px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.proton-logo {
  height: clamp(58px, 7.1vh, 86px);
  padding: 0 2px clamp(10px, 1.4vh, 18px);
  border-bottom: 2px solid #ff3355;
}

.proton-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.agent-info {
  min-width: 0;
  padding: 0;
  text-align: left;
}

.agent-name {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
  color: white;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.26);
}

.agent-role {
  margin-top: 4px;
  color: #ff425d;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vh, 14px);
  margin-top: clamp(9px, 1.35vh, 18px);
}

.phone-icon {
  --themed-icon-size: 42px;
  --themed-icon-svg-size: 46%;
  --themed-icon-color: #ffffff;
}

.agent-contact {
  margin-top: 2px;
  color: #ffffff;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 700;
  text-decoration: none;
  -webkit-text-fill-color: currentColor;
}

.agent-contact:link,
.agent-contact:visited,
.agent-contact:hover,
.agent-contact:active {
  color: #ffffff;
  text-decoration: none;
}

.qr-section {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  padding-top: clamp(10px, 1.65vh, 20px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.45vh, 18px);
}

.qr-code {
  width: clamp(72px, 8.8vh, 102px);
  height: clamp(72px, 8.8vh, 102px);
  flex: 0 0 auto;
  padding: 5px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.38), 0 8px 20px rgba(0, 0, 0, 0.24);
}

.qr-code img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.scan-text {
  color: white;
  font-weight: 800;
  font-size: clamp(0.82rem, 1.35vw, 1rem);
  letter-spacing: 0.03em;
}

.whatsapp-text {
  color: #54efa6;
  font-weight: 900;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  letter-spacing: 0.03em;
}

.stream-car-area {
  display: grid;
  grid-template-rows: clamp(176px, 21vh, 238px) auto;
  align-content: end;
  height: 100%;
  min-width: 0;
  padding: 0 clamp(22px, 3.2vw, 46px);
  margin: 0;
  gap: clamp(4px, 0.7vh, 8px);
}

.stream-car-img {
  --car-model-y: 0px;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  align-self: end;
  justify-self: center;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
  margin: 0;
  transform-origin: center bottom;
  transform: translateY(calc(11px + var(--car-model-y))) scale(1);
}

.stream-card.quotation-mode .stream-car-img {
  transform: translateY(calc(var(--quote-car-y, 6px) + var(--car-model-y))) scale(var(--quote-car-scale, 0.95));
}

.stream-car-img.car-model-x70,
.stream-car-img.car-model-x90 {
  --car-model-y: 16px;
}

.model-price-row {
  --hero-main-size: clamp(1.75rem, 3.1vw, 3rem);
  --hero-sub-size: clamp(0.82rem, 1.55vw, 1.3rem);
  --hero-stack-height: calc((var(--hero-main-size) * 0.9) + (var(--hero-sub-size) * 1.02) + 4px);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: clamp(10px, 1.2vh, 16px);
  margin: clamp(2px, 0.6vh, 6px) calc(clamp(22px, 3.2vw, 46px) * -1) 0;
}

.hero-model {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 5px solid #ff3355;
  padding-left: 14px;
  flex: 1;
  min-height: var(--hero-stack-height);
  min-width: 0;
}

.model-main {
  color: white;
  font-size: var(--hero-main-size);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.model-variant {
  margin-top: 4px;
  color: #ff3355;
  font-size: var(--hero-sub-size);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 981px) and (hover: hover) {
  .stream-panel {
    padding-top: 0;
    padding-bottom: 0;
  }

  .salary-page .salary-showcase {
    padding-top: 0;
    padding-bottom: 0;
  }

  .stream-card {
    --stream-card-pad: 16px;
    --stream-card-pad-bottom: 11px;
  }

  .stream-card.live-mode {
    --stream-bg-offset: 132px;
  }

  .stream-showcase {
    min-height: 346px;
    height: auto;
    gap: 16px;
    margin-bottom: 13px;
  }

  .promo-panel {
    min-height: 0;
    height: auto;
    align-self: stretch;
  }

  .stream-car-area {
    grid-template-rows: 227px auto;
    padding-inline: 46px;
    gap: 8px;
  }

  .model-price-row {
    --hero-main-size: 3rem;
    --hero-sub-size: 1.3rem;
  }
}

.price-label {
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.7;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

@media (max-width: 559px) {
  .model-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.hero-metric {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(12px, 1.7vh, 22px);
  align-items: center;
  margin-top: clamp(6px, 0.9vh, 10px);
  padding: clamp(12px, 1.65vh, 20px) clamp(16px, 2.2vh, 28px);
  background:
    linear-gradient(90deg, rgba(255, 49, 82, 0.13), rgba(10, 17, 30, 0.86) 34%, rgba(10, 17, 30, 0.78)),
    linear-gradient(#0a111e, #0a111e);
  color: #ffffff;
  border: 1px solid rgba(116, 137, 170, 0.32);
  border-left: 8px solid #ff3355;
  border-radius: 8px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2);
}

.hero-label,
.summary-item span,
.price-label,
.monthly-header,
.control-group label {
  color: #9aa6bb;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-value {
  display: block;
  color: #ffffff;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(1.85rem, 4.35vw, 3.9rem);
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}

.summary-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(7px, 0.9vh, 10px);
  margin-top: clamp(7px, 0.9vh, 10px);
}

.summary-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.4vh, 18px);
  min-width: 0;
  padding: clamp(11px, 1.45vh, 18px) clamp(14px, 1.8vh, 22px);
  background: linear-gradient(rgba(10, 17, 30, 0.8), rgba(10, 17, 30, 0.8)), linear-gradient(#0a111e, #0a111e);
  border: 1px solid rgba(116, 137, 170, 0.32);
  border-radius: 8px;
}

.summary-item strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.summary-item .themed-icon {
  color: var(--themed-icon-color);
}

.metric-copy {
  display: block;
  min-width: 0;
}

.themed-icon {
  --themed-icon-size: 44px;
  --themed-icon-svg-size: 58%;
  --themed-icon-color: #ff8ea0;
  display: inline-flex;
  width: var(--themed-icon-size);
  height: var(--themed-icon-size);
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--themed-icon-color);
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 143, 162, 0.28), rgba(165, 25, 48, 0.24) 56%, rgba(34, 16, 29, 0.84)),
    linear-gradient(#311526, #311526);
  border: 1px solid rgba(255, 82, 112, 0.55);
  box-shadow: inset 0 0 18px rgba(255, 75, 107, 0.18), 0 0 26px rgba(255, 51, 85, 0.12);
}

.metric-icon {
  --themed-icon-size: clamp(34px, 4vh, 44px);
}

.metric-icon-large {
  --themed-icon-size: clamp(42px, 5.1vh, 58px);
}

.themed-icon svg {
  width: var(--themed-icon-svg-size);
  height: var(--themed-icon-svg-size);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.monthly-table {
  margin-top: clamp(8px, 1vh, 12px);
  background: linear-gradient(rgba(9, 15, 25, 0.82), rgba(9, 15, 25, 0.82)), linear-gradient(#09111d, #09111d);
  border: 1px solid rgba(116, 137, 170, 0.32);
  border-radius: 8px;
  overflow: hidden;
}

.monthly-header,
.monthly-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
}

.monthly-header {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: clamp(5px, 0.65vh, 8px) 16px;
  border-bottom: 1px solid #273244;
}

.monthly-header span:first-child {
  text-align: left;
}

.monthly-header span:last-child {
  text-align: right;
}

.monthly-row {
  min-height: clamp(36px, 4.25vh, 48px);
  padding: clamp(5px, 0.65vh, 8px) 16px;
  border-bottom: 1px solid #1f2939;
}

.monthly-row:last-child {
  border-bottom: 0;
}

.monthly-row.active-monthly {
  background:
    linear-gradient(90deg, rgba(58, 239, 158, 0.28), rgba(39, 113, 78, 0.32)),
    linear-gradient(#102a25, #102a25);
  border-left: 5px solid #48e69a;
  padding-left: 11px;
}

.years-col {
  color: #dbe4f7;
  font-size: 1rem;
  font-weight: 800;
}

.payment-col {
  justify-self: end;
  color: #f4f7ff;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1.05;
}

.active-monthly .years-col,
.active-monthly .payment-col {
  color: #54efa6;
}

.price-grid {
  margin-top: clamp(8px, 1vh, 12px);
  padding: clamp(8px, 1vh, 12px) clamp(16px, 2vh, 24px);
  background: linear-gradient(rgba(7, 13, 24, 0.84), rgba(7, 13, 24, 0.84)), linear-gradient(#070d18, #070d18);
  border: 1px solid rgba(116, 137, 170, 0.32);
  border-radius: 8px;
}

.price-grid .price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(10px, 1.4vh, 18px);
  align-items: center;
  padding: clamp(6px, 0.9vh, 10px) 0;
  border-bottom: 1px dashed rgba(116, 137, 170, 0.18);
}

.price-grid .price-row:last-child {
  border-bottom: 0;
}

.price-value {
  color: #e9eefb;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(1.08rem, 1.55vw, 1.28rem);
  font-weight: 800;
  text-align: right;
}

.interest-value {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  justify-content: flex-end;
  max-width: 100%;
}

.price-grid .price-label {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.4vh, 18px);
  min-width: 0;
  color: #c8d3e6;
  font-size: clamp(0.98rem, 1.38vw, 1.18rem);
  letter-spacing: 0.07em;
  opacity: 1;
}

.price-grid-icon {
  --price-grid-icon-size: clamp(24px, 3.1vh, 34px);
  --price-grid-icon-svg-size: 82%;
  --price-grid-icon-color: #d7e1f5;
  display: inline-flex;
  width: var(--price-grid-icon-size);
  height: var(--price-grid-icon-size);
  flex: 0 0 var(--price-grid-icon-size);
  align-items: center;
  justify-content: center;
  color: var(--price-grid-icon-color);
  opacity: 0.95;
}

.price-grid-icon svg {
  width: var(--price-grid-icon-svg-size);
  height: var(--price-grid-icon-svg-size);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.display-card.quotation-mode {
  --display-card-design-width: 900px;
  min-height: auto;
  border: 1px solid rgba(92, 114, 149, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.42);
}

.salary-card.quotation-mode {
  --display-card-design-width: 820px;
  background:
    radial-gradient(ellipse at 22% 12%, rgba(20, 35, 58, 0.36), rgba(7, 11, 18, 0) 46%),
    linear-gradient(180deg, rgba(9, 15, 25, 0.98), rgba(7, 11, 18, 0.96) 32%, rgba(7, 11, 18, 0.92) 100%);
}

.rebate-value {
  color: #54efa6;
}

.ncd-badge {
  color: #ff7891;
  font-size: 0.78em;
  font-weight: 800;
}

.price-label-subline {
  white-space: nowrap;
}

.price-grid .price-label .ncd-badge,
.price-grid .price-label .price-label-subline {
  display: block;
  margin-top: 2px;
  line-height: 1.1;
}

.price-grid .price-label #insuranceLabel,
.price-grid .price-label .otr-label-text {
  line-height: 1.18;
}

.control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  margin-bottom: 14px;
}

.control-title {
  margin-bottom: 0;
  padding-left: 10px;
  border-left: 4px solid #d51f3c;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.control-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-toggle-btn {
  padding: 6px 14px;
  background: #202838;
  border: 1px solid #30394d;
  border-radius: 20px;
  color: #d7e1f5;
  font-weight: 700;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mode-toggle-btn.live {
  background: #d51f3c;
  border-color: #ff6f87;
  color: white;
}

.mode-toggle-btn.quotation {
  background: #1e3a5f;
  border-color: #3b82f6;
  color: white;
}

.mode-toggle-btn:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.control-card {
  margin-bottom: 12px;
  padding: 12px;
  background: #151a25;
  border: 1px solid #293243;
}

.control-card-title {
  margin-bottom: 10px;
  color: #ff94a8;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.control-group {
  margin-bottom: 10px;
}

.control-group:last-child {
  margin-bottom: 0;
}

.control-group label {
  display: block;
  margin-bottom: 5px;
}

.control-group input,
.control-group select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: #ffffff;
  background: #080c14;
  border: 1px solid #313b50;
  border-radius: 4px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.85rem;
}

.control-group input:focus,
.control-group select:focus {
  outline: none;
  border-color: #ff5e7e;
  box-shadow: 0 0 0 2px rgba(255, 94, 126, 0.18);
}

.control-group input[readonly] {
  color: #b7c3d8;
  background: #1c2330;
}

.car-selector-grid {
  --car-option-height: 30px;
  display: grid;
  gap: 8px;
}

.car-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.model-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--car-option-height);
  min-height: var(--car-option-height);
  padding: 5px 6px;
  color: #ff94a8;
  background: #241923;
  border: 1px solid #3a2531;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.car-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.car-select-btn,
.tenure-buttons .tenure-btn {
  min-height: var(--car-option-height, 30px);
  padding: 6px 8px;
  color: #d7e1f5;
  background: #202838;
  border: 1px solid #30394d;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.car-select-btn {
  height: var(--car-option-height);
}

.car-select-btn:hover,
.tenure-buttons .tenure-btn:hover {
  background: #2a3448;
}

.car-select-btn.active-car,
.tenure-buttons .tenure-btn.active-tenure {
  color: #ffffff;
  background: #d51f3c;
  border-color: #ff6f87;
}

.tenure-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.advanced-controls-btn {
  width: auto;
  min-height: 0;
  margin-top: 2px;
  padding: 0;
  color: #9aa6bb;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s, opacity 0.15s;
}

.advanced-controls-btn:hover,
.advanced-controls-btn.active {
  color: #ff94a8;
}

.add-ons-card {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(116, 137, 170, 0.24);
}

.add-ons-card.add-ons-visible {
  display: block;
}

.add-ons-card .control-card-title {
  margin-bottom: 8px;
  font-size: 0.72rem;
  color: #b7c3d8;
}

.checkbox-group {
  display: grid;
  gap: 6px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin: 0;
  color: #d7e1f5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #d51f3c;
}

.info-badge {
  margin-top: 8px;
  padding: 8px;
  color: #aab5c8;
  background: #0d111a;
  border: 1px solid #242d3d;
  font-size: 0.68rem;
  line-height: 1.3;
}

.salary-page.active {
  display: grid;
  grid-template-columns: minmax(480px, 1fr) var(--control-panel-width);
  height: 100%;
  background: #070b12;
}

.salary-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 420px;
  height: 100vh;
  height: 100dvh;
  padding: var(--stream-panel-pad);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 7, 17, 0.16), rgba(2, 7, 17, 0.92)),
    linear-gradient(90deg, rgba(2, 7, 17, 0.16), rgba(2, 7, 17, 0.82)),
    url("https://raw.githubusercontent.com/azrizMY/car-images/d09d0ef1276303ae75bc8361093b6d75f24eddb1/images/background-salary.png");
  background-size: 100% 100%, 100% 100%, cover;
  background-position: center, center, center;
}

.salary-card {
  --stream-bg-offset: 0px;
  position: relative;
  isolation: isolate;
  padding: var(--stream-card-pad);
  padding-bottom: var(--stream-card-pad-bottom);
  background:
    radial-gradient(ellipse at 22% 12%, rgba(20, 35, 58, 0.36), rgba(7, 11, 18, 0) 46%),
    linear-gradient(180deg, rgba(9, 15, 25, 0.98), rgba(7, 11, 18, 0.96) 32%, rgba(7, 11, 18, 0.92) 100%);
  background-size: 100% 100%, 100% 100%;
  background-position: center top, center;
  background-repeat: no-repeat;
  background-color: #070b12;
  border-radius: 0;
}

.salary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -1;
  height: clamp(210px, 31vh, 340px);
  pointer-events: none;
  opacity: 0;
}

.salary-card.live-mode {
  --stream-bg-offset: clamp(78px, 12.2vh, 160px);
  --salary-hero-top-offset: 120px;
  min-height: var(--display-card-design-height);
  padding-top: var(--stream-bg-offset);
}

.salary-card.live-mode::before {
  opacity: 1;
}

.salary-card.live-mode .salary-hero {
  grid-template-columns: clamp(190px, 27vw, 270px) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 40px);
  align-items: center;
  margin-bottom: 18px;
}

.salary-card.live-mode .salary-logo {
  max-height: 118px;
}

.salary-card.live-mode .salary-hero h1 {
  margin-top: 6px;
  font-size: clamp(2rem, 4.8vw, 3.25rem);
  line-height: 0.96;
}

.salary-card.live-mode .salary-hero p {
  margin-top: 8px;
  max-width: 58rem;
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.32;
}

.salary-card.live-mode .salary-input-wrap {
  height: 92px;
  min-height: 92px;
  margin-bottom: 10px;
}

.salary-card.live-mode .salary-input-label,
.salary-card.live-mode .salary-input-currency,
.salary-card.live-mode .salary-input-amount {
  height: 92px;
}

.salary-card.live-mode .salary-input-wrap input {
  height: 90px;
  padding: 0;
  font-size: 42px;
}

.salary-card.live-mode .eligibility-head {
  min-height: 32px;
}

.salary-card.live-mode .eligibility-row {
  min-height: 48px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.salary-card.live-mode .salary-note {
  margin-top: 7px;
}

.salary-card.live-mode .eligibility-car-img {
  width: 104px;
}

.salary-card.live-mode .eligibility-model {
  grid-template-columns: 104px minmax(0, 1fr);
}

.salary-card.live-mode .salary-promo-panel {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
  padding: 10px 0 var(--stream-card-pad-bottom);
}

.salary-card.live-mode .salary-service-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.salary-card.live-mode .salary-service-list span {
  min-height: 72px;
  padding: 4px 8px;
  font-size: 0.84rem;
}

.salary-card.live-mode .salary-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 96px;
  margin-bottom: 0;
  padding: 10px 16px;
  background:
    linear-gradient(135deg, rgba(13, 47, 40, 0.98), rgba(6, 29, 27, 0.98)),
    linear-gradient(#092822, #092822);
  border-color: rgba(84, 239, 166, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.2);
}

.salary-card.live-mode .salary-contact-panel .agent-name {
  font-size: 1.65rem;
}

.salary-card.live-mode .salary-contact-panel .agent-role {
  font-size: 0.72rem;
}

.salary-card.live-mode .salary-contact-panel .contact-row {
  margin-top: 7px;
}

.salary-card.live-mode .salary-contact-panel .phone-icon {
  --themed-icon-size: 34px;
}

.salary-card.live-mode .salary-contact-panel .agent-contact {
  color: #54efa6;
  font-size: 1.08rem;
  font-weight: 900;
  -webkit-text-fill-color: #54efa6;
}

.salary-card.live-mode .salary-contact-panel .qr-section {
  flex-direction: column;
  gap: 0;
  margin-top: 0;
  padding: 0;
  border: 0;
}

.salary-card.live-mode .salary-contact-panel .qr-code {
  width: 100px;
  height: 100px;
  padding: 4px;
}

.salary-card.live-mode .salary-promo-cta {
  display: none;
}

.salary-hero {
  position: relative;
  display: grid;
  grid-template-columns: clamp(180px, 23vw, 250px) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 40px);
  align-items: center;
  padding-top: var(--salary-hero-top-offset);
  margin-bottom: 24px;
  min-height: 0;
  background: transparent;
}

.salary-logo {
  width: 100%;
  max-height: 132px;
  object-fit: contain;
}

.salary-eyebrow {
  color: #ff7891;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.salary-hero h1 {
  margin-top: 6px;
  color: #ffffff;
  font-size: clamp(2.15rem, 5.15vw, 3.5rem);
  font-weight: 900;
  line-height: 0.95;
}

.salary-hero p {
  max-width: 58rem;
  margin-top: 8px;
  color: #d7e1f5;
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 700;
  line-height: 1.32;
}

.salary-input-wrap {
  display: grid;
  grid-template-columns: 209px 108px minmax(0, 1fr);
  height: 108px;
  min-height: 108px;
  margin-bottom: 14px;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
}

.salary-input-label {
  display: flex;
  gap: 14px;
  height: 100%;
  align-items: center;
  padding: 0 0 0 29px;
  color: #ffffff;
  border: 1px solid #ff4a77;
  border-radius: 14px 0 0 14px;
  background:
    radial-gradient(circle at 0% 50%, rgba(255, 65, 115, 0.1), transparent 60%) padding-box,
    linear-gradient(90deg, #2a0c1b 0%, #20101d 55%, #12131d 100%) padding-box;
  box-shadow: inset 0 0 12px rgba(255, 74, 119, 0.05);
  font-weight: 800;
  line-height: 1.13;
  position: relative;
}

.salary-input-label svg {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  color: #ff4d7f;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.salary-input-copy,
.salary-input-copy b,
.salary-input-copy em {
  display: block;
  font-style: normal;
}

.salary-input-copy em {
  margin-top: 2px;
  color: #d4d8e2;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.05;
  white-space: nowrap;
}

.salary-input-copy b {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: 0.35px;
}

.salary-input-currency {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #c8d0dd;
  background: #07111d;
  font-family: "Inter", Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  border-top: 1px solid rgba(90, 104, 128, 0.55);
  border-right: 0;
  border-bottom: 1px solid rgba(90, 104, 128, 0.55);
  border-left: 0;
}

.salary-input-amount {
  display: flex;
  height: 100%;
  min-width: 0;
  align-items: center;
  border-top: 1px solid rgba(90, 104, 128, 0.55);
  border-right: 1px solid rgba(90, 104, 128, 0.55);
  border-bottom: 1px solid rgba(90, 104, 128, 0.55);
  border-left: 0;
  border-radius: 0 14px 14px 0;
  background:
    radial-gradient(circle at 88% 50%, rgba(20, 50, 88, 0.22), transparent 42%),
    linear-gradient(90deg, #07101d 0%, #07121f 52%, #06111d 100%);
}

.salary-input-divider {
  width: 1px;
  height: 43px;
  flex: 0 0 1px;
  margin-right: 31px;
  background: rgba(90, 104, 128, 0.55);
}

.salary-input-wrap input {
  width: 100%;
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
  outline: none;
  font-family: "Inter", Arial, sans-serif;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-shadow: none;
}

.salary-input-wrap input::-webkit-outer-spin-button,
.salary-input-wrap input::-webkit-inner-spin-button,
.salary-control-panel input::-webkit-outer-spin-button,
.salary-control-panel input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.salary-input-wrap input[type="number"],
.salary-control-panel input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.salary-input-wrap input:focus {
  outline: none;
  box-shadow: none;
}

.eligibility-table {
  overflow: hidden;
  border: 1px solid rgba(116, 137, 170, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(rgba(9, 15, 25, 0.82), rgba(9, 15, 25, 0.82)),
    linear-gradient(#09111d, #09111d);
}

.eligibility-head,
.eligibility-row {
  display: grid;
  grid-template-columns: minmax(300px, 1.45fr) 150px minmax(0, 1.65fr);
  align-items: center;
}

.eligibility-head {
  min-height: 42px;
  padding: 0 16px;
  color: #9aa6bb;
  background: rgba(8, 13, 22, 0.94);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eligibility-row {
  min-height: 86px;
  padding: 10px 16px;
  border-top: 1px solid rgba(116, 137, 170, 0.16);
  background: rgba(7, 13, 23, 0.76);
}

.eligibility-row.pass {
  background:
    linear-gradient(90deg, rgba(72, 230, 154, 0.18), rgba(7, 13, 23, 0.82) 34%, rgba(7, 13, 23, 0.76)),
    linear-gradient(#07101c, #07101c);
  box-shadow: inset 5px 0 0 #48e69a;
}

.eligibility-row.fail {
  background:
    linear-gradient(90deg, rgba(255, 51, 85, 0.16), rgba(7, 13, 23, 0.84) 34%, rgba(7, 13, 23, 0.76)),
    linear-gradient(#07101c, #07101c);
  box-shadow: inset 5px 0 0 rgba(255, 51, 85, 0.82);
}

.eligibility-model {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  color: #ffffff;
  font-weight: 900;
  text-transform: uppercase;
}

.eligibility-model strong {
  font-size: clamp(1rem, 2vw, 1.42rem);
}

.eligibility-car-img {
  width: 132px;
  height: auto;
  max-height: none;
  align-self: center;
  justify-self: center;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.34));
}

.eligibility-status {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 5px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 900;
}

.eligibility-row.pass .eligibility-status {
  color: #83ffc0;
  background: rgba(72, 230, 154, 0.12);
}

.eligibility-row.fail .eligibility-status {
  color: #ff8ea0;
  background: rgba(255, 51, 85, 0.12);
}

.status-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
  line-height: 1;
}

.eligibility-row.pass .status-icon {
  color: #030811;
  background: #48e69a;
}

.eligibility-row.fail .status-icon {
  color: #030811;
  background: #ff7891;
}

.salary-promo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 2.4vw, 30px);
  align-items: center;
  margin-top: clamp(18px, 2.3vh, 28px);
  padding-top: clamp(18px, 2.4vh, 28px);
  border-top: 1px solid rgba(116, 137, 170, 0.18);
}

.salary-service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
  min-width: 0;
}

.salary-service-list span {
  display: inline-grid;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 86px;
  padding: 4px 6px;
  color: #d7e1f5;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: clamp(0.78rem, 1.1vw, 0.96rem);
  font-weight: 850;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.salary-service-list svg {
  width: clamp(26px, 4vw, 42px);
  height: auto;
  aspect-ratio: 1;
  color: #54efa6;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 12px rgba(84, 239, 166, 0.22));
}

.salary-contact-panel {
  display: none;
  grid-template-columns: minmax(220px, 1fr) minmax(230px, auto);
  gap: clamp(18px, 2.4vw, 30px);
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 160px;
  padding: clamp(16px, 2vh, 24px) clamp(18px, 2.4vw, 28px);
  background:
    radial-gradient(circle at 28% 4%, rgba(76, 102, 147, 0.24), rgba(6, 12, 24, 0) 56%),
    linear-gradient(145deg, rgba(13, 23, 39, 0.94), rgba(5, 10, 19, 0.92)),
    linear-gradient(#0b1322, #0b1322);
  border: 1px solid rgba(126, 148, 185, 0.34);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 38px rgba(255, 255, 255, 0.025),
    0 18px 34px rgba(0, 0, 0, 0.28);
}

.salary-contact-panel .agent-name {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.salary-contact-panel .contact-row {
  margin-top: 7px;
}

.salary-contact-panel .qr-section {
  margin-top: 0;
  padding-top: 0;
  padding-left: clamp(16px, 2vw, 24px);
  border-top: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.salary-contact-panel .qr-code {
  width: 100px;
  height: 100px;
}

.salary-promo-cta:link,
.salary-promo-cta:visited,
.salary-promo-cta:hover,
.salary-promo-cta:active {
  color: inherit;
  text-decoration: none;
}

.salary-promo-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  justify-self: end;
  width: fit-content;
  min-width: 0;
  padding: 9px 10px 9px 14px;
  background: linear-gradient(135deg, rgba(84, 239, 166, 0.14), rgba(84, 239, 166, 0.045));
  border: 1px solid rgba(84, 239, 166, 0.28);
  border-radius: 8px;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.salary-promo-cta span {
  display: grid;
  gap: 2px;
  line-height: 1;
  text-align: right;
}

.salary-promo-cta .agent-name {
  color: #ffffff;
  font-size: clamp(0.92rem, 1.25vw, 1.1rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.salary-promo-cta .agent-role {
  color: #ff4d7f;
  font-size: clamp(0.55rem, 0.78vw, 0.68rem);
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.salary-promo-cta b {
  color: #54efa6;
  margin-top: 3px;
  font-size: clamp(0.94rem, 1.2vw, 1.08rem);
  font-weight: 900;
  white-space: nowrap;
}

.salary-promo-cta img {
  width: clamp(68px, 8vh, 82px);
  height: clamp(68px, 8vh, 82px);
  padding: 3px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.salary-loan-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.salary-loan-mode label {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  color: #d7e1f5;
  background: #080c14;
  border: 1px solid #313b50;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.salary-loan-mode input {
  width: 15px;
  height: 15px;
  min-height: 0;
  padding: 0;
  accent-color: #d51f3c;
}

.variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.variant-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 5px;
  color: #d7e1f5;
  background: rgba(116, 137, 170, 0.16);
  border: 1px solid rgba(116, 137, 170, 0.18);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
}

a.variant-chip {
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

a.variant-chip:hover,
a.variant-chip:focus-visible {
  color: #ffffff;
  background: rgba(255, 77, 127, 0.24);
  border-color: rgba(255, 77, 127, 0.72);
  outline: none;
  transform: translateY(-1px);
}

a.variant-chip:active {
  transform: translateY(0);
}

.salary-note {
  margin-top: 12px;
  color: #d7e1f5;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 980px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .page-rail {
    position: sticky;
    top: 0;
    z-index: 40;
    flex-direction: row;
    padding: 10px;
    width: 100%;
    border-right: 0;
    border-bottom: 2px solid #242b3b;
  }

  .page-nav-btn {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    flex: 1;
    text-align: center;
  }

  .page-nav-btn span {
    justify-self: auto;
    line-height: 1;
  }

  .page-stage,
  .app-page {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .dashboard {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column-reverse;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .stream-panel {
    min-width: 0;
    height: auto;
    padding: 0;
    justify-content: stretch;
    overflow: visible;
  }

  #calculatorPage .stream-panel {
    align-items: stretch;
  }

  .control-panel,
  .salary-control-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 12px;
    align-items: start;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    max-height: none;
    margin-inline: 0;
    border-left: 0;
  }

  .salary-control-panel {
    border-top: 0;
  }

  .salary-page .display-card.salary-card {
    border: 0;
    box-shadow: none;
  }

  .salary-control-panel .control-card {
    border: 0;
  }

  .control-header {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .control-card {
    height: 100%;
    margin-bottom: 0;
    padding: clamp(12px, 2vw, 18px);
  }

  .control-group {
    margin-bottom: 12px;
  }

  .control-group input,
  .control-group select {
    min-height: 42px;
  }

  .control-card:has(.car-selector-grid) {
    grid-column: 1 / -1;
  }

  .stream-highlight-card {
    grid-column: 1 / -1;
    height: auto;
  }

  .car-selector-grid {
    --car-option-height: 34px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 10px 14px;
  }

  .car-row {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .salary-control-panel .control-card {
    grid-column: 1 / -1;
  }

  .salary-control-panel .control-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 12px;
  }

  .salary-control-panel .control-card-title,
  .salary-control-panel .info-badge {
    grid-column: 1 / -1;
  }

  .salary-control-panel .control-group {
    margin-bottom: 0;
  }

  .mode-toggle-btn {
    display: none;
  }

  .display-card,
  .stream-card {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .display-card.live-mode,
  .display-card.quotation-mode {
    min-height: 0;
  }

  #calculatorPage .display-card.stream-card {
    border: 0;
    border-top: 1px solid rgba(92, 114, 149, 0.28);
  }

  .salary-page.active {
    grid-template-columns: 1fr;
    height: auto;
  }

  .salary-showcase {
    justify-content: center;
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
    overflow: visible;
  }
}

@media (pointer: coarse) and (orientation: landscape) and (min-width: 981px) and (max-width: 1366px) and (max-height: 980px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .page-rail {
    position: sticky;
    top: 0;
    z-index: 40;
    flex-direction: row;
    padding: 10px;
    width: 100%;
    border-right: 0;
    border-bottom: 2px solid #242b3b;
  }

  .page-nav-btn {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    text-align: center;
  }

  .page-nav-btn span {
    justify-self: auto;
    line-height: 1;
  }

  .page-stage,
  .app-page {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .dashboard {
    display: flex;
    flex-direction: column-reverse;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .stream-panel {
    min-width: 0;
    height: auto;
    padding: 0;
    justify-content: center;
    overflow: visible;
  }

  .control-panel,
  .salary-control-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 12px;
    align-items: start;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    max-height: none;
    margin-inline: 0;
    border-left: 0;
    border-top: 1px solid #242b3b;
  }

  .control-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .salary-control-panel {
    border-top: 0;
  }

  .control-header {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .control-card {
    height: 100%;
    margin-bottom: 0;
    padding: clamp(12px, 2vw, 18px);
  }

  .control-card:has(.car-selector-grid),
  .stream-highlight-card,
  .salary-control-panel .control-card {
    grid-column: 1 / -1;
  }

  .control-panel>.control-card:has(.car-selector-grid) {
    grid-column: 1 / -1;
  }

  .control-panel>.control-card:has(#ctrlRebate) {
    grid-column: 1;
  }

  .control-panel>.control-card:has(#ctrlInterest) {
    grid-column: 2;
  }

  .control-panel>.stream-highlight-card {
    grid-column: 3;
    grid-row: 3;
    display: flex;
    flex-direction: column;
  }

  .control-panel>.stream-highlight-card .control-group {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
  }

  .car-selector-grid {
    --car-option-height: 34px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 10px 14px;
  }

  .car-row {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .display-card,
  .stream-card {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .display-card.live-mode,
  .display-card.quotation-mode {
    min-height: 0;
  }

  #calculatorPage .display-card.stream-card,
  .salary-page .display-card.salary-card {
    border: 0;
    border-top: 1px solid rgba(92, 114, 149, 0.28);
    box-shadow: none;
  }

  .salary-page.active {
    grid-template-columns: 1fr;
    height: auto;
  }

  .salary-showcase {
    justify-content: center;
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
    overflow: visible;
  }

  .salary-page .salary-showcase {
    align-items: stretch;
    justify-content: stretch;
  }

  .salary-page .salary-card.quotation-mode {
    --display-card-design-width: 100%;
    width: 100%;
    max-width: 100%;
  }

  .mode-toggle-btn {
    display: none;
  }

  .stream-card.quotation-mode {
    --display-card-design-width: 100%;
    --quote-car-y: clamp(52px, 5vw, 76px);
    --quote-car-scale: 0.78;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 10px 12px;
    width: 100%;
    max-width: 100%;
  }

  .stream-card.quotation-mode .stream-car-area {
    grid-template-rows: clamp(238px, 28vw, 318px) auto;
    align-content: end;
    overflow: hidden;
  }

  .stream-card.quotation-mode .stream-showcase {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 34vw);
    align-items: stretch;
    margin-bottom: 0;
  }

  .stream-card.quotation-mode .promo-panel {
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: center;
    gap: clamp(16px, 2vw, 24px);
  }

  .stream-card.quotation-mode .promo-panel .qr-section {
    gap: clamp(14px, 1.7vw, 20px);
    margin-top: 0;
  }

  .stream-card.quotation-mode .promo-panel .proton-logo {
    height: clamp(64px, 7.6vw, 88px);
  }

  .stream-card.quotation-mode .promo-panel .qr-code {
    width: clamp(84px, 8.6vw, 100px);
    height: clamp(84px, 8.6vw, 100px);
  }

  .stream-card.quotation-mode .promo-panel .scan-text {
    font-size: clamp(0.8rem, 1.45vw, 0.96rem);
  }

  .stream-card.quotation-mode .promo-panel .whatsapp-text {
    font-size: clamp(0.96rem, 1.76vw, 1.14rem);
  }

  .stream-card.quotation-mode .model-price-row {
    position: relative;
    z-index: 2;
    margin-top: clamp(18px, 2.2vw, 30px);
  }

  .stream-card.quotation-mode .hero-metric {
    grid-column: 1;
    margin-top: 0;
  }

  .stream-card.quotation-mode .summary-metrics {
    grid-column: 2;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
  }

  .stream-card.quotation-mode .price-grid,
  .stream-card.quotation-mode .monthly-table {
    grid-column: 1 / -1;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .stream-card.quotation-mode {
    --quote-car-y: clamp(-12px, -7vw, 0px);
    --quote-car-scale: 0.96;
  }

  .stream-card.quotation-mode .stream-car-area {
    grid-template-rows: clamp(268px, 35vw, 340px) auto;
  }

  .stream-card.quotation-mode .model-price-row {
    --hero-main-size: clamp(2rem, 4.2vw, 2.65rem);
    --hero-sub-size: clamp(0.95rem, 2vw, 1.2rem);
    gap: clamp(16px, 3vw, 34px);
  }

  .stream-card.quotation-mode .model-main {
    line-height: 0.95;
  }

}

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

  .stream-car-area {
    height: auto;
  }

  .stream-car-img {
    --car-model-y: 0px;
  }

  .stream-card {
    background-size: 100% var(--stream-bg-offset), 100% 100%, 100% 100%, 100% auto;
    background-position: center top, center top, center var(--stream-bg-offset), center var(--stream-bg-offset);
  }

  .stream-card.quotation-mode .stream-car-img {
    --quote-car-y: 12px;
    --quote-car-scale: 0.9;
    transform: translateY(var(--quote-car-y)) scale(var(--quote-car-scale));
  }

  .stream-card.quotation-mode .model-price-row {
    position: relative;
    z-index: 2;
  }

  .stream-card.quotation-mode .hero-model {
    padding-left: 12px;
  }

  .stream-card.quotation-mode .model-variant {
    margin-top: 3px;
    font-size: clamp(1.15rem, 4.5vw, 1.6rem);
    line-height: 1;
    letter-spacing: 0.04em;
  }

  .promo-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo logo"
      "agent qr";
    align-items: center;
    gap: 14px 16px;
    min-height: 0;
    padding: 16px;
    background:
      radial-gradient(circle at 50% 0%, rgba(116, 137, 170, 0.16), rgba(116, 137, 170, 0) 48%),
      linear-gradient(145deg, rgba(15, 25, 42, 0.94), rgba(7, 13, 23, 0.94));
  }

  .promo-panel .proton-logo {
    grid-area: logo;
    width: min(100%, 290px);
    height: 46px;
    margin-inline: auto;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(255, 51, 85, 0.58);
  }

  .promo-panel .agent-info {
    grid-area: agent;
    align-self: center;
  }

  .promo-panel .agent-name {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .promo-panel .agent-role {
    margin-top: 3px;
    font-size: 0.76rem;
  }

  .promo-panel .contact-row {
    gap: 10px;
    margin-top: 14px;
  }

  .promo-panel .phone-icon {
    --themed-icon-size: 38px;
  }

  .promo-panel .agent-contact {
    font-size: clamp(0.95rem, 4vw, 1.12rem);
    letter-spacing: 0.02em;
  }

  .promo-panel .qr-section {
    grid-area: qr;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    text-align: center;
  }

  .promo-panel .qr-code {
    width: 78px;
    height: 78px;
    padding: 4px;
  }

  .promo-panel .scan-text {
    font-size: 0.66rem;
  }

  .promo-panel .whatsapp-text {
    font-size: 0.82rem;
    line-height: 1;
  }

  .salary-hero,
  .salary-card.live-mode .salary-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
    text-align: center;
  }

  .salary-logo,
  .salary-card.live-mode .salary-logo {
    width: 160px;
    max-height: none;
  }

  .eligibility-head,
  .eligibility-row {
    grid-template-columns: minmax(250px, 1.35fr) 125px minmax(0, 1.6fr);
  }
}

@media (min-width: 641px) and (max-width: 760px) {
  .stream-card.quotation-mode .stream-car-area {
    grid-template-rows: clamp(210px, 31vw, 244px) auto;
  }

  .stream-card.quotation-mode .stream-car-img {
    --quote-car-y: clamp(0px, 30vw, 50px);
    --quote-car-scale: 0.8;
  }

  .stream-card.quotation-mode .promo-panel {
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) auto;
    grid-template-areas: "logo agent qr";
    gap: clamp(18px, 3vw, 28px);
    padding: 18px 20px;
  }

  .stream-card.quotation-mode .promo-panel .proton-logo {
    width: 100%;
    height: 84px;
    margin-inline: 0;
    padding: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .stream-card.quotation-mode .promo-panel .agent-info {
    padding-left: clamp(16px, 2.8vw, 24px);
    border-left: 2px solid #ff3355;
  }

  .stream-card.quotation-mode .promo-panel .proton-logo img {
    content: url("https://raw.githubusercontent.com/azrizMY/car-images/d09d0ef1276303ae75bc8361093b6d75f24eddb1/images/proton-new.png");
    transform: scale(1.12);
  }

  .stream-card.quotation-mode .promo-panel .agent-name {
    font-size: clamp(1.55rem, 4.2vw, 2rem);
  }

  .stream-card.quotation-mode .promo-panel .contact-row {
    margin-top: 12px;
  }

  .stream-card.quotation-mode .promo-panel .qr-code {
    width: 82px;
    height: 82px;
  }
}

@media (min-width: 641px) and (max-width: 980px) {

  .salary-hero,
  .salary-card.live-mode .salary-hero {
    grid-template-columns: clamp(190px, 27vw, 270px) minmax(0, 1fr);
    gap: clamp(24px, 3.5vw, 40px);
    justify-items: stretch;
    align-items: center;
    margin-bottom: 24px;
    text-align: left;
  }

  .salary-hero>div {
    display: block;
  }

  .salary-logo,
  .salary-card.live-mode .salary-logo {
    width: 100%;
    max-height: 132px;
    align-self: center;
  }

  .salary-eyebrow {
    font-size: clamp(0.9rem, 1.65vw, 1.15rem);
    letter-spacing: 0.08em;
  }

  .salary-card.live-mode .salary-hero h1,
  .salary-hero h1 {
    margin-top: 6px;
    font-size: clamp(2.15rem, 5.15vw, 3.5rem);
    line-height: 0.96;
  }

  .salary-card.live-mode .salary-hero p,
  .salary-hero p {
    max-width: 58rem;
    margin-top: 8px;
    font-size: clamp(1rem, 2vw, 1.28rem);
    line-height: 1.32;
  }

  .salary-promo-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(16px, 2.6vw, 26px);
    padding: 16px 18px;
  }

  .salary-input-wrap {
    grid-template-columns: 209px 108px minmax(0, 1fr);
    height: 108px;
    min-height: 108px;
  }

  .salary-contact-panel {
    grid-template-columns: minmax(190px, 1fr) auto;
  }

  .salary-promo-cta {
    width: fit-content;
    min-width: 0;
    padding: 9px 10px 9px 14px;
  }
}

@media (max-width: 640px) {
  .salary-page.active {
    background: #070b12;
  }

  .salary-showcase {
    padding: 0;
    background: transparent;
  }

  .salary-card {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(92, 114, 149, 0.28);
    border-radius: 0;
    box-shadow: none;
  }

  .salary-card::before {
    height: 170px;
    background:
      radial-gradient(circle at 50% 8%, rgba(116, 137, 170, 0.2), rgba(116, 137, 170, 0) 42%),
      linear-gradient(180deg, rgba(10, 18, 31, 0.84), rgba(5, 11, 21, 0.3) 62%, rgba(3, 8, 17, 0) 100%);
  }

  .salary-hero,
  .salary-card.live-mode .salary-hero {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 12px;
    justify-items: stretch;
    margin-bottom: 14px;
    text-align: left;
  }

  .salary-logo,
  .salary-card.live-mode .salary-logo {
    width: 100%;
    max-height: 58px;
    align-self: center;
  }

  .salary-eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
  }

  .salary-hero h1,
  .salary-card.live-mode .salary-hero h1 {
    margin-top: 4px;
    font-size: clamp(1.28rem, 6.4vw, 1.78rem);
    line-height: 1;
  }

  .salary-hero p,
  .salary-card.live-mode .salary-hero p {
    max-width: none;
    margin: 6px 0 0;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .salary-input-wrap {
    grid-template-columns: minmax(138px, 42%) minmax(56px, 15%) minmax(0, 1fr);
    height: 66px;
    min-height: 66px;
    margin-bottom: 12px;
    border-radius: 9px;
  }

  .salary-input-wrap input,
  .salary-card.live-mode .salary-input-wrap input {
    min-height: 0;
    height: 64px;
    padding: 0;
    font-size: clamp(1.35rem, 6.2vw, 1.85rem);
    letter-spacing: 0.25px;
  }

  .salary-input-label {
    gap: 8px;
    padding-left: 10px;
    border-radius: 9px 0 0 9px;
  }

  .salary-input-copy em {
    margin-top: 2px;
    font-size: clamp(0.47rem, 1.9vw, 0.58rem);
    letter-spacing: 0.45px;
  }

  .salary-input-copy b {
    font-size: clamp(0.55rem, 2.15vw, 0.68rem);
    letter-spacing: 0.1px;
  }

  .salary-input-label svg {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }

  .salary-input-currency {
    display: flex;
    font-size: clamp(0.9rem, 3.8vw, 1.12rem);
  }

  .salary-input-amount {
    border-radius: 0 9px 9px 0;
  }

  .salary-input-divider {
    display: block;
    height: 28px;
    margin-left: 12px;
    margin-right: 12px;
  }

  .eligibility-table {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(116, 137, 170, 0.32);
    background:
      linear-gradient(rgba(9, 15, 25, 0.82), rgba(9, 15, 25, 0.82)),
      linear-gradient(#09111d, #09111d);
  }

  .eligibility-head {
    display: none;
  }

  .eligibility-row,
  .salary-card.live-mode .eligibility-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "model status"
      "variants variants";
  }

  .eligibility-row,
  .salary-card.live-mode .eligibility-row {
    gap: 8px 10px;
    min-height: 0;
    padding: 10px 12px 11px;
    border: 0;
    border-top: 1px solid rgba(116, 137, 170, 0.16);
    border-radius: 0;
  }

  .eligibility-model {
    grid-area: model;
    align-self: center;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 9px;
    font-size: 0.9rem;
  }

  .eligibility-car-img {
    width: 84px;
    height: auto;
  }

  .eligibility-status {
    grid-area: status;
    align-self: center;
    min-height: 22px;
    padding: 3px 8px;
    font-size: 0.64rem;
  }

  .variant-chips {
    grid-area: variants;
    gap: 5px;
  }

  .variant-chip {
    min-height: 23px;
    padding: 4px 7px;
    font-size: 0.64rem;
    line-height: 1.15;
  }

  .salary-note {
    margin-top: 14px;
    font-size: 0.74rem;
    line-height: 1.45;
  }

  .salary-promo-panel {
    grid-template-columns: 1fr;
    gap: 12px 14px;
    margin-top: 12px;
    padding-top: 12px;
  }

  .salary-service-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .salary-service-list span {
    min-width: 82px;
    min-height: 62px;
    padding: 3px 4px;
    font-size: 0.6rem;
  }

  .salary-card.live-mode .salary-service-list span {
    min-height: 62px;
    padding: 3px 4px;
    font-size: 0.6rem;
  }

  .salary-contact-panel,
  .salary-card.live-mode .salary-contact-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 16px;
    min-height: 0;
    padding: 16px;
  }

  .salary-contact-panel .agent-info {
    min-width: 0;
  }

  .salary-contact-panel .agent-name {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .salary-contact-panel .qr-section {
    flex-direction: column;
    gap: 7px;
    padding-left: 0;
    border-left: 0;
    text-align: center;
  }

  .salary-contact-panel .qr-code {
    width: 72px;
    height: 72px;
  }

  .salary-contact-panel .scan-text {
    font-size: 0.62rem;
  }

  .salary-contact-panel .whatsapp-text {
    font-size: 0.76rem;
  }

  .salary-promo-cta {
    min-width: 0;
    justify-self: stretch;
    width: auto;
    padding: 8px 9px 8px 11px;
    gap: 10px;
  }

  .salary-promo-cta span {
    text-align: right;
  }

  .salary-promo-cta img {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 430px) {
  .salary-input-wrap {
    grid-template-columns: minmax(126px, 41%) minmax(48px, 14%) minmax(0, 1fr);
    height: 60px;
    min-height: 60px;
  }

  .salary-input-label {
    gap: 7px;
    padding-left: 8px;
  }

  .salary-input-label svg {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .salary-input-copy b {
    font-size: 0.52rem;
    line-height: 1.12;
  }

  .salary-input-copy em {
    font-size: 0.43rem;
    letter-spacing: 0.32px;
  }

  .salary-input-currency {
    font-size: 0.86rem;
  }

  .salary-input-divider {
    height: 24px;
    margin-left: 9px;
    margin-right: 9px;
  }

  .salary-input-wrap input,
  .salary-card.live-mode .salary-input-wrap input {
    height: 58px;
    font-size: clamp(1.22rem, 6vw, 1.5rem);
  }

  .salary-contact-panel,
  .salary-card.live-mode .salary-contact-panel {
    gap: 12px;
    padding: 14px;
  }

  .salary-promo-panel {
    grid-template-columns: 1fr;
  }

  .salary-promo-cta {
    justify-self: stretch;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 11px 10px 13px;
  }

  .salary-promo-cta span {
    text-align: left;
  }

  .salary-promo-cta .agent-name {
    font-size: 0.95rem;
    line-height: 1;
  }

  .salary-promo-cta .agent-role {
    margin-top: 1px;
    font-size: 0.56rem;
    line-height: 1;
  }

  .salary-promo-cta b {
    margin-top: 5px;
    font-size: 1rem;
    line-height: 1;
  }

  .salary-promo-cta img {
    width: 76px;
    height: 76px;
    padding: 3px;
  }
}

@media (max-width: 560px) {

  .control-panel,
  .salary-control-panel {
    padding: 10px;
  }

  .salary-showcase {
    padding: 0;
  }

  .control-panel,
  .salary-control-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .control-header {
    margin-bottom: 0;
  }

  .control-title {
    font-size: 1rem;
  }

  .stream-card,
  .salary-card {
    padding: 12px;
  }

  .salary-card.live-mode {
    --stream-bg-offset: clamp(42px, 8vh, 72px);
  }

  .stream-card.quotation-mode .stream-car-img {
    --quote-car-y: 12px;
    --quote-car-scale: 0.9;
  }

  .price-grid .price-label .ncd-badge,
  .price-grid .price-label .price-label-subline {
    display: block;
    margin-top: 2px;
    line-height: 1.1;
  }

  .price-grid .price-label #insuranceLabel,
  .price-grid .price-label .otr-label-text {
    line-height: 1.18;
  }

  .stream-showcase,
  .summary-metrics {
    grid-template-columns: 1fr;
  }

  .summary-metrics {
    grid-template-columns: 1fr;
  }

  .promo-panel {
    gap: 12px 14px;
    padding: 14px;
  }

  .promo-panel .proton-logo {
    height: 42px;
    width: min(100%, 250px);
    padding-bottom: 10px;
  }

  .promo-panel .phone-icon {
    --themed-icon-size: 34px;
  }

  .promo-panel .qr-code {
    width: 72px;
    height: 72px;
  }

  .qr-section {
    gap: 14px;
  }

  .qr-code {
    width: 86px;
    height: 86px;
  }

  .monthly-header,
  .monthly-row {
    grid-template-columns: 64px 1fr;
  }

  .control-card {
    padding: 12px;
  }

  .car-row {
    grid-template-columns: minmax(58px, 70px) minmax(0, 1fr);
  }

  .car-selector-grid {
    grid-template-columns: 1fr;
  }

  .car-select-btn,
  .tenure-buttons .tenure-btn {
    min-height: 34px;
    padding: 7px 9px;
  }

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

@media (max-width: 430px) {

  .salary-hero,
  .salary-card.live-mode .salary-hero {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 10px;
  }

  .salary-hero h1,
  .salary-card.live-mode .salary-hero h1 {
    font-size: clamp(1.12rem, 6vw, 1.45rem);
  }

  .salary-hero p,
  .salary-card.live-mode .salary-hero p {
    font-size: 0.7rem;
  }

  .eligibility-row,
  .salary-card.live-mode .eligibility-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .eligibility-status {
    gap: 4px;
    padding-inline: 7px;
  }

  .status-icon {
    width: 14px;
    height: 14px;
    font-size: 0.65rem;
  }
}

/*
 * Keep the car and background proportional without replacing each device's
 * existing layout. Each view family owns its own artwork coordinates.
 */
@media (max-width: 980px) {
  #calculatorPage .stream-card.quotation-mode {
    container-type: inline-size;
  }
}

/* Phone and iPad Mini share the same single-column hero composition. */
@media (max-width: 760px) {
  #calculatorPage .stream-card.quotation-mode .stream-car-area {
    grid-template-rows: 44.2cqw auto;
    padding-inline: 5.35cqw;
    gap: 1cqw;
  }

  #calculatorPage .stream-card.quotation-mode .stream-car-img {
    --quote-car-y: 2.8cqw;
    --quote-car-scale: 0.9;
    --car-model-y: 0px;
    transform: translateY(var(--quote-car-y)) scale(var(--quote-car-scale));
  }
}

/* Portrait and standard-width tablets retain their wider tablet composition. */
@media (min-width: 761px) and (max-width: 980px) {
  #calculatorPage .stream-card.quotation-mode {
    /* Manual portrait-iPad artwork controls. */
    --tablet-hero-height: 48cqw;
    --tablet-car-y: -1.2cqw;
    --tablet-car-scale: 0.96;
    --tablet-car-side-padding: 3.2cqw;
  }

  #calculatorPage .stream-card.quotation-mode .stream-showcase {
    grid-template-columns: minmax(0, 1fr) 39.8cqw;
    gap: 2cqw;
    height: var(--tablet-hero-height);
    align-items: stretch;
  }

  #calculatorPage .stream-card.quotation-mode .stream-car-area {
    grid-template-rows: minmax(0, 1fr) auto;
    align-self: stretch;
    height: 100%;
    padding-inline: var(--tablet-car-side-padding);
    gap: 0.8cqw;
    transform: none;
  }

  #calculatorPage .stream-card.quotation-mode .stream-car-img {
    --quote-car-y: var(--tablet-car-y);
    --quote-car-scale: var(--tablet-car-scale);
    --car-model-y: 0px;
    align-self: end;
    transform: translateY(var(--quote-car-y)) scale(var(--quote-car-scale));
  }

  #calculatorPage .stream-card.quotation-mode .model-price-row {
    align-self: end;
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* Landscape touch tablets keep their independent two-column composition. */
@media (pointer: coarse) and (orientation: landscape) and (min-width: 981px) and (max-width: 1366px) and (max-height: 980px) {
  #calculatorPage .stream-card.quotation-mode {
    container-type: inline-size;
  }

  #calculatorPage .stream-card.quotation-mode .stream-car-area {
    grid-template-rows: 27cqw auto;
    align-self: start;
    height: auto;
    padding-inline: 3.2cqw;
    gap: 0.8cqw;
  }

  #calculatorPage .stream-card.quotation-mode .stream-car-img {
    --quote-car-y: 5cqw;
    --quote-car-scale: 0.78;
    --car-model-y: 0px;
    transform: translateY(var(--quote-car-y)) scale(var(--quote-car-scale));
  }
}
