/* ==================================================
   FCBF - MENU INFERIOR PREMIUM DE APP
================================================== */

.fcbf-bottom-app-nav,
.fcbf-bottom-menu-backdrop,
.fcbf-bottom-menu-sheet {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
    }

    .site-menu-button,
    .site-menu-panel {
        display: none !important;
    }

    .fcbf-top-auth-actions {
        display: none !important;
    }

    .site-nav {
        padding-bottom: 14px !important;
    }

    .fcbf-bottom-app-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 9999;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        padding: 8px;
        border-radius: 26px;
        background:
            radial-gradient(circle at 18% 0%, rgba(49, 255, 149, .18), transparent 35%),
            radial-gradient(circle at 80% 12%, rgba(64, 177, 255, .18), transparent 38%),
            linear-gradient(180deg, rgba(5, 18, 39, .78), rgba(2, 9, 23, .88));
        border: 1px solid rgba(105, 190, 255, .35);
        box-shadow:
            0 -10px 40px rgba(0, 0, 0, .48),
            0 0 0 1px rgba(63, 255, 158, .10),
            inset 0 1px 0 rgba(255, 255, 255, .18);
        backdrop-filter: blur(18px) saturate(135%);
        -webkit-backdrop-filter: blur(18px) saturate(135%);
    }

    .fcbf-bottom-app-nav::before {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: 26px;
        pointer-events: none;
        background:
            linear-gradient(90deg, rgba(56, 255, 146, .35), rgba(80, 185, 255, .12), rgba(255, 220, 70, .28));
        opacity: .55;
        mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        padding: 1px;
        -webkit-mask-composite: xor;
        mask-composite: exclude;
    }

    .fcbf-bottom-app-nav__item {
        position: relative;
        min-width: 0;
        min-height: 66px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        border: 0;
        border-radius: 20px;
        background: transparent;
        color: #dbeafe !important;
        text-decoration: none !important;
        font-family: 'Orbitron', Arial, sans-serif;
        font-weight: 900;
        letter-spacing: .02em;
        cursor: pointer;
        overflow: hidden;
        -webkit-tap-highlight-color: transparent;
    }

    .fcbf-bottom-app-nav__item::after {
        content: "";
        position: absolute;
        inset: 5px;
        border-radius: 17px;
        background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
        border: 1px solid rgba(255,255,255,.06);
        opacity: 0;
        transition: .2s ease;
        z-index: -1;
    }

    .fcbf-bottom-app-nav__item.is-active::after,
    .fcbf-bottom-app-nav__item:active::after {
        opacity: 1;
        background:
            radial-gradient(circle at 50% 0%, rgba(59, 255, 147, .22), transparent 58%),
            linear-gradient(180deg, rgba(14, 55, 95, .62), rgba(5, 24, 48, .40));
        border-color: rgba(83, 213, 255, .28);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    }

    .fcbf-bottom-app-nav__item--menu {
        color: #fff7bf !important;
    }

    .fcbf-bottom-app-nav__icon {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        filter: drop-shadow(0 5px 10px rgba(0,0,0,.42));
    }

    .fcbf-bottom-app-nav__icon img {
        width: 34px;
        height: 34px;
        display: block;
        object-fit: contain;
    }

    .fcbf-bottom-app-nav__label {
        width: 100%;
        display: block;
        text-align: center;
        font-size: 10px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-shadow: 0 2px 8px rgba(0,0,0,.7);
    }

    .fcbf-bottom-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 9997;
        display: block;
        background: rgba(0, 0, 0, .52);
        opacity: 0;
        pointer-events: none;
        transition: .22s ease;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .fcbf-bottom-menu-backdrop[hidden] {
        display: none;
    }

    .fcbf-bottom-menu-sheet {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(92px + env(safe-area-inset-bottom));
        z-index: 9998;
        display: block;
        padding: 12px;
        border-radius: 28px;
        background:
            radial-gradient(circle at 15% 0%, rgba(45, 255, 145, .16), transparent 35%),
            radial-gradient(circle at 80% 20%, rgba(68, 180, 255, .16), transparent 35%),
            linear-gradient(180deg, rgba(5, 18, 39, .94), rgba(2, 9, 23, .98));
        border: 1px solid rgba(109, 193, 255, .34);
        box-shadow:
            0 -18px 48px rgba(0,0,0,.55),
            inset 0 1px 0 rgba(255,255,255,.14);
        backdrop-filter: blur(18px) saturate(135%);
        -webkit-backdrop-filter: blur(18px) saturate(135%);
        transform: translateY(28px) scale(.98);
        opacity: 0;
        pointer-events: none;
        transition: .22s ease;
    }

    body.fcbf-bottom-menu-open .fcbf-bottom-menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.fcbf-bottom-menu-open .fcbf-bottom-menu-sheet {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .fcbf-bottom-menu-sheet__handle {
        width: 48px;
        height: 5px;
        margin: 0 auto 10px;
        border-radius: 999px;
        background: rgba(219, 234, 254, .36);
    }

    .fcbf-bottom-menu-sheet__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
        padding: 0 2px;
    }

    .fcbf-bottom-menu-sheet__head strong {
        color: #ffffff;
        font-size: 15px;
        font-family: 'Orbitron', Arial, sans-serif;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .fcbf-bottom-menu-sheet__head button {
        width: 36px;
        height: 36px;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 14px;
        background: rgba(255,255,255,.08);
        color: #fff;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .fcbf-bottom-menu-sheet__grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .fcbf-bottom-menu-sheet__grid a,
    .fcbf-bottom-menu-sheet__grid button {
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        border-radius: 17px;
        border: 1px solid rgba(115, 174, 255, .16);
        background:
            linear-gradient(180deg, rgba(16, 38, 70, .78), rgba(7, 20, 42, .78));
        color: #eaf4ff !important;
        text-decoration: none !important;
        text-align: center;
        font-weight: 900;
        font-size: 13px;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    }

    .fcbf-bottom-menu-sheet__grid a.is-primary {
        color: #06170d !important;
        background: linear-gradient(135deg, #4eff8a, #23d461 48%, #fff05d);
        border-color: rgba(211, 255, 104, .82);
    }

    .fcbf-bottom-menu-sheet__logout {
        margin: 0;
        grid-column: 1 / -1;
    }

    .fcbf-bottom-menu-sheet__logout button {
        width: 100%;
        color: #fff !important;
        background:
            linear-gradient(180deg, rgba(88, 20, 28, .90), rgba(50, 10, 18, .90));
        border-color: rgba(255, 105, 105, .30);
        cursor: pointer;
    }
}


/* ==================================================
   FCBF - AJUSTE 5 BOTÕES NO RODAPÉ
================================================== */
@media (max-width: 768px) {
    .fcbf-bottom-app-nav {
        gap: 4px;
        padding: 7px;
        left: 8px;
        right: 8px;
    }

    .fcbf-bottom-app-nav__item {
        min-height: 62px;
        border-radius: 18px;
    }

    .fcbf-bottom-app-nav__icon,
    .fcbf-bottom-app-nav__icon img {
        width: 31px;
        height: 31px;
    }

    .fcbf-bottom-app-nav__label {
        font-size: 9px;
        letter-spacing: 0;
    }
}

@media (max-width: 370px) {
    .fcbf-bottom-app-nav {
        left: 5px;
        right: 5px;
        gap: 2px;
        padding: 6px;
    }

    .fcbf-bottom-app-nav__item {
        min-height: 58px;
    }

    .fcbf-bottom-app-nav__icon,
    .fcbf-bottom-app-nav__icon img {
        width: 28px;
        height: 28px;
    }

    .fcbf-bottom-app-nav__label {
        font-size: 8px;
    }
}

/* ==================================================
   FCBF - Menu inferior mais forte e em maiúsculas
   ================================================== */

.fcbf-bottom-app-nav__label {
    text-transform: uppercase !important;
    font-size: 11px !important;
    line-height: 1.05 !important;
    font-weight: 1000 !important;
    letter-spacing: .035em !important;
}

.fcbf-bottom-app-nav__icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
}

.fcbf-bottom-app-nav__icon img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
}

