.yd-user-menu {
    position: relative;
}

.yd-user-profile {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

.yd-user-profile:hover {
    background: rgba(0, 0, 0, 0.05);
}

.yd-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.yd-user-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ee812c;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
}

.yd-user-name {
    font-size: 14px;
    font-weight: 700;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yd-user-profile > i {
    font-size: 11px;
}

.yd-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: 0.2s ease;
    z-index: 1000;
}

.yd-user-menu:hover .yd-user-dropdown,
.yd-user-menu:focus-within .yd-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.yd-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 9px;
    color: #0f172a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.yd-user-dropdown a:hover {
    background: #f8fafc;
}

.yd-user-dropdown a i {
    width: 18px;
    font-size: 16px;
}

.yd-user-dropdown-separator {
    height: 1px;
    background: #e5e7eb;
    margin: 7px 4px;
}

.yd-user-dropdown .yd-logout {
    color: #dc2626;
}



.yd-mobile-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
}

.yd-mobile-user img,
.yd-mobile-user > span {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    object-fit: cover;
}

.yd-mobile-user > span {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ee812c;
    color: white;
    font-weight: 800;
}

.yd-mobile-user div {
    flex: 1;
    min-width: 0;
}

.yd-mobile-user strong,
.yd-mobile-user small {
    display: block;
}

.yd-mobile-user strong {
    font-size: 14px;
}

.yd-mobile-user small {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}