/* ============================================================
   BillCrisp Design System — v3 (loads LAST, after style.css)
   Production polish layer: tokens, a11y, auth fix, components,
   responsive + dark-theme hardening. Additive overrides only.
   ============================================================ */

/* ---------- 1. Tokens & base ---------- */
:root {
  --bc-radius-xs: 8px;
  --bc-radius-sm: 12px;
  --bc-radius-md: 16px;
  --bc-radius-lg: 20px;
  --bc-radius-xl: 28px;
  --bc-focus-ring: 0 0 0 4px rgba(99, 102, 241, 0.22);
  --bc-sidebar-w: 250px;
  --bc-topbar-h: 64px;
  --bc-font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bc-font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --bc-z-topbar: 1030;
  --bc-z-sidebar: 1020;
  --bc-z-toast: 1080;
  --bc-z-backtop: 1020;
  --bc-motion-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --bc-motion: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --bc-motion-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-bs-theme="dark"] {
  --bc-focus-ring: 0 0 0 4px rgba(129, 140, 248, 0.28);
  color-scheme: dark;
}

html { color-scheme: light; }
[data-bs-theme="dark"] html { color-scheme: dark; }

body {
  font-family: var(--bc-font-sans);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Numeric alignment in money/quantity columns */
.bc-tabular-nums,
table td.text-end, table th.text-end,
.stat-value, .amount, .bc-amount { font-variant-numeric: tabular-nums; }

/* ---------- 2. Accessibility ---------- */

/* Skip link — first focusable element in body */
.bc-skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 2000;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--bc-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--bc-card-shadow-hover);
  transition: top var(--bc-motion-fast);
}
.bc-skip-link:focus-visible { top: 0; }

:focus-visible {
  outline: 2px solid var(--bc-primary);
  outline-offset: 2px;
  box-shadow: var(--bc-focus-ring);
  border-radius: 4px;
}

/* Reduced motion: kill all decorative animation */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Targetable anchors don't hide under the fixed topbar */
section[id], [id^="section-"], [id^="tab-"] { scroll-margin-top: calc(var(--bc-topbar-h) + 16px); }

/* ---------- 3. AUTH FIX — login card hidden behind scene ----------
   Root cause: page-level perspective + preserve-3d scene + translateZ
   badges pulled the card and scene into a shared 3D rendering context,
   letting browsers interleave them (z-index ignored in 3D contexts).
   Fix: remove page perspective, isolate stacking, and strip every
   3D/compositing property from the card so it renders as a flat,
   always-on-top layer. The scene is decorative only (pointer-events:
   none) so it can never intercept input. */

.bc-login-page { perspective: none !important; }

.bc-auth-wrap {
  isolation: isolate;
  z-index: 2;
}

/* Scene: decorative only — keep it inert so it can never intercept input */
.bc-auth-scene {
  z-index: 1;
  pointer-events: none;
}
.bc-auth-scene *,
.bc-auth-scene *::before,
.bc-auth-scene *::after { pointer-events: none; }

