/**
 * Premium Card System CSS - Clip Awards 2025
 * Ultra-hochwertige Sammelkarten mit Luxus-Design
 * Passend zum bestehenden Design-System der Website
 */

/* === CARD SYSTEM VARIABLES === */
:root {
  /* Luxury Card Colors - Jahr-spezifische Kategorien */
  --card-rage: linear-gradient(135deg, #ff4757 0%, #c44569 100%);
  --card-gaming: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  --card-talent: linear-gradient(135deg, #a55eea 0%, #8b5cf6 100%);
  --card-cosplay: linear-gradient(135deg, #ff6b9d 0%, #f093fb 100%);
  --card-jumpscare: linear-gradient(135deg, #45b7d1 0%, #3742fa 100%);
  --card-lost: linear-gradient(135deg, #96ceb4 0%, #55efc4 100%);
  --card-artwork: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  --card-interaction: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  --card-wholesome: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
  
  /* Premium Card Effects */
  --card-glow: 0 0 30px rgba(212, 175, 55, 0.3);
  --card-shadow-luxury: 0 25px 50px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 35px 70px rgba(0, 0, 0, 0.6);
  
  /* Card System Layout */
  --card-border-radius: 20px;
  --card-transition: opacity 0.6s cubic-bezier(0.23, 1, 0.320, 1), box-shadow 0.6s cubic-bezier(0.23, 1, 0.320, 1), border-color 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  --card-bounce: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  --card-spacing: 2rem;
}

/* === MAIN CONTAINER === */
.cards-main-container {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.cards-main-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(145, 71, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(76, 201, 240, 0.1) 0%, transparent 50%);

  z-index: 0;
}

.cards-content {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

/* === CATEGORY-SPECIFIC GRADIENTS === */
.card-category[data-category="rage"] { --category-gradient: var(--card-rage); }
.card-category[data-category="gaming"] { --category-gradient: var(--card-gaming); }
.card-category[data-category="talent"] { --category-gradient: var(--card-talent); }
.card-category[data-category="cosplay"] { --category-gradient: var(--card-cosplay); }
.card-category[data-category="jumpscare"] { --category-gradient: var(--card-jumpscare); }
.card-category[data-category="lost"] { --category-gradient: var(--card-lost); }
.card-category[data-category="artwork"] { --category-gradient: var(--card-artwork); }
.card-category[data-category="interaction"] { --category-gradient: var(--card-interaction); }
.card-category[data-category="wholesome"] { --category-gradient: var(--card-wholesome); }

/* Backwards compatibility */
.category-card { margin-bottom: var(--space-lg); }
.album-container { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-lg); }
.categories-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
  gap: var(--card-spacing); 
}

/* === CARD CATEGORY STYLES === */
.card-category {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  transition: var(--card-transition);
  cursor: pointer;
  backdrop-filter: blur(20px);
  height: 180px;
  isolation: isolate;
}

.card-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--category-gradient);
  z-index: 1;
}

.card-category::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--category-gradient);
  opacity: 0;
  transition: var(--card-transition);
  z-index: -1;
}


.card-category:hover::after {
  opacity: 0.1;
}

/* Vollständige Kategorie - Leuchteffekt */
.card-category.category-complete {
  border: 2px solid rgba(212, 175, 55, 0.6);
  box-shadow: 
    0 0 20px rgba(212, 175, 55, 0.4),
    0 0 40px rgba(212, 175, 55, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.3);
  animation: categoryGlow 2s ease-in-out infinite;
}

@keyframes categoryGlow {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(212, 175, 55, 0.4),
      0 0 40px rgba(212, 175, 55, 0.2),
      0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.6);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(212, 175, 55, 0.6),
      0 0 60px rgba(212, 175, 55, 0.4),
      0 0 90px rgba(212, 175, 55, 0.2),
      0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.9);
  }
}

.card-category.category-complete::before {
  background: var(--category-gradient);
  opacity: 0.15;
}

.category-complete-icon {
  color: var(--color-gold);
  font-size: 0.9rem;
  margin-left: 0.4rem;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8));
  animation: starRotate 3s ease-in-out infinite;
}

@keyframes starRotate {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
}

.card-category-header {
  padding: var(--space-md) var(--space-md) 0;
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  z-index: 2;
}

.card-category-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-xs);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
}

