/**
 * Survey Master — design tokens, buttons, cards (dashboard + locked).
 */

:root {
	--sfp-bg: #fafafa;
	--sfp-surface: #ffffff;
	--sfp-text: #0a0a0a;
	--sfp-muted: #737373;
	--sfp-border: #e5e5e5;
	--sfp-accent: #2563eb;
	--sfp-accent-hover: #1d4ed8;
	--sfp-radius: 12px;
	--sfp-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
	--sfp-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--sfp-space-1: 4px;
	--sfp-space-2: 8px;
	--sfp-space-3: 12px;
	--sfp-space-4: 16px;
	--sfp-space-5: 24px;
	--sfp-space-6: 32px;
	--sfp-space-7: 48px;
	--sfp-space-8: 64px;
	--sfp-text-xs: 12px;
	--sfp-text-sm: 14px;
	--sfp-text-md: 15px;
	--sfp-text-lg: 18px;
	--sfp-text-xl: 22px;
	--sfp-text-2xl: 28px;
	--sfp-text-3xl: 34px;
	--sfp-sidebar-w: 260px;
	--sfp-topbar-h: 56px;
}

.sfp-hub,
.sfp-lock {
	font-family: var(--sfp-font);
	color: var(--sfp-text);
	background: var(--sfp-bg);
	min-height: 40vh;
}

.sfp-hub__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	border-bottom: 1px solid var(--sfp-border);
	background: var(--sfp-surface);
	position: sticky;
	top: 0;
	z-index: 20;
}

.sfp-hub__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.sfp-hub__dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--sfp-accent);
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.sfp-hub__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.sfp-hub__user {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid var(--sfp-border);
	background: var(--sfp-surface);
	cursor: pointer;
	font: inherit;
}

.sfp-hub__avatar {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: #eef2ff;
	color: var(--sfp-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
}

.sfp-hub__link {
	color: var(--sfp-muted);
	text-decoration: none;
	font-size: 14px;
}

.sfp-hub__link:hover {
	color: var(--sfp-text);
}

.sfp-hub__main {
	max-width: 720px;
	margin: 0 auto;
	padding: 32px 20px 64px;
}

.sfp-card {
	background: var(--sfp-surface);
	border: 1px solid var(--sfp-border);
	border-radius: var(--sfp-radius);
	box-shadow: var(--sfp-shadow);
	padding: 28px;
}

.sfp-muted {
	color: var(--sfp-muted);
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 12px;
}

.sfp-hub__email {
	font-size: 18px;
	margin: 0 0 16px;
}

.sfp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	border: 1px solid transparent;
	text-decoration: none;
	min-height: 44px;
	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		box-shadow 0.2s ease;
}

/* Override WP theme link/button:hover backgrounds inside dashboard */
body.sfp-dash a.sfp-btn--ghost:hover,
body.sfp-dash button.sfp-btn--ghost:hover,
body.sfp-dash .sfp-btn--ghost:hover {
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 55%, #bfdbfe 100%) !important;
	border-color: #93c5fd !important;
	color: #1e40af !important;
	box-shadow: 0 2px 10px rgba(59, 130, 246, 0.18);
}

body.sfp-dash a.sfp-btn--primary:hover,
body.sfp-dash button.sfp-btn--primary:hover,
body.sfp-dash .sfp-btn--primary:hover {
	background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 45%, #3b82f6 100%) !important;
	border-color: #3b82f6 !important;
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(59, 130, 246, 0.32);
}

.sfp-btn--primary {
	background: var(--sfp-accent);
	color: #fff;
	border-color: var(--sfp-accent);
}

.sfp-btn--primary:hover,
.sfp-dash-wrap .sfp-btn--primary:hover,
.sfp-hub-app .sfp-btn--primary:hover,
.sfp-gate .sfp-btn--primary:hover {
	background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 45%, #3b82f6 100%) !important;
	border-color: #3b82f6 !important;
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(59, 130, 246, 0.32);
}

.sfp-btn--ghost {
	background: var(--sfp-surface);
	color: var(--sfp-text);
	border-color: var(--sfp-border);
}

