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

.kc-bottom-nav::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(20px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    pointer-events: auto;
}

.kc-bottom-nav-shell {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    max-width: 520px;
    margin: 0 auto;
    min-height: 64px;
    height: 64px;
    padding: 4px;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    overflow: hidden;
    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 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0 1px;
    padding: 6px 4px;
    border-radius: 21px;
    text-decoration: none;
    color: #222;
    overflow: hidden;
    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;
    padding-bottom: 8px;
}

@media (max-width: 360px) {
    .kc-bottom-nav {
        padding-left: 8px;
        padding-right: 8px;
    }

    .kc-bottom-nav-item {
        padding: 5px 2px;
        margin: 0;
        gap: 2px;
    }

    .kc-bottom-nav-label,
    .kc-bottom-nav-item.is-active .kc-bottom-nav-label {
        font-size: 10px;
    }
}

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

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