/* Partner bizcards — brand palette #2A4029 / #3A3028 / white */

.nl-bizcards {
	--bc-green: #2a4029;
	--bc-brown: #3a3028;
	--bc-cream: #f7f4ef;
	--bc-white: #ffffff;
	--bc-muted: #8a7f74;
	display: grid;
	gap: 20px;
}

.nl-bizcards__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nl-bizcards__category {
	appearance: none;
	border: 1px solid #d8d0c6;
	border-radius: 999px;
	padding: 8px 13px;
	background: #fff;
	color: var(--bc-brown);
	font: 600 0.86rem/1 system-ui, sans-serif;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nl-bizcards__category:hover,
.nl-bizcards__category.is-active {
	border-color: var(--bc-green);
	background: var(--bc-green);
	color: #fff;
}

.nl-bizcards__row {
	display: grid;
	gap: 16px;
}

.nl-bizcards__templates {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
}

.nl-bizcards__tpl {
	appearance: none;
	border: 2px solid transparent;
	border-radius: 12px;
	padding: 0;
	background: var(--bc-cream);
	cursor: pointer;
	overflow: hidden;
	text-align: left;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.nl-bizcards__tpl:hover {
	transform: translateY(-1px);
}

.nl-bizcards__tpl.is-active {
	border-color: var(--bc-green);
}

.nl-bizcards__tpl-stage {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.nl-bizcards__tpl-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	background: var(--bc-cream);
}

.nl-bizcards__tpl-live {
	position: absolute;
	display: block;
	padding: 2px;
	background: #fff;
	pointer-events: none;
}
.nl-bizcards__tpl-live canvas,
.nl-bizcards__tpl-live img,
.nl-bizcards__tpl-live table {
	display: block;
	width: 100% !important;
	height: 100% !important;
}
.nl-bizcards__tpl-live--01 { left: 62.9%; top: 20.7%; width: 31.8%; height: 47.7%; }
.nl-bizcards__tpl-live--02 { left: 65.6%; top: 13.3%; width: 29.3%; height: 44%; }
.nl-bizcards__tpl-live--03 { left: 24%; top: 52%; width: 22.8%; height: 34%; }
.nl-bizcards__tpl-live--04 { left: 61.4%; top: 20.8%; width: 34%; height: 51%; }
.nl-bizcards__tpl-live--05 { left: 64.4%; top: 32.3%; width: 21.1%; height: 31.7%; border-radius: 4px; }
.nl-bizcards__tpl-live--06 { left: 2%; top: 13.3%; width: 46.7%; height: 70%; }
.nl-bizcards__tpl-live--07 { left: 66.2%; top: 21%; width: 27.8%; height: 41.7%; }
.nl-bizcards__tpl-live--08 { left: 73%; top: 17.3%; width: 23.3%; height: 35%; }
.nl-bizcards__tpl-live--09 { left: 60.2%; top: 27.3%; width: 31.1%; height: 46.7%; }
.nl-bizcards__tpl-live--10 { left: 69.4%; top: 29%; width: 24.4%; height: 36.7%; }

.nl-bizcards__tpl-label {
	display: block;
	padding: 8px 10px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--bc-brown);
	background: var(--bc-white);
	border-top: 1px solid #e8e2db;
}

.nl-bizcards__controls {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	align-items: end;
}

.nl-bizcards__field label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	margin-bottom: 4px;
	color: var(--bc-brown);
}

.nl-bizcards__field input,
.nl-bizcards__field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #e8e2db;
	border-radius: 10px;
	font: inherit;
	color: var(--bc-brown);
	background: #fff;
}

