:root {
    --bottom-nav-height: 56px;
}

body.has-bottom-nav {
    padding-bottom: calc(var(--bottom-nav-height) + 16px + env(safe-area-inset-bottom, 0px)) !important;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    min-height: var(--bottom-nav-height);
    padding: 8px 12px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid #d0d7de;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.bottom-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 120px;
    padding: 8px 20px;
    border-radius: 8px;
    background: #1976d2;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    touch-action: manipulation;
}

.bottom-nav-btn:hover {
    opacity: 0.92;
    color: #fff;
}

.bottom-nav-btn.is-active {
    background: #e8eef5;
    color: #0d47a1;
    pointer-events: none;
}
