.badge-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.badge-card.earned {
    background: linear-gradient(135deg, #4b6b22, #8bc53f);
    border-color: #8bc53f;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.badge-card.earned:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.badge-card.not-earned {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ddd;
}

.badge-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

/* Badge group section headers */
.badge-group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0 0.75rem;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}
.badge-group-title i {
    font-size: 0.95rem;
}
.badge-group-count {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffd54f;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    white-space: nowrap;
}

.badge-card.not-earned .badge-icon {
    filter: grayscale(100%) opacity(0.5);
}

.badge-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.badge-description {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.3;
	min-height: 50px;
}

.badge-earned-date {
    font-size: 0.75rem;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.badge-card.not-earned .badge-earned-date {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.profile-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-profile-header-card.general-card {
    padding: 0;
    overflow: hidden;
    background-image: none;
    --bs-gutter-x: 0;
}

.user-profile-cover {
    height: 104px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.user-profile-header-body {
    padding: 0 14px 20px;
}

.user-avatar-large {
    width: 112px;
    height: 112px;
    margin-top: -56px;
    position: relative;
    z-index: 2;
    border: 4px solid #ffd700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.user-profile-name {
    position: relative;
    z-index: 2;
}

.profile-challenge-btn {
    font-weight: 600;
    white-space: normal;
    max-width: 100%;
}

.progress-bar-custom {
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    height: 8px;
    border-radius: 4px;
}

.progress-bg {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .user-profile-cover {
        height: 132px;
    }

    .user-profile-header-body {
        padding: 0 18px 22px;
    }

    .user-avatar-large {
        width: 120px;
        height: 120px;
        margin-top: -64px;
    }
}
