/* ===================================================================
   Меню профиля в шапке (десктоп) — брендовая стеклянная панель
   =================================================================== */
.hm-panel { position: absolute; right: 0; margin-top: 12px; width: 272px; z-index: 200;
    transform-origin: top right; }
.hm-card { position: relative; border-radius: 18px; overflow: hidden;
    background: linear-gradient(180deg, rgba(24,28,38,0.97), rgba(15,18,25,0.98));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 26px 60px -18px rgba(0,0,0,0.72), 0 0 44px -14px rgba(245,158,11,0.10);
    backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); }
.hm-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,158,11,0.55), transparent); }

/* Шапка карточки: аватар + имя */
.hm-user { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; }
.hm-user-av { width: 44px; height: 44px; border-radius: 13px; overflow: hidden; flex-shrink: 0; position: relative;
    outline: 2px solid rgba(245,158,11,0.32); outline-offset: 2px; }
.hm-user-av img { width: 100%; height: 100%; object-fit: cover; }
.hm-user-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%;
    background: #10b981; border: 2px solid #12151c; box-shadow: 0 0 8px rgba(16,185,129,0.6); }
.hm-user-meta { min-width: 0; flex: 1; }
.hm-user-name { font-size: 14px; font-weight: 800; color: #fff; line-height: 1.15;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-user-mail { font-size: 11px; color: #8b93a3; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Быстрый баланс */
.hm-balance { margin: 0 16px 12px; display: flex; align-items: center; justify-content: space-between;
    padding: 10px 13px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(245,158,11,0.05));
    border: 1px solid rgba(245,158,11,0.18); }
.hm-balance-lbl { font-size: 10px; font-weight: 700; color: #b0955f; text-transform: uppercase; letter-spacing: 0.07em; }
.hm-balance-val { font-size: 15px; font-weight: 800; color: #fbbf24; font-variant-numeric: tabular-nums; }
.hm-balance-val small { font-size: 11px; font-weight: 700; color: #b0955f; margin-left: 3px; }

.hm-sep { height: 1px; background: rgba(255,255,255,0.06); }

/* Список пунктов */
.hm-list { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.hm-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 11px;
    color: #c3cad6; text-decoration: none; background: transparent; border: none; font-family: inherit;
    font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left;
    transition: background .16s ease, color .16s ease; }
.hm-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.hm-item-ico { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0; transition: transform .16s ease; }
.hm-item:hover .hm-item-ico { transform: scale(1.08); }
.hm-item-ico svg { width: 16px; height: 16px; }
.hm-arrow { margin-left: auto; width: 15px; height: 15px; opacity: 0; transform: translateX(-4px);
    transition: opacity .18s ease, transform .18s ease; }
.hm-item:hover .hm-arrow { opacity: .45; transform: translateX(0); }

/* Цвета иконок */
.ic-amber  { background: rgba(245,158,11,0.14); color: #fbbf24; }
.ic-green   { background: rgba(16,185,129,0.14); color: #34d399; }
.ic-blue    { background: rgba(59,130,246,0.14); color: #60a5fa; }
.ic-violet  { background: rgba(139,92,246,0.14); color: #a78bfa; }
.ic-cyan    { background: rgba(34,211,238,0.14); color: #22d3ee; }

/* Выход */
.hm-logout { color: #f87171; }
.hm-logout:hover { background: rgba(248,113,113,0.10); color: #fca5a5; }
.hm-logout .hm-item-ico { background: rgba(248,113,113,0.14); color: #f87171; }

@media (prefers-reduced-motion: reduce) {
    .hm-item:hover .hm-item-ico { transform: none; }
}