.card-category-type {
  display: inline-block;
  background: var(--category-gradient);
  color: white;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.card-category-body {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  position: relative;
  z-index: 1;
}

/* Beschreibung und Progress Bar entfernt für simpleres Design */

.card-category-progress-bar[data-width] {
  animation: progressFill 2s var(--card-bounce) forwards;
}

@keyframes progressFill {
  to {
    width: attr(data-width percent);
  }
}

.card-category-stats {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.card-category-count {
  font-family: 'Unbounded', monospace;
  font-size: 2.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  line-height: 1;
  position: relative;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Verschiedene Styles für gesammelte vs. nicht gesammelte Karten */
.card-category-count[data-collected="true"] {
  background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 20px rgba(212, 175, 55, 0.8);
}

.card-category-count[data-collected="false"] {
  color: var(--color-text-secondary);
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
  opacity: 0.6;
}

/* Karten-Emoji entfernt für cleanen Look */

/* Entferne störende Animation */

/* === MAIN CONTAINER === */
.cards-main-container {
  position: relative;
  z-index: 1; /* Über dem Gradient Background (z-index: 0) */
}

.cards-content {
  position: relative; /* Parent für absolute-positionierte Elemente */
  min-height: 100vh;
  /* 3D-Perspective für Child-Elemente */
  perspective: 1500px;
  perspective-origin: center top;
}

/* === KOMPAKTE HERO SECTION === */
.cards-hero {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  padding: var(--space-xl) 0;
  overflow: hidden;
  z-index: 2; /* Über dem 3D-Kreis */
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-particle {
  position: absolute;
  width: 200px;
  height: 180px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-particle 8s ease-in-out infinite var(--delay);
}

.hero-particle:nth-child(1) {
  top: 10%;
  left: 20%;
}

.hero-particle:nth-child(2) {
  top: 30%;
  right: 15%;
}

.hero-particle:nth-child(3) {
  bottom: 20%;
  left: 10%;
}

@keyframes float-particle {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.6;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-bottom: var(--space-lg);
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-gold), var(--color-lila));
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  margin-bottom: var(--space-xl);
  animation: badge-glow 2s ease-in-out infinite alternate;
}

/* Einfacher grauer Text ohne Badge - dichter an Überschrift */
.hero-collection-text {
  font-size: 1.2rem;
  color: #ffffff94;
  font-weight: 400;
  text-align: center;
  margin: 0 0 var(--space-xs) 0; /* Noch dichter an Überschrift */
  letter-spacing: 2px;
}

@keyframes badge-glow {
  0% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
  100% { box-shadow: 0 0 30px rgba(145, 71, 255, 0.6); }
}

.cards-hero-title {
  font-family: 'Unbounded', sans-serif;
  margin-bottom: var(--space-lg);
  position: relative;
  transform: translateY(30px);
  opacity: 0;
  transition: all 1s var(--card-bounce);
}

.title-main {
  text-shadow: #fb00ff 0px 0 50px;
    display: block;
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 400;
    font-family: "basset-one", sans-serif;
    background: linear-gradient(135deg, #005b87 0%, #1f001f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: rgb(96 0 99);
    line-height: 0.9;
    position: relative;
    -webkit-text-stroke-color: #e867e3;
    text-stroke-color: #e867e3;
    -webkit-text-stroke-width: 2px;
    text-stroke-width: 1px;
}

@keyframes titlePulse {
  0%, 100% {
    filter: drop-shadow(1px -1px 0 rgb(255, 255, 255))
            drop-shadow(0 0 30px rgba(212, 175, 55, 0.6));
  }
  50% {
    filter: drop-shadow(1px -1px 0 rgb(255, 255, 255))
            drop-shadow(0 0 40px rgba(212, 175, 55, 0.8));
  }
}

.title-main .h1 {
  background: none !important;
}
.title-sub {
  display: block;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 400;
    font-family: "basset-three", sans-serif;
    color: rgb(0 100 128);
    text-shadow: #00e5ff 1px 0 7px;
    margin-top: -0.5rem;
    letter-spacing: 0.2em;
    position: relative;
}

.cards-hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
  position: relative;
}

.cards-hero-subtitle::before,
.cards-hero-subtitle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.cards-hero-subtitle::before {
  left: -80px;
}

.cards-hero-subtitle::after {
  right: -80px;
}

/* === 7TV-STYLE ACHIEVEMENT BOX (ENHANCED) === */
.hero-achievement {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  /* Enhanced Background mit Gradient */
  background: linear-gradient(135deg, 
    rgba(24, 26, 27, 0.95) 0%,
    rgba(18, 20, 22, 0.85) 100%
  );
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  /* Schönere Border mit Gradient */
  border: 1px solid transparent;
  background-image: 
    linear-gradient(135deg, rgba(24, 26, 27, 0.555), rgba(18, 20, 22, 0.499)),
    linear-gradient(135deg, rgba(191, 148, 255, 0.3), rgba(114, 137, 218, 0.2));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(191, 148, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 12px 18px;
  margin-bottom: var(--space-xl);
  max-width: 380px;
  position: relative;
  overflow: hidden;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animated Glow Effect */
.hero-achievement::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(191, 148, 255, 0.15) 0%,
    transparent 70%
  );
  animation: achievement-glow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes achievement-glow {
  0%, 100% { 
    transform: translate(0%, 0%) scale(1);
    opacity: 0.3;
  }
  50% { 
    transform: translate(10%, 10%) scale(1.1);
    opacity: 0.6;
  }
}

/* Enhanced Hover */
.hero-achievement:hover {
  background-image: 
    linear-gradient(135deg, rgba(24, 26, 27, 1), rgba(18, 20, 22, 0.95)),
    linear-gradient(135deg, rgba(191, 148, 255, 0.5), rgba(114, 137, 218, 0.3));
  transform: scale(0.95) translateY(-3px);
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.5),
    0 8px 20px rgba(191, 148, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Icon Container - Enhanced */
.achievement-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Schönerer Gradient Background */
  background: linear-gradient(135deg, 
    rgba(191, 148, 255, 0.2) 0%,
    rgba(114, 137, 218, 0.15) 100%
  );
  border: 1.5px solid rgba(191, 148, 255, 0.4);
  border-radius: 10px;
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 4px 12px rgba(191, 148, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Icon Glow Animation */
.achievement-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, 
    rgba(191, 148, 255, 0.4),
    rgba(114, 137, 218, 0.2)
  );
  border-radius: 8px;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.hero-achievement:hover .achievement-icon {
  transform: translateY(0px) scale(1) rotate(360deg);
  transition-duration: 1500ms !important;
  background: linear-gradient(135deg, 
    rgba(191, 148, 255, 0.3) 0%,
    rgba(114, 137, 218, 0.2) 100%
  );
  border-color: rgba(191, 148, 255, 0.6);
  box-shadow: 
    0 6px 16px rgba(191, 148, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-achievement:hover .achievement-icon::after {
  opacity: 1;
}

.achievement-icon i {
  /* Enhanced Purple Gradient */
  background: linear-gradient(135deg, 
    #d4a5ff 0%,
    #bf94ff 30%,
    #9370db 70%,
    #7289da 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 6px rgba(191, 148, 255, 0.5));
  transition: all 0.3s ease;
  animation: icon-pulse 3s ease-in-out infinite;
}

@keyframes icon-pulse {
  0%, 100% { 
    filter: drop-shadow(0 2px 6px rgba(191, 148, 255, 0.5));
  }
  50% { 
    filter: drop-shadow(0 3px 12px rgba(191, 148, 255, 0.8));
  }
}

.hero-achievement:hover .achievement-icon i {
  filter: drop-shadow(0 4px 16px rgba(191, 148, 255, 0.9));
  animation: none;
}

/* Text Container */
.achievement-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

/* Enhanced Typography */
.achievement-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b5b5be; /* Etwas heller */
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0;
  transition: color 0.2s;
}

.hero-achievement:hover .achievement-title {
  color: #d0d0d8;
}

.achievement-level {
  font-family: 'Unbounded', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    background: linear-gradient(135deg, #d4a5ff 0%, #bf94ff 50%, #a06cd5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.4px;
    margin: 0;
    transition: all 0.3s 
ease;
    text-shadow: 0 0 20px rgba(191, 148, 255, 0.3);
    text-align: left;
}

.hero-achievement:hover .achievement-level {
  background: linear-gradient(135deg, 
    #e5c1ff 0%,
    #d4a5ff 50%,
    #bf94ff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 30px rgba(191, 148, 255, 0.5);
}

.cards-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cards-stat-item.premium {
  background: linear-gradient(135deg, rgba(15, 15, 20, 0.6), rgba(20, 20, 28, 0.5));
  backdrop-filter: blur(25px);
  border: 1px solid rgba(60, 60, 70, 0.4);
  border-radius: 15px;
  padding: var(--space-lg);
  text-align: center;
  transition: var(--card-transition);
  position: relative;
  overflow: hidden;
  transform: translateY(50px) rotateY(15deg);
  opacity: 0;
}

.cards-stat-item.premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.cards-stat-item.premium:hover {
  transform: translateY(-8px) rotateY(5deg);
  border-color: var(--color-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(212, 175, 55, 0.4);
}

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
  animation: icon-float 4s ease-in-out infinite;
}

.stat-icon i {
  background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.cards-stat-number {
  font-family: 'Unbounded', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: var(--space-xs);
}

.cards-stat-label {
  font-size: 0.95rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.stat-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-top: var(--space-sm);
}

.stat-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-accent));
  border-radius: 2px;
  transition: width 2s var(--card-bounce);
  width: 0;
}

.stat-detail {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  margin-top: var(--space-xs);
}

/* === PACK INFO CONTAINER === */
.pack-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem !important;
}

.pack-info-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
  animation: packInfoFloat 4s ease-in-out infinite;
}

@keyframes packInfoFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}

/* === MILESTONE REWARDS CONTAINER === */
.cards-hero-stats {
  overflow: visible !important;
}

.milestone-wrapper {
  position: relative;
}

.milestone-rewards-container {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.875rem !important;
  min-width: 250px;
}

.milestone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.milestone-header-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.milestone-nclip-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.milestone-giveaway-image {
  position: absolute;
  top: -165px;
  left: 50%;
  transform: translateX(-50%);
  width: 222px;
  height: auto;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  animation: giveawayFadeIn 0.8s ease-out 0.5s forwards;
}

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

.milestone-subtext {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.3px;
}

.milestone-gewinnspiel-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 4px;
  color: #FFD700;
  font-size: 0.6rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.milestone-gewinnspiel-link:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.4);
  transform: scale(1.02);
}

.milestone-gewinnspiel-link i {
  font-size: 0.55rem;
}

/* Progress Bar */
.milestone-progress-bar {
  position: relative;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin: 0.5rem 0;
  overflow: visible;
}

.milestone-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.milestone-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: rgba(30, 30, 35, 1);
  border: 2px solid rgba(80, 80, 90, 0.6);
  border-radius: 50%;
  z-index: 2;
  transition: all 0.25s ease;
}

