/**
 * Zemexx Header Auth Pill — стили для авторизованного юзера в шапке.
 * Подменяет .c-header--a__ENTER когда /api/v1/auth/me возвращает пользователя.
 */

.c-header--a__USER {
    display: none;
    align-items: center;
    gap: 10px;
    margin-right: 16px;
    padding: 8px 14px 8px 8px;
    background-color: var(--bg-secondary, #f4f6f9);
    color: var(--text-accent, #00bf3f);
    border-radius: 999px;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.c-header--a__USER:hover {
    background-color: rgba(0, 191, 63, 0.12);
    color: var(--text-accent, #00bf3f);
}
.c-header--a__USER:active {
    transform: scale(0.98);
}

.c-header--a__USER_AVATAR {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00bf3f, #00a836);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.c-header--a__USER_NAME {
    display: none;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Desktop — pill с именем */
@media (min-width: 768px) {
    .c-header--a__USER {
        margin-right: 24px;
    }
    .c-header--a__USER_NAME {
        display: inline;
    }
}
@media (min-width: 1440px) {
    .c-header--a__USER {
        margin-right: 0;
    }
}

/* Mobile — только аватар (без пилюли, чтобы влезло) */
@media (max-width: 767px) {
    .c-header--a__USER {
        padding: 0;
        margin-right: 16px;
        background: transparent;
        border-radius: 50%;
    }
    .c-header--a__USER:hover {
        background: transparent;
    }
    .c-header--a__USER_AVATAR {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        font-size: 14px;
    }
}

/* Менеджер / админ — золотая обводка */
.c-header--a__USER--staff .c-header--a__USER_AVATAR {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #f59e0b;
}
