/* Ports overview styles */
    .ports-overview { margin: 18px 0 24px; }
    .ports-intro p { margin: 0 0 12px; color: #333; }
    .ports-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
    .ports-item { background: #f7f9fb; border: 1px solid #e6eef6; border-radius: 8px; padding: 10px; text-align: center; }
    .ports-link { text-decoration: none; color: inherit; display: inline-block; width:100%; }
    .ports-num { display: inline-block; font-weight:700; font-size:18px; background:#0e87e6; color:#fff; padding:6px 8px; border-radius:6px; margin-bottom:6px; }
    .ports-meta { display:block; margin-top:6px; font-size:13px; color:#27506d; }
    .ports-legend { margin-top:10px; font-size:13px; color:#444; }
    .ports-faq { margin-top:14px; border-top:1px solid #eee; padding-top:12px; }
    .ports-faq dt { font-weight:700; margin-top:10px; }
    .ports-faq dd { margin:6px 0 0 0; color:#444; }
    @media (max-width:480px) { .ports-num { font-size:16px; padding:5px 6px; } }

/* Добавляем стили для модального окна */
        .modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.7);
            backdrop-filter: blur(8px);
            animation: fadeIn 0.3s;
        }

        .modal-content {
            background-color: rgba(30,30,60,0.95);
            backdrop-filter: blur(20px);
            margin: 3% auto;
            padding: 30px;
            border: 1px solid rgba(255,255,255,0.15);
            width: 100%;
            max-width: 600px;
            border-radius: 24px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(100,150,255,0.15);
            animation: fadeIn 0.5s;
            position: relative;
            color: #ffffff;
        }

        .close {
            color: rgba(255,255,255,0.6);
            float: right;
            font-size: 32px;
            font-weight: bold;
            transition: all 0.3s;
            position: absolute;
            top: 18px;
            right: 22px;
            cursor: pointer;
        }

        .close:hover,
        .close:focus {
            color: white;
            text-decoration: none;
            transform: rotate(90deg);
        }

        .modal-content h2 {
            color: #ffffff;
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .modal-content p, .modal-content strong {
            color: rgba(255,255,255,0.9);
            line-height: 1.6;
        }

        .ip-button {
            background-color: #f1f1f1; /* Светло-серый фон */
            color: black;
            padding: 5px 10px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            transition: background-color 0.3s ease; /* Плавное изменение цвета */
            position: relative;
        }

        .ip-button:hover {
            background-color: #dcdcdc; /* Цвет при наведении */
        }

        .ip-button .flag {
            margin-right: 10px;
        }

        /* Lang & nav dropdowns */
        body { padding-top: 0 !important; }
        .lang-dropdown { position: relative; display: inline-flex; align-items: center; }
        .lang-dropdown-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 6px; background: #f1f1f1; color: #333; font-weight: 600; border: 1px solid #d0d0d0; cursor: pointer; font-size: 13px; transition: background 0.2s; }
        .lang-dropdown-btn:hover { background: #e0e0e0; }
        .lang-dropdown-menu { display: none; position: absolute; top: 110%; right: 0; background: #fff; border: 1px solid #d0d0d0; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.15); min-width: 80px; z-index: 2000; overflow: hidden; }
        .lang-dropdown-menu.open { display: block; }
        .lang-dropdown-item { display: flex; align-items: center; gap: 6px; padding: 7px 12px; color: #333; text-decoration: none; font-size: 13px; font-weight: 600; }
        .lang-dropdown-item:hover { background: #f0f0f0; }
        .lang-dropdown-item.active { background: #e8f4fd; color: #0e87e6; }
        .lang-code { font-size: 12px; }
        .top-bar { justify-content: flex-start !important; gap: 6px; }
        .topbar-nav-row { display: contents; }
        .topbar-right-row { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
        .topbar-right-row .lang-dropdown { margin-left: 0; }
        .nav-tb-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 6px; background: #f1f1f1; color: #333; font-weight: 600; border: 1px solid #d0d0d0; cursor: pointer; font-size: 13px; transition: background 0.2s, color 0.2s; text-decoration: none; }
        .nav-tb-btn:hover { background: #e0e0e0; color: #111; }
        .nav-tb-btn:active { background: #d4d4d4; }
        .nav-tb-btn.is-active,
        .nav-tb-btn.is-active:hover,
        .nav-tb-btn.is-active:active { background: #c7ced8; color: #0d2238; border-color: #aeb7c2; box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); }
        .nav-dropdown-wrap { position: relative; display: inline-flex; align-items: center; }
        .nav-more-btn { overflow: visible !important; }
        .nav-more-menu { display: none; position: absolute; top: 110%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid #ccc; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.15); min-width: 180px; z-index: 2000; overflow: hidden; }
        .nav-more-menu.open { display: block; }
        .nav-more-item { display: block; padding: 9px 16px; color: #444; text-decoration: none; font-size: 13px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
        .nav-more-item:last-child { border-bottom: none; }
        .nav-more-item:hover { background: #f5f5f5; color: #0e87e6; }
        .nav-more-item.is-active,
        .nav-more-item.is-active:hover { background: #e2e8f0; color: #0d2238; font-weight: 700; }
        .nav-more-label { display: block; padding: 10px 16px 6px; color: #7a7a7a; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: #f8f8f8; border-top: 1px solid #f0f0f0; }
        .nav-more-label:first-child { border-top: none; }
        .nav-more-ip-btn { width: 100%; background: none; border: none; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 6px; font-size: 13px; color: #444; padding: 9px 16px; border-top: 1px solid #f0f0f0; }
        .nav-more-ip-btn:hover { background: #f5f5f5; color: #0e87e6; }
        html, body { overflow-x: clip; }
        @media (max-width: 768px) { .nav-more-menu { left: 0 !important; right: auto !important; transform: none !important; } }
        @media (max-width: 768px) { body { padding: 0 !important; } .top-bar, .container, .good-proxies-container, .online-proxies-container, .flex-container, .slide-container, .proxy-table-container { margin-left: 0 !important; margin-right: 0 !important; border-radius: 0 !important; max-width: 100% !important; width: 100% !important; } }
        .nav-hamburger-btn { display: none; background: #f1f1f1; border: 1px solid #d0d0d0; border-radius: 6px; padding: 4px 10px; font-size: 20px; cursor: pointer; color: #333; line-height: 1; }
        .nav-hamburger-sep { border: none; border-top: 2px solid #e8e8e8; margin: 4px 0; }
        .nav-hamburger-auth-btn { display: block; width: 100%; background: none; border: none; border-bottom: 1px solid #f0f0f0; padding: 9px 16px; color: #444; font-size: 13px; text-align: left; cursor: pointer; font-family: inherit; }
        .nav-hamburger-auth-btn:hover { background: #f5f5f5; color: #0e87e6; }
        #navHamburgerMenu { left: auto !important; right: 0 !important; transform: none !important; min-width: 220px; }
        .nav-hamburger-group-btn {
            display: flex;
            width: 100%;
            align-items: center;
            justify-content: space-between;
            background: #f8fafc;
            border: none;
            border-bottom: 1px solid #edf1f5;
            padding: 10px 14px;
            color: #1f2937;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            font-family: inherit;
        }
        .nav-hamburger-group-btn:hover { background: #eef4ff; color: #0e87e6; }
        .nav-hamburger-group-btn .caret { transition: transform .2s ease; }
        .nav-hamburger-group-btn.is-open .caret { transform: rotate(180deg); }
        .nav-hamburger-submenu {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transform: translateY(-4px);
            transition: max-height .28s ease, opacity .22s ease, transform .22s ease;
            background: #ffffff;
        }
        .nav-hamburger-submenu.open {
            max-height: 540px;
            opacity: 1;
            transform: translateY(0);
        }
        .nav-hamburger-submenu .nav-more-item,
        .nav-hamburger-submenu .nav-hamburger-auth-btn {
            padding-left: 22px;
        }
        .nav-ham-proxy-sub-btn {
            display: flex;
            width: 100%;
            align-items: center;
            justify-content: space-between;
            background: #f8fafc;
            border: none;
            border-top: 1px solid #edf1f5;
            border-bottom: 1px solid #edf1f5;
            padding: 9px 22px;
            color: #334155;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            cursor: pointer;
            font-family: inherit;
        }
        .nav-ham-proxy-sub-btn:hover { background: #eef4ff; color: #0e87e6; }
        .nav-ham-proxy-sub-btn .caret { transition: transform .2s ease; }
        .nav-ham-proxy-sub-btn.is-open .caret { transform: rotate(180deg); }
        .nav-ham-proxy-submenu {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transform: translateY(-2px);
            transition: max-height .25s ease, opacity .2s ease, transform .2s ease;
            background: #fff;
        }
        .nav-ham-proxy-submenu.open {
            max-height: 380px;
            opacity: 1;
            transform: translateY(0);
        }
        .nav-ham-proxy-submenu .nav-more-item { padding-left: 30px; }
        @media (max-width: 768px) { .topbar-nav-row { display: none !important; } .user-info { display: none !important; } .nav-hamburger-btn { display: inline-flex !important; align-items: center; } }
        .top-bar.is-overflowing .topbar-nav-row { display: none !important; }
        .top-bar.is-overflowing .user-info { display: none !important; }
        .top-bar.is-overflowing .nav-hamburger-btn { display: inline-flex !important; align-items: center; }

        .ip-button .tooltip {
            visibility: hidden;
            width: 200px;
            background-color: #555;
            color: #fff;
            text-align: center;
            border-radius: 5px;
            padding: 5px;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            margin-left: -100px;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .ip-button:hover .tooltip {
            visibility: visible;
            opacity: 1;
        }

        .ip-button .tooltip-bottom {
            visibility: hidden;
            width: 200px;
            background-color: #555;
            color: #fff;
            text-align: center;
            border-radius: 5px;
            padding: 5px;
            position: absolute;
            z-index: 1;
            top: 100%;
            left: 50%;
            margin-left: -100px;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .ip-button:hover .tooltip-bottom {
            visibility: visible;
            opacity: 1;
        }

        /* Анимация появления модального окна */
        @keyframes fadeIn {
            from {opacity: 0;}
            to {opacity: 1;}
        }

        /* Контейнер для кнопок */
        .button-container {
            display: flex;
            justify-content: flex-end; /* Выравнивание кнопок по правой стороне */
            gap: 10px; /* Отступ между кнопками */
            align-items: center; /* Вертикальное выравнивание кнопок по центру */
            width: 100%; /* Чтобы контейнер занимал всю ширину */
        }

        /* Стили для кнопок "Меню", "Войти" и "Выйти" */
        .menu-button, .auth-form button {
            background-color: #007bff; /* Цвет кнопки */
            color: white;
            padding: 5px 15px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease; /* Плавное изменение цвета */
        }

        .login-btn-styled {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
            box-shadow: 0 4px 15px rgba(102,126,234,0.4);
            padding: 8px 20px !important;
            font-weight: 600;
        }

        .login-btn-styled:hover {
            background: linear-gradient(135deg, #7c8ff0 0%, #8b5bb8 100%) !important;
            box-shadow: 0 6px 20px rgba(102,126,234,0.5);
            transform: translateY(-1px);
        }

        .demo-btn-styled {
            background: linear-gradient(135deg, #f5af19 0%, #f12711 100%) !important;
            box-shadow: 0 4px 15px rgba(245,175,25,0.4);
            padding: 8px 20px !important;
            font-weight: 600;
        }

        .demo-btn-styled:hover {
            background: linear-gradient(135deg, #ffc850 0%, #ff5733 100%) !important;
            box-shadow: 0 6px 20px rgba(245,175,25,0.5);
            transform: translateY(-1px);
        }

        .menu-btn-styled {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
            box-shadow: 0 4px 15px rgba(102,126,234,0.4);
            padding: 8px 20px !important;
            font-weight: 600;
        }

        .menu-btn-styled:hover {
            background: linear-gradient(135deg, #7c8ff0 0%, #8b5bb8 100%) !important;
            box-shadow: 0 6px 20px rgba(102,126,234,0.5);
            transform: translateY(-1px);
        }

        .logout-btn-styled {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
            box-shadow: 0 4px 15px rgba(102,126,234,0.4);
            padding: 8px 20px !important;
            font-weight: 600;
        }

        .logout-btn-styled:hover {
            background: linear-gradient(135deg, #7c8ff0 0%, #8b5bb8 100%) !important;
            box-shadow: 0 6px 20px rgba(102,126,234,0.5);
            transform: translateY(-1px);
        }

        .demo-button {
            background-color: #ff9800;
            padding: 10px 24px;
            font-size: 16px;
        }

        /* Ховер-эффект для кнопок */
        .menu-button:hover, .auth-form button:hover {
            background-color: #0056b3; /* Цвет при наведении */
        }

        .demo-button:hover {
            background-color: #f57c00 !important;
        }

        /* Убираем отступы формы */
        .auth-form {
            margin: 0;
        }

        /* Стили для кнопки "Продлить" */
        .renew-button {
            background-color: #28a745; /* Зеленый цвет */
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.2s ease; /* Анимация нажатия и наведения */
        }

        .renew-button:hover {
            background-color: #218838; /* Цвет при наведении */
        }

        .renew-button:active {
            transform: scale(0.95); /* Анимация нажатия */
        }

        /* Стили для поля ввода ключа */
        .renew-key-input {
            width: 100%;
            max-width: 100%;
            padding: 14px 16px;
            margin-bottom: 12px;
            border: 2px solid rgba(255,255,255,0.15);
            border-radius: 12px;
            background: rgba(255,255,255,0.08);
            color: #ffffff;
            font-size: 15px;
            transition: all 0.3s;
            outline: none;
        }

        .renew-key-input::placeholder {
            color: rgba(255,255,255,0.4);
        }

        .renew-key-input:focus {
            border-color: rgba(102,126,234,0.6);
            background: rgba(255,255,255,0.12);
            box-shadow: 0 0 0 4px rgba(102,126,234,0.15);
        }

        /* Стили для сообщений об успехе и ошибке */
        .success-message, .error-message {
            padding: 12px 14px;
            border-radius: 12px;
            margin-bottom: 12px;
            font-weight: 600;
            font-size: 14px;
        }

        .success-message {
            background: linear-gradient(135deg, rgba(40,167,69,0.15), rgba(32,201,151,0.18));
            color: #7fff7f;
            border: 1px solid rgba(40,167,69,0.3);
            box-shadow: 0 4px 12px rgba(40,167,69,0.15);
        }

        .error-message {
            background: linear-gradient(135deg, rgba(255,50,50,0.15), rgba(255,20,20,0.18));
            color: #ffb4b4;
            border: 1px solid rgba(255,80,80,0.3);
            box-shadow: 0 4px 12px rgba(255,0,0,0.15);
        }

        #menuModalContent h2, #menuModalContent h3 {
            color: #ffffff;
            margin-bottom: 16px;
        }

        #menuModalContent h3 {
            font-size: 20px;
            margin-top: 24px;
        }

        #menuModalContent li {
            color: rgba(255,255,255,0.85);
            line-height: 1.6;
            margin-bottom: 8px;
        }

        /* Стиль для блока с выбором способов оплаты */
    .payment-options {
        margin-bottom: 20px;
    }

    .payment-option {
        display: flex;
        align-items: stretch;
        margin-bottom: 20px;
        gap: 15px;
    }

    .payment-option button {
        flex: 1;
        background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
        color: white;
        border: none;
        padding: 18px 24px;
        text-align: left;
        text-decoration: none;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        border-radius: 16px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .payment-option button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .payment-option button:hover::before {
        left: 100%;
    }

    .payment-option button:hover {
        background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.45);
        transform: translateY(-3px) scale(1.02);
    }

    .payment-option button:active {
        transform: translateY(-1px) scale(0.98);
    }

    .payment-option .payment-title {
        font-size: 16px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .payment-option .payment-methods {
        font-size: 14px;
        opacity: 0.95;
        font-weight: 500;
        line-height: 1.5;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }

    .payment-option .payment-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 5px 12px;
        background: rgba(255,255,255,0.25);
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        transition: all 0.3s ease;
    }

    .payment-option:hover .payment-badge {
        background: rgba(255,255,255,0.35);
        transform: translateY(-1px);
    }

    .payment-logo {
        display: none;
    }

    /* Мобильная адаптация */
    @media (max-width: 768px) {
        .payment-option {
            flex-direction: column;
            gap: 12px;
        }

        .payment-option button {
            width: 100%;
            text-align: center;
        }
        
        .payment-option .payment-methods {
            justify-content: center;
        }
        
        .payment-option .payment-title {
            justify-content: center;
        }
    }

/* Стили для кнопок */
    /* Основные стили для кнопок */
    .good-proxies-button { 
        display: inline-flex; /* Используем inline-flex для того, чтобы кнопки не растягивались */
        align-items: center; /* Вертикальное выравнивание по центру */
        justify-content: center; /* Горизонтальное выравнивание по центру */
        padding: 6px 12px; /* Уменьшенные отступы */
        margin: 5px;
        background-color: #696969; /* Серый цвет */
        color: #fff;
        text-decoration: none; /* Убираем подчеркивание */
        border-radius: 5px;
        transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease; /* Добавлен эффект увеличения и изменения цвета текста */
        font-size: 14px; /* Уменьшенный размер текста */
        text-align: center;
        cursor: pointer;
        border: 2px solid #808080; /* Добавлен бордер */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Добавлена тень */
        position: relative;
        overflow: hidden;
    }

    .good-proxies-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.1);
        transform: scale(0);
        transition: transform 0.3s ease;
        pointer-events: none;
    }

    .good-proxies-button:hover::before {
        transform: scale(1);
    }

    .good-proxies-button:hover {
        background-color: #0e87e6; /* Темно-серый цвет при наведении */
        transform: scale(1.1); /* Эффект увеличения кнопки в 1.3 раза */
        color: #ffffff; /* Черный цвет текста при наведении */
    }

    .good-proxies-button:active {
        transform: scale(1); /* Возвращение к исходному размеру при нажатии */
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Уменьшенная тень при нажатии */
    }

    /* Медиазапрос для мобильных устройств */
    @media (max-width: 767px) {
        .good-proxies-button {
            font-size: 13px; /* Уменьшенный размер шрифта для маленьких экранов */
            padding: 1px 2px; /* Уменьшенные отступы для компактности */
            margin: 0px; /* Меньше отступов между кнопками */
        }

        /* Контейнер для кнопок с flexbox */
        center {
            display: flex;
            flex-wrap: wrap; /* Разрешаем перенос кнопок на следующую строку */
            justify-content: space-between; /* Распределение кнопок по строкам */
            gap: 10px; /* Добавление промежутков между кнопками */
        }

        /* Кнопки в 3 колонки на экранах до 767px */
        .good-proxies-button {
            width: 30%; /* Кнопки занимают 30% ширины контейнера (3 кнопки в строке) */
            box-sizing: border-box; /* Учитываем отступы при вычислении ширины */
        }
    }

.good-proxies-container {
        width: 100%; /* Ширина контейнера равна ширине экрана */
        max-width: 1000px; /* Максимальная ширина контейнера */
        background-color: #f9f9f9; /* Светлый фон */
        border: 3px solid #ddd; /* Серый бордер */
        border-radius: 8px; /* Закруглённые углы */
        padding: 20px; /* Внутренние отступы */
        margin: 10px auto; /* Центрирование по горизонтали */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Лёгкая тень */
        text-align: left; /* Выровнять текст по левому краю */
    }

    .good-proxies-container h1 {
        font-size: 24px; /* Размер заголовка */
        color: #333; /* Тёмно-серый цвет */
        margin-bottom: 16px; /* Отступ снизу */
        text-align: left; /* Явное выравнивание по левому краю */
    }

    .good-proxies-container p {
        font-size: 16px; /* Размер текста */
        color: #555; /* Средний серый цвет */
        line-height: 1.6; /* Межстрочный интервал */
        margin-bottom: 16px; /* Отступ между абзацами */
        text-align: left; /* Выровнять текст по левому краю */
    }

    .good-proxies-container ul {
        list-style-type: disc; /* Стилизация маркеров списка */
        margin: 16px 0 16px 20px; /* Отступы сверху, снизу и слева */
        padding: 0; /* Убираем отступы */
        text-align: left; /* Выровнять текст по левому краю */
    }

    .good-proxies-container ul li {
        font-size: 16px; /* Размер текста в списке */
        color: #444; /* Тёмно-серый цвет */
        margin-bottom: 8px; /* Отступ между элементами списка */
    }

    .good-proxies-container .good-proxies-cta {
        font-weight: bold; /* Жирный текст */
        color: #007bff; /* Синий цвет ссылки или акцента */
        margin-top: 16px; /* Отступ сверху */
        text-align: left; /* Выровнять текст по левому краю */
    }

    /* Медиа-запросы для адаптации под мобильные устройства */
    @media (max-width: 768px) {
        .good-proxies-container {
            padding: 10px; /* Уменьшаем внутренние отступы для мобильных устройств */
        }

        .good-proxies-container h1 {
            font-size: 20px; /* Уменьшаем размер заголовка для мобильных устройств */
        }

        .good-proxies-container p,
        .good-proxies-container ul li {
            font-size: 14px; /* Уменьшаем размер текста для мобильных устройств */
        }
    }
    .buy-proxy-button {
        display: inline-block;
        padding: 10px 20px;
        font-size: 16px;
        color: #fff;
        background: linear-gradient(90deg, #ff6b6b, #556270);
        background-size: 200% auto;
        border: 2px solid #556270;
        border-radius: 5px;
        text-decoration: none;
        cursor: pointer;
        animation: gradientAnimation 3s infinite;
    }

    @keyframes gradientAnimation {
        0% {
            background-position: 0% center;
        }
        50% {
            background-position: 100% center;
        }
        100% {
            background-position: 0% center;
        }
    }

    .buy-proxy-button:hover {
        transform: scale(1.05);
    }

    .country-proxy-intro {
        width: 100%;
        max-width: 1000px;
        margin: 10px auto 12px;
        padding: 18px 20px;
        background: #f9f9f9;
        border: 3px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        text-align: left;
    }

    .country-proxy-intro h2 {
        margin: 0 0 10px;
        color: #222;
        font-size: 28px;
        line-height: 1.25;
    }

    .country-proxy-intro p {
        margin: 0;
        color: #555;
        font-size: 16px;
        line-height: 1.6;
    }

    .country-proxy-intro .country-intro-link {
        color: #0b63ce;
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 2px;
        transition: color 0.18s ease;
    }

    .country-proxy-intro .country-intro-link:hover {
        color: #084c9e;
    }

    .country-proxy-intro--free {
        margin-bottom: 16px;
    }

    .free-country-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-top: 14px;
        flex-wrap: wrap;
    }

    .free-country-summary__text {
        font-size: 18px;
        font-weight: 700;
        color: #1f2f4c;
    }

    .free-country-summary__button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 140px;
        padding: 10px 18px;
        border-radius: 8px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        text-decoration: none;
        font-weight: 700;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
    }

    .free-country-summary__button:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(102, 126, 234, 0.42);
    }

    .free-country-stats-section {
        width: 100%;
        max-width: 1000px;
        margin: 10px auto 16px;
        background: #f9f9f9;
        padding: 10px;
        border: 3px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .free-country-stats-title {
        text-align: center;
        color: #000;
        font-size: 18px;
        font-weight: bold;
        margin: 5px 0 12px;
        letter-spacing: 0.3px;
    }

    .free-country-stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px 16px;
    }

    .free-country-stats-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 8px;
        transition: background 0.15s;
        text-decoration: none;
    }

    .free-country-stats-item:hover {
        background: #f0f0f0;
    }

    .free-country-stats-name {
        flex: 1;
        font-size: 13px;
        color: #000;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
    }

    @media (max-width: 768px) {
        .country-proxy-intro {
            padding: 14px 16px;
            margin-bottom: 10px;
        }

        .country-proxy-intro h2 {
            font-size: 22px;
        }

        .country-proxy-intro p {
            font-size: 14px;
        }

        .free-country-summary__text {
            font-size: 16px;
        }
    }

    @media (max-width: 700px) {
        .free-country-stats-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 440px) {
        .free-country-stats-grid { grid-template-columns: 1fr; }
    }

    /* Стили для SEO блоков */
    .seo-highlights {
        display: flex;
        gap: 20px;
        max-width: 1000px;
        margin: 36px auto;
        padding: 0 16px;
        justify-content: center;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .seo-card {
        flex: 1 1 320px;
        background: linear-gradient(150deg, rgba(53, 104, 255, 0.12), rgba(0, 200, 170, 0.18));
        border-radius: 18px;
        padding: 28px;
        box-shadow: 0 15px 35px rgba(15, 35, 95, 0.18);
        border: 1px solid rgba(53, 104, 255, 0.18);
        position: relative;
        overflow: hidden;
        transition: transform 0.35s ease, box-shadow 0.35s ease;
        backdrop-filter: blur(4px);
    }

    .seo-card::after {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 180px;
        height: 180px;
        background: radial-gradient(circle, rgba(85, 186, 255, 0.45), transparent 70%);
        z-index: 0;
    }

    .seo-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 28px 45px rgba(15, 35, 95, 0.25);
    }

    .seo-card__icon {
        width: 56px;
        height: 56px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(53, 104, 255, 0.25), rgba(0, 200, 170, 0.4));
        font-size: 26px;
        margin-bottom: 18px;
        position: relative;
        z-index: 1;
    }

    .seo-card h2 {
        font-size: 22px;
        margin-bottom: 16px;
        color: #102347;
        position: relative;
        z-index: 1;
    }

    .seo-card p,
    .seo-card ul {
        color: #1f2f4c;
        font-size: 15px;
        line-height: 1.7;
        position: relative;
        z-index: 1;
    }

    .seo-card ul {
        padding-left: 18px;
        margin: 0;
    }

    .seo-card li {
        margin-bottom: 10px;
    }

    .seo-card li strong {
        color: #0f5ed6;
    }

    @media (max-width: 1024px) {
        .seo-highlights {
            gap: 20px;
            margin: 30px auto;
        }
    }

    @media (max-width: 900px) {
        .seo-highlights {
            flex-direction: column;
            max-width: 540px;
            padding: 0 16px;
        }

        .seo-card {
            flex: 1 1 auto;
        }
    }

.proxy-chart-wrap {
        margin-top: 10px;
        padding: 6px 4px 4px;
        border-top: 1px solid #e0e0e0;
    }
    .proxy-chart-title {
        font-size: 12px;
        color: #888;
        margin: 2px 0 6px !important;
        font-weight: normal !important;
    }
    .proxy-chart-nodata {
        font-size: 12px;
        color: #aaa;
        margin: 8px 0 4px !important;
    }

.slide-container {
            width: 100%;
            max-width: 1000px;
            margin: 0 auto;
            background: #f9f9f9;
            padding: 20px;
            border: 3px solid #ddd; /* Серый бордер */
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px; /* Отступ между слайдером и контейнером с онлайн прокси */
            overflow: hidden;
            position: relative;
        }

        .slider {
            display: flex;
            transition: transform 0.5s ease-in-out;
        }

        .slide {
            flex: 0 0 100%;
            scroll-snap-align: start;
            position: relative;
        }

        .slide img {
            width: 100%;
            height: auto;
            border-radius: 8px;
        }

        .slide-content {
            position: absolute;
            bottom: 20px;
            left: 20px;
            color: white;
            background: rgba(0, 0, 0, 0.5);
            padding: 10px;
            border-radius: 8px;
        }

        .slide-content h3 {
            margin: 0 0 10px 0;
            font-size: 24px;
        }

        .slide-content p {
            margin: 0;
            font-size: 16px;
        }

        /* Медиа-запросы для адаптивного дизайна */
        @media (max-width: 768px) {
            .slide-content h3 {
                font-size: 20px;
            }

            .slide-content p {
                font-size: 14px;
            }

                .lang-switcher {
                    margin-left: 0;
                    margin-top: 10px;
                }
        }

        @media (max-width: 480px) {
            .slide-content h3 {
                font-size: 18px;
            }

            .slide-content p {
                font-size: 12px;
            }
        }

.highlight-count { color: #c43838; font-weight: 800; padding: 0 4px; border-radius: 4px; }
    .free-country-summary__text .highlight-count, .fcp-promo-count .highlight-count, .country-proxy-intro .highlight-count { color: #c43838; }

.country-access-note { display:flex; gap:12px; align-items:flex-start; margin-top:12px; padding:12px 14px; border-radius:10px; background:linear-gradient(180deg,#f4fbff,#ffffff); border:1px solid #d6eaf8; box-shadow:0 6px 18px rgba(14,142,230,0.06); }
            .country-access-note .icon { flex:0 0 40px; height:40px; border-radius:8px; background:linear-gradient(135deg,#e6f6ff,#dff6ff); display:inline-flex; align-items:center; justify-content:center; color:#0570c9; font-weight:800; font-size:18px; }
            .country-access-note .text { color:#083245; font-weight:700; font-size:14px; line-height:1.3; }
            .country-access-note .sub { display:block; font-weight:600; color:#3a5564; font-size:13px; margin-top:6px; }
            @media (max-width:700px){ .country-access-note { flex-direction:column; align-items:stretch; } .country-access-note .icon{ margin:0 auto 6px; } }

#login-key:focus { border-color: rgba(102,126,234,0.6); background: rgba(255,255,255,0.12); box-shadow: 0 0 0 4px rgba(102,126,234,0.15); }
                    #login-key::placeholder { color: rgba(255,255,255,0.4); }
                    .close:hover { color: white !important; transform: rotate(90deg); }

#loginSubmit.loading { opacity: 0.9; pointer-events: none; }
            #loginSubmit.loading:after {
                content: '';
                position: absolute;
                right: -28px;
                top: 50%; transform: translateY(-50%);
                width: 16px; height: 16px; border-radius: 50%;
                border: 2px solid rgba(255,255,255,0.6);
                border-top-color: transparent;
                animation: loginSpinner 0.8s linear infinite;
            }
            @keyframes loginSpinner { to { transform: translateY(-50%) rotate(360deg); } }

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: 'Ubuntu', sans-serif;
            background: url("/img/bg-lightl-881.jpg") repeat;
            color: #333;
            padding: 20px;
        }

        .container {
            width: 100%;
            max-width: 1000px;
            margin: 0 auto;
            border: 3px solid #ddd; /* Серый бордер */
            background: #f9f9f9;
            padding: 20px;
            border-radius: 18px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .top-bar { 
        position: sticky;
        top: 0; /* Это указывает, что элемент должен оставаться вверху */
        z-index: 1000; /* Убедитесь, что верхний бар будет поверх других элементов */
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f9f9f9;
        padding: 10px;
        border: 3px solid #ddd; /* Серый бордер */
        border-radius: 18px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 1000px;
        margin: 0 auto;
        margin-bottom: 10px; /* Отступ между .top-bar и .container */
        flex-wrap: nowrap; /* По умолчанию контент в строку */
    }

    /* Для маленьких экранов */
    @media (max-width: 768px) {
        .top-bar {
            flex-wrap: wrap; /* Включить перенос контента */
        }
    }

        .top-bar img {
            max-height: 50px;
        }

        .user-info {
            font-size: 0.9rem;
            text-align: right;
        }

        .auth-form {
            display: flex;
            align-items: center;
        }

        .auth-form input {
            padding: 5px;
            margin-right: 5px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }

        .auth-form button, .logout-btn {
            padding: 5px 10px;
            border: none;
            background-color: #007bff;
            color: white;
            cursor: pointer;
            border-radius: 5px;
        }

        .online-proxies-container {
            width: 100%;
            max-width: 1000px;
            margin: 0 auto;
            background: #f9f9f9;
            padding: 10px;
            border: 3px solid #ddd; /* Серый бордер */
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            text-align: center;
            margin-bottom: 10px;
        }

        .online-proxies-container p {
            margin: 5px 0;
        }

        .online-proxies-container strong {
            color: #000;
            font-weight: bold;
        }

        .online-proxies-container span {
            color: #007bff;
            font-weight: bold;
        }

        .flex-container {
            display: flex;
            justify-content: space-between;
            margin: 10px auto;
            width: 100%;
            max-width: 1000px;
        }
        .flex-container h3 {
            color: #FAFAFA; /* Цвет текста заголовка */
        }

        .flex-container {
            display: flex;
            justify-content: space-between;
            margin: 10px auto;
            width: 100%;
            max-width: 1000px;
            flex-wrap: wrap; /* Элементы будут переходить на новую строку, если не хватает места */
        }

        .flex-container.purchase-flex-highlight {
            animation: purchaseFlexPulse 1.8s ease;
        }

        @keyframes purchaseFlexPulse {
            0% {
                transform: scale(1);
                box-shadow: 0 0 0 rgba(14, 135, 230, 0);
            }
            25% {
                transform: scale(1.012);
                box-shadow: 0 0 0 8px rgba(14, 135, 230, 0.10);
            }
            55% {
                transform: scale(1.006);
                box-shadow: 0 0 0 16px rgba(14, 135, 230, 0.05);
            }
            100% {
                transform: scale(1);
                box-shadow: 0 0 0 rgba(14, 135, 230, 0);
            }
        }

        /* Стили для каждого элемента */
        .flex-item {
            width: calc(25% - 7.5px); /* 25% ширины контейнера минус отступ */
            height: 200px; /* Высота элемента */
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            padding: 20px;
            text-align: center;
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: transform 0.3s ease-in-out;
            position: relative;
            overflow: hidden;
        }

        /* Медиазапросы для адаптивности */
        @media (max-width: 1024px) {
            .flex-item {
                width: calc(50% - 10px); /* На экранах меньше 1024px элементы будут занимать 50% ширины */
            }
        }

        @media (max-width: 768px) {
            .flex-item {
                width: calc(100% - 20px); /* На экранах меньше 768px элементы будут занимать 100% ширины */
            }
        }

        .flex-item:hover {
            transform: scale(1.05);
        }

        .flex-item h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            z-index: 1;
        }

        .flex-item p {
            margin: 5px 0;
            z-index: 1;
        }

        .flex-item .price {
            font-size: 1.2rem;
            font-weight: bold;
            z-index: 1;
        }

        .flex-item .price-per-day {
            font-size: 0.9rem;
            margin-bottom: 10px;
            z-index: 1;
        }

        .flex-item button {
            padding: 10px 20px;
            border: none;
            background-color: #f9f9f9;
            color: #333;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
            z-index: 1;
        }

        .flex-item button:hover {
            background-color: #333;
            color: #fff;
        }

        .flex-item.red {
            background: linear-gradient(135deg, #F25320, #F8A990);
        }

        .flex-item.green {
            background: linear-gradient(135deg, #00b09b, #CAE49E);
        }

        .flex-item.orange {
            background: linear-gradient(135deg, #f2994a, #F8E4A6);
        }

        .flex-item.blue {
            background: linear-gradient(135deg, #1c92d2, #f2fcfe);
        }

        .flex-item .letter {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 20rem;
            opacity: 0.4;
            z-index: 0;
            transition: opacity 0.2s ease, filter 0.2s ease, text-shadow 0.2s ease;
        }

        .flex-item .letter.letter-flash {
            animation: goodLetterFlash 0.45s ease;
        }

        @keyframes goodLetterFlash {
            0% {
                opacity: 0.4;
                filter: brightness(1);
                text-shadow: 0 0 0 rgba(255,255,255,0);
            }
            35% {
                opacity: 0.92;
                filter: brightness(1.35);
                text-shadow: 0 0 18px rgba(255,255,255,0.75), 0 0 34px rgba(255,255,255,0.4);
            }
            100% {
                opacity: 0.4;
                filter: brightness(1);
                text-shadow: 0 0 0 rgba(255,255,255,0);
            }
        }

        .flex-item.red .letter {
            color: #F25320;
        }

        .flex-item.green .letter {
            color: #00b09b;
        }

        .flex-item.orange .letter {
            color: #f2994a;
        }

        .flex-item.blue .letter {
            color: #1c92d2;
        }

        .filter-section {
            display: flex;
            justify-content: space-between;
        }

        .filters {
            width: 30%;
        }

        .filters h4 {
            margin-bottom: 10px;
            font-size: 1rem;
            color: #555;
            font-weight: bold; /* Делаем заголовки жирными */
        }

        .filter-group {
            margin-bottom: 15px;
        }

        .filter-group label {
            display: block;
            margin-bottom: 5px;
            cursor: pointer;
        }

        .filter-group input[type="checkbox"] {
            margin-right: 5px;
        }

        .filter-group input[type="text"], 
        .filter-group input[type="number"], 
        .filter-group select {
            width: 100%;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 5px;
            margin-top: 5px;
        }

        .slider-control {
            margin-top: 10px;
        }

        .slider-control input[type="range"] {
            width: 100%;
            accent-color: #007bff;
        }

        .slider-value {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
            color: #333;
            margin-top: 6px;
        }

        .slider-value span {
            font-weight: 600;
        }

        .api-link {
        margin-top: 20px;
    }

    .api-link input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 0.9rem;
        margin-bottom: 10px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Легкая тень для объема */
        transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Анимация при фокусе */
    }

    .api-link input:focus {
        border-color: #007bff; /* Подсветка границы при фокусе */
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2); /* Увеличение тени при фокусе */
        outline: none; /* Убираем стандартный фокус */
    }

    .api-link button {
        padding: 10px;
        border: none;
        background-color: #007bff;
        color: white;
        cursor: pointer;
        border-radius: 5px;
        font-size: 1rem;
        font-weight: bold;
        transition: all 0.3s ease; /* Анимация для наведения и нажатия */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Легкая тень */
    }

    .api-link button:hover {
        background-color: #0056b3; /* Темнее при наведении */
        transform: translateY(-2px); /* Поднимается при наведении */
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Более заметная тень */
    }

    .api-link button:active {
        transform: translateY(1px); /* Легкий сдвиг вниз при нажатии */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* Уменьшение тени */
    }

    .api-link button:disabled {
        background-color: #ccc; /* Серый цвет для отключенных кнопок */
        cursor: not-allowed;
        box-shadow: none;
    }


        .buttons {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
        }

        .buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 15px; /* Расстояние между кнопками */
        justify-content: center; /* Центровка кнопок */
        margin-top: 20px; /* Отступ сверху для блока кнопок */
    }

    .buttons .open-btn,
    .buttons .download-btn,
    .output-col-btns .open-btn,
    .output-col-btns .download-btn {
        background-color: #28a745; /* Зеленый цвет для кнопок открытия */
        color: white;
        padding: 12px 20px; /* Отступы внутри кнопки */
        border: none;
        border-radius: 8px; /* Закругленные углы */
        cursor: pointer;
        font-size: 16px; /* Увеличенный размер текста */
        font-weight: bold;
        transition: all 0.3s ease; /* Анимация для наведения и нажатия */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тень для объема */
        width: calc(50% - 15px); /* Две кнопки в строке с отступом */
        text-align: center;
    }

    .buttons .download-btn,
    .output-col-btns .download-btn {
        background-color: #F25320; /* Оранжевый цвет для кнопок скачивания */
    }

    .buttons .open-btn:hover,
    .buttons .download-btn:hover,
    .output-col-btns .open-btn:hover,
    .output-col-btns .download-btn:hover {
        background-color: #1e7e34; /* Темнее при наведении (открыть) */
        transform: translateY(-3px); /* Поднимается при наведении */
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Более заметная тень */
    }

    .buttons .download-btn:hover,
    .output-col-btns .download-btn:hover {
        background-color: #d9451c; /* Темнее при наведении (скачать) */
    }

    .buttons .open-btn:active,
    .buttons .download-btn:active,
    .output-col-btns .open-btn:active,
    .output-col-btns .download-btn:active {
        transform: translateY(2px); /* Уменьшение высоты при нажатии */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* Уменьшение тени */
    }

    .buttons .open-btn:disabled,
    .buttons .download-btn:disabled,
    .output-col-btns .open-btn:disabled,
    .output-col-btns .download-btn:disabled {
        background-color: #ccc; /* Серый цвет для отключенных кнопок */
        cursor: not-allowed;
        box-shadow: none;
    }



    .output-col-btns .open-btn,
    .output-col-btns .download-btn {
        width: auto; /* Override the 50% width from the .buttons rule */
    }

        footer {
            margin-top: 20px;
            text-align: center;
            font-size: 0.8rem;
            color: #777;
        }

        footer .payment-methods {
            margin-top: 10px;
        }

        footer .payment-methods img {
            height: 30px;
            margin: 0 5px;
        }

        .disabled {
            pointer-events: none;
            opacity: 0.5;
        }
        input:disabled, 
        textarea:disabled, 
        select:disabled {
            cursor: not-allowed; /* Запрещающий курсор */
            background-color: #f0f0f0;
        }
        .copy-modal {
            position: absolute;
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.8rem;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s ease-in-out;
        }
        /* Стили для блоков информации */
    .info-block {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding: 14px 16px;
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 12px;
        background: rgba(255,255,255,0.08);
        backdrop-filter: blur(10px);
        transition: all 0.3s;
    }

    .info-block:hover {
        background: rgba(255,255,255,0.12);
        border-color: rgba(255,255,255,0.2);
    }

    .info-label {
        font-weight: 600;
        color: rgba(255,255,255,0.7);
        font-size: 14px;
    }

    .info-value {
        color: #ffffff;
        font-weight: 600;
        font-size: 15px;
    }

    /* Стили для кнопки "Продлить" */
    .renew-button {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        color: white;
        padding: 12px 24px;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        font-weight: 600;
        font-size: 15px;
        box-shadow: 0 6px 20px rgba(40,167,69,0.35);
        transition: all 0.3s ease;
    }

    .renew-button:hover {
        background: linear-gradient(135deg, #218838 0%, #1abc9c 100%);
        box-shadow: 0 8px 25px rgba(40,167,69,0.45);
        transform: translateY(-1px);
    }

    .renew-button:active {
        transform: translateY(0) scale(0.98);
    }


    .invalidKeyMessage {
        font-weight: bold;
        color: red;
        margin-right: 1px;
        padding: 1px;
        border: 0.5px solid red;
        border-radius: 5px;
        background-color: #ffe6e6;
        display: inline-block;
    }
    .invalid-key-message {
        font-weight: bold;
        color: red;
        margin-right: 1px;
        padding: 1px;
        border: 0.5px solid red;
        border-radius: 5px;
        background-color: #ffe6e6;
        display: inline-block;
    }
    .invalid-key-message-cloud { 
    position: fixed;
    top: 30%; /* Позиция выше, чем по центру */
    left: 50%;
    width: auto;
    transform: translateX(-50%) scale(0.7); /* Начальный масштаб меньше */
    background-color: rgba(255, 0, 0, 0.8); /* Красный фон с полупрозрачностью */
    color: #FFFFFF; /* Белый цвет текста */
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.6); /* Голубая тень вокруг */
    text-shadow: 0 2px 5px rgba(0, 191, 255, 0.8); /* Голубая тень для текста */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease;
    max-width: 100%; /* Ограничиваем ширину на больших экранах */
    text-align: left; /* Выравнивание текста по левому краю */
    }

    /* Анимация для появления */
    .invalid-key-message-cloud.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(1); /* Полный размер */
    }



    /* Стили для сообщения "Ключ действителен" */
    .valid-key-message {
        font-weight: bold;
        color: green;
        margin-right: 1px;
        padding: 1px;
        border: 0.5px solid green;
        border-radius: 5px;
        background-color: #e6ffe6;
        display: inline-block;
    }
    /* Country mode toggle styles */
    .country-mode-container { margin-bottom: 6px; }
    .country-mode-toggle { display: inline-flex; border: 1px solid #c3d4e8; border-radius: 6px; overflow: hidden; }
    .country-mode-btn { background: #ffffff; border: none; padding: 6px 10px; cursor: pointer; font-size: 13px; color: #1a1a2e; }
    .country-mode-btn:not(.active):not(:disabled):hover { background: #f1f7ff; }
    .country-mode-btn.active:not(:disabled):hover { background: linear-gradient(135deg,#1565c0,#1976d2); color: #fff; }
    .country-mode-btn.active { background: linear-gradient(135deg,#1565c0,#1976d2); color: #fff; }
    .country-mode-btn:focus { outline: 2px solid rgba(21,101,192,0.25); }
    .country-mode-btn:disabled { opacity: 0.5; cursor: default; }
            body {
                font-family: 'Ubuntu', sans-serif;
                margin: 0;
                font-size: 16px;
                color: #333;
                background-color: #f4f4f4;
                padding: 20px;
                /*line-height: 1.6;*/
            }

.output-cols { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; align-items: flex-start; }
    .output-col { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 220px; text-align: left; }
    .output-col-btns { display: flex; gap: 8px; flex-wrap: wrap; }
    .settings-toggle-btn {
        border: none;
        padding: 6px 16px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 600;
        transition: background 0.2s, opacity 0.2s;
        color: #fff;
        align-self: flex-start;
    }
    .settings-toggle-btn:disabled { opacity: 0.5; cursor: default; }
    .txt-toggle-btn { background: linear-gradient(135deg, #2e7d32, #388e3c); }
    .txt-toggle-btn:not(:disabled):hover { background: linear-gradient(135deg, #1b5e20, #2e7d32); }
    .json-toggle-btn { background: linear-gradient(135deg, #1565c0, #1976d2); }
    .json-toggle-btn:not(:disabled):hover { background: linear-gradient(135deg, #0d47a1, #1565c0); }
    #txt-settings-panel, #json-settings-panel {
        background: #f0f4f9;
        border: 1px solid #c3d4e8;
        border-radius: 8px;
        padding: 12px 14px;
        animation: jsonPanelIn 0.2s ease;
    }
    @keyframes jsonPanelIn { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: translateY(0); } }
    .json-settings-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
    .json-settings-group { display: flex; flex-direction: column; gap: 4px; }
    .json-settings-label { font-weight: 700; font-size: 12px; color: #1565c0; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
    .json-fields-list { display: flex; flex-wrap: wrap; gap: 4px 10px; }
    .json-field-label { font-size: 12px; display: flex; align-items: center; gap: 3px; white-space: nowrap; cursor: pointer; }
    .json-settings-options { justify-content: flex-start; }
    .json-opt-label { font-size: 12px; display: flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }
    .json-opt-label select { font-size: 12px; padding: 2px 4px; border-radius: 4px; border: 1px solid #c3d4e8; }

/* ── Free-country proxy card ─────────────────────────── */
            .fcp-card {
                width: 100%;
                max-width: 1000px;
                background: #f0f2f5;
                border-radius: 16px;
                overflow: hidden;
                border: 3px solid #ddd;
                box-shadow: 0 4px 18px rgba(0,0,0,0.10);
                margin: 10px auto 16px;
                font-family: 'Ubuntu', sans-serif;
            }
            .fcp-proxy-top {
                padding: 22px 26px 18px;
                background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
            }
            .fcp-title {
                font-size: 19px;
                font-weight: 700;
                color: #ffffff;
                margin-bottom: 14px;
            }
            .fcp-copy-block {
                display: flex;
                align-items: center;
                gap: 10px;
                background: rgba(255,255,255,0.15);
                border-radius: 12px;
                padding: 10px 14px;
                border: 1px solid rgba(255,255,255,0.3);
            }
            .fcp-copy-ip {
                flex: 1;
                font-size: 19px;
                font-weight: 700;
                color: #ffffff;
                letter-spacing: 0.5px;
                word-break: break-all;
            }
            .fcp-copy-btn {
                flex-shrink: 0;
                background: linear-gradient(135deg, #43A047 0%, #2E7D32 100%);
                color: #ffffff;
                border: none;
                border-radius: 10px;
                padding: 8px 18px;
                font-size: 15px;
                font-weight: 600;
                font-family: 'Ubuntu', sans-serif;
                cursor: pointer;
                transition: opacity 0.2s;
                white-space: nowrap;
                box-shadow: 0 4px 14px rgba(67,160,71,0.4);
            }
            .fcp-copy-btn:hover { opacity: 0.88; }
            .fcp-copy-btn.copied {
                background: linear-gradient(135deg, #FB8C00 0%, #E65100 100%);
                box-shadow: 0 4px 14px rgba(251,140,0,0.4);
            }
            .fcp-body {
                padding: 20px 20px 14px;
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 16px;
                background: linear-gradient(180deg, #f5f7fb 0%, #edf2f7 100%);
            }
            @media (max-width: 600px) { .fcp-body { grid-template-columns: 1fr; } }
            .fcp-card .pim-section,
            .fcp-card .pim-section-full {
                margin: 0;
                padding: 16px 18px;
                background: #ffffff;
                border: 1px solid #e1e8f0;
                border-radius: 14px;
                box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
            }
            .fcp-card .pim-section-full {
                grid-column: 1 / -1;
            }
            .fcp-card .pim-section-title {
                display: inline-flex;
                align-items: center;
                min-height: 28px;
                margin: 0 0 12px;
                padding: 0 12px;
                border: none;
                border-radius: 999px;
                font-size: 11px;
                font-weight: 700;
                line-height: 1;
                text-transform: uppercase;
                letter-spacing: 1px;
                background: #e8f1fd;
                color: #1565C0;
            }
            .fcp-card .pim-section:nth-of-type(2) .pim-section-title { background: #e8f5e9; color: #2E7D32; }
            .fcp-card .pim-section:nth-of-type(3) .pim-section-title { background: #fff3e0; color: #ef6c00; }
            .fcp-card .pim-section:nth-of-type(4) .pim-section-title { background: #f3e5f5; color: #7b1fa2; }
            .fcp-card .pim-row {
                display: flex;
                justify-content: space-between;
                align-items: flex-start;
                gap: 18px;
                padding: 10px 0;
                border-bottom: 1px solid #edf2f7;
            }
            .fcp-card .pim-row:last-child {
                border-bottom: none;
                padding-bottom: 0;
            }
            .fcp-card .pim-label {
                flex: 0 0 44%;
                font-size: 14px;
                color: #64748b;
                font-weight: 600;
            }
            .fcp-card .pim-value {
                flex: 1;
                font-size: 15px;
                color: #0f172a;
                font-weight: 700;
                text-align: right;
                word-break: break-word;
            }
            .fcp-card .pim-desc {
                margin: -2px 0 10px;
                font-size: 13px;
                color: #7c8aa0;
                line-height: 1.55;
            }
            .fcp-card .pim-section-full .pim-row {
                padding: 12px 14px;
                background: #f8fbff;
                border: 1px solid #d6e6f5;
                border-radius: 12px;
            }
            .fcp-card .pim-section-full .pim-label {
                color: #1565C0;
            }
            .fcp-card .pim-section-full .pim-value {
                color: #0b4f8a;
            }
            .fcp-warning {
                margin: 0 20px 14px;
                padding: 14px 18px;
                background: #fff8e1;
                border-left: 4px solid #F9A825;
                border-radius: 8px;
                font-size: 14px;
                color: #5d4037;
                line-height: 1.55;
                display: flex;
                gap: 10px;
                align-items: flex-start;
            }
            .fcp-warning-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
            .fcp-your-ip-section {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 14px 26px;
                background: #ffffff;
                border-top: 1px solid #e0e4ea;
                flex-wrap: wrap;
            }
            .fcp-your-ip-label {
                font-size: 15px;
                font-weight: 700;
                color: #1a1a2e;
                white-space: nowrap;
            }
            #fcpYourIpFlag {
                flex: 0 0 auto;
                margin-right: 2px;
                vertical-align: middle;
            }
            #fcpYourIpFlag:not([class]) {
                display: none;
            }
            .fcp-your-ip {
                flex: 1;
                font-size: 15px;
                color: #1E88E5;
                font-weight: 600;
                word-break: break-all;
                min-width: 120px;
            }
            .fcp-promo-section {
                padding: 18px 26px 22px;
                background: #f8faff;
                border-top: 1px solid #e0e4ea;
            }
            .fcp-promo-count {
                font-size: 16px;
                font-weight: 700;
                color: #1a1a2e;
                margin: 0 0 8px;
            }
            .fcp-promo-count .fcp-promo-link {
                color: #0b63ce;
                text-decoration: underline;
                text-underline-offset: 2px;
                font-weight: 800;
                transition: color 0.18s ease;
            }
            .fcp-promo-count .fcp-promo-link:hover {
                color: #084c9e;
            }
            .fcp-promo-body {
                font-size: 14px;
                color: #555;
                line-height: 1.6;
                margin: 0 0 16px;
            }
            .fcp-buy-btn {
                display: inline-block;
                background: linear-gradient(135deg, #43A047 0%, #2E7D32 100%);
                color: #ffffff;
                border: none;
                border-radius: 10px;
                padding: 12px 28px;
                font-size: 16px;
                font-weight: 700;
                font-family: 'Ubuntu', sans-serif;
                text-decoration: none;
                box-shadow: 0 4px 14px rgba(67,160,71,0.35);
                transition: opacity 0.2s, transform 0.15s;
            }
            .fcp-buy-btn:hover { opacity: 0.9; transform: translateY(-1px); }
            @media (max-width: 768px) {
                .fcp-card {
                    border-radius: 8px;
                    margin: 10px auto 12px;
                }
                .fcp-proxy-top,
                .fcp-your-ip-section,
                .fcp-promo-section {
                    padding-left: 16px;
                    padding-right: 16px;
                }
                .fcp-body {
                    padding: 16px;
                }
                .fcp-card .pim-section,
                .fcp-card .pim-section-full {
                    padding: 14px;
                }
                .fcp-card .pim-row {
                    flex-direction: column;
                    gap: 6px;
                }
                .fcp-card .pim-label,
                .fcp-card .pim-value {
                    flex: none;
                    text-align: left;
                }
            }

            /* Общие стили для контейнера */
            .proxy-table-container {
                font-family: 'Arial', sans-serif;
                margin: 8px 0 0;
                padding: 0;
                max-width: 100%;
                background: transparent;
                border-radius: 0;
                box-shadow: none;
                overflow: visible; /* Чтобы тултипы не обрезались */
                animation: slideIn 1s ease-out forwards; /* Анимация появления контейнера */
            }

            /* Анимация появления контейнера */
            @keyframes slideIn {
                from {
                    transform: translateX(-100%);
                    opacity: 0;
                }
                to {
                    transform: translateX(0);
                    opacity: 1;
                }
            }

            .proxy-table td:first-child,
            .proxy-table td:nth-child(2) {
                text-align: center;
            }

            /* Делаем текст названия страны жирным */
            /* Слегка выделяем название страны */
            .proxy-table td:nth-child(2) {
                font-weight: normal; /* Общий стиль */
            }

            .proxy-table td:nth-child(2) span.country-name {
                font-weight: 1500; /* Полужирный шрифт */
                color: #111; /* Темный цвет текста */
            }

            /* Стили для города */
            .proxy-table td .city-name {
                font-weight: normal; /* Нормальный вес шрифта */
                color: #666; /* Слегка темный цвет */
                /* font-style: italic; /* Курсив, чтобы выделить */
            }

            /* Стили для контейнера с таблицей и горизонтальной прокруткой */
            .table-wrapper {
                overflow-x: auto;
                overflow-y: visible;
                -webkit-overflow-scrolling: touch;
                margin-bottom: 5px;
                min-height: 610px;
                background: transparent;
            }

            .proxy-table {
                width: 100%;
                min-width: 820px;
                border-collapse: collapse;
                text-align: left;
                box-shadow: none;
                animation: fadeIn 2s ease;
                table-layout: fixed;
            }

            .proxy-table th:nth-child(1) { width: 160px; }
            .proxy-table th:nth-child(2) { width: 150px; }
            .proxy-table th:nth-child(3) { width: 110px; }
            .proxy-table th:nth-child(4) { width: 100px; }
            .proxy-table th:nth-child(5) { width: 70px; }
            .proxy-table th:nth-child(6) { width: 90px; }
            .proxy-table th:nth-child(7) { width: 140px; }

            .proxy-table td.type-cell .cell-content,
            .proxy-table td.anon-cell .cell-content {
                font-size: 12px;
                line-height: 1.25;
                word-break: break-word;
            }

            .proxy-type-compact {
                display: inline-block;
                font-weight: 700;
                letter-spacing: 0.02em;
            }

            /* Colored badges for proxy types */
            .proxy-type-badge {
                display: inline-block;
                font-weight: 700;
                color: #fff;
                padding: 2px 6px;
                border-radius: 4px;
                font-size: 12px;
                margin-right: 6px;
                text-transform: uppercase;
                vertical-align: middle;
            }

            .badge-http { background: #1976d2; color: #ffffff; } /* HTTP - accessible blue */
            .badge-https { background: #00695c; color: #ffffff; } /* HTTPS - secure teal */
            .badge-socks4 { background: #ffb300; color: #111; } /* SOCKS4 - amber (dark text) */
            .badge-socks5 { background: #6a1b9a; color: #ffffff; } /* SOCKS5 - deep purple */

            /* Anonymity badges (accessible, clear semantics) */
            .anon-transparent {
                display: inline-block;
                background: #d62828; /* dark red: no anonymity */
                color: #ffffff;
                font-weight: 700;
                padding: 4px 9px;
                border-radius: 8px;
                font-size: 12px;
                text-transform: none;
                box-shadow: rgba(0,0,0,0.06) 0 1px 0;
                white-space: nowrap;
            }

            .anon-anonymous {
                display: inline-block;
                background: #1f78b4; /* medium blue: partial anonymity */
                color: #ffffff;
                font-weight: 700;
                padding: 4px 9px;
                border-radius: 8px;
                font-size: 12px;
                text-transform: none;
                box-shadow: rgba(0,0,0,0.06) 0 1px 0;
                white-space: nowrap;
            }

            .anon-elite {
                display: inline-block;
                background: #0b8457; /* deep green: high anonymity */
                color: #ffffff;
                font-weight: 700;
                padding: 4px 9px;
                border-radius: 8px;
                font-size: 12px;
                text-transform: none;
                box-shadow: rgba(0,0,0,0.06) 0 1px 0;
                white-space: nowrap;
            }

            .type-dot {
                display: inline-block;
                width: 10px;
                height: 10px;
                border-radius: 2px;
                margin-right: 8px;
                vertical-align: middle;
            }

            .proxy-anon-compact--varies {
                font-weight: 700;
                color: #0b63ce;
                border-bottom: 1px dashed rgba(11, 99, 206, 0.45);
            }

            .proxy-table tbody {
                transition: opacity 0.22s ease;
            }

            .proxy-table tbody.is-updating {
                opacity: 0.45;
            }


            /* Анимация появления таблицы */
            @keyframes fadeIn {
                from {
                    opacity: 0;
                }
                to {
                    opacity: 1;
                }
            }

            .proxy-table th {
                background-color: #4CAF50;
                color: white;
                padding: 10px 12px;
                font-weight: bold;
                text-transform: uppercase;
                letter-spacing: 1px;
                text-align: center;
            }

            /* Стиль для строк таблицы */
            .proxy-table td {
                padding: 8px 12px;
                text-align: center;
                border-bottom: 1px solid #ddd;
                height: 55px;
                vertical-align: middle;
                position: relative;
                overflow: visible;
            }

            .proxy-table td .cell-content {
                display: block;
                transition: filter 0.3s ease;
            }

            .proxy-table tbody tr.demo-restricted {
                position: relative;
                overflow: hidden;
            }

            .proxy-table tbody tr.demo-restricted .cell-content {
                filter: blur(4px);
                pointer-events: none;
                user-select: none;
            }

            .proxy-table tbody tr.demo-restricted::after {
                content: attr(data-demo-message);
                position: absolute;
                inset: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                background: rgba(15, 23, 42, 0.65);
                color: #ffffff;
                font-weight: 600;
                letter-spacing: 0.5px;
                text-transform: uppercase;
                font-size: 14px;
                border-radius: 8px;
                pointer-events: none;
                z-index: 1;
            }

            .proxy-table tbody tr.demo-restricted:hover {
                background-color: inherit;
                transform: none;
                box-shadow: none;
            }

            .proxy-table tbody tr.premium-access-row td {
                text-align: center;
                background: linear-gradient(135deg, rgba(255, 243, 205, 0.92), rgba(255, 230, 179, 0.92));
                color: #8a5a00;
                font-weight: 700;
                letter-spacing: 0.2px;
                cursor: pointer;
                transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
            }

            .proxy-table tbody tr.premium-access-row .cell-content {
                filter: none;
                user-select: none;
                padding: 8px 0;
                transition: transform 0.18s ease, color 0.18s ease;
            }

            .proxy-table tbody tr.premium-access-row:hover td {
                background: linear-gradient(135deg, rgba(255, 236, 179, 0.98), rgba(255, 213, 79, 0.95));
                box-shadow: inset 0 0 0 1px rgba(255, 179, 0, 0.55), 0 8px 18px rgba(255, 193, 7, 0.18);
                transform: translateY(-1px);
            }

            .proxy-table tbody tr.premium-access-row:hover .cell-content {
                transform: scale(1.01);
                color: #6d4700;
            }

            /* Анимация появления строк */
            @keyframes fadeInRow {
                from { opacity: 0; }
                to   { opacity: 1; }
            }

            /* Row hover cursor */
            .proxy-table tbody tr[data-proxy-ip] { cursor: pointer; }

            /* Hover tooltip */
            #proxyRowTooltip {
                display: none;
                position: fixed;
                z-index: 99998;
                background: linear-gradient(135deg, rgba(30,30,60,0.97), rgba(20,20,45,0.99));
                color: #c8e6ff;
                border-radius: 8px;
                padding: 5px 12px;
                font-size: 12px;
                font-family: 'Ubuntu', sans-serif;
                pointer-events: none;
                white-space: nowrap;
                border: 1px solid rgba(255,255,255,0.15);
                box-shadow: 0 4px 16px rgba(0,0,0,0.45);
            }

            /* Overlay */
            #proxyInfoOverlay {
                display: none;
                position: fixed;
                inset: 0;
                z-index: 99998;
                background: rgba(0,0,0,0.6);
                backdrop-filter: blur(8px);
            }
            #proxyInfoOverlay.active { display: block; }

            /* Info modal */
            #proxyInfoModal {
                display: none;
                position: fixed;
                z-index: 99999;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                background: #f0f2f5;
                color: #1a1a2e;
                border-radius: 20px;
                padding: 0;
                width: 620px;
                max-width: calc(100vw - 24px);
                max-height: calc(100vh - 40px);
                overflow-y: auto;
                box-shadow: 0 20px 60px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.12);
                font-size: 16px;
                font-family: 'Ubuntu', sans-serif;
                line-height: 1.65;
                border: 3px solid #ddd;
            }
            @keyframes pimSlideIn {
                from { opacity: 0; transform: translate(calc(-50% - 80px), -50%); }
                to   { opacity: 1; transform: translate(-50%, -50%); }
            }
            @keyframes pimSlideInMobile {
                from { opacity: 0; transform: translateX(-100%); }
                to   { opacity: 1; transform: translateX(0); }
            }
            #proxyInfoModal.active {
                display: block;
                animation: pimSlideIn 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) both;
            }
            @media (max-width: 600px) {
                #proxyInfoModal.active {
                    animation: pimSlideInMobile 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) both;
                }
            }
            #proxyInfoModal .pim-top {
                padding: 22px 26px 18px;
                background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
                border-radius: 20px 20px 0 0;
            }
            #proxyInfoModal .pim-toprow {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 14px;
            }
            #proxyInfoModal .pim-title {
                font-size: 19px;
                font-weight: 700;
                color: #ffffff;
                letter-spacing: -0.2px;
            }
            #proxyInfoModal .pim-close {
                cursor: pointer;
                font-size: 26px;
                font-weight: 700;
                opacity: 0.75;
                line-height: 1;
                background: none;
                border: none;
                color: #ffffff;
                padding: 0 4px;
                transition: opacity 0.2s, transform 0.3s ease;
                display: inline-block;
            }
            #proxyInfoModal .pim-close:hover { opacity: 1; transform: rotate(90deg); }
            /* Copy block */
            #proxyInfoModal .pim-copy-block {
                display: flex;
                align-items: center;
                gap: 10px;
                background: rgba(255,255,255,0.15);
                border-radius: 12px;
                padding: 10px 14px;
                border: 1px solid rgba(255,255,255,0.3);
            }
            #proxyInfoModal .pim-copy-ip {
                flex: 1;
                font-size: 19px;
                font-weight: 700;
                color: #ffffff;
                letter-spacing: 0.5px;
                word-break: break-all;
            }
            #proxyInfoModal .pim-copy-btn {
                flex-shrink: 0;
                background: linear-gradient(135deg, #43A047 0%, #2E7D32 100%);
                color: #ffffff;
                border: none;
                border-radius: 10px;
                padding: 8px 18px;
                font-size: 16px;
                font-weight: 600;
                font-family: 'Ubuntu', sans-serif;
                cursor: pointer;
                transition: opacity 0.2s;
                white-space: nowrap;
                box-shadow: 0 4px 14px rgba(67,160,71,0.4);
            }
            #proxyInfoModal .pim-copy-btn:hover { opacity: 0.88; }
            #proxyInfoModal .pim-copy-btn.copied {
                background: linear-gradient(135deg, #FB8C00 0%, #E65100 100%);
                box-shadow: 0 4px 14px rgba(251,140,0,0.4);
            }
            #proxyInfoModal .pim-body {
                padding: 18px 26px 24px;
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 0 24px;
                background: #f0f2f5;
            }
            #proxyInfoModal .pim-section {
                margin-bottom: 16px;
            }
            #proxyInfoModal .pim-section-full {
                grid-column: 1 / -1;
                margin-bottom: 16px;
            }
            /* Section title colors per section order */
            #proxyInfoModal .pim-section:nth-of-type(1) .pim-section-title { color: #1E88E5; border-left-color: #1E88E5; }
            #proxyInfoModal .pim-section:nth-of-type(2) .pim-section-title { color: #43A047; border-left-color: #43A047; }
            #proxyInfoModal .pim-section:nth-of-type(3) .pim-section-title { color: #E53935; border-left-color: #E53935; }
            #proxyInfoModal .pim-section:nth-of-type(4) .pim-section-title { color: #F9A825; border-left-color: #F9A825; }
            #proxyInfoModal .pim-section-title {
                font-size: 11px;
                text-transform: uppercase;
                letter-spacing: 1.1px;
                margin-bottom: 6px;
                font-weight: 700;
                border-left: 3px solid currentColor;
                padding-left: 8px;
            }
            #proxyInfoModal .pim-row {
                display: flex;
                justify-content: space-between;
                gap: 10px;
                padding: 5px 0;
                border-bottom: 1px solid #dde1e8;
            }
            #proxyInfoModal .pim-row:last-child { border-bottom: none; }
            #proxyInfoModal .pim-label { font-size: 15px; color: #6b7280; }
            #proxyInfoModal .pim-value { font-weight: 600; color: #1a1a2e; text-align: right; }
            #proxyInfoModal .pim-desc {
                margin: 3px 0 6px;
                font-size: 13px;
                color: #9ca3af;
                line-height: 1.5;
            }
            /* Outbound IP block (pim-section-full) */
            #proxyInfoModal .pim-section-full .pim-row {
                background: #ffffff;
                border-radius: 10px;
                border: 1px solid #d5dde8;
                padding: 8px 12px;
            }
            #proxyInfoModal .pim-section-full .pim-label { color: #00897B; font-weight: 600; }
            #proxyInfoModal .pim-section-full .pim-value { color: #00695C; }
            .cell-info-trigger { cursor: pointer; }

            @media (max-width: 600px) {
                #proxyInfoModal {
                    top: 0;
                    left: 0;
                    transform: none;
                    width: 100%;
                    max-width: 100%;
                    max-height: 100%;
                    height: 100%;
                    border-radius: 0;
                    border: none;
                }
                #proxyInfoModal .pim-top {
                    border-radius: 0;
                }
                #proxyInfoModal .pim-body {
                    grid-template-columns: 1fr;
                }
                #proxyInfoModal .pim-section-full {
                    grid-column: 1;
                }
            }

            .proxy-table tbody tr:nth-child(even) {
                background-color: #f2f2f2;
            }

            /* Эффект при наведении на строку */
            .proxy-table tbody tr:hover {
                background-color: #e6ffe6;
                transition: background-color 0.3s ease;
            }

            .proxy-table td strong {
                color: #333;
            }

            /* Стили для флагов (используем спрайты) */
            .flag {
                width: 16px;
                height: 11px;
                background: url('/img/flags.png') no-repeat;
                display: inline-block;
            }

            .flag-ru { background-position: 0 0; }
            .flag-us { background-position: -16px 0; }
            .flag-uk { background-position: -32px 0; }
            .flag-fr { background-position: -48px 0; }

            /* Стили для подсказки и выделения реального IP */
            /* Стили для .real-ip */
            /* Исходящий IP */
            .real-ip {
                margin-top: 5px;
                margin-left: 0px; /* Сдвиг вправо */
                font-size: 0.9em;
                cursor: help;
                display: inline-block;
                position: relative;
                color: #afb1b3; /* Тёмно-синий — легче читается и меньше бросается в глаза */
                font-weight: bold;
                transition: background-color 0.3s ease; /* Плавное изменение фона */
                display: block; /* Чтобы исходящий IP отображался на новой строке снизу */
                margin-top: 0px; /* Отступ сверху для визуальной отделенности */
            }

            /* Всплывающая подсказка */
            .real-ip::after {
                content: attr(data-title); /* Используем data-title вместо title */
                position: absolute;
                bottom: 120%; /* Размещаем подсказку над элементом */
                left: 50%; /* Центрируем по горизонтали относительно родителя */
                transform: translateX(-50%) translateY(5px); /* Немного ниже в начале, остаётся центрированным */
                background: #333; /* Цвет фона подсказки */
                color: #fff; /* Цвет текста подсказки */
                padding: 6px 8px;
                border-radius: 5px;
                font-size: 0.85em;
                white-space: normal; /* Позволяем переносы внутри подсказки */
                max-width: 70vw; /* Ограничение ширины относительно окна, чтобы не выходило за пределы экрана */
                min-width: 220px; /* Не даём подсказке сжиматься до очень узкого вида */
                box-sizing: border-box;
                word-break: break-word;
                z-index: 9999;
                opacity: 0; /* По умолчанию подсказка невидима */
                pointer-events: none; /* Убираем взаимодействие с подсказкой */
                transition: opacity 0.3s ease, transform 0.3s ease; /* Плавность появления и исчезновения */
            }

            .real-ip:hover::after {
                opacity: 1; /* Делает подсказку видимой */
                transform: translateX(-50%) translateY(0); /* Поднимаем немного вверх, оставаясь центрированным */
            }

            /* При наведении на исходящий IP */
            .real-ip:hover {
                background-color: #cce7ff; /* Голубой фон при наведении */
                /* color: #0056b3; /* Изменение цвета текста на более темный голубой */
            }

            /* Адаптивность */
            @media (max-width: 768px) {
                .proxy-table th,
                .proxy-table td {
                    padding: 8px;
                    font-size: 14px;
                }

                .proxy-table-container {
                    padding: 10px;
                }
            }

            @media (max-width: 480px) {
                .proxy-table th,
                .proxy-table td {
                    font-size: 12px;
                    padding: 6px;
                }
            }

            .copy-proxy {
                background-color: #007BFF;
                color: white;
                padding: 5px 10px;
                border-radius: 5px;
                text-decoration: none;
                font-weight: bold;
                cursor: pointer;
                transition: background-color 0.3s;
            }

            .copy-proxy:hover {
                background-color: #0056b3;
            }

            .copy-proxy .tooltip {
                display: none;
                position: absolute;
                bottom: 125%;
                left: 50%;
                transform: translateX(-50%);
                background-color: #333;
                color: white;
                padding: 5px;
                border-radius: 5px;
                font-size: 12px;
            }

            .copy-proxy:hover .tooltip {
                display: block;
            }

            .copy-ip {
                cursor: pointer;
                position: relative;
                padding: 2px 4px;
                border-radius: 4px;
                transition: background-color 0.3s ease;
                display: block; /* Чтобы копируемый IP отображался на одной строке сверху */
                margin-bottom: 0px; /* Отступ между элементами */
            }

            .copy-ip:hover {
                background-color: #d0f0ff; /* Голубой фон при наведении */
            }

            .copy-ip::before {
                content: attr(data-copy-hint);
                position: absolute;
                bottom: 110%; /* Смещаем подсказку выше ячейки */
                left: 50%;
                transform: translateX(-50%);
                background-color: #333;
                color: #fff;
                padding: 4px 8px;
                border-radius: 4px;
                font-size: 0.8em;
                white-space: nowrap;
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.3s ease, transform 0.3s ease;
            }

            .copy-ip:hover::before {
                opacity: 1;
                transform: translateX(-50%) translateY(-5px); /* Лёгкое смещение для плавности */
            }

            .copy-ip.copied::before {
                content: attr(data-copied-hint);
                background-color: #4caf50; /* Зеленый фон для подтверждения */
            }
            .access-denied-message {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                background-color: #ffcccc;
                color: #cc0000;
                padding: 20px;
                border-radius: 10px;
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
                z-index: 1000;
                text-align: center;
                font-size: 1.2em;
                display: none;
                animation: fadeIn 0.5s ease;
                width: 80%;
                max-width: 100%;
            }

            @keyframes fadeIn {
                from {
                    opacity: 0;
                    transform: translate(-50%, -60%);
                }
                to {
                    opacity: 1;
                    transform: translate(-50%, -50%);
                }
            }

            .access-denied-message .message-content {
                display: flex;
                flex-direction: column;
                align-items: center;
            }

            .access-denied-message p {
                margin: 0 0 20px;
                font-size: 1em;
            }

            .access-denied-message .purchase-link {
                background-color: #cc0000;
                color: #fff;
                padding: 10px 20px;
                border-radius: 5px;
                text-decoration: none;
                transition: background-color 0.3s ease;
                font-weight: bold;
            }

            .access-denied-message .purchase-link:hover {
                background-color: #990000;
            }
            .pagination {
                display: flex;
                justify-content: center;
                align-items: center;
                margin-top: 20px;
            }

            .pagination button {
                padding: 10px 20px;
                margin: 0 10px;
                border: none;
                background-color: #007BFF;
                color: white;
                cursor: pointer;
                border-radius: 5px;
                transition: background-color 0.3s ease;
            }

            .pagination button:hover {
                background-color: #0056b3;
            }

            .pagination button:disabled {
                background-color: #ccc;
                cursor: not-allowed;
            }

            .pagination span {
                font-size: 1.2em;
                font-weight: bold;
            }

            .pagination .page-number {
                padding: 5px 10px;
                margin: 0 5px;
                border: 1px solid #ccc;
                border-radius: 5px;
                cursor: pointer;
                transition: background-color 0.3s ease;
            }

            .pagination .page-number:hover {
                background-color: #f0f0f0;
            }

            .pagination .page-number.active {
                background-color: #007BFF;
                color: white;
                border-color: #007BFF;
            }
            .page-number[disabled] {
        pointer-events: none;
        opacity: 0.5;
        cursor: not-allowed;
    }

/* hide the old pseudo tooltip so it doesn't conflict */
        .real-ip::after { display: none !important; }

        .real-ip-tooltip {
            position: fixed;
            z-index: 2147483647;
            background: #333;
            color: #fff;
            padding: 4px 8px; /* match copy tooltip padding */
            border-radius: 4px;
            font-size: 0.8em; /* same as "Нажмите для копирования" */
            line-height: 1.2;
            white-space: normal;
            max-width: 162.14px; /* user-requested maximum width */
            min-width: 140px; /* allow it to be smaller */
            width: auto;
            box-sizing: border-box;
            word-break: break-word;
            box-shadow: 0 4px 10px rgba(0,0,0,0.18);
            opacity: 0;
            transform: translateY(3px);
            transition: opacity 0.12s ease, transform 0.12s ease;
            pointer-events: none;
            text-align: left;
        }
        .real-ip-tooltip.show {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

/* Стили для контейнера с текстом условий использования */
        #termsContainer {
            max-height: 400px; /* Ограничение высоты */
            overflow-y: auto;  /* Вертикальная прокрутка */
            padding-right: 5px; /* Отступ справа для скроллбара */
        }

        /* Стили для скроллбара */
        #termsContainer::-webkit-scrollbar {
            width: 10px; /* Ширина скроллбара */
            height: 20px;
        }

        #termsContainer::-webkit-scrollbar-thumb {
            background-color: #ccc; /* Цвет ползунка */
            border-radius: 8px; /* Закругление ползунка */
        }

        #termsContainer::-webkit-scrollbar-thumb:hover {
            background-color: #999; /* Цвет ползунка при наведении */
        }

        /* Стили для модального окна */
        .modal {
            display: none; /* По умолчанию скрыто */
            position: fixed; /* Фиксированное положение */
            z-index: 1000; /* Высокий уровень z-index, чтобы окно всегда было сверху */
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7); /* Полупрозрачный фон */
        }

        /* Стили для содержимого модального окна */
        .modal-content3 {
            position: fixed; /* Фиксированное положение */
            top: 5%; /* Отступ сверху */
            left: 50%;
            transform: translateX(-50%); /* Центрирование по горизонтали */
            background-color: #fefefe;
            padding: 20px;
            border: 1px solid #888;
            width: 100%;
            max-width: 600px;
            border-radius: 10px; /* Закругленные края */
            animation: fadeIn 0.5s; /* Анимация появления */
        }

        /* Стили для кнопки закрытия */
        .modal-content3 .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }

        .modal-content3 .close:hover,
        .modal-content3 .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        /* Анимация появления */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        /* Стили для кнопок */
        .modal-content3 button {
            padding: 10px;
            border: none;
            background-color: #007bff;
            color: white;
            cursor: pointer;
            border-radius: 5px;
            margin-top: 10px;
        }

        .modal-content3 button:hover {
            background-color: #0056b3;
        }

/* Стили для контейнера с текстом условий использования */
    #termsContainer {
        max-height: 400px; /* Ограничение высоты */
        overflow-y: auto;  /* Вертикальная прокрутка */
        padding-right: 5px; /* Отступ справа для скроллбара */
    }

    /* Стили для скроллбара */
    #termsContainer::-webkit-scrollbar {
        width: 10px; /* Ширина скроллбара */
        height: 20px;
    }

    #termsContainer::-webkit-scrollbar-thumb {
        background-color: #ccc; /* Цвет ползунка */
        border-radius: 8px; /* Закругление ползунка */
    }

    #termsContainer::-webkit-scrollbar-thumb:hover {
        background-color: #999; /* Цвет ползунка при наведении */
    }

    /* Стили для модального окна */
    .modal {
        display: none; /* По умолчанию скрыто */
        position: fixed; /* Фиксированное положение */
        z-index: 1000; /* Высокий уровень z-index, чтобы окно всегда было сверху */
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7); /* Полупрозрачный фон */
    }

    /* Стили для содержимого модального окна */
    .modal-content2 {
        position: fixed;
        top: 5%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(30, 30, 60, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 15px 10px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        width: 100%;
        max-width: 700px;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 24px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                    0 0 80px rgba(100, 150, 255, 0.15);
        animation: fadeIn 0.5s;
        color: #ffffff;
        z-index: 10000;
    }

    .modal-content2 h2 {
        color: #ffffff;
        text-align: center;
        margin-bottom: 25px;
        font-size: 28px;
        font-weight: 600;
    }

    .modal-content2 #termsContainer {
        background: #ffffff; /* white background inside the terms container */
        color: #333; /* dark text for readability */
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 20px;
        max-height: 400px;
        overflow-y: auto;
        border: 1px solid #ddd;
    }

    /* Стили для кнопки закрытия */
    .modal-content2 .close {
        color: rgba(255, 255, 255, 0.6);
        float: right;
        font-size: 32px;
        font-weight: bold;
        line-height: 20px;
        transition: all 0.3s ease;
    }

    .modal-content2 .close:hover,
    .modal-content2 .close:focus {
        color: #ffffff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        text-decoration: none;
        cursor: pointer;
        transform: rotate(90deg);
    }

    /* Анимация появления */
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    /* Стили для кнопок */
    .modal-content2 button {
        padding: 14px 32px;
        border: none;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        cursor: pointer;
        border-radius: 12px;
        margin-top: 15px;
        margin-right: 10px;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }

    .modal-content2 button:disabled {
        background: rgba(255, 255, 255, 0.1);
        cursor: not-allowed;
        box-shadow: none;
        opacity: 0.5;
    }

    .modal-content2 button:not(:disabled):hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    }

    .modal-content2 label {
        display: flex;
        align-items: center;
        margin-top: 20px;
        padding: 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .modal-content2 label:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .modal-content2 label input[type="checkbox"] {
        margin-right: 12px;
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

    .modal-content2 label strong {
        color: #ffffff;
        font-size: 15px;
    }

.nav-count{color:#007bff;font-weight:700}

/* Restore legacy modal look for purchase flow exactly and isolate from generic modal overrides. */
#payModal.modal,
#paymentModal.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s;
}

#payModal .modal-content2 {
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 60, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 80px rgba(100, 150, 255, 0.15);
    animation: fadeIn 0.5s;
    color: #ffffff;
    z-index: 10000;
}

#payModal .modal-content2 .close {
    color: rgba(255, 255, 255, 0.6);
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 20px;
    transition: all 0.3s ease;
}

#payModal .modal-content2 .close:hover,
#payModal .modal-content2 .close:focus {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    text-decoration: none;
    cursor: pointer;
    transform: rotate(90deg);
}

#paymentModal .modal-content {
    background-color: rgba(30, 30, 60, 0.95);
    backdrop-filter: blur(20px);
    margin: 3% auto;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    max-width: 600px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(100, 150, 255, 0.15);
    animation: fadeIn 0.5s;
    position: relative;
    color: #ffffff;
}

#paymentModal .close {
    color: rgba(255, 255, 255, 0.6);
    float: right;
    font-size: 32px;
    font-weight: bold;
    transition: all 0.3s;
    position: absolute;
    top: 18px;
    right: 22px;
    cursor: pointer;
}

#paymentModal .close:hover,
#paymentModal .close:focus {
    color: white;
    text-decoration: none;
    transform: rotate(90deg);
}

#paymentModal .payment-options {
    margin-bottom: 20px;
}

#paymentModal .payment-option {
    display: flex;
    align-items: stretch;
    margin-bottom: 20px;
    gap: 15px;
}

#paymentModal .payment-option button {
    flex: 1;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    text-align: left;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#paymentModal .payment-option button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#paymentModal .payment-option button:hover::before {
    left: 100%;
}

#paymentModal .payment-option button:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.45);
    transform: translateY(-3px) scale(1.02);
}

#paymentModal .payment-option button:active {
    transform: translateY(-1px) scale(0.98);
}

#paymentModal .payment-option .payment-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

#paymentModal .payment-option .payment-methods {
    font-size: 14px;
    opacity: 0.95;
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

#paymentModal .payment-option .payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

#paymentModal .payment-option:hover .payment-badge {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    #paymentModal .payment-option {
        flex-direction: column;
        gap: 12px;
    }

    #paymentModal .payment-option button {
        width: 100%;
        text-align: center;
    }

    #paymentModal .payment-option .payment-methods,
    #paymentModal .payment-option .payment-title {
        justify-content: center;
    }

    #payModal .modal-content2 {
        top: 3%;
        max-height: 92vh;
        padding: 14px 10px;
    }
}