* {
    margin: 0;
    padding: 0;
    /* ===== НОВЫЙ ДИЗАЙН КАБИНЕТА ===== */
.cabinet-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Верхняя навигация */
.top-nav {
    background: white;
    padding: 0 32px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1d7a5c;
    text-decoration: none;
    margin-right: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a6670;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 40px;
    transition: all 0.2s;
}

.nav-link i {
    font-size: 1.2rem;
}

.nav-link:hover {
    background: #f0f9f5;
    color: #1d7a5c;
}

.nav-link.active {
    background: #1d7a5c;
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
}

/* Меню пользователя */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0f9f5;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1rem;
    color: #1a4b3a;
    transition: all 0.2s;
}

.user-menu-btn:hover {
    background: #e1f3ea;
}

.user-menu-btn i:first-child {
    font-size: 1.8rem;
    color: #1d7a5c;
}

.user-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 200px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #2d4a5c;
    text-decoration: none;
    transition: all 0.2s;
}

.user-dropdown a:hover {
    background: #f0f9f5;
    color: #1d7a5c;
}

.user-dropdown a i {
    width: 20px;
    font-size: 1.1rem;
}

.dropdown-divider {
    height: 1px;
    background: #e0eae5;
    margin: 4px 0;
}

/* Лейаут кабинета */
.cabinet-layout {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 70px);
}

/* Сайдбар */
.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e0eae5;
    padding: 24px 0;
    overflow-y: auto;
}

.subscription-card {
    padding: 0 20px 24px;
    border-bottom: 1px solid #e0eae5;
    margin-bottom: 20px;
}

.subscription-active {
    background: #f0f9f5;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #1d7a5c;
}

.subscription-active i {
    font-size: 2.5rem;
    color: #1d7a5c;
    margin-bottom: 10px;
}

.subscription-active h4 {
    color: #1a4b3a;
    margin-bottom: 5px;
}

.subscription-active p {
    color: #4a7265;
    font-size: 0.9rem;
}

.subscription-inactive {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
}

.subscription-inactive i {
    font-size: 2.5rem;
    color: #95a9b3;
    margin-bottom: 10px;
}

.subscription-inactive h4 {
    color: #4a5f6b;
    margin-bottom: 5px;
}

