﻿.inv-wrap {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
	background: #f4f6f4;
}

.inv-card {
	background: #ffffff;
	border-radius: 14px;
	border: 1px solid #e2e8e2;
	padding: 2.5rem 2rem;
	max-width: 460px;
	width: 100%;
}

.inv-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 2rem;
}

.inv-brand-mark {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: #1D9E75;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

	.inv-brand-mark svg {
		width: 20px;
		height: 20px;
		fill: white;
	}

.inv-brand-name {
	font-size: 16px;
	font-weight: 600;
	color: #1a2e1a;
	letter-spacing: -0.01em;
}

.inv-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 500;
	padding: 4px 10px;
	border-radius: 100px;
	margin-bottom: 1rem;
}

.inv-badge-green {
	background: #E1F5EE;
	color: #0F6E56;
}

.inv-badge-amber {
	background: #FEF3CD;
	color: #92620A;
}

.inv-badge-red {
	background: #FDECEC;
	color: #9A2424;
}

.inv-badge-blue {
	background: #E6F1FB;
	color: #185FA5;
}

.inv-badge svg {
	width: 13px;
	height: 13px;
}

.inv-title {
	font-size: 22px;
	font-weight: 600;
	color: #1a2e1a;
	margin: 0 0 0.4rem;
	letter-spacing: -0.02em;
}

.inv-body {
	font-size: 15px;
	color: #4a5e4a;
	margin: 0 0 1.5rem;
	line-height: 1.6;
}

.inv-member-row {
	background: #f4f6f4;
	border-radius: 10px;
	padding: 0.9rem 1.1rem;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 1.75rem;
}

.inv-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #1D9E75;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 14px;
	font-weight: 600;
	color: white;
	letter-spacing: 0.02em;
}

.inv-member-label {
	font-size: 12px;
	color: #6a826a;
	margin: 0 0 2px;
}

.inv-member-name {
	font-size: 15px;
	font-weight: 600;
	color: #1a2e1a;
	margin: 0;
}

.inv-org-row {
	background: #f4f6f4;
	border-radius: 10px;
	padding: 0.9rem 1.1rem;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 1.75rem;
}

.inv-org-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #E1F5EE;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

	.inv-org-icon svg {
		width: 20px;
		height: 20px;
		fill: #0F6E56;
	}

.inv-org-label {
	font-size: 12px;
	color: #6a826a;
	margin: 0 0 2px;
}

.inv-org-name {
	font-size: 15px;
	font-weight: 600;
	color: #1a2e1a;
	margin: 0;
}

.inv-actions {
	display: flex;
	gap: 10px;
}

.inv-btn-accept {
	flex: 1;
	padding: 11px 0;
	background: #1D9E75;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}

	.inv-btn-accept:hover {
		background: #178a65;
	}

.inv-btn-decline {
	padding: 11px 20px;
	background: transparent;
	color: #6a826a;
	border: 1px solid #d1ddd1;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

	.inv-btn-decline:hover {
		background: #fdecec;
		color: #9A2424;
		border-color: #e8c4c4;
	}

.inv-btn-home {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	background: #1D9E75;
	color: white;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s;
}

	.inv-btn-home:hover {
		background: #178a65;
	}

.inv-btn-dash {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	background: #1D9E75;
	color: white;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s;
}

	.inv-btn-dash:hover {
		background: #178a65;
	}

.inv-divider {
	border: none;
	border-top: 1px solid #e2e8e2;
	margin: 1.5rem 0;
}

/* =============================================
   Login/selector page styles
   ============================================= */
html, body {
	margin: 0;
	padding: 0;
	min-height: 100%;
}

body {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
	color: #1f2937;
}

.page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.main {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 20px;
	min-height: 100vh;
}

.page .main {
	flex: 1;
	min-height: 0;
}

.selector-shell {
	width: 100%;
	max-width: 500px;
	display: flex;
	flex-direction: column;
}

.selector-header {
	text-align: center;
	margin-bottom: 24px;
}

.selector-title {
	margin: 0;
	font-size: clamp(28px, 4vw, 38px);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #0f172a;
}

.selector-subtitle {
	margin: 12px auto 0;
	font-size: 14px;
	line-height: 1.55;
	color: #6b7280;
}

.bs-legal-note {
	margin: 14px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #9ca3af;
	text-align: center;
}

.bs-legal-note a {
	color: #1D9E75;
}

.bs-field {
	margin-bottom: 1rem;
}

.bs-field-row {
	display: flex;
	gap: 16px;
}

.bs-field-row .bs-field {
	flex: 1;
	min-width: 0;
}

.bs-label {
	font-size: 12px;
	font-weight: 500;
	color: #6b7280;
	display: block;
	margin-bottom: 6px;
}

.bs-input {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
	color: #111827;
}

	.bs-input:focus {
		outline: none;
		border-color: #185FA5;
		box-shadow: 0 0 0 3px rgba(24,95,165,0.1);
	}

.bs-input-hint {
	font-size: 12px;
	color: #9ca3af;
	margin-top: 4px;
}

.check-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: #374151;
	cursor: pointer;
	line-height: 1.5;
}

.check-label input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	accent-color: #185FA5;
}

