/**
 * Lucrativeit Subscription Plus — admin app styles.
 * Dark sidebar enterprise portal matching the product design.
 */

:root {
	--lucrsure-navy: #1b1840;
	--lucrsure-navy-2: #211d4d;
	--lucrsure-blue: #2563eb;
	--lucrsure-blue-dark: #1d4ed8;
	--lucrsure-bg: #f4f5fb;
	--lucrsure-card: #ffffff;
	--lucrsure-border: #e6e8f0;
	--lucrsure-text: #1e2235;
	--lucrsure-muted: #8a90a6;
	--lucrsure-green: #16a34a;
	--lucrsure-green-bg: #e9f8ef;
	--lucrsure-red: #dc2626;
	--lucrsure-amber: #d97706;
	--lucrsure-radius: 12px;
	--lucrsure-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .04);
}

.lucrsure-app {
	display: flex;
	min-height: 100vh;
	background: var(--lucrsure-bg);
	color: var(--lucrsure-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

.lucrsure-app * { box-sizing: border-box; }

/* Sidebar */
.lucrsure-sidebar {
	width: 248px;
	flex-shrink: 0;
	background: linear-gradient(180deg, #f7f9ff 0%, #eef1fa 100%);
	color: #4a5066;
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 32px;
	align-self: stretch;
	min-height: calc(100vh - 32px);
	border-right: 1px solid #e3e7f3;
}

.lucrsure-brand {
	display: flex;
	gap: 12px;
	padding: 22px 20px;
	align-items: flex-start;
	border-bottom: 1px solid #e3e7f3;
}

.lucrsure-brand-mark {
	width: 38px; height: 38px;
	border-radius: 10px;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	color: #fff;
	display: grid; place-items: center;
	font-size: 18px;
	flex-shrink: 0;
	box-shadow: 0 4px 10px rgba(37,99,235,.28);
}

.lucrsure-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.lucrsure-brand-text strong { color: #14172b; font-size: 15px; }
.lucrsure-brand-text span { color: var(--lucrsure-muted); font-size: 11px; margin-top: 4px; }

.lucrsure-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 12px 20px;
}

.lucrsure-nav-item {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	color: #545b73;
	text-decoration: none;
	font-weight: 600;
	transition: background .15s, color .15s, box-shadow .15s;
}
.lucrsure-nav-item:hover { background: #ffffff; color: var(--lucrsure-blue-dark); box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.lucrsure-nav-item.is-active { background: var(--lucrsure-blue); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.30); }
.lucrsure-nav-item.is-active:hover { background: var(--lucrsure-blue-dark); color: #fff; }
.lucrsure-nav-icon { width: 18px; text-align: center; font-size: 14px; opacity: .9; }

.lucrsure-nav-cta {
	padding: 16px 2px 4px;
	margin-top: 8px;
	border-top: 1px solid #e3e7f3;
}

.lucrsure-sidebar-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 16px;
	border-radius: 10px;
	background: #fff;
	color: var(--lucrsure-blue-dark);
	border: 1px solid var(--lucrsure-blue-dark);
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
	transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.lucrsure-sidebar-cta:hover,
.lucrsure-sidebar-cta:focus {
	background: #fff;
	color: var(--lucrsure-blue-dark);
	border-color: var(--lucrsure-blue-dark);
	box-shadow: 0 2px 8px rgba(16, 24, 40, .08);
	transform: translateY(-1px);
}
.lucrsure-sidebar-cta-icon {
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
}

/* Content column */
.lucrsure-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.lucrsure-topbar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px;
	padding: 12px 28px;
	background: var(--lucrsure-card);
	border-bottom: 1px solid var(--lucrsure-border);
}

.lucrsure-search {
	position: relative;
	display: flex; align-items: center;
	background: var(--lucrsure-bg);
	border: 1px solid var(--lucrsure-border);
	border-radius: 8px;
	padding: 6px 12px;
	width: 320px;
	max-width: 40vw;
}
.lucrsure-search-icon { opacity: .5; margin-right: 8px; }
.lucrsure-search input { border: none; background: transparent; outline: none; width: 100%; font-size: 13px; }
.lucrsure-search-wide { width: 100%; max-width: none; }

.lucrsure-topbar-actions { display: flex; align-items: center; gap: 12px; }
.lucrsure-icon-btn { color: var(--lucrsure-muted); text-decoration: none; font-size: 16px; }
.lucrsure-divider { width: 1px; height: 22px; background: var(--lucrsure-border); }
.lucrsure-user-name { font-weight: 600; font-size: 13px; }

.lucrsure-avatar {
	width: 30px; height: 30px;
	border-radius: 50%;
	background: #dbe4ff;
	color: var(--lucrsure-blue-dark);
	display: inline-grid; place-items: center;
	font-size: 11px; font-weight: 700;
	flex-shrink: 0;
}

/* Main */
.lucrsure-main { flex: 1; padding: 28px; }

.lucrsure-page-head {
	display: flex; align-items: flex-start; justify-content: space-between;
	gap: 16px; margin-bottom: 22px;
}
.lucrsure-page-head h1 { font-size: 24px; font-weight: 800; margin: 0 0 4px; color: #14172b; }
.lucrsure-sub { color: var(--lucrsure-muted); margin: 0; }

.lucrsure-footer {
	display: flex; justify-content: space-between;
	padding: 16px 28px;
	color: var(--lucrsure-muted);
	border-top: 1px solid var(--lucrsure-border);
	background: var(--lucrsure-card);
	font-size: 12px;
}

/* Buttons */
.lucrsure-btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px; font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background .15s, border .15s;
	white-space: nowrap;
}
.lucrsure-btn-primary { background: var(--lucrsure-blue); color: #fff; }
.lucrsure-btn-primary:hover { background: var(--lucrsure-blue-dark); color: #fff; }
.lucrsure-btn-light { background: #fff; color: var(--lucrsure-text); border-color: var(--lucrsure-border); }
.lucrsure-btn-light:hover { background: var(--lucrsure-bg); }
.lucrsure-btn-ghost { background: transparent; color: var(--lucrsure-muted); border-color: var(--lucrsure-border); }
.lucrsure-btn-ghost:hover { background: #fff; color: var(--lucrsure-text); }

/* Post-install onboarding */
.lucrsure-onboarding {
	display: flex;
	gap: 20px;
	padding: 24px;
	margin-bottom: 24px;
	background: linear-gradient(135deg, #eef4ff 0%, #f8f9ff 55%, #fff 100%);
	border: 1px solid #d6e4ff;
	border-radius: var(--lucrsure-radius);
	box-shadow: var(--lucrsure-shadow);
}
.lucrsure-onboarding-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 22px;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
}
.lucrsure-onboarding-body { flex: 1; min-width: 0; }
.lucrsure-onboarding-body h2 { margin: 0 0 8px; font-size: 20px; }
.lucrsure-onboarding-body > p { margin: 0 0 18px; color: var(--lucrsure-muted); max-width: 720px; }
.lucrsure-onboarding-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 20px;
}
.lucrsure-onboarding-grid strong { display: block; margin-bottom: 8px; font-size: 13px; }
.lucrsure-onboarding-grid ul { margin: 0; padding-left: 18px; color: var(--lucrsure-text); }
.lucrsure-onboarding-grid li { margin-bottom: 4px; font-size: 13px; }
.lucrsure-onboarding-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.lucrsure-onboarding-tags span {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--lucrsure-border);
	font-size: 12px;
	font-weight: 600;
	color: var(--lucrsure-blue);
}
.lucrsure-onboarding-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.lucrsure-onboarding-actions form { margin: 0; }

.lucrsure-demo-import-wrap { flex: 1 1 320px; max-width: 100%; }
.lucrsure-demo-import-progress {
	margin-top: 14px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--lucrsure-border);
	border-radius: 12px;
	box-shadow: var(--lucrsure-shadow);
}
.lucrsure-demo-import-progress-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	font-size: 13px;
}
.lucrsure-demo-import-progress-head strong { color: var(--lucrsure-text); }
.lucrsure-demo-import-progress-head span { color: var(--lucrsure-blue); font-weight: 700; }
.lucrsure-demo-import-bar {
	height: 10px;
	background: #eef2ff;
	border-radius: 999px;
	overflow: hidden;
}
.lucrsure-demo-import-bar-fill {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #3b82f6, #2563eb);
	border-radius: 999px;
	transition: width 0.35s ease;
}
.lucrsure-demo-import-status {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--lucrsure-muted);
}
.lucrsure-btn.is-loading { opacity: 0.7; cursor: wait; }

/* Setup modal — rendered in admin_footer outside .lucrsure-app */
body.lucrsure-setup-active {
	overflow: hidden;
	position: fixed;
	width: 100%;
	height: 100%;
}

.lucrsure-setup-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.lucrsure-setup-modal.is-open {
	display: flex;
}
.lucrsure-setup-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
	pointer-events: none;
}
.lucrsure-setup-modal-panel {
	position: relative;
	z-index: 1;
	width: min(720px, 100%);
	max-width: 720px;
	min-height: 420px;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
	border: 1px solid var(--lucrsure-border);
	overflow: hidden;
}
.lucrsure-setup-modal-body {
	padding: 12px 20px 10px;
	flex: 1 1 auto;
}
.lucrsure-setup-modal-head {
	display: flex;
	gap: 12px;
	padding: 18px 20px 0;
	flex-shrink: 0;
}
.lucrsure-setup-modal-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 18px;
	flex-shrink: 0;
}
.lucrsure-setup-modal-head h2 {
	margin: 0 0 4px;
	font-size: 18px;
	line-height: 1.25;
}
.lucrsure-setup-modal-head p {
	margin: 0;
	color: var(--lucrsure-muted);
	font-size: 13px;
	line-height: 1.4;
}
.lucrsure-setup-step-choose,
.lucrsure-setup-step-progress {
	min-height: 260px;
}
.lucrsure-setup-toolbar {
	margin-bottom: 8px;
	font-size: 13px;
}
.lucrsure-setup-category-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}
.lucrsure-setup-category-card {
	display: block;
	cursor: pointer;
}
.lucrsure-setup-category-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.lucrsure-setup-category-inner {
	display: block;
	padding: 9px 11px;
	border: 1px solid var(--lucrsure-border);
	border-radius: 10px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lucrsure-setup-category-inner strong {
	display: block;
	margin-bottom: 2px;
	font-size: 13px;
	line-height: 1.25;
}
.lucrsure-setup-category-inner .lucrsure-muted {
	display: block;
	font-size: 11px;
	line-height: 1.3;
}
.lucrsure-setup-category-meta {
	display: block;
	margin-top: 4px;
	font-size: 10px;
	color: var(--lucrsure-blue);
	font-weight: 600;
	line-height: 1.3;
}
.lucrsure-setup-category-card input:checked + .lucrsure-setup-category-inner {
	border-color: var(--lucrsure-blue);
	background: #f8fbff;
	box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}
.lucrsure-setup-note {
	margin: 8px 0 0;
	font-size: 11px;
	line-height: 1.35;
}
.lucrsure-setup-modal-foot {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 0 20px 16px;
	flex-shrink: 0;
}

/* Dedicated setup page (post-activation wizard). */
.lucrsure-setup-page {
	max-width: 760px;
	margin: 24px auto 40px;
}
.lucrsure-setup-wizard-panel {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
	border: 1px solid var(--lucrsure-border);
	overflow: hidden;
	min-height: 420px;
	display: flex;
	flex-direction: column;
}
.lucrsure-setup-wizard-head {
	display: flex;
	gap: 12px;
	padding: 22px 24px 0;
	flex-shrink: 0;
}
.lucrsure-setup-wizard-icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 18px;
	flex-shrink: 0;
}
.lucrsure-setup-wizard-head h1 {
	margin: 0 0 4px;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
}
.lucrsure-setup-wizard-head p {
	margin: 0;
	color: var(--lucrsure-muted);
	font-size: 14px;
	line-height: 1.45;
}
.lucrsure-setup-wizard-body {
	padding: 12px 24px 10px;
	flex: 1 1 auto;
}
.lucrsure-setup-wizard-foot {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 24px 20px;
	border-top: 1px solid var(--lucrsure-border);
	flex-shrink: 0;
}