/* Card: flat, solid, highest layer — no 3D, no will-change, no transforms */
.bc-login-card {
  z-index: 5;
  isolation: isolate;
  transform-style: flat !important;
  will-change: auto;
  transform: none !important;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 44px 110px rgba(99, 102, 241, 0.20),
    0 22px 50px rgba(30, 33, 64, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}
.bc-login-card.tilted { transition: none; }

/* Flatten decorative z-lift on card children (no 3D context available) */
.bc-login-card .login-logo,
.bc-login-card .login-logo .logo-icon { transform: none; }

/* Dark theme: swap the light glass card for dark glass */
[data-bs-theme="dark"] .bc-login-card {
  background: #171736;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 44px 110px rgba(0, 0, 0, 0.45),
    0 22px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .bc-login-card .form-control {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--bc-border);
  color: var(--bc-text);
}
[data-bs-theme="dark"] .bc-login-card .form-control:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(129, 140, 248, 0.6);
}
[data-bs-theme="dark"] .bc-login-card .login-logo h1 {
  background: linear-gradient(135deg, #a5b4fc 20%, #d8b4fe 80%);
  -webkit-background-clip: text;
  background-clip: text;
}
[data-bs-theme="dark"] .bc-login-card::before {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.5), rgba(255, 255, 255, 0.08), rgba(6, 182, 212, 0.4));
}
[data-bs-theme="dark"] .bc-scene-panel {
  background: rgba(24, 24, 54, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .bc-scene-badge {
  background: #1a1a3a;
  border-color: rgba(129, 140, 248, 0.3);
  color: var(--bc-text-secondary);
}

/* Auth page: never show page entrance animation on nested cards */
.bc-login-page .card,
.bc-login-page .bc-quick-action { animation: none; }

/* Keep tilt interaction but guard against sticky transforms on touch */
@media (hover: none) {
  .bc-login-card { transform: none !important; }
}

/* ---------- 4. Typography helpers ---------- */
.bc-text-xs { font-size: 0.72rem; }
.bc-text-sm { font-size: 0.82rem; }
.bc-text-2xs { font-size: 0.65rem; letter-spacing: 0.4px; }
.bc-mono { font-family: var(--bc-font-mono); }

/* ---------- 5. Buttons ---------- */
.btn { letter-spacing: 0.01em; }

.btn:disabled,
.btn.disabled { opacity: 0.55; box-shadow: none; }

/* Focus ring that doesn't fight the button gradients */
.btn-primary:focus-visible,
.btn-success:focus-visible,
.btn-danger:focus-visible,
.btn-warning:focus-visible {
  outline: 2px solid var(--bc-primary);
  outline-offset: 2px;
}

/* Outline buttons get a soft primary tint on hover (was default gray) */
.btn-outline-primary {
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--bc-primary);
}
.btn-outline-primary:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--bc-primary);
  color: var(--bc-primary);
}
.btn-outline-secondary {
  border-color: var(--bc-border);
  color: var(--bc-text-secondary);
}
.btn-outline-secondary:hover {
  background: var(--bc-surface-2);
  border-color: var(--bc-text-muted);
  color: var(--bc-text);
}
[data-bs-theme="dark"] .btn-outline-secondary {
  border-color: var(--bc-border);
  color: var(--bc-text-secondary);
}
[data-bs-theme="dark"] .btn-outline-secondary:hover {
  background: var(--bc-surface-3);
  color: var(--bc-text);
}

/* Icon-only buttons keep a consistent 36px hit target */
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.btn-icon i { margin: 0; }

/* Link buttons */
.btn-link { text-decoration: none; font-weight: 600; }
.btn-link:hover { text-decoration: underline; }

/* ---------- 6. Forms ---------- */
.form-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--bc-text-secondary);
  letter-spacing: 0.2px;
  margin-bottom: 0.4rem;
}
.form-control {
  border-radius: var(--bc-radius-sm);
  border-color: var(--bc-border);
  min-height: 42px;
  color: var(--bc-text);
}
.form-control:focus {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
[data-bs-theme="dark"] .form-control {
  background-color: var(--bc-surface);
  border-color: var(--bc-border);
}
[data-bs-theme="dark"] .form-control:focus {
  background-color: var(--bc-surface);
  border-color: rgba(129, 140, 248, 0.6);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.15);
}

.form-text { font-size: 0.75rem; color: var(--bc-text-muted); }

/* Validation states with icon-safe spacing */
.is-invalid { border-color: var(--bc-danger) !important; }
.is-valid { border-color: var(--bc-success) !important; }

.input-group-text {
  background: var(--bc-surface-2);
  border-color: var(--bc-border);
  color: var(--bc-text-secondary);
  border-radius: var(--bc-radius-sm);
}
.input-group > .form-control:first-child { border-radius: var(--bc-radius-sm) 0 0 var(--bc-radius-sm); }
.input-group > .form-control:last-child { border-radius: 0 var(--bc-radius-sm) var(--bc-radius-sm) 0; }

.form-check-input:checked { background-color: var(--bc-primary); border-color: var(--bc-primary); }
.form-check-input:focus { box-shadow: var(--bc-focus-ring); border-color: var(--bc-primary); }

/* ---------- 7. Tables ---------- */
.table { --bs-table-bg: transparent; }
.table thead th {
  background: var(--bc-surface-2);
  border-bottom: 1px solid var(--bc-border);
  padding: 0.8rem 1rem;
  white-space: nowrap;
}
.table tbody td { padding: 0.8rem 1rem; vertical-align: middle; }
.table-hover tbody tr:hover { --bs-table-hover-bg: rgba(99, 102, 241, 0.04); }
.table td, .table th { border-color: var(--bc-border-light); }

.table-responsive {
  scrollbar-width: thin;
  border-radius: var(--bc-radius-sm);
}
.table-responsive::-webkit-scrollbar { height: 8px; }
.table-responsive::-webkit-scrollbar-thumb { background: var(--bc-border); border-radius: 8px; }

[data-bs-theme="dark"] .table thead th { background: var(--bc-surface-3); }

/* Row action icons stay centered & crisp */
.table .btn-icon { width: 32px; height: 32px; }
.table td .dropdown-menu { min-width: 180px; }

