.badge-progress-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge-progress-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-progress-section h3 .count {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  background: #f0f0f0;
  padding: 4px 12px;
  border-radius: 16px;
}

.progress-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.progress-filters button {
  padding: 8px 16px;
  border: 2px solid #e0e0e0;
  background: #fff;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.progress-filters button:hover {
  border-color: #ff6b35;
  color: #ff6b35;
  transform: translateY(-2px);
}

.progress-filters button.active {
  border-color: #ff6b35;
  background: #ff6b35;
  color: #fff;
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.badge-progress-card {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.badge-progress-card:hover {
  border-color: #ff6b35;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
  transform: translateY(-4px);
}

.badge-progress-card .badge-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: block;
  transition: all 0.3s ease;
}

.badge-progress-card .badge-icon.locked {
  opacity: 0.5;
  filter: grayscale(100%);
}

.badge-progress-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 8px;
}

.badge-progress-card .rarity-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 auto 12px;
}

.badge-progress-card .rarity-badge.common {
  background: #95a5a6;
  color: #fff;
}

.badge-progress-card .rarity-badge.uncommon {
  background: #2ecc71;
  color: #fff;
}

.badge-progress-card .rarity-badge.rare {
  background: #3498db;
  color: #fff;
}

.badge-progress-card .rarity-badge.epic {
  background: #9b59b6;
  color: #fff;
}

.badge-progress-card .rarity-badge.legendary {
  background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
  color: #fff;
  animation: toko-pulse 2s infinite;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin: 12px 0;
  position: relative;
}

.progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 6px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-bar .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: progress-shine 1.5s infinite;
}

.badge-progress-card .fill[style*='width: 8'],
.badge-progress-card .fill[style*='width: 9'] {
  background: linear-gradient(90deg, #f39c12 0%, #e74c3c 100%);
  box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
  animation: glow-pulse 2s infinite;
}

.progress-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  text-align: center;
  margin: 8px 0 4px 0;
}

.remaining {
  font-size: 1rem;
  font-weight: 600;
  color: #ff6b35;
  text-align: center;
  animation: pulse-text 2s infinite;
}

/* @keyframes shimmer: uses toko-pulse from loading-system.css */

@keyframes progress-shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.8);
  }
}

@keyframes pulse-text {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 768px) {
  .badge-progress-section {
    padding: 16px;
  }

  .progress-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .badge-progress-card {
    min-height: auto;
    padding: 16px;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .badge-progress-card .badge-icon {
    width: 48px;
    height: 48px;
    margin: 0 16px 0 0;
  }

  .badge-progress-card h4 {
    font-size: 1rem;
    text-align: left;
    margin-bottom: 4px;
  }

  .progress-bar {
    height: 8px;
    margin: 8px 0;
  }

  .progress-text,
  .remaining {
    text-align: left;
  }

  .progress-filters button {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
