/* Modern before/after compare handle for The Transformation card */
.ba-slider {
  --ba-handle-size: 36px;
}

.ba-handle {
  width: 0;
  will-change: left;
}

.ba-handle-line {
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
  box-shadow: 0 0 0 1px rgba(10, 22, 34, 0.08), 0 0 8px rgba(10, 22, 34, 0.12);
}

.ba-handle-circle {
  position: relative;
  width: var(--ba-handle-size);
  height: var(--ba-handle-size);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(3px);
  box-shadow:
    0 5px 14px rgba(10, 22, 34, 0.2),
    0 1px 4px rgba(10, 22, 34, 0.14);
  display: grid;
  place-items: center;
  font-size: 0.54rem;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.ba-handle-circle::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(10, 22, 34, 0.08);
  pointer-events: none;
}

.ba-handle-circle i {
  color: rgba(7, 74, 107, 0.9);
  text-shadow: none;
}

.ba-slider:hover .ba-handle-circle {
  transform: scale(1.02);
}

.ba-slider.is-dragging .ba-handle-circle {
  transform: scale(1.04);
  box-shadow:
    0 7px 16px rgba(10, 22, 34, 0.24),
    0 2px 6px rgba(10, 22, 34, 0.16);
}

.ba-label {
  background: rgba(10, 22, 34, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
  .ba-slider { --ba-handle-size: 32px; }
  .ba-handle-circle { font-size: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ba-handle-circle { transition: none; }
}
