:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #1a1a1a;
  --bg-card: #1e1e1e;
  --accent-orange: #FF6B00;
  --accent-gold: #FFD700;
  --accent-cyan: #00E5FF;
  --accent-red: #FF2D2D;
  --text-primary: #f0f0f0;
  --text-secondary: #888;
}

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .heading {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bebas { font-family: 'Bebas Neue', sans-serif; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-orange); }

/* Glass panels */
.glass {
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.glass-light {
  background: rgba(40, 40, 40, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

/* Glow effects */
.glow-orange { box-shadow: 0 0 20px rgba(255, 107, 0, 0.3), 0 0 60px rgba(255, 107, 0, 0.1); }
.glow-gold { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 60px rgba(255, 215, 0, 0.1); }
.glow-cyan { box-shadow: 0 0 20px rgba(0, 229, 255, 0.3), 0 0 60px rgba(0, 229, 255, 0.1); }
.glow-red { box-shadow: 0 0 20px rgba(255, 45, 45, 0.3); }

.text-glow-orange { text-shadow: 0 0 20px rgba(255, 107, 0, 0.5), 0 0 40px rgba(255, 107, 0, 0.2); }
.text-glow-gold { text-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
.text-glow-cyan { text-shadow: 0 0 20px rgba(0, 229, 255, 0.5); }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 107, 0, 0.3); }
  50% { box-shadow: 0 0 25px rgba(255, 107, 0, 0.6), 0 0 50px rgba(255, 107, 0, 0.2); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes cardFlip {
  0% { transform: perspective(800px) rotateY(0deg) scale(0.8); opacity: 0; }
  50% { transform: perspective(800px) rotateY(90deg) scale(1.1); }
  100% { transform: perspective(800px) rotateY(0deg) scale(1); opacity: 1; }
}
@keyframes confettiFall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
@keyframes vibrate {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px) rotate(-0.5deg); }
  75% { transform: translateX(2px) rotate(0.5deg); }
}
@keyframes screenFlash {
  0% { opacity: 0; }
  20% { opacity: 0.8; }
  100% { opacity: 0; }
}
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes rainbowBorder {
  0% { border-color: #ff0000; }
  17% { border-color: #ff8800; }
  33% { border-color: #ffff00; }
  50% { border-color: #00ff00; }
  67% { border-color: #0088ff; }
  83% { border-color: #8800ff; }
  100% { border-color: #ff0000; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-fadeIn { animation: fadeIn 0.5s ease-out; }
.animate-slideIn { animation: slideIn 0.3s ease-out; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-cardFlip { animation: cardFlip 0.8s ease-out; }
.animate-vibrate { animation: vibrate 0.15s linear infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* Holographic card */
.holo-card {
  background: linear-gradient(135deg, 
    rgba(255,0,0,0.15), rgba(255,165,0,0.15), rgba(255,255,0,0.15),
    rgba(0,255,0,0.15), rgba(0,0,255,0.15), rgba(238,130,238,0.15));
  background-size: 400% 400%;
  animation: shimmer 3s linear infinite;
}

.rainbow-border {
  border: 2px solid;
  animation: rainbowBorder 2s linear infinite;
}

/* Tab indicator */
.tab-active {
  color: var(--accent-orange);
  border-bottom: 3px solid var(--accent-orange);
  text-shadow: 0 0 10px rgba(255, 107, 0, 0.4);
}

/* Custom range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(to right, var(--accent-orange), var(--accent-gold));
  border-radius: 3px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent-orange);
  border-radius: 50%;
  margin-top: -6px;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

/* Badge tiers */
.badge-bronze { background: linear-gradient(135deg, #8B4513, #CD853F); }
.badge-silver { background: linear-gradient(135deg, #708090, #C0C0C0); }
.badge-gold { background: linear-gradient(135deg, #B8860B, #FFD700); }
.badge-hof { background: linear-gradient(135deg, #8B008B, #FF69B4); }
.badge-legend { background: linear-gradient(135deg, #FF4500, #FFD700); }

/* Card rarities */
.rarity-bronze { border-color: #8B4513; box-shadow: 0 0 10px rgba(139,69,19,0.4); }
.rarity-silver { border-color: #C0C0C0; box-shadow: 0 0 10px rgba(192,192,192,0.4); }
.rarity-gold { border-color: #FFD700; box-shadow: 0 0 15px rgba(255,215,0,0.4); }
.rarity-pink-diamond { border-color: #FF69B4; box-shadow: 0 0 20px rgba(255,105,180,0.5); }
.rarity-galaxy-opal {
  border: 2px solid;
  animation: rainbowBorder 2s linear infinite;
  box-shadow: 0 0 25px rgba(255,105,180,0.4), 0 0 50px rgba(0,229,255,0.2);
}

/* Confetti piece */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confettiFall 3s linear forwards;
  z-index: 9999;
  pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nav-tabs { font-size: 11px; gap: 2px; }
  .nav-tabs button { padding: 8px 6px; }
}

/* Progress ring */
.progress-ring-circle {
  transition: stroke-dashoffset 0.5s ease;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}