/* Pastki menyu — WebApp ichida bo'limlar */
body.has-webapp-nav {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
}

body.has-webapp-nav .app-shell {
    padding-bottom: 8px;
}

body.has-webapp-nav .header {
    margin-bottom: 12px;
    padding: 2px 0 4px;
}

body.has-webapp-nav .header-icon {
    font-size: 40px;
    margin-bottom: 4px;
}

body.has-webapp-nav .header h1 {
    font-size: 20px;
    margin-bottom: 4px;
}

.webapp-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    min-height: 56px;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--tg-theme-secondary-bg-color, #fff);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

.webapp-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--tg-theme-hint-color, #8e8e93);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 2px;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.webapp-bottom-nav a .nav-icon {
    font-size: 20px;
    line-height: 1;
}

.webapp-bottom-nav a.active {
    color: var(--tg-theme-button-color, #3390ec);
}

.webapp-bottom-nav a:active {
    opacity: 0.7;
}

@media (prefers-color-scheme: dark) {
    .webapp-bottom-nav {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}
