/* Calculator — v0-inspired two-panel design */
.font-display {
  font-family: 'Outfit', 'Quicksand', sans-serif;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.calc-card {
  background: rgba(30,41,59,0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  overflow: hidden;
}
.calc-stat {
  padding: 16px; border-radius: 12px;
  transition: transform 0.2s, background-color 0.2s;
}
.calc-stat:hover { transform: translateY(-2px); }

/* Slider */
#calc-slider {
  -webkit-appearance: none; width: 100%;
  background: transparent; position: relative; z-index: 20;
}
#calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 28px; width: 28px; border-radius: 50%;
  background: #fff; cursor: pointer; margin-top: -11px;
  box-shadow: 0 0 0 4px #0f172a, 0 0 20px rgba(6,182,212,0.5);
  transition: all 0.2s;
}
#calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px #0f172a, 0 0 30px rgba(6,182,212,0.8);
}
#calc-slider::-webkit-slider-runnable-track {
  width: 100%; height: 6px; cursor: pointer;
  background: #1e293b; border-radius: 999px;
}
#calc-slider::-moz-range-thumb {
  height: 28px; width: 28px; border-radius: 50%; border: none;
  background: #fff; cursor: pointer;
  box-shadow: 0 0 0 4px #0f172a, 0 0 20px rgba(6,182,212,0.5);
}
#calc-slider::-moz-range-track {
  width: 100%; height: 6px;
  background: #1e293b; border-radius: 999px; border: none;
}

/* Carousel slides */
.calc-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  transition: all 0.5s ease-out;
  opacity: 0; transform: translateY(20px);
}
.calc-slide.active { opacity: 1; transform: translateY(0); }
.calc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #334155; transition: all 0.3s;
}
.calc-dot.active { background: #22d3ee; }

/* Responsive */
@media (max-width: 767px) {
  .calc-layout { flex-direction: column !important; }
  .calc-layout > div:first-child {
    border-right: none !important;
    border-bottom: 1px solid #1e293b !important;
  }
  .calc-layout > div {
    padding: 32px 24px !important;
  }
  #calc-ch { font-size: 3.5rem !important; }
  #calc-saved-weekly { font-size: 3.5rem !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #calc-ch { font-size: 3.5rem !important; }
  #calc-saved-weekly { font-size: clamp(3rem, 5vw, 4.5rem) !important; }
  .calc-layout > div {
    padding: 36px 28px !important;
  }
}