/* ---------- 8. Cards & lists ---------- */
.card {
  border-radius: var(--bc-card-radius);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.card-title { letter-spacing: -0.02em; }

.list-group-item { border-color: var(--bc-border-light); }
.list-group-item.active {
  background: var(--bc-primary);
  border-color: var(--bc-primary);
}

/* ---------- 9. Badges & chips ---------- */
.badge { font-weight: 600; letter-spacing: 0.2px; }
.badge.rounded-pill { padding: 0.4em 0.75em; }

.bc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.bc-status-pill i { font-size: 0.55rem; }

/* ---------- 10. Alerts ---------- */
.alert {
  border-radius: var(--bc-radius-md);
  border: 1px solid transparent;
  box-shadow: var(--bc-card-shadow);
}
.alert-dismissible .btn-close { padding: 1.05rem; }

/* Impersonation banner sits below the fixed topbar */
.bc-impersonate-bar {
  position: sticky;
  top: var(--bc-topbar-h);
  z-index: 1010;
}

/* ---------- 11. Pagination ---------- */
.pagination { gap: 4px; }
.pagination .page-link {
  border-radius: 10px;
  border-color: var(--bc-border);
  color: var(--bc-text-secondary);
  font-weight: 500;
  min-width: 36px;
  text-align: center;
  transition: all var(--bc-motion-fast);
}
.pagination .page-link:hover {
  background: var(--bc-primary-soft);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--bc-primary);
}
.pagination .page-item.active .page-link {
  background: var(--bc-primary);
  border-color: var(--bc-primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.pagination .page-item.disabled .page-link { opacity: 0.5; }
[data-bs-theme="dark"] .pagination .page-link {
  background: var(--bc-surface);
  border-color: var(--bc-border);
  color: var(--bc-text-secondary);
}
[data-bs-theme="dark"] .pagination .page-item.active .page-link {
  background: var(--bc-primary);
  border-color: var(--bc-primary);
  color: #fff;
}

/* ---------- 12. Modals ---------- */
.modal-content {
  border-radius: var(--bc-radius-lg);
  border: 1px solid var(--bc-border-light);
}
.modal.fade .modal-dialog { transform: translateY(12px) scale(0.98); }
.modal.show .modal-dialog { transform: translateY(0) scale(1); }
.modal-body { color: var(--bc-text-secondary); }
.modal-title { letter-spacing: -0.02em; }
[data-bs-theme="dark"] .modal-content { background: var(--bc-surface); border-color: var(--bc-border); }
[data-bs-theme="dark"] .modal-header, [data-bs-theme="dark"] .modal-footer { border-color: var(--bc-border); }

/* ---------- 13. Dropdowns ---------- */
.dropdown-menu { border-color: var(--bc-border); }
.dropdown-item { font-weight: 500; }
.dropdown-item:focus-visible { box-shadow: var(--bc-focus-ring); }
.dropdown-header { color: var(--bc-text-muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }
.dropdown-divider { border-color: var(--bc-border-light); }
[data-bs-theme="dark"] .dropdown-menu { background: var(--bc-surface); border-color: var(--bc-border); }
[data-bs-theme="dark"] .dropdown-item { color: var(--bc-text); }
[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus { background: var(--bc-surface-3); }

/* ---------- 14. Toasts ---------- */
.toast-container { z-index: var(--bc-z-toast) !important; gap: 8px; }
.toast { background: var(--bc-surface); color: var(--bc-text); border: 1px solid var(--bc-border); }
.toast-header { background: var(--bc-surface-2); color: var(--bc-text); }
.toast-body { font-size: 0.85rem; color: var(--bc-text-secondary); }
[data-bs-theme="dark"] .toast { background: var(--bc-surface); border-color: var(--bc-border); }

/* ---------- 15. Shell: topbar, sidebar, bottom-nav ---------- */
.bc-topbar { height: var(--bc-topbar-h); }
.bc-sidebar { top: var(--bc-topbar-h); width: var(--bc-sidebar-w); height: calc(100vh - var(--bc-topbar-h)); }
.bc-main { margin-left: var(--bc-sidebar-w); margin-top: var(--bc-topbar-h); }

/* Sidebar active item gets a soft pill + count alignment */
.bc-sidebar-item.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.14), rgba(99, 102, 241, 0.04));
  border-left-color: var(--bc-primary);
}
.bc-sidebar-sub.active { background: rgba(99, 102, 241, 0.07); border-radius: 0 10px 10px 0; }

/* Focusable nav items need visible focus */
.bc-sidebar-item:focus-visible,
.bc-sidebar-sub:focus-visible,
.bc-topbar-btn:focus-visible { outline: 2px solid var(--bc-primary); outline-offset: -2px; }

/* Topbar search control — button-style, keyboard accessible */
.bc-search-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 200px;
  height: 38px;
  padding: 0 0.85rem;
  border-radius: 11px;
  background: var(--bc-surface-2);
  border: 1px solid var(--bc-border);
  color: var(--bc-text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--bc-motion-fast);
}
.bc-search-trigger:hover {
  background: var(--bc-surface);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--bc-text-secondary);
}
.bc-search-trigger kbd { position: absolute; right: 8px; }
[data-bs-theme="dark"] .bc-search-trigger { background: var(--bc-surface); border-color: var(--bc-border); }

