.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: 100001;
    color: var(--text-primary);
    border: 1px solid var(--background-primary-hover);
    transition: background 0.2s ease;
}



.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;
    background: transparent;
}

.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: 24px;
    /* Larger status indicator */
    height: 24px;
    /* 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;
}

.user-profile-modal .think-bubble {
    position: absolute;
    top: 15px;
    left: 89px;
    background-color: var(--background-lighting);
    border: 1px solid var(--outline);
    border-radius: 8px;
    padding: 4px 10px;
    width: 130px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 20;
    border-bottom-left-radius: 0;
    box-sizing: border-box;
    white-space: normal;
}

.user-profile-modal .think-bubble::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    background-color: var(--background-lighting);
    border-left: 1px solid var(--outline);
    border-bottom: 1px solid var(--outline);
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
}

.user-profile-modal .think-bubble span {
    font-size: 11px;
    color: var(--text-normal);
    font-weight: 500;
    line-height: 1.3;
    text-align: start;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}