.sfp-btn--ghost:hover,
.sfp-dash-wrap .sfp-btn--ghost:hover,
.sfp-hub-app .sfp-btn--ghost:hover,
.sfp-gate .sfp-btn--ghost:hover,
a.sfp-btn--ghost:hover,
button.sfp-btn--ghost:hover {
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 55%, #bfdbfe 100%) !important;
	border-color: #93c5fd !important;
	color: #1e40af !important;
	box-shadow: 0 2px 10px rgba(59, 130, 246, 0.18);
}

.sfp-btn--danger {
	background: #fef2f2;
	color: #b91c1c;
	border-color: #fecaca;
}

.sfp-btn--danger:hover,
.sfp-dash-wrap .sfp-btn--danger:hover,
.sfp-builder .sfp-btn--danger:hover,
.sfp-surveys-app .sfp-btn--danger:hover {
	background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
	border-color: #f87171 !important;
	color: #991b1b !important;
	box-shadow: 0 2px 8px rgba(248, 113, 113, 0.2);
}

.sfp-btn--block {
	width: 100%;
}

/* The `hidden` attribute must always win over the button display value
   (otherwise wizard Next/Back/Finish buttons all show at once). */
.sfp-btn[hidden],
[hidden].sfp-btn {
	display: none !important;
}

.sfp-btn--xs {
	padding: 4px 9px;
	font-size: 11px;
	line-height: 1.2;
	border-radius: 7px;
	gap: 4px;
	min-height: 0;
}

.sfp-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.sfp-btn.is-loading {
	opacity: 0.85;
	cursor: wait;
}

.sfp-btn__loading {
	font-weight: 500;
}

.sfp-lock {
	padding: 48px 16px;
}

.sfp-lock__card {
	max-width: 520px;
	margin: 0 auto;
	background: var(--sfp-surface);
	border: 1px solid var(--sfp-border);
	border-radius: var(--sfp-radius);
	box-shadow: var(--sfp-shadow);
	padding: 32px;
}

.sfp-lock__eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sfp-muted);
	margin: 0 0 8px;
}

.sfp-lock__title {
	font-size: 26px;
	line-height: 1.2;
	margin: 0 0 12px;
}

.sfp-lock__context,
.sfp-lock__desc {
	color: var(--sfp-muted);
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 16px;
}

.sfp-lock__plan {
	border: 1px solid var(--sfp-border);
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 20px;
	background: #fafafa;
}

.sfp-lock__plan-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-weight: 600;
	margin-bottom: 12px;
}

.sfp-lock__plan-price {
	font-size: 20px;
	color: var(--sfp-accent);
}

.sfp-lock__bullets {
	margin: 0;
	padding-left: 18px;
	color: var(--sfp-muted);
	font-size: 14px;
	line-height: 1.7;
}

.sfp-lock__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.sfp-lock__notice {
	font-size: 14px;
	color: var(--sfp-accent);
	margin: 0 0 12px;
}

.sfp-lock__foot {
	text-align: center;
	margin: 0;
}

.sfp-gate__link {
	color: var(--sfp-accent);
	text-decoration: none;
	font-size: 14px;
}

