

#profileScreen .qm-pf-avatar {
    position: relative;
    flex: none;
    width: 96px;
    height: 96px;
}

#profileScreen .qm-hv-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    z-index: 3;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55));
    transition: transform .18s var(--qm-ease-spring, ease-out);
}

#profileScreen .qm-hv-badge::after {
    content: "";
    position: absolute;
    inset: -6px;
}
#profileScreen .qm-hv-badge svg { display: block; width: 100%; height: 100%; }
#profileScreen .qm-hv-badge:active { transform: scale(.9); }
#profileScreen .qm-hv-badge:focus-visible { outline: none; box-shadow: var(--qm-focus-ring, 0 0 0 3px rgba(255, 255, 255, .5)); }
#profileScreen .qm-hv-badge[hidden] { display: none; }
#profileScreen .qm-hv-badge.is-unverified { color: #8E8A96; }
#profileScreen .qm-hv-badge.is-verified { color: #22C55E; filter: drop-shadow(0 2px 8px rgba(34, 197, 94, .5)); }
#profileScreen .qm-hv-badge.is-unverified:not(:disabled) { animation: qmHvNudge 3.2s ease-in-out 1.2s 2; }
@keyframes qmHvNudge {
    0%, 86%, 100% { transform: scale(1); }
    92% { transform: scale(1.18); }
}
body.rtl #profileScreen .qm-hv-badge { right: auto; left: -8px; }
@media (prefers-reduced-motion: reduce) {
    #profileScreen .qm-hv-badge.is-unverified:not(:disabled) { animation: none; }
}


html body #chatScreen #profileSelection .ql-verified.ql-verified--human { color: #22C55E; }
html body #chatScreen #profileSelection .ql-verified.ql-verified--unverified { color: #8E8A96; }


.qmhv { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-end; justify-content: center; }
.qmhv[hidden] { display: none; }
.qmhv-backdrop { position: absolute; inset: 0; background: rgba(5, 3, 8, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.qmhv-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 100dvh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 28px 22px calc(24px + env(safe-area-inset-bottom, 0px));
    border-radius: 28px 28px 0 0;
    background: var(--qm-s2, #1A1620);
    color: #fff;
    text-align: center;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
    animation: qmHvUp .28s var(--qm-ease-spring, ease-out) both;
}
@keyframes qmHvUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.qmhv-x {
    position: absolute; top: 12px; right: 14px; width: 36px; height: 36px;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.qmhv-ico { width: 56px; height: 56px; margin: 0 auto 14px; }
.qmhv-ico svg { width: 100%; height: 100%; display: block; }
.qmhv-ico.is-unverified { color: #8E8A96; }
.qmhv-ico.is-verified { color: #22C55E; animation: qmHvPop .5s var(--qm-ease-spring, ease-out) both; }
@keyframes qmHvPop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.qmhv-title { margin: 0 0 8px; font-size: 21px; font-weight: 800; line-height: 1.2; }
.qmhv-text { margin: 0 auto 16px; max-width: 340px; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .72); }

.qmhv-cam {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 3 / 4;
    margin: 4px auto 0;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
}
.qmhv-cam[hidden] { display: none; }
.qmhv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.qmhv-video[hidden], .qmhv-shot[hidden] { display: none; }

.qmhv-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.qmhv-shutter {
    position: absolute;
    left: 50%; bottom: 14px;
    width: 72px; height: 72px;
    transform: translateX(-50%);
    padding: 0;
    border: 5px solid #fff;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .5);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .12s ease-out, background .12s;
}
.qmhv-shutter::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.qmhv-shutter:active { transform: translateX(-50%) scale(.9); }
.qmhv-shutter:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(233, 30, 99, .8); }
.qmhv-shutter[hidden] { display: none; }
.qmhv-oval {
    position: absolute;
    left: 50%; top: 46%;
    width: 64%; height: 70%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    box-shadow: 0 0 0 999px rgba(5, 3, 8, .45);
    pointer-events: none;
}
.qmhv-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 44px; font-weight: 800; line-height: 1; color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
    pointer-events: none;
    animation: qmHvNudgeX 1s ease-in-out infinite;
}
.qmhv-arrow[hidden] { display: none; }
.qmhv-arrow[data-dir="left"] { left: 8px; --qm-hv-dx: -8px; }
.qmhv-arrow[data-dir="right"] { right: 8px; --qm-hv-dx: 8px; }
@keyframes qmHvNudgeX { 0%, 100% { translate: 0 0; } 50% { translate: var(--qm-hv-dx, 0) 0; } }
.qmhv-status[data-kind~="spinner"]::before {
    content: "";
    display: inline-block;
    width: 14px; height: 14px;
    margin: 0 8px -2px 0;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: qmHvSpin .8s linear infinite;
}
@keyframes qmHvSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .qmhv-arrow, .qmhv-status[data-kind~="spinner"]::before { animation: none; }
}
.qmhv-status { min-height: 20px; margin: 8px 0 0; font-size: 14px; color: rgba(255, 255, 255, .72); }
.qmhv-status[data-kind~="error"] { color: #FF8AA8; }
.qmhv-btn {
    display: block; width: 100%; margin: 14px 0 0; padding: 15px; border: 0; border-radius: 16px;
    background: #E91E63; color: #fff; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer;
}
.qmhv-btn[hidden] { display: none; }
.qmhv-btn--ghost { margin-top: 10px; background: rgba(255, 255, 255, .1); }
.qmhv-status[data-kind~="pose"] { font-size: 16px; font-weight: 700; color: #fff; }
.qmhv-fine { margin: 14px 0 0; font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, .5); }
.qmhv-fine:empty { display: none; }
html.qmhv-open { overflow: hidden; }
