       * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
        }

        body {
            background-color: #f5f5f5;
            display: flex;
        }
       /* Добавляем прокрутку только для меню */
        .menu {
            padding: 15px 0;
            flex: 1;
            overflow-y: auto;
            min-height: 0;
            
            &::-webkit-scrollbar {
                width: 6px;
            }
            
            &::-webkit-scrollbar-track {
                background: rgba(255, 255, 255, 0.05);
                border-radius: 10px;
            }
            
            &::-webkit-scrollbar-thumb {
                background: rgba(255, 255, 255, 0.2);
                border-radius: 10px;
                transition: background 0.3s;
            }
            
            &::-webkit-scrollbar-thumb:hover {
                background: rgba(255, 255, 255, 0.3);
            }
        }
        /* Боковое меню */
        .sidebar {
            width: 200px;
            background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
            color: white;
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            overflow-y: auto;
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
            z-index: 1000;
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .logo {
            padding: 15px;
            text-align: center;
            border-bottom: 1px solid #34495e;
        }

        .logo h2 {
            color: white;
            font-size: 18px;
            margin-bottom: 5px;
        }

        /* Плашка тарифа */
        .tariff-badge {
            margin-top: 8px;
            padding: 6px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 500;
            text-align: center;
            transition: all 0.3s;
        }

        .tariff-trial {
            background: rgba(52, 152, 219, 0.2);
            color: #3498db;
            border: 1px solid rgba(52, 152, 219, 0.3);
        }

        .tariff-active {
            background: rgba(46, 204, 113, 0.2);
            color: #27ae60;
            border: 1px solid rgba(46, 204, 113, 0.3);
        }

        .tariff-warning {
            background: rgba(231, 76, 60, 0.2);
            color: #e74c3c;
            border: 1px solid rgba(231, 76, 60, 0.3);
            animation: pulse 2s infinite;
        }

        .tariff-expired {
            background: rgba(231, 76, 60, 0.3);
            color: #c0392b;
            border: 1px solid #e74c3c;
            font-weight: 600;
        }

        @keyframes pulse {
            0% {
                opacity: 1;
            }
            50% {
                opacity: 0.7;
            }
            100% {
                opacity: 1;
            }
        }

        .tariff-loading {
            color: #95a5a6;
            font-size: 10px;
        }

        .menu {
            padding: 15px 0;
            flex: 1;
            overflow-y: auto;
            min-height: 0;
        }

        .menu-button {
            display: block;
            padding: 8px 20px;
            color: #ecf0f1;
            text-decoration: none;
            transition: all 0.3s;
            font-size: 13px;
            border-left: 3px solid transparent;
            cursor: pointer;
            background: none;
            border: none;
            width: 100%;
            text-align: left;
        }
        .menu-button1 {
            display: none;
            padding: 8px 20px;
            color: #00ca76;
            text-decoration: none;
            transition: all 0.3s;
            font-size: 13px;
            border-left: 3px solid transparent;
            cursor: pointer;
            background: none;
            border: none;
            width: 100%;
            text-align: left;
        }

        .menu-button1:hover {
            background: #34495e;
            border-left-color: #3498db;
        }
        
        .menu-button1.active {
            background: #34495e;
            border-left-color: #3498db;
            font-weight: 500;
        }
        .menu-button:hover {
            background: #34495e;
            border-left-color: #3498db;
        }

        .menu-button.active {
            background: #34495e;
            border-left-color: #3498db;
            font-weight: 500;
        }

        .menu i {
            margin-right: 8px;
            width: 18px;
            text-align: center;
        }

        /* Блок новостей внизу меню */
        .news-section {
            padding: 15px;
            border-top: 1px solid #34495e;
            background: rgba(0, 0, 0, 0.2);
            flex-shrink: 0;
            margin-top: auto;
        }

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

        .news-header h3 {
            color: #ecf0f1;
            font-size: 13px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .news-header .all-news-btn {
            background: none;
            border: none;
            color: #3498db;
            font-size: 11px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: all 0.3s;
        }

        .news-header .all-news-btn:hover {
            background: rgba(52, 152, 219, 0.2);
        }

        .latest-news {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 6px;
            padding: 10px;
            margin-bottom: 12px;
            font-size: 12px;
            color: #bdc3c7;
            line-height: 1.5;
            max-height: 80px;
            overflow: hidden;
            position: relative;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .latest-news.expanded {
            max-height: 200px;
            overflow-y: auto;
            background: rgba(255, 255, 255, 0.1);
        }

        .latest-news:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .latest-news .news-content {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .latest-news.expanded .news-content {
            display: block;
            -webkit-line-clamp: unset;
        }

        .support-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: linear-gradient(135deg, #27ae60, #2ecc71);
            color: white;
            padding: 10px;
            border-radius: 6px;
            text-decoration: none;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.3s;
            border: none;
            width: 100%;
            cursor: pointer;
            margin-top: 8px;
        }

        .support-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
        }

        .support-btn i {
            font-size: 14px;
        }

        /* Модальное окно новостей */
        .news-modal {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 25px;
            border-radius: 16px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
            z-index: 1001;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
        }

        .news-modal h2 {
            color: #2c3e50;
            font-size: 20px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            padding-right: 30px;
        }

        .news-modal .close {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 24px;
            cursor: pointer;
            color: #7f8c8d;
            transition: color 0.3s;
        }

        .news-modal .close:hover {
            color: #2c3e50;
        }

        .news-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .news-item {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 10px;
            border-left: 3px solid #3498db;
        }

        .news-item .news-date {
            font-size: 11px;
            color: #7f8c8d;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .news-item .news-date i {
            color: #3498db;
            font-size: 10px;
        }

        .news-item .news-text {
            color: #2c3e50;
            font-size: 13px;
            line-height: 1.5;
            white-space: pre-wrap;
        }

        /* Основной контент */
        .content {
            flex: 1;
            margin-left: 200px;
            padding: 30px;
            background-color: #f5f5f5;
            min-height: 100vh;
            transition: margin-left 0.3s ease;
        }

        h1 {
            color: #2c3e50;
            font-size: 24px;
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        h1 i {
            color: #223a4b;
        }

        /* Карточки настроек */
        .settings-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .settings-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .settings-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            padding: 5px 0;
        }

        .settings-header h2 {
            color: #2c3e50;
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .settings-header h2 i {
            color: #3498db;
            width: 24px;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .expand-icon {
            color: #95a5a6;
            transition: transform 0.3s;
        }

        .settings-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }

        .settings-content.expanded {
            max-height: 1000px;
            transition: max-height 0.5s ease-in;
        }

        .info-display {
            padding: 15px 0 5px;
        }

        .info-row {
            display: flex;
            margin-bottom: 12px;
            padding: 8px 12px;
            background: #f8f9fa;
            border-radius: 8px;
            align-items: center;
        }

        .info-label {
            width: 120px;
            color: #7f8c8d;
            font-size: 13px;
            font-weight: 500;
        }

        .info-value {
            flex: 1;
            color: #2c3e50;
            font-size: 14px;
        }

        .edit-button {
            background: none;
            border: 1px solid #3498db;
            color: #3498db;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: all 0.3s;
        }

        .edit-button:hover {
            background: #3498db;
            color: white;
        }

        .edit-form {
            display: none;
            padding: 15px 0;
        }

        .edit-form.active {
            display: block;
        }

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

        .form-group label {
            display: block;
            color: #2c3e50;
            font-weight: 500;
            margin-bottom: 5px;
            font-size: 13px;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 10px;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            font-size: 14px;
            transition: all 0.3s;
            background: white;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }

        .button-group {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            justify-content: flex-end;
        }

        .btn {
            background: #3498db;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .btn:hover {
            background: #2980b9;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
        }

        .btn.cancel {
            background: #95a5a6;
        }

        .btn.cancel:hover {
            background: #7f8c8d;
        }

        .btn.small {
            padding: 5px 10px;
            font-size: 12px;
        }

        .btn.download {
            background: #27ae60;
        }

        .btn.download:hover {
            background: #2ecc71;
        }

        .btn.csv {
            background: #f39c12;
        }

        .btn.csv:hover {
            background: #e67e22;
        }

        .btn.pdf {
            background: #e74c3c;
        }

        .btn.pdf:hover {
            background: #c0392b;
        }

        /* Стили для новых кнопок */
        .btn.telegram {
            background: #0088cc;
        }

        .btn.telegram:hover {
            background: #0077b5;
        }

        .btn.notification {
            background: #9b59b6;
        }

        .btn.notification:hover {
            background: #8e44ad;
        }

        .btn.disabled {
            opacity: 0.7;
            cursor: not-allowed;
            pointer-events: none;
        }

        .btn.disabled:hover {
            transform: none;
            box-shadow: none;
        }

        .action-buttons {
            display: flex;
            gap: 10px;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .action-buttons .btn {
            flex: 1;
            justify-content: center;
            min-width: 200px;
        }

        /* Информационные блоки */
        .info-section {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 20px;
            margin-top: 20px;
        }

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

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

        .info-item .info-label {
            color: #7f8c8d;
            font-size: 12px;
            margin-bottom: 5px;
        }

        .info-item .info-value {
            color: #2c3e50;
            font-size: 16px;
            font-weight: 500;
        }

        .subscription-info {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
        }

        .subscription-info.warning {
            background: linear-gradient(135deg, #f56565 0%, #ed8936 100%);
        }

        .subscription-info.expired {
            background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
        }

        .subscription-text h3 {
            font-size: 16px;
            margin-bottom: 5px;
        }

        .subscription-text p {
            font-size: 14px;
            opacity: 0.9;
        }

        .subscription-btn {
            background: white;
            color: #667eea;
            padding: 8px 16px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 500;
            font-size: 13px;
            transition: all 0.3s;
        }

        .subscription-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        /* Сообщение об успехе */
        .success-message {
            background: #d4edda;
            color: #155724;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: none;
            align-items: center;
            gap: 10px;
        }

        .success-message.show {
            display: flex;
        }

        .success-message i {
            font-size: 20px;
        }

        /* Блок загрузки истории клиента */
        .download-section {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
            margin-top: 20px;
        }

        .download-title {
            color: #2c3e50;
            font-size: 16px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .download-title i {
            color: #3498db;
        }

        .download-info {
            color: #666;
            font-size: 13px;
            margin-bottom: 15px;
            padding: 10px;
            background: white;
            border-radius: 6px;
            border-left: 3px solid #3498db;
        }

        .format-buttons {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }

        .format-buttons .btn {
            flex: 1;
            justify-content: center;
        }

        /* Модальное окно для экспорта */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background: white;
            border-radius: 12px;
            padding: 25px;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }

        .modal-overlay.active .modal-content {
            transform: scale(1);
        }

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

        .modal-header h3 {
            color: #2c3e50;
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .modal-header h3 i {
            color: #3498db;
        }

        .modal-close {
            background: none;
            border: none;
            color: #95a5a6;
            font-size: 20px;
            cursor: pointer;
            transition: color 0.3s;
        }

        .modal-close:hover {
            color: #e74c3c;
        }

        .modal-body {
            margin-bottom: 20px;
        }

        .columns-list {
            max-height: 300px;
            overflow-y: auto;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 10px;
        }

        .column-item {
            display: flex;
            align-items: center;
            padding: 10px;
            border-bottom: 1px solid #f0f0f0;
            transition: background 0.3s;
        }

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

        .column-item:hover {
            background: #f8f9fa;
        }

        .column-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin-right: 12px;
            cursor: pointer;
            accent-color: #3498db;
        }

        .column-item label {
            flex: 1;
            color: #2c3e50;
            font-size: 14px;
            cursor: pointer;
        }

        .column-actions {
            display: flex;
            gap: 5px;
        }

        .column-action-btn {
            background: none;
            border: none;
            color: #95a5a6;
            cursor: pointer;
            padding: 5px;
            border-radius: 4px;
            transition: all 0.3s;
        }

        .column-action-btn:hover {
            background: #e0e0e0;
            color: #2c3e50;
        }

        .column-action-btn.move-up:hover {
            color: #27ae60;
        }

        .column-action-btn.move-down:hover {
            color: #e67e22;
        }

        .column-action-btn.remove:hover {
            color: #e74c3c;
        }

        .column-action-btn.add {
            color: #27ae60;
        }

        .modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        .select-all-btn {
            background: none;
            border: 1px solid #3498db;
            color: #3498db;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
            margin-bottom: 10px;
            transition: all 0.3s;
        }

        .select-all-btn:hover {
            background: #3498db;
            color: white;
        }

        /* Модальное окно для Telegram */
        .telegram-modal .modal-content {
            text-align: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .telegram-modal .modal-header h3 {
            color: white;
        }

        .telegram-modal .modal-header h3 i {
            color: white;
        }

        .telegram-modal .modal-close {
            color: rgba(255, 255, 255, 0.7);
        }

        .telegram-modal .modal-close:hover {
            color: white;
        }

        .telegram-icon-large {
            font-size: 48px;
            margin: 20px 0;
            animation: pulse 2s infinite;
        }

        .telegram-message {
            font-size: 16px;
            line-height: 1.5;
            margin-bottom: 20px;
        }

        .telegram-note {
            background: rgba(255, 255, 255, 0.2);
            padding: 15px;
            border-radius: 8px;
            font-size: 14px;
            margin-bottom: 20px;
        }

        /* ===== МОБІЛЬНІ СТИЛІ ===== */
        @media (max-width: 768px) {
            body {
                overflow-x: hidden;
                position: relative;
            }
    .menu-button1 {
        display: block;
        font-weight: 600;
    }
            body.menu-open::after {
                content: '';
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.5);
                z-index: 998;
                animation: fadeIn 0.3s ease;
            }

            .sidebar {
                transform: translateX(-100%);
                width: 280px;
                z-index: 1000;
                overflow-y: hidden;
                display: flex;
                flex-direction: column;
            }

            .sidebar.open {
                transform: translateX(0);
            }

            body.menu-open {
                overflow: hidden;
                position: fixed;
                width: 100%;
                height: 100%;
            }

            body.menu-open .content {
                pointer-events: none;
                opacity: 0.7;
                transition: opacity 0.3s ease;
            }

            .swipe-area {
                position: fixed;
                top: 0;
                left: 0;
                width: 30px;
                height: 100%;
                z-index: 997;
                background: transparent;
            }

            .menu-toggle {
                display: block !important;
                position: fixed;
                top: 10px;
                left: 15px;
                z-index: 1001;
                background: #223a4b;
                color: white;
                border: none;
                border-radius: 5%;
                width: 44px;
                height: 44px;
                font-size: 22px;
                cursor: pointer;
                box-shadow: 0 4px 10px rgba(0,0,0,0.2);
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 0.3s ease;
            }

            .menu-toggle:hover {
                background: #2ecc71;
                transform: scale(1.05);
            }

            .sidebar.open ~ .menu-toggle,
            .sidebar.open + .menu-toggle {
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                z-index: 1;
            }

            .content {
                margin-left: 0;
                padding: 20px;
                padding-top: 30px;
                width: 100%;
            }

            h1 {
                font-size: 20px;
                margin-bottom: 20px;
                justify-content: center;
            }

            .settings-container {
                padding: 0;
            }

            .settings-card {
                padding: 15px;
                margin-bottom: 15px;
            }

            .settings-header h2 {
                font-size: 16px;
            }

            .info-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }

            .info-label {
                width: 100%;
                font-size: 12px;
            }

            .info-value {
                width: 100%;
                font-size: 14px;
                font-weight: 500;
            }

            .info-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .subscription-info {
                flex-direction: column;
                text-align: center;
                gap: 15px;
            }

            .subscription-text h3 {
                font-size: 15px;
            }

            .subscription-text p {
                font-size: 13px;
            }

            .subscription-btn {
                width: 100%;
                text-align: center;
            }

            .button-group {
                flex-direction: column;
            }

            .button-group .btn {
                width: 100%;
                justify-content: center;
            }

            .edit-button {
                padding: 3px 8px;
                font-size: 11px;
            }

            .form-group input,
            .form-group select {
                font-size: 14px;
                padding: 12px;
            }

            .success-message {
                padding: 12px;
                font-size: 13px;
            }

            .format-buttons {
                flex-direction: column;
            }

            .action-buttons {
                flex-direction: column;
            }

            .action-buttons .btn {
                min-width: auto;
            }

            .modal-content {
                width: 95%;
                padding: 20px;
            }

            @media (max-width: 380px) {
                .settings-header h2 {
                    font-size: 15px;
                }

                .menu-toggle {
                    width: 40px;
                    height: 40px;
                    font-size: 20px;
                }
            }
        }

        @media (min-width: 769px) {
            .menu-toggle {
                display: none !important;
            }
            .swipe-area {
                display: none;
            }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes pulse {
            0% {
                opacity: 1;
            }
            50% {
                opacity: 0.7;
            }
            100% {
                opacity: 1;
            }
        }