.check-label a {
	color: #185FA5;
	text-decoration: underline;
}

.otp-container {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.otp-box {
	width: 48px;
	height: 56px;
	box-sizing: border-box;
	text-align: center;
	font-size: 22px;
	font-weight: 600;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	color: #111827;
}

	.otp-box:focus {
		outline: none;
		border-color: #185FA5;
		box-shadow: 0 0 0 3px rgba(24,95,165,0.1);
	}

.bs-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #185FA5;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	padding: 10px 22px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	text-decoration: none;
}

	.bs-btn-primary:hover {
		background: #0C447C;
	}

	.bs-btn-primary:disabled {
		background: #9ca3af;
		cursor: not-allowed;
	}

		.bs-btn-primary:disabled:hover {
			background: #9ca3af;
		}

.bs-btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	color: #185FA5;
	font-size: 14px;
	font-weight: 500;
	padding: 10px 22px;
	border-radius: 8px;
	border: 1px solid #185FA5;
	cursor: pointer;
}

	.bs-btn-secondary:hover {
		background: #E6F1FB;
	}

.bs-btn-link {
	display: inline;
	background: none;
	border: none;
	color: #6b7280;
	font-size: 13px;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}

	.bs-btn-link:hover {
		color: #111827;
	}

.error-message {
	display: none;
	font-size: .8em;
	color: #b42318;
	margin-bottom: .5rem;
}

	.error-message.error-shown {
		display: block;
	}

.error-agent_not_found .error-message.agent_not_found-message,
.error-agent_not_enabled .error-message.agent_not_enabled-message,
.error-agent_title_not_allowed .error-message.agent_title_not_allowed-message {
	display: block;
}

.error-generic .error-message.generic-message {
	display: block;
}

/* Utility */
.step-hidden {
	display: none;
}

.username-hidden {
	display: none;
}

.btn-full {
	width: 100%;
	justify-content: center;
}

.mt-sm {
	margin-top: .75rem;
}

.mt-md {
	margin-top: 1rem;
}

.mt-lg {
	margin-top: 1.5rem;
}

.mb-sm {
	margin-bottom: .5rem;
}

.text-center {
	text-align: center;
}

/* =============================================
   Registration / onboarding flow (bs-* classes)
   ============================================= */

.bs-page {
	max-width: 560px;
	margin: 0 auto;
	padding: 48px 20px 80px;
}

/* The plan cards carry a full feature list (9 items) rather than 3 — the default onboarding
   width is too narrow for that without cramped wrapping, so this page gets more room. */
.bs-page--plans {
	max-width: 880px;
}

/* Progress bar */
.bs-progress-bar {
	display: flex;
	align-items: flex-start;
	margin-bottom: 40px;
}

.bs-prog-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.bs-prog-line {
	flex: 1;
	height: 2px;
	background: #e5e7eb;
	margin-top: 15px;
}

.bs-prog-line.done {
	background: #1D9E75;
}

.bs-prog-dot {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	flex-shrink: 0;
}

.bs-prog-dot.done {
	background: #1D9E75;
	color: white;
}

.bs-prog-dot.active {
	background: #185FA5;
	color: white;
}

.bs-prog-dot.inactive {
	background: #e5e7eb;
	color: #9ca3af;
}

.bs-prog-label {
	font-size: 11px;
	font-weight: 500;
	white-space: nowrap;
	text-align: center;
}

