/* ============================================
   News Membership — Public Styles
   ============================================ */

/* --- Paywall Wrapper --- */
.nm-paywall-wrap {
    position: relative;
    margin: 0 0 32px;
}

.nm-paywall-fade {
    height: 100px;
    margin-bottom: -2px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 50%, #fff 100%);
    pointer-events: none;
}

.nm-teaser {
    position: relative;
    margin-bottom: 0;
}

.nm-teaser > *:last-child {
    margin-bottom: 0;
}

.nm-paywall-box {
    background: #fff;
    border-top: 3px solid #2563eb;
    border-radius: 0 0 12px 12px;
    padding: 32px 28px 28px;
    text-align: center;
    box-shadow: 0 4px 32px rgba(0,0,0,.08);
    max-width: 620px;
    margin: 0 auto;
}

.nm-paywall-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.nm-paywall-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111827;
}

.nm-paywall-message {
    color: #6b7280;
    margin: 0 0 18px;
    line-height: 1.6;
    font-size: .95rem;
}

.nm-paywall-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
}

.nm-price-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111827;
}

.nm-price-period {
    color: #6b7280;
    font-size: .9rem;
}

.nm-paywall-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.nm-paywall-sub-note {
    font-size: .78rem;
    color: #9ca3af;
    margin-top: 12px;
    margin-bottom: 0;
}

/* --- Buttons --- */
.nm-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
    line-height: 1;
}

.nm-btn-lg {
    padding: 14px 36px;
    font-size: 1.05rem;
}

.nm-btn-primary {
    background: #2563eb;
    color: #fff !important;
    border-color: #2563eb;
}

.nm-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff !important;
}

.nm-btn-secondary {
    background: transparent;
    color: #2563eb !important;
    border-color: #2563eb;
}

.nm-btn-secondary:hover {
    background: #eff6ff;
}

button.nm-btn {
    font-family: inherit;
}

button.nm-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* --- Subscribe / Account Card --- */
.nm-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 40px 36px;
    max-width: 560px;
    margin: 0 auto 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.nm-card-active {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,.12);
}

.nm-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.nm-card-header h2 {
    margin: 0 0 8px;
    font-size: 1.6rem;
}

.nm-price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
}

.nm-price-big {
    font-size: 2.4rem;
    font-weight: 800;
    color: #2563eb;
}

.nm-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nm-features li {
    font-size: .95rem;
    color: #374151;
}

.nm-auth-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.nm-small-note {
    font-size: .8rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 12px;
}

/* --- Status Badge --- */
.nm-status-badge {
    font-size: 1rem;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 12px;
}

.nm-info-table {
    width: 100%;
    margin-bottom: 24px;
    border-collapse: collapse;
}

.nm-info-table th,
.nm-info-table td {
    padding: 8px 0;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    font-size: .95rem;
}

.nm-info-table th {
    color: #6b7280;
    width: 140px;
}

/* --- Badges --- */
.nm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.nm-badge-active {
    background: #dcfce7;
    color: #16a34a;
}

.nm-badge-inactive {
    background: #fee2e2;
    color: #dc2626;
}

/* --- Premium Label --- */
.nm-premium-label {
    display: inline-block;
    background: #fef9c3;
    color: #854d0e;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: .8rem;
    font-weight: 700;
    vertical-align: middle;
}

/* --- Notices --- */
.nm-notice {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: .95rem;
}

.nm-notice-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.nm-notice-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

/* --- Spinner --- */
.nm-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: nm-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes nm-spin {
    to { transform: rotate(360deg); }
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .nm-paywall-box,
    .nm-card {
        padding: 24px 18px;
    }

    .nm-price-big {
        font-size: 1.8rem;
    }
}

/* --- Check Your Email Screen --- */
.nm-card-email {
    text-align: center;
}

.nm-email-icon {
    font-size: 3rem;
    margin-bottom: 14px;
}

.nm-email-msg {
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 28px;
    font-size: .97rem;
}

.nm-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    text-align: left;
}

.nm-step {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: .93rem;
    color: #374151;
}

.nm-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 700;
}

/* ─── Plan Cards ──────────────────────────────────────────── */
.nm-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.nm-plan {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color .2s, box-shadow .2s;
}

.nm-plan-featured {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.nm-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 99px;
    white-space: nowrap;
}

.nm-plan-title {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    margin-top: 6px;
}

.nm-plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.nm-plan-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111827;
}

.nm-plan-period {
    font-size: .82rem;
    color: #6b7280;
}

.nm-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .85rem;
    color: #374151;
    flex: 1;
}

.nm-plan .nm-btn {
    width: 100%;
    margin-top: auto;
}

/* One-time badge */
.nm-badge-onetime {
    background: #fef3c7;
    color: #92400e;
}

/* Info notice */
.nm-notice-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Responsive: stack on mobile */
@media (max-width: 520px) {
    .nm-plans {
        grid-template-columns: 1fr;
    }
    .nm-plan-featured {
        order: -1;
    }
}

/* ── Account Page ─────────────────────────────────────────── */
.nm-account-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.nm-account-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.nm-profile-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nm-avatar-img {
    border-radius: 50%;
    width: 64px;
    height: 64px;
}

.nm-account-info {
    flex: 1;
}

.nm-account-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.nm-account-email {
    font-size: .88rem;
    color: #6b7280;
    margin-top: 2px;
}

.nm-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.nm-billing-note {
    color: #6b7280;
    font-size: .9rem;
    margin: 0 0 14px;
    line-height: 1.6;
}

.nm-plan-switch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
    flex-wrap: wrap;
}

.nm-plan-switch-info strong {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    color: #111827;
}

.nm-plan-switch-info p {
    margin: 0;
    font-size: .88rem;
    color: #6b7280;
    line-height: 1.5;
}

.nm-account-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Ghost button variant */
.nm-btn-ghost {
    background: transparent;
    color: #374151 !important;
    border: 1px solid #d1d5db;
    font-size: .88rem;
    padding: 8px 16px;
}

.nm-btn-ghost:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.nm-logout-btn {
    margin-left: auto;
    font-size: .85rem;
    padding: 7px 14px;
}

@media (max-width: 520px) {
    .nm-profile-section {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .nm-logout-btn {
        margin-left: 0;
    }
    .nm-plan-switch-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .nm-plan-switch-card .nm-btn {
        width: 100%;
        text-align: center;
    }
}

/* ── Fix unwanted scrollbar/overflow artifacts on account page ── */
.nm-account-wrap {
    overflow: hidden;
}

.nm-account-section {
    overflow: hidden;
}

/* ── Remove ghost bullets/pseudo-elements near account sections ── */
.nm-account-wrap *::before,
.nm-account-wrap *::after {
    /* Only reset list-style pseudo content that themes add */
}

.nm-account-wrap li::before,
.nm-account-wrap li::after {
    display: none !important;
    content: none !important;
}

.nm-account-section::before,
.nm-account-section::after {
    display: none !important;
    content: none !important;
}

/* Remove any list-style bullets the theme applies globally */
.nm-account-wrap ul,
.nm-account-wrap li {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.nm-account-wrap ul::before,
.nm-account-wrap ul::after,
.nm-account-wrap ol::before,
.nm-account-wrap ol::after {
    display: none !important;
    content: none !important;
}
