/* ===== НИЖНЯЯ НАВИГАЦИЯ ===== */
.bottom-nav {
    --nav-muted: #6b7392;
    --nav-active: #3ddc84;      /* зелёный активный пункт */
    --nav-blue: #2a5cff;

    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #0f121c 0%, #0a0c13 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 6px calc(16px + env(safe-area-inset-bottom, 0px));
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.nav-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--nav-muted);
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.nav-ico {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.nav-item.active {
    color: #ffffff;
}
.nav-item.active .nav-ico {
    color: var(--nav-active);
}

.nav-item:focus-visible {
    outline: 2px solid var(--nav-blue);
    outline-offset: 4px;
    border-radius: 8px;
}

/* ===== Центральная кнопка «Апгрейд» ===== */
.nav-item.center {
    position: relative;
}

.nav-item.center .orb {
    width: 64px;
    height: 64px;
    margin-top: -38px;              /* выступает над панелью */
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 30%, #3b6bff 0%, var(--nav-blue) 55%, #1a3fd0 100%);
    /* тёмное «кольцо» вокруг + мягкое синее свечение */
    box-shadow:
        0 0 0 6px #0a0c13,
        0 0 0 7px rgba(255, 255, 255, 0.05),
        0 0 28px 6px rgba(42, 92, 255, 0.45);
    transition: transform 0.15s;
}

.nav-item.center:active .orb {
    transform: scale(0.95);
}

.nav-item.center .orb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Заблокированная навигация */
.bottom-nav.disabled .nav-item {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 360px) {
    .nav-ico { width: 24px; height: 24px; }
    .nav-item.center .orb { width: 58px; height: 58px; margin-top: -30px; }
}