/* Buyer cabinet — storefront-inspired, distinct from seller/admin panel */

.bc-page {
  --bc-accent: #3478f6;
  --bc-accent-soft: rgba(52, 120, 246, 0.1);
  --bc-bg: #f3f6fc;
  --bc-card: #fff;
  --bc-border: rgba(228, 233, 240, 0.9);
  --bc-text: #0a1628;
  --bc-muted: #64748b;
  min-height: 100vh;
  background: var(--bc-bg);
  color: var(--bc-text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.bc-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bc-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.bc-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bc-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--bc-text);
  font-weight: 600;
  font-size: 0.9375rem;
}

.bc-header__brand img { width: 22px; height: 22px; }

.bc-header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.bc-header__link {
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--bc-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.bc-header__link:hover { color: var(--bc-text); background: var(--bc-accent-soft); }
.bc-header__link--active { color: var(--bc-accent); background: var(--bc-accent-soft); }

.bc-header__logout {
  margin-left: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: none;
  background: transparent;
  color: var(--bc-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
}

.bc-header__logout:hover { color: #dc2626; background: rgba(220, 38, 38, 0.08); }

.bc-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.bc-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.375rem;
  letter-spacing: -0.02em;
}

.bc-page-subtitle {
  color: var(--bc-muted);
  font-size: 0.9375rem;
  margin: 0 0 1.75rem;
}

.bc-card {
  background: var(--bc-card);
  border: 1px solid var(--bc-border);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(17, 36, 62, 0.04);
  overflow: hidden;
}

.bc-card__body { padding: 1.5rem; }

/* Flash alerts — see sellerts-toasts.css */

.bc-orders { display: flex; flex-direction: column; gap: 0.75rem; }

.bc-order {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--bc-border);
  border-radius: 12px;
  background: var(--bc-card);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.bc-order:hover {
  border-color: rgba(52, 120, 246, 0.35);
  box-shadow: 0 8px 24px rgba(17, 36, 62, 0.08);
}

.bc-order__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.bc-order__id { font-weight: 600; font-size: 0.9375rem; }
.bc-order__date { color: var(--bc-muted); font-size: 0.8125rem; white-space: nowrap; }

.bc-order__product { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.bc-order__variant { color: var(--bc-muted); font-size: 0.8125rem; }

.bc-order__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--bc-border);
}

.bc-badge {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.bc-badge--paid { background: #ecfdf5; color: #065f46; }
.bc-badge--pending { background: #fef3c7; color: #92400e; }

.bc-order__total { font-weight: 600; font-size: 0.9375rem; }

.bc-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--bc-muted);
}

.bc-empty__title { font-size: 1.125rem; font-weight: 600; color: var(--bc-text); margin-bottom: 0.5rem; }

.bc-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 0;
}

.bc-detail-item dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bc-muted);
  margin-bottom: 0.25rem;
}

.bc-detail-item dd { margin: 0; font-size: 0.9375rem; font-weight: 500; }

.bc-serial {
  display: block;
  padding: 0.875rem 1rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  font-family: ui-monospace, monospace;
  font-size: 1rem;
  word-break: break-all;
}

.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.bc-btn--primary { background: var(--bc-accent); color: #fff; }
.bc-btn--primary:hover { background: #2563eb; }
.bc-btn--ghost { background: transparent; color: var(--bc-muted); border: 1px solid var(--bc-border); }
.bc-btn--ghost:hover { color: var(--bc-text); border-color: #cbd5e1; }

.bc-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--bc-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.bc-back:hover { color: var(--bc-accent); }

.bc-pagination { margin-top: 1.5rem; display: flex; justify-content: center; }

.bc-field { margin-bottom: 1.125rem; }
.bc-field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.bc-field input {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--bc-border);
  border-radius: 10px;
  font-size: 0.9375rem;
  background: #fff;
}
.bc-field input:focus { outline: none; border-color: var(--bc-accent); box-shadow: 0 0 0 3px var(--bc-accent-soft); }
.bc-field input[readonly] { background: #f8fafc; color: var(--bc-muted); cursor: not-allowed; }
.bc-field__hint { font-size: 0.8125rem; color: var(--bc-muted); margin-top: 0.375rem; }

.bc-code-input {
  letter-spacing: 0.35em;
  text-align: center;
  font-size: 1.5rem !important;
  font-weight: 600;
  font-family: ui-monospace, monospace;
}

@media (max-width: 640px) {
  .bc-header__inner { flex-wrap: wrap; }
  .bc-header__nav { width: 100%; margin-left: 0; overflow-x: auto; }
  .bc-order__top { flex-direction: column; gap: 0.25rem; }
}
