/* ── NSM Public Styles ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

.nsm-wrapper {
    --red:    #b5141c;
    --red2:   #8f0f15;
    --dark:   #111;
    --light:  #f9f9f9;
    --border: #e5e5e5;
    --text:   #333;
    --muted:  #666;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* ── Group title ────────────────────────────────────────────────────────────── */
.nsm-group-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 36px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--red);
    letter-spacing: -0.01em;
}
.nsm-group-title svg { color: var(--red); flex-shrink: 0; }

/* ── Cards row ──────────────────────────────────────────────────────────────── */
.nsm-cards-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: stretch;
}

/* ── Individual card ────────────────────────────────────────────────────────── */
.nsm-card {
    flex: 1;
    min-width: 220px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: box-shadow .22s, transform .22s;
    display: flex;
    flex-direction: column;
}
.nsm-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,.13);
    transform: translateY(-4px);
}
.nsm-card--popular {
    border-color: var(--red);
}

/* ── Popular ribbon ─────────────────────────────────────────────────────────── */
.nsm-popular-ribbon {
    background: var(--red);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 14px;
    text-align: center;
}

/* ── Card header ────────────────────────────────────────────────────────────── */
.nsm-card__header {
    padding: 18px 20px 14px;
    border-bottom: 2px solid var(--border);
    text-align: center;
    background: #fafafa;
}
.nsm-card--popular .nsm-card__header {
    border-bottom-color: var(--red);
    background: #fff9f9;
}
.nsm-card__type {
    display: block;
    font-weight: 700;
    font-size: .98rem;
    color: var(--dark);
    letter-spacing: -0.01em;
}
.nsm-card__duration {
    font-size: .82rem;
    color: var(--muted);
    font-weight: 500;
    margin-top: 2px;
    display: block;
}
.nsm-card--popular .nsm-card__duration {
    color: var(--red);
    font-weight: 700;
}

/* ── Pricing ────────────────────────────────────────────────────────────────── */
.nsm-card__pricing {
    padding: 18px 20px 10px;
    text-align: center;
    border-bottom: 1px dashed var(--border);
}
.nsm-card__price {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.03em;
    line-height: 1;
}
.nsm-card__per-month {
    font-size: .78rem;
    color: var(--red);
    font-weight: 600;
    margin-top: 4px;
}

/* ── Features list ──────────────────────────────────────────────────────────── */
.nsm-card__features {
    list-style: none;
    margin: 0;
    padding: 16px 20px;
    flex: 1;
}
.nsm-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .82rem;
    color: #444;
    font-weight: 400;
    line-height: 1.5;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}
.nsm-card__features li:last-child {
    border-bottom: none;
}
.nsm-card__features li::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5141c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ── Subscribe button ───────────────────────────────────────────────────────── */
.nsm-btn-subscribe {
    display: block;
    width: calc(100% - 28px);
    margin: 4px 14px 16px;
    padding: 12px 0;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .18s, transform .1s;
}
.nsm-btn-subscribe:hover { background: var(--red2); }
.nsm-btn-subscribe:active { transform: scale(.97); }

/* ── Modal overlay ──────────────────────────────────────────────────────────── */
.nsm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: nsm-fade-in .2s ease;
}
@keyframes nsm-fade-in { from { opacity:0; } to { opacity:1; } }

.nsm-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 480px;
    width: 100%;
    padding: 34px 30px 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: nsm-slide-up .25s ease;
}
@keyframes nsm-slide-up {
    from { opacity:0; transform: translateY(20px); }
    to   { opacity:1; transform: translateY(0); }
}

.nsm-modal__close {
    position: absolute;
    top: 14px; right: 16px;
    background: none; border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}
.nsm-modal__close:hover { background: #f0f0f0; color: var(--dark); }

.nsm-modal__title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}
.nsm-modal__plan {
    font-size: .88rem;
    color: var(--red);
    font-weight: 600;
    margin: 0 0 20px;
}

/* ── Form fields ────────────────────────────────────────────────────────────── */
.nsm-field { margin-bottom: 16px; }
.nsm-field label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.nsm-field label span { color: var(--red); }
.nsm-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    color: var(--dark);
    box-sizing: border-box;
    transition: border-color .15s;
}
.nsm-field input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(181,20,28,.1);
}
.nsm-field small {
    display: block;
    font-size: .74rem;
    color: #888;
    margin-top: 4px;
}

.nsm-modal__amount {
    font-size: .9rem;
    color: var(--dark);
    text-align: center;
    margin: 8px 0 16px;
    font-weight: 500;
}
.nsm-modal__amount strong { color: var(--red); font-size: 1.1rem; font-weight: 800; }

.nsm-btn-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: var(--dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s;
}
.nsm-btn-pay:hover { background: #2a2a2a; }
.nsm-btn-pay:disabled { background: #aaa; cursor: not-allowed; }

.nsm-modal__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: .72rem;
    color: #888;
    margin: 10px 0 0;
}

/* ── Success / Error ────────────────────────────────────────────────────────── */
.nsm-modal__success { text-align: center; padding: 10px 0; }
.nsm-success-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #e6f4ea;
    color: #2e7d32;
    font-size: 1.8rem;
    line-height: 60px;
    margin: 0 auto 14px;
}
.nsm-modal__success h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 8px;
}
.nsm-modal__success p  { font-size: .88rem; color: #555; }

.nsm-modal__error {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fff0f0;
    border-left: 3px solid var(--red);
    border-radius: 4px;
    font-size: .86rem;
    color: #c00;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 650px) {
    .nsm-cards-row { flex-direction: column; }
    .nsm-modal { padding: 24px 18px 20px; }
}