/* Bottom nav: active tab indicator + safe areas */
.bc-bottom-nav { z-index: 1040; }
.bc-bottom-nav-item {
  position: relative;
  padding: 0.3rem 0.9rem;
  border-radius: 12px;
  font-weight: 600;
}
.bc-bottom-nav-item.active i {
  color: var(--bc-primary);
}
.bc-bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--bc-primary-gradient);
}
.bc-bottom-nav-item:focus-visible { outline: 2px solid var(--bc-primary); outline-offset: -2px; }

/* Back-to-top */
.bc-back-top { z-index: var(--bc-z-backtop); }

/* ---------- 16. Empty & loading states ---------- */
.bc-empty-state {
  background: transparent;
}
.bc-empty-state .empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--bc-primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: var(--bc-primary);
  margin-bottom: 1.1rem;
}
.bc-empty-state h4 { font-size: 1.05rem; font-weight: 800; }
[data-bs-theme="dark"] .bc-empty-state .empty-icon { background: rgba(99, 102, 241, 0.15); }

.bc-loading-overlay { z-index: 2000; }

/* ---------- 17. Page header & stat cards ---------- */
.bc-page-header { align-items: flex-end; }
.bc-page-header .page-actions { align-items: center; }

/* ---------- 18. Utilities ---------- */
.text-muted { color: var(--bc-text-muted) !important; }
.text-secondary { color: var(--bc-text-secondary) !important; }
.bg-soft-primary { background: var(--bc-primary-soft); }

.hr, hr { opacity: 1; border-color: var(--bc-border-light); }

/* ---------- 19. Responsive hardening ---------- */
@media (max-width: 991.98px) {
  /* Content clears the fixed bottom nav (style.css guards .bc-main) */
  .bc-main-full { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px)); }
  .bc-page-header { align-items: flex-start; }
}

@media (max-width: 767.98px) {
  .bc-page-header { margin-bottom: 1rem; }
  .bc-page-header .page-title { font-size: 1.25rem; }
  .bc-page-header .page-title i { padding: 6px; font-size: 1rem; margin-right: 8px; }
  .bc-auth-wrap { gap: 1.25rem; padding: 0.5rem; }
  .bc-login-card { padding: 1.9rem 1.4rem; border-radius: 22px; }
  .bc-login-card .login-logo .logo-icon { width: 64px; height: 64px; font-size: 1.8rem; }
  .bc-login-card .login-logo h1 { font-size: 1.6rem; }
  .table thead th, .table tbody td { padding: 0.6rem 0.7rem; }
  .btn { padding: 0.5rem 0.9rem; }
}

@media (max-width: 575.98px) {
  .bc-stat-card .stat-value { font-size: 1.3rem; }
  .bc-quick-actions { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .bc-company-chip { max-width: 150px; }
  .page-actions .btn .btn-text-lg { display: none; }
}

/* ---------- 20. Print hardening ---------- */
@media print {
  .bc-back-top, .toast-container, #error-toast, .bc-skip-link, .bc-bottom-nav, .bc-impersonate-bar { display: none !important; }
  .bc-main, .bc-main-full { margin: 0 !important; padding: 0 !important; }
  .modal { position: static !important; }
  .modal-dialog { max-width: 100% !important; margin: 0 !important; }
}

/* ---------- 21. Shell fixes from deep audit ---------- */

/* Back-to-top must clear the fixed bottom nav on mobile */
.bc-back-top { z-index: 1055; }
@media (max-width: 991.98px) {
  .bc-back-top { bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
}

/* htmx spinner indicator must override inline display:none */
.spinner.htmx-request,
.htmx-request .spinner { display: inline-block !important; }

/* ---------- 22. Undefined-class fixes (stat cards, badges, misc) ---------- */

/* Inner stat-card children used on wallet/supplier/expense/portal pages */
.bc-stat-card .bc-stat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 0.8rem;
  background: rgba(99,102,241,0.1); color: var(--bc-primary);
  transition: transform var(--bc-motion);
}
.bc-stat-card .bc-stat-label {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--bc-text-muted); margin-bottom: 0.35rem;
}
.bc-stat-card .bc-stat-value {
  font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--bc-text); font-variant-numeric: tabular-nums;
}

