/* ==========================================================
   NEXORA APP TABS — FACEBOOK-STYLE PRIMARY NAVIGATION
   Shared across Marketplace, Plaza, Connect, Bulletins,
   Chamas, Group Buy and CareLink.
========================================================== */

.nx-app-header-stack{
    position:sticky;
    top:0;
    z-index:180000;
    width:100%;
    background:#fff;
    box-shadow:0 1px 0 rgba(11,31,58,.10);
}

.nx-app-header-stack > :first-child{
    position:relative !important;
    top:auto !important;
    z-index:2 !important;
    margin-bottom:0 !important;
}

.nx-app-tabs{
    position:relative;
    z-index:3;
    width:100%;
    display:flex;
    align-items:stretch;
    gap:0;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
    -ms-overflow-style:none;
    background:#fff;
    border-top:1px solid rgba(11,31,58,.06);
    border-bottom:1px solid rgba(11,31,58,.10);
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
}

.nx-app-tabs::-webkit-scrollbar{display:none;}

.nx-app-tab{
    position:relative;
    flex:1 0 86px;
    min-width:86px;
    height:64px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    padding:7px 9px 8px;
    border:0;
    background:transparent;
    color:#667085;
    text-decoration:none;
    font-family:'Outfit',system-ui,sans-serif;
    font-size:10px;
    font-weight:700;
    line-height:1;
    white-space:nowrap;
    cursor:pointer;
    scroll-snap-align:center;
    -webkit-tap-highlight-color:transparent;
}

.nx-app-tab i{
    font-size:21px;
    line-height:1;
    color:inherit;
}

.nx-app-tab::after{
    content:"";
    position:absolute;
    left:12px;
    right:12px;
    bottom:0;
    height:3px;
    border-radius:3px 3px 0 0;
    background:#0B6DFF;
    transform:scaleX(0);
    transform-origin:center;
    transition:transform .16s ease;
}

.nx-app-tab:hover{
    background:#F7F9FC;
    color:#0B1F3A;
}

.nx-app-tab.is-active{
    color:#0B6DFF;
}

.nx-app-tab.is-active::after{
    transform:scaleX(1);
}

.nx-app-tab:active{
    background:#EFF4FB;
}

/* Homepage header becomes one two-row sticky unit. */
.nx-app-header-stack #nxCommerceHeader{
    width:100%;
    box-shadow:none !important;
    border-bottom:0 !important;
}

/* Dark feature pages keep their own first-row design, while the app tabs
   deliberately stay white so NEXORA's main navigation is consistent. */
.nx-app-header-stack .nx-topbar,
.nx-app-header-stack .connect-topbar,
.nx-app-header-stack .page-header,
.nx-app-header-stack .header-row{
    width:100%;
}

@media(max-width:760px){
    .nx-app-tab{
        flex:0 0 74px;
        min-width:74px;
        height:59px;
        padding:6px 5px 7px;
        font-size:8.5px;
        letter-spacing:-.1px;
    }
    .nx-app-tab i{font-size:20px;}
    .nx-app-tab::after{left:9px;right:9px;height:3px;}
}

@media(max-width:390px){
    .nx-app-tab{
        flex-basis:70px;
        min-width:70px;
        height:57px;
        font-size:8px;
    }
    .nx-app-tab i{font-size:19px;}
}

@media(min-width:1000px){
    .nx-app-tabs{
        justify-content:center;
        padding-inline:max(18px,calc((100vw - 1180px)/2));
    }
    .nx-app-tab{
        flex:0 1 150px;
        min-width:118px;
        max-width:160px;
        height:62px;
        flex-direction:row;
        gap:9px;
        font-size:11px;
    }
    .nx-app-tab i{font-size:18px;}
}
/* ==========================================================
   APP TABS — WARM TONE
   ========================================================== */

.nx-app-tabs{
    background:#F4EBDD;
    border-top-color:rgba(255,255,255,.06);
    border-bottom-color:rgba(38,24,43,.14);
}
/* Remove white showing at the outer edges of the app-tabs area */
.nx-app-header-stack{
    background:#F4EBDD !important;
}

.nx-app-tabs{
    background:#F4EBDD !important;
}
/* ==========================================================
   NEXORA APP TABS — PREMIUM IVORY NAVIGATION
   Paste at the very bottom of nexora-app-tabs.css
   ========================================================== */