.bs-prog-label.done { color: #1D9E75; }
.bs-prog-label.active { color: #185FA5; }
.bs-prog-label.inactive { color: #9ca3af; }

/* Content body */
.bs-eyebrow {
	font-size: 12px;
	font-weight: 600;
	color: #185FA5;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 8px;
}

.bs-title {
	font-size: clamp(22px, 4vw, 30px);
	font-weight: 700;
	color: #0f172a;
	letter-spacing: -0.02em;
	margin: 0 0 12px;
}

.bs-subtitle {
	font-size: 15px;
	color: #6b7280;
	line-height: 1.6;
	margin: 0 0 24px;
}

/* Notice box */
.bs-notice {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 20px;
	font-size: 14px;
	color: #1e40af;
	line-height: 1.5;
}

.bs-notice-text {
	flex: 1;
}

/* Card */
.bs-card {
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	overflow: hidden;
	margin-bottom: 16px;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.bs-card-body {
	padding: 20px 24px;
}

/* Banner (info / expired) */
.bs-banner {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.5;
}

.bs-banner.info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
}

.bs-banner.expired {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.bs-banner-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* Plan cards */
.bs-plans {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 20px;
}

@media (max-width: 520px) {
	.bs-plans { grid-template-columns: 1fr; }
	.bs-field-row { flex-direction: column; gap: 0; }
}

.bs-plan {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	position: relative;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.bs-plan-badge {
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	background: #1D9E75;
	color: white;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 12px;
	border-radius: 100px;
	white-space: nowrap;
}

.bs-plan-name {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	margin: 0 0 6px;
}

.bs-plan-price {
	font-size: 36px;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: -0.02em;
	margin: 0 0 8px;
	line-height: 1;
}

.bs-plan-price sup {
	font-size: 18px;
	vertical-align: top;
	margin-top: 6px;
	display: inline-block;
}

.bs-plan-price sub {
	font-size: 14px;
	font-weight: 400;
	color: #6b7280;
}

.bs-plan-fee {
	font-size: 12px;
	color: #6b7280;
	line-height: 1.4;
	margin: 0 0 8px;
}

.bs-plan-desc {
	font-size: 13px;
	color: #111827;
	font-weight: 700;
	line-height: 1.5;
	margin: 0 0 14px;
}

.bs-plan-perks {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.bs-plan-perks li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #374151;
}

.bs-plan-perks li i {
	display: none;
}

.bs-plan-perks li::before {
	content: "•";
	flex: 0 0 auto;
	font-size: 16px;
	line-height: 1;
	color: #1164F3;
}

.bs-plan-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	border: 1px solid #d1d5db;
	background: #fff;
	color: #374151;
	transition: background .15s;
}

.bs-plan-btn:hover { background: #f9fafb; }

.bs-plan-btn.primary {
	background: #185FA5;
	color: #fff;
	border-color: #185FA5;
}

.bs-plan-btn.primary:hover { background: #0C447C; }

.bs-secure-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 12px;
	color: #9ca3af;
	margin-top: 4px;
}

/* Accessibility */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/* Icon size helpers */
.icon-sm { font-size: 14px; }
.icon-md { font-size: 18px; }

/* Footer */
.site-footer {
	padding: 20px;
	border-top: 1px solid #e5e7eb;
}

.site-footer-inner {
	max-width: 960px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 16px;
}

.site-footer-copy {
	font-size: 12px;
	color: #9ca3af;
}

.footer-link {
	font-size: 12px;
	color: #6b7280;
	text-decoration: none;
}

.footer-link:hover {
	color: #1D9E75;
	text-decoration: underline;
}

/* Legal / static content pages */
.main--top {
	align-items: flex-start;
}

.legal-shell {
	width: 100%;
	max-width: 820px;
	margin: 0 auto;
}

.legal-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 16px;
	font-size: 13px;
	font-weight: 500;
	color: #6b7280;
	text-decoration: none;
}

.legal-back-link:hover {
	color: #1D9E75;
}

.legal-card {
	background: #ffffff;
	border-radius: 14px;
	border: 1px solid #e2e8e2;
	padding: 2.5rem 2.75rem;
	color: #374151;
	line-height: 1.6;
}

.legal-updated {
	font-size: 13px;
	color: #6b7280;
	margin: 0 0 24px;
}

.legal-content h1 {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #0f172a;
	margin: 0 0 4px;
}

.legal-content h2 {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin: 32px 0 12px;
	padding-top: 16px;
	border-top: 1px solid #eef1ee;
}

.legal-content h3 {
	font-size: 16px;
	font-weight: 600;
	color: #0f172a;
	margin: 24px 0 8px;
}

.legal-content h4 {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	margin: 16px 0 6px;
}

.legal-content p {
	margin: 0 0 14px;
}

.legal-content ul {
	margin: 0 0 14px;
	padding-left: 22px;
}

.legal-content li {
	margin-bottom: 6px;
}

.legal-content a {
	color: #1D9E75;
	text-decoration: none;
}

.legal-content a:hover {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.legal-card {
		padding: 1.75rem 1.5rem;
	}
}
