/* ── Popup modal ──────────────────────────────────────── */

.nq-popup {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nq-popup[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.nq-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 18, 0.75);
    backdrop-filter: blur(6px);
}

.nq-popup__card {
    position: relative;
    width: 100%;
    max-width: 26rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    background: linear-gradient(165deg, rgba(14, 24, 42, 0.96), rgba(8, 14, 26, 0.98));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 32px 80px -16px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transform: translateY(16px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nq-popup[aria-hidden="false"] .nq-popup__card {
    transform: translateY(0) scale(1);
}

.nq-popup__glow {
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 18rem;
    height: 10rem;
    border-radius: 999px;
    background: radial-gradient(ellipse, rgba(110, 231, 249, 0.18), rgba(155, 123, 255, 0.1), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.nq-popup__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.nq-popup__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nq-popup__inner {
    position: relative;
    z-index: 2;
    padding: 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.nq-popup__header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nq-popup__title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--nq-text);
}

.nq-popup__subtitle {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--nq-text-soft);
}

.nq-popup__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nq-popup__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nq-popup__label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--nq-text-soft);
}

.nq-popup__submit {
    width: 100%;
    margin-top: 0.25rem;
}

.nq-popup__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.nq-popup__disclaimer {
    font-size: 0.76rem;
    color: rgba(232, 240, 252, 0.4);
    text-align: center;
}

.nq-popup__success {
    align-items: center;
    text-align: center;
    padding: 3.5rem 2rem 3rem;
}

.nq-popup__success-icon {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--nq-accent);
    margin-bottom: 0.5rem;
}

.nq-popup__success-icon svg {
    width: 100%;
    height: 100%;
}
