.slider-captcha-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.slider-captcha-overlay.active {
  opacity: 1;
  visibility: visible;
}

.slider-captcha-modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 340px;
  max-width: 90vw;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.slider-captcha-overlay.active .slider-captcha-modal {
  transform: scale(1);
}

.slider-captcha-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.slider-captcha-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
}

.slider-captcha-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #f2f3f5;
  color: #86909c;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.slider-captcha-close:hover {
  background: #e5e6eb;
  color: #4e5969;
}

.slider-captcha-image-area {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  background: #f2f3f5;
  margin-bottom: 16px;
  user-select: none;
  -webkit-user-select: none;
}

.slider-captcha-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.slider-captcha-piece-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.35));
  transition: none;
}

.slider-captcha-refresh {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
  padding: 0;
}

.slider-captcha-refresh:hover {
  background: rgba(0, 0, 0, 0.5);
}

.slider-captcha-slider-area {
  position: relative;
  width: 100%;
  height: 44px;
  background: #f7f8fa;
  border-radius: 22px;
  border: 1px solid #e5e6eb;
  overflow: hidden;
}

.slider-captcha-slider-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #d1e0ff 0%, #bedaff 100%);
  border-radius: 22px;
  transition: none;
}

.slider-captcha-slider-hint {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #c9cdd4;
  pointer-events: none;
  user-select: none;
}

.slider-captcha-slider-btn {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e6eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: box-shadow 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.slider-captcha-slider-btn:active {
  cursor: grabbing;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-captcha-slider-btn svg {
  width: 20px;
  height: 20px;
  fill: #165DFF;
}

.slider-captcha-status {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  min-height: 20px;
  transition: all 0.3s ease;
}

.slider-captcha-status.success {
  color: #00B42A;
}

.slider-captcha-status.fail {
  color: #F53F3F;
}

.slider-captcha-status.loading {
  color: #86909c;
}

@media (max-width: 768px) {
  .slider-captcha-modal {
    width: 300px;
    padding: 20px;
  }

  .slider-captcha-image-area {
    height: 140px;
  }
}