.lucrsure-setup-step-progress .lucrsure-demo-import-progress-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}
.lucrsure-setup-step-progress .lucrsure-demo-import-bar {
	height: 12px;
	background: #eef2ff;
	border-radius: 999px;
	overflow: hidden;
}
.lucrsure-setup-step-progress .lucrsure-demo-import-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #3b82f6, #2563eb);
	transition: width 0.35s ease;
}
.lucrsure-setup-step-progress .lucrsure-demo-import-status {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--lucrsure-muted);
}

@media (max-width: 560px) {
	.lucrsure-setup-category-grid {
		grid-template-columns: 1fr;
	}
}

.lucrsure-actions { display: flex; gap: 10px; align-items: center; }

/* Cards */
.lucrsure-card {
	background: var(--lucrsure-card);
	border: 1px solid var(--lucrsure-border);
	border-radius: var(--lucrsure-radius);
	box-shadow: var(--lucrsure-shadow);
	padding: 20px;
	margin-bottom: 20px;
}
.lucrsure-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lucrsure-card-head h2 { font-size: 16px; font-weight: 700; margin: 0; }
.lucrsure-card-head a { color: var(--lucrsure-blue); text-decoration: none; font-size: 13px; font-weight: 600; }
.lucrsure-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--lucrsure-border); }
.lucrsure-card-foot a { color: var(--lucrsure-blue); text-decoration: none; font-weight: 600; }

