.dv-lead-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none; /* спочатку прихований */
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 9999;
    padding: 1.5rem;
}

.dv-lead-popup-overlay.dv-lead-popup-active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}
.dv-lead-popup {
    position: relative;
    background: radial-gradient(circle at top left, #7918ee 0%, #141414 45%, #050509 100%);
    border-radius: 18px;
    padding: 2.2rem 2.4rem;
    max-width: 460px;
    width: 100%;
    box-shadow:
        0 0 40px rgba(121, 24, 238, 0.7),
        0 24px 60px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    color: #f9fafb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}

.dv-lead-popup-glow {
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 0% 0%, rgba(121, 24, 238, 0.45), transparent 60%),
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.28), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.dv-lead-popup-content {
    position: relative;
    z-index: 1;
}

.dv-lead-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: transform 0.15s ease, color 0.15s ease;
    z-index: 2;
}

.dv-lead-popup-close:hover {
    transform: scale(1.08);
    color: #ffffff;
}

.dv-lead-popup-title {
    font-size: 1.4rem;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dv-lead-popup-title::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, #38bdf8, #22c55e);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.9);
}

.dv-lead-popup-subtitle {
    margin: 0 0 1.4rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #d1d5db;
}

.dv-lead-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #a855f7, #7918ee);
    color: #f9fafb;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid rgba(248, 250, 252, 0.18);
    box-shadow:
        0 0 24px rgba(121, 24, 238, 0.75),
        0 10px 24px rgba(0, 0, 0, 0.8);
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background 0.18s ease,
        filter 0.12s ease;
}

.dv-lead-popup-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow:
        0 0 30px rgba(121, 24, 238, 1),
        0 18px 36px rgba(0, 0, 0, 0.9);
}

.dv-lead-popup-note {
    margin-top: 0.8rem;
    font-size: 0.78rem;
    color: #9ca3af;
}

/* Mobile */
@media (max-width: 480px) {
    .dv-lead-popup {
        padding: 1.6rem 1.4rem;
        max-width: 100%;
    }

    .dv-lead-popup-title {
        font-size: 1.25rem;
    }

    .dv-lead-popup-subtitle {
        font-size: 0.9rem;
    }

    .dv-lead-popup-btn {
        width: 100%;
    }
}
