/* Qomar profil menyusi v2 — mijoz menyusi bilan bir xil ko‘rinish, har ilovaning o‘z rangi. */
:root{--qpm2-accent:#f33443;--qpm2-grad:linear-gradient(135deg,#f33443,#af7819);--qpm2-surface:#fff;--qpm2-text:#172128;--qpm2-muted:#6b7580;--qpm2-line:#e5e8ed;--qpm2-soft:#f4f5f7}
body.a161-site,body:has(.qpm2-admin-phone){--qpm2-accent:#158377;--qpm2-grad:linear-gradient(135deg,var(--qr-accent,#158377),#0f5e55)}
:root[data-theme="dark"]{--qpm2-surface:#17212b;--qpm2-text:#eef2f6;--qpm2-muted:#a3adbb;--qpm2-line:rgba(255,255,255,.12);--qpm2-soft:rgba(255,255,255,.06)}
.qpm2-avatar{flex:none;width:36px;height:36px;margin-left:6px;padding:0;display:grid;place-items:center;border:2px solid var(--qpm2-surface);border-radius:50%;overflow:hidden;background:var(--qpm2-grad);color:#fff;font:700 13px/1 system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 0 0 1.5px var(--qpm2-line);cursor:pointer;transition:transform .15s ease,box-shadow .2s ease;vertical-align:middle}
.qpm2-avatar img{width:100%;height:100%;object-fit:cover}
.qpm2-avatar svg,.qpm2-panel svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.qpm2-avatar svg{width:18px;height:18px}
.qpm2-avatar.qpm2-guest{background:var(--qpm2-soft);color:var(--qpm2-text)}
.qpm2-avatar:active{transform:scale(.92)}
.qpm2-avatar[aria-expanded="true"]{box-shadow:0 0 0 2.5px var(--qpm2-accent)}
.qpm2-avatar:focus-visible,.qpm2-panel button:focus-visible{outline:3px solid #2f6fe4;outline-offset:2px}
.qpm2-panel{position:fixed;z-index:2147482000;width:min(296px,calc(100vw - 16px));max-height:calc(100dvh - 90px);overflow:auto;padding:8px;border:1px solid var(--qpm2-line);border-radius:20px;background:var(--qpm2-surface);color:var(--qpm2-text);box-shadow:0 22px 60px rgba(15,22,30,.22),0 2px 8px rgba(15,22,30,.08);transform-origin:calc(100% - 18px) 0;font:400 15px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;text-align:left}
.qpm2-panel[hidden]{display:none}
.qpm2-panel.qpm2-in{animation:qpm2-in .2s cubic-bezier(.2,.9,.3,1.15) both}
.qpm2-panel.qpm2-out{animation:qpm2-out .15s ease both}
.qpm2-head{display:flex;align-items:center;gap:12px;padding:10px 10px 12px}
.qpm2-head>span:last-child{min-width:0;display:grid;gap:2px}
.qpm2-head strong{font-weight:700;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qpm2-head small{color:var(--qpm2-muted);font-size:13px}
.qpm2-head-avatar{flex:none;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:var(--qpm2-grad);color:#fff;font-weight:700;font-size:16px}
.qpm2-head-avatar img{width:100%;height:100%;object-fit:cover}
.qpm2-head-avatar svg{width:22px;height:22px}
.qpm2-stats{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 2px 8px}
.qpm2-stats span{display:grid;gap:1px;padding:9px 10px;border-radius:12px;background:var(--qpm2-soft)}
.qpm2-stats b{font-size:15px}
.qpm2-stats small{color:var(--qpm2-muted);font-size:12px}
.qpm2-list{display:grid;padding:4px 0}
.qpm2-list+.qpm2-list{border-top:1px solid var(--qpm2-line);margin-top:4px;padding-top:8px}
.qpm2-panel .qpm2-list button{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;margin:0;padding:0 10px;border:0;border-radius:12px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;box-shadow:none}
.qpm2-panel .qpm2-list button>span{flex:1}
.qpm2-panel .qpm2-list button svg{flex:none;width:20px;height:20px}
.qpm2-panel .qpm2-list button svg:last-child:not(:first-child){width:16px;height:16px;color:var(--qpm2-muted)}
.qpm2-panel .qpm2-list button:hover,.qpm2-panel .qpm2-list button:focus-visible{background:var(--qpm2-soft)}
.qpm2-panel .qpm2-list .qpm2-primary,.qpm2-panel .qpm2-list .qpm2-danger{color:var(--qpm2-accent);font-weight:600}
.qpm2-panel .qpm2-list .qpm2-danger{color:#e3354a;font-weight:500}
@keyframes qpm2-in{from{opacity:0;transform:translateY(-6px) scale(.9)}to{opacity:1;transform:none}}
@keyframes qpm2-out{to{opacity:0;transform:translateY(-4px) scale(.96)}}
@media (prefers-reduced-motion:reduce){.qpm2-panel.qpm2-in,.qpm2-panel.qpm2-out{animation:none}.qpm2-avatar{transition:none}}
/* Joylashuv: seller va admin header tugmalari qatorida markazlangan */
.seller-header-actions{display:flex;align-items:center;gap:6px}
#header [data-h61-notification-slot]{display:flex;align-items:center;gap:6px}
/* Telefon admin: avatar tepa qism ustida qotirilgan; qo‘ng‘iroqchalarga joy qoldiriladi. */
.qpm2-avatar.qpm2-fixed{position:fixed;right:14px;top:14px;z-index:2147481000;margin:0}
body:has(.qpm2-fixed) #header [data-h61-notification-slot]{margin-right:46px}
/* Menyuda "Ilovani o‘rnatish" bor joylarda suzuvchi "O‘rnatish" tugmasi tepadagi ikonkalarni yopmasin. */
body:has(.qpm2-avatar) .qomar-install-button{display:none!important}
/* Seller: do‘kon logosi endi tepadagi profil tugmasida — sahifa ichidagi takror logo yashiriladi. */
body:has(.qpm2-seller) .seller-welcome .seller-avatar{display:none}
.qpm2-avatar.qpm2-seller{width:40px;height:40px;border-width:2px;background:#fff}
.qpm2-avatar.qpm2-seller img{border-radius:50%}
.qpm2-avatar.qpm2-seller.qpm2-guest,.qpm2-avatar.qpm2-seller:not(:has(img)){background:var(--qpm2-grad)}
/* admin telefon: profil belgisi sarlavhadagi logotip bilan bir chiziqda */
body:has(.qpm2-admin-phone) .qpm2-avatar.qpm2-fixed{top:calc(env(safe-area-inset-top, 0px) + 20px)!important;right:16px!important}