.fcbf-bottom-app-nav__item {
    gap: 5px !important;
}

@media (max-width: 420px) {
    .fcbf-bottom-app-nav__label {
        font-size: 10.5px !important;
        letter-spacing: .025em !important;
    }

    .fcbf-bottom-app-nav__icon {
        width: 33px !important;
        height: 33px !important;
        min-width: 33px !important;
        min-height: 33px !important;
    }

    .fcbf-bottom-app-nav__icon img {
        width: 23px !important;
        height: 23px !important;
    }
}


/* ==================================================
   FCBF - Menu inferior maior, seleção premium e ícones fortes
   ================================================== */

.fcbf-bottom-app-nav {
    min-height: 78px !important;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
}

.fcbf-bottom-app-nav__item {
    min-width: 62px !important;
    min-height: 60px !important;
    padding: 7px 6px 6px !important;
    gap: 4px !important;
    border-radius: 18px !important;
}

.fcbf-bottom-app-nav__item.is-active {
    background:
        radial-gradient(circle at top, rgba(55, 231, 146, .22), transparent 55%),
        linear-gradient(180deg, rgba(18, 68, 96, .92), rgba(8, 28, 52, .96)) !important;
    border: 1px solid rgba(83, 209, 255, .48) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .05) inset,
        0 10px 24px rgba(0, 180, 255, .18),
        0 0 28px rgba(44, 231, 146, .12) !important;
}

