/* QR kód klienta – plávajúce tlačidlo dole v strede + okno s QR a číslom klienta */
.qr-fab {
    position: fixed;
    left: 50%;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 9990;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 0;
    background: var(--neon, #ff006a);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.qr-fab:hover { filter: brightness(1.08); transform: translateX(-50%) scale(1.04); }
.qr-fab:active { transform: translateX(-50%) scale(0.97); }
.qr-fab svg { width: 28px; height: 28px; }

.qr-dialog { max-width: 380px; }
.qr-body { text-align: center; }
.qr-title { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.qr-name { color: #6b7280; margin: 0 0 14px; }
.qr-image { display: inline-block; padding: 10px; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; }
.qr-image img { display: block; width: 260px; height: 260px; max-width: 70vw; max-height: 70vw; }
.qr-number-label { margin: 14px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #9ca3af; }
.qr-number { font-size: 32px; font-weight: 800; letter-spacing: 0.06em; margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.qr-hint { font-size: 13px; color: #6b7280; margin: 0; }

/* pri otvorenom modáli (QR, prihlásenie na tréning) tlačidlo skryť, aby neprekrývalo okno */
body.tm-open .qr-fab { display: none; }

/* QR kód má zmysel v ruke (mobil/tablet) – na desktope sa tlačidlo nezobrazuje */
@media (min-width: 1024px) {
    .qr-fab { display: none; }
}
