/* Cloudflare Captcha Overlay Styles with Premium Animated Background - Windows Only */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  background: white;
}

/* Animated SVG Background */
.animated-svg-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

/* Animated overlay layers */
.animated-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.overlay-layer {
  position: absolute;
  width: 100%;
  height: 100%;
}

.layer-1 {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.04) 0%, transparent 50%, rgba(252, 211, 77, 0.04) 100%);
  animation: float1 15s ease-in-out infinite;
}

.layer-2 {
  background: linear-gradient(225deg, rgba(251, 191, 36, 0.03) 0%, transparent 50%, rgba(249, 115, 22, 0.03) 100%);
  animation: float2 20s ease-in-out infinite;
}

/* Keyframe animations */
@keyframes wave-primary {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
}

@keyframes wave-secondary {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(25px); }
}

@keyframes wave-tertiary {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes curve-flow {
  0%, 100% { stroke-dashoffset: 0; opacity: 0.3; }
  50% { stroke-dashoffset: 100; opacity: 0.6; }
}

@keyframes curve-flow-delayed {
  0%, 100% { stroke-dashoffset: 0; opacity: 0.2; }
  50% { stroke-dashoffset: 100; opacity: 0.5; }
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(50px, -30px); }
  50% { transform: translate(0, -50px); }
  75% { transform: translate(-50px, -30px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-40px, 40px); }
  50% { transform: translate(0, 60px); }
  75% { transform: translate(40px, 40px); }
}

.animate-wave-primary {
  animation: wave-primary 6s ease-in-out infinite;
}

.animate-wave-secondary {
  animation: wave-secondary 8s ease-in-out infinite;
  animation-delay: 1s;
}

.animate-wave-tertiary {
  animation: wave-tertiary 10s ease-in-out infinite;
  animation-delay: 2s;
}

.animate-curve-flow {
  animation: curve-flow 12s ease-in-out infinite;
}

.animate-curve-flow-delayed {
  animation: curve-flow-delayed 14s ease-in-out infinite;
  animation-delay: 2s;
}

/* Captcha Overlay */
#cf-captcha-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  backdrop-filter: blur(1px);
}

#cf-captcha-overlay.show {
  display: flex;
}

#cf-captcha-overlay * {
  box-sizing: border-box;
}

/* Key container base styles */
#cf-captcha-overlay .key-container {
  position: relative;
  display: inline-block;
}

#cf-captcha-overlay .key-shadow {
  position: absolute;
  bottom: 0;
  left: 2px;
  right: 2px;
  height: 8px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #c8c8c8 0%, #b0b0b0 100%);
}

#cf-captcha-overlay .key-cap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  box-shadow: 0 4px 0 #d4d4d4, 0 6px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Animations */
@keyframes cfSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes cfFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cfFadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Spinner animation */
#cf-captcha-overlay .cf-spinner {
  animation: cfSpin 0.8s linear infinite;
}

/* Key animations */
#cf-captcha-overlay .key-anim-first .key-cap {
  animation: keyCapFirst 5s ease-in-out infinite;
}

#cf-captcha-overlay .key-anim-second .key-cap {
  animation: keyCapSecond 5s ease-in-out infinite;
}

@keyframes keyCapFirst {
  0%, 5% {
    transform: translateY(0);
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 0 4px 0 #d4d4d4, 0 6px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
  }
  15%, 65% {
    transform: translateY(4px);
    background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
    box-shadow: 0 2px 0 #c2410c, 0 3px 6px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
  }
  75%, 100% {
    transform: translateY(0);
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 0 4px 0 #d4d4d4, 0 6px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

@keyframes keyCapSecond {
  0%, 25% {
    transform: translateY(0);
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 0 4px 0 #d4d4d4, 0 6px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
  }
  35%, 65% {
    transform: translateY(4px);
    background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
    box-shadow: 0 2px 0 #c2410c, 0 3px 6px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
  }
  75%, 100% {
    transform: translateY(0);
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 0 4px 0 #d4d4d4, 0 6px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

/* Modal styles */
#cf-captcha-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 480px;
  width: 90%;
  animation: cfFadeInUp 0.4s ease-out;
}
.animated-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(234, 88, 12, 0.15), transparent);
  opacity: 0.3;
}

.line-1 {
  width: 100%;
  height: 1px;
  top: 30%;
  animation: scanLine 8s ease-in-out infinite;
}

.line-2 {
  width: 100%;
  height: 1px;
  top: 60%;
  animation: scanLine 10s ease-in-out infinite reverse;
}

@keyframes scanLine {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.3; }
}

/* Captcha Overlay */
#cf-captcha-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  backdrop-filter: blur(4px);
}

#cf-captcha-overlay.show {
  display: flex;
}

#cf-captcha-overlay * {
  box-sizing: border-box;
}

/* Key container base styles */
#cf-captcha-overlay .key-container {
  position: relative;
  display: inline-block;
}

#cf-captcha-overlay .key-shadow {
  position: absolute;
  bottom: 0;
  left: 2px;
  right: 2px;
  height: 8px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #c8c8c8 0%, #b0b0b0 100%);
}

#cf-captcha-overlay .key-cap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  box-shadow: 0 4px 0 #d4d4d4, 0 6px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Animations */
@keyframes cfSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes cfFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cfFadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Spinner animation */
#cf-captcha-overlay .cf-spinner {
  animation: cfSpin 0.8s linear infinite;
}

/* Key animations */
#cf-captcha-overlay .key-anim-first .key-cap {
  animation: keyCapFirst 5s ease-in-out infinite;
}

#cf-captcha-overlay .key-anim-second .key-cap {
  animation: keyCapSecond 5s ease-in-out infinite;
}

@keyframes keyCapFirst {
  0%, 5% {
    transform: translateY(0);
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 0 4px 0 #d4d4d4, 0 6px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
  }
  15%, 65% {
    transform: translateY(4px);
    background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
    box-shadow: 0 2px 0 #c2410c, 0 3px 6px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
  }
  75%, 100% {
    transform: translateY(0);
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 0 4px 0 #d4d4d4, 0 6px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

@keyframes keyCapSecond {
  0%, 25% {
    transform: translateY(0);
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 0 4px 0 #d4d4d4, 0 6px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
  }
  35%, 65% {
    transform: translateY(4px);
    background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
    box-shadow: 0 2px 0 #c2410c, 0 3px 6px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
  }
  75%, 100% {
    transform: translateY(0);
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 0 4px 0 #d4d4d4, 0 6px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

/* Modal styles */
#cf-captcha-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 480px;
  width: 90%;
  animation: cfFadeInUp 0.4s ease-out;
}
