.bc-page {
  margin: 0;
  background: #0b1220;
  color: #edf3fc;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color-scheme: light;
}
.bc-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      1200px 800px at 10% 10%,
      rgba(124, 58, 237, 0.35),
      transparent 60%
    ),
    radial-gradient(
      900px 650px at 90% 20%,
      rgba(6, 182, 212, 0.28),
      transparent 60%
    ),
    radial-gradient(
      1000px 700px at 40% 95%,
      rgba(245, 158, 11, 0.2),
      transparent 55%
    ),
    linear-gradient(180deg, rgba(11, 18, 32, 0.78), rgba(11, 18, 32, 0.78)),
    url("bg.png") center/cover;
  z-index: -1;
  pointer-events: none;
}
.bc-page .brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  font-weight: 900;
}
.bc-page .brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-align: center;
}
.bc-page .bar {
  padding-left: 96px;
  padding-right: 96px;
}
.bc-page * {
  box-sizing: border-box;
}
.bc-page [hidden] {
  display: none !important;
}
.bc-page :is(.bc-wrap, .bc-dialog) button,
.bc-page input,
.bc-page select,
.bc-page textarea,
.bc-button {
  font: inherit;
}
.bc-page :is(.bc-wrap, .bc-dialog) button,
.bc-button {
  cursor: pointer;
  border: 1px solid #35435c;
  border-radius: 10px;
  padding: 10px 15px;
  background: #1b2940;
  color: #edf3fc;
  text-decoration: none;
  min-height: 44px;
}
.bc-page :is(.bc-wrap, .bc-dialog) button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.bc-page :is(.bc-wrap, .bc-dialog) button:hover:not(:disabled),
.bc-button:hover {
  border-color: #c4b5fd;
}
.bc-page :focus-visible {
  outline: 3px solid #c4b5fd;
  outline-offset: 3px;
}
.bc-wrap {
  max-width: 1440px;
  padding: 18px 14px 44px;
  margin: auto;
}
.bc-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px;
  margin-bottom: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(
      720px 280px at 8% 10%,
      rgba(124, 58, 237, 0.58),
      transparent 60%
    ),
    radial-gradient(
      720px 280px at 92% 18%,
      rgba(6, 182, 212, 0.42),
      transparent 60%
    ),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.bc-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #c4b5fd;
}
.bc-hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -1px;
  line-height: 1.05;
  margin: 12px 0;
}
.bc-hero h1 span {
  color: #c4b5fd;
}
.bc-hero p:not(.bc-eyebrow) {
  color: #a9bad3;
  max-width: 620px;
  line-height: 1.65;
}
.bc-page .bc-primary {
  background: #c4b5fd;
  border-color: #c4b5fd;
  color: #0b2630;
  font-weight: 800;
}
.bc-session {
  padding: 14px 18px;
  border: 1px solid #304157;
  border-radius: 12px;
  color: #b9c7df;
  line-height: 1.5;
}
.bc-session a {
  color: #c4b5fd;
}
.bc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.bc-stat {
  border: 1px solid #2a3850;
  background: #111e31;
  border-radius: 14px;
  padding: 20px;
}
.bc-stat strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
}
.bc-stat span {
  color: #a9bad3;
  font-size: 13px;
}
.bc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid #2a3850;
  padding: 8px 0 20px;
}
.bc-tabs,
.bc-backup {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bc-tabs button,
.bc-backup button {
  background: transparent;
  font-size: 13px;
}
.bc-tabs button[aria-pressed="true"] {
  background: #24433f;
  color: #a0f3df;
  border-color: #528c7e;
}
.bc-filters {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  background: #111e31;
  padding: 20px;
  border-radius: 14px;
  margin: 20px 0;
}
.bc-page label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #a9bad3;
  font-size: 12px;
}
.bc-page input,
.bc-page select,
.bc-page textarea {
  border: 1px solid #34435d;
  border-radius: 8px;
  background: #0c1729;
  padding: 11px 12px;
  color: #edf3fc;
  min-height: 44px;
  min-width: 0;
  width: 100%;
}
.bc-search {
  flex: 1;
  min-width: 230px;
}
.bc-page textarea {
  resize: vertical;
  min-height: 80px;
}
.bc-results {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #9cb0ce;
  font-size: 13px;
}
.bc-results label {
  flex-direction: row;
  align-items: center;
}
.bc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}
.bc-card {
  background: #111e31;
  border: 1px solid #2a3850;
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bc-card img {
  width: 100%;
  aspect-ratio: 5/7;
  object-fit: contain;
  background: #0b1424;
}
.bc-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.bc-card h3 {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}
.bc-card small {
  color: #9cb0ce;
  font-size: 11px;
}
.bc-card button {
  margin-top: auto;
  font-size: 12px;
  width: 100%;
}
.bc-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 11px;
}
.bc-tags span {
  padding: 3px 6px;
  border-radius: 5px;
  background: #203a42;
  color: #9defdb;
}
.bc-tags .bc-loan {
  background: #45391f;
  color: #f4d38a;
}
.bc-tags .bc-sale {
  background: #332b53;
  color: #d7b8ff;
}
.bc-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed #35435c;
  border-radius: 14px;
  color: #a9bad3;
}
.bc-page #more {
  display: block;
  margin: 28px auto;
}
.bc-footnote {
  font-size: 12px;
  color: #8296b4;
  margin-top: 32px;
  line-height: 1.7;
}
.bc-dialog {
  color: #edf3fc;
  background: #111e31;
  border: 1px solid #445672;
  border-radius: 18px;
  padding: 26px;
  width: min(760px, calc(100% - 24px));
  max-height: 90dvh;
  overflow: auto;
}
.bc-dialog::backdrop {
  background: #020917bb;
  backdrop-filter: blur(5px);
}
.bc-dialog-head,
.bc-dialog-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.bc-dialog-head h2 {
  margin: 0;
  font-size: 23px;
}
.bc-dialog-head button {
  padding: 7px 12px;
}
.bc-edit-layout {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  margin-top: 22px;
}
.bc-edit-layout > img {
  width: 100%;
  border-radius: 8px;
}
.bc-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.bc-page .bc-check {
  flex-direction: row;
  align-items: center;
  margin: 20px 0;
}
.bc-check input {
  width: 18px;
  min-height: 18px;
}
.bc-hint,
.bc-dialog > p {
  font-size: 13px;
  color: #a9bad3;
  line-height: 1.65;
}
.bc-subsection {
  border-top: 1px solid #304157;
  padding-top: 12px;
  margin-top: 22px;
}
.bc-subsection h3 {
  font-size: 15px;
}
.bc-dialog-actions {
  justify-content: flex-end;
  margin-top: 24px;
}
.bc-loan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #304157;
  font-size: 13px;
}
.bc-error {
  color: #ffadad;
  font-size: 13px;
  line-height: 1.5;
}
.bc-camera {
  position: relative;
  aspect-ratio: 4/3;
  background: #050c17;
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
}
.bc-camera video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bc-camera-guide {
  position: absolute;
  inset: 8% 27%;
  border: 2px solid #c4b5fd;
  border-radius: 12px;
  pointer-events: none;
}
.bc-scanner-actions {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin-top: 16px;
}
.bc-scanner-actions label:not(.bc-button) {
  flex: 1;
}
.bc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #25473f;
  border: 1px solid #c4b5fd;
  color: white;
  padding: 15px 22px;
  border-radius: 12px;
  z-index: 1000;
  max-width: 90vw;
}
.bc-ledger {
  grid-column: 1/-1;
  display: grid;
  gap: 10px;
}
.bc-ledger article {
  background: #111e31;
  border: 1px solid #304157;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.bc-ledger p {
  margin: 5px 0;
  font-size: 13px;
  color: #a9bad3;
}
@media (max-width: 650px) {
  .bc-wrap {
    padding: 0 16px 28px;
  }
  .bc-hero {
    padding-top: 32px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .bc-hero h1 {
    letter-spacing: -1.8px;
  }
  .bc-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .bc-stat {
    padding: 16px;
  }
  .bc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .bc-filters {
    padding: 14px;
    gap: 10px;
  }
  .bc-filters > label {
    flex: 1 1 40%;
  }
  .bc-filters .bc-search {
    flex-basis: 100%;
    min-width: 0;
  }
  .bc-edit-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bc-edit-layout > img {
    width: 100px;
    margin: auto;
  }
  .bc-dialog {
    padding: 20px;
  }
  .bc-results {
    align-items: start;
  }
  .bc-results label {
    flex-direction: column;
    align-items: start;
  }
  .bc-tabs {
    width: 100%;
  }
  .bc-tabs button {
    flex: 1 1 auto;
  }
  .bc-scanner-actions > * {
    flex: 1;
  }
  .bc-dialog-actions button {
    flex: 1;
  }
}

/* Match the existing Card List surfaces and purple/cyan Hub palette. */
.bc-stat,
.bc-workspace,
.bc-dialog {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}
.bc-workspace {
  padding: 20px;
  border-radius: 24px;
}
.bc-stat {
  border-radius: 20px;
}
.bc-stat span,
.bc-page label,
.bc-card small,
.bc-results,
.bc-hint,
.bc-dialog > p,
.bc-ledger p {
  color: #475569;
}
.bc-page input,
.bc-page select,
.bc-page textarea {
  background: #fff;
  color: #0f172a;
  border-color: #cbd5e1;
}
.bc-page :is(.bc-wrap, .bc-dialog) button,
.bc-page .bc-button {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}
.bc-page :is(.bc-wrap, .bc-dialog) .bc-primary {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.22);
}
.bc-tabs button[aria-pressed="true"] {
  color: #6d28d9;
  background: #ede9fe;
  border-color: #c4b5fd;
}
.bc-toolbar {
  border-color: #e2e8f0;
}
.bc-filters {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.bc-card {
  color: #0f172a;
  background: #fff;
  border-color: #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.bc-card img {
  background: #e2e8f0;
}
.bc-tags span {
  color: #6d28d9;
  background: #ede9fe;
}
.bc-tags .bc-loan {
  color: #92400e;
  background: #fef3c7;
}
.bc-tags .bc-sale {
  color: #0369a1;
  background: #e0f2fe;
}
.bc-empty {
  color: #64748b;
  border-color: #cbd5e1;
}
.bc-subsection,
.bc-loan-row {
  border-color: #e2e8f0;
}
.bc-error {
  color: #b91c1c;
}
.bc-ledger article {
  color: #0f172a;
  background: #f8fafc;
  border-color: #e2e8f0;
}
.bc-session {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.15);
}
.bc-hero p:not(.bc-eyebrow) {
  color: #dbeafe;
}
.bc-toast {
  background: #4c1d95;
  border-color: #c4b5fd;
}

