

/* ── User Menu Dropdown (ums) ── */
.ums-dropdown {
    position: relative;
    display: inline-block;
}

.ums-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50px;
    transition: background 0.15s;
}

    .ums-toggle-btn:hover {
        background: rgba(0,0,0,0.06);
    }

.ums-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.12);
    object-fit: cover;
    display: block;
}

/* Panel */
.ums-panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 224px;
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.10);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
    z-index: 1050;
    animation: umsFadeIn 0.15s ease;
}

    .ums-panel.ums-open {
        display: block;
    }

@keyframes umsFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.ums-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 12px;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.ums-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ums-name {
    font-size: 14px;
    font-weight: 500;
    color: #2c2c2a;
}

.ums-role {
    font-size: 11px;
    color: #888780;
    margin-top: 2px;
}

/* Sections */
.ums-section {
    padding: 6px 0;
}

    .ums-section + .ums-section {
        border-top: 0.5px solid rgba(0,0,0,0.08);
    }

/* Items */
.ums-link, .ums-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 14px;
    color: #2c2c2a;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s;
}

    .ums-link:hover, .ums-btn:hover {
        background: #f1efe8;
    }

    .ums-link i, .ums-btn i {
        font-size: 16px;
        color: #5f5e5a;
        width: 18px;
    }

/* Logout */
.ums-btn--logout {
    color: #a32d2d;
}

    .ums-btn--logout:hover {
        background: #fcebeb;
    }

    .ums-btn--logout i {
        color: #a32d2d;
    }