/* Добавляем стили для модального окна */
    .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: 180px; 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: 500; white-space: nowrap; }
    .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 { 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-container,
.rbl-checker-container {
    width: 100%;
    max-width: 1000px;
    margin: 16px auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(209, 213, 219, 0.92);
    box-shadow: 0 18px 38px rgba(148, 163, 184, 0.18);
}

.page-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1f2937;
}

.page-description {
    font-size: 14px;
    color: #6b7280;
    margin-top: 6px;
    margin-bottom: 18px;
    line-height: 1.45;
}

.top-section {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 18px;
    margin-bottom: 28px;
    padding: 0;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.96);
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.12);
}

.blue-card {
    background-image:
        linear-gradient(135deg, rgba(30,58,138,0.6) 0%, rgba(37,99,235,0.6) 100%),
        radial-gradient(circle at 85% 30%, rgba(59,130,246,0.25) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23ffffff' fill-opacity='0.15'/%3E%3C/svg%3E"),
        url('/img/ip.webp');
    background-size: cover, auto, 40px 40px, cover;
    background-position: center center, 85% 30%, center center, center center;
    background-repeat: no-repeat, no-repeat, repeat, no-repeat;
    border-radius: 20px;
    padding: 28px 28px 24px;
    color: #ffffff;
    position: relative;
    box-shadow: 0 12px 20px -8px rgba(37, 99, 235, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 216px;
    overflow: hidden;
}

.blue-card-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #93c5fd;
    font-weight: 600;
    margin-bottom: 4px;
}

.ip-display {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 39px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.ip-showcase-address {
    font-size: clamp(28px, 4vw, 39px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.copy-btn {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    margin-top: 6px;
    transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.copy-btn:active {
    transform: translateY(0);
}

.chance-pill.ip-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    align-self: flex-start;
    color: #dbeafe;
    flex-wrap: wrap;
}

.ip-showcase-badge-label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ip-showcase-badge-value {
    color: #fbbf24;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.chance-pill.ip-showcase-badge.is-elite .ip-showcase-badge-value {
    color: #86efac;
}

.chance-pill.ip-showcase-badge.is-anonymous .ip-showcase-badge-value {
    color: #fbbf24;
}

.chance-pill.ip-showcase-badge.is-transparent .ip-showcase-badge-value {
    color: #fca5a5;
}

.blue-card-desc.ip-showcase-proxy-note {
    font-size: 11px;
    color: #dbeafe;
    line-height: 1.55;
    opacity: 0.9;
    max-width: 95%;
}

.mini-cards-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 8px 10px 8px 14px;
    align-self: stretch;
    overflow: hidden;
}

.mini-cards-grid::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 50%;
    width: 1px;
    background: #e5e7eb;
    transform: translateX(-0.5px);
}

.mini-cards-grid::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 18px;
    right: 18px;
    height: 1px;
    background: #e5e7eb;
    transform: translateY(-0.5px);
}

.mini-card {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 102px;
    position: relative;
    z-index: 1;
}

.mc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.mc-header-flag .flag,
.ip-flag-value .flag {
    display: inline-block;
    transform: scale(1.15);
    transform-origin: left center;
}

.mc-value {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.details-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 0 -32px;
    padding: 20px 32px 4px 32px;
    border-top: 1px solid #e5e7eb;
}

.details-col-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 0;
    padding-bottom: 11px;
    border-bottom: 1px solid #eef2f6;
    color: #111827;
}

.details-subtitle {
    margin-top: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    min-height: 40px;
    font-size: 13px;
    border-bottom: 1px solid #eef2f6;
    gap: 18px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #6b7280;
    font-weight: 500;
}

.detail-label svg {
    flex-shrink: 0;
    color: #385383;
    transform: scale(1.4); 
}

.detail-mark {
    width: 18px;
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.04em;
}

.detail-value {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    text-align: right;
    word-break: break-word;
}

.ip-copy-toast {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    z-index: 12000;
    font-size: 14px;
    color: #ffffff;
    background: rgba(13,34,56,0.92);
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(13,34,56,0.25);
    transition: transform .18s ease, opacity .18s ease;
    opacity: 0;
    pointer-events: none;
}

.ip-copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.rbl-checker-container {
    padding: 26px 28px 24px;
}

