/* ── 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(110, 231, 249, 0.24);
    border-radius: 2rem;
    background:
        radial-gradient(ellipse 85% 60% at 20% 0%, rgba(73, 222, 255, 0.20), transparent 65%),
        radial-gradient(ellipse 95% 70% at 90% 20%, rgba(15, 134, 248, 0.18), transparent 70%),
        linear-gradient(165deg, rgba(7, 24, 56, 0.97), rgba(5, 16, 44, 0.99));
    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(110, 231, 249, 0.24);
    border-radius: 999px;
    background: rgba(8, 33, 72, 0.52);
    color: rgba(227, 244, 255, 0.85);
    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(16, 67, 132, 0.58);
    color: #ffffff;
}

.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: #f2f9ff;
}

.nq-popup__subtitle {
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(216, 234, 252, 0.92);
}

.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: 600;
    color: rgba(216, 234, 252, 0.9);
}

.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(216, 234, 252, 0.78);
    text-align: center;
}

.nq-popup .nq-eyebrow {
    background: rgba(73, 222, 255, 0.16);
    border-color: rgba(110, 231, 249, 0.34);
    color: rgba(220, 240, 255, 0.95);
}

.nq-popup .nq-eyebrow__dot {
    background: linear-gradient(135deg, #49deff, #0f86f8);
    box-shadow: 0 0 0 6px rgba(73, 222, 255, 0.16);
}

.nq-popup .nq-gradient-text {
    background: linear-gradient(120deg, #67ddff 0%, #30b7ff 50%, #7ff3ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.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%;
}