.sfp-gate__link:hover {
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Design tokens — spacing & type (Linear / Vercel inspired)
   ------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------
   Dashboard shell — sidebar + main
   ------------------------------------------------------------------------- */
/* Prevent horizontal page scroll on all dashboard surfaces */
body.sfp-dash {
	overflow-x: clip;
}

body.sfp-dash .site-content,
body.sfp-dash .entry-content,
body.sfp-dash .wp-block-post-content {
	max-width: 100%;
	overflow-x: clip;
}

.sfp-dash-wrap {
	display: flex;
	align-items: flex-start;
	min-height: 100vh;
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
	box-sizing: border-box;
	font-family: var(--sfp-font);
	color: var(--sfp-text);
	background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 42%, #fdf2f8 100%);
}

.sfp-dash-sidebar {
	width: var(--sfp-sidebar-w);
	flex-shrink: 0;
	border-right: 1px solid #e0e7ff;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	align-self: flex-start;
	height: 100vh;
	max-height: 100vh;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	z-index: 40;
	box-shadow: 4px 0 24px rgba(99, 102, 241, 0.06);
}

.sfp-dash-sidebar__head {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: var(--sfp-space-4) var(--sfp-space-5);
	border-bottom: 1px solid var(--sfp-border);
	gap: var(--sfp-space-3);
}

.sfp-dash-sidebar__brand {
	display: flex;
	align-items: center;
	gap: var(--sfp-space-3);
	min-width: 0;
}

.sfp-dash-sidebar__logo:not(.sfp-dash-sidebar__logo--mark) {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: linear-gradient(135deg, #dbeafe, #eff6ff);
	border: 1px solid var(--sfp-border);
	flex-shrink: 0;
}

.sfp-dash-sidebar__logo--img {
	border: none;
	background: none;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.sfp-dash-sidebar__logo--img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.sfp-dash-sidebar__wordmark {
	font-weight: 600;
	font-size: var(--sfp-text-sm);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sfp-dash-sidebar__rail-toggle {
	display: none;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	margin-left: auto;
	padding: 0;
	border: 1px solid #e0e7ff;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.sfp-dash-sidebar__rail-toggle:hover {
	background: #eff6ff;
	border-color: #c7d2fe;
}

.sfp-dash-sidebar__rail-toggle-icon {
	display: block;
	width: 8px;
	height: 8px;
	border-right: 2px solid #6366f1;
	border-bottom: 2px solid #6366f1;
	transform: rotate(-45deg);
	transition: transform 0.2s ease;
}

.sfp-dash-sidebar.is-builder-expanded .sfp-dash-sidebar__rail-toggle-icon {
	transform: rotate(135deg);
}

@media (min-width: 769px) {
	.sfp-dash-wrap--builder .sfp-dash-sidebar__rail-toggle,
	body.sfp-dash--builder .sfp-dash-sidebar__rail-toggle {
		display: inline-flex;
	}

	.sfp-dash-wrap--builder .sfp-dash-sidebar.is-builder-collapsed,
	body.sfp-dash--builder .sfp-dash-sidebar.is-builder-collapsed {
		width: 72px;
	}

	.sfp-dash-wrap--builder .sfp-dash-sidebar.is-builder-collapsed .sfp-dash-sidebar__wordmark,
	.sfp-dash-wrap--builder .sfp-dash-sidebar.is-builder-collapsed .sfp-dash-nav__heading,
	.sfp-dash-wrap--builder .sfp-dash-sidebar.is-builder-collapsed .sfp-dash-sidebar__signout,
	.sfp-dash-wrap--builder .sfp-dash-sidebar.is-builder-collapsed .sfp-dash-sidebar__account,
	body.sfp-dash--builder .sfp-dash-sidebar.is-builder-collapsed .sfp-dash-sidebar__wordmark,
	body.sfp-dash--builder .sfp-dash-sidebar.is-builder-collapsed .sfp-dash-nav__heading,
	body.sfp-dash--builder .sfp-dash-sidebar.is-builder-collapsed .sfp-dash-sidebar__signout,
	body.sfp-dash--builder .sfp-dash-sidebar.is-builder-collapsed .sfp-dash-sidebar__account {
		font-size: 0;
		line-height: 0;
		color: transparent;
		overflow: hidden;
		height: 0;
		padding: 0;
		margin: 0;
		border: 0;
	}

	.sfp-dash-wrap--builder .sfp-dash-sidebar.is-builder-collapsed .sfp-dash-nav__link,
	body.sfp-dash--builder .sfp-dash-sidebar.is-builder-collapsed .sfp-dash-nav__link {
		justify-content: center;
		gap: 0;
		padding: 8px;
	}

	.sfp-dash-wrap--builder .sfp-dash-sidebar.is-builder-collapsed .sfp-dash-sidebar__head,
	body.sfp-dash--builder .sfp-dash-sidebar.is-builder-collapsed .sfp-dash-sidebar__head {
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: 8px;
		padding: var(--sfp-space-3);
	}

	.sfp-dash-wrap--builder .sfp-dash-sidebar.is-builder-collapsed .sfp-dash-sidebar__brand,
	body.sfp-dash--builder .sfp-dash-sidebar.is-builder-collapsed .sfp-dash-sidebar__brand {
		flex-direction: column;
		gap: 6px;
	}

	.sfp-dash-wrap--builder .sfp-dash-sidebar.is-builder-collapsed .sfp-dash-sidebar__rail-toggle,
	body.sfp-dash--builder .sfp-dash-sidebar.is-builder-collapsed .sfp-dash-sidebar__rail-toggle {
		margin-left: 0;
		order: 3;
		width: 100%;
	}

	.sfp-dash-wrap--builder .sfp-dash-main__title,
	body.sfp-dash--builder .sfp-dash-main__title {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.sfp-dash-wrap--builder .sfp-dash-main__bar,
	body.sfp-dash--builder .sfp-dash-main__bar {
		min-height: 44px;
		padding: 8px var(--sfp-space-4);
		justify-content: flex-end;
		border-bottom-color: transparent;
	}

	.sfp-dash-wrap--builder .sfp-builder,
	body.sfp-dash--builder .sfp-builder {
		min-height: calc(100vh - 72px);
	}
}

.sfp-dash-drawer-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--sfp-border);
	border-radius: 10px;
	background: var(--sfp-surface);
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
	z-index: 55;
}

.sfp-dash-drawer-toggle__bar {
	display: block;
	height: 2px;
	width: 18px;
	background: var(--sfp-text);
	border-radius: 1px;
}

.sfp-dash-sidebar__nav {
	flex: 1;
	overflow-y: auto;
	padding: var(--sfp-space-4) var(--sfp-space-3);
}

.sfp-dash-nav__group {
	margin-bottom: var(--sfp-space-5);
}

.sfp-dash-nav__heading {
	font-size: var(--sfp-text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6366f1;
	margin: 0 0 var(--sfp-space-2) var(--sfp-space-3);
	padding-left: var(--sfp-space-2);
	border-left: 3px solid #c7d2fe;
}

.sfp-dash-nav__links {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sfp-dash-nav__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px var(--sfp-space-3);
	border-radius: 10px;
	font-size: var(--sfp-text-sm);
	font-weight: 500;
	color: #525252;
	text-decoration: none;
	transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
	line-height: 1.3;
}

/* Nav icons: assets/sfp-dash-nav-icons.css */

.sfp-dash-nav__link:hover {
	background: #f5f5f5;
	color: var(--sfp-text);
}

.sfp-dash-nav__link.is-active {
	background: linear-gradient(90deg, #eff6ff, #fdf4ff);
	color: #4338ca;
	box-shadow: inset 3px 0 0 #6366f1;
	padding-left: calc(var(--sfp-space-3) - 3px);
}

.sfp-dash-nav__link.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.sfp-dash-sidebar__foot {
	padding: var(--sfp-space-4) var(--sfp-space-5);
	border-top: 1px solid var(--sfp-border);
	display: flex;
	flex-direction: column;
	gap: var(--sfp-space-2);
}

.sfp-dash-sidebar__account {
	font: inherit;
	font-size: var(--sfp-text-sm);
	font-weight: 500;
	text-align: left;
	padding: var(--sfp-space-2) var(--sfp-space-3);
	border-radius: 8px;
	border: none;
	background: transparent;
	color: var(--sfp-text);
	cursor: pointer;
}

.sfp-dash-sidebar__account:hover {
	background-color: var(--sfp-ui-btn-hover-bg, rgba(99, 102, 241, 0.1)) !important;
	color: var(--sfp-text) !important;
}

.sfp-dash-sidebar__signout {
	font-size: var(--sfp-text-sm);
	color: var(--sfp-muted);
	text-decoration: none;
	padding: var(--sfp-space-2) var(--sfp-space-3);
	border-radius: 8px;
}

.sfp-dash-sidebar__signout:hover {
	color: #1d4ed8 !important;
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
	background-color: transparent !important;
}

.sfp-dash-main {
	flex: 1;
	min-width: 0;
	max-width: 100%;
	overflow-x: clip;
	padding: 0 var(--sfp-space-6) var(--sfp-space-8);
	box-sizing: border-box;
}

body.sfp-dash--builder .sfp-dash-main,
.sfp-dash-wrap--builder .sfp-dash-main {
	padding-left: var(--sfp-space-4);
	padding-right: var(--sfp-space-4);
}

.sfp-dash-main__bar {
	padding: var(--sfp-space-5) var(--sfp-space-4);
	margin-top: var(--sfp-space-4);
	margin-bottom: var(--sfp-space-5);
	border-bottom: none;
	border-radius: 14px;
	background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.06));
	border: 1px solid #e0e7ff;
}

.sfp-dash-main__title {
	font-size: var(--sfp-text-2xl);
	font-weight: 600;
	margin: 0;
	letter-spacing: -0.02em;
	background: linear-gradient(90deg, #4338ca, #be185d);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

body.sfp-dash--responses .sfp-dash-main__bar {
	background: linear-gradient(90deg, rgba(99, 102, 241, 0.12), rgba(167, 139, 250, 0.08));
}

body.sfp-dash--leads .sfp-dash-main__bar {
	background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.08));
}

body.sfp-dash--analytics .sfp-dash-main__bar {
	background: linear-gradient(90deg, rgba(249, 115, 22, 0.1), rgba(234, 179, 8, 0.08));
}

body.sfp-dash--surveys .sfp-dash-main__bar {
	background: linear-gradient(90deg, rgba(236, 72, 153, 0.1), rgba(99, 102, 241, 0.08));
}

body.sfp-dash--templates .sfp-dash-main__bar {
	background: linear-gradient(90deg, rgba(126, 34, 206, 0.1), rgba(59, 130, 246, 0.08));
}

body.sfp-dash--integrations .sfp-dash-main__bar {
	background: linear-gradient(90deg, rgba(234, 179, 8, 0.12), rgba(34, 197, 94, 0.08));
}

body.sfp-dash--dashboard .sfp-dash-main__bar {
	background: linear-gradient(90deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.08));
}

.sfp-dash-main__body {
	font-size: var(--sfp-text-md);
	line-height: 1.65;
	min-width: 0;
	max-width: 100%;
	overflow-x: clip;
}

@media (max-width: 768px) {
	.sfp-dash-drawer-toggle {
		display: flex;
		position: fixed;
		top: 14px;
		left: 14px;
	}

	.sfp-dash-sidebar {
		position: fixed;
		left: 0;
		top: 0;
		bottom: 0;
		height: auto;
		max-height: none;
		align-self: auto;
		transform: translateX(-100%);
		transition: transform 0.2s ease;
		box-shadow: var(--sfp-shadow);
		z-index: 50;
		width: min(280px, 86vw);
	}

	.sfp-dash-sidebar.is-mobile-open {
		transform: translateX(0);
	}

	.sfp-dash-wrap {
		display: block;
		width: 100%;
		max-width: 100%;
	}

	.sfp-dash-main {
		width: 100%;
		max-width: 100%;
		padding: 52px var(--sfp-space-4) var(--sfp-space-7) var(--sfp-space-4);
		box-sizing: border-box;
	}

	.sfp-dash-main__bar {
		padding-left: 52px;
		padding-right: var(--sfp-space-4);
		margin-top: 0;
		flex-wrap: wrap;
		gap: 12px;
	}

	.sfp-dash-main__title {
		flex: 1 1 100%;
		min-width: 0;
	}

	.sfp-dash-main__bar-actions {
		margin-left: 0;
	}

	.sfp-hub-app__topbar {
		padding-left: 52px;
		padding-right: var(--sfp-space-4);
	}

	.sfp-hub-app__topbar-left {
		flex: 1 1 100%;
		min-width: 0;
	}

	.sfp-hub-app__brand-divider,
	.sfp-hub-app__brand-tag {
		display: none;
	}

	body.sfp-dash-nav-open {
		overflow: hidden;
	}

	body.sfp-dash-nav-open::before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(15, 23, 42, 0.45);
		z-index: 45;
		pointer-events: none;
	}
}

/* -------------------------------------------------------------------------
   Hub app
   ------------------------------------------------------------------------- */
.sfp-hub-app__shell {
	align-items: flex-start;
}

.sfp-hub-app__main {
	max-width: 1120px;
	margin: 0 auto;
	width: 100%;
}

.sfp-hub-app__topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--sfp-topbar-h);
	padding: var(--sfp-space-3) 0;
	border-bottom: 1px solid var(--sfp-border);
	margin-bottom: var(--sfp-space-6);
	gap: var(--sfp-space-4);
	flex-wrap: wrap;
}