.rbl-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: -26px -28px 18px;
    padding: 18px 28px 14px;
    background: linear-gradient(180deg, rgba(243, 246, 250, 0.92) 0%, rgba(243, 246, 250, 0.92) 100%);
    border-bottom: 1px solid #dbe2ea;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.rbl-status-text {
    color: #111827;
    font-size: 12px;
    font-weight: 500;
    text-align: right;
}

.rbl-status-text.is-danger {
    color: #dc2626;
}

.rbl-status-text.is-safe {
    color: #16a34a;
}

.rbl-status-text.is-pending {
    color: #2563eb;
}

.rbl-proxy-context {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 42%),
        linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(245, 158, 11, 0.24);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.1);
}

.rbl-proxy-context__eyebrow {
    margin-bottom: 10px;
    color: #b45309;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rbl-proxy-context__main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.rbl-proxy-context__flag {
    width: 34px;
    height: 25px;
    flex: 0 0 auto;
    margin-top: 2px;
    border-radius: 8px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 8px 18px rgba(148, 163, 184, 0.22);
}

.rbl-proxy-context__body {
    min-width: 0;
}

.rbl-proxy-context__line {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.rbl-proxy-context__line--muted {
    margin-top: 2px;
    color: #9a3412;
    font-size: 12.5px;
    font-weight: 600;
}

.rbl-proxy-context__note {
    margin-top: 8px;
    color: #7c2d12;
    font-size: 12px;
    line-height: 1.45;
}

.rbl-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 12px;
}

.rbl-action-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.rbl-action-subtitle {
    font-size: 12px;
    color: #6b7280;
}

.rbl-check-box {
    display: flex;
    align-items: center;
    gap: 0;
    background: #ffffff;
    padding: 2px;
    border-radius: 10px;
    border: 1px solid #d7dce4;
    box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
    font-size: 13px;
    font-weight: 500;
}

.rbl-ip-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    color: #4b5563;
    font-size: 12px;
}

.check-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 9px 19px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.check-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.check-btn:disabled {
    opacity: 0.7;
    cursor: progress;
}

.rbl-meter {
    height: 6px;
    background: #e7ecf2;
    border-radius: 999px;
    margin-bottom: 18px;
    width: 100%;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.rbl-meter-fill {
    width: 100%;
    display: block;
    height: 100%;
    border-radius: 999px;
    transform-origin: left center;
    transform: scaleX(0);
    will-change: transform;
    transition: transform 0.28s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.rbl-meter-fill.is-loading {
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.36);
}

.rbl-meter-fill.is-danger {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.88);
}

.rbl-meter-fill.is-safe {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.rbl-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 18px;
}

.rbl-grid::before {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    top: 2px;
    height: 86px;
    background:
        radial-gradient(circle at 16% 45%, rgba(248, 113, 113, 0.22), transparent 30%),
        radial-gradient(circle at 50% 45%, rgba(248, 113, 113, 0.26), transparent 33%),
        radial-gradient(circle at 84% 45%, rgba(248, 113, 113, 0.22), transparent 30%);
    pointer-events: none;
    z-index: 0;
}

.rbl-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdfd 100%);
    border: 1px solid #dde5eb;
    border-radius: 14px;
    padding: 14px 16px 14px 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 74px;
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.14);
    overflow: hidden;
    z-index: 1;
}

.rbl-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 8px rgba(148, 163, 184, 0.28);
}

.rbl-card.safe::before {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.42);
}

.rbl-card.danger {
    background: linear-gradient(180deg, #fff4f4 0%, #ffeaea 100%);
    border: 2px solid #ef4444;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.18), 0 10px 20px rgba(248, 113, 113, 0.12);
}

.rbl-card.danger::before {
    width: 8px;
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.72);
}

.rbl-card.unknown {
    border-color: #cbd5e1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.rbl-card.unknown::before {
    background: #94a3b8;
}

.rbl-icon-wrap {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
}

.rbl-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.rbl-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rbl-domain {
    font-size: 12.5px;
    font-weight: 600;
    color: #111827;
    word-break: break-word;
}

.rbl-state {
    font-size: 11px;
    color: #111827;
    font-weight: 500;
    word-break: break-word;
}

.rbl-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 11px;
    color: #6b7280;
}

