:root {
            --primary-color: #205747;
            --primary-light: #397b60;
            --primary-dark: #12392e;
            --text-color: #333;
            --light-gray: #f5f5f5;
            --white: #ffffff;
            --success-color: #19754a;
            --warning-color: #a85f00;
            --info-color: #2196F3;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            color: var(--text-color);
            line-height: 1.6;
            background-color: var(--light-gray);
            transition: all 0.3s ease;
        }
        
        body.menu-open {
            overflow: hidden;
        }
        
        /* Шапка */
        header {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            color: var(--white);
            padding: 1.5rem 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            position: relative;
        }
        
        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }
        
        .header-title {
            font-size: 2rem;
            margin: 0 auto;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: max-content;
        }
        
        /* Кнопка меню */
        .menu-btn {
            background: none;
            border: none;
            color: var(--white);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 8px;
            z-index: 1;
            transition: transform 0.3s ease;
        }
        
        .menu-btn:hover {
            transform: scale(1.1);
        }
        
        /* Выдвижное меню */
        .mobile-menu {
            position: fixed;
            top: 0;
            left: -300px;
            width: 280px;
            height: 100%;
            background-color: var(--white);
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            transition: left 0.3s ease;
            overflow-y: auto;
        }
        
        .mobile-menu.open {
            left: 0;
        }
        
        .menu-header {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            color: var(--white);
            padding: 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .close-menu {
            background: none;
            border: none;
            color: var(--white);
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        .menu-items {
            padding: 1rem 0;
        }
        
        .menu-item {
            display: block;
            padding: 12px 20px;
            color: var(--text-color);
            text-decoration: none;
            transition: all 0.2s ease;
            border-left: 4px solid transparent;
        }
        
        .menu-item:hover {
            background-color: rgba(32,87,71, 0.05);
            border-left: 4px solid var(--primary-color);
            color: var(--primary-color);
        }
        
        .menu-icon {
            width: 24px;
            margin-right: 10px;
            text-align: center;
        }
        
        .menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .menu-overlay.open {
            opacity: 1;
            visibility: visible;
        }
        
        /* Основной контент */
        .main-container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 20px;
        }
        
        /* Статистика рефералов */
        .referral-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .stat-card {
            background: var(--white);
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            text-align: center;
        }
        
        .stat-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }
        
        .stat-number {
            font-size: 2rem;
            font-weight: bold;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }
        
        .stat-label {
            color: #666;
            font-size: 0.9rem;
        }
        
        /* Реферальная ссылка */
        .referral-link-section {
            background: var(--white);
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 2rem;
        }
        
        .section-title {
            color: var(--primary-color);
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
        }
        
        .link-container {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .referral-input {
            flex: 1;
            padding: 12px 15px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 1rem;
            background: #f9f9f9;
        }
        
        .copy-btn {
            padding: 12px 24px;
            background: var(--primary-color);
            color: var(--white);
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
        }
        
        .copy-btn:hover {
            background: var(--primary-dark);
        }
        
        .share-buttons {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }
        
        .share-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .share-whatsapp {
            background: #25D366;
            color: white;
        }
        
        .share-telegram {
            background: #0088cc;
            color: white;
        }
        
        .share-vk {
            background: #4a76a8;
            color: white;
        }
        
        .share-btn:hover {
            transform: translateY(-2px);
        }
        
        /* Условия программы */
        .program-info {
            background: var(--white);
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 2rem;
        }
        
        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-top: 1.5rem;
        }
        
        .info-card {
            padding: 1.5rem;
            border-radius: 8px;
            border-left: 4px solid;
        }
        
        .info-card h4 {
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .card-bonus {
            border-left-color: var(--success-color);
            background: rgba(76, 175, 80, 0.1);
        }
        
        .card-conditions {
            border-left-color: var(--info-color);
            background: rgba(33, 150, 243, 0.1);
        }
        
        .card-limits {
            border-left-color: var(--warning-color);
            background: rgba(255, 152, 0, 0.1);
        }
        
        /* История рефералов */
        .referral-history {
            background: var(--white);
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .history-list {
            max-height: 400px;
            overflow-y: auto;
            margin-top: 1.5rem;
        }
        
        .history-item {
            padding: 1rem;
            border: 1px solid #eee;
            border-radius: 8px;
            margin-bottom: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .history-item:last-child {
            margin-bottom: 0;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }
        
        .user-name {
            font-weight: 500;
        }
        
        .referral-status {
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        .status-active {
            background: rgba(76, 175, 80, 0.2);
            color: var(--success-color);
        }
        
        .status-pending {
            background: rgba(255, 152, 0, 0.2);
            color: var(--warning-color);
        }
        
        .status-completed {
            background: rgba(33, 150, 243, 0.2);
            color: var(--info-color);
        }
        
        .bonus-amount {
            color: var(--success-color);
            font-weight: bold;
        }
        
        /* Уведомления */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 20px;
            border-radius: 8px;
            color: white;
            font-weight: 500;
            z-index: 1001;
            transform: translateX(100%);
            transition: transform 0.3s ease;
        }
        
        .notification.success {
            background-color: var(--success-color);
        }
        
        .notification.error {
            background-color: #f44336;
        }
        
        .notification.show {
            transform: translateX(0);
        }
        
        /* Адаптивность */
        @media (max-width: 768px) {
            .header-title {
                font-size: 1.5rem;
                position: static;
                transform: none;
                margin: 0.5rem 0;
                order: 2;
                width: 100%;
                text-align: center;
            }
            
            .header-container {
                flex-wrap: wrap;
            }
            
            .menu-btn {
                order: 1;
            }
            
            .referral-stats {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .link-container {
                flex-direction: column;
            }
            
            .share-buttons {
                flex-direction: column;
            }
            
            .info-grid {
                grid-template-columns: 1fr;
            }
            
            .history-item {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }
            
            .user-info {
                justify-content: center;
            }
            
            .referral-link-section,
            .program-info,
            .referral-history {
                padding: 1.5rem;
            }
        }

        @media (max-width: 480px) {
            .referral-stats {
                grid-template-columns: 1fr;
            }
        }
.referral-notice {
    margin: 0 0 1.25rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(32,87,71, .22);
    border-radius: .75rem;
    background: rgba(32,87,71, .08);
}

.share-btn:disabled,
.copy-btn:disabled {
    cursor: not-allowed;
    opacity: .55;
}