.nx-app-tabs{
    background:#F7EEDF !important;
    border-top:1px solid rgba(255,255,255,.55) !important;
    border-bottom:1px solid rgba(40,25,44,.12) !important;

    padding:7px 10px 6px;

    gap:6px;

    align-items:center;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.75),
        0 3px 12px rgba(29,18,32,.06);
}


/* ----------------------------------------------------------
   INDIVIDUAL TAB
   ---------------------------------------------------------- */

.nx-app-tab{
    position:relative;

    flex:1 0 82px;
    min-width:82px;

    height:56px;

    padding:6px 8px;

    border-radius:14px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    gap:4px;

    background:transparent;

    color:#687083;

    font-family:'Outfit',system-ui,sans-serif;
    font-size:10px;
    font-weight:700;
    line-height:1;

    transition:
        background .18s ease,
        color .18s ease,
        transform .15s ease,
        box-shadow .18s ease;
}


/* ----------------------------------------------------------
   ICONS
   ---------------------------------------------------------- */

.nx-app-tab i{
    font-size:22px;
    line-height:1;

    color:inherit;

    transition:
        transform .18s ease,
        color .18s ease;
}


/* ----------------------------------------------------------
   REMOVE OLD FULL-WIDTH UNDERLINE
   ---------------------------------------------------------- */

.nx-app-tab::after{
    content:"";

    position:absolute;

    left:50%;
    bottom:3px;

    width:18px;
    height:3px;

    border-radius:999px;

    background:#1677FF;

    transform:
        translateX(-50%)
        scaleX(0);

    transform-origin:center;

    opacity:0;

    transition:
        transform .18s ease,
        opacity .18s ease;
}


/* ----------------------------------------------------------
   ACTIVE TAB
   ---------------------------------------------------------- */

.nx-app-tab.is-active{
    color:#1677FF;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.94),
            rgba(255,255,255,.72)
        );

    box-shadow:
        0 4px 12px rgba(31,22,36,.09),
        inset 0 0 0 1px rgba(255,255,255,.8);
}


.nx-app-tab.is-active i{
    transform:translateY(-1px) scale(1.04);
}


.nx-app-tab.is-active::after{
    opacity:1;

    transform:
        translateX(-50%)
        scaleX(1);
}


/* ----------------------------------------------------------
   TOUCH / HOVER
   ---------------------------------------------------------- */

.nx-app-tab:hover{
    background:rgba(255,255,255,.45);
    color:#2E2230;
}


.nx-app-tab:active{
    transform:scale(.96);

    background:rgba(255,255,255,.72);
}


/* ----------------------------------------------------------
   OPTIONAL SEPARATION BETWEEN ITEMS
   ---------------------------------------------------------- */

.nx-app-tab + .nx-app-tab{
    border-left:1px solid rgba(54,42,59,.055);
}


/* Active tab should look like one card, so remove separator */
.nx-app-tab.is-active,
.nx-app-tab.is-active + .nx-app-tab{
    border-left-color:transparent;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media(max-width:760px){

    .nx-app-tabs{
        padding:6px 8px 5px;
        gap:4px;
    }

    .nx-app-tab{
        flex:0 0 76px;
        min-width:76px;

        height:55px;

        padding:5px 6px;

        border-radius:13px;

        font-size:9px;
        letter-spacing:0;
    }

    .nx-app-tab i{
        font-size:21px;
    }

    .nx-app-tab::after{
        bottom:3px;
        width:17px;
        height:3px;
    }
}


/* ==========================================================
   VERY SMALL PHONES
   ========================================================== */

@media(max-width:390px){

    .nx-app-tab{
        flex-basis:72px;
        min-width:72px;

        height:53px;

        font-size:8.5px;
    }

    .nx-app-tab i{
        font-size:20px;
    }
}


/* ==========================================================
   DESKTOP
   ========================================================== */

@media(min-width:1000px){

    .nx-app-tabs{
        justify-content:center;

        padding:
            7px
            max(18px,calc((100vw - 1180px)/2))
            6px;
    }

    .nx-app-tab{
        flex:0 1 145px;

        min-width:115px;
        max-width:150px;

        height:54px;

        flex-direction:row;

        gap:8px;

        font-size:11px;
    }

    .nx-app-tab i{
        font-size:19px;
    }

    .nx-app-tab::after{
        bottom:3px;
    }
}