.badges-page-header i {
    color: #6366f1;
    margin-right: 0.35rem;
}

.badge-catalog-state {
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    background: #f8fafc;
}

.badge-category-group {
    margin-bottom: 1.5rem;
}

.badge-category-group-title {
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-catalog-card {
    height: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge-catalog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.badge-catalog-card.is-locked {
    opacity: 0.84;
}

.badge-catalog-card-body {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.badge-catalog-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: #e5e7eb;
    flex-shrink: 0;
}

.badge-catalog-icon-fallback {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #e5e7eb;
    color: #475569;
    flex-shrink: 0;
}

.badge-catalog-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.25;
    margin-bottom: 0.2rem;
}

.badge-catalog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

.badge-catalog-description {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.45rem;
}

.badge-catalog-requirement {
    font-size: 0.8rem;
    color: #334155;
}

.badge-progress-wrap {
    margin-top: 0.45rem;
}

.badge-progress-meta {
    font-size: 0.76rem;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.badge-progress-bar {
    height: 0.55rem;
    background: #e2e8f0;
}

.badge-progress-bar .progress-bar {
    background: #6366f1;
    font-size: 0.62rem;
    line-height: 0.55rem;
}

.badge-earned-indicator {
    font-size: 0.78rem;
    color: #059669;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.badge-locked-indicator {
    font-size: 0.78rem;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.badge-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 0.9rem;
}

.badge-feature-toggle {
    margin-top: 0.6rem;
}

.badge-featured-summary {
    border-radius: 12px;
}

.theme-dark .badge-catalog-state {
    background: #111827;
    border-color: #374151;
}

.theme-dark .badge-category-group-title,
.theme-dark .badge-catalog-name,
.theme-dark .badge-catalog-requirement {
    color: #e5e7eb;
}

.theme-dark .badge-catalog-description {
    color: #9ca3af;
}

.theme-dark .badge-progress-meta {
    color: #cbd5e1;
}

.theme-dark .badge-progress-bar {
    background: #1f2937;
}

.theme-dark .badge-catalog-card {
    background: #0f172a;
    border-color: #1f2937;
}

.theme-dark .badge-catalog-icon,
.theme-dark .badge-catalog-icon-fallback {
    background: #1f2937;
    color: #cbd5e1;
}

.theme-dark .badge-featured-summary {
    background: #0f172a;
    border-color: #1f2937 !important;
}