.legend {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.green {
    background-color: #16a34a;
}

.dot.red {
    background-color: #dc2626;
}

.rbl-note {
    font-size: 11px;
    color: #6b7280;
}

@media (max-width: 940px) {
    .top-section,
    .details-section,
    .rbl-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .good-proxies-container,
    .rbl-checker-container {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .page-description {
        font-size: 13px;
    }

    .top-section {
        gap: 12px;
    }

    .blue-card {
        min-height: 190px;
        padding: 22px 18px 18px;
    }

    .ip-display {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .mini-cards-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        padding: 6px 10px 10px;
    }

    .mini-cards-grid::before,
    .mini-cards-grid::after {
        display: none;
    }

    .mini-card {
        min-height: auto;
        padding: 16px 14px;
        border-bottom: 1px solid #eef2f6;
    }

    .mini-card:last-child {
        border-bottom: none;
    }

    .details-section {
        margin: 0;
        padding: 18px 0 0;
        gap: 20px;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 0;
    }

    .detail-value,
    .rbl-status-text {
        text-align: left;
    }

    .rbl-summary-bar,
    .rbl-action-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .rbl-summary-bar {
        margin: -20px -16px 16px;
        padding: 16px;
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
    }

    .rbl-proxy-context {
        padding: 13px 14px;
        border-radius: 16px;
    }

    .rbl-proxy-context__main {
        gap: 10px;
    }

    .rbl-proxy-context__flag {
        width: 28px;
        height: 21px;
        border-radius: 6px;
    }

    .rbl-check-box {
        width: 100%;
        justify-content: space-between;
    }

    .rbl-ip-pill {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Стили для SEO блоков */
.seo-highlights {
    display: flex;
    gap: 20px;
    max-width: 1000px;
    margin: 10px auto;
    padding: 0;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.seo-card {
    flex: 1 1 320px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 3px solid #ddd;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
}

.seo-card::after {
    content: none;
}

.seo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.seo-card__icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef3f8;
    font-size: 26px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.seo-card h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #333;
    position: relative;
    z-index: 1;
    text-align: left;
}

.seo-card p,
.seo-card ul {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    text-align: left;
}

.seo-card ul {
    list-style-type: disc;
    padding-left: 0;
    margin: 16px 0 16px 20px;
}

.seo-card li {
    margin-bottom: 8px;
    color: #444;
    font-size: 16px;
}

.seo-card li strong {
    color: #333;
}

@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;
    }

    .seo-card {
        flex: 1 1 auto;
    }
}

.country-stats-section {
    width: 100%;
    max-width: 1000px;
    margin: 10px auto 10px;
    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;
}
.country-stats-title {
    text-align: center;
    color: #000;
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0 12px;
    letter-spacing: 0.3px;
}
.country-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 16px;
}
.country-stats-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.15s;
    text-decoration: none;
}
.country-stats-item:hover {
    background: #f0f0f0;
}
.country-stats-name {
    flex: 1;
    font-size: 13px;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.country-stats-count {
    font-size: 13px;
    font-weight: 700;
    color: #007bff;
    min-width: 36px;
    text-align: right;
    letter-spacing: 0.2px;
}
@media (max-width: 700px) {
    .country-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 440px) {
    .country-stats-grid { grid-template-columns: 1fr; }
}

.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;
}

/* Chart sizing: default + responsive viewport-based heights for phones */
.proxy-chart-wrap { height: 220px; }
.proxy-chart-wrap canvas { width: 100% !important; height: 100% !important; display: block; }
@media (max-width: 700px) { .proxy-chart-wrap { height: clamp(160px, 20vh, 240px); } }
@media (max-width: 480px) { .proxy-chart-wrap { height: clamp(140px, 28vh, 220px); } }
@media (max-width: 340px) { .proxy-chart-wrap { height: clamp(120px, 34vh, 180px); } }

.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;
        }
    }

    @media (max-width: 480px) {
        .slide-content h3 {
            font-size: 18px;
        }

        .slide-content p {
            font-size: 12px;
        }
    }

