:root {
  --background: #0A0E27;
  --cards: #1A1F3A;
  --primary: #00D9FF;
  --secondary: #39FF14;
  --text-primary: #FFFFFF;
  --text-secondary: #A0AEC0;
}

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

html, body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(0, 217, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(57, 255, 20, 0.06) 0%, transparent 50%),
    var(--background);
}

#root {
  min-height: 100vh;
}

.bg-background {
  background-color: var(--background);
}

.bg-cards {
  background-color: var(--cards);
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.8));
  }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--cards);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Touch action for swipe */
.select-none {
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}

/* Mobile-first responsive */
@media (max-width: 420px) {
  html {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Gradient text fallback */
.gradient-text {
  background: linear-gradient(90deg, #00D9FF, #39FF14);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.2);
}

/* Button press effect */
button:active {
  transform: scale(0.95);
}

/* Neon glow effects */
.neon-cyan {
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.8), 0 0 20px rgba(0, 217, 255, 0.6);
}

.neon-green {
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.8), 0 0 20px rgba(57, 255, 20, 0.6);
}

/* SVG icon styling */
svg {
  filter: drop-shadow(0 0 8px currentColor);
}

/* Smooth page transitions */
.page-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

/* Bottom nav styling */
.bottom-nav {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Prevent text selection during swipe */
.no-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Loading shimmer effect */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, var(--cards) 0%, var(--primary) 50%, var(--cards) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}