.zyn-newsletter-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 7, 18, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.zyn-newsletter-overlay.zyn-newsletter-show {
    opacity: 1;
    visibility: visible;
}

.zyn-newsletter-popup {
    position: relative;
    width: min(100%, 520px);
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(145deg, rgba(13, 18, 32, 0.98), rgba(8, 12, 23, 0.96)),
        url("../img/home/solution-bg.png");
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
    transform: translateY(28px) scale(0.96);
    transition: transform 0.35s ease;
}

.zyn-newsletter-overlay.zyn-newsletter-show .zyn-newsletter-popup {
    transform: translateY(0) scale(1);
}

.zyn-newsletter-popup::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(47, 94, 255, 0.85), rgba(94, 199, 232, 0.72), rgba(255, 255, 255, 0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.zyn-newsletter-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.zyn-newsletter-close:hover {
    background: rgba(255, 71, 87, 0.18);
    border-color: rgba(255, 71, 87, 0.42);
    color: #ff6b7a;
}

.zyn-newsletter-content {
    position: relative;
    z-index: 1;
    padding: 42px;
}

.zyn-newsletter-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(94, 199, 232, 0.1);
    color: #5ec7e8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.zyn-newsletter-title {
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: 0;
    margin-bottom: 14px;
}

.zyn-newsletter-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.zyn-newsletter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.zyn-newsletter-form input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    padding: 0 12px;
    font-size: 15px;
}

.zyn-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.46);
}

.zyn-newsletter-form button {
    border: 0;
    border-radius: 14px;
    background: #2f5eff;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.zyn-newsletter-form button:hover {
    background: #5ec7e8;
    color: #07101c;
    transform: translateY(-1px);
}

.zyn-newsletter-message {
    min-height: 22px;
    margin-top: 14px;
    color: #5ec7e8;
    font-size: 13px;
    font-weight: 700;
}

.zyn-newsletter-message.zyn-newsletter-error {
    color: #ff6b7a;
}

@media (max-width: 576px) {
    .zyn-newsletter-overlay {
        padding: 16px;
    }

    .zyn-newsletter-content {
        padding: 34px 22px 24px;
    }

    .zyn-newsletter-form {
        grid-template-columns: 1fr;
    }

    .zyn-newsletter-form input {
        min-height: 46px;
    }
}
