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

body {
  background: #0a0a0f;
  position: relative;
}

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

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

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: #1a1a2e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #00f0ff33; }

/* Animations */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 40px rgba(0, 240, 255, 0.1); }
  50% { box-shadow: 0 0 30px rgba(0, 240, 255, 0.5), 0 0 60px rgba(0, 240, 255, 0.2); }
}

@keyframes heartbeat-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(34, 255, 136, 0.3); }
  15% { transform: scale(1.04); box-shadow: 0 0 35px rgba(34, 255, 136, 0.5); }
  30% { transform: scale(1); box-shadow: 0 0 20px rgba(34, 255, 136, 0.3); }
  45% { transform: scale(1.02); box-shadow: 0 0 28px rgba(34, 255, 136, 0.4); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes ripple {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

@keyframes countdownTick {
  0% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.8); opacity: 0.7; }
  100% { transform: scaleY(1); opacity: 1; }
}

@keyframes progressGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(200px) rotate(720deg); opacity: 0; }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

.animate-slideUp {
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.4s ease-out forwards;
}

.animate-slideOutRight {
  animation: slideOutRight 0.3s ease-out forwards;
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

.animate-modalIn {
  animation: modalIn 0.3s ease-out forwards;
}

.heartbeat-btn {
  animation: heartbeat-pulse 1.5s ease-in-out infinite;
}

.heartbeat-btn:hover {
  animation: none;
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(34, 255, 136, 0.6), 0 0 80px rgba(34, 255, 136, 0.2);
}

.heartbeat-btn:active {
  transform: scale(0.97);
}

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

.blink-dot {
  animation: blink 2s ease-in-out infinite;
}

.shimmer-skeleton {
  background: linear-gradient(90deg, #13131d 25%, #1a1a2e 50%, #13131d 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.glass-card {
  background: rgba(13, 13, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.card-cyan:hover { border-color: rgba(0, 240, 255, 0.3); box-shadow: 0 0 30px rgba(0, 240, 255, 0.08); }
.card-green:hover { border-color: rgba(34, 255, 136, 0.3); box-shadow: 0 0 30px rgba(34, 255, 136, 0.08); }
.card-purple:hover { border-color: rgba(168, 85, 247, 0.3); box-shadow: 0 0 30px rgba(168, 85, 247, 0.08); }
.card-red:hover { border-color: rgba(255, 51, 85, 0.3); box-shadow: 0 0 30px rgba(255, 51, 85, 0.08); }

.progress-bar-glow {
  animation: progressGlow 2s ease-in-out infinite;
}

.neon-text-cyan {
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
}

.neon-text-green {
  color: #22ff88;
  text-shadow: 0 0 10px rgba(34, 255, 136, 0.5), 0 0 20px rgba(34, 255, 136, 0.3);
}

.neon-text-red {
  color: #ff3355;
  text-shadow: 0 0 10px rgba(255, 51, 85, 0.5), 0 0 20px rgba(255, 51, 85, 0.3);
}

.neon-text-yellow {
  color: #ffcc00;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.5), 0 0 20px rgba(255, 204, 0, 0.3);
}

.toast-progress {
  animation: toastProgress 4s linear forwards;
}