#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.webp") 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-item {
        width: calc(25% - 7.5px); /* 25% ширины контейнера минус отступ */
        height: 180px; /* Высота элемента */
        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;
    }

    .purchase-flex-highlight {
        animation: purchaseFlexPulse 1.5s ease;
    }

    .flex-item .letter.letter-flash {
        animation: goodLetterFlash 0.45s ease;
    }

    .flex-item.red .letter {
        color: #F25320;
    }

    .flex-item.green .letter {
        color: #00b09b;
    }

    .flex-item.orange .letter {
        color: #f2994a;
    }

    .flex-item.blue .letter {
        color: #1c92d2;
    }

    @keyframes purchaseFlexPulse {
        0% { transform: translateY(0); box-shadow: 0 0 0 rgba(242, 153, 74, 0); }
        35% { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(242, 153, 74, 0.28); }
        70% { transform: translateY(0); box-shadow: 0 12px 28px rgba(28, 146, 210, 0.2); }
        100% { transform: translateY(0); box-shadow: 0 0 0 rgba(242, 153, 74, 0); }
    }

    @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);
        }
    }




    .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 {
    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 {
    background-color: #F25320; /* Оранжевый цвет для кнопок скачивания */
}

.buttons .open-btn:hover,
.buttons .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;
    }

    /* Стили для блоков информации */
.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;
}
        body {
            font-family: 'Ubuntu', sans-serif;
            margin: 0;
            font-size: 16px;
            color: #333;
            background-color: #f4f4f4;
            padding: 20px;
            /*line-height: 1.6;*/
        }

/* Стили для контейнера с текстом условий использования */
    #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: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Стили для кнопки закрытия */
.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}

/* Final IP page overrides. Keep these at the end so legacy global blocks above cannot override the current layout. */
body.home-page {
    color: #111827;
    background: url("/img/bg-lightl-881.webp") repeat;
}

body.home-page .page-fade-shell {
    width: 100%;
}

body.home-page .good-proxies-container,
body.home-page .rbl-checker-container {
    width: 100%;
    max-width: 1000px;
    margin: 16px auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(209, 213, 219, 0.92);
    box-shadow: 0 18px 38px rgba(148, 163, 184, 0.18);
}

body.home-page .page-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1f2937;
}

body.home-page .page-description {
    font-size: 14px;
    color: #6b7280;
    margin-top: 6px;
    margin-bottom: 18px;
    line-height: 1.45;
}

body.home-page .top-section {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 28px;
    padding: 0;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.96);
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.12);
}

body.home-page .blue-card {
    background-image:
        linear-gradient(135deg, rgba(30,58,138,0.6) 0%, rgba(37,99,235,0.6) 100%),
        radial-gradient(circle at 85% 30%, rgba(59,130,246,0.25) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23ffffff' fill-opacity='0.15'/%3E%3C/svg%3E"),
        url('/img/ip.webp');
    background-size: cover, auto, 40px 40px, cover;
    background-position: center center, 85% 30%, center center, center center;
    background-repeat: no-repeat, no-repeat, repeat, no-repeat;
    border-radius: 20px;
    padding: 28px 28px 24px;
    color: #ffffff;
    position: relative;
    box-shadow: 0 12px 20px -8px rgba(37, 99, 235, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 216px;
    overflow: hidden;
}

body.home-page .blue-card-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #93c5fd;
    font-weight: 600;
    margin-bottom: 4px;
}

body.home-page .ip-display {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 39px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

body.home-page .ip-showcase-address {
    font-size: clamp(28px, 4vw, 39px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    word-break: break-word;
}

body.home-page .chance-pill.ip-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    align-self: flex-start;
    color: #dbeafe;
    flex-wrap: wrap;
}

body.home-page .ip-showcase-badge-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 16px;
}

body.home-page .ip-showcase-badge-text {
    display: inline;
}

body.home-page .ip-showcase-badge-value {
    color: #fbbf24;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

body.home-page .ip-badge-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: ipBadgeSpin 0.8s linear infinite;
}

body.home-page .ip-showcase-badge.is-loading .ip-showcase-badge-text {
    display: none;
}

body.home-page .ip-showcase-badge.is-loading .ip-badge-spinner {
    display: inline-block;
}

body.home-page .chance-pill.ip-showcase-badge.is-elite .ip-showcase-badge-value {
    color: #86efac;
}

body.home-page .chance-pill.ip-showcase-badge.is-anonymous .ip-showcase-badge-value {
    color: #fbbf24;
}

body.home-page .chance-pill.ip-showcase-badge.is-transparent .ip-showcase-badge-value {
    color: #fca5a5;
}

body.home-page .blue-card-desc.ip-showcase-proxy-note {
    font-size: 11px;
    color: #dbeafe;
    line-height: 1.55;
    opacity: 0.9;
    max-width: 95%;
}

body.home-page .mini-cards-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr 1fr;
    padding: 8px 10px 8px 14px;
    align-self: stretch;
    overflow: hidden;
}

