.badge,
badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 0 !important;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    margin: 0 -8px 0 0 !important;
}

.badge.badge--color::before,
badge.badge--color::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
	width: 55%;
	height: 55%;
    border-radius: 50%;
	background: var(--badge-color, #000);
}

.badge.badge--color,
badge.badge--color {
    width: 14px !important;
    box-sizing: content-box;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
	border: 4px solid white !important;
	box-shadow: none !important;
}

.badge.badge--light,
badge.badge--light {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.badge.badge--person,
badge.badge--person {
    font-size: 0 !important;
    color: transparent !important;
}

.badge.badge--person::before,
badge.badge--person::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.badge-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    background-color: transparent;
    pointer-events: none;
    animation: fadeIn 0.3s ease;
}

.badge-modal.show {
    display: block;
    pointer-events: auto;
}

.badge-modal-content {
    background-color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    min-width: 160px;
    animation: slideIn 0.3s ease;
    position: fixed;
    pointer-events: auto;
}

.badge-modal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge-modal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    text-decoration: none;
}

.badge-modal-item:hover {
    text-decoration: none;
}

.badge.badge--no-color,
badge.badge--no-color {
    
    font-size: 11px !important;
    font-weight: 600;
    color: #fff !important;
    border: none !important;
    line-height: 20px !important;
    text-align: center;
}
.badge.badge--no-color::before,
badge.badge--no-color::before {
    display: none;
}

.badge-modal-circle--no-color {
    border: none;
    background: #e6e6e6;
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 16px;
}

.badge-modal-letter {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.badge.badge--snowflake,
badge.badge--snowflake {
    color: #fff !important;
}
.badge.badge--snowflake::before,
badge.badge--snowflake::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 80% 80%;
    background-image: url("../img/Pazzle.png");
}

.badge-modal-circle--snowflake {
    position: relative;
    overflow: hidden;
}
.badge-modal-circle--snowflake::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/Pazzle.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10% 10%;
    pointer-events: none;
}

.badge-modal-circle--person {
    position: relative;
}
.badge-modal-circle--person::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.badge-modal-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 11px;
}

.badge-modal-circle::before {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 120%;
	height: 120%;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 90% 90%;
}



.badge-modal-text {
    font-weight: 500;
    color: #333;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .badge-modal-content {
        min-width: 140px;
        padding: 10px 12px;
    }
    
    .badge-modal-item {
        font-size: 12px;
        padding: 4px 0;
    }
    
    .badge-modal-circle {
        width: 14px;
        height: 14px;
    }
}