/* Brick Club - My Technic Builds (front-end account tab) */

.bcb-wrap { --bcb-accent: #e74c3c; --bcb-green: #27ae60; --bcb-blue: #2980b9; color: #2c3e50; }

.bcb-header { margin-bottom: 24px; }
.bcb-header-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.bcb-title { margin: 0 0 4px; font-size: 1.5rem; }
.bcb-counts { font-size: .95rem; color: #555; }
.bcb-counts strong { color: #2c3e50; }

/* Progress bar */
.bcb-progress {
	position: relative; height: 22px; margin-top: 12px;
	background: #eef1f4; border-radius: 999px; overflow: hidden;
	box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
}
.bcb-progress-fill {
	height: 100%; border-radius: 999px;
	background: linear-gradient(90deg, #27ae60, #2ecc71);
	transition: width .6s ease;
}
.bcb-progress-label {
	position: absolute; top: 0; right: 12px; line-height: 22px;
	font-size: .78rem; font-weight: 700; color: #2c3e50;
}

/* Grid */
.bcb-grid {
	display: grid; gap: 18px;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.bcb-card {
	background: #fff; border-radius: 12px; overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,.08);
	transition: transform .15s ease, box-shadow .15s ease;
	display: flex; flex-direction: column;
}
.bcb-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.13); }

.bcb-img-wrap {
	position: relative; aspect-ratio: 1 / 1; background: #f6f8fa;
	display: flex; align-items: center; justify-content: center;
}
.bcb-img { width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; }
.bcb-img-placeholder {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	color: #9aa6b2; font-weight: 700; font-size: 1.1rem; letter-spacing: .04em;
}

/* Pending = greyed out */
.bcb-state-pending .bcb-img { filter: grayscale(100%); opacity: .5; }
.bcb-state-pending .bcb-card { background: #fbfcfd; }

/* Badges */
.bcb-badge {
	position: absolute; top: 10px; left: 10px;
	padding: 4px 10px; border-radius: 999px;
	font-size: .68rem; font-weight: 800; letter-spacing: .05em;
	color: #fff; text-transform: uppercase;
	box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.bcb-badge-pending  { background: #95a5a6; }
.bcb-badge-current  { background: #2980b9; }
.bcb-badge-complete { background: #27ae60; }
.bcb-badge-lost     { background: #c0392b; }
.bcb-badge-stolen   { background: #8e44ad; }
.bcb-badge-retained { background: #d68910; }

/* Complete stamp */
.bcb-stamp {
	position: absolute; right: 8px; bottom: 8px;
	border: 3px solid var(--bcb-green); color: var(--bcb-green);
	font-weight: 900; font-size: .8rem; letter-spacing: .08em;
	padding: 2px 8px; border-radius: 6px; transform: rotate(-12deg);
	opacity: .85; background: rgba(255,255,255,.7);
}

.bcb-card-body { padding: 12px 14px; }
.bcb-model-name { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.bcb-model-number { font-size: .78rem; color: #8a96a3; margin-top: 3px; }

.bcb-empty { color: #777; font-style: italic; padding: 20px 0; }

@media (max-width: 480px) {
	.bcb-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}

/* --- Request Return tab (v1.0.9) --- */
.bcr-intro, .bcr-note, .bcr-ready-note { color: #555; font-size: .92rem; line-height: 1.5; }
.bcr-ready-note { color: #1a7740; font-weight: 600; }
.bcr-panel { background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.08); padding: 20px; margin-bottom: 28px; }
.bcr-empty-panel { color: #777; }
.bcr-kit { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.bcr-kit-img, .bcr-label-img { flex: 0 0 140px; width: 140px; aspect-ratio: 1 / 1; background: #f6f8fa; border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bcr-kit-img img, .bcr-label-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; }
.bcr-kit-img-ph { color: #9aa6b2; font-weight: 700; letter-spacing: .04em; }
.bcr-kit-info { flex: 1 1 240px; }
.bcr-kit-name { font-weight: 700; font-size: 1.1rem; }
.bcr-kit-sku { color: #8a96a3; font-size: .82rem; margin: 2px 0 12px; }
.bcr-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.bcr-spinner { color: #2980b9; font-size: .88rem; align-self: center; }
.bcr-msg { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: .9rem; }
.bcr-msg-ok { background: #eafaf1; color: #1a7740; }
.bcr-msg-error { background: #fdeded; color: #a93226; }
.bcr-history-title { margin: 8px 0 14px; font-size: 1.15rem; }
.bcr-history { display: flex; flex-direction: column; gap: 14px; }
.bcr-label-card { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.07); padding: 14px; }
.bcr-label-img { flex: 0 0 84px; width: 84px; border-radius: 8px; }
.bcr-label-body { flex: 1 1 auto; }
.bcr-label-meta { color: #8a96a3; font-size: .8rem; margin-top: 4px; display: flex; gap: 14px; flex-wrap: wrap; }
.bcr-no-labels { margin: 0; }
@media (max-width: 480px) {
	.bcr-kit-img, .bcr-label-img { flex-basis: 110px; width: 110px; }
}
.bcb-return-cta { margin: 0 0 20px; }
.bcb-return-cta a { font-weight: 600; text-decoration: none; }

/* --- Suggest a Kit (v1.0.12) --- */
.bcs-lookup-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.bcs-input { flex: 1 1 200px; padding: 8px 10px; border: 1px solid #cdd6df; border-radius: 8px; font-size: 1rem; }
.bcs-label { display: block; margin: 14px 0 4px; }
.bcs-preview { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.bcs-preview-img { flex: 0 0 110px; width: 110px; aspect-ratio: 1 / 1; background: #f6f8fa; border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bcs-preview-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; }
.bcs-meta-extra { color: #8a96a3; }
.bcs-textarea { width: 100%; padding: 10px; border: 1px solid #cdd6df; border-radius: 8px; font-size: .95rem; box-sizing: border-box; }
.bcs-upload { margin-top: 12px; }
.bcs-history { display: flex; flex-direction: column; gap: 14px; }
.bcs-status-badge { position: static; display: inline-block; margin-top: 8px; }
.bcs-none { margin: 0; }

/* --- Missing Pieces (v1.0.13) --- */
.bcp-row { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; align-items: center; }
.bcp-part { flex: 1 1 120px; padding: 8px; border: 1px solid #cdd6df; border-radius: 8px; }
.bcp-qty { width: 70px; padding: 8px; border: 1px solid #cdd6df; border-radius: 8px; }
.bcp-notes { flex: 2 1 180px; padding: 8px; border: 1px solid #cdd6df; border-radius: 8px; }
.bcp-remove { border: none; background: #f0f0f0; border-radius: 8px; cursor: pointer; font-size: 1.1rem; width: 36px; height: 36px; line-height: 1; }
.bcp-add { margin-top: 6px; }
.bcp-history { display: flex; flex-direction: column; gap: 12px; }
.bcp-req-card { background: #fff; border-radius: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.07); padding: 12px 14px; }
.bcp-req-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bcp-item-list { margin: 8px 0 0; padding-left: 18px; }
.bcp-none { margin: 0; }

/* --- Exclude Kits tab (v1.0.26) --- */
.bcb-badge-excluded-built { background: #1a2744; }
.bcb-badge-excluded-owned { background: #6c3fb5; }
.bcb-state-excluded_built .bcb-img, .bcb-state-excluded_owned .bcb-img { filter: none; opacity: 1; }
.bcb-stamp-own { border-color: #1a2744; color: #1a2744; }
.bcx-intro { color: #555; font-size: .95rem; line-height: 1.5; margin-bottom: 16px; }
.bcx-add { background: #f6f8fa; border: 1px solid #e5e9ee; border-radius: 10px; padding: 16px; margin-bottom: 24px; }
.bcx-add-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bcx-input { flex: 1; min-width: 180px; padding: 8px 10px; border: 1px solid #cfd6dd; border-radius: 6px; }
.bcx-spinner { color: #888; font-size: .85rem; }
.bcx-preview { display: flex; gap: 14px; margin-top: 14px; background: #fff; border: 1px solid #e5e9ee; border-radius: 8px; padding: 12px; }
.bcx-preview-img { width: 90px; height: 90px; flex: none; background: #f6f8fa; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.bcx-preview-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bcx-prev-name { font-weight: 700; }
.bcx-prev-meta { color: #8a96a3; font-size: .82rem; margin: 2px 0 8px; }
.bcx-type-row { display: flex; gap: 16px; margin: 6px 0 10px; font-size: .9rem; }
.bcx-list-title { margin: 20px 0 10px; }
.bcx-card .bcx-remove-btn { margin-top: 8px; background: none; border: 0; color: #c0392b; cursor: pointer; padding: 0; font-size: .82rem; text-decoration: underline; }

/* Track My Kit */
.bc-track-page h2 { margin-bottom: 6px; }
.bc-track-intro { color: #666; margin-bottom: 20px; }
.bc-track-empty { color: #888; }
.bc-track-card { border: 1px solid #e2e4e7; border-radius: 8px; margin-bottom: 18px; overflow: hidden; }
.bc-track-card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; gap: 12px; flex-wrap: wrap; }
.bc-track-card-info { display: flex; align-items: center; gap: 12px; }
.bc-track-card-info .bc-kit-thumb { width: 48px; height: 48px; object-fit: contain; border-radius: 4px; }
.bc-track-card-info strong { display: block; font-size: 14px; }
.bc-track-card-info .bc-meta { font-size: 12px; color: #888; display: block; }
.bc-track-ref { font-size: 11px; color: #aaa; display: block; margin-top: 2px; }
.bc-track-card-body { padding: 0 18px 18px; }
.bc-track-loading { padding: 14px 0; color: #888; font-size: 13px; }
/* Progress meter (shared with admin, duplicated for front-end) */
.bc-track-page .bc-progress-meter { display: flex; align-items: flex-start; gap: 0; margin: 18px 0 20px; overflow-x: auto; padding-bottom: 4px; }
.bc-track-page .bc-step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; min-width: 70px; }
.bc-track-page .bc-step + .bc-step::before { content: ''; position: absolute; top: 13px; right: 50%; left: -50%; height: 3px; background: #dee2e6; z-index: 0; }
.bc-track-page .bc-step--done + .bc-step::before,
.bc-track-page .bc-step--active + .bc-step::before { background: #007cba; }
.bc-track-page .bc-step-dot { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #dee2e6; background: #fff; z-index: 1; position: relative; flex-shrink: 0; }
.bc-track-page .bc-step--done .bc-step-dot { background: #007cba; border-color: #007cba; }
.bc-track-page .bc-step--done .bc-step-dot::after { content: '\2713'; color: #fff; font-size: 13px; font-weight: bold; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.bc-track-page .bc-step--active .bc-step-dot { border-color: #007cba; background: #e8f4fb; box-shadow: 0 0 0 3px rgba(0,124,186,.2); }
.bc-track-page .bc-step--error .bc-step-dot { border-color: #d63638; background: #fcecec; }
.bc-track-page .bc-step-label { margin-top: 7px; font-size: 11px; text-align: center; color: #666; line-height: 1.35; }
.bc-track-page .bc-step--done .bc-step-label,
.bc-track-page .bc-step--active .bc-step-label { color: #1d1d1d; font-weight: 600; }
.bc-track-page .bc-track-eta { font-size: 13px; margin: 0 0 12px; }
.bc-track-page .bc-track-error { color: #d63638; font-size: 13px; margin: 6px 0 12px; }
.bc-track-page .bc-scan-history { margin-top: 10px; }
.bc-track-page .bc-scan-history summary { cursor: pointer; font-weight: 600; font-size: 13px; padding: 5px 0; }
.bc-track-page .bc-scan-list { margin: 6px 0 0; padding: 0; list-style: none; border-top: 1px solid #eee; max-height: 200px; overflow-y: auto; }
.bc-track-page .bc-scan-list li { display: grid; grid-template-columns: 150px 1fr; gap: 4px 10px; padding: 7px 2px; border-bottom: 1px solid #f5f5f5; font-size: 12px; align-items: start; }
.bc-track-page .bc-scan-time { color: #999; white-space: nowrap; }
.bc-track-page .bc-scan-desc { font-weight: 600; }
.bc-track-page .bc-scan-detail { grid-column: 2; color: #666; margin-top: -2px; }
