.site-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: 1.5rem;
}

.site-popup-overlay.active {
    display: flex;
}

.site-popup {
    background: #ffffff;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
    animation: popupFadeIn 0.35s ease-out;
}

.site-popup-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
}

.site-popup h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #1f2937;
    font-weight: 700;
}

.site-popup p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.site-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-popup button,
.site-popup a.site-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.site-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-popup-close:hover {
    background: rgba(99, 102, 241, 0.18);
}

.site-popup .primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.25);
}

.site-popup .primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(102, 126, 234, 0.32);
}

.site-popup .secondary {
    background: #f3f4f6;
    color: #374151;
}

.site-popup .secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(55, 65, 81, 0.15);
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .site-popup {
        padding: 2rem 1.5rem 1.75rem;
    }

    .site-popup h3 {
        font-size: 1.4rem;
    }

    .site-popup p {
        font-size: 0.95rem;
    }

    .site-popup-logo {
        width: 100px;
        margin-bottom: 1.25rem;
    }
}