.subscription-inactive p {
    color: #6b7f8b;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn-subscribe {
    display: inline-block;
    padding: 10px 20px;
    background: #1d7a5c;
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-subscribe:hover {
    background: #156b4f;
    transform: translateY(-2px);
}

/* Меню в сайдбаре */
.menu-section {
    margin-bottom: 24px;
}

.menu-section h3 {
    padding: 0 24px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7a919e;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #2d4e5c;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.menu-item i:first-child {
    width: 20px;
    font-size: 1.1rem;
    color: #5e7a88;
}

.menu-item:hover {
    background: #f0f9f5;
}

.menu-item.active {
    background: #1d7a5c;
    color: white;
}

.menu-item.active i:first-child {
    color: white;
}

.menu-lock {
    margin-left: auto;
    font-size: 0.9rem !important;
    color: #b8ccd6 !important;
}

/* Основной контент */
.main-content {
    flex: 1;
    background: #f5faf8;
    padding: 32px;
    overflow-y: auto;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.content-header h1 {
    font-size: 2rem;
    color: #1a3b3a;
    margin: 0;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.date-nav {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f9f5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.date-nav:hover {
    background: #1d7a5c;
    color: white;
}

.current-date {
    font-weight: 600;
    color: #1a4b3a;
}

/* Баннер подписки */
.subscription-banner {
    background: linear-gradient(145deg, #1d7a5c, #279e7a);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 32px;
    color: white;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-content i {
    font-size: 3rem;
}

.banner-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.btn-banner {
    background: white;
    color: #1d7a5c;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-left: auto;
    transition: all 0.2s;
}

.btn-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Планировщик */
.planner-grid {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 32px;
}

.planner-header {
    display: grid;
    grid-template-columns: 100px repeat(7, 1fr);
    background: #f0f9f5;
    border-bottom: 2px solid #d0e2dc;
}

.time-column {
    padding: 16px;
    font-weight: 600;
    color: #1a4b3a;
    border-right: 1px solid #d0e2dc;
}

.time-column small {
    font-weight: normal;
    font-size: 0.8rem;
    color: #5e7a88;
}

.day-column {
    padding: 16px;
    font-weight: 600;
    color: #1a4b3a;
    text-align: center;
    border-right: 1px solid #d0e2dc;
}

.planner-row {
    display: grid;
    grid-template-columns: 100px repeat(7, 1fr);
    border-bottom: 1px solid #e0eae5;
}

.planner-row:last-child {
    border-bottom: none;
}

.meal-cell {
    padding: 8px;
    border-right: 1px solid #e0eae5;
    min-height: 80px;
}

.meal-cell:last-child {
    border-right: none;
}

.meal-placeholder {
    height: 100%;
    min-height: 64px;
    border: 2px dashed #cbdde8;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a9aa8;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.meal-placeholder:hover {
    border-color: #1d7a5c;
    color: #1d7a5c;
    background: #f0f9f5;
}

/* Статистика дня */
.daily-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-card i {
    font-size: 2rem;
    color: #1d7a5c;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.9rem;
    color: #5e7a88;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a4b3a;
}

/* Профиль */
.profile-card {
    background: white;
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e0eae5;
}

.profile-avatar i {
    font-size: 5rem;
    color: #1d7a5c;
}

.profile-title h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.profile-title p {
    color: #5e7a88;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item.full-width {
    grid-column: span 2;
}

.info-item label {
    font-weight: 600;
    color: #5e7a88;
    font-size: 0.9rem;
    margin: 0;
}

.info-item span {
    font-size: 1.1rem;
    color: #1a4b3a;
    background: #f0f9f5;
    padding: 12px 16px;
    border-radius: 16px;
}

.profile-actions {
    margin-top: 32px;
    text-align: right;
}

.btn-edit {
    padding: 14px 32px;
    background: #1d7a5c;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit:hover {
    background: #156b4f;
    transform: translateY(-2px);
}

/* Страница подписки */
.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.plan-card {
    background: white;
    border-radius: 28px;
    padding: 28px;
    position: relative;
    transition: all 0.2s;
    border: 2px solid #e0eae5;
}

.plan-card.popular {
    border-color: #1d7a5c;
    transform: scale(1.05);
    box-shadow: 0 20px 30px rgba(29,122,92,0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #1d7a5c;
    color: white;
    padding: 6px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
}

.plan-header {
    text-align: center;
    margin-bottom: 24px;
}

.plan-header h3 {
    font-size: 1.5rem;
    color: #1a4b3a;
    margin-bottom: 12px;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1d7a5c;
}

.plan-price span {
    font-size: 1rem;
    font-weight: normal;
    color: #5e7a88;
}

.plan-features {
    list-style: none;
    margin-bottom: 28px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #2d4e5c;
}

.plan-features i.fa-check {
    color: #1d7a5c;
}

.plan-features i.fa-times {
    color: #e07c7c;
}

.btn-plan {
    width: 100%;
    padding: 14px;
    background: #f0f9f5;
    border: 2px solid #1d7a5c;
    color: #1d7a5c;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-plan.popular-btn {
    background: #1d7a5c;
    color: white;
}

.btn-plan:hover {
    background: #1d7a5c;
    color: white;
}

/* Страница разработки */
.development-block {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 32px;
}

.development-block i {
    font-size: 5rem;
    color: #b8ccd6;
    margin-bottom: 20px;
}

.development-block h2 {
    color: #2d4e5c;
    margin-bottom: 10px;
}

.development-block p {
    color: #5e7a88;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .planner-header, .planner-row {
        grid-template-columns: 80px repeat(7, 1fr);
    }
    
    .time-column {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .nav-left {
        gap: 10px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link i {
        font-size: 1.4rem;
    }
    
    .sidebar {
        display: none;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .planner-grid {
        overflow-x: auto;
    }
    
    .planner-header, .planner-row {
        min-width: 800px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item.full-width {
        grid-column: span 1;
    }
    
    .subscription-plans {
        grid-template-columns: 1fr;
    }
    
    .plan-card.popular {
        transform: scale(1);
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-banner {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.4rem;
    }
    
    .user-name {
        display: none;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .daily-stats {
        grid-template-columns: 1fr;
    }
}box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(145deg, #e8f3f1 0%, #d4e8e5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Карточки */
.card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 40px;
    padding: 40px 32px;
    box-shadow: 0 20px 40px rgba(0, 40, 30, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.home-card {
    text-align: center;
}

.logo {
    font-size: 3.2rem;
    font-weight: 700;
    color: #1a4b3a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.slogan {
    font-size: 1.2rem;
    color: #2d5e4d;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Кнопки */
.button-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
    min-width: 140px;
}

.btn-primary {
    background: #1d7a5c;
    color: white;
    box-shadow: 0 8px 0 #0a4a35;
}

.btn-primary:hover {
    background: #24916e;
    transform: translateY(-2px);
    box-shadow: 0 10px 0 #0a4a35;
}

.btn-primary:active {
    transform: translateY(6px);
    box-shadow: 0 2px 0 #0a4a35;
}

.btn-outline {
    background: white;
    border: 2px solid #1d7a5c;
    color: #1d7a5c;
    box-shadow: 0 8px 0 #c6e0d8;
}

.btn-outline:hover {
    background: #f0fff9;
    transform: translateY(-2px);
    box-shadow: 0 10px 0 #b0d5c9;
}

.btn-outline:active {
    transform: translateY(6px);
    box-shadow: 0 2px 0 #b0d5c9;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.95rem;
    min-width: auto;
}

/* Формы */
.form-card {
    max-width: 520px;
}

h2 {
    font-size: 2rem;
    color: #1a4b3a;
    margin-bottom: 24px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.half {
    flex: 1;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d5e4a;
    font-size: 0.95rem;
}

input, select, textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid #d0e2dc;
    border-radius: 30px;
    background: white;
    transition: all 0.2s;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: #1d7a5c;
    box-shadow: 0 0 0 4px rgba(29, 122, 92, 0.15);
}

textarea {
    resize: vertical;
    border-radius: 24px;
}

/* Прогресс-бар */
.progress-bar {
    height: 8px;
    background: #e0f0ea;
    border-radius: 20px;
    margin-bottom: 12px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #1d7a5c, #36b38c);
    border-radius: 20px;
    transition: width 0.3s;
}

.step-indicator {
    display: inline-block;
    padding: 6px 16px;
    background: #e0f0ea;
    border-radius: 40px;
    font-size: 0.9rem;
    color: #1d5e4a;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Радио кнопки и чекбоксы */
.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-group.vertical {
    flex-direction: column;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: #1d7a5c;
    transform: scale(1.2);
}

.card-radio {
    background: #f0f9f5;
    padding: 20px;
    border-radius: 24px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.card-radio:has(input:checked) {
    border-color: #1d7a5c;
    background: #e1f3ec;
}

.radio-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a4b3a;
    display: block;
    margin-bottom: 4px;
}

.radio-desc {
    font-size: 0.9rem;
    color: #4a7265;
    display: block;
}

/* Чекбоксы для типов готовки */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #f0f9f5;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.checkbox-label:has(input:checked) {
    background: #c4e6d9;
    border-color: #1d7a5c;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    accent-color: #1d7a5c;
    transform: scale(1.2);
}

/* Подсказки */
.hint {
    color: #5e7a70;
    font-size: 0.9rem;
    margin-top: 8px;
    display: block;
}

/* Личный кабинет */
.cabinet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.cabinet-header h1 {
    font-size: 2rem;
    color: #1a4b3a;
}

.welcome-message {
    background: linear-gradient(145deg, #e6f4ef, #d1e8e0);
    padding: 24px;
    border-radius: 30px;
    margin-bottom: 32px;
}

.welcome-message h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.dashboard-card {
    background: white;
    padding: 24px;
    border-radius: 28px;
    box-shadow: 0 10px 20px rgba(0, 30, 20, 0.1);
    border: 1px solid #d0e2dc;
}

.dashboard-card h3 {
    color: #1a4b3a;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.meal-list {
    list-style: none;
}

.meal-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #d0e2dc;
    color: #2d5e4d;
}

/* Адаптивность */
@media (max-width: 520px) {
    .card {
        padding: 28px 20px;
        border-radius: 32px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .cabinet-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .card {
        padding: 20px 16px;
    }
}
/* Дополнительные стили для алертов */
.alert {
    padding: 16px 20px;
    border-radius: 24px;
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-error {
    background: #ffebee;
    border: 2px solid #f44336;
    color: #c62828;
}

.alert-success {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    color: #2e7d32;
}

/* Информация о пользователе */
.user-info {
    background: #f8fcf9;
    padding: 24px;
    border-radius: 28px;
    margin-bottom: 32px;
    border: 2px solid #d0e2dc;
}

.user-info h3 {
    color: #1a4b3a;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.user-info p {
    margin-bottom: 10px;
    color: #2d5e4d;
    font-size: 1.1rem;
}
/* ===== СТРАНИЦА РЕЦЕПТОВ ===== */
.recipes-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

.recipes-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e0eae5;
    padding: 24px;
}

.recipes-sidebar h3 {
    color: #1a4b3a;
    margin-bottom: 24px;
    font-size: 1.3rem;
}

.filter-section {
    margin-bottom: 28px;
}

.filter-section h4 {
    color: #2d5e4d;
    margin-bottom: 16px;
    font-size: 1rem;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s;
}

.category-checkbox:hover {
    background: #f0f9f5;
}

.category-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1d7a5c;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d0e2dc;
    border-radius: 16px;
    font-size: 1rem;
    outline: none;
    background: white;
}

.filter-select:focus {
    border-color: #1d7a5c;
}

.btn-apply-filters {
    width: 100%;
    padding: 14px;
    background: #1d7a5c;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-apply-filters:hover {
    background: #156b4f;
    transform: translateY(-2px);
}

/* Основная область рецептов */
.recipes-main {
    flex: 1;
    background: #f5faf8;
    padding: 32px;
    overflow-y: auto;
}

.recipes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.recipes-header h1 {
    font-size: 2rem;
    color: #1a4b3a;
}

.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 8px 20px;
    width: 300px;
    border: 2px solid #d0e2dc;
}

.search-bar i {
    color: #7a9aa8;
    margin-right: 10px;
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    background: transparent;
}

/* Сетка рецептов */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.recipe-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.2s;
    cursor: pointer;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(29,122,92,0.15);
}

.recipe-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.recipe-content {
    padding: 20px;
}

.recipe-content h3 {
    color: #1a4b3a;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.recipe-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.difficulty {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #e0f0ea;
}

.difficulty.easy {
    background: #e1f3e8;
    color: #1d7a5c;
}

.difficulty.medium {
    background: #fff3e0;
    color: #f57c00;
}

.difficulty.hard {
    background: #ffebee;
    color: #f44336;
}

.time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #5e7a88;
    font-size: 0.9rem;
}

.recipe-nutrition {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: #f0f9f5;
    padding: 12px;
    border-radius: 16px;
    margin-bottom: 12px;
}

.recipe-nutrition span {
    font-size: 0.8rem;
    color: #1a4b3a;
    text-align: center;
}

.recipe-description {
    color: #4a6670;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 16px;
}

.btn-view {
    width: 100%;
    padding: 10px;
    background: #f0f9f5;
    border: 2px solid #1d7a5c;
    color: #1d7a5c;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view:hover {
    background: #1d7a5c;
    color: white;
}

/* Модальное окно рецепта */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 32px;
    width: 90%;
    max-width: 700px;
    border-radius: 32px;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 24px;
    top: 16px;
    font-size: 28px;
    font-weight: bold;
    color: #7a9aa8;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #1a4b3a;
}

#recipeDetails h2 {
    color: #1a4b3a;
    margin-bottom: 16px;
    font-size: 1.8rem;
    padding-right: 40px;
}

.recipe-modal-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.recipe-modal-nutrition {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: #f0f9f5;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.recipe-modal-nutrition div {
    color: #1a4b3a;
    font-weight: 500;
}

#recipeDetails h3 {
    color: #1a4b3a;
    margin: 24px 0 12px;
    font-size: 1.3rem;
}

.ingredients-list {
    list-style: none;
    padding: 0;
}

.ingredients-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #e0eae5;
    color: #2d5e4d;
}

.instructions-list {
    padding-left: 20px;
}

.instructions-list li {
    margin-bottom: 12px;
    color: #2d5e4d;
    line-height: 1.5;
}

.btn-add-to-plan {
    width: 100%;
    padding: 16px;
    background: #1d7a5c;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-to-plan:hover {
    background: #156b4f;
    transform: translateY(-2px);
}

.loading, .no-results, .error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: #5e7a88;
    font-size: 1.1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .recipes-container {
        flex-direction: column;
    }
    
    .recipes-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0eae5;
    }
    
    .recipes-main {
        padding: 20px;
    }
    
    .recipes-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 0;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
    }
}
/* Планировщик */
.planner-container {
    background: white;
    border-radius: 28px;
    overflow-x: auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 32px;
}

.planner-grid {
    min-width: 900px;
}

.planner-header {
    display: grid;
    grid-template-columns: 120px repeat(7, 1fr);
    background: #f0f9f5;
    border-bottom: 2px solid #d0e2dc;
    position: sticky;
    top: 0;
}

.planner-row {
    display: grid;
    grid-template-columns: 120px repeat(7, 1fr);
    border-bottom: 1px solid #e0eae5;
}

.planner-row:last-child {
    border-bottom: none;
}

.time-column {
    padding: 16px;
    font-weight: 600;
    color: #1a4b3a;
    border-right: 1px solid #d0e2dc;
    background: #f8fcf9;
}

.time-column small {
    font-weight: normal;
    font-size: 0.8rem;
    color: #5e7a88;
}

.day-column {
    padding: 16px;
    font-weight: 600;
    color: #1a4b3a;
    text-align: center;
    border-right: 1px solid #d0e2dc;
}

.meal-cell {
    padding: 8px;
    border-right: 1px solid #e0eae5;
    min-height: 100px;
    position: relative;
}

.meal-cell:last-child {
    border-right: none;
}

.meal-placeholder {
    height: 100%;
    min-height: 84px;
    border: 2px dashed #cbdde8;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a9aa8;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.meal-placeholder:hover {
    border-color: #1d7a5c;
    color: #1d7a5c;
    background: #f0f9f5;
}

.meal-item {
    background: #f0f9f5;
    border-radius: 16px;
    padding: 10px;
    position: relative;
    border-left: 4px solid #1d7a5c;
    transition: all 0.2s;
}

.meal-item.completed {
    opacity: 0.7;
    border-left-color: #7a9aa8;
}

.meal-item.completed .meal-name {
    text-decoration: line-through;
}

.meal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.meal-name {
    font-weight: 600;
    color: #1a4b3a;
    font-size: 0.9rem;
    padding-right: 20px;
}

.meal-calories {
    font-size: 0.8rem;
    color: #5e7a88;
}

.meal-complete {
    background: none;
    border: none;
    cursor: pointer;
    color: #1d7a5c;
    font-size: 1rem;
    padding: 0;
}

.meal-complete i.fa-circle {
    color: #b8ccd6;
}

.meal-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: none;
    border: none;
    color: #e07c7c;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.meal-item:hover .meal-remove {
    opacity: 1;
}

/* Кнопка копирования */
.btn-copy-week {
    padding: 12px 20px;
    background: white;
    border: 2px solid #1d7a5c;
    color: #1d7a5c;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-copy-week:hover {
    background: #1d7a5c;
    color: white;
}

/* Модальное окно добавления */
.add-meal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0eae5;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    font-weight: 600;
    color: #5e7a88;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.2s;
}

.tab-btn.active {
    background: #1d7a5c;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Список рецептов в модалке */
.recipes-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 16px;
}

.recipe-select-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 2px solid #e0eae5;
    border-radius: 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.recipe-select-item:hover {
    border-color: #1d7a5c;
    background: #f0f9f5;
}

.recipe-select-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recipe-select-name {
    font-weight: 600;
    color: #1a4b3a;
}

.recipe-select-calories {
    font-size: 0.9rem;
    color: #5e7a88;
}

/* Поле поиска в модалке */
#searchRecipes {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #d0e2dc;
    border-radius: 50px;
    font-size: 1rem;
    margin-bottom: 16px;
}

#searchRecipes:focus {
    border-color: #1d7a5c;
    outline: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-copy-week {
        width: 100%;
        justify-content: center;
    }
    
    .planner-container {
        margin: 0 -20px;
        border-radius: 0;
    }
}
/* ===== СПИСОК ПОКУПОК ===== */
.shopping-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

