html.nd-twa-resuming body {
    visibility: hidden !important;
}

.nd-twa-plan-modal {
    width: min(560px, calc(100vw - 32px));
    max-width: none;
    margin: auto;
    padding: 0;
    overflow: visible;
    color: #f4f8ff;
    background: transparent;
    border: 0;
}

.nd-twa-plan-modal::backdrop {
    background: rgba(1, 6, 16, 0.82);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    backdrop-filter: blur(12px) saturate(120%);
}

.nd-twa-plan-modal__card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 38px;
    text-align: center;
    background:
        radial-gradient(circle at 50% -10%, rgba(53, 215, 236, 0.2), transparent 45%),
        linear-gradient(145deg, rgba(7, 29, 47, 0.98), rgba(3, 12, 27, 0.99));
    border: 1px solid rgba(94, 226, 242, 0.3);
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nd-twa-plan-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #9fb4c9;
    background: rgba(5, 17, 34, 0.78);
    border: 1px solid rgba(140, 192, 218, 0.18);
    border-radius: 14px;
    cursor: pointer;
}

.nd-twa-plan-modal__close:hover,
.nd-twa-plan-modal__close:focus-visible {
    color: #ffffff;
    border-color: rgba(72, 222, 239, 0.7);
}

.nd-twa-plan-modal__close svg {
    width: 20px;
    height: 20px;
}

.nd-twa-plan-modal__icon {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    color: #042235;
    background: linear-gradient(135deg, #65e4ee, #3ca7ff);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(62, 200, 239, 0.25);
}

.nd-twa-plan-modal__icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.25;
}

.nd-twa-plan-modal__eyebrow {
    margin: 4px 0 0;
    color: #55dce9;
    font: 700 0.72rem/1.2 "JetBrains Mono", monospace;
    letter-spacing: 0.16em;
}

.nd-twa-plan-modal h2 {
    max-width: 430px;
    margin: 0;
    color: #f7fbff;
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.nd-twa-plan-modal #ndTwaPlanCopy {
    max-width: 445px;
    margin: 2px 0 8px;
    color: #aebed0;
    font-size: 1rem;
    line-height: 1.65;
}

.nd-twa-plan-modal__actions {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 10px;
    width: 100%;
}

.nd-twa-plan-modal__button {
    min-height: 52px;
    padding: 0 18px;
    font: 700 0.92rem/1 "Space Grotesk", sans-serif;
    border-radius: 15px;
    cursor: pointer;
}

.nd-twa-plan-modal__button--secondary {
    color: #d7e4ef;
    background: rgba(7, 22, 40, 0.85);
    border: 1px solid rgba(140, 192, 218, 0.22);
}

.nd-twa-plan-modal__button--primary {
    color: #03131f;
    background: linear-gradient(135deg, #66e4eb, #3dadff);
    border: 0;
    box-shadow: 0 12px 28px rgba(45, 185, 237, 0.2);
}

.nd-twa-plan-modal__button:hover,
.nd-twa-plan-modal__button:focus-visible {
    transform: translateY(-1px);
}

@media (max-width: 520px) {
    .nd-twa-plan-modal {
        width: calc(100vw - 24px);
    }

    .nd-twa-plan-modal__card {
        gap: 12px;
        padding: 32px 20px 20px;
        border-radius: 24px;
    }

    .nd-twa-plan-modal__close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }

    .nd-twa-plan-modal__actions {
        grid-template-columns: 1fr;
    }

}

@media (prefers-reduced-motion: reduce) {
    .nd-twa-plan-modal__button {
        transition: none;
    }
}
