:root {
    --stay-connected-bg: rgba(5, 5, 10, 0.92);
    --stay-connected-card: linear-gradient(135deg, rgba(36, 37, 45, 0.95), rgba(15, 16, 24, 0.95));
    --stay-connected-highlight: linear-gradient(120deg, #c01c28, #6f0c1f);
}

.stay-connected-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.72), rgba(25, 25, 35, 0.8));
    z-index: 12000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.stay-connected-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.stay-connected-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.stay-connected-overlay__panel {
    position: relative;
    width: min(960px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 30px 26px;
    border-radius: 20px;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.85) 45%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.82) 40%),
        var(--stay-connected-card);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #f5f6fa;
}

.stay-connected-overlay__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 12px;
}

.stay-connected-overlay__title {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f9fbff;
    text-shadow: 0 2px 18px rgba(192, 28, 40, 0.65);
}

.stay-connected-overlay__tagline {
    margin: 6px 0 0;
    color: #d0d7e2;
    font-size: 0.98rem;
}

.stay-connected-overlay__close {
    background: rgba(255, 255, 255, 0.08);
    color: #f5f6fa;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.stay-connected-overlay__close:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.stay-connected-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.stay-connected-card {
    position: relative;
    padding: 16px 16px 14px;
    border-radius: 14px;
    background: var(--stay-connected-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
    color: #f2f4fa;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.25s ease;
}

/*.stay-connected-card:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 28, 40, 0.65);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    background: linear-gradient(120deg, rgba(30, 32, 40, 0.96), rgba(14, 15, 24, 0.96));
}*/

.stay-connected-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.stay-connected-card__title {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 6px;
    color: #ffffff;
}

.stay-connected-card__text {
    margin: 0;
    font-size: 0.95rem;
    color: #d5dae6;
    line-height: 1.4;
}

.stay-connected-overlay__cta {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.stay-connected-overlay__button {
    border: none;
    border-radius: 999px;
    padding: 11px 20px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background-image: var(--stay-connected-highlight);
    box-shadow: 0 10px 25px rgba(192, 28, 40, 0.45);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stay-connected-overlay__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(192, 28, 40, 0.6);
}

.stay-connected-overlay__support {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.stay-connected-overlay__support a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #f5f7fb;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.2s ease;
}

.stay-connected-overlay__support a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
}

.stay-connected-overlay__support-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
}

.stay-connected-overlay__subtitle {
    margin: 8px 0 4px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f7f7fb;
}

.stay-connected-overlay--blocked {
    overflow: hidden;
}

@media (max-width: 540px) {
    .stay-connected-overlay__panel {
        padding: 20px 18px;
    }

    .stay-connected-overlay__cta {
        justify-content: center;
    }

    .stay-connected-overlay__header {
        align-items: center;
    }

}


    .stay-connected-card {
        position: relative;
        overflow: hidden;
    }

        /* Faint background image (only if --stay-connected-card-image is set inline) */
        .stay-connected-card::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image: var(--stay-connected-card-image);
            background-size: cover;
            background-position: center;
            opacity: 0.12; /* barely visible */
            filter: saturate(0.9) contrast(0.9);
            transform: scale(1.03);
            z-index: 0;
            pointer-events: none;
        }

        /* Subtle gradient sheen for ALL tiles */
        .stay-connected-card::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.18));
            opacity: 0.9;
            z-index: 1;
            pointer-events: none;
        }

        /* Keep content above the layers */
        .stay-connected-card > * {
            position: relative;
            z-index: 2;
        }