/* KPIs */
.lucrsure-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 20px; }
.lucrsure-kpis-3 { grid-template-columns: repeat(3, 1fr); }
.lucrsure-kpi {
	background: var(--lucrsure-card);
	border: 1px solid var(--lucrsure-border);
	border-radius: var(--lucrsure-radius);
	box-shadow: var(--lucrsure-shadow);
	padding: 22px 20px 18px;
	display: flex; flex-direction: column; gap: 8px;
	position: relative;
	overflow: hidden;
}
.lucrsure-kpi::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--lucrsure-blue);
	border-radius: var(--lucrsure-radius) var(--lucrsure-radius) 0 0;
	pointer-events: none;
}
.lucrsure-kpi-label {
	color: var(--lucrsure-muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1.35;
	text-transform: uppercase;
}
.lucrsure-kpi-value { font-size: 26px; font-weight: 800; color: #14172b; }
.lucrsure-kpi-trend { font-size: 12px; font-weight: 600; }
.lucrsure-kpi-trend.up { color: var(--lucrsure-green); }
.lucrsure-kpi-trend.down { color: var(--lucrsure-red); }

/* Two-column grid */
.lucrsure-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Chart */
.lucrsure-chart { display: flex; align-items: flex-end; gap: 14px; height: 170px; padding-top: 10px; }
.lucrsure-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.lucrsure-chart-amount { font-size: 11px; color: var(--lucrsure-muted); }
.lucrsure-chart-bar {
	width: 100%;
	max-width: 46px;
	background: linear-gradient(180deg, #3b82f6, #2563eb);
	border-radius: 6px 6px 0 0;
	min-height: 4px;
	height: var(--lucrsure-chart-bar-height, 4px);
}
.lucrsure-chart-label { font-size: 12px; color: var(--lucrsure-muted); }

/* Revenue trend line chart */
.lucrsure-revenue-trend-card { padding-bottom: 8px; }
.lucrsure-revenue-trend-head { align-items: flex-start; margin-bottom: 8px; }
.lucrsure-revenue-trend-sub { margin: 4px 0 0; font-size: 13px; }
.lucrsure-revenue-trend-chart {
	width: 100%;
	min-height: 260px;
	padding: 4px 0 0;
}
.lucrsure-revenue-trend-chart svg {
	width: 100%;
	height: auto;
	display: block;
}
.lucrsure-revenue-trend-chart .lucrsure-trend-grid {
	stroke: #e8eaf3;
	stroke-width: 1;
}
.lucrsure-revenue-trend-chart .lucrsure-trend-axis {
	fill: #8a90a6;
	font-size: 11px;
}
.lucrsure-revenue-trend-chart .lucrsure-trend-area {
	fill: url(#lspTrendFill);
}
.lucrsure-revenue-trend-chart .lucrsure-trend-line {
	fill: none;
	stroke: #e05252;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.lucrsure-revenue-trend-chart .lucrsure-trend-dot {
	fill: #e05252;
}

/* Distribution */
.lucrsure-dist { list-style: none; margin: 0; padding: 0; }
.lucrsure-dist li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--lucrsure-border); }
.lucrsure-dist li:last-child { border-bottom: none; }

/* Tables */
.lucrsure-table-card { padding: 0; overflow: hidden; }
.lucrsure-table { width: 100%; border-collapse: collapse; }
.lucrsure-table thead th {
	text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .04em;
	color: var(--lucrsure-muted); text-transform: uppercase;
	padding: 14px 20px; background: #fafbfe; border-bottom: 1px solid var(--lucrsure-border);
}
.lucrsure-table tbody td { padding: 14px 20px; border-bottom: 1px solid var(--lucrsure-border); vertical-align: middle; }
.lucrsure-table tbody tr:last-child td { border-bottom: none; }
.lucrsure-table tbody tr:hover { background: #fafbff; }
.lucrsure-right { text-align: right; }

.lucrsure-mini-table { width: 100%; border-collapse: collapse; }
.lucrsure-mini-table td { padding: 10px 0; border-bottom: 1px solid var(--lucrsure-border); }
.lucrsure-mini-table tr:last-child td { border-bottom: none; }

.lucrsure-cell-user { display: flex; align-items: center; gap: 12px; }
.lucrsure-cell-user strong { display: block; }

.lucrsure-empty { text-align: center; color: var(--lucrsure-muted); padding: 28px 0; }
.lucrsure-empty-state { text-align: center; color: var(--lucrsure-muted); padding: 40px; }

/* Pills */
.lucrsure-pill {
	display: inline-block;
	padding: 3px 10px; border-radius: 999px;
	font-size: 11px; font-weight: 600; text-transform: capitalize;
	background: #eef0f6; color: #555c75;
}
.lucrsure-pill-blue { background: #e0e9ff; color: var(--lucrsure-blue-dark); }
.lucrsure-pill-gold { background: #fef3c7; color: #b45309; }
.lucrsure-status-active, .lucrsure-status-paid { background: var(--lucrsure-green-bg); color: var(--lucrsure-green); }
.lucrsure-status-trialing { background: #e0e9ff; color: var(--lucrsure-blue-dark); }
.lucrsure-status-past_due, .lucrsure-status-overdue, .lucrsure-status-unpaid, .lucrsure-status-pending { background: #fdecec; color: var(--lucrsure-red); }
.lucrsure-status-canceled, .lucrsure-status-inactive, .lucrsure-status-void { background: #f0f1f5; color: #6b7280; }
.lucrsure-status-draft, .lucrsure-status-paused { background: #fef3e2; color: var(--lucrsure-amber); }

/* Cards grid (branches / plans) */
.lucrsure-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.lucrsure-branch-card, .lucrsure-plan-card { display: flex; flex-direction: column; }
.lucrsure-branch-thumb { margin: -20px -20px 14px; border-radius: 12px 12px 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: #f3f4f6; }
.lucrsure-branch-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lucrsure-branch-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.lucrsure-branch-icon { width: 38px; height: 38px; border-radius: 10px; background: #eef0fb; display: grid; place-items: center; font-size: 16px; }
.lucrsure-branch-title { flex: 1; }
.lucrsure-branch-title strong { display: block; }
.lucrsure-branch-title span { color: var(--lucrsure-muted); font-size: 12px; }
.lucrsure-branch-body { flex: 1; }
.lucrsure-branch-body p { margin: 4px 0; }
.lucrsure-category-shortcodes {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 4px 0;
}
.lucrsure-category-shortcodes code {
	display: block;
	background: #f3f4f6;
	border-radius: 6px;
	padding: 4px 8px;
	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
	overflow-x: auto;
}
.lucrsure-branch-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--lucrsure-border); }

.lucrsure-plan-top { display: flex; justify-content: space-between; align-items: center; }
.lucrsure-plan-popular-badge { margin: 0 0 8px; }
.lucrsure-plan-thumb { margin: -4px -4px 12px; border-radius: 10px; overflow: hidden; background: #f3f4f6; }
.lucrsure-plan-thumb img { display: block; width: 100%; height: 140px; object-fit: cover; }
.lucrsure-plan-category { margin: 0 0 8px; }
.lucrsure-plan-top strong { font-size: 16px; }
.lucrsure-plan-price { font-size: 26px; font-weight: 800; margin: 10px 0; color: var(--lucrsure-blue-dark); }
.lucrsure-plan-price span { font-size: 13px; font-weight: 500; color: var(--lucrsure-muted); }
.lucrsure-price-regular { font-size: 16px; font-weight: 600; color: var(--lucrsure-muted); text-decoration: line-through; margin-right: 6px; }
.lucrsure-plan-trial { color: var(--lucrsure-blue); font-size: 13px; }
.lucrsure-plan-foot { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--lucrsure-border); }
.lucrsure-plan-foot .lucrsure-btn { flex: 1; justify-content: center; }

.lucrsure-muted { color: var(--lucrsure-muted); }

/* Detail lists */
.lucrsure-dl { margin: 0; display: grid; gap: 12px; }
.lucrsure-dl dt { font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--lucrsure-muted); text-transform: uppercase; }
.lucrsure-dl dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--lucrsure-text); }

/* Reports */
.lucrsure-reports-range-form { display: block; }
.lucrsure-reports-range-actions { display: flex; flex-direction: column; justify-content: flex-end; }
.lucrsure-reports-export-form { margin-top: 12px; }
.lucrsure-reports-stat-row { display: flex; flex-wrap: wrap; gap: 12px; }
.lucrsure-reports-stat {
	flex: 1 1 120px;
	background: var(--lucrsure-card, #fff);
	border: 1px solid rgba(16, 24, 40, .08);
	border-radius: 10px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.lucrsure-reports-stat span {
	font-size: 11px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #6b7280;
}
.lucrsure-reports-stat strong {
	font-size: 22px;
	font-weight: 800;
	color: #14172b;
}
.lucrsure-reports-chart { overflow-x: auto; }
.lucrsure-reports-pro-upsell {
	margin-top: 16px;
	padding: 16px;
	border: 1px dashed rgba(37, 99, 235, .35);
	border-radius: 10px;
	background: #f8faff;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
.lucrsure-reports-pro-upsell p { margin: 0; flex: 1 1 220px; color: var(--lucrsure-muted); }

/* Forms */
.lucrsure-form-card { max-width: 860px; }
.lucrsure-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lucrsure-branch-contact-row { grid-template-columns: repeat(3, 1fr); }
.lucrsure-branch-contact-row .lucrsure-field input {
	border-radius: 999px;
	padding: 11px 18px;
}
.lucrsure-branch-contact-row .lucrsure-field input[type="time"] {
	padding-right: 14px;
}
.lucrsure-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.lucrsure-field label { font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--lucrsure-muted); text-transform: uppercase; margin-bottom: 6px; }
.lucrsure-field-check { justify-content: flex-end; }
.lucrsure-field input[type="text"],
.lucrsure-field input[type="email"],
.lucrsure-field input[type="password"],
.lucrsure-field input[type="number"],
.lucrsure-field input[type="tel"],
.lucrsure-field input[type="time"],
.lucrsure-field input[type="date"],
.lucrsure-field input[type="datetime-local"],
.lucrsure-field input[type="url"],
.lucrsure-field input[type="search"],
.lucrsure-field select,
.lucrsure-field textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--lucrsure-border);
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
	color: var(--lucrsure-text);
}
.lucrsure-field input:focus, .lucrsure-field select:focus, .lucrsure-field textarea:focus {
	outline: none; border-color: var(--lucrsure-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.lucrsure-form-inline { display: flex; gap: 24px; margin: 8px 0 18px; }
.lucrsure-form-inline.lucrsure-mt-16,
.lucrsure-field.lucrsure-mt-16 { margin-top: 16px; }
.lucrsure-mt-0 { margin-top: 0; }
.lucrsure-mt-6 { margin-top: 6px; }
.lucrsure-mt-8 { margin-top: 8px; }
.lucrsure-mt-12 { margin-top: 12px; }
.lucrsure-mt-16 { margin-top: 16px; }
.lucrsure-mt-20 { margin-top: 20px; }
.lucrsure-mb-0 { margin-bottom: 0; }
.lucrsure-mb-20 { margin-bottom: 20px; }
.lucrsure-m-0 { margin: 0; }
.lucrsure-my-8-12 { margin: 8px 0 12px; }
.lucrsure-mb-0-4 { margin: 0 0 4px; }
.lucrsure-max-w-none { max-width: none; }
.lucrsure-row-actions.lucrsure-p-row-actions { padding: 0 4px 4px; }
.lucrsure-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--lucrsure-text); text-transform: none; letter-spacing: 0; }
.lucrsure-check input { width: auto; }
.lucrsure-form-actions { display: flex; gap: 12px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--lucrsure-border); }
.lucrsure-form-actions.lucrsure-right { justify-content: flex-end; }

/* Toolbar */
.lucrsure-toolbar {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 14px 18px;
	--lucrsure-control-h: 36px;
}
.lucrsure-toolbar .lucrsure-search {
	flex: 1;
	min-width: 0;
	padding: 0 12px;
	height: var(--lucrsure-control-h);
}
.lucrsure-toolbar .lucrsure-search input {
	height: 100%;
	line-height: 1;
	padding: 0;
}
.lucrsure-toolbar select {
	height: var(--lucrsure-control-h);
	padding: 0 12px;
	border: 1px solid var(--lucrsure-border);
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	line-height: 1;
}
.lucrsure-toolbar .lucrsure-btn {
	height: var(--lucrsure-control-h);
	padding: 0 16px;
	background: var(--lucrsure-red);
	color: #fff;
	border-color: var(--lucrsure-red);
}
.lucrsure-toolbar .lucrsure-btn:hover {
	background: #b91c1c;
	border-color: #b91c1c;
	color: #fff;
}

/* Notices */
.lucrsure-notice { padding: 12px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.lucrsure-notice-success { background: var(--lucrsure-green-bg); color: var(--lucrsure-green); border: 1px solid #bfe7cd; }
.lucrsure-notice-error { background: #fdecec; color: var(--lucrsure-red); border: 1px solid #f5c6c6; }
.lucrsure-notice-warning { background: #fef3e2; color: var(--lucrsure-amber); border: 1px solid #f5dca7; }

/* Tabs */
.lucrsure-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--lucrsure-border); margin-bottom: 22px; }
.lucrsure-tab { padding: 10px 2px; color: var(--lucrsure-muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.lucrsure-tab:hover { color: var(--lucrsure-text); }
.lucrsure-tab.is-active { color: var(--lucrsure-blue); border-bottom-color: var(--lucrsure-blue); }

.lucrsure-frontend-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	border-bottom: 1px solid var(--lucrsure-border);
	margin: 22px 0 0;
	padding-bottom: 0;
}
.lucrsure-frontend-tab {
	appearance: none;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	color: var(--lucrsure-muted);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	margin-bottom: -1px;
	padding: 10px 2px;
}
.lucrsure-frontend-tab:hover { color: var(--lucrsure-text); }
.lucrsure-frontend-tab.is-active { color: var(--lucrsure-blue); border-bottom-color: var(--lucrsure-blue); }
.lucrsure-frontend-tab-panel { display: none; padding-top: 22px; }
.lucrsure-frontend-tab-panel.is-active { display: block; }
.lucrsure-frontend-subheading { margin: 24px 0 12px; font-size: 15px; }

/* Engine choice */
.lucrsure-engine-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.lucrsure-engine-option {
	border: 2px solid var(--lucrsure-border); border-radius: 12px; padding: 16px;
	display: flex; flex-direction: column; gap: 6px; cursor: pointer; text-transform: none; letter-spacing: 0;
}
.lucrsure-engine-option strong { font-size: 15px; color: var(--lucrsure-text); }
.lucrsure-engine-option span { color: var(--lucrsure-muted); font-size: 13px; }
.lucrsure-engine-option.is-selected { border-color: var(--lucrsure-blue); background: #f5f8ff; }
.lucrsure-engine-option input { width: auto; }
.lucrsure-warn { color: var(--lucrsure-amber); }

/* Info bar */
.lucrsure-form-section-title {
	margin: 8px 0 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--lucrsure-text);
}

.lucrsure-info-bar { background: #eef2fb; border: 1px solid #d8e0f5; border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.lucrsure-info-bar strong { display: block; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #4a5475; margin-bottom: 4px; }
.lucrsure-info-bar span { color: var(--lucrsure-muted); font-size: 13px; }

.lucrsure-info-bar--billing {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 18px;
	background: linear-gradient(135deg, #eef4ff 0%, #e8f0ff 50%, #e9faf3 100%);
	border: 1px solid transparent;
	border-radius: 14px;
	box-shadow:
		0 0 0 1px rgba(37, 99, 235, .14),
		0 8px 24px rgba(37, 99, 235, .08);
	position: relative;
	overflow: hidden;
}
.lucrsure-info-bar--billing::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	background: linear-gradient(180deg, #2563eb 0%, #0ea5e9 50%, #16a34a 100%);
}
.lucrsure-info-bar__icon {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	margin-left: 4px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: linear-gradient(135deg, #2563eb, #0ea5e9);
	box-shadow: 0 6px 14px rgba(37, 99, 235, .28);
}
.lucrsure-info-bar__body { flex: 1; min-width: 0; }
.lucrsure-info-bar--billing strong {
	font-size: 12px;
	letter-spacing: .06em;
	color: #1d4ed8;
	margin-bottom: 10px;
}
.lucrsure-billing-modes {
	display: grid;
	gap: 8px;
}
.lucrsure-billing-mode {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 10px;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .72);
	border: 1px solid rgba(255, 255, 255, .9);
}
.lucrsure-info-bar--billing .lucrsure-billing-mode__label {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.3;
	color: #ffffff !important;
}
.lucrsure-billing-mode--auto .lucrsure-billing-mode__label {
	background: linear-gradient(135deg, #16a34a, #22c55e);
	box-shadow: 0 2px 8px rgba(22, 163, 74, .25);
}
.lucrsure-billing-mode--invoice .lucrsure-billing-mode__label {
	background: linear-gradient(135deg, #d97706, #f59e0b);
	box-shadow: 0 2px 8px rgba(217, 119, 6, .25);
}
.lucrsure-billing-mode__text {
	color: #334155 !important;
	font-size: 13px;
	line-height: 1.45;
}

/* Shortcode list */
.lucrsure-shortcode-list { list-style: none; margin: 8px 0 0; padding: 0; }
.lucrsure-shortcode-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 6px 0; }
.lucrsure-shortcode-row code { background: #fff; border: 1px solid var(--lucrsure-border); border-radius: 6px; padding: 2px 8px; }
.lucrsure-shortcode-row .lucrsure-muted { font-size: 13px; }
.lucrsure-btn-xs { padding: 3px 10px; font-size: 12px; margin-left: auto; }
.lucrsure-copy-shortcode.is-copied { background: var(--lucrsure-green-bg); color: var(--lucrsure-green); border-color: var(--lucrsure-green); }

/* Gateway boxes */
.lucrsure-gateway-box { border: 1px solid var(--lucrsure-border); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.lucrsure-gateway-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.lucrsure-tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.lucrsure-tag-auto { background: var(--lucrsure-green-bg); color: var(--lucrsure-green); }
.lucrsure-tag-invoice { background: #fef3e2; color: var(--lucrsure-amber); }

/* Gateway notes (subscription form) */
.lucrsure-gateway-note { border-radius: 10px; padding: 14px 16px; margin: 6px 0 16px; display: none; }
.lucrsure-gateway-note strong { display: block; font-size: 12px; margin-bottom: 4px; }
.lucrsure-gateway-note span { font-size: 13px; }
.lucrsure-gateway-note-auto { background: var(--lucrsure-green-bg); border: 1px solid #bfe7cd; color: #15803d; }
.lucrsure-gateway-note-invoice { background: #fef3e2; border: 1px solid #f5dca7; color: #b45309; }

/* Toggle grid (notifications) */
.lucrsure-toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.lucrsure-toggle-box { display: flex; align-items: center; gap: 10px; border: 1px solid var(--lucrsure-border); border-radius: 8px; padding: 12px 14px; font-size: 13px; }
.lucrsure-toggle-box input { width: auto; }

/* Module grid (role form) */
.lucrsure-module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* Placeholders */
.lucrsure-placeholders { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lucrsure-placeholders code { background: #fff; border: 1px solid var(--lucrsure-border); border-radius: 6px; padding: 2px 8px; font-size: 12px; }

/* Template blocks */
.lucrsure-template-block { padding: 16px 0; border-bottom: 1px solid var(--lucrsure-border); }
.lucrsure-template-block:last-of-type { border-bottom: none; }
.lucrsure-template-block h3 { margin: 0; font-size: 15px; }
.lucrsure-template-block-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.lucrsure-template-layout { margin-bottom: 8px; padding-bottom: 24px; }
.lucrsure-info-bar-secondary { margin-top: 12px; }
.lucrsure-anchor-id-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lucrsure-anchor-id-table th,
.lucrsure-anchor-id-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #d8e0f5; vertical-align: top; }
.lucrsure-anchor-id-table th { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #4a5475; }
.lucrsure-anchor-id-table td strong { display: block; margin-bottom: 2px; }
.lucrsure-anchor-id-table .lucrsure-muted { display: block; font-size: 12px; }
.lucrsure-anchor-link-example { word-break: break-all; }
.lucrsure-section-anchor-hint { margin: 0 0 6px; font-size: 13px; }
.lucrsure-section-anchor-hint code { margin-left: 4px; }

.lucrsure-settings-divider {
	border: 0;
	border-top: 1px solid var(--lucrsure-border);
	margin: 28px 0;
}

.lucrsure-faq-repeater {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 12px;
}

.lucrsure-faq-row {
	border: 1px solid var(--lucrsure-border);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.lucrsure-faq-row-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border: 0;
	background: #fafbff;
	color: var(--lucrsure-text);
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.lucrsure-faq-row-toggle:hover {
	background: #f3f4ff;
}

.lucrsure-faq-row-title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lucrsure-faq-row-chevron {
	width: 10px;
	height: 10px;
	border-right: 2px solid #6b7280;
	border-bottom: 2px solid #6b7280;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
	flex-shrink: 0;
	margin-top: -4px;
}

.lucrsure-faq-row.is-open .lucrsure-faq-row-chevron {
	transform: rotate(-135deg);
	margin-top: 4px;
}

.lucrsure-faq-row-body {
	padding: 0 16px 16px;
	border-top: 1px solid var(--lucrsure-border);
	background: #fafbff;
}

.lucrsure-faq-row-body .lucrsure-field:first-child {
	margin-top: 16px;
}

.lucrsure-faq-row-body .lucrsure-faq-remove {
	margin-top: 4px;
}
.lucrsure-info-note { margin: 8px 0 0; font-size: 12px; }
.lucrsure-code-textarea {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 12px;
	line-height: 1.5;
	white-space: pre;
}
.lucrsure-premium-inline-upsell {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	margin-bottom: 16px;
	background: #f8fafc;
	border: 1px solid var(--lucrsure-border);
	border-radius: 8px;
}
.lucrsure-premium-inline-upsell p { margin: 0; flex: 1 1 240px; font-size: 13px; color: var(--lucrsure-muted); }

/* Settings layout: tab content + premium update card */
.lucrsure-settings-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 20px;
	align-items: start;
}
.lucrsure-settings-layout--full {
	grid-template-columns: minmax(0, 1fr);
}
.lucrsure-settings-main {
	min-width: 0;
}
.lucrsure-settings-main > .lucrsure-form-card,
.lucrsure-settings-main .lucrsure-form-card {
	max-width: none;
}
.lucrsure-premium-update-card {
	padding: 24px 22px;
	background: #fff;
	border: 1px solid #16a34a;
	box-shadow: 0 2px 8px rgba(22, 163, 74, .08);
	position: sticky;
	top: 48px;
	color: #16a34a;
}
.lucrsure-premium-update-card h2 {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
	color: #16a34a;
}
.lucrsure-premium-update-card > p {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.55;
	color: #16a34a;
}
.lucrsure-premium-update-list {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}
.lucrsure-premium-update-list li {
	position: relative;
	padding: 7px 0 7px 22px;
	font-size: 13px;
	font-weight: 600;
	color: #16a34a;
	border-bottom: 1px solid rgba(22, 163, 74, .15);
}
.lucrsure-premium-update-list li:last-child { border-bottom: none; }
.lucrsure-premium-update-list li::before {
	content: '\2713';
	position: absolute;
	left: 0;
	color: #16a34a;
	font-weight: 700;
}
.lucrsure-premium-update-btn {
	width: 100%;
	justify-content: center;
	background: #16a34a !important;
	color: #fff !important;
	border-color: #16a34a !important;
	font-weight: 700;
}
.lucrsure-premium-update-btn:hover,
.lucrsure-premium-update-btn:focus {
	background: #15803d !important;
	color: #fff !important;
	border-color: #15803d !important;
}
@media (max-width: 1100px) {
	.lucrsure-settings-layout {
		grid-template-columns: 1fr;
	}
	.lucrsure-premium-update-card {
		position: static;
	}
}
.lucrsure-field-hint { margin: 6px 0 0; font-size: 12px; }
.lucrsure-template-editor .lucrsure-template-textarea { margin-top: 8px; width: 100%; font-family: Consolas, Monaco, monospace; line-height: 1.5; border-radius: 8px; }

/* Test email */
.lucrsure-test-email { display: flex; gap: 12px; align-items: center; }
.lucrsure-test-email input { flex: 1; padding: 9px 12px; border: 1px solid var(--lucrsure-border); border-radius: 8px; }

.lucrsure-row-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.lucrsure-inline-form { display: inline; }

.lucrsure-webhook-hint { margin-top: 10px; font-size: 12px; line-height: 1.6; }
.lucrsure-webhook-hint code { background: #f1f3fa; border: 1px solid var(--lucrsure-border); border-radius: 6px; padding: 2px 6px; word-break: break-all; }

/* Subscription wizard */
.lucrsure-wizard { max-width: 1200px; }
.lucrsure-wizard-steps {
	display: flex;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	counter-reset: none;
}
.lucrsure-wizard-step {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	padding-bottom: 14px;
}
.lucrsure-wizard-step::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--lucrsure-border);
	border-radius: 2px;
}
.lucrsure-wizard-step:not(:last-child) { margin-right: 12px; }
.lucrsure-wizard-step-num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 13px;
	font-weight: 700;
	background: #eef0f6;
	color: var(--lucrsure-muted);
	flex-shrink: 0;
	transition: background .2s, color .2s;
}
.lucrsure-wizard-step-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--lucrsure-muted);
	white-space: nowrap;
}
.lucrsure-wizard-step.is-active .lucrsure-wizard-step-num {
	background: var(--lucrsure-blue);
	color: #fff;
}
.lucrsure-wizard-step.is-active .lucrsure-wizard-step-label { color: var(--lucrsure-text); }
.lucrsure-wizard-step.is-active::after { background: var(--lucrsure-blue); }
.lucrsure-wizard-step.is-done .lucrsure-wizard-step-num {
	background: var(--lucrsure-green-bg);
	color: var(--lucrsure-green);
}
.lucrsure-wizard-step.is-done .lucrsure-wizard-step-label { color: var(--lucrsure-text); }
.lucrsure-wizard-step.is-done::after { background: var(--lucrsure-green); }

.lucrsure-wizard-card { max-width: none; padding: 28px; }
.lucrsure-wizard-panel-head { margin-bottom: 22px; }
.lucrsure-wizard-panel-head h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.lucrsure-wizard-panel-head p { margin: 0; font-size: 13px; }
.lucrsure-wizard-search { margin-bottom: 20px; }
.lucrsure-wizard-empty { text-align: center; padding: 40px 20px; }
.lucrsure-wizard-empty p { margin: 0 0 16px; }
.lucrsure-wizard-no-results { text-align: center; padding: 20px 0 0; margin: 0; }

.lucrsure-select-grid { margin-bottom: 8px; }

/* Wizard grids: compact 4-column layout */
.lucrsure-wizard .lucrsure-select-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.lucrsure-wizard .lucrsure-select-card {
	padding: 16px 14px 12px;
	border-radius: 10px;
	font-size: 13px;
	overflow: hidden;
}
.lucrsure-wizard .lucrsure-select-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--lucrsure-blue);
	border-radius: 8px 8px 0 0;
	pointer-events: none;
}
.lucrsure-wizard .lucrsure-select-card:hover::before {
	background: var(--lucrsure-blue-dark);
}
.lucrsure-wizard .lucrsure-select-card.is-selected::before {
	height: 5px;
	background: var(--lucrsure-blue-dark);
}
.lucrsure-wizard .lucrsure-add-card::before {
	background: #93c5fd;
}
.lucrsure-wizard .lucrsure-add-card:hover::before {
	background: var(--lucrsure-blue);
}
.lucrsure-wizard .lucrsure-plan-card .lucrsure-plan-top strong { font-size: 14px; }
.lucrsure-wizard .lucrsure-plan-price { font-size: 20px; margin: 6px 0; }
.lucrsure-wizard .lucrsure-plan-price span { font-size: 11px; }
.lucrsure-wizard .lucrsure-plan-trial { font-size: 11px; margin: 0; }
.lucrsure-wizard .lucrsure-select-card .lucrsure-muted { font-size: 12px; line-height: 1.4; }
.lucrsure-wizard .lucrsure-select-check {
	top: 10px;
	right: 10px;
	width: 20px;
	height: 20px;
	font-size: 10px;
}
.lucrsure-wizard .lucrsure-add-card {
	min-height: 118px;
	gap: 4px;
}
.lucrsure-wizard .lucrsure-add-icon {
	width: 32px;
	height: 32px;
	font-size: 18px;
	margin-bottom: 2px;
}
.lucrsure-wizard .lucrsure-add-card strong { font-size: 13px; }
.lucrsure-wizard .lucrsure-customer-card {
	min-height: 118px;
	gap: 2px;
}
.lucrsure-wizard .lucrsure-avatar-lg {
	width: 32px;
	height: 32px;
	font-size: 11px;
}
.lucrsure-wizard .lucrsure-customer-company { font-size: 11px; }
.lucrsure-wizard .lucrsure-customer-card .lucrsure-pill {
	font-size: 10px;
	margin-top: 6px;
}
.lucrsure-wizard .lucrsure-customer-card strong { font-size: 13px; }

.lucrsure-select-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	width: 100%;
	padding: 18px;
	border: 2px solid var(--lucrsure-border);
	border-radius: var(--lucrsure-radius);
	background: var(--lucrsure-card);
	cursor: pointer;
	transition: border-color .15s, background .15s, box-shadow .15s;
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	text-decoration: none;
	position: relative;
}
.lucrsure-select-card:hover {
	border-color: #c5cce8;
	box-shadow: var(--lucrsure-shadow);
}
.lucrsure-select-card.is-selected {
	border-color: var(--lucrsure-blue);
	background: #f5f8ff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}
.lucrsure-select-check {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--lucrsure-blue);
	color: #fff;
	display: none;
	place-items: center;
	font-size: 12px;
	font-weight: 700;
}
.lucrsure-select-card.is-selected .lucrsure-select-check { display: grid; }

.lucrsure-add-card {
	align-items: center;
	justify-content: center;
	text-align: center;
	border-style: dashed;
	min-height: 180px;
	gap: 6px;
}
.lucrsure-add-card:hover { border-color: var(--lucrsure-blue); background: #fafbff; }
.lucrsure-add-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #eef0fb;
	color: var(--lucrsure-blue);
	display: grid;
	place-items: center;
	font-size: 22px;
	font-weight: 300;
	margin-bottom: 4px;
}

.lucrsure-customer-card { gap: 4px; min-height: 160px; }
.lucrsure-customer-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
	margin-bottom: 8px;
}
.lucrsure-avatar-lg { width: 42px; height: 42px; font-size: 14px; }
.lucrsure-customer-company { font-size: 12px; color: var(--lucrsure-muted); margin-top: 2px; }
.lucrsure-customer-card .lucrsure-pill { margin-top: auto; font-size: 11px; }

.lucrsure-wizard-summary {
	display: flex;
	gap: 24px;
	padding: 16px 20px;
	background: #f8f9fd;
	border: 1px solid var(--lucrsure-border);
	border-radius: 10px;
	margin-bottom: 22px;
}
.lucrsure-wizard-summary-item { flex: 1; }
.lucrsure-wizard-summary-label {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--lucrsure-muted);
	margin-bottom: 4px;
}
.lucrsure-wizard-summary-item strong { font-size: 14px; }

.lucrsure-wizard-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--lucrsure-border);
}

/* Modals */
.lucrsure-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.lucrsure-modal[hidden] { display: none; }
.lucrsure-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 23, 43, .45);
	backdrop-filter: blur(2px);
}
.lucrsure-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: var(--lucrsure-card);
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(16, 24, 40, .18);
}
.lucrsure-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid var(--lucrsure-border);
}
.lucrsure-modal-header h3 { margin: 0; font-size: 17px; font-weight: 700; }
.lucrsure-modal-close {
	border: none;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	color: var(--lucrsure-muted);
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 6px;
}
.lucrsure-modal-close:hover { color: var(--lucrsure-text); background: #f0f1f5; }
.lucrsure-modal-body { padding: 20px 24px 24px; }
.lucrsure-modal-body .lucrsure-field { margin-bottom: 14px; }
.lucrsure-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--lucrsure-border);
}
.lucrsure-modal-error {
	margin: 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fdecec;
	color: var(--lucrsure-red);
	font-size: 13px;
	border: 1px solid #f5c6c6;
}
.lucrsure-modal-error[hidden] { display: none; }
body.lucrsure-modal-open { overflow: hidden; }

.lucrsure-modal-dialog-wide { max-width: 920px; width: calc(100% - 32px); }
.lucrsure-email-preview-subject { margin: 0 0 8px; font-size: 14px; }
.lucrsure-email-preview-note { margin: 0 0 12px; font-size: 12px; }
.lucrsure-email-preview-loading { padding: 24px; text-align: center; color: var(--lucrsure-muted); font-size: 13px; }
.lucrsure-email-preview-frame-wrap {
	background: #f3f4f6;
	border: 1px solid var(--lucrsure-border);
	border-radius: 8px;
	overflow: hidden;
	min-height: 420px;
}
.lucrsure-email-preview-frame-wrap iframe {
	display: block;
	width: 100%;
	height: 520px;
	border: 0;
	background: #fff;
}

/* Pro upgrade screen */
.lucrsure-pro-feature {
	display: flex;
	justify-content: center;
	padding: 20px 0 40px;
}
.lucrsure-pro-feature-card {
	max-width: 520px;
	width: 100%;
	padding: 36px 32px;
	text-align: center;
	position: relative;
}
.lucrsure-pro-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, #2563eb, #7c3aed);
	color: #fff;
	margin-bottom: 16px;
}
.lucrsure-pro-feature-icon {
	font-size: 42px;
	margin-bottom: 12px;
}
.lucrsure-pro-feature-card h1 {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 800;
}
.lucrsure-pro-feature-card .lucrsure-sub {
	margin: 0 auto 20px;
	max-width: 400px;
}
.lucrsure-pro-benefits {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	text-align: left;
}
.lucrsure-pro-benefits li {
	padding: 10px 0 10px 28px;
	position: relative;
	border-bottom: 1px solid var(--lucrsure-border);
	font-size: 14px;
}
.lucrsure-pro-benefits li:last-child { border-bottom: none; }
.lucrsure-pro-benefits li::before {
	content: '\2713';
	position: absolute;
	left: 0;
	color: var(--lucrsure-green);
	font-weight: 700;
}
.lucrsure-pro-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 16px;
}
.lucrsure-pro-footnote {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
}

/* Email branding (Pro) */
.lucrsure-section-title {
	margin: 28px 0 16px;
	padding-top: 8px;
	font-size: 16px;
	font-weight: 600;
	color: #1e293b;
	border-top: 1px solid #eef2f6;
}
.lucrsure-section-title:first-of-type {
	margin-top: 0;
	border-top: none;
	padding-top: 0;
}
.lucrsure-branding-logo-field { margin-bottom: 20px; }
.lucrsure-branding-logo-field > label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 13px;
}
.lucrsure-branding-logo-row {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.lucrsure-branding-logo-preview {
	min-width: 160px;
	min-height: 72px;
	padding: 12px 16px;
	border: 1px dashed #d0d5dd;
	border-radius: 10px;
	background: #f9fafb;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lucrsure-branding-logo-preview img {
	max-width: 200px;
	max-height: 64px;
	height: auto;
	display: block;
}
.lucrsure-branding-logo-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.lucrsure-branding-check {
	display: block;
	margin: 16px 0 8px;
}
.lucrsure-branding-colors .lucrsure-field input[type="color"] {
	width: 100%;
	height: 40px;
	padding: 2px;
	cursor: pointer;
}
.is-hidden { display: none !important; }

/* Premium comparison (Settings → Premium) */
.lucrsure-premium-placeholder h2 { margin: 0 0 8px; }
.lucrsure-compare-table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0 16px;
	font-size: 14px;
}
.lucrsure-compare-table th,
.lucrsure-compare-table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--lucrsure-border, #e5e7eb);
	text-align: left;
}
.lucrsure-compare-table th { font-weight: 600; color: #374151; background: #f9fafb; }
.lucrsure-compare-table th:not(:first-child),
.lucrsure-compare-cell { text-align: center; width: 100px; }
.lucrsure-compare-yes { color: var(--lucrsure-green, #16a34a); font-weight: 700; font-size: 16px; }
.lucrsure-compare-no { color: #d1d5db; }
.lucrsure-premium-footnote { margin-top: 8px; }
.lucrsure-premium-active .lucrsure-card + .lucrsure-card { margin-top: 20px; }

/* Responsive */
@media (max-width: 782px) {
	.lucrsure-sidebar { top: 46px; min-height: calc(100vh - 46px); }
}
@media (max-width: 1100px) {
	.lucrsure-kpis { grid-template-columns: repeat(2, 1fr); }
	.lucrsure-grid-2 { grid-template-columns: 1fr; }
	.lucrsure-wizard .lucrsure-select-grid { grid-template-columns: repeat(3, 1fr); }
	.lucrsure-onboarding-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.lucrsure-sidebar { width: 70px; }
	.lucrsure-brand-text, .lucrsure-nav-item span:not(.lucrsure-nav-icon), .lucrsure-sidebar-cta span:not(.lucrsure-sidebar-cta-icon) { display: none; }
	.lucrsure-sidebar-cta { padding: 12px; }
	.lucrsure-form-row, .lucrsure-engine-choice, .lucrsure-toggle-grid, .lucrsure-module-grid { grid-template-columns: 1fr; }
	.lucrsure-kpis { grid-template-columns: 1fr; }
	.lucrsure-wizard-steps { flex-direction: column; align-items: stretch; gap: 8px; }
	.lucrsure-wizard-step { padding-bottom: 0; margin-right: 0 !important; }
	.lucrsure-wizard-step::after { display: none; }
	.lucrsure-wizard-summary { flex-direction: column; gap: 12px; }
	.lucrsure-wizard .lucrsure-select-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.lucrsure-wizard .lucrsure-select-grid { grid-template-columns: 1fr; }
}
