/* ══════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV — visible ≤768px only
   Matches reference: flat dark bar, colored icons, grey labels
══════════════════════════════════════════════════════════ */

.mbn-bar {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --mbn-h: 54px;
    }

    .mbn-bar {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 980;
        background: #0B1120;
        border-top: 1px solid rgba(255, 255, 255, .06);
        box-shadow: 0 -4px 24px rgba(0, 0, 0, .45);
        padding-bottom: env(safe-area-inset-bottom, 0);
        font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    /* Footer padding keeps last row clear of the fixed bar (same dark bg, no white gap) */
    .fs-footer {
        margin-bottom: 0;
        padding-bottom: calc(var(--mbn-h) + env(safe-area-inset-bottom, 0));
    }

    .mbn-inner {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        max-width: 100%;
        margin: 0 auto;
        padding: 10px 8px 8px;
    }

    .mbn-item {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
        padding: 0 2px;
        border: none;
        background: transparent;
        text-decoration: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: opacity .15s ease;
    }

    .mbn-item:active {
        opacity: .72;
    }

    .mbn-icon {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        color: #FFFFFF;
    }

    .mbn-icon svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        display: block;
    }

    /* Call — orange accent */
    .mbn-item--call .mbn-icon {
        color: #FF6B00;
    }

    /* WhatsApp — brand green */
    .mbn-item--whatsapp .mbn-icon {
        color: #25D366;
    }

    .mbn-label {
        font-size: 10px;
        font-weight: 500;
        letter-spacing: .01em;
        line-height: 1;
        color: #94A3B8;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        text-align: center;
    }

    .mbn-badge {
        position: absolute;
        top: -4px;
        right: -6px;
        min-width: 15px;
        height: 15px;
        padding: 0 4px;
        border-radius: 100px;
        background: #EF4444;
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        line-height: 15px;
        text-align: center;
        font-family: 'Figtree', sans-serif;
        box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
        pointer-events: none;
    }

    /* Keep floating UI above the bar */
    .pv-toast {
        bottom: calc(var(--mbn-h) + 12px + env(safe-area-inset-bottom, 0)) !important;
    }

    .cam-panel {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
    }
}

@media (min-width: 769px) {
    .mbn-bar {
        display: none !important;
    }
}
