/* User Identity Styles */
.user-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.profile-sidebar.user-card .user-name.styled-name {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 5px 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #2c3e50 0%, #4a90e2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    padding-bottom: 2px;
    /* Prevent descender clipping */
}

/* New Profile Picture Button */
.btn-set-profile-pic {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4a90e2, #3a7bc8);
    color: white;
    border: 3px solid white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.25);
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-set-profile-pic i {
    font-size: 1.1em;
}

.btn-set-profile-pic:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, #5b9bf3, #4a8cdb);
}

.btn-set-profile-pic:active {
    transform: translateX(-50%) translateY(0);
}

.user-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.user-id-badge:hover {
    background: #e3f2fd;
    border-color: #bbdefb;
    color: #1976d2;
    transform: translateY(-1px);
}

.user-id-badge:active {
    transform: translateY(0);
}

.id-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.id-value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.copy-icon {
    font-size: 0.85rem;
    opacity: 0.7;
}

.user-id-badge:hover .copy-icon {
    opacity: 1;
}

/* Tooltip for copy feedback */
.copy-feedback {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.copy-feedback.show {
    opacity: 1;
}