/* Shared v2 bottom navigation. Kept separate from the home page stylesheet. */
.hv2-nav {
    --hv2-nav-inset: 10px;
    --hv2-nav-base-h: 58px;
    position: fixed;
    z-index: 1900;
    left: var(--hv2-nav-inset);
    right: var(--hv2-nav-inset);
    bottom: max(10px, var(--strela-safe-bottom, max(var(--strela-android-safe-bottom, 0px), env(safe-area-inset-bottom, 0px))));
    height: var(--hv2-nav-base-h);
    padding: 0 4px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    color: #1e293b;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 28px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .12), 0 2px 8px rgba(15, 23, 42, .06), inset 0 1px 0 rgba(255, 255, 255, .55);
    overflow: visible;
}
.hv2-nav-btn, .hv2-nav-fab-slot {
    box-sizing: border-box;
    color: #1e293b;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none !important;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.hv2-nav-btn {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: color .2s ease;
}
.hv2-nav-btn > span:not(.hv2-nav-ico) { display: block; width: 100%; }
.hv2-nav-ico {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 30px;
    margin: 0 auto;
    border-radius: 999px;
    flex-shrink: 0;
    transition: background .22s ease, transform .22s ease;
}
.hv2-nav-btn i, .hv2-nav-ico svg { width: 24px; height: 24px; font-size: 22px; margin: 0; flex-shrink: 0; color: inherit; fill: currentColor; }
.hv2-nav-ico svg { grid-area: 1 / 1; display: block; transition: opacity .18s ease, transform .22s ease; }
.hv2-nav-ico-bold { opacity: 1; transform: scale(1); }
.hv2-nav-ico-fill { opacity: 0; transform: scale(.82); }
.hv2-nav-btn.is-active { color: var(--hv2-accent-strong, #e0a000); }
.hv2-nav-btn.is-active .hv2-nav-ico { background: var(--hv2-accent-soft, rgba(245, 179, 1, .12)); transform: scale(1.04); }
.hv2-nav-btn.is-active .hv2-nav-ico-bold { opacity: 0; transform: scale(.82); }
.hv2-nav-btn.is-active .hv2-nav-ico-fill { opacity: 1; transform: scale(1); }
.hv2-nav-btn:active .hv2-nav-ico { transform: scale(.96); }
.hv2-nav-btn.is-on-shift .hv2-nav-ico { overflow: visible; }
.hv2-nav-btn.is-on-shift .hv2-nav-ico::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
    box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(34, 197, 94, .32); border-top-color: #22c55e; animation: hv2-footer-shift-spin 1.2s linear infinite;
}
@keyframes hv2-footer-shift-spin { to { transform: rotate(360deg); } }
.hv2-nav-fab-slot {
    position: relative;
    height: 100%;
    padding: 0 0 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}
.hv2-nav-fab {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
    box-sizing: border-box; border-radius: 50%; background: var(--hv2-accent, #f5b301); color: var(--hv2-on-accent, #171717);
    font-size: 22px; box-shadow: var(--hv2-shadow-accent, 0 8px 22px rgba(245, 179, 1, .3));
    border: 3px solid rgba(255, 255, 255, .96); transition: transform .16s ease, background .18s ease;
}
.hv2-nav-fab i, .hv2-nav-fab svg { width: 26px; height: 26px; font-size: 26px; display: block; }
.hv2-nav-fab-slot:active .hv2-nav-fab { transform: translateX(-50%) scale(.92); }
.hv2-nav-fab.hv2-nav-fab--home { background: #1e293b; color: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, .35); }
.hv2-nav-fab.hv2-nav-fab--home svg path, .hv2-nav-fab.hv2-nav-fab--home svg rect, .hv2-nav-fab.hv2-nav-fab--home svg circle, .hv2-nav-fab.hv2-nav-fab--home svg polygon { fill: currentColor; }
[data-theme="dark"] .hv2-nav, html:not([data-theme="light"]) .hv2-nav { background: rgba(16, 24, 42, .96); border-color: rgba(255, 255, 255, .1); box-shadow: 0 8px 28px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06); color: #cbd5e1; }
[data-theme="dark"] .hv2-nav-btn, html:not([data-theme="light"]) .hv2-nav-btn { color: #cbd5e1; }
[data-theme="dark"] .hv2-nav-fab, html:not([data-theme="light"]) .hv2-nav-fab { border-color: rgba(16, 24, 42, .96); }
@media (min-width: 768px) { .hv2-nav { left: 50%; right: auto; width: min(440px, calc(100% - 24px)); max-width: 440px; transform: translateX(-50%); } }