.milestone-marker.reached {
  background: #FFD700;
  border-color: #FFA500;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
  transform: translate(-50%, -50%) scale(1.1);
}

.milestone-marker .marker-percent {
  display: none;
}

/* Milestone Items */
.milestone-items {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.milestone-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(20, 20, 25, 0.7);
  border: 1px solid rgba(63, 63, 70, 0.5);
  border-left: 2px solid rgba(63, 63, 70, 0.6);
  border-radius: 5px;
  transition: all 0.2s ease;
}

.milestone-item:hover {
  background: rgba(30, 30, 38, 0.8);
  border-color: rgba(80, 80, 90, 0.6);
}

.milestone-item.reached {
  border-left-color: #FFD700;
  background: rgba(25, 22, 15, 0.8);
}

.milestone-item.reached:hover {
  border-left-color: #FFA500;
  background: rgba(35, 30, 18, 0.9);
}

.milestone-stage {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 42px;
}

.stage-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.milestone-item.reached .stage-icon {
  color: #FFD700;
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
}

.stage-percent,
.stage-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

.milestone-item.reached .stage-percent,
.milestone-item.reached .stage-label {
  color: #FFD700;
}

.stage-tickets {
  font-size: 0.5rem;
  font-weight: 500;
  color: rgba(255, 215, 0, 0.7);
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  white-space: nowrap;
  margin-left: 0.25rem;
}

.milestone-item.reached .stage-tickets {
  color: #FFD700;
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.3);
}

/* Code Area */
.milestone-code-area {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  justify-content: flex-end;
}

/* Fake Blur für nicht erreichte Milestones */
.code-fake-blur {
  display: flex;
  align-items: center;
}

.code-blur-locked {
  font-family: 'Consolas', monospace;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.2);
  filter: blur(3px);
  user-select: none;
  letter-spacing: 1px;
}

.code-hidden {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-hidden:hover .code-blur {
  color: rgba(255, 215, 0, 0.6);
}

.code-hidden:hover .reveal-eye-btn {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.4);
}

.code-blur {
  font-family: 'Consolas', monospace;
  font-size: 0.6rem;
  color: rgba(255, 215, 0, 0.4);
  filter: blur(3px);
  user-select: none;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

/* Augen-Button */
.reveal-eye-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 4px;
  color: #FFD700;
  font-size: 0.55rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reveal-eye-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.4);
  transform: scale(1.1);
}

.code-visible {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.55rem;
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.08);
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  letter-spacing: 0.3px;
  word-break: break-all;
}

.code-copy-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.2rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-size: 0.6rem;
}

.code-copy-btn:hover {
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.1);
}

.code-copy-btn.copied {
  color: #2ecc71;
}

/* Login Hint */
.milestone-login-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  text-align: center;
}

.milestone-login-hint i {
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .milestone-rewards-container {
    min-width: 220px;
  }
}

@media (max-width: 768px) {
  .milestone-rewards-container {
    min-width: 100%;
    order: -1;
  }
  
  .milestone-item {
    flex-wrap: wrap;
  }
  
  .milestone-code-area {
    width: 100%;
    margin-top: 0.25rem;
    justify-content: flex-start;
  }
}

/* === CARDS COUNTER === */
.cards-counter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem !important;
}

/* Main Stats Container */
.counter-main-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.counter-icon-wrapper {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  font-size: 1.85rem;
  color: #FFD700;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.counter-stats-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
  align-items: flex-start;
}

.counter-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
  text-align: left;
}

.counter-numbers {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  font-family: 'Unbounded', sans-serif;
  line-height: 1;
  margin-top: 0.1rem;
}

.counter-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-align: left;
}

.counter-collected {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
}

.counter-separator {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0.15rem;
}

.counter-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

/* Progress Info */
.counter-progress-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.progress-stat {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.85rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
  position: relative;
}

/* Rang Container mit Button */
#userLeaderboardRank {
  padding-right: 2.5rem;
}

.progress-stat:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 215, 0, 0.2);
}

.rank-arrow-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 6px;
  color: #FFD700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rank-arrow-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.2));
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-50%) translateX(2px);
}

