/* Qomar mijoz ilovasi: profil menyusi. Ranglar ilovaning --g20-* tokenlaridan olinadi. */
.qpm-avatar{flex:none;width:34px;height:34px;margin-left:4px;padding:0;display:grid;place-items:center;border:2px solid var(--g20-surface,#fff);border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#f33443,#af7819);color:#fff;font:700 13px/1 system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 0 0 1.5px var(--g20-line,#e5e8ed);cursor:pointer;transition:transform .15s ease,box-shadow .2s ease}
.qpm-avatar img{width:100%;height:100%;object-fit:cover}
.qpm-avatar svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.qpm-avatar.qpm-guest{background:var(--g20-soft,#f4f5f7);color:var(--g20-text,#172128)}
.qpm-avatar:active{transform:scale(.92)}
.qpm-avatar[aria-expanded="true"]{box-shadow:0 0 0 2.5px var(--g20-red,#f33443)}
.qpm-avatar:focus-visible{outline:3px solid #2f6fe4;outline-offset:2px}

.qpm-panel{position:fixed;z-index:2147482000;width:min(292px,calc(100vw - 16px));max-height:calc(100dvh - 90px);overflow:auto;padding:8px;border:1px solid var(--g20-line,#e5e8ed);border-radius:20px;background:var(--g20-surface,#fff);color:var(--g20-text,#172128);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}
.qpm-panel[hidden]{display:none}
.qpm-panel.qpm-in{animation:qpm-in .2s cubic-bezier(.2,.9,.3,1.15) both}
.qpm-panel.qpm-out{animation:qpm-out .15s ease both}
.qpm-panel.qpm-in .qpm-list button{animation:qpm-item .26s cubic-bezier(.2,.9,.3,1) both}
.qpm-panel.qpm-in .qpm-list button:nth-child(2){animation-delay:.025s}
.qpm-panel.qpm-in .qpm-list button:nth-child(3){animation-delay:.05s}
.qpm-panel.qpm-in .qpm-list button:nth-child(4){animation-delay:.075s}
.qpm-panel.qpm-in .qpm-list button:nth-child(5){animation-delay:.1s}

.qpm-head{display:flex;align-items:center;gap:12px;padding:10px 10px 12px}
.qpm-head>span:last-child{min-width:0;display:grid;gap:2px}
.qpm-head strong{font-weight:700;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qpm-head small{color:var(--g20-muted,#6b7580);font-size:13px}
.qpm-head-avatar{flex:none;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#f33443,#af7819);color:#fff;font-weight:700;font-size:16px}
.qpm-head-avatar img{width:100%;height:100%;object-fit:cover}
.qpm-head-guest .qpm-head-avatar{background:var(--g20-soft,#f4f5f7);color:var(--g20-text,#172128)}
.qpm-head-avatar svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.qpm-stats{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 2px 8px}
.qpm-stats span{display:grid;gap:1px;padding:9px 10px;border-radius:12px;background:var(--g20-soft,#f4f5f7)}
.qpm-stats b{font-size:15px}
.qpm-stats small{color:var(--g20-muted,#6b7580);font-size:12px}

.qpm-list{display:grid;padding:4px 0}
.qpm-list+.qpm-list{border-top:1px solid var(--g20-line,#e5e8ed);margin-top:4px;padding-top:8px}
.qpm-list button{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:0 10px;border:0;border-radius:12px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.qpm-list button>span{flex:1}
.qpm-list button svg{flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.qpm-list button svg:last-child:not(:first-child){width:16px;height:16px;color:var(--g20-muted,#6b7580)}
.qpm-list button:hover,.qpm-list button:focus-visible{background:var(--g20-soft,#f4f5f7);outline:none}
.qpm-list button:active{transform:scale(.985)}
.qpm-list .qpm-primary{color:var(--g20-red,#f33443);font-weight:600}
.qpm-list .qpm-danger{color:var(--g20-red,#f33443)}

@keyframes qpm-in{from{opacity:0;transform:translateY(-6px) scale(.9)}to{opacity:1;transform:none}}
@keyframes qpm-out{to{opacity:0;transform:translateY(-4px) scale(.96)}}
@keyframes qpm-item{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media (max-width:360px){.qpm-avatar{width:30px;height:30px;font-size:12px}}
@media (prefers-reduced-motion:reduce){.qpm-panel.qpm-in,.qpm-panel.qpm-out,.qpm-panel.qpm-in .qpm-list button{animation:none}.qpm-avatar{transition:none}}

/* Telefon ilovasi: tepada faqat logo, hudud va profil. Tun/kun profil menyusida, savat pastki menyuda.
   Tugmalar DOM'da qoladi (display:none), shuning uchun profil menyusi tun/kun tugmasini ishlata oladi. */
#header .g20-header-inner>[data-market-theme],#header .g20-header-inner>[data-page="cart"]{display:none}

/* "O‘rnatish" suzuvchi tugmasi tepadagi ikonkalarni yopmasin: u profil menyusida ("Ilovani o‘rnatish"). */
body .qomar-install-button{display:none!important}
