.badges-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 25px 0 40px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 15px;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: bold;
    transition: 0.2s ease;
}

.badge:hover {
    transform: translateY(-2px);
}

.badge.locked {
    opacity: 0.3;
    filter: grayscale(100%);
}

.badge-icon {
    font-size: 18px;
}

.badge-label {
    font-size: 15px;
}

.badge-count {
    background: rgba(255,255,255,0.12);
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
}



/* COMMON */

.badge-common {
    background: rgba(120,120,120,0.12);
    border-color: #888888;
    color: #dddddd;
}



/* RARE */

.badge-rare {
    background: rgba(0,200,120,0.12);
    border-color: #00c878;
    color: #00e68a;
}



/* EPIC */

.badge-epic {
    background: rgba(0,140,255,0.12);
    border-color: #008cff;
    color: #46a8ff;
}



/* LEGENDARY */

.badge-legendary {
    background: rgba(140,0,255,0.12);
    border-color: #8c00ff;
    color: #b266ff;
}



/* MYTHIC */

.badge-mythic {
    background: rgba(255,140,0,0.12);
    border-color: #ff8c00;
    color: #ffb347;
}



/* UNIQUE */

.badge-unique {
    background: rgba(255,0,0,0.12);
    border-color: #ff3b3b;
    color: #ff6b6b;
}


.badge {
    position: relative;
    overflow: visible;
    z-index: 1;
}

.badge:hover {
    z-index: 999;
}

.badge::after {
    content: attr(data-description);
    position: absolute;
    bottom: -52px;
    left: 50%;
    transform: translateX(-50%);
    background: #111111;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
    z-index: 9999;
    border: 1px solid #333333;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.45);
    z-index: 1;
}

.badge:hover::after {
    opacity: 1;
    background: #111111;
}
