/* ── Network Bar (header & footer) ───────────────────────────────────────── */
.snp-bar {
    width: 100%;
    background: #2d3748;
    color: #c8d4e8;
    font-size: 13px;
    z-index: 9000;
}

.snp-bar__marquee {
    overflow: hidden;
    padding: 8px 0;
}

.snp-bar__track {
    display: flex;
    width: max-content;
}

.snp-bar__track.snp-ready {
    animation: snp-marquee var(--snp-duration, 30s) linear infinite;
}

.snp-bar__track.snp-ready:hover {
    animation-play-state: paused;
}

.snp-bar__track.snp-static {
    width: 100%;
}

.snp-bar__sites {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 16px;
    flex-shrink: 0;
}

.snp-bar__site, .snp-bar__site:hover, .snp-bar__site:focus {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    outline: none;
}

.snp-bar__logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
}

.snp-bar__name {
    font-size: 11px;
    font-weight: 500;
}

/* ── Exit Intent Popup ────────────────────────────────────────────────────── */
.snp-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.snp-popup--visible {
    display: flex;
}

body.snp-popup-open {
    overflow: hidden;
}

.snp-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
    animation: snpFadeIn 0.25s ease;
}

.snp-popup__box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 40px 36px 36px;
    max-width: 680px;
    width: calc(100% - 40px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    animation: snpSlideUp 0.3s ease;
    text-align: center;
}

.snp-popup__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.snp-popup__close:hover {
    color: #333;
    background: #f0f0f0;
}

.snp-popup__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111;
}

.snp-popup__sites {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

.snp-popup__site {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    text-decoration: none;
    color: #222;
    min-width: 120px;
}

.snp-popup__site:hover {
    border-color: #aaa;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    color: #000;
}

.snp-popup__logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
}

.snp-popup__name {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
}

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes snp-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(var(--snp-offset)); }
}

@keyframes snpFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes snpSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .snp-bar__sites {
        gap: 20px;
    }

    .snp-popup__box {
        padding: 32px 20px 24px;
    }

    .snp-popup__title {
        font-size: 18px;
    }

    .snp-popup__site {
        min-width: 100px;
        padding: 12px 14px;
    }
}