.sfp-hub-app__topbar-left {
	display: flex;
	align-items: center;
	gap: var(--sfp-space-3);
	min-width: 0;
}

.sfp-hub-app__logo img {
	max-height: 28px;
	width: auto;
	display: block;
}

.sfp-hub-app__brand-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--sfp-accent);
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
	flex-shrink: 0;
}

.sfp-hub-app__brand-text {
	font-weight: 600;
	font-size: var(--sfp-text-sm);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sfp-hub-app__brand-divider {
	width: 1px;
	height: 18px;
	background: var(--sfp-border);
	flex-shrink: 0;
}

.sfp-hub-app__brand-tag {
	font-size: var(--sfp-text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--sfp-muted);
}

.sfp-hub-app__topbar-right {
	display: flex;
	align-items: center;
	gap: var(--sfp-space-3);
	flex-wrap: wrap;
}

.sfp-hub-app__support {
	font-size: var(--sfp-text-sm);
	color: var(--sfp-muted);
	text-decoration: none;
}

.sfp-hub-app__support:hover {
	color: var(--sfp-text);
}

.sfp-hub-app__user {
	display: inline-flex;
	align-items: center;
	gap: var(--sfp-space-2);
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--sfp-border);
	background: var(--sfp-surface);
	cursor: pointer;
	font: inherit;
}

