.cosmic-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  position: relative;
  z-index: -10;
}

.space-title {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  position: relative;
}

.space-animation {
  animation: cosmicGlow 3s ease-in-out infinite alternate;
}

.space-animation::before {
  animation: rotate 8s linear infinite;
  background: conic-gradient(from 0deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #ff6b6b);
}

.space-title::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 20px;
  z-index: -1;
  filter: blur(15px);
  opacity: 0.7;
}

.warp-net-item {
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(30, 60, 114, 0.1) 0%, rgba(42, 82, 152, 0.1) 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
  cursor: pointer;
}

.warp-net-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.warp-net-item:hover:not(.disabled) {
  background: linear-gradient(135deg, rgba(30, 60, 114, 0.2) 0%, rgba(42, 82, 152, 0.2) 100%);
  border-color: rgba(102, 126, 234, 0.6);
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.warp-net-item:hover:not(.disabled)::before {
  opacity: 1;
}

.warp-net-item.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: linear-gradient(135deg, rgba(60, 60, 60, 0.1) 0%, rgba(80, 80, 80, 0.1) 100%);
}

.ghost-effect {
  animation: ghostPulse 1.5s infinite alternate;
  border-color: rgba(147, 112, 219, 0.8) !important;
  background: linear-gradient(135deg, rgba(147, 112, 219, 0.1) 0%, rgba(186, 85, 211, 0.1) 100%) !important;
}

.ghost-effect::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 25px;
  background: conic-gradient(from 0deg, #9370db, #ba55d3, #8a2be2, #9370db);
  z-index: -1;
  animation: ghostWave 3s infinite, rotate 4s linear infinite;
  opacity: 0.6;
}

.cosmic-particles {
  position: fixed;
  top: -10px;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: float 20s infinite linear;
}

.particle:nth-child(odd) {
  background: #4ecdc4;
  animation-duration: 25s;
}

.particle:nth-child(3n) {
  background: #feca57;
  animation-duration: 30s;
}

.particle:nth-child(4n) {
  background: #ff9ff3;
  animation-duration: 35s;
}

.warp-ready {
  display: inline-block;
  animation: warpPulse 1s ease-in-out infinite alternate;
}

/* Animations */
@keyframes cosmicGlow {
  0% {
    text-shadow: 0 0 20px #667eea, 0 0 40px #667eea, 0 0 60px #667eea;
  }
  100% {
    text-shadow: 0 0 30px #764ba2, 0 0 60px #764ba2, 0 0 90px #764ba2;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes warpPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.25); }
}

@keyframes ghostPulse {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}

@keyframes ghostWave {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0px) rotateZ(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(100px) rotateZ(360deg);
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .space-title {
    font-size: 2rem;
  }

  .cosmic-header {
    flex-direction: column;
  }
}
