.v3-mobile-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    display: flex; justify-content: space-around; align-items: center;
    height: 4rem;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
}
.v3-mnav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.125rem; flex: 1;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.625rem; font-weight: 500;
    padding: 0.375rem 0;
    transition: color 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.v3-mnav-item i { font-size: 1.35rem; transition: transform 0.2s; }
.v3-mnav-item:active { transform: scale(0.9); }
.v3-mnav-item.active { color: #22c55e; }
.v3-mnav-item.active::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 2rem; height: 2.5px;
    background: #22c55e;
    border-radius: 2px;
}
.v3-mnav-item.active i { transform: scale(1.1); }
@media(min-width:1024px) { .v3-mobile-nav { display:none !important; } }

/* Global QR Modal — dark-mode safe via CSS variables */
.qr-global-modal {
    background: rgba(0, 0, 0, 0.55);
}

.qr-global-dialog {
    background: var(--ro-bg, #ffffff);
    color: var(--ro-text, #0f172a);
}

.qr-global-header {
    border-bottom: 1px solid var(--ro-border, #e2e8f0);
    background: linear-gradient(to right, rgba(var(--color-primary-rgb, 37,99,235), 0.08), rgba(var(--color-primary-rgb, 37,99,235), 0.03));
    color: var(--ro-text, #0f172a);
}

.qr-global-close {
    background: var(--ro-surface, #f8fafc);
    color: var(--ro-muted, #64748b);
    border: 1px solid var(--ro-border, #e2e8f0);
}

.qr-global-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.qr-global-body {
    background: var(--ro-bg, #ffffff);
}

.qr-global-footer {
    background: var(--ro-surface, #f8fafc);
    border-top: 1px solid var(--ro-border, #e2e8f0);
}

/* the Tailwind arbitrary pb-[calc(...)] class on the footer is not in the compiled CSS: keep the footer text clear of the fixed bottom nav */
@media (max-width: 1023px) { .app-footer { padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px) + 4.5rem) !important; } }
