/* ==========================================================================
   BuildNFO Pro — Frontend UI v2.0
   Professional construction calculator interface.
   Design: clean engineering blueprint aesthetic — dark ink headers,
   amber construction-tape accent, crisp data tables, no fluff.
   ========================================================================== */

/* ── Design tokens ─────────────────────────────────────────────────────── */
.bcx-wrapper {
	--bcx-ink:        #111827;
	--bcx-ink-2:      #1f2937;
	--bcx-muted:      #6b7280;
	--bcx-muted-2:    #9ca3af;
	--bcx-border:     #e5e7eb;
	--bcx-border-2:   #f3f4f6;
	--bcx-bg:         #ffffff;
	--bcx-bg-soft:    #f9fafb;
	--bcx-bg-deep:    #f3f4f6;

	/* Amber construction-tape accent */
	--bcx-accent:     #6d4aff;
	--bcx-accent-dk:  #4f46e5;
	--bcx-accent-lt:  rgba(109,74,255,0.10);
	--bcx-accent-glow:rgba(109,74,255,0.22);

	/* Success green for results */
	--bcx-success:    #059669;
	--bcx-success-lt: rgba(5,150,105,0.08);

	/* Radius scale */
	--bcx-r-xs:  6px;
	--bcx-r-sm:  10px;
	--bcx-r-md:  14px;
	--bcx-r-lg:  20px;
	--bcx-r-xl:  28px;

	/* Elevation */
	--bcx-shadow-xs: 0 1px 3px rgba(0,0,0,0.08);
	--bcx-shadow-sm: 0 4px 12px rgba(0,0,0,0.07);
	--bcx-shadow-md: 0 10px 30px rgba(0,0,0,0.09);
	--bcx-shadow-lg: 0 20px 50px rgba(0,0,0,0.11);

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--bcx-ink);
	background: var(--bcx-bg);
	border-radius: var(--bcx-r-xl);
	overflow: hidden;
}

.bcx-wrapper *,
.bcx-wrapper *::before,
.bcx-wrapper *::after { box-sizing: border-box; }

/* ── Hub layout (calculator grid view) ─────────────────────────────────── */
.bcx-hub {
	padding: 36px 32px;
	background:
		linear-gradient(135deg, rgba(109,74,255,0.05) 0%, transparent 50%),
		var(--bcx-bg);
}

.bcx-hub-head { margin-bottom: 28px; }

.bcx-hub-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--bcx-accent-dk);
	background: var(--bcx-accent-lt);
	border: 1px solid rgba(109,74,255,0.25);
	border-radius: 999px;
	padding: 5px 12px;
	margin-bottom: 14px;
}

.bcx-hub-title {
	font-size: clamp(26px, 3.5vw, 40px);
	font-weight: 900;
	color: var(--bcx-ink);
	letter-spacing: -0.04em;
	line-height: 1.1;
	margin: 0 0 10px;
}

.bcx-hub-title em {
	font-style: normal;
	color: var(--bcx-accent);
}

.bcx-hub-subtitle {
	font-size: 15px;
	color: var(--bcx-muted);
	line-height: 1.65;
	max-width: 560px;
	margin: 0 0 24px;
}

/* Stats strip */
.bcx-hub-stats {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}

.bcx-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bcx-stat-value {
	font-size: 22px;
	font-weight: 900;
	color: var(--bcx-ink);
	letter-spacing: -0.03em;
}

.bcx-stat-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--bcx-muted-2);
}

/* ── Search ─────────────────────────────────────────────────────────────── */
.bcx-search-wrap {
	position: relative;
	max-width: 440px;
}

.bcx-search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--bcx-muted-2);
	pointer-events: none;
	font-size: 16px;
}

.bcx-search {
	width: 100%;
	min-height: 52px;
	padding: 13px 18px 13px 44px;
	border: 1.5px solid var(--bcx-border);
	border-radius: 999px;
	background: var(--bcx-bg);
	font-size: 14px;
	color: var(--bcx-ink);
	box-shadow: var(--bcx-shadow-xs);
	transition: border-color .2s, box-shadow .2s;
	outline: none;
}

.bcx-search::placeholder { color: var(--bcx-muted-2); }

.bcx-search:focus {
	border-color: var(--bcx-accent);
	box-shadow: 0 0 0 4px var(--bcx-accent-glow), var(--bcx-shadow-sm);
}

