/* Namma Newsletter Modal */
#nn-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
#nn-overlay.nn-visible {
    opacity: 1;
    pointer-events: all;
}

#nn-modal {
    background: #fff;
    border-radius: 20px;
    padding: 44px 40px 36px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 32px 64px -12px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.1);
    transform: translateY(32px) scale(.96);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
#nn-overlay.nn-visible #nn-modal {
    transform: translateY(0) scale(1);
}

#nn-close {
    position: absolute;
    top: 14px; right: 16px;
    background: #f1f5f9;
    border: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 30px;
    color: #64748b;
    cursor: pointer;
    transition: background .15s, color .15s;
    display: flex; align-items: center; justify-content: center;
}
#nn-close:hover { background: #e2e8f0; color: #0f172a; }

.nn-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    display: block;
    animation: nn-pop .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes nn-pop {
    from { transform: scale(.4); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
}

.nn-headline {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.nn-subtext {
    font-size: .9rem;
    color: #64748b;
    margin: 0 0 24px;
    line-height: 1.6;
}

.nn-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#nn-email {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: .95rem;
    color: #0f172a;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    background: #f8fafc;
}
#nn-email:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99,102,241,.1);
}
#nn-email::placeholder { color: #94a3b8; }

#nn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .01em;
    box-shadow: 0 4px 16px rgba(99,102,241,.4);
    transition: transform .1s, box-shadow .15s, opacity .15s;
}
#nn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,.5); }
#nn-submit:active { transform: translateY(0); }
#nn-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.nn-msg { font-size:.82rem; margin:10px 0 0; min-height:18px; }
.nn-msg--error   { color: #dc2626; }
.nn-msg--success { color: #16a34a; }

.nn-consent {
    font-size: .72rem;
    color: #94a3b8;
    margin: 12px 0 0;
}

@media (max-width: 480px) {
    #nn-modal { padding: 36px 20px 28px; border-radius: 16px; }
    .nn-headline { font-size: 1.15rem; }
}
