/*==================================================
    TAB BUTTONS (23 Nov 2026, Jas)
    Every page tab row looks like buttons now: each tab is a light
    box (you can see it's a button before it's picked), the picked
    one is the game's purple. Loaded LAST so it wins over the old
    tab styles. Phones: the tabs share one row in equal parts.
==================================================*/
.inventory-page-tabs > button,
.inventory-page-tabs .arena-menu,
.cf-tabs button,
.ld-tabs button,
.gt-tabs button,
.gt-subtabs button,
.xc-pagetabs button,
.xc-tabs button,
.bug-tabs button,
.as-tabs button,
.as-subtabs button,
.arena-tabs button,
.arena-shop-tab,
.prof-cos-tab,
.popup-tab,
.lb-tab-btn,
.shop-tab-btn,
.rent-tab-btn,
.inv-tab-btn{
    background:rgba(255,255,255,.06) !important;
    border:1px solid rgba(255,255,255,.16) !important;
    color:#d3dbf2 !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05) !important;
    text-shadow:none !important;
    transition:background .15s, border-color .15s, color .15s, box-shadow .15s !important;
}
.inventory-page-tabs > button:hover,
.inventory-page-tabs .arena-menu:hover,
.cf-tabs button:hover,
.ld-tabs button:hover,
.gt-tabs button:hover,
.gt-subtabs button:hover,
.xc-pagetabs button:hover,
.xc-tabs button:hover,
.bug-tabs button:hover,
.as-tabs button:hover,
.as-subtabs button:hover,
.arena-tabs button:hover,
.arena-shop-tab:hover,
.prof-cos-tab:hover,
.popup-tab:hover,
.lb-tab-btn:hover,
.shop-tab-btn:hover,
.rent-tab-btn:hover,
.inv-tab-btn:hover{
    background:rgba(139,63,255,.18) !important;
    border-color:rgba(139,63,255,.6) !important;
    color:#fff !important;
}
.inventory-page-tabs > button.active,
.inventory-page-tabs .arena-menu.active,
.cf-tabs button.active,
.ld-tabs button.active,
.gt-tabs button.active,
.gt-subtabs button.active,
.xc-pagetabs button.active,
.xc-tabs button.active,
.bug-tabs button.active,
.as-tabs button.active,
.as-subtabs button.active,
.arena-tabs button.active,
.arena-shop-tab.active,
.prof-cos-tab.active,
.popup-tab.active,
.lb-tab-btn.active,
.shop-tab-btn.active,
.rent-tab-btn.active,
.inv-tab-btn.active{
    background:linear-gradient(100deg, #6B3BFF, #8b3fff) !important;
    border-color:#a46bff !important;
    color:#fff !important;
    box-shadow:0 5px 16px rgba(107,59,255,.45), inset 0 1px 0 rgba(255,255,255,.22) !important;
}

/* the tab rows: a little air between the boxes */
.inventory-page-tabs, .cf-tabs, .gt-tabs, .gt-subtabs{ gap:6px !important; }

/* phones: one row, every tab a full box; long names ("Equipment") get a bit more room */
@media (max-width:700px){
    .inventory-page-tabs{
        display:flex !important;
        flex-wrap:nowrap !important;
        gap:4px !important;
        padding:4px !important;
        overflow-x:auto !important;          /* a very narrow phone: scroll, never cut */
    }
    .inventory-page-tabs > button{
        flex:1 0 auto !important;
        min-width:0 !important;
        width:auto !important;
        height:40px !important;
        padding:0 5px !important;
        font-size:11.5px !important;
        letter-spacing:0 !important;
        border-radius:10px !important;
    }
}
@media (max-width:430px){
    .inventory-page-tabs > button{ font-size:11px !important; padding:0 4px !important; }
}
@media (max-width:370px){
    .inventory-page-tabs > button{ font-size:10px !important; padding:0 3px !important; }
}
