.glitch-loader-container{
  position: fixed; inset: 0; z-index: 9999;
  background:#0a0a0a;
  display:flex; justify-content:center; align-items:center;
  min-height:100vh; overflow:hidden;
  opacity:1; visibility:visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.glitch-loader-container.is-hidden{
  opacity:0; visibility:hidden;
}

.glitch-loader-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.glitch-text {
  position: relative;
  font-size: 4rem;
  font-weight: bold;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 40px #00ffff,
    0 0 80px #00ffff;
  animation: glitch-main 2s infinite;
  user-select: none;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  color: #ff0040;
  text-shadow: 0 0 10px #ff0040, 0 0 20px #ff0040;
  animation: glitch-before 2s infinite;
  z-index: -1;
}

.glitch-text::after {
  color: #40ff00;
  text-shadow: 0 0 10px #40ff00, 0 0 20px #40ff00;
  animation: glitch-after 2s infinite;
  z-index: -2;
}

@keyframes glitch-main {
  0%,
  14%,
  15%,
  49%,
  50%,
  99%,
  100% {
    transform: translate(0);
  }
  15%,
  49% {
    transform: translate(-2px, 2px);
  }
  50%,
  99% {
    transform: translate(2px, -1px);
  }
}

@keyframes glitch-before {
  0%,
  14%,
  15%,
  49%,
  50%,
  99%,
  100% {
    transform: translate(0);
  }
  15%,
  49% {
    transform: translate(2px, -2px);
  }
  50%,
  99% {
    transform: translate(-1px, 2px);
  }
}

@keyframes glitch-after {
  0%,
  14%,
  15%,
  49%,
  50%,
  99%,
  100% {
    transform: translate(0);
  }
  15%,
  49% {
    transform: translate(-1px, -1px);
  }
  50%,
  99% {
    transform: translate(1px, 1px);
  }
}

.neon-loading-bar {
  position: relative;
  width: 300px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.neon-loading-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    #00ffff 30%,
    #ff0040 50%,
    #40ff00 70%,
    transparent
  );
  animation: loading-sweep 2s infinite ease-in-out;
  box-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff;
}

@keyframes loading-sweep {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.glitch-loading-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.glitch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ffff;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  animation: glitch-pulse 1.5s infinite;
}

.glitch-dot:nth-child(1) {
  animation-delay: 0s;
}

.glitch-dot:nth-child(2) {
  animation-delay: 0.2s;
  background: #ff0040;
  box-shadow: 0 0 10px #ff0040, 0 0 20px #ff0040;
}

.glitch-dot:nth-child(3) {
  animation-delay: 0.4s;
  background: #40ff00;
  box-shadow: 0 0 10px #40ff00, 0 0 20px #40ff00;
}

.glitch-dot:nth-child(4) {
  animation-delay: 0.6s;
  background: #ffff00;
  box-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00;
}

.glitch-dot:nth-child(5) {
  animation-delay: 0.8s;
  background: #ff8000;
  box-shadow: 0 0 10px #ff8000, 0 0 20px #ff8000;
}

@keyframes glitch-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  25% {
    transform: scale(1.3);
    opacity: 0.8;
  }
  50% {
    transform: scale(0.8);
    opacity: 0.6;
    filter: hue-rotate(90deg);
  }
  75% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

.glitch-progress-text {
  color: #00ffff;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff;
  animation: text-flicker 3s infinite;
  margin-top: 20px;
}

@keyframes text-flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
    text-shadow: 0 0 5px #ff0040, 0 0 10px #ff0040;
    color: #ff0040;
  }
}

.glitch-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 255, 0.03),
    rgba(0, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  animation: scanlines-move 0.1s linear infinite;
}

@keyframes scanlines-move {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(2px);
  }
}

.glitch-noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  animation: noise-animate 0.2s infinite;
}

@keyframes noise-animate {
  0%,
  100% {
    opacity: 0.02;
  }
  50% {
    opacity: 0.05;
  }
}

@media (max-width: 768px) {
  .glitch-text {
    font-size: 2.5rem;
  }

  .neon-loading-bar {
    width: 250px;
  }

  .glitch-progress-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .glitch-text {
    font-size: 2rem;
  }

  .neon-loading-bar {
    width: 200px;
  }
}
