/* --- Системные iOS Сбросы --- */
* {
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
}

body, html {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Montserrat', sans-serif;
    background-color: #F2F2F7 !important; /* Серый системный фон iOS */
    color: #1C1C1E;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
}

/* --- Главный Каркас Приложения --- */
.app-shell {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 90px; /* Отступ под нижнее меню */
}
.content-area::-webkit-scrollbar { display: none; }

/* --- Эффект Нажатия Кнопок (iOSClickable) --- */
.ios-clickable {
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease;
}
.ios-clickable:active {
    transform: scale(0.96) !important;
    opacity: 0.85;
}

/* --- Премиальное Нижнее Меню --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 0.5px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 15px; /* Запас под полоску Home на iPhone */
    z-index: 9999;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #8E8E93;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    width: 25%;
}

.nav-item i { font-size: 20px; }
.nav-item.active { color: #007AFF !important; } /* Синий цвет Apple */

/* --- Анимации Баннеров и Стикеров --- */
@keyframes pureCssMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-876px, 0, 0); }
}
@keyframes stickerJump {
    0%, 80%, 100% { transform: rotate(-5deg) scale(1); }
    85% { transform: rotate(-5deg) scale(1.15); }
    90% { transform: rotate(5deg) scale(1.15); }
    95% { transform: rotate(-5deg) scale(1.15); }
}
