:root {
  --primary-cyan: #00BFFF;
  --secondary-indigo: #4B0082;
  --accent-purple: #8A2BE2;
  --accent-pink: #FF1493;
  --text-white: #FFFFFF;
  --bg-black: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background: linear-gradient(135deg, #000000 0%, #0a0a1a 50%, #000000 100%);
  color: var(--text-white);
  overflow-x: hidden;
  min-height: 100vh;
}

.orbitron {
  font-family: 'Orbitron', sans-serif;
}

/* Animated Background */
.bg-animated {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

.bg-animated::before,
.bg-animated::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 20s ease-in-out infinite;
}

.bg-animated::before {
  background: radial-gradient(circle, var(--primary-cyan) 0%, transparent 70%);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.bg-animated::after {
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  bottom: 10%;
  right: 10%;
  animation-delay: 10s;
}

@keyframes float {
  
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  
  25% {
    transform: translate(50px, -50px) scale(1.1);
  }
  
  50% {
    transform: translate(-30px, 30px) scale(0.9);
  }
  
  75% {
    transform: translate(30px, 50px) scale(1.05);
  }
}

/* Glass morphism cards */
.glass-card {
  background: rgba(15, 15, 35, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.1), transparent);
  transition: left 0.5s;
}

.glass-card:hover::before {
  left: 100%;
}

.glass-card:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 191, 255, 0.3);
}

/* Stat cards with gradient borders */
.stat-card {
  position: relative;
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.3), rgba(0, 0, 0, 0.5));
  border-radius: 16px;
  padding: 2px;
  transition: all 0.3s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--accent-purple), var(--accent-pink));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card-inner {
  background: rgba(10, 10, 26, 0.9);
  border-radius: 14px;
  padding: 1.5rem;
  height: 100%;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-cyan), var(--accent-purple));
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0, 191, 255, 0.6);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: scale(1);
}

.btn-secondary {
  background: rgba(75, 0, 130, 0.3);
  border: 1px solid rgba(0, 191, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(0, 191, 255, 0.2);
  border-color: var(--primary-cyan);
}

.btn-secondary.active {
  background: linear-gradient(135deg, var(--primary-cyan), var(--accent-purple));
  border-color: transparent;
}

/* Loading spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-cyan);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Input fields */
input:focus {
  outline: none;
  border-color: var(--primary-cyan) !important;
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.4);
}

/* Progress bar */
.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-cyan), var(--accent-purple));
  border-radius: 10px;
  transition: width 0.5s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  
  100% {
    transform: translateX(100%);
  }
}

/* Pulse animation for live data */
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #00ff00;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  display: inline-block;
}

@keyframes pulse {
  
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  border: 1px solid var(--primary-cyan);
  font-size: 12px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Notification badge */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary-cyan), var(--accent-purple));
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  
  0%,
  100% {
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
  }
  
  50% {
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.8);
  }
}


@keyframes coinDrop {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }
  
  20% {
    opacity: 1;
  }
  
  70% {
    transform: translate(-50%, 28px);
    opacity: 1;
  }
  
  100% {
    transform: translate(-50%, 28px);
    opacity: 0;
  }
}

.animate-coin {
  animation: coinDrop 1.8s ease-in-out infinite;
}

@keyframes pulseSlow {
  
  0%,
  100% {
    transform: scale(1);
  }
  
  50% {
    transform: scale(1.05);
  }
}

.animate-pulse-slow {
  animation: pulseSlow 2s ease-in-out infinite;
}