.sfp-hub-app__user:hover {
	border-color: #d4d4d4;
}

.sfp-hub-app__avatar {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: #eef2ff;
	color: var(--sfp-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
}

.sfp-hub-app__user-name {
	font-size: var(--sfp-text-sm);
	font-weight: 500;
	max-width: 160px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sfp-hub-app__signout {
	font-size: var(--sfp-text-sm);
	color: var(--sfp-muted);
	text-decoration: none;
}

.sfp-hub-app__signout:hover {
	color: var(--sfp-text) !important;
	background-color: var(--sfp-ui-btn-hover-bg, rgba(99, 102, 241, 0.1)) !important;
	border-radius: 8px;
}

.sfp-hub-app__hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sfp-space-6);
	margin-bottom: var(--sfp-space-7);
	padding: var(--sfp-space-6);
	border-radius: 16px;
	border: 1px solid #e0e7ff;
	background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 50%, #ecfdf5 100%);
}

@media (min-width: 900px) {
	.sfp-hub-app__hero {
		grid-template-columns: 1.1fr 0.9fr;
		align-items: start;
	}
}

.sfp-hub-app__eyebrow {
	font-size: var(--sfp-text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--sfp-muted);
	margin: 0 0 var(--sfp-space-2);
}

.sfp-hub-app__title {
	font-size: var(--sfp-text-3xl);
	line-height: 1.15;
	font-weight: 600;
	margin: 0 0 var(--sfp-space-3);
	letter-spacing: -0.02em;
}

