/* ================================================================
   МОБИЛЬНЫЕ СТИЛИ — ОБЩИЙ LAYOUT
   ================================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Полностью убираем белый фон */
html, body {
    background: #1a1a2e;
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100vh;
    color: #E2E8F0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow-y: auto;
}

body {
    margin: 0;
    padding: 0;
    background: #1a1a2e;
    color: #E2E8F0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==================== HEADER ==================== */

.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
}

.menu-toggle-disabled {
    font-size: 22px;
    color: #444;
    padding: 4px 8px;
    opacity: 0.4;
    cursor: default;
    user-select: none;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
    padding: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== ЛОГОТИП ==================== */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    font-size: 18px;
    font-weight: bold;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 28px;
    width: auto;
    display: block;
}




/* ==================== MAIN CONTENT ==================== */
.app-main {
    flex: 1;
    overflow-y: auto;
    margin-top: 50px;
    padding: 15px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); /* ← 80px — высота футера + запас */
    -webkit-overflow-scrolling: touch;
}

/* ==================== STATES ==================== */
.loading {
    color: #007bff;
    text-align: center;
    padding: 20px;
}

.empty-state {
    color: #888;
    text-align: center;
    padding: 20px;
}

.error-state {
    color: #dc3545;
    text-align: center;
    padding: 20px;
}