.nl-bizcards__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.nl-bizcards__preview-wrap {
	overflow: auto;
	padding: 12px;
	background: linear-gradient(165deg, #eef2ee 0%, #f7f4ef 60%);
	border: 1px solid #e8e2db;
	border-radius: 14px;
}

.nl-bizcards__hint {
	margin: 0;
	font-size: 0.88rem;
	color: var(--bc-muted);
}

/* Card canvas 900×500 */
.nl-bc {
	position: relative;
	width: 900px;
	height: 600px;
	overflow: hidden;
	box-sizing: border-box;
	font-family: Georgia, "Times New Roman", serif;
	color: var(--bc-brown);
	background: var(--bc-white);
}

.nl-bc *,
.nl-bc *::before,
.nl-bc *::after {
	box-sizing: border-box;
}

.nl-bc__brand {
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 700;
}

.nl-bc__name {
	font-size: 34px;
	line-height: 1.15;
	font-weight: 600;
	margin: 0;
}

.nl-bc__sub {
	margin: 0;
	font-size: 16px;
	opacity: 0.85;
	font-family: system-ui, sans-serif;
}

.nl-bc__code {
	font-family: system-ui, sans-serif;
	font-weight: 700;
	letter-spacing: 0.08em;
	font-size: 22px;
}

.nl-bc__meta {
	font-family: system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.45;
}

.nl-bc__qr {
	width: 140px;
	height: 140px;
	background: #fff;
	padding: 8px;
	flex-shrink: 0;
}

.nl-bc__qr > div,
.nl-bc__qr canvas,
.nl-bc__qr img,
.nl-bc__qr table {
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
}

.nl-bc__site {
	font-family: system-ui, sans-serif;
	font-size: 12px;
	letter-spacing: 0.04em;
}

/* Generated image templates with live QR and promo overlays. */
.nl-bc--image {
	background-color: #173f30;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

.nl-bc__live-qr {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	padding: 10px;
	background: #fff;
	overflow: hidden;
}

.nl-bc__live-qr > div,
.nl-bc__live-qr canvas,
.nl-bc__live-qr img,
.nl-bc__live-qr table {
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
}

.nl-bc__live-code {
	position: absolute;
	z-index: 3;
	box-sizing: border-box;
	font: 700 24px/1.2 system-ui, sans-serif;
	letter-spacing: 0.04em;
	text-align: center;
	white-space: nowrap;
}

.nl-bc__live-discount {
	position: absolute;
	z-index: 3;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	pointer-events: none;
}

.nl-bc__live-discount-text {
	font: 500 20px/1.25 system-ui, sans-serif;
	letter-spacing: 0.01em;
}

.nl-bc__live-discount-value {
	font: 700 24px/1.1 system-ui, sans-serif;
	letter-spacing: 0.02em;
}

.nl-bc--image-01 .nl-bc__live-qr { left: 566px; top: 124px; width: 286px; height: 286px; }
.nl-bc--image-01 .nl-bc__live-code { left: 560px; top: 436px; width: 305px; padding: 8px; color: #fff; background: #073526; }
.nl-bc--image-01 .nl-bc__live-discount { left: 36px; top: 523px; width: 510px; color: #e8dcc8; }

.nl-bc--image-02 .nl-bc__live-qr { left: 590px; top: 80px; width: 264px; height: 264px; border-radius: 8px; }
.nl-bc--image-02 .nl-bc__live-code { left: 588px; top: 482px; width: 280px; padding: 9px; color: #fff; background: #173f30; }
.nl-bc--image-02 .nl-bc__live-discount { left: 36px; top: 508px; width: 530px; color: #173f30; }

.nl-bc--image-03 .nl-bc__live-qr { left: 216px; top: 312px; width: 205px; height: 205px; border-radius: 12px; }
.nl-bc--image-03 .nl-bc__live-code { left: 405px; top: 386px; width: 210px; padding: 13px 8px; color: #b85c3b; background: #fff; }
.nl-bc--image-03 .nl-bc__live-discount { left: 36px; top: 533px; width: auto; max-width: 820px; color: #fff; flex-direction: row; align-items: baseline; gap: 12px; }
.nl-bc--image-03 .nl-bc__live-discount-text,
.nl-bc--image-03 .nl-bc__live-discount-value { white-space: nowrap; }

.nl-bc--image-04 .nl-bc__live-qr { left: 553px; top: 125px; width: 306px; height: 306px; border-radius: 8px; }
.nl-bc--image-04 .nl-bc__live-code { left: 560px; top: 454px; width: 300px; padding: 10px; color: #a8b99a; background: #211b17; }
.nl-bc--image-04 .nl-bc__live-discount { left: 36px; top: 508px; width: 500px; color: #c5d0bb; }

.nl-bc--image-05 .nl-bc__live-qr { left: 580px; top: 194px; width: 190px; height: 190px; border-radius: 8px; padding: 10px; }
.nl-bc--image-05 .nl-bc__live-code { left: 572px; top: 394px; width: 230px; padding: 10px; color: #172b22; background: #fbf8f1; }
.nl-bc--image-05 .nl-bc__live-discount { left: 40px; top: 508px; width: auto; max-width: 500px; padding: 6px 10px; color: #172b22; background: #fbf8f1; border-radius: 6px; }

.nl-bc--image-06 .nl-bc__live-qr { left: 18px; top: 80px; width: 420px; height: 420px; }
.nl-bc--image-06 .nl-bc__live-code { left: 491px; top: 483px; width: 360px; padding: 15px; color: #073526; background: #eaf1c9; border-radius: 16px; font-size: 34px; }
.nl-bc--image-06 .nl-bc__live-discount { left: 24px; top: 508px; width: auto; max-width: 450px; padding: 6px 10px; color: #eaf1c9; background: #073526; border-radius: 6px; }

.nl-bc--image-07 .nl-bc__live-qr { left: 596px; top: 126px; width: 250px; height: 250px; border: 2px solid #c7a35e; border-radius: 10px; }
.nl-bc--image-07 .nl-bc__live-code { left: 585px; top: 512px; width: 270px; padding: 8px; color: #d8bd81; background: #071a13; }
.nl-bc--image-07 .nl-bc__live-discount { left: 36px; top: 478px; width: 520px; color: #d8bd81; }

.nl-bc--image-08 .nl-bc__live-qr { left: 657px; top: 104px; width: 210px; height: 210px; border-radius: 10px; }
.nl-bc--image-08 .nl-bc__live-code { left: 650px; top: 321px; width: 225px; padding: 14px; color: #fff; background: #173f30; border-radius: 9px; }
.nl-bc--image-08 .nl-bc__live-discount { left: 36px; top: 543px; width: 600px; color: #f7f4ef; }

.nl-bc--image-09 .nl-bc__live-qr { left: 542px; top: 164px; width: 280px; height: 280px; border-radius: 10px; }
.nl-bc--image-09 .nl-bc__live-code { left: 541px; top: 482px; width: 300px; padding: 10px; color: #d8bd81; background: #123b2c; }
.nl-bc--image-09 .nl-bc__live-discount { left: 28px; top: 508px; width: 490px; color: #173f30; }

.nl-bc--image-10 .nl-bc__live-qr { left: 625px; top: 174px; width: 220px; height: 220px; border-radius: 8px; }
.nl-bc--image-10 .nl-bc__live-code { left: 632px; top: 420px; width: 205px; padding: 10px; color: #211b17; background: #f6f0e5; letter-spacing: 0.16em; }
.nl-bc--image-10 .nl-bc__live-discount { left: 40px; top: 543px; width: 560px; color: #fff; }

/* 01 classic-green */
.nl-bc--01 {
	background: linear-gradient(135deg, #2a4029 0%, #3a5238 100%);
	color: #fff;
	padding: 40px 44px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 24px;
	align-items: center;
}
.nl-bc--01 .nl-bc__brand { color: rgba(255, 255, 255, 0.7); margin-bottom: 18px; }
.nl-bc--01 .nl-bc__name { color: #fff; margin-bottom: 8px; }
.nl-bc--01 .nl-bc__sub { color: rgba(255, 255, 255, 0.85); margin-bottom: 22px; }
.nl-bc--01 .nl-bc__code { color: #fff; margin-bottom: 10px; }
.nl-bc--01 .nl-bc__meta { color: rgba(255, 255, 255, 0.9); }
.nl-bc--01 .nl-bc__qr { border-radius: 8px; }

/* 02 science-clinic */
.nl-bc--02 {
	background:
		radial-gradient(circle at 15% 18%, transparent 0 7px, rgba(42, 64, 41, 0.18) 8px 9px, transparent 10px),
		radial-gradient(circle at 23% 28%, transparent 0 5px, rgba(42, 64, 41, 0.2) 6px 7px, transparent 8px),
		linear-gradient(115deg, #faf7f1 0 68%, #173f30 68% 100%);
	color: #173f30;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	text-align: left;
	padding: 42px 330px 42px 48px;
	gap: 10px;
}
.nl-bc--02 .nl-bc__brand { color: #173f30; font-size: 22px; }
.nl-bc--02 .nl-bc__name { font-size: 42px; margin: 10px 0; }
.nl-bc--02 .nl-bc__code { position: absolute; right: 54px; bottom: 48px; width: 220px; color: #fff; text-align: center; font-size: 20px; }
.nl-bc--02 .nl-bc__qr { position: absolute; right: 84px; top: 66px; width: 160px; height: 160px; border-radius: 8px; }
.nl-bc--02 .nl-bc__site { position: absolute; right: 54px; bottom: 22px; width: 220px; color: rgba(255,255,255,.78); text-align: center; }

/* 03 energy-result */
.nl-bc--03 {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	background: #f8f3e9;
}
.nl-bc--03 .nl-bc__left {
	background:
		radial-gradient(circle at -5% 110%, #173f30 0 42%, transparent 43%),
		#f8f3e9;
	color: #173f30;
	padding: 42px 36px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.nl-bc--03 .nl-bc__right {
	background: linear-gradient(145deg, #b95e3d, #d47c56);
	color: #fff;
	padding: 36px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
}
.nl-bc--03 .nl-bc__brand { color: #173f30; }
.nl-bc--03 .nl-bc__name { color: #173f30; margin: 12px 0; font-size: 40px; }
.nl-bc--03 .nl-bc__sub { color: #173f30; }
.nl-bc--03 .nl-bc__code { color: #173f30; background: #fff; padding: 9px 14px; border-radius: 10px; }

/* 04 medical-trust */
.nl-bc--04 {
	background:
		linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
		#211b17;
	background-size: 34px 34px;
	color: #fff;
	border: 1px solid #40382f;
	padding: 36px 40px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 28px;
	align-items: stretch;
}
.nl-bc--04::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 10px;
	background: #8fa77e;
}
.nl-bc--04 .nl-bc__brand { color: #a8b99a; margin-bottom: 20px; }
.nl-bc--04 .nl-bc__name { color: #fff; margin-bottom: 6px; }
.nl-bc--04 .nl-bc__sub { color: rgba(255,255,255,.82); margin-bottom: 28px; }
.nl-bc--04 .nl-bc__code { color: #a8b99a; margin-bottom: 8px; }
.nl-bc--04 .nl-bc__meta { color: rgba(255,255,255,.72); }
.nl-bc--04 .nl-bc__qr { border: 1px solid #7f8f72; }

/* 05 botanical */
.nl-bc--05 {
	background:
		radial-gradient(ellipse at 4% 8%, #1f3526 0 7%, transparent 7.5%),
		radial-gradient(ellipse at 96% 12%, #314836 0 8%, transparent 8.5%),
		radial-gradient(ellipse at 8% 95%, #263d2d 0 9%, transparent 9.5%),
		#fbf8f1;
	color: #172b22;
	padding: 40px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 20px;
	align-items: end;
}
.nl-bc--05 .nl-bc__brand {
	position: absolute;
	top: 36px;
	left: 40px;
	color: #8b754f;
}
.nl-bc--05 .nl-bc__name { color: #172b22; font-size: 40px; max-width: 520px; }
.nl-bc--05 .nl-bc__code {
	position: absolute;
	top: 36px;
	right: 40px;
	color: #8b754f;
	font-size: 18px;
}
.nl-bc--05 .nl-bc__sub { color: #42554a; }
.nl-bc--05 .nl-bc__meta { color: #5f6b63; margin-top: 16px; }
.nl-bc--05 .nl-bc__qr { width: 150px; height: 150px; border: 2px solid #d5c59f; border-radius: 50%; padding: 15px; }

/* 06 oversized-qr */
.nl-bc--06 {
	background: #f7f4ef;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 28px;
	padding: 32px 36px;
	align-items: center;
}
.nl-bc--06 .nl-bc__qr {
	width: 280px;
	height: 280px;
	padding: 12px;
	border: 3px solid #2a4029;
}
.nl-bc--06 .nl-bc__brand { color: #2a4029; margin-bottom: 16px; }
.nl-bc--06 .nl-bc__name { margin-bottom: 8px; }
.nl-bc--06 .nl-bc__code { color: #2a4029; font-size: 28px; margin: 18px 0 10px; }

/* 07 longevity */
.nl-bc--07 {
	background:
		repeating-radial-gradient(circle at 28% 50%, transparent 0 15px, rgba(199,163,94,.16) 16px 17px),
		linear-gradient(135deg, #071a13, #0d2a20);
	padding: 28px;
}
.nl-bc--07 .nl-bc__inner {
	background: rgba(4, 24, 17, 0.62);
	height: 100%;
	border: 1px solid rgba(199,163,94,.55);
	border-radius: 12px;
	padding: 32px 36px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 20px;
	align-items: center;
}
.nl-bc--07 .nl-bc__brand { color: #c7a35e; margin-bottom: 14px; }
.nl-bc--07 .nl-bc__name { color: #d8bd81; }
.nl-bc--07 .nl-bc__sub, .nl-bc--07 .nl-bc__meta, .nl-bc--07 .nl-bc__site { color: #e7dbc1; }
.nl-bc--07 .nl-bc__code { color: #d8bd81; margin: 14px 0 8px; }
.nl-bc--07 .nl-bc__qr { border: 2px solid #c7a35e; border-radius: 10px; }

/* 08 personal-plan */
.nl-bc--08 {
	background:
		radial-gradient(circle at 83% 14%, rgba(42,64,41,.12) 0 4px, transparent 5px) 0 0 / 24px 24px,
		linear-gradient(160deg, #fff 0 82%, #173f30 82%);
	padding: 28px 36px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.nl-bc--08 .nl-bc__name {
	font-family: system-ui, sans-serif;
	font-size: 52px;
	line-height: 1;
	letter-spacing: -0.02em;
	max-width: 620px;
}
.nl-bc--08 .nl-bc__bottom {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 16px;
	border-top: 2px solid #9f7b4d;
	padding-top: 18px;
}
.nl-bc--08 .nl-bc__code { color: #2a4029; font-size: 24px; }
.nl-bc--08 .nl-bc__qr { width: 110px; height: 110px; }

/* 09 contrast-split */
.nl-bc--09 {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr 0.9fr;
}
.nl-bc--09 .nl-bc__col {
	padding: 28px 22px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
}
.nl-bc--09 .nl-bc__col--a { background: #faf6ed; color: #173f30; }
.nl-bc--09 .nl-bc__col--b { background: #faf6ed; color: #3a3028; border-left: 1px solid #d8c79e; }
.nl-bc--09 .nl-bc__col--c {
	background: #123b2c;
	color: #fff;
	align-items: center;
	text-align: center;
}
.nl-bc--09 .nl-bc__brand { color: #9f7b4d; }
.nl-bc--09 .nl-bc__name { font-size: 28px; color: #173f30; }
.nl-bc--09 .nl-bc__code { color: #2a4029; }
.nl-bc--09 .nl-bc__qr { width: 130px; height: 130px; border-radius: 6px; }

/* 10 living-foliage */
.nl-bc--10 {
	background:
		linear-gradient(90deg, rgba(5,22,14,.25), rgba(5,22,14,.76)),
		radial-gradient(ellipse at 13% 22%, #49664a 0 16%, transparent 17%),
		radial-gradient(ellipse at 84% 74%, #304c35 0 19%, transparent 20%),
		linear-gradient(145deg, #183522, #6f8661);
	color: #fff;
	padding: 40px 44px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 24px;
	align-items: center;
}
.nl-bc--10 .nl-bc__brand { color: #d8bd81; margin-bottom: 16px; }
.nl-bc--10 .nl-bc__name { margin-bottom: 8px; }
.nl-bc--10 .nl-bc__sub, .nl-bc--10 .nl-bc__meta, .nl-bc--10 .nl-bc__site { color: rgba(255,255,255,.9); }
.nl-bc--10 .nl-bc__code {
	display: inline-block;
	margin: 18px 0 10px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255,255,255,.92);
	color: #173f30;
	font-size: 18px;
}
.nl-bc--10 .nl-bc__qr {
	border-radius: 50%;
	width: 160px;
	height: 160px;
	padding: 14px;
	border: 2px solid #2a4029;
}

@media (max-width: 960px) {
	.nl-bizcards__preview-wrap {
		padding: 8px;
	}
	.nl-bc {
		transform-origin: top left;
		transform: scale(0.72);
		margin-bottom: -140px;
	}
}

@media (max-width: 720px) {
	.nl-bc {
		transform: scale(0.42);
		margin-bottom: -290px;
	}
}
