.cyber-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0e27;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}

.cyber-loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.cyber-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(0, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

.cyber-container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.security-scanner {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 40px;
}

.scan-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ffff, transparent);
  top: 0;
  animation: scanVertical 2s ease-in-out infinite;
  box-shadow: 0 0 20px #00ffff;
}

@keyframes scanVertical {
  0%,
  100% {
    top: 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 100%;
  }
}

.hexagon-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hexagon {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  border: 2px solid #00ffff;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: hexRotate 8s linear infinite;
}

.hex-1 {
  opacity: 0.8;
  animation-duration: 6s;
}

.hex-2 {
  width: 90px;
  height: 90px;
  border-color: #00ff88;
  opacity: 0.6;
  animation-duration: 8s;
  animation-direction: reverse;
}

.hex-3 {
  width: 60px;
  height: 60px;
  border-color: #ff00ff;
  opacity: 0.4;
  animation-duration: 10s;
}

@keyframes hexRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.lock-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #00ffff;
  animation: lockPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px #00ffff);
}

@keyframes lockPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

.cyber-text {
  margin-bottom: 30px;
  font-family: "Courier New", monospace;
  font-size: 24px;
  font-weight: bold;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  letter-spacing: 4px;
}

.text-glitch {
  position: relative;
  display: inline-block;
  animation: glitch 3s infinite;
}

@keyframes glitch {
  0%,
  90%,
  100% {
    transform: translate(0);
  }

  92% {
    transform: translate(-2px, 2px);
  }

  94% {
    transform: translate(2px, -2px);
  }

  96% {
    transform: translate(-2px, -2px);
  }

  98% {
    transform: translate(2px, 2px);
  }
}

.terminal-box {
  background: rgba(0, 20, 40, 0.8);
  border: 1px solid #00ffff;
  border-radius: 4px;
  padding: 15px 20px;
  margin: 0 auto 30px;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  font-family: "Courier New", monospace;
}

.terminal-line {
  font-size: 14px;
  color: #00ff88;
  text-align: left;
}

.prompt {
  color: #ff00ff;
  margin-right: 8px;
}

.command {
  color: #00ffff;
}

.cursor {
  animation: blink 1s step-end infinite;
  color: #00ffff;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.cyber-progress {
  max-width: 400px;
  margin: 0 auto;
}

.progress-segments {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  justify-content: center;
}

.segment {
  width: 40px;
  height: 6px;
  background: rgba(0, 255, 255, 0.2);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.segment::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #00ffff, #00ff88);
  left: -100%;
  animation: segmentFill 2s ease-in-out infinite;
  box-shadow: 0 0 10px #00ffff;
}

.segment:nth-child(1)::after {
  animation-delay: 0s;
}

.segment:nth-child(2)::after {
  animation-delay: 0.15s;
}

.segment:nth-child(3)::after {
  animation-delay: 0.3s;
}

.segment:nth-child(4)::after {
  animation-delay: 0.45s;
}

.segment:nth-child(5)::after {
  animation-delay: 0.6s;
}

.segment:nth-child(6)::after {
  animation-delay: 0.75s;
}

.segment:nth-child(7)::after {
  animation-delay: 0.9s;
}

.segment:nth-child(8)::after {
  animation-delay: 1.05s;
}

@keyframes segmentFill {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 0;
  }
}

.progress-label {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #00ff88;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.particle-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #00ffff;
  border-radius: 50%;
  animation: particleFloat 3s linear infinite;
  box-shadow: 0 0 4px #00ffff;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .security-scanner {
    width: 150px;
    height: 150px;
  }

  .cyber-text {
    font-size: 18px;
  }

  .terminal-box {
    font-size: 12px;
    max-width: 90%;
  }

  .segment {
    width: 30px;
  }
}
