/* ═══════════════════════════════════════════════
   AnonyVPN V2 — Components
   Nav, IP Bar, Cards, Footer, Score Rings
   ═══════════════════════════════════════════════ */

/* ═══════ NAVIGATION ═══════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(5, 10, 21, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--speed) var(--ease);
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 68px;
}
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-logo img { 
    height: 40px; /* Perfectly fits the 68px header */
    width: auto; 
    filter: drop-shadow(0 0 12px rgba(59,130,246,0.3)); 
    transition: all 0.3s ease;
    display: block;
}
@media (max-width: 768px) {
    .nav-logo img { 
        height: 28px; /* Crisp and compact on mobile */
    }
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--speed) var(--ease);
    position: relative;
}
@media (hover: hover) {
    .nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
    .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(59,130,246,0.4); }
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--speed) var(--ease);
}

/* ═══════ IP THREAT MAP BAR ═══════ */
.ip-bar {
    position: sticky;
    top: 68px;
    z-index: 999;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--red-glow);
    padding: 0;
    animation: barGlow 3s ease-in-out infinite alternate;
}
@keyframes barGlow {
    0%   { border-bottom-color: rgba(239,68,68,0.2); }
    100% { border-bottom-color: rgba(239,68,68,0.5); }
}
.ip-bar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    gap: 12px;
}
.ip-bar-inner > .btn { flex-shrink: 0; }
.ip-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.ip-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
}
.ip-chip .label { color: var(--text-muted); font-weight: 500; text-transform: uppercase; font-size: 0.65rem; letter-spacing: 0.5px; }
.ip-chip .value { color: var(--text-primary); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ip-chip.danger { border-color: rgba(239,68,68,0.3); }
.ip-chip.danger .value { color: var(--red-bright); font-weight: 800; }

/* Pulsing dot */
.pulse-dot {
    position: relative;
    width: 10px; height: 10px;
}
.pulse-dot::before {
    content: '';
    position: absolute;
    width: 10px; height: 10px;
    background: var(--red);
    border-radius: 50%;
    z-index: 2;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    width: 10px; height: 10px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
    0%   { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(4); opacity: 0; }
}

/* ═══════ HERO ═══════ */
.hero {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(59,130,246,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(139,92,246,0.06) 0%, transparent 60%);
    z-index: 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-text h1 {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 30%, var(--blue-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-text .subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.8;
    max-width: 520px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Map Container */
.hero-map {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: var(--r-xl);
    background: rgba(10, 15, 30, 0.5);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}
.hero-map svg { width: 100%; height: 100%; }
.hero-map .map-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--dot-x, 50%) var(--dot-y, 50%), rgba(239,68,68,0.08) 0%, transparent 50%);
}
/* Map location pin */
.map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
}
.map-pin-dot {
    width: 14px; height: 14px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 15px var(--red-glow), 0 0 40px rgba(239,68,68,0.2);
    position: relative;
    z-index: 3;
}
.map-pin-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 14px; height: 14px;
    border: 2px solid var(--red);
    border-radius: 50%;
    animation: pingRing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.map-pin-ring:nth-child(2) { animation-delay: 0.6s; }