body.home-page .mini-cards-grid::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 50%;
    width: 1px;
    background: #e5e7eb;
    transform: translateX(-0.5px);
}

body.home-page .mini-cards-grid::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 18px;
    right: 18px;
    height: 1px;
    background: #e5e7eb;
    transform: translateY(-0.5px);
}

body.home-page .mini-card {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 102px;
    position: relative;
    z-index: 1;
}

body.home-page .mc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

body.home-page .mc-value {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    word-break: break-word;
}

body.home-page .details-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0 -32px;
    padding: 20px 32px 4px 32px;
    border-top: 1px solid #e5e7eb;
}

body.home-page .details-section > div {
    min-width: 0;
}

body.home-page .details-map-card {
    align-self: start;
    min-width: 0;
    margin-top: 10px;
    padding: 1px 1px 1px;
    border: 1px solid #e5ebf2;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.08), transparent 35%),
        linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 14px 30px rgba(148, 163, 184, 0.08);
}

body.home-page .ip-location-map {
    position: relative;
    overflow: hidden;
    min-height: 252px;
    border-radius: 16px;
    border: 1px solid #dbe4ee;
    background: #edf4fb;
}

body.home-page .ip-location-map-activate {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

body.home-page .ip-location-map-preview {
    position: relative;
    display: block;
    height: 252px;
    background:
        linear-gradient(135deg, rgba(191, 219, 254, 0.65), rgba(219, 234, 254, 0.9)),
        linear-gradient(180deg, #eaf2fb 0%, #f8fbff 100%);
}

body.home-page .ip-location-map-preview-layer {
    position: absolute;
    inset: 0;
}

body.home-page .ip-location-map-preview-layer-a {
    background:
        radial-gradient(circle at 18% 25%, rgba(37, 99, 235, 0.08), transparent 0 14%),
        radial-gradient(circle at 72% 35%, rgba(14, 165, 233, 0.1), transparent 0 17%),
        radial-gradient(circle at 38% 76%, rgba(34, 197, 94, 0.1), transparent 0 12%);
}

body.home-page .ip-location-map-preview-layer-b {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.24) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.55;
}

body.home-page .ip-location-map-preview-layer-c {
    background:
        linear-gradient(25deg, transparent 46%, rgba(59, 130, 246, 0.14) 47%, rgba(59, 130, 246, 0.14) 53%, transparent 54%),
        linear-gradient(-18deg, transparent 48%, rgba(14, 165, 233, 0.1) 49%, rgba(14, 165, 233, 0.1) 52%, transparent 53%);
    mix-blend-mode: multiply;
    opacity: 0.6;
}

body.home-page .ip-location-map-pin {
    position: absolute;
    left: var(--map-pin-x, 50%);
    top: var(--map-pin-y, 50%);
    width: 18px;
    height: 18px;
    transform: translate(-50%, -100%) rotate(-45deg);
    border-radius: 999px 999px 999px 0;
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.3), 0 0 0 5px rgba(255, 255, 255, 0.85);
}

body.home-page .ip-location-map-pin::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
}

body.home-page .ip-location-map-activate-text {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
    transition: transform 0.16s ease;
}

body.home-page .ip-location-map-activate:hover .ip-location-map-activate-text,
body.home-page .ip-location-map-activate:focus-visible .ip-location-map-activate-text {
    transform: translateY(-1px);
}

body.home-page .ip-location-map-activate:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

body.home-page .ip-location-map iframe {
    display: block;
    width: 100%;
    height: 252px;
    border: 0;
}

body.home-page .ip-location-map-empty {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    border-style: dashed;
}

body.home-page .ip-location-map-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

body.home-page .ip-map-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

body.home-page .ip-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

body.home-page .ip-map-link:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

body.home-page .ip-location-map-note {
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

body.home-page .page-description,
body.home-page .detail-mark {
    color: #475569;
}

body.home-page .top-bar img {
    width: 215px;
    max-width: 100%;
    height: auto;
}

body.home-page .details-col-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 0;
    padding-bottom: 11px;
    border-bottom: 1px solid #eef2f6;
    color: #111827;
}

body.home-page .details-subtitle {
    margin-top: 12px;
}

body.home-page .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    min-height: 40px;
    font-size: 13px;
    border-bottom: 1px solid #eef2f6;
    gap: 18px;
}

body.home-page .detail-row.detail-row-multiline {
    align-items: flex-start;
}

body.home-page .detail-row:last-child {
    border-bottom: none;
}

