/* Newsletter Subscribe Form (Footer & Homepage) */
.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    width: 100%;
}

.newsletter-form__input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    color: #333;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.newsletter-form__input::placeholder {
    color: #aaa;
}

.newsletter-form__input:focus {
    border-color: #6366f1;
    background: #fff;
}

.newsletter-form__btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #7A95F8, #6366f1);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.newsletter-form__btn:hover, .newsletter-form__btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(122, 149, 248, 0.4);
}

.newsletter-form__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.newsletter-form__btn i {
    margin-right: 6px;
}

/* Newsletter Alert Messages */
.newsletter-alert {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-top: 8px;
    max-width: 480px;
}

.newsletter-alert--success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.newsletter-alert--error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Homepage Newsletter CTA Section */
.newsletter-cta {
    text-align: center;
    padding: 48px 24px;
    margin-top: 40px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.newsletter-cta__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(122, 149, 248, 0.2), rgba(99, 102, 241, 0.2));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.newsletter-cta__icon i {
    font-size: 24px;
    color: #6366f1;
}

.newsletter-cta__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.newsletter-cta__subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-cta .newsletter-form {
    margin: 0 auto;
    justify-content: center;
}

.newsletter-cta .newsletter-alert {
    margin-left: auto;
    margin-right: auto;
}

.newsletter-cta__privacy {
    font-size: 11px;
    color: #aaa;
    margin-top: 12px;
}

.newsletter-cta__privacy a {
    color: #6366f1;
    text-decoration: underline;
}

/* Footer Newsletter (Compact) */
.footer-newsletter {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter__title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 8px;
}

.footer-newsletter .newsletter-form__input {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 10px;
}

.footer-newsletter .newsletter-form__btn {
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 10px;
}

/* Blog Sidebar Newsletter */
.newsletter-sidebar {
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.newsletter-sidebar__title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.newsletter-sidebar__desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 16px;
}

.newsletter-sidebar .newsletter-form {
    flex-direction: column;
}

.newsletter-sidebar .newsletter-form__input {
    width: 100%;
}

.newsletter-sidebar .newsletter-form__btn {
    width: 100%;
}

/* Unsubscribe Page */
.newsletter-unsub-card {
    text-align: center;
    padding: 60px 32px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.newsletter-unsub-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 32px;
}

.newsletter-unsub-icon--success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.newsletter-unsub-icon--error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.newsletter-unsub-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
}

.newsletter-unsub-message {
    font-size: 15px;
    color: #555;
    margin: 0 0 8px;
}

.newsletter-unsub-note {
    font-size: 13px;
    color: #999;
    margin: 0 0 28px;
}

.newsletter-unsub-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #7A95F8, #6366f1);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-unsub-btn:hover, .newsletter-unsub-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(122, 149, 248, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Deals Alert Banner (top of /deals) */
.deals-alert-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.08);
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
}

.deals-alert-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(122, 149, 248, 0.04), rgba(99, 102, 241, 0.04));
    pointer-events: none;
}

.deals-alert-banner > * {
    position: relative;
    z-index: 1;
}

.deals-alert-banner__icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7A95F8, #6366f1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.deals-alert-banner__body {
    flex: 1 1 auto;
    min-width: 0;
}

.deals-alert-banner__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.deals-alert-banner__desc {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
    line-height: 1.4;
}

.deals-alert-banner__form {
    flex: 0 1 420px;
    max-width: 420px;
    margin: 0;
}

/* Newsletter CTA Deals Variant */
.newsletter-cta--deals {
    background: linear-gradient(135deg, #fff 0%, #faf9ff 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.1);
}

.newsletter-cta--deals .newsletter-cta__icon {
    background: linear-gradient(135deg, #7A95F8, #6366f1);
}

.newsletter-cta--deals .newsletter-cta__icon i {
    color: #fff;
}

.newsletter-cta__benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-top: 18px;
}

.newsletter-cta__benefit {
    font-size: 12px;
    font-weight: 500;
    color: #6366f1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.newsletter-cta__benefit i {
    color: #10b981;
    font-size: 16px;
}

/* Browser-push opt-in row (under the deals email banner) */
.deals-push-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 10px;
}

.deals-push-row__sep {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.deals-push-row__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.deals-push-row__btn:hover:not(:disabled), .deals-push-row__btn:focus-visible:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.deals-push-row__btn:disabled {
    opacity: 0.7;
    cursor: progress;
}

.deals-push-row__btn i {
    font-size: 15px;
}

.deals-push-row__hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.4;
}

.deals-push-msg {
    color: #fde68a;
    font-size: 13px;
    margin-top: 8px;
    min-height: 1em;
}

.deals-push-msg:empty {
    display: none;
}

/* Responsive */
@media (max-width: 860px) {
    .deals-alert-banner {
        flex-wrap: wrap;
    }

    .deals-alert-banner__form {
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 6px;
    }

    .deals-push-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .deals-push-row__btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form__btn {
        width: 100%;
    }

    .newsletter-cta {
        padding: 32px 16px;
    }

    .newsletter-cta__title {
        font-size: 18px;
    }

    .newsletter-unsub-card {
        padding: 40px 20px;
    }

    .deals-alert-banner {
        padding: 16px;
        gap: 12px;
    }

    .deals-alert-banner__icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .deals-alert-banner__title {
        font-size: 14px;
    }
}
