/* Newsletter Popup */
.newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.newsletter-popup.active {
    opacity: 1;
    visibility: visible;
}

.newsletter-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.newsletter-popup-content {
    position: relative;
    background: var(--bg-card);
    max-width: 500px;
    width: 90%;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.newsletter-popup.active .newsletter-popup-content {
    transform: scale(1);
}

.newsletter-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.newsletter-popup-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.newsletter-popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.newsletter-popup-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.newsletter-popup-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.newsletter-popup-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.newsletter-popup-subtitle strong {
    color: var(--primary-color);
    font-weight: 700;
}

.newsletter-popup-form {
    margin-bottom: 24px;
}

.newsletter-popup-input-group {
    display: flex;
    gap: 8px;
}

.newsletter-popup-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.newsletter-popup-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.newsletter-popup-submit {
    padding: 14px 28px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-popup-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.newsletter-popup-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-popup-privacy {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin-top: 12px;
}

.newsletter-popup-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.newsletter-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.newsletter-feature-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.newsletter-popup-success {
    text-align: center;
    padding: 40px 20px;
}

.newsletter-success-icon {
    width: 80px;
    height: 80px;
    background: #10B981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.newsletter-popup-success h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.newsletter-popup-success p {
    font-size: 15px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .newsletter-popup-content {
        padding: 30px 24px;
        max-width: 95%;
    }
    
    .newsletter-popup-title {
        font-size: 24px;
    }
    
    .newsletter-popup-input-group {
        flex-direction: column;
    }
    
    .newsletter-popup-submit {
        width: 100%;
    }
}

