/* ============================================================
   Zasovir — return simulation widget (PLN)
   Consumes tokens from css/zasovir-neon.css.
   ============================================================ */

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }

/* ---- sliders card ---- */
.calc-form {
  border: 1px solid var(--zv-line);
  border-radius: var(--zvr-lg);
  background: linear-gradient(180deg, var(--zv-glass-2), var(--zv-glass));
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-form__field { margin-block-end: 34px; }
.calc-form__field:last-child { margin-block-end: 0; }

.calc-form__label {
  display: block;
  font-family: var(--zvf-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--zv-dim);
  margin-block-end: 10px;
}

.calc-form__value {
  font-family: var(--zvf-disp);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--zv-tx-strong);
  text-shadow: 0 0 20px rgba(0, 229, 255, .35);
  margin-block-end: 14px;
  white-space: nowrap;
}

.calc-form__input-group { display: flex; flex-direction: column; }

.calc-slider { position: relative; height: 30px; display: flex; align-items: center; }

.calc-slider__background {
  position: absolute;
  inset-inline-start: 0;
  width: 100%;
  height: 6px;
  background: var(--zv-line);
  border-radius: var(--zvr-pill);
  z-index: 1;
}

.calc-slider__progress {
  position: absolute;
  inset-inline-start: 0;
  height: 6px;
  background: var(--zv-grad);
  box-shadow: 0 0 14px rgba(0, 229, 255, .55), 0 0 22px rgba(255, 43, 214, .35);
  border-radius: var(--zvr-pill);
  z-index: 2;
}

.calc-slider__input {
  position: absolute;
  inset-inline-start: 0;
  width: 100%;
  height: 12px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  outline: none;
  z-index: 3;
  cursor: pointer;
  padding: 0;
  border: none !important;
}
.calc-slider__input:focus-visible { outline: 2px solid var(--zv-cyan-hi); outline-offset: 6px; }

.calc-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--zv-bg);
  cursor: pointer;
  border: 2px solid var(--zv-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, .8);
}
.calc-slider__input::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--zv-bg);
  cursor: pointer;
  border: 2px solid var(--zv-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, .8);
}

.calc-slider__details {
  display: flex;
  justify-content: space-between;
  margin-block-start: 8px;
  font-family: var(--zvf-mono);
  font-size: .66rem;
  letter-spacing: .04em;
  color: var(--zv-dim);
}

/* ---- results column ---- */
.calc-results { display: flex; flex-direction: column; gap: 18px; }

/* the neon frame again — the headline figure is the featured surface here */
.calc-results__final {
  background: var(--zv-frame-fill) padding-box, var(--zv-grad) border-box;
  border: 1px solid transparent;
  box-shadow: var(--zvs-neon);
  border-radius: var(--zvr-lg);
  padding: 28px 26px;
  color: var(--zv-tx);
  position: relative;
}
.calc-results__final::after {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  background:
    linear-gradient(var(--zv-cyan), var(--zv-cyan)) top left / 18px 2px no-repeat,
    linear-gradient(var(--zv-cyan), var(--zv-cyan)) top left / 2px 18px no-repeat,
    linear-gradient(var(--zv-mag), var(--zv-mag)) bottom right / 18px 2px no-repeat,
    linear-gradient(var(--zv-mag), var(--zv-mag)) bottom right / 2px 18px no-repeat;
  opacity: .85;
}
.calc-results__final-header { display: flex; align-items: center; gap: 8px; margin-block-end: 12px; }
.calc-results__icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--zv-cyan); }
.calc-results__final-label {
  font-family: var(--zvf-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--zv-mag-hi);
}
.calc-results__final-amount {
  font-family: var(--zvf-disp);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--zv-tx-strong);
  text-shadow: 0 0 26px rgba(0, 229, 255, .45);
  margin-block-end: 8px;
  white-space: nowrap;
}
.calc-results__final-subtitle { font-size: .92rem; color: var(--zv-muted); }

.calc-results__profit {
  border: 1px solid var(--zv-line);
  border-radius: var(--zvr-lg);
  background: linear-gradient(180deg, var(--zv-glass-2), var(--zv-glass));
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
}
.calc-results__profit-inner { position: relative; z-index: 10; }
.calc-results__profit-header { display: flex; align-items: center; gap: 13px; margin-block-end: 14px; }
.calc-results__profit-icon-wrap {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--zv-grad);
  box-shadow: var(--zvs-glow);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.calc-results__profit-icon { width: 20px; height: 20px; color: var(--zv-ink); }
.calc-results__profit-meta { display: flex; flex-direction: column; }
.calc-results__profit-title { font-family: var(--zvf-disp); font-weight: 600; font-size: .98rem; color: var(--zv-tx-strong); line-height: 1.5; }
.calc-results__profit-subtitle { font-family: var(--zvf-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--zv-dim); }
.calc-results__profit-amount {
  font-family: var(--zvf-disp);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  color: var(--zv-tx-strong);
  white-space: nowrap;
}
.calc-results__profit-bar { margin-block-start: 12px; display: flex; align-items: center; gap: 10px; }
.calc-results__profit-bar-track { height: 6px; flex: 1; background: var(--zv-line); border-radius: var(--zvr-pill); overflow: hidden; }
.calc-results__profit-bar-fill { height: 100%; background: var(--zv-grad); box-shadow: 0 0 14px rgba(0, 229, 255, .55); border-radius: var(--zvr-pill); }
.calc-results__profit-percent { font-family: var(--zvf-mono); font-size: .78rem; font-weight: 600; color: var(--zv-cyan-hi); }

.calc-disclaimer {
  background: var(--zv-glass);
  border: 1px solid var(--zv-line-soft);
  border-radius: var(--zvr-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.calc-disclaimer__icon { width: 18px; height: 18px; color: var(--zv-mag-hi); flex-shrink: 0; opacity: .9; }
.calc-disclaimer__text { font-size: .78rem; color: var(--zv-dim); line-height: 1.7; }

@media (max-width: 960px) { .calc-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .calc-form, .calc-results__final, .calc-results__profit { padding: 24px 20px; }
  .calc-form__field { margin-block-end: 26px; }
}
@media (max-width: 340px) {
  .calc-form__value, .calc-results__profit-amount { font-size: 1.5rem; }
  .calc-results__final-amount { font-size: 1.9rem; }
}
