.npe-card {
	font-family: var(--npe-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
	background: #fff;
	border: 1px solid #eef0f4;
	border-radius: 16px;
	padding: 26px;
	margin: 20px 0;
	box-shadow: 0 4px 16px rgba(17,24,39,0.05);
}
.npe-card h3 { margin-top: 0; font-size: 1.35em; font-weight: 700; }
.npe-role-badge {
	display: inline-block;
	background: linear-gradient(135deg,#6366f1,#4f46e5);
	color: #fff;
	font-size: 0.6em;
	padding: 4px 12px;
	border-radius: 999px;
	vertical-align: middle;
	margin-left: 8px;
}
.npe-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	margin: 16px 0;
}
.npe-stat {
	background: linear-gradient(135deg,#f9fafb,#f3f4f6);
	border-radius: 12px;
	padding: 16px 18px;
	border: 1px solid #f0f1f3;
}
.npe-stat span { display: block; font-size: 0.8em; color: #6b7280; margin-bottom: 4px; }
.npe-stat strong { font-size: 1.3em; color: #111827; }
.npe-quicklinks a { text-decoration: none; font-weight: 600; color: var(--npe-primary,#4f46e5); }
.npe-balance { font-size: 2em; font-weight: 800; color: #111827; }
.npe-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 16px 0; }
.npe-form { background: #f9fafb; border-radius: 12px; padding: 16px; border: 1px solid #f0f1f3; }
.npe-form h4 { margin-top: 0; }
.npe-form input, .npe-form select { display: block; width: 100%; margin-bottom: 8px; padding: 10px; border: 1px solid #e0e2e7; border-radius: 8px; box-sizing: border-box; font-size: 0.95em; }
.npe-form button {
	background: linear-gradient(135deg,var(--npe-primary,#4f46e5),var(--npe-primary,#4338ca));
	color: #fff; border: none; padding: 10px 18px; border-radius: 8px; cursor: pointer; font-weight: 700;
	transition: transform .1s ease, box-shadow .15s ease;
}
.npe-form button:hover { box-shadow: 0 4px 14px color-mix(in srgb, var(--npe-primary,#4f46e5) 35%, transparent); transform: translateY(-1px); }
.npe-form button:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.npe-msg { display: block; margin-top: 6px; font-size: 0.85em; }
.npe-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.npe-table th, .npe-table td { text-align: left; padding: 10px; border-bottom: 1px solid #f1f2f4; font-size: 0.92em; }
.npe-table th { color: #6b7280; font-weight: 600; font-size: 0.82em; text-transform: uppercase; letter-spacing: .03em; }
.npe-status { padding: 3px 10px; border-radius: 999px; font-size: 0.8em; font-weight: 600; }
.npe-status-completed { background: #dcfce7; color: #166534; }
.npe-status-pending, .npe-status-processing { background: #fef9c3; color: #854d0e; }
.npe-status-failed { background: #fee2e2; color: #991b1b; }

.npe-network-tabs { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.npe-network-tab {
	background: #f3f4f6;
	border: 1px solid #e0e2e7;
	color: #374151;
	padding: 10px 22px;
	border-radius: 999px;
	cursor: pointer;
	font-weight: 700;
	font-size: 0.95em;
	transition: all .15s ease;
}
.npe-network-tab:hover { background: #e5e7eb; }
.npe-network-tab.active { background: linear-gradient(135deg,var(--npe-primary,#4f46e5),var(--npe-primary,#4338ca)); border-color: var(--npe-primary,#4338ca); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--npe-primary,#4f46e5) 30%, transparent); }
.npe-hidden { display: none !important; }
.npe-no-products-msg { margin-top: 14px; }

.npe-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 14px; }
.npe-product { border: 1px solid #eef0f4; border-radius: 14px; padding: 16px; transition: box-shadow .15s ease, transform .1s ease; }
.npe-product:hover { box-shadow: 0 6px 20px rgba(17,24,39,0.08); transform: translateY(-2px); }
.npe-product h4 { margin: 0 0 4px; }
.npe-cat { color: #6b7280; font-size: 0.85em; margin: 0 0 8px; }
.npe-price { font-weight: 800; font-size: 1.2em; margin: 0 0 10px; color: var(--npe-primary,#4338ca); }
.npe-product input { width: 100%; margin-bottom: 6px; padding: 8px; border: 1px solid #e0e2e7; border-radius: 8px; box-sizing: border-box; }
.npe-product button {
	width: 100%; background: linear-gradient(135deg,#111827,#1f2937); color: #fff; border: none;
	padding: 10px; border-radius: 8px; cursor: pointer; font-weight: 700;
}
.npe-product button:hover { background: #374151; }

.npe-referral-link { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #e0e2e7; font-family: monospace; }
.npe-copy-row { display: flex; gap: 8px; align-items: center; }
.npe-copy-row .npe-referral-link { flex: 1; }
.npe-copy-btn {
	background: linear-gradient(135deg,var(--npe-primary,#4f46e5),var(--npe-primary,#4338ca));
	color: #fff; border: none; padding: 10px 16px; border-radius: 8px;
	cursor: pointer; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}
.npe-copy-btn:hover { box-shadow: 0 4px 14px color-mix(in srgb, var(--npe-primary,#4f46e5) 35%, transparent); }
.npe-row-saved { background: #dcfce7 !important; transition: background .3s ease; }
.npe-pricing-tabs { margin-bottom: 14px; }

.npe-upload-label { display: block; font-size: 0.85em; font-weight: 700; color: #374151; margin: 4px 0 4px; }
.npe-upload-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.npe-upload-preview { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; border: 1px solid #e0e2e7; }
.npe-upload-preview-wide { width: 90px; height: 48px; }
.npe-upload-msg { font-size: 0.85em; }
.npe-notice { background: #fef3c7; border-radius: 10px; padding: 14px; }
.npe-help { color: #6b7280; font-size: 0.9em; }
.npe-markup-input { width: 90px; padding: 6px; }

.npe-login-to-buy { display: block; text-align: center; background: linear-gradient(135deg,#111827,#1f2937); color: #fff; padding: 10px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.npe-login-to-buy:hover { background: #374151; color: #fff; }

.npe-cart-remove { background: #fee2e2; color: #991b1b; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 0.85em; }
.npe-cart-remove:hover { background: #fecaca; }

.npe-toast {
	position: fixed; top: 20px; right: 20px; z-index: 99999;
	background: #111827; color: #fff; padding: 14px 20px; border-radius: 10px;
	font-weight: 600; font-size: 0.92em; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
	opacity: 0; transform: translateY(-10px); transition: opacity .25s ease, transform .25s ease;
	max-width: 320px;
}
.npe-toast-show { opacity: 1; transform: translateY(0); }
.npe-toast-success { background: linear-gradient(135deg,#059669,#047857); }
.npe-toast-error { background: linear-gradient(135deg,#dc2626,#b91c1c); }

.npe-beneficiary-remove { background: #fee2e2; color: #991b1b; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 0.85em; }
.npe-beneficiary-remove:hover { background: #fecaca; }

.npe-storefront-banner { width: 100%; max-height: 160px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.npe-storefront-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.npe-storefront-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

#npe-bulk-purchase-form select { margin-bottom: 8px; }

.npe-network-landing { text-align: center; }
.npe-network-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 18px;
	margin-top: 20px;
}
.npe-network-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 40px 20px;
	border-radius: 18px;
	text-decoration: none;
	font-weight: 800;
	transition: transform .15s ease, box-shadow .15s ease;
	box-shadow: 0 4px 16px rgba(17,24,39,0.08);
}
.npe-network-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(17,24,39,0.18); color: inherit; }
.npe-network-card-name { font-size: 1.5em; }
.npe-network-card-cta { font-size: 0.85em; font-weight: 600; opacity: 0.85; }

.npe-shop-topbar { background: #fff; border-bottom: 1px solid #eef0f4; margin: -10px -10px 20px; padding: 12px 16px; }
.npe-shop-topbar-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.npe-shop-brand { font-weight: 800; font-size: 1.1em; color: #111827; }
.npe-shop-topbar-actions { display: flex; align-items: center; gap: 14px; }
.npe-account-link { color: #374151; text-decoration: none; font-weight: 600; font-size: 0.92em; }
.npe-account-link:hover { color: #111827; }
.npe-account-link-primary {
	background: linear-gradient(135deg,var(--npe-primary,#4f46e5),var(--npe-primary,#4338ca));
	color: #fff !important;
	padding: 7px 14px;
	border-radius: 999px;
}
.npe-account-link-primary:hover { box-shadow: 0 4px 14px color-mix(in srgb, var(--npe-primary,#4f46e5) 35%, transparent); }

.npe-cart-icon-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #111827;
	text-decoration: none;
	padding: 6px;
}
.npe-cart-icon-svg { display: block; }
.npe-cart-icon-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	background: linear-gradient(135deg,#dc2626,#b91c1c);
	color: #fff;
	font-size: 0.7em;
	font-weight: 700;
	line-height: 1;
	min-width: 16px;
	height: 16px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 3px;
}