/* "Healthy" customer credit status badge */
.bg-healthy { background-color: var(--bc-success) !important; color: #fff !important; }

/* Template gallery icons */
.template-avatar {
  width: 46px; height: 46px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  background: var(--bc-primary-soft); color: var(--bc-primary);
  flex-shrink: 0;
}

/* Invoice detail bill-to panel */
.bc-invoice-bill-to {
  background: var(--bc-surface-2);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-md);
  padding: 1rem 1.25rem;
}

/* Standalone .page-title (pages without .bc-page-header wrapper) */
.page-title {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--bc-text);
}
h1.page-title { font-size: 1.6rem; }
h2.page-title, h3.page-title, h4.page-title { font-size: 1.45rem; }
.page-title i {
  color: var(--bc-primary); margin-right: 10px;
  background: rgba(99,102,241,0.1); border-radius: 12px; padding: 8px;
  font-size: 1.1rem; vertical-align: -3px;
}

/* ---------- 23. Dark-theme hardening ---------- */

/* Bootstrap light utilities must not stay white in dark mode */
[data-bs-theme="dark"] .bg-white { background-color: var(--bc-surface) !important; }
[data-bs-theme="dark"] .bg-light { background-color: var(--bc-surface-2) !important; }
[data-bs-theme="dark"] .bg-body { background-color: var(--bc-bg) !important; }
[data-bs-theme="dark"] .text-dark { color: var(--bc-text) !important; }
[data-bs-theme="dark"] .text-white { color: var(--bc-text) !important; }
[data-bs-theme="dark"] .text-body { color: var(--bc-text) !important; }
[data-bs-theme="dark"] .border-white { border-color: var(--bc-border) !important; }

/* Badge text colors stay readable in dark mode */
[data-bs-theme="dark"] .badge.bg-success { color: #d1fae5; }
[data-bs-theme="dark"] .badge.bg-warning { color: #fef3c7; }
[data-bs-theme="dark"] .badge.bg-danger { color: #fee2e2; }
[data-bs-theme="dark"] .badge.bg-info { color: #e0f2fe; }

/* Impersonation bar: theme-aware + prints hidden (handled above) */
[data-bs-theme="dark"] .bc-impersonate-bar { background: #3a3320 !important; color: #f5e9c8 !important; }

/* ---------- 24. Ultra-Premium Glassmorphism & Micro-Elevation SaaS Layer ---------- */
:root {
  --bc-glass-bg: rgba(255, 255, 255, 0.90);
  --bc-glass-border: rgba(224, 242, 254, 0.85);
  --bc-glass-shadow: 0 16px 36px -12px rgba(14, 165, 233, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  --bc-shadow-3d: 0 12px 28px -6px rgba(14, 165, 233, 0.09), 0 2px 8px rgba(15, 23, 42, 0.03);
  --bc-glow-color: rgba(14, 165, 233, 0.10);
  --bc-linear-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --bc-emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --bc-gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --bc-amber-gradient: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
}

/* Glassmorphism Panel Component */
.bc-glass-panel, .bc-glass-card {
  background: var(--bc-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bc-glass-border);
  box-shadow: var(--bc-glass-shadow);
  border-radius: var(--bc-radius-lg);
  transition: transform var(--bc-motion), box-shadow var(--bc-motion), border-color var(--bc-motion);
}

/* Clean 2D Elevated Card Base */
.bc-card-3d, .stat-card-3d {
  background: var(--bc-glass-bg);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--bc-glass-border);
  border-radius: var(--bc-radius-lg);
  box-shadow: var(--bc-shadow-3d);
  transition: transform 0.2s ease, box-shadow var(--bc-motion), border-color var(--bc-motion);
  position: relative;
  overflow: hidden;
}

.bc-card-3d:hover, .stat-card-3d:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.16), 0 4px 14px rgba(15, 23, 42, 0.04);
}

/* Dynamic Cursor Glow Overlay */
.bc-card-3d::before, .bc-glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--bc-glow-color), transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--bc-motion);
  z-index: 1;
}

.bc-card-3d:hover::before, .bc-glass-panel:hover::before {
  opacity: 1;
}

/* Gradient Text Highlight */
.bc-gradient-text {
  background: var(--bc-linear-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
}

/* Clean Elevation Buttons */
.btn-primary-3d {
  background: var(--bc-linear-gradient);
  color: #ffffff !important;
  border: none;
  border-radius: var(--bc-radius-md);
  padding: 0.65rem 1.4rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: transform 0.15s ease, box-shadow var(--bc-motion);
}

.btn-primary-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.45);
}

