#setTimer.captcha-modal .modal-content {
  border-radius: 16px;
  overflow: hidden;
  border: none;
}

#setTimer.captcha-modal .modal-header {
  background: linear-gradient(135deg, #7743db 0%, #35155d 100%);
  color: white;
  border-bottom: none;
  padding: 20px 25px;
}

#setTimer.captcha-modal .modal-title {
  font-weight: 600;
  font-size: 1.2rem;
}

#setTimer.captcha-modal .close {
  color: white;
  opacity: 0.8;
  font-size: 1.8rem;
  margin-top: -5px;
}

#setTimer.captcha-modal .close:hover {
  opacity: 1;
}

#setTimer.captcha-modal .modal-body {
  padding: 30px;
}

#setTimer.captcha-modal .captcha-box {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  padding: 30px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  margin-bottom: 25px;
}

#setTimer.captcha-modal #captchaImg {
  border: 2px dashed #c1c9d4;
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  padding: 10px;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

#setTimer.captcha-modal #captchaImg:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

#setTimer.captcha-modal .btn-refresh {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 2px solid #e9ecef;
  margin-top: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#setTimer.captcha-modal .btn-refresh:hover {
  background: #667eea;
  border-color: #667eea;
  transform: rotate(180deg);
  box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
}

#setTimer.captcha-modal .btn-refresh:hover i {
  color: white;
}

#setTimer.captcha-modal .btn-refresh i {
  color: #667eea;
  font-size: 1.2rem;
  transition: color 0.3s;
}

#setTimer.captcha-modal .form-control {
  border: 2px solid #e0e6ed;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 3px;
  font-weight: 600;
  color: #2d3748;
  transition: all 0.3s;
  background: white;
}

#setTimer.captcha-modal .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

#setTimer.captcha-modal .form-control::placeholder {
  color: #a0aec0;
  font-weight: normal;
  letter-spacing: normal;
}

#setTimer.captcha-modal .btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 10px;
  padding: 12px 40px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

#setTimer.captcha-modal .btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

#setTimer.captcha-modal .btn-outline-secondary {
  border: 2px solid #e0e6ed;
  border-radius: 10px;
  padding: 12px 40px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  color: #4a5568;
}

#setTimer.captcha-modal .btn-outline-secondary:hover {
  border-color: #cbd5e0;
  background-color: #f7fafc;
  transform: translateY(-3px);
}

#setTimer.captcha-modal .text-center {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

@keyframes captchaModalFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#setTimer.captcha-modal .modal-dialog {
  animation: captchaModalFadeIn 0.4s ease-out;
}

@media (max-width: 576px) {
  #setTimer.captcha-modal .modal-body {
    padding: 20px;
  }

  #setTimer.captcha-modal .captcha-box {
    padding: 20px;
  }

  #setTimer.captcha-modal .text-center {
    flex-direction: column;
    align-items: stretch;
  }

  #setTimer.captcha-modal .btn-success,
  #setTimer.captcha-modal .btn-outline-secondary {
    width: 100%;
    margin-bottom: 10px;
  }
}

.icon-sync {
  font-size: 20px !important;
}

@keyframes glow {
  0% {
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3),
      0 0 20px rgba(255, 255, 255, 0.1) inset;
  }

  100% {
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.5),
      0 0 30px rgba(255, 255, 255, 0.15) inset;
  }
}

@keyframes pulse {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#liveTimer {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  background: linear-gradient(to right, #fff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#timerBox i {
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@media (min-width: 768px) {
  #timerBox {
    padding: 14px 28px;
  }

  #liveTimer {
    font-size: 20px;
    letter-spacing: 3px;
  }

  #timerBox i {
    font-size: 22px;
  }
}

/* استایل برای موبایل */
@media (max-width: 480px) {
  #timerBox {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
  }

  #liveTimer {
    font-size: 16px;
    letter-spacing: 1px;
  }
}

.timer-container {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timer-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.timer-icon {
  background: rgba(255, 255, 255, 0.15);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.2);
}

.timer-icon i {
  font-size: 24px;
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.timer-content {
  flex-grow: 1;
}

.timer-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.timer-display {
  font-size: 28px;
  font-weight: 700;
  color: white;
  font-family: "Courier New", monospace;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
  letter-spacing: 2px;
  background: linear-gradient(to right, #fff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#liveTimer {
  transition: all 0.3s ease;
}

@media (max-width: 576px) {
  .timer-container {
    padding: 12px 20px;
    gap: 12px;
  }

  .timer-icon {
    width: 40px;
    height: 40px;
  }

  .timer-icon i {
    font-size: 20px;
  }

  .timer-display {
    font-size: 22px;
    letter-spacing: 1px;
  }
}