.sfp-hub-app__deck {
	font-size: var(--sfp-text-md);
	color: var(--sfp-muted);
	line-height: 1.6;
	margin: 0;
	max-width: 520px;
}

.sfp-hub-app__notice--banner {
	margin-top: var(--sfp-space-4);
	padding: var(--sfp-space-3) var(--sfp-space-4);
	border-radius: 10px;
	border: 1px solid #bfdbfe;
	background: #eff6ff;
	color: #1e3a8a;
	font-size: var(--sfp-text-sm);
}

.sfp-hub-app__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--sfp-space-3);
}

@media (min-width: 640px) {
	.sfp-hub-app__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.sfp-hub-app__stat {
	background: #fff;
	border: 1px solid #e0e7ff;
	border-radius: var(--sfp-radius);
	padding: var(--sfp-space-4);
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08);
}

.sfp-hub-app__stat-num {
	display: block;
	font-size: var(--sfp-text-2xl);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #4338ca;
	margin-bottom: var(--sfp-space-1);
}

.sfp-hub-app__stat-label {
	font-size: var(--sfp-text-xs);
	color: var(--sfp-muted);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.sfp-hub-app__section {
	margin-bottom: var(--sfp-space-8);
}

.sfp-hub-app__section-head {
	margin-bottom: var(--sfp-space-5);
}

.sfp-hub-app__section-title {
	font-size: var(--sfp-text-xl);
	font-weight: 600;
	margin: 0 0 var(--sfp-space-2);
	letter-spacing: -0.02em;
}

.sfp-hub-app__section-lead {
	margin: 0;
	font-size: var(--sfp-text-sm);
	color: var(--sfp-muted);
	max-width: 560px;
	line-height: 1.6;
}

.sfp-hub-app__activity {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sfp-space-4);
}