.btn-primary-3d:active {
  transform: translateY(0);
}

/* Floating Navigation Bar */
.bc-topbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(224, 242, 254, 0.9) !important;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.05) !important;
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(186, 230, 253, 0.7);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(14, 165, 233, 0.8);
}

/* ---------- 25. Clean Light & Sky-Blue Auth Experience Layer ---------- */
body.bc-login-page {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  min-height: 100vh !important;
  height: auto !important;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 50%, #fffbeb 100%) !important;
}

.bc-auth-container,
.bc-auth-3d-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.25rem;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  background: radial-gradient(circle at 15% 15%, #e0f2fe 0%, transparent 40%),
              radial-gradient(circle at 85% 85%, #fef3c7 0%, transparent 45%),
              linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
}

.bc-auth-card,
.bc-auth-3d-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(224, 242, 254, 0.95);
  border-radius: 24px;
  padding: 2.75rem 2.25rem;
  box-shadow:
    0 16px 40px -12px rgba(14, 165, 233, 0.10),
    0 4px 16px rgba(15, 23, 42, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  position: relative;
  z-index: 10;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: auto;
}

@media (max-width: 767.98px) {
  .bc-auth-container,
  .bc-auth-3d-container {
    padding: 1.5rem 0.85rem;
    align-items: flex-start;
  }
  .bc-auth-card,
  .bc-auth-3d-card {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
  }
}

.bc-auth-card:hover,
.bc-auth-3d-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 50px -12px rgba(14, 165, 233, 0.15),
    0 6px 20px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Crisp Light Inputs */
.bc-input-group,
.bc-3d-input-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}

.bc-input-group .form-control,
.bc-3d-input-wrap .form-control {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 0.8rem 1.1rem 0.8rem 2.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.bc-input-group .input-icon,
.bc-3d-input-wrap .input-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1.1rem;
  transition: color 0.2s ease;
  z-index: 5;
}

.bc-input-group .form-control:focus,
.bc-3d-input-wrap .form-control:focus {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.14), 0 4px 12px rgba(2, 132, 199, 0.08);
}

.bc-input-group .form-control:focus + .input-icon,
.bc-input-group .form-control:focus ~ .input-icon,
.bc-3d-input-wrap .form-control:focus + .input-icon,
.bc-3d-input-wrap .form-control:focus ~ .input-icon {
  color: #0284c7;
}

/* ---------- 26. Luxury Light & Ambient Gold Dashboard Hero System ---------- */
.bc-golden-green-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 45%, #fffbeb 100%);
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 2.25rem 2.5rem;
  color: #0f172a;
  border: 1.5px solid rgba(224, 242, 254, 0.95);
  box-shadow: 0 14px 36px -10px rgba(14, 165, 233, 0.12), 0 0 0 1px rgba(254, 243, 199, 0.6) inset;
  margin-bottom: 2rem;
}

.bc-golden-green-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.35) 0%, rgba(212, 175, 55, 0.12) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.bc-golden-green-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 20%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.20) 0%, transparent 70%);
  filter: blur(35px);
  pointer-events: none;
}

.bc-golden-green-hero .hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.bc-golden-green-hero .hero-subtitle {
  color: #475569;
  font-size: 1.05rem;
  font-weight: 500;
}

.bc-golden-green-hero .hero-gold-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 9999px;
  color: #92400e;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

/* Golden Green Stat Cards */
.bc-stat-card.stat-golden-green {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 253, 244, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 10px 25px -10px rgba(5, 150, 105, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.bc-stat-card.stat-golden-green .stat-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
}

.bc-stat-card.stat-golden-green .stat-value {
  color: #047857;
  font-weight: 800;
}

.bc-stat-card.stat-champagne-gold {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 252, 232, 0.9) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 10px 25px -10px rgba(180, 83, 9, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.bc-stat-card.stat-champagne-gold .stat-icon {
  background: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(212, 175, 55, 0.4);
}

.bc-stat-card.stat-champagne-gold .stat-value {
  color: #92400e;
  font-weight: 800;
}

.bc-stat-card.stat-lit-emerald {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 253, 245, 0.9) 100%);
  border: 1px solid rgba(5, 150, 105, 0.22);
  box-shadow: 0 10px 25px -10px rgba(16, 185, 129, 0.12);
}

.bc-stat-card.stat-lit-emerald .stat-icon {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(5, 150, 105, 0.35);
}

.bc-stat-card.stat-lit-emerald .stat-value {
  color: #065f46;
  font-weight: 800;
}

.bc-stat-card.stat-sapphire-gold {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.9) 100%);
  border: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow: 0 10px 25px -10px rgba(37, 99, 235, 0.12);
}

