/* ==============================================================================
   BADO Radar Systems - Tactical CAPTCHA Security Verification Styling
   ============================================================================== */

.bado-captcha-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(13, 27, 42, 0.96) 0%, rgba(6, 12, 20, 0.99) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.bado-captcha-overlay.verified {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bado-captcha-card {
  width: 100%;
  max-width: 440px;
  background: #0b1522;
  border: 1px solid rgba(230, 126, 34, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(230, 126, 34, 0.15);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  animation: badoCardIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bado-captcha-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e67e22, #f39c12, #2980b9);
}

@keyframes badoCardIn {
  from {
    transform: translateY(20px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.bado-captcha-header {
  padding: 28px 24px 18px 24px;
  text-align: center;
  background: rgba(18, 32, 49, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bado-captcha-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #e67e22;
  background: rgba(230, 126, 34, 0.12);
  border: 1px solid rgba(230, 126, 34, 0.3);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.bado-captcha-header h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
}

.bado-captcha-header p {
  margin: 6px 0 0 0;
  font-size: 13px;
  color: #8da4be;
}

.bado-captcha-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bado-captcha-canvas-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #060d15;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px;
}

#captchaCanvas {
  border-radius: 4px;
  background: #0e1e30;
  cursor: pointer;
  display: block;
}

.bado-captcha-refresh {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #8da4be;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bado-captcha-refresh:hover {
  background: rgba(230, 126, 34, 0.15);
  border-color: #e67e22;
  color: #e67e22;
  transform: rotate(45deg);
}

.bado-captcha-input-wrap {
  position: relative;
}

#captchaInput {
  width: 100%;
  box-sizing: border-box;
  background: #060d15;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #ffffff;
  font-size: 18px;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#captchaInput:focus {
  border-color: #e67e22;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

#captchaInput::placeholder {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 400;
  color: #526880;
  text-transform: none;
}

.bado-captcha-error {
  color: #ff5252;
  font-size: 12px;
  text-align: center;
  font-weight: 600;
  padding: 4px;
  animation: badoShake 0.3s ease;
}

@keyframes badoShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.bado-captcha-btn {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.bado-captcha-btn:hover {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.45);
  transform: translateY(-1px);
}

.bado-captcha-btn:active {
  transform: translateY(0);
}

.bado-captcha-footer {
  padding: 14px 24px;
  background: rgba(6, 12, 20, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.bado-captcha-footer span {
  font-size: 11px;
  color: #5c728a;
  letter-spacing: 0.5px;
}
