* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0a1929;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 80px;
    position: relative;
}

.container {
    display: flex;
    padding: 20px;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    margin-bottom: 100px;
}

/* Side ad styles */
.side-ad {
    flex-shrink: 0;
    margin-top: 20px;
}

.ad-space-banner {
    width: 468px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Table styles */
.proxy-list-container {
    flex-grow: 1;
    background: #0f2744;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Add table header styles */
.table-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-count, .download-format {
    display: none;
}

.download-options {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #2b6cb0;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.download-btn:hover {
    background: #2c5282;
}

.download-btn svg {
    width: 16px;
    height: 16px;
}

.download-format select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Update table styles */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #0f2744;
}

th {
    background: rgba(255, 255, 255, 0.02);
    color: #8b9bb4;
    font-weight: 500;
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

th:first-child, td:first-child {
    display: none;
}

td {
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    background: transparent;
}

/* Checkbox styles */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    cursor: pointer;
    position: relative;
}

input[type="checkbox"]:checked {
    background: #2b6cb0;
    border-color: #2b6cb0;
}

/* Status styles */
.status {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.status::before {
    content: "✓";
    font-size: 14px;
    margin-right: 4px;
    color: #4caf50;
}

/* Country styles */
.country {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
}

.country img {
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

/* Hide country name, only show code */
.country span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive design */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
    }

    .side-ad {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .ad-space-banner {
        width: 100%;
        max-width: 468px;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    nav {
        justify-content: center;
        gap: 1.5rem;
        width: 100%;
        padding: 0.5rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    .auth-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

header {
    background-color: #0a1929;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.site-logo {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: #8b9bb4;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    white-space: nowrap;
    padding: 0.3rem 0;
}

nav a:hover {
    color: white;
}

/* Update auth buttons styles */
.auth-buttons {
    display: flex;
    justify-content: flex-end;
}

/* Remove login styles */
.login {
    display: none;
}

/* Update signup/trial button styles */
.signup {
    background-color: #ffd700;
    color: #000;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.signup:hover {
    background-color: #ffed4a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Update responsive styles */
@media (max-width: 1200px) {
    .auth-buttons {
        justify-content: center;
        margin-top: 0.5rem;
    }
}

.subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.stats-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1rem;
    margin: 1rem auto;
    max-width: 800px;
}

.stat-item {
    padding: 1rem;
    border-radius: 15px;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.3rem;
}

.search-container {
    display: none;
}

#searchInput {
    display: none;
}

main {
    padding: 1rem 2rem;
    margin-bottom: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* IP and Port */
td:nth-child(1),
td:nth-child(2) {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Protocol */
td:nth-child(3) {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Country */
td:nth-child(4) {
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Username and Password */
td:nth-child(5),
td:nth-child(6) {
    font-weight: 500;
    color: white;
    background: transparent;
    padding: 0.75rem 1.5rem;
    cursor: default;
}

/* Hover effects */
td:hover {
    background: none;
}

.ad-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    padding: 0 1rem;
}

.ad-space {
    width: 728px;
    height: 90px;
    background-color: #fff;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

footer {
    background: #0f2744;
    color: white;
    padding: 1rem 2rem;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.safety-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4caf50;
    font-weight: 500;
    font-size: 1rem;
}

.safety-badge svg {
    stroke: #4caf50;
}

.disclaimer {
    font-size: 0.9rem;
    color: #8b9bb4;
    font-weight: 400;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    header {
        padding: 1.5rem 1rem;
    }

    header h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .stats-container {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .footer-content {
        display: none;
    }

    #searchInput {
        width: 100%;
        max-width: 350px;
    }

    main {
        padding: 1rem;
    }

    td, th {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .ad-space {
        width: 100%;
        max-width: 728px;
    }

    .proxy-list-container {
        margin: 1rem 0;
        border-radius: 8px;
    }

    .header-ad {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    footer {
        padding: 0.8rem 1rem;
    }
    
    .safety-badge {
        font-size: 0.9rem;
    }
    
    .disclaimer {
        font-size: 0.8rem;
    }

    .container {
        margin-bottom: 120px;
    }
    
    body {
        padding-bottom: 100px;
    }
}

/* Add smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Add these new styles */
.country-flag {
    width: 24px;
    height: 16px;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    object-fit: cover;
}

.country-flag[src] {
    opacity: 1;
}

.country-flag:not([src]) {
    opacity: 0;
}

/* Add font-face for Fira Code */
@font-face {
    font-family: 'Fira Code';
    src: url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&display=swap');
}

/* Add custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Add styles for header ad */
.header-ad {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.header-ad .ad-space {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .header-ad {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* Update title */
title {
    content: "Proxy Hub - Free Proxy List";
}

/* Improve CLS (Cumulative Layout Shift) */
img, svg {
    aspect-ratio: attr(width) / attr(height);
}

/* Ensure proper font loading */
@font-face {
    font-family: 'JetBrains Mono';
    font-display: swap;
    src: url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');
}

/* Add styles for the ad below table */
.table-ad-container {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.table-ad {
    width: 728px;
    height: 90px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .table-ad {
        width: 100%;
        max-width: 728px;
    }
    
    .table-ad-container {
        padding: 1rem;
    }
}

/* Add styles for top ad */
.table-ad-container.top-ad {
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Update existing table-ad-container styles */
.table-ad-container {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.table-ad {
    width: 728px;
    height: 90px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Add these popup styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: #0f2744;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #8b9bb4;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.close-popup:hover {
    color: white;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.popup-header h2 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.popup-description {
    color: #8b9bb4;
    margin-bottom: 1.5rem;
}

.popup-features {
    list-style: none;
    margin-bottom: 2rem;
}

.popup-features li {
    color: white;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popup-features li::before {
    color: #ffd700;
}

.popup-cta {
    display: block;
    background: #ffd700;
    color: black;
    text-align: center;
    padding: 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.popup-cta:hover {
    background: #ffed4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
} 
.side-ad {
    text-align: center;
    margin-bottom: 10px;
}

.small-ad {
    width: 320px;
    margin: 0 auto; /* Center the smaller ad */
}