.progress-stat i {
  font-size: 1rem;
  color: rgba(255, 215, 0, 0.7);
}

.progress-stat.rank-loaded span {
  font-weight: 600;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.progress-stat.rank-none span {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

.leaderboard-btn {
  margin-top: 0.25rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.leaderboard-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.25));
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.leaderboard-btn i {
  color: #FFD700;
  font-size: 0.9rem;
}

/* === LEADERBOARD MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 11, 21, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: linear-gradient(135deg, rgba(18, 18, 20, 0.98), rgba(24, 24, 27, 0.98));
  backdrop-filter: blur(24px);
  border: 1px solid rgba(63, 63, 70, 0.6);
  border-radius: 16px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  animation: modalSlideIn 0.3s ease-out;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem 1.25rem;
  border-bottom: 1px solid rgba(63, 63, 70, 0.3);
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.05), 
    rgba(255, 165, 0, 0.02), 
    transparent);
  position: relative;
}

.modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 215, 0, 0.3) 50%, 
    transparent);
}

.modal-icon {
  font-size: 1.75rem;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.modal-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95), 
    rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

.modal-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  background: linear-gradient(180deg, 
    rgba(0, 0, 0, 0.1), 
    transparent 30%);
}

/* Custom Scrollbar für Leaderboard */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(39, 39, 42, 0.3);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.4), 
    rgba(255, 165, 0, 0.3));
  border-radius: 4px;
  transition: background 0.2s ease;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.6), 
    rgba(255, 165, 0, 0.5));
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

/* Leaderboard Header */
.leaderboard-header {
  display: grid;
  grid-template-columns: 60px 3fr 100px 120px 100px;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.08), 
    rgba(255, 165, 0, 0.04), 
    transparent);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  position: relative;
}

.leaderboard-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 215, 0, 0.3) 50%, 
    transparent);
}

.leaderboard-header-cell {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 215, 0, 0.9);
  text-align: center;
}

.leaderboard-header-cell:first-child {
  text-align: center;
}

.leaderboard-header-cell:nth-child(2) {
  text-align: left;
}

.leaderboard-header-cell:last-child {
  text-align: right;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: 60px 3fr 100px 120px 100px;
  align-items: center;
  gap: 1.5rem;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, rgba(39, 39, 42, 0.4), rgba(39, 39, 42, 0.2));
  border: 1px solid rgba(63, 63, 70, 0.3);
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.leaderboard-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.05) 50%, 
    transparent);
}

.leaderboard-item:hover {
  background: linear-gradient(135deg, rgba(63, 63, 70, 0.5), rgba(63, 63, 70, 0.3));
  border-color: rgba(82, 82, 91, 0.5);
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.leaderboard-item.rank-1 {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.2), 
    rgba(255, 165, 0, 0.1), 
    rgba(255, 215, 0, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15),
              0 0 0 1px rgba(255, 215, 0, 0.2) inset;
}

.leaderboard-item.rank-1:hover {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.25), 
    rgba(255, 165, 0, 0.15), 
    rgba(255, 215, 0, 0.1));
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.25),
              0 4px 12px rgba(0, 0, 0, 0.3);
}

.leaderboard-item.rank-2 {
  background: linear-gradient(135deg, 
    rgba(192, 192, 192, 0.2), 
    rgba(192, 192, 192, 0.1), 
    rgba(192, 192, 192, 0.05));
  border: 1px solid rgba(192, 192, 192, 0.5);
  box-shadow: 0 0 15px rgba(192, 192, 192, 0.1);
}

.leaderboard-item.rank-2:hover {
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.2),
              0 4px 12px rgba(0, 0, 0, 0.3);
}

.leaderboard-item.rank-3 {
  background: linear-gradient(135deg, 
    rgba(205, 127, 50, 0.2), 
    rgba(205, 127, 50, 0.1), 
    rgba(205, 127, 50, 0.05));
  border: 1px solid rgba(205, 127, 50, 0.5);
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.1);
}

.leaderboard-item.rank-3:hover {
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.2),
              0 4px 12px rgba(0, 0, 0, 0.3);
}

.leaderboard-rank {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  min-width: 35px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.leaderboard-item.rank-1 .leaderboard-rank {
  color: #FFD700;
  font-size: 1.5rem;
}

.leaderboard-item.rank-2 .leaderboard-rank {
  color: #C0C0C0;
}

.leaderboard-item.rank-3 .leaderboard-rank {
  color: #CD7F32;
}

/* Rang-Badge */
.leaderboard-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.4rem;
  border-radius: 4px;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Viewer - Grau */
.leaderboard-rank-badge.rank-level-0 {
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.3), rgba(156, 163, 175, 0.15));
  border: 1px solid rgba(156, 163, 175, 0.5);
  color: rgba(156, 163, 175, 1);
}

/* Streamer - Lila */
.leaderboard-rank-badge.rank-level-1 {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(147, 51, 234, 0.15));
  border: 1px solid rgba(147, 51, 234, 0.5);
  color: rgba(147, 51, 234, 1);
}

/* Jury - Gold/Gelb */
.leaderboard-rank-badge.rank-level-2 {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(251, 191, 36, 0.15));
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: rgba(251, 191, 36, 1);
}

/* Moderator - Grün */
.leaderboard-rank-badge.rank-level-3 {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.15));
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: rgba(34, 197, 94, 1);
}

/* Admin - Rot */
.leaderboard-rank-badge.rank-level-4 {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.15));
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: rgba(239, 68, 68, 1);
}

/* Name Container mit Badges */
.leaderboard-name-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
}

.leaderboard-seven-tv-badge,
.leaderboard-equipped-badge {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.leaderboard-username {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Prozent Spalte */
.leaderboard-percent {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.leaderboard-percent.complete {
  color: rgba(34, 197, 94, 0.9);
}

/* Datum Spalte */
.leaderboard-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* Karten Spalte */
.leaderboard-cards {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-align: right;
}

.leaderboard-item.rank-1 .leaderboard-cards {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.leaderboard-item.rank-1 .leaderboard-rank {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.leaderboard-item.rank-2 .leaderboard-rank {
  color: rgba(192, 192, 192, 1);
}

.leaderboard-item.rank-3 .leaderboard-rank {
  color: rgba(205, 127, 50, 1);
}

.leaderboard-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.leaderboard-loading i {
  font-size: 2rem;
  color: #FFD700;
}

.leaderboard-empty {
  text-align: center;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Leaderboard Controls */
.leaderboard-controls {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0 1.5rem 1rem;
}

.leaderboard-search-container {
  position: relative;
  flex: 1;
  max-width: 280px;
  display: flex;
  align-items: center;
  min-height: 38px;
}

.leaderboard-search-container .search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 215, 0, 0.5);
  font-size: 0.85rem;
  pointer-events: none;
}

.leaderboard-search-input {
  width: 100%;
  height: 100%;
  padding: 0 1rem 0 2.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.leaderboard-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.leaderboard-search-input:focus {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.leaderboard-search-input:hover {
  border-color: rgba(255, 215, 0, 0.3);
}

.leaderboard-search-container:focus-within .search-icon {
  color: rgba(255, 215, 0, 0.8);
}

.leaderboard-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.leaderboard-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.25));
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
}

.leaderboard-btn i {
  color: #FFD700;
}

.my-position-btn,
.top-position-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1rem;
  min-height: 38px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.my-position-btn:hover,
.top-position-btn:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.25));
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
}

