.nlsub-no-scroll { overflow: hidden; }

.nlsub-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.nlsub-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.nlsub-modal.is-open { display: flex; }

.nlsub-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.nlsub-dialog {
    position: relative;
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 420px;
    padding: 28px 24px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #222;
    animation: nlsub-pop 0.18s ease-out;
}

@keyframes nlsub-pop {
    from { transform: translateY(10px) scale(0.98); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

.nlsub-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 4px 8px;
}
.nlsub-close:hover { color: #000; }

.nlsub-title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 600;
    padding-right: 24px;
}

.nlsub-field {
    display: block;
    margin-bottom: 12px;
}
.nlsub-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #444;
}
.nlsub-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
}
.nlsub-field input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.nlsub-submit {
    width: 100%;
    padding: 11px 16px;
    background: #2271b1;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}
.nlsub-submit:hover:not(:disabled) { background: #135e96; }
.nlsub-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.nlsub-message {
    margin-top: 12px;
    font-size: 14px;
    min-height: 1em;
}
.nlsub-message--success { color: #1a7f37; }
.nlsub-message--error   { color: #b42318; }

@media (max-width: 480px) {
    .nlsub-dialog { padding: 24px 18px 20px; max-width: 100%; }
    .nlsub-title { font-size: 18px; }
}