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

:root {
  --primary: #6B21A8;
  --primary-light: #9333EA;
  --accent: #EC4899;
  --accent-light: #F472B6;
  --bg-light: #FAF5FF;
  --bg-card: #FFFFFF;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
}

.dark {
  --bg-light: #0F0A1A;
  --bg-card: #1A1025;
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-light);
  color: var(--text-primary);
  min-height: 100vh;
  transition: all 0.3s ease;
}

.font-mono {
  font-family: 'Space Mono', monospace;
}

.glass-card {
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.9) 0%, rgba(147, 51, 234, 0.85) 50%, rgba(236, 72, 153, 0.8) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-card {
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.7) 0%, rgba(147, 51, 234, 0.6) 50%, rgba(236, 72, 153, 0.5) 100%);
}

.card-shine {
  position: relative;
  overflow: hidden;
}

.card-shine::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 40%,
    transparent 50%
  );
  transform: rotate(-45deg);
  pointer-events: none;
}

.animate-count {
  animation: countUp 0.6s ease-out;
}

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

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

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

@keyframes confetti {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confetti 3s ease-out forwards;
}

.tab-active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.dark .tab-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.action-btn {
  transition: all 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
}

.action-btn:active {
  transform: scale(0.95);
}

.modal-backdrop {
  animation: fadeIn 0.2s ease;
}

.modal-content {
  animation: slideUp 0.3s ease;
}

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

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

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

.dark ::-webkit-scrollbar-thumb {
  background: var(--accent);
}