/* ── Category filters ───────────────────────────────────────────────────── */
.bcx-filters {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 20px 0 24px;
}

.bcx-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: var(--bcx-bg-soft);
	border: 1.5px solid var(--bcx-border);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	color: var(--bcx-muted);
	cursor: pointer;
	transition: all .18s;
	white-space: nowrap;
}

.bcx-filter-btn:hover {
	background: var(--bcx-bg);
	color: var(--bcx-ink);
	border-color: var(--bcx-accent);
}

.bcx-filter-btn.is-active {
	background: var(--bcx-accent);
	color: #fff;
	border-color: var(--bcx-accent);
	box-shadow: 0 6px 18px var(--bcx-accent-glow);
}

/* ── Calculator card grid ───────────────────────────────────────────────── */
.bcx-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
}

.bcx-card {
	position: relative;
	background: var(--bcx-bg);
	border: 1.5px solid var(--bcx-border);
	border-radius: var(--bcx-r-lg);
	padding: 22px;
	box-shadow: var(--bcx-shadow-sm);
	cursor: pointer;
	transition: transform .2s, box-shadow .2s, border-color .2s;
	overflow: hidden;
	outline: none;
}

/* Blueprint corner accent */
.bcx-card::after {
	content: "";
	position: absolute;
	top: 0; right: 0;
	width: 0; height: 0;
	border-style: solid;
	border-width: 0 28px 28px 0;
	border-color: transparent var(--bcx-border-2) transparent transparent;
	transition: border-color .2s;
}

.bcx-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--bcx-shadow-lg);
	border-color: var(--bcx-accent);
}

.bcx-card:hover::after {
	border-right-color: var(--bcx-accent-lt);
}

/* Top accent stripe */
.bcx-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--bcx-accent) 0%, rgba(139,107,255,0.15) 100%);
	opacity: 0;
	transition: opacity .2s;
}

.bcx-card:hover::before,
.bcx-card:focus-visible::before { opacity: 1; }

.bcx-card-header {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-bottom: 14px;
}

.bcx-card-icon {
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	border-radius: var(--bcx-r-md);
	background: var(--bcx-accent-lt);
	border: 1px solid rgba(109,74,255,0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: var(--bcx-accent-dk);
}

.bcx-card-meta { flex: 1; min-width: 0; }

.bcx-title {
	font-size: 16px;
	font-weight: 800;
	color: var(--bcx-ink);
	margin: 0 0 4px;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.bcx-card-desc {
	font-size: 13px;
	color: var(--bcx-muted);
	line-height: 1.5;
	margin: 0;
}

.bcx-card-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 16px;
	font-size: 13px;
	font-weight: 700;
	color: var(--bcx-accent-dk);
	background: var(--bcx-accent-lt);
	border: 1px solid rgba(109,74,255,0.2);
	border-radius: 999px;
	padding: 7px 14px;
	transition: all .18s;
}

.bcx-card:hover .bcx-card-cta {
	background: var(--bcx-accent);
	color: #fff;
	border-color: var(--bcx-accent);
}

/* ── Single calculator panel ────────────────────────────────────────────── */
.bcx-panel {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

@media (min-width: 768px) {
	.bcx-panel {
		grid-template-columns: 340px 1fr;
		min-height: 520px;
	}
}

/* Left pane: inputs */
.bcx-panel-left {
	background: var(--bcx-bg-soft);
	border-right: 1.5px solid var(--bcx-border);
	padding: 28px 24px;
}

/* Right pane: results */
.bcx-panel-right {
	padding: 28px 28px 28px;
	background: var(--bcx-bg);
}

/* Panel header */
.bcx-panel-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 18px;
	border-bottom: 1.5px solid var(--bcx-border);
}

.bcx-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 700;
	color: var(--bcx-muted);
	background: var(--bcx-bg-soft);
	border: 1.5px solid var(--bcx-border);
	border-radius: 999px;
	padding: 8px 14px;
	cursor: pointer;
	transition: all .18s;
}

.bcx-back-btn:hover {
	color: var(--bcx-ink);
	background: var(--bcx-bg);
	border-color: var(--bcx-accent);
}