.bc-stat-card.stat-sapphire-gold .stat-icon {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.35);
}

.bc-stat-card.stat-sapphire-gold .stat-value {
  color: #1e40af;
  font-weight: 800;
}

/* Golden Green Buttons */
.btn-golden-green {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #d4af37 100%);
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4), 0 2px 6px rgba(4, 120, 87, 0.2);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-golden-green:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 50%, #c9a227 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 28px -6px rgba(16, 185, 129, 0.5), 0 4px 10px rgba(212, 175, 55, 0.3);
}

.btn-gold-outline {
  background: rgba(254, 252, 232, 0.6);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  color: #92400e !important;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-gold-outline:hover {
  background: #d4af37;
  border-color: #d4af37;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -4px rgba(212, 175, 55, 0.4);
}

/* Lit Glass Card Container */
.bc-glass-card-lit {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-top: 3px solid #10b981;
  border-radius: 20px;
  box-shadow: 0 12px 32px -10px rgba(16, 185, 129, 0.08), 0 2px 8px rgba(15, 23, 42, 0.03);
}

/* Metallic Golden Green Badge */
.bc-gold-badge {
  background: linear-gradient(135deg, rgba(254, 240, 138, 0.4) 0%, rgba(16, 185, 129, 0.15) 100%);
  color: #047857;
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* ---------- 27. Dropdown & Select Form Control System ---------- */
.dropdown-menu {
  z-index: 1060 !important;
  border-radius: 14px !important;
  border: 1px solid var(--bc-border) !important;
  background: var(--bc-surface) !important;
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.15), 0 4px 12px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: blur(16px);
  padding: 0.5rem !important;
  min-width: 180px;
  animation: bcDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bcDropdownFade {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-menu .dropdown-item {
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--bc-text) !important;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background: rgba(37, 99, 235, 0.08) !important;
  color: var(--bc-primary) !important;
  transform: translateX(3px);
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
  background: var(--bc-primary) !important;
  color: #ffffff !important;
}

/* Form Select Controls */
[data-bs-theme="dark"] .dropdown-menu {
  background: rgba(30, 41, 59, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6) !important;
}

/* ---------- 28. Luxury Sky-Blue & Golden Touch Design System ---------- */
:root {
  --bc-sky-50: #f0f9ff;
  --bc-sky-100: #e0f2fe;
  --bc-sky-400: #38bdf8;
  --bc-sky-500: #0ea5e9;
  --bc-sky-600: #0284c7;
  --bc-sky-gradient: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  --bc-sky-glow: 0 0 20px rgba(14, 165, 233, 0.25);

  --bc-gold-50: #fffbeb;
  --bc-gold-100: #fef3c7;
  --bc-gold-300: #fcd34d;
  --bc-gold-400: #fbbf24;
  --bc-gold-500: #f59e0b;
  --bc-gold-600: #d97706;
  --bc-gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --bc-gold-glow: 0 0 24px rgba(245, 158, 11, 0.22);

  --bc-sky-gold-border: linear-gradient(90deg, #0284c7, #38bdf8, #fbbf24, #f59e0b);
}

/* Light Theme Aesthetic Polish */
body {
  background: #f8fafc;
  background-image: 
    radial-gradient(ellipse 70% 50% at 10% 10%, rgba(14, 165, 233, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(245, 158, 11, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 90%, rgba(56, 189, 248, 0.03) 0%, transparent 60%);
}

/* Topbar Sky-Gold Brand Line */
.bc-topbar {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 20px -5px rgba(14, 165, 233, 0.08) !important;
  position: relative;
}

.bc-topbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 35%, #fbbf24 70%, #f59e0b 100%);
  opacity: 0.85;
}

/* Brand Icon & Chip Golden Highlights */
.bc-brand .brand-icon {
  background: var(--bc-sky-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35) !important;
}

.bc-company-chip {
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.9) 0%, rgba(255, 251, 235, 0.9) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1) !important;
}

.bc-company-chip .chip-role {
  background: var(--bc-gold-gradient) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3) !important;
}

/* Golden & Sky Blue Buttons */
.btn-sky {
  background: var(--bc-sky-gradient);
  color: #ffffff !important;
  border: none;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.55rem 1.25rem;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-sky:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
  color: #ffffff !important;
}

.btn-gold {
  background: var(--bc-gold-gradient);
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.55rem 1.25rem;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  color: #ffffff !important;
}

.btn-sky-outline {
  background: rgba(240, 249, 255, 0.8);
  color: #0284c7 !important;
  border: 1px solid rgba(14, 165, 233, 0.4);
  font-weight: 600;
  border-radius: 12px;
  padding: 0.5rem 1.15rem;
  transition: all 0.2s ease;
}

