* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#root {
  position: relative;
  z-index: 1;
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes fadeScaleIn {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.3); }
  50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.6); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    #e879f9, #f472b6, #fb923c, #e879f9, #f472b6
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glow-input:focus {
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.4), 0 0 30px rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.5);
}

.btn-generate {
  background: linear-gradient(135deg, #9333ea, #ec4899, #f97316);
  background-size: 200% 200%;
  transition: all 0.3s ease;
}

.btn-generate:hover:not(:disabled) {
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(147, 51, 234, 0.4);
}

.btn-generate:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.fade-scale-in {
  animation: fadeScaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.float-anim {
  animation: float 3s ease-in-out infinite;
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

.dot-pulse span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  animation: dotPulse 1.4s ease-in-out infinite;
  margin: 0 3px;
}

.dot-pulse span:nth-child(2) { animation-delay: 0.16s; }
.dot-pulse span:nth-child(3) { animation-delay: 0.32s; }

.style-pill {
  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.style-pill:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.1);
}

.style-pill.active {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.2);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.gallery-thumb {
  transition: all 0.25s ease;
}

.gallery-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.lightbox-overlay {
  animation: fadeScaleIn 0.25s ease forwards;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

textarea:focus, input:focus {
  outline: none;
}