/* Custom book mockup styling & 3D tilt effects */
.perspective-1000 {
  perspective: 1200px;
}

.book-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Scrollbar clean styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Range input styled cleanly */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10b981;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
  border: 2px solid #ffffff;
  transition: transform 0.1s ease, background 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #059669;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10b981;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
  border: 2px solid #ffffff;
}

/* Smooth details & accordions transitions */
.chapter-content {
  transition: all 0.25s ease-in-out;
}

/* Subtle pulse border animation for key buttons */
@keyframes emeraldGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
  }
  50% {
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
  }
}

.glow-action {
  animation: emeraldGlow 3s infinite;
}

/* Affiliate code input & link displays */
#share-link-display {
  user-select: all;
  -webkit-user-select: all;
}

#affiliate-id-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}