.shopping-main {
    flex: 1;
    background: #f5faf8;
    padding: 32px;
    overflow-y: auto;
}

.shopping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.shopping-header h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a4b3a;
}

.shopping-header h1 i {
    color: #1d7a5c;
}

.shopping-actions {
    display: flex;
    gap: 12px;
}

.shopping-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 8px 20px;
    width: 300px;
    border: 2px solid #d0e2dc;
}

.search-box i {
    color: #7a9aa8;
    margin-right: 10px;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    background: transparent;
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    padding: 8px 20px;
    border: 2px solid #d0e2dc;
    background: white;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    color: #4a6670;
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: #1d7a5c;
    color: #1d7a5c;
}

.filter-tab.active {
    background: #1d7a5c;
    border-color: #1d7a5c;
    color: white;
}

.shopping-list {
    background: white;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.empty-list {
    text-align: center;
    padding: 60px 20px;
    color: #7a9aa8;
}

.empty-list i {
    font-size: 5rem;
    color: #d0e2dc;
    margin-bottom: 20px;
}

.empty-list h3 {
    color: #4a6670;
    margin-bottom: 10px;
}

.empty-list p {
    color: #7a9aa8;
}

.shopping-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e0eae5;
    transition: all 0.2s;
}

.shopping-item:last-child {
    border-bottom: none;
}