.fcbf-bottom-app-nav__item.is-active::after,
.fcbf-bottom-app-nav__item:active::after {
    display: none !important;
}

.fcbf-bottom-app-nav__icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 14px !important;
    display: grid !important;
    place-items: center !important;
    background:
        radial-gradient(circle at top, rgba(64, 255, 171, .28), transparent 58%),
        linear-gradient(180deg, rgba(9, 65, 92, .95), rgba(4, 27, 48, .98)) !important;
    border: 1px solid rgba(73, 218, 255, .26) !important;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, .20),
        0 0 16px rgba(0, 220, 255, .10),
        inset 0 1px 0 rgba(255, 255, 255, .10) !important;
}

.fcbf-bottom-app-nav__icon img {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    object-fit: contain !important;
    display: block !important;
    filter: drop-shadow(0 0 7px rgba(80, 240, 180, .32)) !important;
}

.fcbf-bottom-app-nav__label {
    text-transform: uppercase !important;
    font-size: 11.5px !important;
    line-height: 1 !important;
    font-weight: 1000 !important;
    letter-spacing: .025em !important;
    color: #eef7ff !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .45) !important;
}

.fcbf-bottom-app-nav__item.is-active .fcbf-bottom-app-nav__label {
    color: #ffffff !important;
}

/* Mobile estreito: mantém grande, mas sem estourar o menu */
@media (max-width: 420px) {
    .fcbf-bottom-app-nav {
        min-height: 76px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .fcbf-bottom-app-nav__item {
        min-width: 60px !important;
        min-height: 58px !important;
        padding: 6px 5px 5px !important;
        border-radius: 17px !important;
    }

    .fcbf-bottom-app-nav__icon {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        border-radius: 13px !important;
    }

    .fcbf-bottom-app-nav__icon img {
        width: 29px !important;
        height: 29px !important;
        min-width: 29px !important;
        min-height: 29px !important;
    }

    .fcbf-bottom-app-nav__label {
        font-size: 10.8px !important;
        letter-spacing: .018em !important;
    }
}


/* ==================================================
   FCBF - Ícones quase preenchendo todo o fundo
   ================================================== */

.fcbf-bottom-app-nav__icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 2px !important;
    display: grid !important;
    place-items: center !important;
}

.fcbf-bottom-app-nav__icon img {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    object-fit: contain !important;
    display: block !important;
}

.fcbf-bottom-app-nav__item {
    gap: 3px !important;
}

@media (max-width: 420px) {
    .fcbf-bottom-app-nav__icon {
        width: 41px !important;
        height: 41px !important;
        min-width: 41px !important;
        min-height: 41px !important;
        padding: 2px !important;
    }

    .fcbf-bottom-app-nav__icon img {
        width: 33px !important;
        height: 33px !important;
        min-width: 33px !important;
        min-height: 33px !important;
        max-width: 33px !important;
        max-height: 33px !important;
    }
}


/* ==================================================
   FCBF - Corrigir corte da palavra PALPITES no menu
   ================================================== */

.fcbf-bottom-app-nav {
    gap: 4px !important;
}

.fcbf-bottom-app-nav__item {
    min-width: 58px !important;
    max-width: none !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    overflow: visible !important;
}

.fcbf-bottom-app-nav__item.is-active {
    min-width: 72px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
}

.fcbf-bottom-app-nav__label {
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-size: 10.5px !important;
    letter-spacing: .006em !important;
}

/* O nome do usuário pode continuar encurtado para não quebrar o menu */
.fcbf-bottom-app-nav__item:last-child .fcbf-bottom-app-nav__label {
    max-width: 56px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

@media (max-width: 420px) {
    .fcbf-bottom-app-nav {
        gap: 3px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .fcbf-bottom-app-nav__item {
        min-width: 56px !important;
        padding-left: 3px !important;
        padding-right: 3px !important;
    }

    .fcbf-bottom-app-nav__item.is-active {
        min-width: 70px !important;
    }

    .fcbf-bottom-app-nav__label {
        font-size: 10px !important;
        letter-spacing: 0 !important;
    }

    .fcbf-bottom-app-nav__item:last-child .fcbf-bottom-app-nav__label {
        max-width: 54px !important;
    }
}