.map-pin-ring:nth-child(3) { animation-delay: 1.2s; }
@keyframes pingRing {
    0%   { width: 14px; height: 14px; opacity: 0.8; }
    100% { width: 80px; height: 80px; opacity: 0; }
}
/* Unified info panel near pin */
.map-panel {
    position: absolute;
    bottom: 30px;
    left: 50%;
    z-index: 10;
    background: rgba(10, 16, 30, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 16px 36px;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    animation: panelIn 0.6s var(--ease) 1s forwards;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    white-space: nowrap;
}
@keyframes panelIn {
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.map-panel-status {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--red-bright);
    animation: statusPulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.map-panel-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--red-bright);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--red-bright);
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.map-panel-line {
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.map-panel-line strong {
    color: var(--text-primary);
    font-weight: 600;
}
.map-panel-divider {
    color: rgba(255,255,255,0.15);
    margin: 0 12px;
}
@media (max-width: 768px) {
    .map-panel { padding: 16px 20px; border-radius: var(--r-xl); width: 90%; white-space: normal; }
    .map-panel-divider { display: none; }
    .map-panel-line { display: flex; flex-direction: column; gap: 4px; }
    .map-panel-line strong { margin-right: 0; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════ TRUST STRIP ═══════ */
.trust-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
    background: rgba(10, 15, 30, 0.5);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ═══════ VPN CARDS ═══════ */
.vpn-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.vpn-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 32px 28px;
    position: relative;
    transition: all var(--speed) var(--ease);
    overflow: hidden;
}
@media (hover: hover) {
    .vpn-card:hover {
        border-color: var(--border-hover);
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }
    .vpn-card-top1:hover { border-color: rgba(245,158,11,0.5); box-shadow: 0 16px 48px rgba(245,158,11,0.1); }
}

/* Rank badge */
.vpn-rank {
    position: absolute;
    top: 20px; right: 20px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.3rem;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.vpn-card-top1 .vpn-rank {
    background: linear-gradient(135deg, var(--orange), #d97706);
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

/* Score ring */
.score-ring {
    width: 72px; height: 72px;
    position: relative;
    margin: 0 auto 16px;
}
.score-ring svg {
    width: 72px; height: 72px;
    transform: rotate(-90deg);
}
.score-ring circle {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
}
.score-ring .ring-bg { stroke: var(--border); }
.score-ring .ring-fill {
    stroke: var(--blue-bright);
    stroke-dasharray: 201;
    stroke-dashoffset: 201;
    transition: stroke-dashoffset 1.5s var(--ease);
}
.score-ring .ring-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
}

.vpn-logo {
    width: 52px; height: 52px;
    object-fit: contain;
    margin: 0 auto 12px;
}
.vpn-name { font-size: 1.4rem; font-weight: 800; text-align: center; margin-bottom: 4px; }
.vpn-badge {
    display: inline-block;
    padding: 3px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--r-full);
    margin: 0 auto 16px;
}
.vpn-badge-gold { background: rgba(245,158,11,0.15); color: var(--orange); border: 1px solid rgba(245,158,11,0.25); }
.vpn-badge-blue { background: var(--blue-dim); color: var(--blue-bright); border: 1px solid rgba(59,130,246,0.2); }

.vpn-features {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.vpn-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.vpn-feature::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
}

.vpn-price-block { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.vpn-price-old { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; }
.vpn-price-save { display: inline-block; font-size: 0.7rem; font-weight: 800; padding: 2px 10px; border-radius: var(--r-full); background: var(--green-dim); color: var(--green-bright); margin: 4px 0; }
.vpn-price { font-size: 2.2rem; font-weight: 900; }
.vpn-price-period { font-size: 0.8rem; color: var(--text-muted); }
.vpn-guarantee { font-size: 0.75rem; color: var(--green); margin-top: 6px; }
.vpn-cta { margin-top: 16px; width: 100%; }

/* Compact list for #4-10 */
.vpn-list { display: flex; flex-direction: column; gap: 12px; }
.vpn-row {
    display: grid;
    grid-template-columns: 50px 1.5fr 2fr 1fr 140px;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: all var(--speed) var(--ease);
}
.vpn-row:hover { border-color: var(--border-hover); transform: translateX(4px); }
.vpn-row-rank { font-size: 1.2rem; font-weight: 900; color: var(--text-muted); text-align: center; }
.vpn-row-name { display: flex; align-items: center; gap: 12px; }
.vpn-row-name img { width: 32px; height: 32px; object-fit: contain; }
.vpn-row-name h3 { font-size: 1.1rem; font-weight: 700; }
.vpn-row-feats { display: flex; flex-wrap: wrap; gap: 6px; }
.vpn-row-feat {
    font-size: 0.75rem;
    padding: 3px 10px;
    background: var(--blue-dim);
    border-radius: var(--r-full);
    color: var(--text-secondary);
}
.vpn-row-price { text-align: center; }
.vpn-row-price .amount { font-size: 1.3rem; font-weight: 800; }
.vpn-row-price .period { font-size: 0.7rem; color: var(--text-muted); }

/* ═══════ FAQ ═══════ */
.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color var(--speed) var(--ease);
}
@media (hover: hover) {
    .faq-item:hover { border-color: var(--border-hover); }
}
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: left;
}
.faq-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--blue-dim);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all var(--speed) var(--ease);
    color: var(--blue);
    font-size: 1.1rem;
}
.faq-item.open .faq-icon { background: var(--blue); color: #fff; transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease), padding 0.3s var(--ease);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ═══════ FOOTER ═══════ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 80px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand img { 
    height: 48px; /* Slightly larger in footer */
    width: auto; 
    margin-bottom: 16px; 
    filter: drop-shadow(0 0 12px rgba(59,130,246,0.3)); 
}
@media (max-width: 768px) {
    .footer-brand img { height: 36px; }
}
.footer-brand p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; max-width: 320px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 20px; }
.footer-col a { display: block; font-size: 0.9rem; color: var(--text-secondary); padding: 6px 0; transition: color var(--speed); }
.footer-col a:hover { color: var(--blue-bright); }
.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.footer-bottom a { color: var(--blue); }

/* ═══════ SCROLL TOP ═══════ */
.scroll-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 44px; height: 44px;
    background: var(--blue);
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    z-index: 900;
    opacity: 0; transform: translateY(20px);
    transition: all var(--speed) var(--ease);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); }
.scroll-top svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text .subtitle { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .hero-map { max-width: 600px; margin: 0 auto; }
    .vpn-featured-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 40px; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg-primary); border-bottom: 1px solid var(--border); flex-direction: column; padding: 20px 24px; gap: 16px; }
    .nav-links.open { display: flex; }
    .nav-hamburger { display: flex; }
    .ip-bar-inner { flex-direction: column; align-items: stretch; gap: 10px; }
    .ip-info { justify-content: center; }
    .hero { min-height: auto; padding: 120px 0 50px; }
    .vpn-row { grid-template-columns: 1fr; text-align: center; gap: 10px; }
    .vpn-row-feats { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    /* Map info cards reposition for mobile */
    .map-info.ip, .map-info.loc, .map-info.isp, .map-info.status {
        position: static;
        margin-top: 8px;
    }
}
@media (max-width: 480px) {
    .vpn-featured-grid { max-width: 100%; }
    .hero-map { aspect-ratio: 4/3; }
}


/* ═══════ BLOG GRID FIXED ═══════ */
.blog-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    margin-top: 40px;
}