.btn-sky-outline:hover {
  background: #0284c7;
  color: #ffffff !important;
  border-color: #0284c7;
  transform: translateY(-1px);
}

/* Sky & Gold Badges */
.bc-badge-sky {
  background: rgba(224, 242, 254, 0.85);
  color: #0369a1;
  border: 1px solid rgba(56, 189, 248, 0.5);
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
}

.bc-badge-gold {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.9) 0%, rgba(254, 240, 138, 0.7) 100%);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

/* Golden Hero Clean Luxury Enhancement */
.bc-golden-green-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 45%, #fffbeb 100%) !important;
  border: 1.5px solid rgba(224, 242, 254, 0.95) !important;
  box-shadow: 0 14px 36px -10px rgba(14, 165, 233, 0.12), 0 0 0 1px rgba(254, 243, 199, 0.6) inset !important;
  color: #0f172a !important;
}

.hero-gold-pill {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
  color: #92400e !important;
}

/* Glass Card Sky-Glow on Hover */
.card:hover {
  border-color: rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 16px 36px -10px rgba(14, 165, 233, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

/* Sidebar Luxury Sky-Blue Active State & Golden Border */
.bc-sidebar {
  border-right: 1.5px solid rgba(245, 158, 11, 0.35) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px) !important;
}

.bc-sidebar-item.active,
.bc-sidebar-item:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(56, 189, 248, 0.08) 100%) !important;
  border: 1.5px solid rgba(14, 165, 233, 0.6) !important;
  color: #0284c7 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.15) !important;
  font-weight: 700 !important;
}

.bc-sidebar-item.active i,
.bc-sidebar-item:hover i {
  color: #0284c7 !important;
}

/* Sidebar Bottom Quick Buttons */
.btn-sidebar-cash {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
  color: #0369a1 !important;
  border: 1px solid #7dd3fc !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  padding: 0.65rem 1rem !important;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15) !important;
  transition: all 0.2s ease !important;
}
.btn-sidebar-cash:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.25) !important;
  color: #0369a1 !important;
}

.btn-sidebar-upi {
  background: var(--bc-gold-gradient) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  padding: 0.65rem 1rem !important;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.35) !important;
  transition: all 0.2s ease !important;
}
.btn-sidebar-upi:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45) !important;
  color: #ffffff !important;
}

/* BharatPe / UPI Dynamic QR Card */
.bc-upi-qr-card {
  background: linear-gradient(135deg, #e0f9ff 0%, #bae6fd 45%, #7dd3fc 100%) !important;
  border: 1.5px solid rgba(14, 165, 233, 0.5) !important;
  border-radius: 20px !important;
  padding: 1.25rem !important;
  box-shadow: 0 10px 30px -5px rgba(14, 165, 233, 0.28) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.bc-upi-qr-card:hover {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 16px 40px -5px rgba(14, 165, 233, 0.4) !important;
}

.bc-upi-qr-box {
  background: #ffffff !important;
  padding: 8px !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Golden Total Amount Bar */
.bc-gold-total-bar {
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 45%, #d97706 100%) !important;
  color: #451a03 !important;
  border: 1px solid rgba(217, 119, 6, 0.5) !important;
  border-radius: 14px !important;
  padding: 0.85rem 1.25rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-weight: 900 !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3) !important;
}
.bc-gold-total-bar .total-label {
  font-size: 1rem !important;
  text-transform: capitalize !important;
  letter-spacing: 0.01em !important;
}
.bc-gold-total-bar .total-value {
  font-size: 1.35rem !important;
  font-family: var(--bc-font-mono), monospace !important;
  font-variant-numeric: tabular-nums !important;
}

/* Golden Table Header */
.bc-gold-table-header {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fbbf24 100%) !important;
  color: #78350f !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  border: none !important;
}
.bc-gold-table-header th {
  color: #78350f !important;
  font-weight: 800 !important;
  padding: 0.75rem 1rem !important;
  border: none !important;
}

/* Luxury Product Grid Card */
.bc-pos-product-card {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(14px) !important;
  border: 1.5px solid rgba(224, 242, 254, 0.9) !important;
  border-radius: 18px !important;
  padding: 1rem !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
}
.bc-pos-product-card:hover,
.bc-pos-product-card.selected {
  border-color: rgba(14, 165, 233, 0.7) !important;
  box-shadow: 0 12px 28px -5px rgba(14, 165, 233, 0.25) !important;
  transform: translateY(-3px) !important;
}
.bc-pos-product-card .product-img-box {
  width: 100% !important;
  height: 120px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #f1f5f9 !important;
  margin-bottom: 0.75rem !important;
}
.bc-pos-product-card .product-img-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}