.my-position-btn i,
.top-position-btn i {
  color: #FFD700;
}

/* Leaderboard Pagination */
.leaderboard-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid rgba(63, 63, 70, 0.5);
}

.pagination-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 215, 0, 0.5);
  color: #FFD700;
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  min-width: 100px;
  text-align: center;
}

/* Highlight eigene Position */
.leaderboard-item.highlight-me {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.25), 
    rgba(255, 165, 0, 0.15),
    rgba(255, 215, 0, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.7);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.25),
              0 0 0 1px rgba(255, 215, 0, 0.3) inset;
  animation: highlightPulse 2.5s ease-in-out;
}

@keyframes highlightPulse {
  0%, 100% { 
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.25),
                0 0 0 1px rgba(255, 215, 0, 0.3) inset;
  }
  50% { 
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5),
                0 4px 20px rgba(255, 215, 0, 0.3),
                0 0 0 1px rgba(255, 215, 0, 0.5) inset;
  }
}

/* Responsive für neue Container */
@media (max-width: 768px) {
  .pack-info-image {
    max-width: 120px;
  }
  
  .cards-counter {
    padding: 1.5rem 1rem !important;
  }
  
  .counter-main-stats {
    gap: 1rem;
  }
  
  .counter-icon-wrapper {
    width: 52px;
    height: 52px;
    font-size: 1.65rem;
  }
  
  .counter-collected {
    font-size: 2rem;
  }
  
  .counter-total {
    font-size: 1.5rem;
  }
  
  .progress-stat {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  
  #userLeaderboardRank {
    padding-right: 2.25rem;
  }
  
  .rank-arrow-btn {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }
  
  .leaderboard-btn {
    font-size: 0.7rem;
    padding: 0.4rem 1rem;
  }
  
  .modal-container {
    max-width: 95%;
  }
  
  .modal-header {
    padding: 1.25rem 1.5rem 1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .leaderboard-controls {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem 1rem;
    justify-content: flex-start;
  }
  
  .leaderboard-search-container {
    flex: 1 1 100%;
    max-width: 100%;
    min-height: 36px;
  }
  
  .top-position-btn,
  .my-position-btn {
    flex: 1;
    min-width: 120px;
    min-height: 36px;
    font-size: 0.75rem;
  }
  
  .leaderboard-header {
    grid-template-columns: 45px 2fr 75px 95px 75px;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
  }
  
  .leaderboard-header-cell {
    font-size: 0.65rem;
  }
  
  .leaderboard-item {
    grid-template-columns: 45px 2fr 75px 95px 75px;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
  }
  
  .leaderboard-rank {
    font-size: 1rem;
  }
  
  .leaderboard-username {
    font-size: 0.85rem;
  }
  
  .leaderboard-percent {
    font-size: 0.8rem;
  }
  
  .leaderboard-date {
    font-size: 0.75rem;
  }
  
  .leaderboard-cards {
    font-size: 0.95rem;
  }
  
  .leaderboard-rank-badge {
    min-width: 18px;
    height: 18px;
    font-size: 0.6rem;
  }
  
  .leaderboard-seven-tv-badge,
  .leaderboard-equipped-badge {
    width: 18px;
    height: 18px;
  }
}

.completion-ring {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 60px;
  height: 60px;
}

.completion-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.completion-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2;
}

.completion-fill {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke-dasharray 2s var(--card-bounce);
  filter: drop-shadow(0 0 5px var(--color-gold));
}

/* === 3D-KREIS CATEGORY GRID === */
.cards-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  position: relative;
  perspective: 1500px;
  transform-style: preserve-3d;
  
  /* Spezifische Transitions - NICHT transform animieren! */
  transition: opacity 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

/* 3D-Kreis Grid - DEAKTIVIERT */
.cards-categories-grid.circle-3d {
  display: none !important; /* Komplett deaktiviert */
}

/* Blur Background für 3D-Kreis */
.cards-categories-grid.circle-3d::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  right: -100px;
  bottom: -100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  
  /* Kreisförmige Mask für 3D-Kreis */
  mask-image: radial-gradient(ellipse 60% 40% at center, 
    rgba(0,0,0,0) 10%, 
    rgba(0,0,0,0.3) 30%, 
    rgba(0,0,0,0.8) 50%, 
    rgba(0,0,0,0.3) 70%, 
    rgba(0,0,0,0) 90%);
  -webkit-mask-image: radial-gradient(ellipse 60% 40% at center, 
    rgba(0,0,0,0) 10%, 
    rgba(0,0,0,0.3) 30%, 
    rgba(0,0,0,0.8) 50%, 
    rgba(0,0,0,0.3) 70%, 
    rgba(0,0,0,0) 90%);
}

/* === CLIPPY-GEM WÄHRUNG === */
.currency-display {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  z-index: 10;
}

.currency-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.currency-container:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.currency-icon {
  width: 24px;
  height: 24px;
  filter: brightness(1.1) saturate(1.2);
  transition: transform 0.3s ease;
  cursor: pointer;
  position: relative;
}

.currency-icon:active {
  transform: scale(0.95);
}

.currency-container:hover .currency-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Canvas Confetti wird verwendet - keine Custom CSS mehr nötig */

