.profile-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1998;
    display: none;
}

.profile-popup-overlay.active {
    display: block !important;
}

.profile-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1999;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-radius: 0 20px 0 20px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.profile-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.profile-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(13, 55, 71, 0.7);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 0 15px 0 15px;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.profile-popup-close:hover {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(255, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 0 15px 0 15px;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}


.profile-popup-banner-wrap {
    line-height: 0;
    border-bottom: 6px solid rgba(13, 55, 71, 0.8);
}

.profile-popup-banner {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.profile-popup-content {
    padding: 20px;
    color: #ffffff;
}

.profile-popup-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: -50px;
    margin-bottom: 16px;
}

.profile-popup-avatar {
    width: 80px;
    height: 80px;
    border-radius: 0 12px 0 12px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.profile-popup-meta h2 {
    margin: 0 0 4px 0;
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.profile-popup-role {
    margin: 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    opacity: 0.85;
}

.profile-popup-section {
    margin-bottom: 16px;
}

.profile-popup-section label {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 4px;
}

.profile-popup-section p {
    margin: 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
}

.profile-popup-loading,
.profile-popup-error {
    padding: 30px;
    text-align: center;
    color: #ffffff;
    font-family: 'Roboto Mono', monospace;
}