/* Interaction polish stays local to the collection workspace. */
.bc-card {
  position: relative;
  isolation: isolate;
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}
.bc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.38) 45%,
    transparent 65%
  );
  opacity: 0;
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 1;
}
.bc-card img {
  transition: filter 260ms ease;
}
.bc-card:focus-within {
  border-color: #a78bfa;
  box-shadow:
    0 0 0 3px rgba(124, 58, 237, 0.14),
    0 16px 32px rgba(76, 29, 149, 0.12);
}
.bc-page :is(.bc-wrap, .bc-dialog) button,
.bc-scanner-actions .bc-button {
  transition:
    transform 160ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}
.bc-page :is(.bc-wrap, .bc-dialog) button:enabled:active,
.bc-scanner-actions .bc-button:active {
  transform: translateY(1px) scale(0.98);
}
.bc-page :is(.bc-wrap, .bc-dialog) :is(input, select, textarea) {
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}
.bc-page :is(.bc-wrap, .bc-dialog) :is(input, select, textarea):focus-visible {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}
.bc-tabs button[aria-pressed="true"] {
  box-shadow:
    inset 0 -2px 0 #8b5cf6,
    0 3px 10px rgba(124, 58, 237, 0.09);
}
@media (hover: hover) and (pointer: fine) {
  .bc-card:hover {
    transform: translateY(-6px);
    border-color: #c4b5fd;
    box-shadow:
      0 20px 38px rgba(76, 29, 149, 0.17),
      0 5px 12px rgba(15, 23, 42, 0.06);
  }
  .bc-card:hover::after {
    opacity: 1;
    transform: translateX(100%);
    transition:
      transform 650ms ease,
      opacity 220ms ease;
  }
  .bc-card:hover img {
    filter: saturate(1.08) brightness(1.03);
  }
  .bc-page :is(.bc-wrap, .bc-dialog) button:enabled:hover,
  .bc-scanner-actions .bc-button:hover {
    transform: translateY(-2px);
    color: #6d28d9;
    background-color: #ede9fe;
    border-color: #a78bfa;
    box-shadow: 0 5px 14px rgba(124, 58, 237, 0.13);
  }
  .bc-page :is(.bc-wrap, .bc-dialog) .bc-primary:enabled:hover {
    color: #fff;
    box-shadow:
      0 12px 28px rgba(124, 58, 237, 0.34),
      0 0 0 3px rgba(167, 139, 250, 0.18);
  }
  .bc-page :is(.bc-wrap, .bc-dialog) button:enabled:active,
  .bc-scanner-actions .bc-button:active {
    transform: translateY(1px) scale(0.98);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bc-card,
  .bc-card img,
  .bc-card::after,
  .bc-page :is(.bc-wrap, .bc-dialog) button,
  .bc-page :is(.bc-wrap, .bc-dialog) :is(input, select, textarea),
  .bc-scanner-actions .bc-button {
    transition: none !important;
    transform: none !important;
  }
  .bc-card::after {
    display: none;
  }
}
@media (max-width: 760px) {
  .bc-page .bar {
    padding-left: 0;
    padding-right: 0;
  }
  .bc-workspace {
    padding: 14px;
    border-radius: 20px;
  }
  .bc-hero {
    padding: 20px 18px;
  }
  .bc-wrap {
    padding-top: 18px;
  }
}
