.user-profile-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    /* Adjust as needed */
    background-color: var(--background-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-low);
    z-index: 1000;
    color: var(--text-primary);
    border: 1px solid var(--background-primary-hover);
}



.user-profile-modal .banner {
    overflow: hidden;
    height: 115px;
    /* Based on 350:150 aspect ratio and 300px width */
    display: flex;
    justify-content: center;
    background-color: var(--background-primary);
    position: relative;
    border-radius: 8px;
    border-end-end-radius: 0;
    border-end-start-radius: 0;
}

.user-profile-modal .banner .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.user-profile-modal .profile-content {
    padding: 0 16px 16px;
    margin-top: -45px;
    /* Half of avatar height to overlap banner */
    position: static;
    overflow: unset;
    border-start-end-radius: 0;
    border-start-start-radius: 0;
    border-radius: 8px;
}

.user-profile-modal .avatar-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 6px solid var(--background-primary);
    background-color: var(--bg-panel);
    /* Fallback if image not loaded */
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 8px;
}

.user-profile-modal .avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile-modal .status-indicator {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 20px;
    /* Larger status indicator */
    height: 20px;
    /* Larger status indicator */
    border-radius: 50%;
    border: 4px solid var(--bg-panel);
    /* Border matches modal background */
    box-sizing: border-box;
}

.user-profile-modal .status-indicator.online {
    background-color: var(--online);
}

.user-profile-modal .status-indicator.idle {
    background-color: var(--idle);
}

.user-profile-modal .status-indicator.dnd {
    background-color: var(--dnd);
}

.user-profile-modal .username-display {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 10px;
}

.user-profile-modal .uniqueName-display {
    font-size: 14px;
    margin-top: 2px;
    color: var(--text-mutedv3);
}

.uniqueName-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.copy-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

[data-theme="light"] .copy-button img {
    filter: brightness(0.5);
}

.copy-button img {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.copy-button:hover {
    background-color: var(--background-modifier-hover);
}

.copy-button:hover img {
    opacity: 1;
}

.mini-profile-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-color: var(--background-floating);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.mini-profile-close-btn:hover {
    background-color: var(--background-modifier-hover);
}

.mini-profile-close-btn img {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.mini-profile-close-btn:hover img {
    opacity: 1;
}