@media (min-width: 900px) {
	.sfp-hub-app__activity {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.sfp-hub-app__feed {
	background: var(--sfp-surface);
	border: 1px solid var(--sfp-border);
	border-radius: var(--sfp-radius);
	padding: var(--sfp-space-4);
	min-height: 180px;
}

.sfp-feed__heading {
	font-size: var(--sfp-text-sm);
	font-weight: 600;
	margin: 0 0 var(--sfp-space-3);
}

.sfp-feed__body {
	font-size: var(--sfp-text-sm);
	color: var(--sfp-text);
}

.sfp-feed__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sfp-feed__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: var(--sfp-space-2) 0;
	border-bottom: 1px solid #f5f5f5;
}

.sfp-feed__item:last-child {
	border-bottom: none;
}

.sfp-feed__title {
	font-weight: 500;
}

.sfp-feed__time {
	font-size: var(--sfp-text-xs);
	color: var(--sfp-muted);
}

.sfp-feed__meta {
	color: var(--sfp-muted);
	font-size: var(--sfp-text-xs);
}

.sfp-feed__empty {
	margin: 0;
	color: var(--sfp-muted);
	font-size: var(--sfp-text-sm);
}

.sfp-hub-app__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sfp-space-4);
}

@media (min-width: 640px) {
	.sfp-hub-app__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.sfp-hub-app__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.sfp-hub-app__card {
	background: var(--sfp-surface);
	border: 1px solid var(--sfp-border);
	border-radius: var(--sfp-radius);
	padding: var(--sfp-space-5);
	display: flex;
	flex-direction: column;
	gap: var(--sfp-space-3);
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.sfp-hub-app__card.is-owned {
	border-color: #dbeafe;
}

.sfp-hub-app__card-head {
	display: flex;
	justify-content: flex-end;
}

.sfp-hub-app__pill {
	font-size: var(--sfp-text-xs);
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid var(--sfp-border);
	color: var(--sfp-muted);
}

.sfp-hub-app__pill--ok {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: var(--sfp-accent);
}

.sfp-hub-app__pill--lock {
	border-color: #e5e5e5;
	background: #fafafa;
}

.sfp-hub-app__card-title {
	font-size: var(--sfp-text-lg);
	font-weight: 600;
	margin: 0;
}

.sfp-hub-app__card-text {
	margin: 0;
	font-size: var(--sfp-text-sm);
	color: var(--sfp-muted);
	line-height: 1.55;
	flex: 1;
}

.sfp-hub-app__card-foot {
	margin-top: auto;
}

.sfp-hub-app__billing-card {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--sfp-space-5);
	background: var(--sfp-surface);
	border: 1px solid var(--sfp-border);
	border-radius: var(--sfp-radius);
	padding: var(--sfp-space-6);
	box-shadow: var(--sfp-shadow);
}

.sfp-hub-app__billing-plan {
	margin: var(--sfp-space-2) 0 0;
	font-size: var(--sfp-text-md);
}

.sfp-hub-app__billing-actions {
	display: flex;
	align-items: center;
	gap: var(--sfp-space-3);
}

/* Stub pages inside dashboard */
.sfp-dash-stub {
	max-width: 640px;
	padding: var(--sfp-space-7) 0;
}

.sfp-dash-stub__eyebrow {
	font-size: var(--sfp-text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--sfp-muted);
	margin: 0 0 var(--sfp-space-2);
}

.sfp-dash-stub__title {
	font-size: var(--sfp-text-2xl);
	font-weight: 600;
	margin: 0 0 var(--sfp-space-3);
	letter-spacing: -0.02em;
}

.sfp-dash-stub__text {
	margin: 0;
	font-size: var(--sfp-text-md);
	color: var(--sfp-muted);
	line-height: 1.65;
}

/* Public pricing */
.sfp-pricing-page {
	font-family: var(--sfp-font);
	color: var(--sfp-text);
	background: var(--sfp-bg);
	padding: var(--sfp-space-7) var(--sfp-space-4) var(--sfp-space-8);
	max-width: 1100px;
	margin: 0 auto;
}

.sfp-pricing-page__hero {
	text-align: center;
	margin-bottom: var(--sfp-space-7);
}

.sfp-pricing-page__eyebrow {
	font-size: var(--sfp-text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--sfp-muted);
	margin: 0 0 var(--sfp-space-2);
}

.sfp-pricing-page__title {
	font-size: var(--sfp-text-3xl);
	font-weight: 600;
	margin: 0 0 var(--sfp-space-3);
	letter-spacing: -0.02em;
}

.sfp-pricing-page__lead {
	margin: 0 auto;
	max-width: 520px;
	font-size: var(--sfp-text-md);
	color: var(--sfp-muted);
	line-height: 1.65;
}

.sfp-pricing-page__signed-in {
	margin: var(--sfp-space-4) 0 0;
}

.sfp-pricing-page__dash-link {
	font-size: var(--sfp-text-sm);
	font-weight: 500;
	color: var(--sfp-accent);
	text-decoration: none;
}

.sfp-pricing-page__dash-link:hover {
	text-decoration: underline;
}

.sfp-pricing-page__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sfp-space-4);
}

