/* ============================================
 * Slider Captcha - estilo MaxwinBR
 * ============================================ */
#human-captcha-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 34, 64, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  animation: hc-fade-in 0.2s ease;
}
#human-captcha-overlay.visible { display: flex; }

#human-captcha-modal {
  background: #FFFFFF;
  border-radius: 1.25rem;
  padding: 1.5rem;
  width: min(90vw, 360px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  animation: hc-pop-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#human-captcha-modal .hc-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1B2240;
  margin: 0 0 0.5rem;
  text-align: center;
}

#human-captcha-modal .hc-subtitle {
  font-size: 0.875rem;
  color: #5B6B85;
  margin: 0 0 1.25rem;
  text-align: center;
}

#human-captcha-modal .hc-track {
  position: relative;
  background: linear-gradient(90deg, #E8F4FA 0%, #D1F2FF 100%);
  border: 1.5px solid rgba(93, 205, 227, 0.4);
  border-radius: 999px;
  height: 3rem;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

#human-captcha-modal .hc-track-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5B6B85;
  font-weight: 600;
  font-size: 0.875rem;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#human-captcha-modal .hc-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, #5DCDE3 0%, #B879E6 100%);
  transition: width 0s;
  border-radius: 999px;
}

#human-captcha-modal .hc-thumb {
  position: absolute;
  top: 50%;
  left: 0.25rem;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5DCDE3;
  font-size: 1.25rem;
  font-weight: 800;
  transition: transform 0.1s;
  z-index: 2;
}
#human-captcha-modal .hc-thumb:active { cursor: grabbing; transform: translateY(-50%) scale(0.95); }
#human-captcha-modal .hc-thumb svg { width: 1.25rem; height: 1.25rem; pointer-events: none; }

#human-captcha-modal.success .hc-track {
  border-color: #2ECC71;
  background: linear-gradient(90deg, #D6F5E1 0%, #B0EBC1 100%);
}
#human-captcha-modal.success .hc-fill {
  background: linear-gradient(90deg, #2ECC71 0%, #1FA456 100%);
}
#human-captcha-modal.success .hc-thumb {
  color: #2ECC71;
}
#human-captcha-modal.success .hc-track-text {
  color: #1FA456;
  font-weight: 700;
}

#human-captcha-modal.fail .hc-track {
  animation: hc-shake 0.4s ease;
  border-color: #E74C3C;
}
#human-captcha-modal.fail .hc-track-text {
  color: #E74C3C;
}

#human-captcha-modal .hc-close {
  position: absolute;
  top: 0.625rem;
  right: 0.875rem;
  background: transparent;
  border: none;
  color: #5B6B85;
  font-size: 1.5rem;
  cursor: pointer;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
}
#human-captcha-modal .hc-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

@keyframes hc-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes hc-pop-in {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes hc-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}
