/* ── Wrapper ── */
.agc-ub-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* ── Trigger button ── */
.agc-ub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    color: inherit;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}
.agc-ub-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}
.agc-ub-btn i {
    font-size: 22px;
    display: block;
    line-height: 1;
}

/* ── Dropdown ── */
.agc-ub-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 99998;
    overflow: hidden;
    animation: agc-ub-in 0.15s ease;
}
.agc-ub-dropdown.open {
    display: block;
}
@keyframes agc-ub-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Header ── */
.agc-ub-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #111;
}
.agc-ub-header i {
    font-size: 20px;
    color: #555;
    flex-shrink: 0;
}
.agc-ub-header--guest {
    color: #555;
    font-weight: 500;
}

/* ── Divider ── */
.agc-ub-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 0;
}

/* ── Items ── */
.agc-ub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background 0.1s;
    line-height: 1.3;
}
.agc-ub-item:hover {
    background: #f6f6f6;
    color: #111;
}
.agc-ub-item i {
    font-size: 16px;
    color: #777;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

/* ── Primary item (login) ── */
.agc-ub-item--primary {
    font-weight: 600;
    color: #111;
}
.agc-ub-item--primary i {
    color: #333;
}

/* ── Logout item ── */
.agc-ub-logout {
    color: #c0392b;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
}
.agc-ub-logout:hover {
    background: #fff5f5;
    color: #a93226;
}
.agc-ub-logout i {
    color: #c0392b;
}

/* ── RTL: dropdown opens to the left on small containers ── */
@media (max-width: 480px) {
    .agc-ub-dropdown {
        right: auto;
        left: 0;
        min-width: 190px;
    }
}
