#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none; /* Ensure it is hidden by default */
    opacity: 0;
    transition: opacity 0.5s ease;
}

#popup-overlay.show {
    display: block;
    opacity: 1;
}

#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: none; /* Ensure it is hidden by default */
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translate(-50%, -40%);
}

#popup.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%);
}

#popup img {
    max-width: 100%;
    height: auto;
}


.btn {
    display: inline-block;
    vertical-align: top;
    text-align: center;
    cursor: pointer;
    background-color: transparent;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
    padding: 14px 22px;
    min-width: 186px;
    }
    .btn:hover {
    color: var(--title_color);
    border-color: var(--theme_color);
    background-color: var(--theme_color);
    }
    .pop_user_infos2 {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s;
    }
    .pop_user_infos2.active {
    opacity: 1;
    pointer-events: all;
    }
    .pop_user_infos2.active > .close {
    opacity: 1;
    }
    .pop_user_infos2.active .user_infos_con {
    opacity: 1;
    transform: translate(0);
    }
    .pop_user_infos2 > .close {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(9, 9, 10, 0.89);
    transition: all 0.3s;
    opacity: 0;
    }
    .pop_user_infos2 .user_infos_con {
    transition: all 0.4s;
    opacity: 0;
    transform: translateY(-20%);
    position: relative;
    z-index: 2;
    padding: 12px;
    width: calc(100% - 2.4rem);
    max-width: 908px;
    background-color: #1c1e23;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.45);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
    }
    .pop_user_infos2 .user_infos_con::before {
    content: '';
    display: block;
    position: absolute;
    z-index: -1;
    inset: 0;
    background-color: #747578;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 0, 2px 2px, 2px calc(100% - 2px), calc(100% - 18px - 0.83px) calc(100% - 2px), calc(100% - 2px) calc(100% - 18px - 0.83px), calc(100% - 2px) 2px, 2px 2px);
    }
    .pop_user_infos2 .user_infos_con .close {
    width: 1rem;
    height: 1rem;
    background: url(../svg/close-3.svg) no-repeat center / contain;
    cursor: pointer;
    filter: contrast(0) brightness(1.2);
    transition: all 0.3s;
    position: absolute;
    top: 40px;
    right: 30px;
    z-index: 2;
    }
    .pop_user_infos2 .user_infos_con .close:hover {
    filter: contrast(0) brightness(2);
    }
    .pop_user_infos2 .user_infos_con .con {
    max-height: calc(100vh - 3rem);
    display: flex;
    gap: 5.1076%;
    align-items: flex-start;
    padding: 7.918553% 7.918553% 11.312218%;
    background: url(../png/user-bg-2.png) no-repeat center / cover;
    overflow: auto;
    }
    .pop_user_infos2 .user_infos_con .con::-webkit-scrollbar {
    width: 3px;
    }
    .pop_user_infos2 .user_infos_con .con::-webkit-scrollbar-thumb {
    background: #888888;
    border-radius: 10px;
    }
    .pop_user_infos2 .user_infos_con .avatar {
    width: 21.23656%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.17);
    padding: 6px;
    }
    .pop_user_infos2 .user_infos_con .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    }
    .pop_user_infos2 .user_infos_con .infos {
    flex: 1;
    color: #fff;
    }
    .pop_user_infos2 .user_infos_con .infos .name {
    margin-top: 1rem;
    font-size: 33px;
    font-weight: 500;
    text-transform: uppercase;
    }
    .pop_user_infos2 .user_infos_con .infos .status {
    font-size: 20px;
    font-weight: 500;
    color: var(--theme_color);
    text-transform: uppercase;
    margin-top: 6px;
    }
    .pop_user_infos2 .user_infos_con .infos .date {
    opacity: 0.85;
    font-size: 18px;
    margin-top: 12px;
    }
    .pop_user_infos2 .user_infos_con .infos .items {
    margin-top: 22px;
    padding: 24px 0 20px;
    gap: 1rem;
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.17);
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
    }
    .pop_user_infos2 .user_infos_con .infos .items .item {
    flex: 1;
    }
    .pop_user_infos2 .user_infos_con .infos .items .item strong {
    font-size: 37px;
    font-weight: 500;
    line-height: 1;
    }
    .pop_user_infos2 .user_infos_con .infos .items .item p {
    margin-top: 10px;
    opacity: 0.75;
    text-transform: uppercase;
    font-size: 15px;
    line-height: 19px;
    }

    .pop_intro_infos .infos {
    text-align: center;
    }
    .pop_intro_infos .date {
    line-height: 1.5;
    }
    .pop_intro_infos .btn {
    margin-top: 2rem;
    color: var(--title_color);
    border-color: var(--theme_color);
    background-color: var(--theme_color);
    }
    .pop_intro_infos .btn:hover {
    color: var(--theme_color);
    background-color: transparent;
    }