.bcx-panel-title {
	font-size: 18px;
	font-weight: 800;
	color: var(--bcx-ink);
	letter-spacing: -0.02em;
	margin: 0;
	flex: 1;
}

/* ── Form elements ─────────────────────────────────────────────────────── */
.bcx-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.bcx-unit-toggle {
	display: inline-flex;
	background: var(--bcx-bg-deep);
	border: 1.5px solid var(--bcx-border);
	border-radius: 999px;
	padding: 3px;
	gap: 2px;
}

.bcx-unit-btn {
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	color: var(--bcx-muted);
	border: none;
	background: transparent;
	cursor: pointer;
	transition: all .18s;
}

.bcx-unit-btn.is-active {
	background: var(--bcx-accent);
	color: #fff;
	box-shadow: 0 4px 12px var(--bcx-accent-glow);
}

.bcx-field { margin-bottom: 18px; }

.bcx-field label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 700;
	color: var(--bcx-ink-2);
	margin-bottom: 7px;
}

.bcx-unit-badge {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--bcx-accent-dk);
	background: var(--bcx-accent-lt);
	border: 1px solid rgba(109,74,255,0.2);
	border-radius: 999px;
	padding: 3px 9px;
}

.bcx-field input,
.bcx-field select {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	background: var(--bcx-bg);
	border: 1.5px solid var(--bcx-border);
	border-radius: var(--bcx-r-sm);
	font-size: 14px;
	color: var(--bcx-ink);
	outline: none;
	transition: border-color .18s, box-shadow .18s;
	-webkit-appearance: none;
}

.bcx-field input::placeholder { color: var(--bcx-muted-2); }

.bcx-field input:focus,
.bcx-field select:focus {
	border-color: var(--bcx-accent);
	box-shadow: 0 0 0 3px var(--bcx-accent-glow);
	background: #fbfaff;
}

/* Hint text under input */
.bcx-field-hint {
	font-size: 12px;
	color: var(--bcx-muted-2);
	margin-top: 5px;
}

.bcx-actions { padding-top: 6px; }

.bcx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 52px;
	padding: 13px 22px;
	background: linear-gradient(135deg, var(--bcx-accent) 0%, var(--bcx-accent-dk) 100%);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.01em;
	border: none;
	border-radius: var(--bcx-r-sm);
	cursor: pointer;
	box-shadow: 0 8px 24px var(--bcx-accent-glow);
	transition: all .2s;
}

.bcx-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 36px rgba(109,74,255,0.32);
	filter: brightness(1.04);
}

.bcx-btn:active { transform: scale(0.98); }

.bcx-btn:focus-visible {
	outline: 3px solid var(--bcx-accent-glow);
	outline-offset: 3px;
}

/* Loading spinner */
.bcx-btn-spinner {
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(255,255,255,0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: bcxSpin .7s linear infinite;
	flex-shrink: 0;
}

@keyframes bcxSpin { to { transform: rotate(360deg); } }

/* ── Results panel ─────────────────────────────────────────────────────── */
.bcx-results-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 300px;
	gap: 14px;
	color: var(--bcx-muted-2);
	text-align: center;
}

.bcx-results-placeholder-icon {
	font-size: 48px;
	opacity: 0.35;
}

.bcx-results-placeholder-text {
	font-size: 15px;
	font-weight: 600;
	max-width: 260px;
	line-height: 1.5;
}

/* Result card */
.bcx-result {
	background: linear-gradient(135deg, #f5f3ff 0%, var(--bcx-bg) 100%);
	border: 1.5px solid rgba(109,74,255,0.3);
	border-radius: var(--bcx-r-lg);
	padding: 24px;
	margin-bottom: 18px;
	position: relative;
	overflow: hidden;
	animation: bcxFadeUp .28s ease both;
}

.bcx-result::before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(180deg, var(--bcx-accent), var(--bcx-accent-dk));
}

.bcx-result-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--bcx-accent-dk);
	background: var(--bcx-accent-lt);
	border-radius: 999px;
	padding: 5px 12px;
	margin-bottom: 14px;
}

