/* ОБЩИЙ КОНТЕЙНЕР */
.premium-app-wrapper {
    display: flex;
    flex-direction: column; /* Элементы друг под другом: Header -> Main */
    min-height: 100vh;
    background: #F8FAFC;
}

/* ШАПКА (HEADER) */
.main-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ЛОГОТИП */
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: #4f46e5;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    color: #0f172a;
    letter-spacing: -0.02em;
}

/* ГОРИЗОНТАЛЬНОЕ МЕНЮ */
.nav-links-horizontal {
    display: flex;
    gap: 8px;
}

.nav-item-premium {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    color: #64748b;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
}

    .nav-item-premium i {
        font-size: 1rem;
    }

    .nav-item-premium:hover {
        background: #f1f5f9;
        color: #4f46e5;
    }

    .nav-item-premium.active {
        background: #eef2ff;
        color: #4f46e5;
    }

/* ПРОФИЛЬ */
.user-section {
    min-width: 200px;
    display: flex;
    justify-content: flex-end;
}

.user-info-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 6px 6px 6px 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.u-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1e293b;
}

.btn-exit {
    background: white;
    border: 1px solid #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .btn-exit:hover {
        background: #ef4444;
        color: white;
        border-color: #ef4444;
    }

/* КОНТЕНТ */
.main-viewport {
    flex: 1;
    overflow-y: auto;
}

.page-content {
    width: 100%;
}

/* Исправление сетки MealPlan для широких экранов */
.meal-plan-container {
    padding: 2.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .nav-item-premium span {
        display: none; /* На планшетах оставляем только иконки */
    }

    .logo-text {
        display: none;
    }

    .logo-section, .user-section {
        min-width: auto;
    }
}