body.home-page .detail-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #6b7280;
    font-weight: 500;
}

body.home-page .detail-value {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    text-align: right;
    word-break: break-word;
}

body.home-page .detail-value-multiline {
    max-width: 62%;
    line-height: 1.45;
    font-size: 12px;
}

body.home-page .detail-value-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    letter-spacing: -0.01em;
}

body.home-page .rbl-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: -26px -28px 18px;
    padding: 18px 28px 14px;
    background: linear-gradient(180deg, rgba(243, 246, 250, 0.92) 0%, rgba(243, 246, 250, 0.92) 100%);
    border-bottom: 1px solid #dbe2ea;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

body.home-page .rbl-status-text {
    color: #111827;
    font-size: 12px;
    font-weight: 500;
    text-align: right;
}

body.home-page .rbl-status-text.is-danger {
    color: #dc2626;
}

body.home-page .rbl-status-text.is-safe {
    color: #16a34a;
}

body.home-page .rbl-status-text.is-pending {
    color: #2563eb;
}

body.home-page .rbl-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 12px;
}

body.home-page .rbl-action-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

body.home-page .rbl-action-subtitle {
    font-size: 12px;
    color: #6b7280;
}

body.home-page .rbl-check-box {
    display: flex;
    align-items: center;
    gap: 0;
    background: #ffffff;
    padding: 2px;
    border-radius: 10px;
    border: 1px solid #d7dce4;
    box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
    font-size: 13px;
    font-weight: 500;
}

body.home-page .rbl-ip-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    color: #4b5563;
    font-size: 12px;
}

body.home-page .check-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 9px 19px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

body.home-page .check-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

body.home-page .check-btn:disabled {
    opacity: 0.7;
    cursor: progress;
}

body.home-page .rbl-meter {
    height: 6px;
    background: #e7ecf2;
    border-radius: 999px;
    margin-bottom: 18px;
    width: 100%;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

body.home-page .rbl-meter-fill {
    width: 100%;
    display: block;
    height: 100%;
    border-radius: 999px;
    transform-origin: left center;
    transform: scaleX(0);
    will-change: transform;
    transition: transform 0.28s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.home-page .rbl-meter-fill.is-loading {
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.36);
}

body.home-page .rbl-meter-fill.is-danger {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.88);
}

body.home-page .rbl-meter-fill.is-safe {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

body.home-page .rbl-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 18px;
}

body.home-page .rbl-grid::before {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    top: 2px;
    height: 86px;
    background:
        radial-gradient(circle at 16% 45%, rgba(248, 113, 113, 0.22), transparent 30%),
        radial-gradient(circle at 50% 45%, rgba(248, 113, 113, 0.26), transparent 33%),
        radial-gradient(circle at 84% 45%, rgba(248, 113, 113, 0.22), transparent 30%);
    pointer-events: none;
    z-index: 0;
}

body.home-page .rbl-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdfd 100%);
    border: 1px solid #dde5eb;
    border-radius: 14px;
    padding: 14px 16px 14px 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 74px;
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.14);
    overflow: hidden;
    z-index: 1;
}

body.home-page .rbl-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 8px rgba(148, 163, 184, 0.28);
}

body.home-page .rbl-card.safe::before {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.42);
}

body.home-page .rbl-card.danger {
    background: linear-gradient(180deg, #fff4f4 0%, #ffeaea 100%);
    border: 2px solid #ef4444;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.18), 0 10px 20px rgba(248, 113, 113, 0.12);
}

body.home-page .rbl-card.danger::before {
    width: 8px;
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.72);
}

body.home-page .rbl-card.unknown {
    border-color: #cbd5e1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

body.home-page .rbl-card.unknown::before {
    background: #94a3b8;
}

body.home-page .rbl-icon-wrap {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
}

body.home-page .rbl-icon {
    width: 18px;
    height: 18px;
    display: block;
}

body.home-page .rbl-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

body.home-page .rbl-domain {
    font-size: 12.5px;
    font-weight: 600;
    color: #111827;
    word-break: break-word;
}

body.home-page .rbl-state {
    font-size: 11px;
    color: #111827;
    font-weight: 500;
    word-break: break-word;
}

body.home-page .rbl-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 11px;
    color: #6b7280;
}