.shopping-item:hover {
    background: #f0f9f5;
}

.shopping-item.completed {
    opacity: 0.7;
}

.shopping-item.completed .item-name {
    text-decoration: line-through;
    color: #7a9aa8;
}

.item-check {
    margin-right: 16px;
}

.item-check input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #1d7a5c;
    cursor: pointer;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-name {
    font-weight: 600;
    color: #1a4b3a;
}

.item-quantity {
    font-size: 0.9rem;
    color: #5e7a88;
}

.item-actions {
    display: flex;
    gap: 8px;
}

.item-delete {
    background: none;
    border: none;
    color: #e07c7c;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.item-delete:hover {
    background: #ffebee;
    color: #f44336;
}

.shopping-summary {
    background: white;
    border-radius: 24px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.summary-item {
    text-align: center;
    padding: 12px;
    background: #f0f9f5;
    border-radius: 20px;
}

.summary-item span {
    display: block;
    color: #5e7a88;
    margin-bottom: 8px;
}

.summary-item strong {
    font-size: 1.5rem;
    color: #1a4b3a;
}

/* Модальное окно */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.form-select {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #d0e2dc;
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.form-select:focus {
    border-color: #1d7a5c;
    outline: none;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.half {
    flex: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .shopping-container {
        flex-direction: column;
    }
    
    .shopping-main {
        padding: 20px;
    }
    
    .shopping-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .shopping-actions {
        flex-direction: column;
    }
    
    .shopping-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        width: 100%;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .shopping-summary {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
}
/* Выпадающее меню экспорта */
.export-dropdown {
    position: relative;
    display: inline-block;
}

.export-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
}

.export-menu.show {
    display: block;
    animation: slideDown 0.2s;
}

.export-header {
    padding: 12px 16px;
    background: #f0f9f5;
    color: #1a4b3a;
    font-weight: 600;
    font-size: 0.9rem;
}

.export-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #2d4a5c;
    text-decoration: none;
    transition: all 0.2s;
}

.export-menu a:hover {
    background: #f0f9f5;
    color: #1d7a5c;
}

.export-menu a i {
    width: 20px;
    color: #5e7a88;
}

.export-divider {
    height: 1px;
    background: #e0eae5;
    margin: 4px 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Горизонтальные тарифы */
.plans-horizontal {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 5px 20px;
    scrollbar-width: thin;
    scrollbar-color: #1d7a5c #e0eae5;
}

.plans-horizontal::-webkit-scrollbar {
    height: 8px;
}

.plans-horizontal::-webkit-scrollbar-track {
    background: #e0eae5;
    border-radius: 10px;
}

.plans-horizontal::-webkit-scrollbar-thumb {
    background: #1d7a5c;
    border-radius: 10px;
}

.plan-card-horizontal {
    min-width: 320px;
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 2px solid #e0eae5;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(29,122,92,0.15);
}

.plan-card-horizontal.popular {
    border-color: #1d7a5c;
    background: linear-gradient(145deg, #ffffff, #f8fffc);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 24px;
    background: #1d7a5c;
    color: white;
    padding: 4px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-price-block {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 2px dashed #e0eae5;
    border-bottom: 2px dashed #e0eae5;
}

.price-month {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
}

.price-month .price {
    font-size: 2rem;
    font-weight: 700;
    color: #1a4b3a;
}

.price-year {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-year .price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4a6670;
}

.year-discount {
    background: #e1f3ea;
    color: #1d7a5c;
    padding: 2px 8px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
}

.more-features {
    color: #7a9aa8;
    font-size: 0.9rem;
    font-style: italic;
}

.btn-select-plan {
    width: 100%;
    padding: 14px;
    background: #1d7a5c;
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-select-plan:hover {
    background: #156b4f;
    gap: 12px;
}

.btn-details {
    width: 100%;
    padding: 10px;
    background: none;
    border: none;
    color: #7a9aa8;
    cursor: pointer;
    margin-top: 8px;
    font-size: 0.9rem;
}

/* Реферальная программа - современный дизайн */
.referral-section {
    background: white;
    border-radius: 32px;
    padding: 32px;
    margin-top: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.referral-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.referral-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.referral-title h2 {
    color: #1a4b3a;
    margin: 8px 0 4px;
}

.referral-stats-compact {
    display: flex;
    gap: 24px;
    background: #f8fcf9;
    padding: 16px 24px;
    border-radius: 60px;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a4b3a;
    line-height: 1.2;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: #7a9aa8;
}

.stat-item.highlight .stat-value {
    color: #1d7a5c;
}

.referral-content {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
}

.referral-code-card {
    background: linear-gradient(145deg, #f8fcf9, #f0f9f5);
    border-radius: 28px;
    padding: 28px;
    border: 2px solid #e0eae5;
}

.referral-code-card h3 {
    color: #1a4b3a;
    margin-bottom: 4px;
}

.referral-description {
    color: #4a6670;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.referral-link-box {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.link-preview {
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #d0e2dc;
    border-radius: 60px;
    padding: 4px 4px 4px 16px;
}

.link-icon {
    margin-right: 8px;
    color: #7a9aa8;
}

.link-preview input {
    flex: 1;
    border: none;
    padding: 12px 0;
    font-size: 0.9rem;
    background: transparent;
    outline: none;
}

.btn-copy-link {
    background: #1d7a5c;
    color: white;
    border: none;
    border-radius: 60px;
    padding: 0 28px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-copy-link:hover {
    background: #156b4f;
    transform: scale(1.02);
}

.referral-share {
    display: flex;
    align-items: center;
    gap: 16px;
}

.referral-share span {
    color: #4a6670;
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.telegram { background: #0088cc; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.vk { background: #4a76a8; }
.share-btn.email { background: #7a9aa8; }

.referral-rules {
    margin-top: 24px;
}

.referral-rules h4 {
    color: #1a4b3a;
    margin-bottom: 16px;
}

.referral-rules ul {
    list-style: none;
    padding: 0;
}

.referral-rules li {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e0eae5;
}

.referral-rules li:last-child {
    border-bottom: none;
}

.rule-icon {
    font-size: 1.3rem;
}

.rule-text strong {
    display: block;
    color: #1a4b3a;
    margin-bottom: 4px;
}

.rule-text p {
    color: #7a9aa8;
    font-size: 0.85rem;
    margin: 0;
}

.referral-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bonus-card {
    background: linear-gradient(145deg, #1d7a5c, #156b4f);
    color: white;
    border-radius: 28px;
    padding: 28px;
    text-align: center;
}

.bonus-card h3 {
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.bonus-amount {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bonus-note {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.btn-use-bonus {
    background: white;
    color: #1d7a5c;
    border: none;
    border-radius: 60px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-use-bonus:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.referral-history {
    background: #f8fcf9;
    border-radius: 24px;
    padding: 20px;
}

.referral-history h3 {
    color: #1a4b3a;
    margin-bottom: 16px;
    font-size: 1rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 16px;
}

.history-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar i {
    font-size: 2rem;
    color: #b8ccd6;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-email {
    font-weight: 600;
    color: #1a4b3a;
    font-size: 0.9rem;
}

.user-date {
    font-size: 0.75rem;
    color: #7a9aa8;
}

.history-status {
    text-align: right;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f0f9f5;
    color: #4a6670;
}

.status-badge.success {
    background: #e1f3ea;
    color: #1d7a5c;
}

.status-badge.warning {
    background: #fff3e0;
    color: #f57c00;
}

.bonus-earned {
    display: block;
    font-weight: 700;
    color: #1d7a5c;
    margin-top: 4px;
}

.view-all {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #1d7a5c;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.promo-card {
    background: linear-gradient(145deg, #f8fcf9, #f0f9f5);
    border-radius: 28px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.promo-icon {
    font-size: 3rem;
}

.promo-content {
    flex: 1;
}

.promo-content h3 {
    color: #1a4b3a;
    margin-bottom: 4px;
}

.promo-content p {
    color: #7a9aa8;
    font-size: 0.9rem;
    margin: 0;
}

.promo-input-group {
    display: flex;
    gap: 8px;
    min-width: 300px;
}

.promo-input-group input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #d0e2dc;
    border-radius: 60px;
    font-size: 1rem;
    background: white;
}

.promo-input-group input:focus {
    border-color: #1d7a5c;
    outline: none;
}

.btn-promo {
    padding: 14px 28px;
    background: #1d7a5c;
    color: white;
    border: none;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-promo:hover {
    background: #156b4f;
}

@media (max-width: 1024px) {
    .referral-content {
        grid-template-columns: 1fr;
    }
    
    .promo-card {
        flex-direction: column;
        text-align: center;
    }
    
    .promo-input-group {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .referral-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .referral-stats-compact {
        width: 100%;
        justify-content: space-around;
    }
    
    .referral-link-box {
        flex-direction: column;
    }
    
    .promo-input-group {
        flex-direction: column;
    }
}
/* Стили для кнопки показа дополнительных возможностей */
.btn-show-more {
    background: none;
    border: none;
    color: #1d7a5c;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    transition: all 0.2s;
}

.btn-show-more:hover {
    color: #156b4f;
    gap: 10px;
}

.btn-show-more i {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.hidden-features {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-features {
    list-style: none;
    margin: 15px 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: #2d4e5c;
    font-size: 0.95rem;
}

.plan-features li i {
    color: #1d7a5c;
    font-size: 0.9rem;
    width: 18px;
}
.recommendation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.recommendation-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    gap: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(29,122,92,0.15);
}

.card-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.card-content h3 {
    color: #1a4b3a;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.card-content p {
    color: #4a6670;
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.btn-small {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f9f5;
    color: #1d7a5c;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-small:hover {
    background: #1d7a5c;
    color: white;
}