.bcx-result-main {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.bcx-result-value {
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 900;
	color: var(--bcx-ink);
	letter-spacing: -0.04em;
	line-height: 1;
	animation: bcxCountUp .4s ease both;
}

.bcx-result-unit {
	font-size: 18px;
	font-weight: 700;
	color: var(--bcx-muted);
}

.bcx-result-note {
	font-size: 13px;
	color: var(--bcx-muted);
	line-height: 1.55;
	margin-top: 6px;
}

@keyframes bcxCountUp {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Multi-result breakdown table */
.bcx-breakdown {
	margin-top: 18px;
	border: 1.5px solid var(--bcx-border);
	border-radius: var(--bcx-r-md);
	overflow: hidden;
}

.bcx-breakdown-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 16px;
	border-bottom: 1px solid var(--bcx-border-2);
	font-size: 13px;
}

.bcx-breakdown-row:last-child { border-bottom: none; }
.bcx-breakdown-row:nth-child(even) { background: var(--bcx-bg-soft); }

.bcx-breakdown-label {
	font-weight: 600;
	color: var(--bcx-ink-2);
}

.bcx-breakdown-value {
	font-weight: 800;
	color: var(--bcx-ink);
}

/* Chart area */
.bcx-chart-wrap {
	margin-top: 20px;
	padding: 18px;
	background: var(--bcx-bg-soft);
	border: 1.5px solid var(--bcx-border);
	border-radius: var(--bcx-r-md);
}

.bcx-chart-title {
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--bcx-muted);
	margin-bottom: 12px;
}

.bcx-graph-canvas {
	width: 100%;
	max-width: 100%;
	display: block;
	border-radius: var(--bcx-r-sm);
}

/* ── Projects / Save panel ─────────────────────────────────────────────── */
.bcx-projects-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	background: var(--bcx-bg-soft);
	border: 1.5px solid var(--bcx-border);
	border-radius: var(--bcx-r-md);
	margin-top: 20px;
	flex-wrap: wrap;
}

.bcx-projects-bar-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--bcx-ink-2);
}

.bcx-projects-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.bcx-btn-sm {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	min-height: 38px;
	font-size: 13px;
	font-weight: 700;
	border-radius: var(--bcx-r-sm);
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: all .18s;
	white-space: nowrap;
}

.bcx-btn-primary-sm {
	background: var(--bcx-accent);
	color: #fff;
	border-color: var(--bcx-accent);
	box-shadow: 0 4px 12px var(--bcx-accent-glow);
}

.bcx-btn-primary-sm:hover {
	background: var(--bcx-accent-dk);
	border-color: var(--bcx-accent-dk);
	transform: translateY(-1px);
}

.bcx-btn-ghost-sm {
	background: var(--bcx-bg);
	color: var(--bcx-ink-2);
	border-color: var(--bcx-border);
}

.bcx-btn-ghost-sm:hover {
	border-color: var(--bcx-accent);
	color: var(--bcx-accent-dk);
	background: var(--bcx-accent-lt);
}

.bcx-btn-danger-sm {
	background: transparent;
	color: #dc2626;
	border-color: #fca5a5;
}

.bcx-btn-danger-sm:hover {
	background: #fef2f2;
	border-color: #dc2626;
}

/* Save project modal */
.bcx-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	backdrop-filter: blur(4px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: bcxFadeIn .2s ease;
}

.bcx-modal {
	background: var(--bcx-bg);
	border-radius: var(--bcx-r-xl);
	padding: 30px;
	width: 100%;
	max-width: 460px;
	box-shadow: 0 30px 80px rgba(0,0,0,0.2);
	animation: bcxSlideUp .25s ease;
}

@keyframes bcxFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bcxSlideUp {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

.bcx-modal-title {
	font-size: 18px;
	font-weight: 800;
	color: var(--bcx-ink);
	margin-bottom: 20px;
	letter-spacing: -0.02em;
}

.bcx-modal-field { margin-bottom: 16px; }

.bcx-modal-field label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--bcx-ink-2);
	margin-bottom: 7px;
}

.bcx-modal-field input,
.bcx-modal-field textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid var(--bcx-border);
	border-radius: var(--bcx-r-sm);
	font-size: 14px;
	color: var(--bcx-ink);
	background: var(--bcx-bg-soft);
	outline: none;
	transition: border-color .18s, box-shadow .18s;
	font-family: inherit;
}

.bcx-modal-field input:focus,
.bcx-modal-field textarea:focus {
	border-color: var(--bcx-accent);
	box-shadow: 0 0 0 3px var(--bcx-accent-glow);
	background: var(--bcx-bg);
}

