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

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

.nm-paywall-fade {
    height: 80px;
    margin-bottom: -4px;
    background: linear-gradient(to bottom, transparent, var(--nm-bg, #fff));
    pointer-events: none;
}

.nm-paywall-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 36px 32px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    max-width: 520px;
    margin: 0 auto;
}

.nm-paywall-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

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

.nm-paywall-message {
    color: #6b7280;
    margin: 0 0 20px;
    line-height: 1.6;
}

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

.nm-price-amount {
    font-size: 2rem;
    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: .8rem;
    color: #9ca3af;
    margin-top: 14px;
    margin-bottom: 0;
}

.nm-teaser {
    opacity: .85;
}

/* --- 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;
    }
}
