/* ── Tab bar inferior — referência UNPIX ── */

.toolbar {
    height: calc(68px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.tabbar-toolbar {
    position: relative;
    background: #fff;
    border-top: 1px solid rgba(61, 170, 235, 0.08);
    box-shadow: 0 -6px 24px rgba(30, 90, 142, 0.1);
}

.tabbar-inner {
    position: relative;
    height: 68px;
}

.tabbar-fab-slot {
    flex: 1;
    max-width: 76px;
    pointer-events: none;
}

.tabbar-fab {
    position: absolute;
    left: 50%;
    top: -24px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 4px solid #fff;
    border-radius: 50%;
    background: linear-gradient(180deg, #45B0F0 0%, var(--blue-primary) 100%);
    color: #fff;
    font-size: 28px;
    box-shadow:
        0 10px 26px rgba(61, 170, 235, 0.48),
        0 4px 12px rgba(30, 90, 142, 0.22);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    z-index: 10;
}

.tabbar-fab:active {
    transform: translateX(-50%) scale(0.95);
}

.tab-link {
    display: flex;
    justify-content: center;
    flex-flow: column wrap;
}

.toolbar-inner .link {
    flex: 1;
    height: 68px;
    line-height: 18px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.1px;
}

.toolbar-inner .link.active {
    color: var(--blue-primary);
    font-weight: 700;
}

.toolbar-inner .link:not(.active) {
    color: #94A3B8;
    font-weight: 500;
}

.toolbar-inner > .link i {
    font-size: 26px;
    margin-bottom: 2px;
}

.view-main .page-content {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

.view-main .block {
    padding: clamp(12px, 4vw, 16px);
    font-size: clamp(14px, 3.5vw, 16px);
}

@media (max-width: 380px) {
    .toolbar {
        height: calc(62px + env(safe-area-inset-bottom, 0px));
    }

    .tabbar-inner {
        height: 62px;
    }

    .toolbar-inner .link {
        height: 62px;
        font-size: 10px;
    }

    .toolbar-inner > .link i {
        font-size: 23px;
    }

    .tabbar-fab {
        width: 54px;
        height: 54px;
        top: -22px;
        font-size: 25px;
    }

    .view-main .page-content {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-height: 600px) {
    .toolbar {
        height: calc(56px + env(safe-area-inset-bottom, 0px));
    }

    .tabbar-inner {
        height: 56px;
    }

    .toolbar-inner .link {
        height: 56px;
        font-size: 9px;
    }

    .toolbar-inner > .link i {
        font-size: 21px;
    }
}