@media (min-width: 720px) {
	.sfp-pricing-page__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.sfp-pricing-page__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.sfp-pricing-card {
	background: var(--sfp-surface);
	border: 1px solid var(--sfp-border);
	border-radius: var(--sfp-radius);
	padding: var(--sfp-space-5);
	display: flex;
	flex-direction: column;
	gap: var(--sfp-space-3);
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.sfp-pricing-card.is-current {
	border-color: #bfdbfe;
	box-shadow: 0 8px 30px rgba(37, 99, 235, 0.08);
}

.sfp-pricing-card__title {
	font-size: var(--sfp-text-lg);
	font-weight: 600;
	margin: 0;
}

.sfp-pricing-card__price {
	margin: 0;
}

.sfp-pricing-card__amount {
	font-size: var(--sfp-text-2xl);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.sfp-pricing-card__period {
	font-size: var(--sfp-text-sm);
	color: var(--sfp-muted);
	margin-left: 2px;
}

.sfp-pricing-card__desc {
	margin: 0;
	font-size: var(--sfp-text-sm);
	color: var(--sfp-muted);
	line-height: 1.6;
	flex: 1;
}

.sfp-pricing-card__foot {
	margin-top: auto;
}

.sfp-pricing-card__badge {
	display: inline-block;
	font-size: var(--sfp-text-sm);
	font-weight: 500;
	color: var(--sfp-accent);
}
