/* Shared lead-gate modal (Cost + Bond unlock) */
.cpb-lead-gate {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}
.cpb-lead-gate.is-open {
	display: flex;
}
.cpb-lead-gate__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}
.cpb-lead-gate__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	max-height: min(90vh, 720px);
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
	padding: 28px 28px 24px;
	box-sizing: border-box;
}
.cpb-lead-gate__close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	padding: 4px 8px;
}
.cpb-lead-gate__close:hover {
	color: #0f172a;
}
.cpb-lead-gate__eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748b;
}
.cpb-lead-gate__title {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.25;
	color: #0f172a;
}
.cpb-lead-gate__sub {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.5;
	color: #475569;
}
.cpb-lead-gate__form .form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 12px;
}
.cpb-lead-gate__form .form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.cpb-lead-gate__form label {
	font-size: 12px;
	font-weight: 600;
	color: #334155;
}
.cpb-lead-gate__form .req {
	color: #dc2626;
}
.cpb-lead-gate__form input,
.cpb-lead-gate__form select {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	background: #f8fafc;
	color: #0f172a;
}
.cpb-lead-gate__form input:focus,
.cpb-lead-gate__form select:focus {
	outline: 2px solid #86efac;
	border-color: #22c55e;
}
.cpb-lead-gate__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 8px;
}
.cpb-lead-gate__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	border: 0;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: #16a34a;
	cursor: pointer;
}
.cpb-lead-gate__submit:hover {
	background: #15803d;
}
.cpb-lead-gate__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}
.cpb-lead-gate__skip {
	border: 0;
	background: transparent;
	color: #64748b;
	font-size: 13px;
	cursor: pointer;
	padding: 6px;
	text-decoration: underline;
}
.cpb-lead-gate__skip:hover {
	color: #0f172a;
}
.cpb-lead-gate__trust {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: #64748b;
	text-align: center;
}
.cpb-lead-gate__confirm {
	display: none;
	margin-top: 8px;
	padding: 14px;
	border: 1px solid #fcd34d;
	background: #fffbeb;
	border-radius: 8px;
}
.cpb-lead-gate__confirm.is-visible {
	display: block;
}
.cpb-lead-gate__confirm p {
	margin: 0 0 12px;
	font-size: 14px;
	color: #92400e;
}
.cpb-lead-gate__confirm-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.cpb-lead-gate__confirm-yes,
.cpb-lead-gate__confirm-no {
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.cpb-lead-gate__confirm-yes {
	border: 0;
	background: #0f172a;
	color: #fff;
}
.cpb-lead-gate__confirm-no {
	border: 1px solid #cbd5e1;
	background: #fff;
	color: #334155;
}

/* Bond table lock — first 5 rows clear, remaining rows blurred + grey unlock card */
.explorer-table-wrapper {
	position: relative;
}
.explorer-table-wrapper.is-lead-locked,
.cpb-bond-explorer .explorer-table-wrapper.is-lead-locked {
	overflow: hidden !important;
}
.explorer-table tbody tr.is-blurred,
.cpb-bond-explorer .explorer-table tbody tr.is-blurred {
	user-select: none;
	pointer-events: none;
}
/* Blur cells — Chromium ignores filter on table-row */
.explorer-table tbody tr.is-blurred td,
.cpb-bond-explorer .explorer-table tbody tr.is-blurred td {
	filter: blur(6px);
	opacity: 0.7;
}
.cpb-table-unlock {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	z-index: 6;
	width: calc(100% - 48px);
	max-width: 420px;
	margin: 0;
	padding: 22px 28px 20px;
	text-align: center;
	background: #e8eaed;
	border: none;
	border-radius: 4px;
	box-shadow: none;
	pointer-events: auto;
}
.cpb-table-unlock p {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.45;
	font-weight: 600;
	color: #202124;
}
.cpb-table-unlock__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	background: #22C55E;
	cursor: pointer;
	box-shadow: none;
}
.cpb-table-unlock__btn:hover {
	background: #16A34A;
}
.explorer-table-wrapper.is-lead-locked::after {
	content: none;
}
.cpb-compare-locked {
	padding: 28px 20px;
	text-align: center;
	background: #f8fafc;
	border: 1px dashed #94a3b8;
	border-radius: 10px;
}
.cpb-compare-locked p {
	margin: 0 0 14px;
	font-size: 14px;
	color: #475569;
}

@media (max-width: 560px) {
	.cpb-lead-gate__form .form-row {
		grid-template-columns: 1fr;
	}
	.cpb-lead-gate__dialog {
		padding: 22px 18px 18px;
	}
}
