:root {
    --primary: #0088cc;
    --primary-glow: rgba(0, 136, 204, 0.4);
    --secondary: #6366f1; /* Indigo glow */
    --accent: #f43f5e; /* Rose for highlights */
    --bg: #020617;
    --card-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --radius: 20px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Animated Mesh Background --- */
.mesh-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 0% 0%, #0f172a 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, #1e1b4b 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, #020617 0%, transparent 100%);
}

.glow-orb {
    position: fixed;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
    animation: floatingOrb 20s infinite alternate;
}

@keyframes floatingOrb {
    from { transform: translate(-10%, -10%); }
    to { transform: translate(20%, 30%); }
}

/* --- Navigation --- */
nav {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    z-index: 101;
}

.nav-links {
    display: flex;
    gap: 2.25rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.nav-links a:hover { color: var(--primary); transform: translateY(-1px); }

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text);
    margin: 6px 0;
    border-radius: 2px;
    transition: 0.4s;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: #020617;
    z-index: 105;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-left: 1px solid var(--glass-border);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
}

.mobile-drawer.active {
    transform: translateX(0);
}

.mobile-drawer a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: color 0.3s;
}

.drawer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 104;
    display: none;
}

.drawer-overlay.active { display: block; }

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 8rem 1.5rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Proxy Cards --- */
.proxy-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem 6rem;
}

.proxy-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.proxy-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.proxy-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -20px var(--primary-glow);
}

.proxy-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.flag-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}

.flag-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proxy-details h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.proxy-details span { font-size: 0.85rem; color: var(--text-muted); font-family: monospace; }

.proxy-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.speed-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.connect-btn {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.connect-btn:hover {
    background: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* --- Article Section (For AdSense Approval) --- */
.content-area {
    background: rgba(255,255,255,0.02);
    padding: 6rem 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.article-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.article-card h2 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary); }
.article-card p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; }

/* --- Footer --- */
footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--text); }

/* --- Country Grid --- */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.country-link {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.country-link:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(0, 136, 204, 0.1);
    box-shadow: 0 10px 25px -5px var(--primary-glow);
}

.country-link img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 2px solid rgba(255,255,255,0.15);
}

.country-link span {
    display: block;
    font-weight: 700;
    color: var(--text);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .proxy-card { flex-direction: column; text-align: center; gap: 1.5rem; }
    .proxy-main { flex-direction: column; }
    .nav-links { display: none; }
    .hamburger { display: block; }
}

/* QR Button & Modal */
.qr-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.qr-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary);
}
.qr-btn svg { width: 22px; height: 22px; fill: white; pointer-events: none; }

.qr-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.qr-overlay.active {
    opacity: 1;
    visibility: visible;
}
.qr-modal {
    background: rgba(23, 23, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    max-width: 90%;
    width: 350px;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.qr-overlay.active .qr-modal {
    transform: scale(1);
}
.qr-modal img {
    width: 250px;
    height: 250px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.qr-modal h3 { margin-bottom: 0.5rem; font-weight: 800; }
.qr-modal p { opacity: 0.6; font-size: 0.9rem; margin-bottom: 1.5rem; color: var(--text); }
.qr-close {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}
.qr-close:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}
