/* ==========================================================================
   Newsletter Popup
   ========================================================================== */
.newsletter-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    overflow: hidden;
}

.newsletter-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.newsletter-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-hover);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.newsletter-popup__close:hover {
    background: var(--border);
    color: var(--text);
}

.newsletter-popup__header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 32px 24px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.newsletter-popup__header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.newsletter-popup__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 1;
    animation: bounceIcon 2s infinite ease-in-out;
}

@keyframes bounceIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.newsletter-popup__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
}

.newsletter-popup__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.newsletter-popup__body {
    padding: 24px;
}

.newsletter-popup__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-popup__input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: all 0.2s ease;
}

.newsletter-popup__input:focus {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 61, 97, 0.1);
}

.newsletter-popup__btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.newsletter-popup__btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 61, 97, 0.2);
}

.newsletter-popup__footer {
    text-align: center;
    margin-top: 16px;
}

.newsletter-popup__no-thanks {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.newsletter-popup__no-thanks:hover {
    color: var(--text);
}

@media (max-width: 480px) {
    .newsletter-popup {
        bottom: 16px;
        right: 16px;
        width: calc(100vw - 32px);
    }
}