.bcx-modal-field textarea {
	min-height: 80px;
	resize: vertical;
}

.bcx-modal-footer {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 22px;
}

/* Projects list panel */
.bcx-projects-panel {
	margin-top: 24px;
	border: 1.5px solid var(--bcx-border);
	border-radius: var(--bcx-r-lg);
	overflow: hidden;
}

.bcx-projects-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	background: var(--bcx-bg-soft);
	border-bottom: 1.5px solid var(--bcx-border);
	font-size: 14px;
	font-weight: 800;
	color: var(--bcx-ink);
}

.bcx-project-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--bcx-border-2);
	transition: background .15s;
}

.bcx-project-item:last-child { border-bottom: none; }
.bcx-project-item:hover { background: var(--bcx-bg-soft); }

.bcx-project-item-icon {
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	background: var(--bcx-accent-lt);
	border: 1px solid rgba(109,74,255,0.2);
	border-radius: var(--bcx-r-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

.bcx-project-item-body { flex: 1; min-width: 0; }

.bcx-project-item-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--bcx-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bcx-project-item-meta {
	font-size: 12px;
	color: var(--bcx-muted-2);
	margin-top: 2px;
}

.bcx-project-item-actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.bcx-empty-state {
	padding: 36px 20px;
	text-align: center;
	color: var(--bcx-muted-2);
}

.bcx-empty-icon { font-size: 36px; margin-bottom: 10px; opacity: 0.4; }
.bcx-empty-text { font-size: 14px; font-weight: 600; }

/* Toast notification */
.bcx-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	background: var(--bcx-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	border-radius: var(--bcx-r-md);
	box-shadow: var(--bcx-shadow-lg);
	animation: bcxToastIn .3s ease;
	max-width: 320px;
}

.bcx-toast.is-success { background: var(--bcx-success); }
.bcx-toast.is-error   { background: #dc2626; }

@keyframes bcxToastIn {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes bcxFadeUp {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

.bcx-form-panel { display: none; }
.bcx-form-panel.is-open {
	display: block;
	animation: bcxFadeUp .22s ease both;
}

/* ── No results ─────────────────────────────────────────────────────────── */
.bcx-no-results {
	grid-column: 1 / -1;
	padding: 32px 20px;
	text-align: center;
	color: var(--bcx-muted-2);
	font-size: 15px;
	font-weight: 600;
}

/* ── Icon helpers ───────────────────────────────────────────────────────── */
.bcx-icon-svg { width: 24px; height: 24px; display: block; }
.bcx-icon-text { font-size: 20px; line-height: 1; }

/* ── Accessibility ─────────────────────────────────────────────────────── */
.bcx-card:focus-visible,
.bcx-btn:focus-visible,
.bcx-btn-sm:focus-visible,
.bcx-back-btn:focus-visible,
.bcx-filter-btn:focus-visible,
.bcx-unit-btn:focus-visible {
	outline: 3px solid rgba(245,158,11,0.5);
	outline-offset: 2px;
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.bcx-wrapper *,
	.bcx-wrapper *::before,
	.bcx-wrapper *::after {
		transition: none !important;
		animation: none !important;
		transform: none !important;
	}
}

/* ── Responsive breakpoints ─────────────────────────────────────────────── */
@media (max-width: 767px) {
	.bcx-hub { padding: 22px 16px; }

	.bcx-grid { grid-template-columns: 1fr; gap: 14px; }

	.bcx-panel { grid-template-columns: 1fr; }
	.bcx-panel-left { border-right: none; border-bottom: 1.5px solid var(--bcx-border); padding: 20px 16px; }
	.bcx-panel-right { padding: 20px 16px; }

	.bcx-hub-stats { gap: 16px; }

	.bcx-result-value { font-size: 32px; }

	.bcx-modal { padding: 22px; }

	.bcx-projects-bar { flex-direction: column; align-items: flex-start; }

	.bcx-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

@media (max-width: 480px) {
	.bcx-hub { padding: 18px 14px; }
	.bcx-card { padding: 18px 16px; }
	.bcx-card-header { flex-direction: column; }
	.bcx-filters { gap: 6px; }
	.bcx-filter-btn { padding: 7px 12px; font-size: 12px; }
}
