/* ── Nexus Membership Frontend ──────────────────────────────────────────── */

/* Plans grid */
.nxm-plans-wrap {
	padding: 16px 0;
}
.nxm-plans-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
	align-items: start;
}

.nxm-plan-card {
	border: 2px solid #e2e8f0;
	border-radius: 14px;
	padding: 28px 24px;
	background: #fff;
	transition: box-shadow .2s, border-color .2s;
	position: relative;
}
.nxm-plan-card:hover {
	box-shadow: 0 8px 28px rgba(0,0,0,.1);
	border-color: #6366f1;
}
.nxm-plan-popular {
	border-color: #6366f1;
	box-shadow: 0 4px 16px rgba(99,102,241,.15);
}

.nxm-plan-badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	background: #6366f1;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 14px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: .05em;
	white-space: nowrap;
}

.nxm-plan-name {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #1e293b;
}
.nxm-plan-desc {
	font-size: 14px;
	color: #64748b;
	margin: 0 0 16px;
	min-height: 2.5em;
}
.nxm-plan-price {
	font-size: 32px;
	font-weight: 800;
	color: #1e293b;
	margin: 0 0 4px;
}
.nxm-plan-price sup { font-size: 18px; vertical-align: super; }
.nxm-plan-cycle {
	font-size: 13px;
	color: #94a3b8;
	margin: 0 0 20px;
}
.nxm-plan-features {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}
.nxm-plan-features li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #374151;
	padding: 5px 0;
	border-bottom: 1px solid #f1f5f9;
}
.nxm-plan-features li:last-child { border-bottom: none; }
.nxm-plan-features svg { flex-shrink: 0; }

.nxm-plan-cta {
	display: block;
	width: 100%;
	text-align: center;
	padding: 12px 20px;
	background: #6366f1;
	color: #fff;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background .2s;
	box-sizing: border-box;
}
.nxm-plan-cta:hover { background: #4f46e5; color: #fff; }
.nxm-plan-popular .nxm-plan-cta { background: #6366f1; }

.nxm-plans-empty {
	text-align: center;
	color: #94a3b8;
	padding: 32px;
}

/* Application form */
.nxm-form-wrap {
	max-width: 600px;
	margin: 0 auto;
	padding: 16px 0;
}
.nxm-form-wrap h3 {
	font-size: 18px;
	margin: 0 0 20px;
	color: #1e293b;
}

.nxm-app-form { display: flex; flex-direction: column; gap: 16px; }

.nxm-field { display: flex; flex-direction: column; gap: 6px; }
.nxm-field label {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}
.nxm-field input,
.nxm-field select,
.nxm-field textarea {
	border: 1px solid #d1d5db;
	border-radius: 7px;
	padding: 10px 14px;
	font-size: 14px;
	color: #1e293b;
	width: 100%;
	box-sizing: border-box;
	transition: border-color .15s;
}
.nxm-field input:focus,
.nxm-field select:focus,
.nxm-field textarea:focus {
	outline: none;
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}

.nxm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .nxm-form-row { grid-template-columns: 1fr; } }

/* Payment section */
.nxm-payment-section {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
	background: #f8fafc;
}
.nxm-payment-section h4 { margin: 0 0 12px; font-size: 14px; color: #374151; }

/* Honeypot */
.nxm-hp { display: none !important; }

/* Submit button */
.nxm-submit-btn {
	width: 100%;
	padding: 13px;
	background: #6366f1;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
}
.nxm-submit-btn:hover:not(:disabled) { background: #4f46e5; }
.nxm-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Form messages */
.nxm-form-msg {
	padding: 12px 16px;
	border-radius: 7px;
	font-size: 14px;
	display: none;
}
.nxm-form-msg.nxm-ok  { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; display: block; }
.nxm-form-msg.nxm-err { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; display: block; }

/* Login notice */
.nxm-login-notice {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	padding: 16px 20px;
	font-size: 14px;
	color: #1d4ed8;
}
.nxm-login-notice a { color: #1d4ed8; font-weight: 600; }

/* Membership status */
.nxm-status-wrap { padding: 8px 0; }

.nxm-status-card {
	border-radius: 10px;
	padding: 20px 24px;
	max-width: 480px;
}
.nxm-status-active {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
}
.nxm-status-pending {
	background: #fefce8;
	border: 1px solid #fde68a;
}
.nxm-status-none {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.nxm-status-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.nxm-status-icon { font-size: 22px; }
.nxm-status-title { font-size: 17px; font-weight: 700; color: #1e293b; margin: 0; }
.nxm-status-tier { font-size: 13px; color: #64748b; margin: 4px 0 0; }

.nxm-status-features { list-style: none; margin: 12px 0 0; padding: 0; }
.nxm-status-features li {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: #374151;
	padding: 4px 0;
}

.nxm-status-expiry {
	font-size: 12px;
	color: #94a3b8;
	margin: 10px 0 0;
}

.nxm-status-actions { margin-top: 16px; }
.nxm-btn-upgrade {
	display: inline-block;
	padding: 8px 18px;
	background: #6366f1;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}
.nxm-btn-upgrade:hover { background: #4f46e5; color: #fff; }

/* Content gate */
.nxm-content-gate {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 28px 24px;
	text-align: center;
	background: linear-gradient(to bottom, #f8fafc, #fff);
	margin: 16px 0;
}
.nxm-gate-icon { font-size: 32px; margin-bottom: 10px; }
.nxm-gate-title { font-size: 18px; font-weight: 700; color: #1e293b; margin: 0 0 8px; }
.nxm-gate-text { font-size: 14px; color: #64748b; margin: 0 0 18px; }
.nxm-gate-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.nxm-gate-btn {
	display: inline-block;
	padding: 9px 20px;
	background: #6366f1;
	color: #fff;
	border-radius: 7px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: background .15s;
}
.nxm-gate-btn:hover { background: #4f46e5; color: #fff; }
.nxm-gate-btn-outline {
	background: #fff;
	color: #6366f1;
	border: 2px solid #6366f1;
}
.nxm-gate-btn-outline:hover { background: #f5f3ff; color: #4f46e5; }

/* Inline gate (inside content shortcode) */
.nxm-content-gate-inline {
	border-radius: 8px;
	border: 1px dashed #d1d5db;
	padding: 16px 20px;
	background: #f9fafb;
	text-align: center;
	font-size: 14px;
	color: #6b7280;
	margin: 8px 0;
}