.currency-amount {
  font-family: 'Unbounded', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: transparent;
  text-shadow: 
    /* Füllfarbe */
    0 0 0 #ff60f6,
    /* Magenta Kontur - nur 4 Richtungen */
    -1.5px -1.5px 0 #a900a0,
    1.5px -1.5px 0 #a900a0,
    -1.5px 1.5px 0 #a900a0,
    1.5px 1.5px 0 #a900a0,
    /* Schatten */
    0 3px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
  min-width: 40px;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

/* Pulse Animation für Gem Update */
.currency-amount.stat-pulse {
  animation: gemPulseUpdate 0.5s ease-out;
}

@keyframes gemPulseUpdate {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
    text-shadow: 
      0 0 0 #ff60f6,
      -2px -2px 0 #a900a0,
      2px -2px 0 #a900a0,
      -2px 2px 0 #a900a0,
      2px 2px 0 #a900a0,
      0 0 20px rgba(255, 96, 246, 0.8),
      0 5px 8px rgba(0, 0, 0, 0.5);
  }
  100% {
    transform: scale(1);
  }
}

/* Mobile Anpassungen für Währungsanzeige */
@media (max-width: 768px) {
  .currency-display {
    top: 1rem;
    left: 1rem;
  }
  
  .currency-container {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
  }
  
  .currency-icon {
    width: 20px;
    height: 20px;
  }
  
  .currency-amount {
    font-size: 0.9rem;
    min-width: 30px;
  }
}

.cards-categories-grid.circle-3d .card-category {
  pointer-events: auto; /* Karten bleiben klickbar */
  
  /* Schneller, aggressiver Blur */
  transition: filter 0.15s ease-out, opacity 0.4s ease-out;
}

/* Stelle sicher, dass alle Child-Elemente Klicks ERLAUBEN für bessere Click-Area */
.card-category * {
  pointer-events: auto;
}

/* Hauptelement auch klickbar */
.card-category {
  pointer-events: auto;
  cursor: pointer; /* Sicherstellen, dass Cursor überall im Container wechselt */
}

/* Hover-Effekt soll den gesamten Container erfassen */


/* Normales Grid - unter dem 3D-Kreis */
.cards-categories-grid.grid-normal {
  display: grid;
  grid-template-columns: repeat(auto-fit, 300px); /* Feste 300px Breite für einheitliche Container */
  gap: var(--space-lg);
  margin: 2rem 0;
  position: relative;
  z-index: 2;
  perspective: 1500px;
  transform-style: preserve-3d;
  justify-content: center; /* Zentriere die 300px Container */
}

/* Blur Background für Kategorie-Container - ähnlich wie Hero */
.cards-categories-grid.grid-normal::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -50px;
  right: -50px;
  bottom: -30px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 25px;
  z-index: -1;
  pointer-events: none;
  
  /* Transparenz-Gradienten: horizontal + vertikal kombiniert */
  mask-image: 
    linear-gradient(to right,
      rgba(0,0,0,0) 5%,
      rgba(0,0,0,1) 15%,
      rgba(0,0,0,1) 85%,
      rgba(0,0,0,0) 95%),
    linear-gradient(to bottom,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,1) 10%,
      rgba(0,0,0,1) 90%,
      rgba(0,0,0,0) 100%);
  mask-composite: intersect;
  -webkit-mask-composite: destination-in; /* Safari */
}

/* Normale Grid-Karten behalten alle Standard-Styles */
.cards-categories-grid.grid-normal .card-category {
  position: relative; /* Überschreibe nur position für Grid-Layout */
}

/* EXPLIZITE INHALTS-STYLES für beide Container */
/* EINHEITLICHE CONTAINER-HÖHE & BREITE */
.cards-categories-grid .card-category {
  width: 300px !important; /* Feste Breite für alle Container */
  min-width: 300px;
  max-width: 300px;
  height: 200px !important; /* Feste Höhe für alle Container */
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Ohne Button flex-start statt space-between */
  position: relative; /* Für absolute positioning des visual-accent */
}

.cards-categories-grid .card-category-header {
  padding: var(--space-md) var(--space-md) 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center; /* Zentriere Titel ohne Icon */
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.cards-categories-grid .card-category-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center; /* Zentriere Text ohne Icon */
  margin: 0;
  line-height: 1.2;
  width: 100%;
}

/* Card-category-icon CSS entfernt da keine Icons mehr verwendet werden */

.cards-categories-grid .card-category-stats {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cards-categories-grid .card-category-count {
  font-family: 'Unbounded', monospace;
  font-size: 4.5rem; /* Deutlich größere x/y Anzeige */
  font-weight: 600;
  text-align: center;
  line-height: 0.9;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* X/Y Fortschrittsanzeige Styling */
.cards-categories-grid .count-number {
  background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  letter-spacing: -2px; /* Noch negativeres Letter-Spacing für große Zahlen */
  font-size: 4.5rem; /* Noch größer für maximale Sichtbarkeit */
  line-height: 0.9;
}

.cards-categories-grid .card-category-body {
  flex: 1; /* Nimmt verfügbaren Platz zwischen Header und Visual-Accent */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* Kein Padding für maximale Zentrierung */
  position: relative;
  z-index: 2;
  min-height: 0; /* Wichtig für flex-item */
}

/* Actions/Button CSS entfernt da Button nicht mehr vorhanden */

.cards-categories-grid .count-label {
  font-size: 0.85rem; /* Etwas größer für bessere Proportion */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-secondary);
  margin-top: var(--space-sm); /* Mehr Abstand zur großen x/y Anzeige */
}

.cards-categories-grid .card-visual-accent {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--category-gradient, var(--color-gold));
  border-radius: 2px;
  pointer-events: none; /* Dieses Element soll Klicks nicht blockieren */
}

/* KATEGORIE-SPEZIFISCHE STYLES für beide Container */
.cards-categories-grid .card-category[data-category="rage"] { 
  --category-gradient: var(--card-rage); 
}
.cards-categories-grid .card-category[data-category="gaming"] { 
  --category-gradient: var(--card-gaming); 
}
.cards-categories-grid .card-category[data-category="talent"] { 
  --category-gradient: var(--card-talent); 
}
.cards-categories-grid .card-category[data-category="cosplay"] { 
  --category-gradient: var(--card-cosplay); 
}
.cards-categories-grid .card-category[data-category="jumpscare"] { 
  --category-gradient: var(--card-jumpscare); 
}
.cards-categories-grid .card-category[data-category="lost"] { 
  --category-gradient: var(--card-lost); 
}
.cards-categories-grid .card-category[data-category="artwork"] { 
  --category-gradient: var(--card-artwork); 
}
.cards-categories-grid .card-category[data-category="interaction"] { 
  --category-gradient: var(--card-interaction); 
}
.cards-categories-grid .card-category[data-category="wholesome"] { 
  --category-gradient: var(--card-wholesome); 
}

