/* App-style floating bottom tab bar */
.kc-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    padding: 0 14px calc(10px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}

.kc-bottom-nav-shell {
    pointer-events: auto;
    max-width: 520px;
    margin: 0 auto;
    height: 68px;
    padding: 5px;
    display: flex;
    gap: 4px;
    border-radius: 26px;
    background: linear-gradient(135deg, #FFF6B0 0%, #FFE77A 50%, #E9D000 100%);
    border: 1.2px solid #201D08;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.kc-bottom-nav-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 2px;
    padding: 7px 6px;
    border-radius: 21px;
    text-decoration: none;
    color: #222;
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid transparent;
}

.kc-bottom-nav-item:hover {
    color: #222;
    text-decoration: none;
}

.kc-bottom-nav-item.is-active {
    background: rgba(255, 255, 255, 0.92);
    border-color: #1a1a1a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.09);
}

.kc-bottom-nav-icon {
    width: 28px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
}

.kc-bottom-nav-item.is-active .kc-bottom-nav-icon {
    width: 31px;
    height: 24px;
    background: rgba(0, 0, 0, 0.87);
}

.kc-bottom-nav-icon .material-icons {
    font-size: 19px;
    color: #222;
    line-height: 1;
}

.kc-bottom-nav-icon-feature .material-icons {
    font-size: 21px;
}

.kc-bottom-nav-item.is-active .kc-bottom-nav-icon .material-icons {
    color: #ffe77a;
}

.kc-bottom-nav-label {
    font-size: 10.8px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.kc-bottom-nav-item.is-active .kc-bottom-nav-label {
    font-size: 11.3px;
    font-weight: 800;
}

body.kc-bottom-nav-active {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

body.kc-bottom-nav-active .footer {
    margin-bottom: 0;
}

/* Desktop: top nav covers main sections */
@media (min-width: 992px) {
    .kc-bottom-nav {
        display: none;
    }

    body.kc-bottom-nav-active {
        padding-bottom: 0;
    }
}