body.home-page .legend {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

body.home-page .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

body.home-page .dot.green {
    background-color: #16a34a;
}

body.home-page .dot.red {
    background-color: #dc2626;
}

body.home-page .rbl-note {
    font-size: 11px;
    color: #6b7280;
}

body.home-page .ip-async-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 18px;
}

body.home-page .mc-value.ip-async-value {
    justify-content: flex-start;
    text-align: left;
}

body.home-page .ip-async-value.is-loading,
body.home-page .ip-flag-shell.is-loading {
    color: #64748b;
}

body.home-page .ip-async-value.is-loading::after,
body.home-page .ip-flag-shell.is-loading::after,
body.home-page .ip-loading-spinner {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid rgba(100, 116, 139, 0.24);
    border-top-color: #2563eb;
    animation: ipBadgeSpin 0.8s linear infinite;
}

body.home-page .ip-flag-shell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.home-page .ip-location-map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 252px;
    background:
        linear-gradient(135deg, rgba(191, 219, 254, 0.55), rgba(219, 234, 254, 0.92)),
        linear-gradient(180deg, #eaf2fb 0%, #f8fbff 100%);
}

body.home-page .ip-loading-panel {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 32px rgba(148, 163, 184, 0.16);
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

body.home-page .ip-map-chip-loading {
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
}

body.home-page .ip-map-link-disabled {
    background: #94a3b8;
    color: #ffffff;
    cursor: default;
    pointer-events: none;
    opacity: 0.82;
}

@keyframes ipBadgeSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1180px) {
    body.home-page .details-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.home-page .details-map-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    body.home-page .rbl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 660px) {
    body.home-page .good-proxies-container,
    body.home-page .rbl-checker-container {
        padding: 20px 16px;
        border-radius: 18px;
    }

    body.home-page .page-title {
        font-size: 24px;
        margin-bottom: 18px;
    }

    body.home-page .page-description {
        font-size: 13px;
    }

    body.home-page .top-section,
    body.home-page .details-section,
    body.home-page .rbl-grid {
        grid-template-columns: 1fr;
    }

    body.home-page .top-section {
        gap: 12px;
    }

    body.home-page .blue-card {
        min-height: 190px;
        padding: 22px 18px 18px;
    }

    body.home-page .ip-display {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    body.home-page .mini-cards-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        padding: 6px 10px 10px;
    }

    body.home-page .mini-cards-grid::before,
    body.home-page .mini-cards-grid::after {
        display: none;
    }

    body.home-page .mini-card {
        min-height: auto;
        padding: 16px 14px;
        border-bottom: 1px solid #eef2f6;
    }

    body.home-page .mini-card:last-child {
        border-bottom: none;
    }

    body.home-page .details-section {
        margin: 0;
        padding: 10px 0 0;
        gap: 20px;
    }

    body.home-page .details-map-card {
        padding: 1px 1px 1px;
        border-radius: 18px;
    }

    body.home-page .ip-location-map,
    body.home-page .ip-location-map-preview,
    body.home-page .ip-location-map iframe {
        height: 220px;
        min-height: 220px;
    }

    body.home-page .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 0;
    }

    body.home-page .detail-value,
    body.home-page .rbl-status-text {
        text-align: left;
    }

    body.home-page .detail-value-multiline {
        max-width: 100%;
        font-size: 13px;
    }

    body.home-page .rbl-summary-bar,
    body.home-page .rbl-action-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    body.home-page .rbl-summary-bar {
        margin: -20px -16px 16px;
        padding: 16px;
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
    }

    body.home-page .rbl-check-box {
        width: 100%;
        justify-content: space-between;
    }

    body.home-page .rbl-ip-pill {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* IP Evergreen educational section */
.ip-evergreen {
    width: 100%;
    max-width: 1000px;
    margin: 18px auto;
    padding: 18px;
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 14px;
}

.ip-evergreen h2 {
    margin: 0 0 14px;
    font-size: 22px;
    color: #1b2a44;
    text-align: center;
}

.ip-evergreen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ip-evergreen-card {
    background: #f7faff;
    border: 1px solid #dce8f8;
    border-radius: 10px;
    padding: 16px;
}

.ip-evergreen-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #17345f;
}

.ip-evergreen-card p {
    margin: 0;
    font-size: 14px;
    color: #4e5c72;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .ip-evergreen {
        padding: 14px;
        border-radius: 0;
    }

    .ip-evergreen h2 {
        font-size: 20px;
    }

    .ip-evergreen-grid {
        grid-template-columns: 1fr;
    }
}