@keyframes rotate-circle {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* 3D-Kreis Karten - NUR 3D-POSITIONING, ALLE ANDEREN STYLES ERBEN */
.cards-categories-grid.circle-3d .card-category {
  /* NUR die nötigen Overrides für 3D-Positioning */
  position: absolute !important;
  transform-style: preserve-3d;
  
  /* 3D-Zentrierung */
  left: 50%;
  top: 50%;
  margin-left: -150px; 
  margin-top: -100px;  
  
  /* 3D-Transform - Karten im geneigten Kreis */
  transform-origin: center center;
  /* Karten positioniert im Kreis (rotateY) + leicht nach hinten geneigt */
  transform: translateZ(-800px) rotateY(var(--rotation, 0deg)) translateZ(800px) rotateX(-12deg);
  
  /* Alle Seiten sichtbar - auch hintere Elemente */
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

/* 3D-Kreis Hover - NUR 3D-Transform, andere Hover-Effekte bleiben erhalten */
.cards-categories-grid.circle-3d .card-category:hover {
  /* Beim Hover: Karten bleiben geneigt, kommen näher + Scale */
  transform: translateZ(-850px) rotateY(var(--rotation)) translateZ(850px) rotateX(-15deg) scale(1.1) !important;
  /* Alle anderen Hover-Effekte (Farben, Schatten, etc.) werden von .card-category:hover vererbt */
}



/* === HERO-KREIS MODUS === */
.cards-categories-grid.hero-circle {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  pointer-events: none;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
  /* GENEIGT: Hero-Mode stärker geneigt */
  transform: rotateX(-30deg) translateY(200px);
  will-change: transform;
}

@media (max-width: 768px) {
  .cards-categories-grid.hero-circle {
    display: none !important;
  }
}

.cards-categories-grid.hero-circle .card-category {
  pointer-events: auto; /* Karten bleiben klickbar */
  transform-origin: center center;
}

/* Legacy hero-circle styles entfernt - verwende jetzt circle-3d */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--card-spacing);
  margin-bottom: var(--space-3xl);
}

/* Doppelte .card-category Definitionen entfernt - alle Styles werden von den ersten Definitionen oberhalb vererbt */

.category-preview {
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
    position: relative;
    overflow: hidden;
}

.category-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.category-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--category-color);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
}

.category-type-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.category-type-clip {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
}

.category-type-trainer {
    background: linear-gradient(45deg, #8A2387, #FFD700);
    color: white;
}

.category-progress {
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--category-color);
    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%); }
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.category-preview-cards {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.mini-card {
    min-width: 60px;
    height: 80px;
    border-radius: 8px;
    background: var(--category-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 0.8rem;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.mini-card.collected {
    opacity: 1;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* === INDIVIDUAL CARD DESIGN === */
.trading-card {
    width: 280px;
    height: 400px;
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid var(--category-color);
}

/* .trading-card:hover {
    transform: translateY(-8px) rotateY(5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
} */
/* Hover-Effekt wird in cards-category.ejs definiert */

.trading-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--category-color), rgba(255,255,255,0.3), var(--category-color));
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trading-card:hover::before {
    opacity: 1;
}

.card-header {
    background: var(--category-color);
    color: white;
    padding: 8px 12px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.card-number {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.card-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.card-content {
    padding: 0 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-streamer {
    font-size: 0.9rem;
    color: var(--category-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.card-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex: 1;
}

.card-footer {
    margin-top: auto;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 12px 12px;
}

.card-rarity {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.rarity-common {
    background: #95a5a6;
    color: white;
}

.rarity-rare {
    background: #3498db;
    color: white;
}

.rarity-epic {
    background: #9b59b6;
    color: white;
}

.rarity-legendary {
    background: #f39c12;
    color: white;
}

.card-collected {
    opacity: 1;
}

.card-not-collected {
    opacity: 0.4;
    filter: grayscale(50%);
}

/* === CATEGORY COLOR VARIABLES === */
.category-beste-zuschauer-interaktion {
    --category-color: #FF6B6B;
}

.category-bester-gaming-moment {
    --category-color: #4ECDC4;
}

.category-bester-jumpscare {
    --category-color: #45B7D1;
}

.category-bester-lost-moment {
    --category-color: #96CEB4;
}

.category-bester-wholesome-moment {
    --category-color: #FECA57;
}

.category-clip-des-jahres {
    --category-color: #FF9FF3;
}

.category-elite-trainer {
    --category-color: #8A2387;
}

.category-champion-trainer {
    --category-color: #FFD700;
}

/* === CARDS GRID === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.category-section {
    margin-bottom: 4rem;
}

.category-section-title {
    font-size: 2rem;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.category-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--category-color);
    border-radius: 2px;
}

/* Breadcrumb CSS entfernt - Navigation nicht mehr benötigt */

/* === KOMPAKTE QUICK NAVIGATION === */
.cards-quick-nav {
  margin-bottom: var(--space-xl);
}

.quick-nav-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.4rem;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.quick-nav-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: var(--space-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: var(--card-transition);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  backdrop-filter: blur(10px);
}

.quick-nav-item:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.quick-nav-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--category-gradient);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.quick-nav-info {
  flex: 1;
}

.quick-nav-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-3xs);
}

.quick-nav-progress {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.quick-nav-bar {
  width: 50px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.quick-nav-fill {
  height: 100%;
  background: var(--category-gradient);
  border-radius: 2px;
  transition: width 1s var(--card-bounce);
  width: 0;
}

/* === KOMPAKTE FILTERS === */
.cards-filters {
  margin-bottom: var(--space-lg);
}

.filters-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: var(--space-md);
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.filter-group label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.filter-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  font-size: 0.9rem;
  min-width: 150px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.view-toggle-btn {
  background: linear-gradient(135deg, var(--color-gold), var(--color-lila));
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--card-transition);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.view-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* === KOMPAKTE INFO SECTION === */
.cards-info {
  margin-top: var(--space-xl);
}

.info-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.info-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: var(--space-lg);
  transition: var(--card-transition);
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--card-shadow-luxury);
}

.info-icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.info-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.4rem;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.info-card ul {
  list-style: none;
  padding: 0;
}

.info-card li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  padding-left: var(--space-lg);
}

.info-card li:before {
  content: '🎯';
  position: absolute;
  left: 0;
  top: var(--space-sm);
}

.info-card li:last-child {
  border-bottom: none;
}

.stats-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.stat-detail {
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-detail:last-child {
  border-bottom: none;
}

.stat-label {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.stat-value {
  color: var(--color-gold);
  font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .card-system-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .trading-card {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .album-container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .card-system-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .trading-card {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .album-container {
        padding: 0 1rem;
    }
    
    .cards-content {
        padding: var(--space-xl) var(--space-md);
    }
    
    .breadcrumb-container {
        padding: 0 var(--space-md);
    }
    
    .cards-hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .cards-stat-item.premium {
        padding: var(--space-lg);
    }
    
    .cards-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .cards-categories-grid .card-category {
        height: 180px !important; /* Mobile etwas kleiner aber einheitlich */
        width: 280px !important; /* Mobile etwas schmaler aber einheitlich */
        min-width: 280px;
        max-width: 280px;
    }
    
    .cards-categories-grid.grid-normal {
        grid-template-columns: 1fr; /* Mobile single column */
        justify-items: center; /* Zentriere die 280px Container */
    }
    
    .cards-categories-grid .card-category-header {
        height: 50px;
        padding: var(--space-sm) var(--space-sm) 0;
    }
    
    .cards-categories-grid .card-category-title {
        font-size: 0.9rem;
    }
    
    /* Sehr kleine Mobile Screens - angepasst für 160px Container */
    .cards-categories-grid .card-category-count {
        font-size: 1.8rem; /* Sehr klein für 160px Container */
    }
    
    .cards-categories-grid .count-number {
        font-size: 1.8rem;
        letter-spacing: -0.5px;
        line-height: 0.9;
    }
    
    .cards-categories-grid .count-label {
        font-size: 0.65rem; /* Sehr kleine Label */
        margin-top: var(--space-xs);
    }
    
    .cards-categories-grid .card-category-title {
        font-size: 0.65rem; /* Sehr kompakte Titel für kleine Container */
    }
    
    .card-category-count[data-collected="true"] {
        text-shadow: 0 3px 15px rgba(212, 175, 55, 0.6);
    }
    
    .card-category-count[data-collected="false"] {
        text-shadow: 0 1px 5px rgba(255, 255, 255, 0.05);
    }
    
    .title-main {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }
    
    .title-sub {
        font-size: clamp(1.5rem, 8vw, 3rem);
    }
    
    .cards-hero-subtitle::before,
    .cards-hero-subtitle::after {
        display: none;
    }
    
    .hero-achievement {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
        padding: var(--space-md) var(--space-lg);
    }
    
    .achievement-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .achievement-text {
        align-items: center;
    }
    
    .achievement-level {
        font-size: 1rem;
    }
    
    .quick-nav-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-container {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .filter-group {
        width: 100%;
    }
    
    .info-container {
        grid-template-columns: 1fr;
    }
    
    /* 3D-Kreis Mobile Anpassungen (sehr kleine Screens) */
    .cards-categories-grid.circle-3d {
        transform: rotateX(-12deg) translateY(50px);
        min-height: 60vh;
    }
    
    .cards-categories-grid.circle-3d .card-category {
        /* Mobile Small - VIEL GRÖSSERER Abstand für bessere Lesbarkeit */
        transform: translateZ(-600px) rotateY(var(--rotation)) translateZ(600px) !important;
        margin-top: -60px;
        margin-left: -100px;
        width: 200px !important;
        height: 130px !important;
    }
    
    .cards-categories-grid.circle-3d .card-category:hover {
        /* Mobile Hover - dezenter */
        transform: translateZ(-630px) rotateY(var(--rotation)) translateZ(630px) scale(1.05) !important;
    }
}

/* === TABLET/MEDIUM SCREENS === */
@media (min-width: 769px) and (max-width: 1024px) {
    /* 3D-Kreis Tablet Anpassungen */
    .cards-categories-grid.circle-3d {
        transform: rotateX(-20deg) translateY(100px);
        min-height: 72vh;
    }
    
    .cards-categories-grid.circle-3d .card-category {
        /* Tablet - Original Radius */
        transform: translateZ(-600px) rotateY(var(--rotation)) translateZ(600px) !important;
        margin-top: -80px;
        margin-left: -130px;
        width: 260px !important;
        height: 170px !important;
    }
    
    .cards-categories-grid.circle-3d .card-category:hover {
        /* Tablet Hover */
        transform: translateZ(-630px) rotateY(var(--rotation)) translateZ(630px) scale(1.08) !important;
    }
    
    /* Tablet Container-Größen - angepasst für kleinere Container */
    .cards-categories-grid .card-category-count {
        font-size: 2.8rem; /* Kleiner für 250px Container */
    }
    
    .cards-categories-grid .count-number {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }
    
    .cards-categories-grid .card-category-title {
        font-size: 0.85rem; /* Kleinere Titel für kompakte Container */
    }
}

/* === LARGE MOBILE/SMALL TABLET === */
@media (min-width: 481px) and (max-width: 768px) {
    /* 3D-Kreis große Mobile/kleine Tablets */
    .cards-categories-grid.circle-3d {
        transform: rotateX(-16deg) translateY(70px);
        min-height: 65vh;
    }
    
    .cards-categories-grid.circle-3d .card-category {
        /* Mobile Large - SEHR GROSSER Abstand zwischen Containern */
        transform: translateZ(-700px) rotateY(var(--rotation)) translateZ(700px) !important;
        margin-top: -70px;
        margin-left: -110px;
        width: 220px !important;
        height: 150px !important;
    }
    
    .cards-categories-grid.circle-3d .card-category:hover {
        /* Mobile Large Hover */
        transform: translateZ(-740px) rotateY(var(--rotation)) translateZ(740px) scale(1.06) !important;
    }
    
    /* Große Mobile Container-Größen - angepasst für 200px Container */
    .cards-categories-grid .card-category-count {
        font-size: 2.2rem; /* Deutlich kleiner für 200px Container */
    }
    
    .cards-categories-grid .count-number {
        font-size: 2.2rem;
        letter-spacing: -0.8px;
    }
    
    .cards-categories-grid .card-category-title {
        font-size: 0.75rem; /* Sehr kompakte Titel */
    }
}

/* === ANIMATIONS === */
@keyframes cardFlip {
    0% { transform: rotateY(0); }
    50% { transform: rotateY(90deg); }
    100% { transform: rotateY(0); }
}

.card-flip {
    animation: cardFlip 0.6s ease-in-out;
}

@keyframes cardGlow {
    0%, 100% { box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
    50% { box-shadow: 0 8px 25px var(--category-color), 0 0 30px var(--category-color); }
}

.card-legendary .trading-card {
    animation: cardGlow 2s ease-in-out infinite;
}

/* === LOADING STATES === */
.card-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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