.inventory-table-wrapper {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.inventory-table-wrapper .table {
  margin-bottom: 0;
}

.inventory-table {
  min-width: 100%;
}

.inventory-table thead th {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--collecthub-muted-color);
  background-color: transparent;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.85rem 1.1rem;
}

.inventory-table thead tr:first-child th {
  padding-top: 1rem;
  padding-bottom: 0.75rem;
}

.inventory-table .filter-row th {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-top: 0;
  background-color: transparent;
}

.inventory-col-select {
  width: 44px;
  white-space: nowrap;
}

.inventory-col-image {
  width: 110px;
}

.inventory-name-cell {
  min-width: clamp(160px, 22vw, 280px);
  word-break: break-word;
}

.inventory-name-primary .inventory-item-link {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  font-size: 0.96rem;
  display: inline-block;
  white-space: normal;
  line-height: 1.4;
}

.inventory-name-primary .inventory-item-link:hover,
.inventory-name-primary .inventory-item-link:focus {
  text-decoration: underline;
}

.inventory-name-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.74rem;
  color: var(--collecthub-muted-color);
}

.inventory-subtitle,
.catalog-subtitle {
  color: var(--collecthub-muted-color);
}

.inventory-chip,
.inventory-qty-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(99, 102, 241, 0.12);
  color: #312e81;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
}

.inventory-chip-accent {
  background-color: rgba(34, 197, 94, 0.18);
  color: #047857;
}

.inventory-chip i {
  font-size: 0.75rem;
}

.inventory-thumb {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--collecthub-border-soft);
  background-color: var(--collecthub-surface-strong);
  box-shadow: none;
}

.inventory-thumb.placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--collecthub-surface-strong);
  color: var(--collecthub-muted-color);
}

.inventory-price {
  font-weight: 600;
  color: var(--collecthub-text-color);
}

.inventory-actions .btn {
  border-radius: 0.75rem;
  min-width: 2.5rem;
}

.inventory-controls-form,
.catalog-controls-form {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--collecthub-border-soft);
  background-color: var(--collecthub-surface-card);
  box-shadow: var(--collecthub-shadow-soft);
}

.inventory-controls-form .input-group-text,
.inventory-controls-form .form-control,
.inventory-controls-form .form-select,
.inventory-table .filter-row .form-control,
.inventory-table .filter-row .form-select {
  border-radius: 0.75rem;
  border: 1px solid var(--collecthub-border-input);
  background-color: var(--collecthub-input-bg);
  color: inherit;
}

.inventory-controls-form .input-group-text {
  color: var(--collecthub-muted-color);
  background-color: var(--collecthub-input-bg);
}

.inventory-controls-form .form-control::placeholder,
.inventory-table .filter-row .form-control::placeholder {
  color: var(--collecthub-muted-color);
  opacity: 0.75;
}

.inventory-controls-form .form-control:focus,
.inventory-controls-form .form-select:focus,
.inventory-table .filter-row .form-control:focus,
.inventory-table .filter-row .form-select:focus {
  border-color: var(--collecthub-input-focus-border);
  box-shadow: 0 0 0 0.15rem var(--collecthub-input-focus-shadow);
}

.inventory-controls-form .btn,
.inventory-table .filter-row .btn {
  border-radius: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.inventory-table tbody td {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  vertical-align: middle;
  color: var(--collecthub-text-color);
  padding: 0.85rem 1.1rem;
}

.inventory-table,
.inventory-table > :not(caption) > * {
  border-color: rgba(148, 163, 184, 0.12);
}

.inventory-table > :not(caption) > * > * {
  border-color: rgba(148, 163, 184, 0.12);
}

.inventory-table tbody tr {
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.inventory-table tbody tr:hover {
  background-color: rgba(99, 102, 241, 0.05);
}

@media (max-width: 1199.98px) {
  .inventory-table thead th,
  .inventory-table tbody td {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .inventory-actions .btn {
    padding: 0.35rem 0.6rem;
  }
}


.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inventory-mobile-card,
.catalog-mobile-card {
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background-color: var(--collecthub-surface-card);
  background-image: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(14, 165, 233, 0.04));
  box-shadow: 0 30px 72px -48px rgba(15, 23, 42, 0.42);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.inventory-mobile-card:hover,
.inventory-mobile-card:focus-within,
.catalog-mobile-card:hover,
.catalog-mobile-card:focus-within {
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: var(--collecthub-shadow-strong);
  transform: translateY(-2px);
}

.inventory-mobile-thumb,
.catalog-mobile-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--collecthub-surface-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  border: 1px solid var(--collecthub-border-soft);
}

.inventory-mobile-thumb img,
.catalog-mobile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.inventory-mobile-thumb.placeholder,
.catalog-mobile-thumb.placeholder {
  color: var(--collecthub-muted-color);
  font-size: 1.2rem;
}

.inventory-mobile-checkbox,
.catalog-mobile-checkbox {
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  background-color: var(--collecthub-surface-card);
  border: 1px solid var(--collecthub-border-soft);
  border-radius: 0.75rem;
  padding: 0.25rem;
  box-shadow: var(--collecthub-shadow-soft);
  z-index: 1;
}

.inventory-mobile-name,
.catalog-mobile-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--collecthub-text-color);
}

.inventory-mobile-meta,
.catalog-mobile-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--collecthub-muted-color);
}

.inventory-mobile-meta span,
.catalog-mobile-meta span {
  color: inherit;
}

.inventory-mobile-price,
.catalog-mobile-price {
  font-weight: 700;
  color: #047857;
  font-size: 0.95rem;
}

.inventory-mobile-price .bi,
.catalog-mobile-price .bi {
  font-size: 0.85rem;
}

.inventory-mobile-body,
.catalog-mobile-body {
  font-size: 0.74rem;
  color: var(--collecthub-muted-color);
}

.inventory-mobile-badge,
.catalog-mobile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background-color: rgba(148, 163, 184, 0.25);
  color: #1f2937;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.inventory-mobile-badge i,
.catalog-mobile-badge i {
  font-size: 0.65rem;
}

.inventory-mobile-badge-accent,
.catalog-mobile-badge-accent {
  background-color: rgba(250, 204, 21, 0.22);
  color: #92400e;
}

.inventory-mobile-action-btn,
.catalog-mobile-action-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
}

.inventory-mobile-action-btn .bi,
.catalog-mobile-action-btn .bi {
  font-size: 0.95rem;
  line-height: 1;
}

.inventory-mobile-footer,
.catalog-mobile-footer {
  font-size: 0.68rem;
  color: var(--collecthub-muted-color);
}

.inventory-mobile-empty,
.catalog-mobile-empty {
  border-radius: 1rem;
  border: 1px dashed var(--collecthub-border-soft);
  background-color: var(--collecthub-surface-strong);
  color: var(--collecthub-muted-color);
}


.badge-rarity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: rgba(148, 163, 184, 0.28);
  color: #1f2937;
}

.badge-rarity-default,
.badge-rarity-c,
.badge-rarity-common {
  background-color: rgba(148, 163, 184, 0.28);
  color: #1f2937;
}

.badge-rarity-u,
.badge-rarity-uncommon {
  background-color: rgba(96, 165, 250, 0.24);
  color: #1d4ed8;
}

.badge-rarity-r,
.badge-rarity-rare {
  background-color: rgba(94, 234, 212, 0.22);
  color: #0f766e;
}

.badge-rarity-sr,
.badge-rarity-super-rare {
  background-color: rgba(253, 186, 116, 0.24);
  color: #c2410c;
}

.badge-rarity-ssr,
.badge-rarity-ultra-rare,
.badge-rarity-ur {
  background-color: rgba(251, 191, 36, 0.25);
  color: #92400e;
}

.badge-rarity-lr,
.badge-rarity-legendary {
  background-color: rgba(129, 140, 248, 0.24);
  color: #4338ca;
}

:root[data-bs-theme="dark"] .inventory-table-wrapper,
:root[data-bs-theme="dark"] .catalog-table-wrapper {
  border: none;
  background: transparent;
  box-shadow: none;
}

:root[data-bs-theme="dark"] .inventory-table thead th {
  color: var(--collecthub-muted-color);
  border-bottom-color: rgba(129, 140, 248, 0.26);
}

:root[data-bs-theme="dark"] .inventory-table tbody td {
  border-top-color: rgba(129, 140, 248, 0.14);
}

:root[data-bs-theme="dark"] .inventory-table,
:root[data-bs-theme="dark"] .inventory-table > :not(caption) > * {
  border-color: rgba(129, 140, 248, 0.14);
}

:root[data-bs-theme="dark"] .inventory-table > :not(caption) > * > * {
  border-color: rgba(129, 140, 248, 0.14);
}

:root[data-bs-theme="dark"] .inventory-table tbody tr:hover {
  background-color: rgba(79, 70, 229, 0.24);
}

:root[data-bs-theme="dark"] .inventory-subtitle,
.catalog-subtitle {
  color: var(--collecthub-muted-color);
}

:root[data-bs-theme="dark"] .inventory-chip,
:root[data-bs-theme="dark"] .inventory-qty-pill {
  background-color: rgba(99, 102, 241, 0.22);
  color: #c7d2fe;
}

:root[data-bs-theme="dark"] .inventory-chip-accent {
  background-color: rgba(34, 197, 94, 0.28);
  color: #bbf7d0;
}

:root[data-bs-theme="dark"] .inventory-thumb {
  background-color: rgba(15, 23, 42, 0.88);
  border-color: var(--collecthub-border-strong);
}

:root[data-bs-theme="dark"] .inventory-thumb.placeholder {
  color: var(--collecthub-muted-color);
}

:root[data-bs-theme="dark"] .inventory-price {
  color: #f8fafc;
}

:root[data-bs-theme="dark"] .inventory-controls-form,
:root[data-bs-theme="dark"] .catalog-controls-form {
  border-color: var(--collecthub-border-strong);
  background-color: var(--collecthub-surface-card);
  box-shadow: var(--collecthub-shadow-soft);
}

:root[data-bs-theme="dark"] .inventory-controls-form .input-group-text, :root[data-bs-theme="dark"] .catalog-controls-form .input-group-text,
:root[data-bs-theme="dark"] .inventory-controls-form .form-control, :root[data-bs-theme="dark"] .catalog-controls-form .form-control,
:root[data-bs-theme="dark"] .inventory-controls-form .form-select,
:root[data-bs-theme="dark"] .inventory-table .filter-row .form-control,
:root[data-bs-theme="dark"] .inventory-table .filter-row .form-select {
  background-color: var(--collecthub-input-bg);
  border-color: var(--collecthub-border-input);
  color: var(--collecthub-text-color);
}

:root[data-bs-theme="dark"] .inventory-controls-form .form-control::placeholder, :root[data-bs-theme="dark"] .catalog-controls-form .form-control::placeholder,
:root[data-bs-theme="dark"] .inventory-table .filter-row .form-control::placeholder {
  color: var(--collecthub-muted-color);
}

:root[data-bs-theme="dark"] .inventory-controls-form .form-control:focus, :root[data-bs-theme="dark"] .catalog-controls-form .form-control:focus,
:root[data-bs-theme="dark"] .inventory-controls-form .form-select:focus,
:root[data-bs-theme="dark"] .inventory-table .filter-row .form-control:focus,
:root[data-bs-theme="dark"] .inventory-table .filter-row .form-select:focus {
  border-color: var(--collecthub-input-focus-border);
  box-shadow: 0 0 0 0.18rem var(--collecthub-input-focus-shadow);
}

:root[data-bs-theme="dark"] .inventory-mobile-card,
:root[data-bs-theme="dark"] .catalog-mobile-card {
  border-color: rgba(129, 140, 248, 0.35);
  background-color: rgba(15, 23, 42, 0.8);
  background-image: linear-gradient(135deg, rgba(79, 70, 229, 0.28), rgba(14, 165, 233, 0.18));
  box-shadow: 0 40px 100px -58px rgba(2, 6, 23, 0.88);
}

:root[data-bs-theme="dark"] .inventory-mobile-card:hover,
:root[data-bs-theme="dark"] .inventory-mobile-card:focus-within,
:root[data-bs-theme="dark"] .catalog-mobile-card:hover,
:root[data-bs-theme="dark"] .catalog-mobile-card:focus-within {
  border-color: rgba(129, 140, 248, 0.4);
}

:root[data-bs-theme="dark"] .inventory-mobile-thumb,
:root[data-bs-theme="dark"] .catalog-mobile-thumb {
  background-color: rgba(30, 41, 59, 0.85);
  border-color: var(--collecthub-border-strong);
}

:root[data-bs-theme="dark"] .inventory-mobile-thumb.placeholder,
:root[data-bs-theme="dark"] .catalog-mobile-thumb.placeholder {
  color: #cbd5f5;
}

:root[data-bs-theme="dark"] .inventory-mobile-checkbox,
:root[data-bs-theme="dark"] .catalog-mobile-checkbox {
  background-color: var(--collecthub-surface-card);
  border-color: var(--collecthub-border-strong);
  box-shadow: var(--collecthub-shadow-soft);
}

:root[data-bs-theme="dark"] .inventory-mobile-meta,
:root[data-bs-theme="dark"] .catalog-mobile-meta {
  color: var(--collecthub-muted-color);
}

:root[data-bs-theme="dark"] .inventory-mobile-meta span,
:root[data-bs-theme="dark"] .catalog-mobile-meta span {
  color: inherit;
}

:root[data-bs-theme="dark"] .inventory-mobile-price,
:root[data-bs-theme="dark"] .catalog-mobile-price {
  color: #34d399;
}

:root[data-bs-theme="dark"] .inventory-mobile-body,
:root[data-bs-theme="dark"] .catalog-mobile-body {
  color: var(--collecthub-muted-color);
}

:root[data-bs-theme="dark"] .inventory-mobile-badge,
:root[data-bs-theme="dark"] .catalog-mobile-badge {
  background-color: rgba(71, 85, 105, 0.45);
  color: #e2e8f0;
}

:root[data-bs-theme="dark"] .inventory-mobile-badge-accent,
:root[data-bs-theme="dark"] .catalog-mobile-badge-accent {
  background-color: rgba(253, 186, 116, 0.32);
  color: #fdba74;
}

:root[data-bs-theme="dark"] .inventory-mobile-empty,
:root[data-bs-theme="dark"] .catalog-mobile-empty {
  border-color: rgba(148, 163, 184, 0.45);
  background-color: rgba(17, 24, 39, 0.78);
  color: var(--collecthub-muted-color);
}

:root[data-bs-theme="dark"] .badge-rarity {
  background-color: rgba(71, 85, 105, 0.6);
  color: #e2e8f0;
}

:root[data-bs-theme="dark"] .badge-rarity-uncommon,
:root[data-bs-theme="dark"] .badge-rarity-u {
  background-color: rgba(96, 165, 250, 0.3);
  color: #dbeafe;
}

:root[data-bs-theme="dark"] .badge-rarity-rare,
:root[data-bs-theme="dark"] .badge-rarity-r {
  background-color: rgba(94, 234, 212, 0.32);
  color: #99f6e4;
}

:root[data-bs-theme="dark"] .badge-rarity-super-rare,
:root[data-bs-theme="dark"] .badge-rarity-sr {
  background-color: rgba(253, 186, 116, 0.32);
  color: #fed7aa;
}

:root[data-bs-theme="dark"] .badge-rarity-ultra-rare,
:root[data-bs-theme="dark"] .badge-rarity-ssr,
:root[data-bs-theme="dark"] .badge-rarity-ur {
  background-color: rgba(251, 191, 36, 0.32);
  color: #fde68a;
}

:root[data-bs-theme="dark"] .badge-rarity-legendary,
:root[data-bs-theme="dark"] .badge-rarity-lr {
  background-color: rgba(129, 140, 248, 0.32);
  color: #e0e7ff;
}


@media (max-width: 767.98px) {
  .inventory-controls-form,
.catalog-controls-form {
    padding: 1rem;
  }

  .inventory-mobile-card,
  .catalog-mobile-card {
    padding: 0.85rem;
    border-radius: 0.9rem;
  }

  .inventory-mobile-name,
  .catalog-mobile-name {
    font-size: 0.9rem;
  }

  .inventory-mobile-price,
  .catalog-mobile-price {
    font-size: 0.9rem;
  }

  .inventory-mobile-badge,
  .catalog-mobile-badge {
    font-size: 0.6rem;
    padding: 0.08rem 0.4rem;
  }
}
.inventory-shell,
.catalog-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 2vw, 2.75rem);
}

.inventory-hero,
.catalog-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  border-radius: 28px;
  padding: clamp(1.75rem, 2vw + 1.1rem, 2.65rem);
  background-color: var(--collecthub-surface-card);
  background-image: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(14, 116, 144, 0.08));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 30px 72px -48px rgba(15, 23, 42, 0.42);
}

.inventory-hero::after,
.catalog-hero::after {
  content: "";
  position: absolute;
  inset: auto -35% -45% 45%;
  height: 120%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 65%);
  pointer-events: none;
}

.inventory-hero__main,
.catalog-hero__main,
.inventory-hero__meta,
.catalog-hero__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.inventory-hero__meta,
.catalog-hero__meta {
  align-items: flex-start;
}

.inventory-eyebrow,
.catalog-eyebrow {
  letter-spacing: 0.18em;
  font-weight: 600;
}

.inventory-title,
.catalog-title {
  margin-bottom: 0;
  font-size: clamp(2rem, 2.4vw + 1.5rem, 3rem);
}

.inventory-subtitle,
.catalog-subtitle {
  color: var(--collecthub-muted-color);
  max-width: 48ch;
  font-size: clamp(0.95rem, 0.3vw + 0.9rem, 1.05rem);
}

.inventory-hero__note,
.catalog-hero__note {
  color: var(--collecthub-muted-color);
}

.inventory-pill,
.catalog-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(14, 165, 233, 0.16));
  color: #312e81;
}

.inventory-pill--muted,
.catalog-pill--muted {
  border-color: rgba(148, 163, 184, 0.38);
  background: rgba(148, 163, 184, 0.16);
  color: var(--collecthub-text-color);
}

.inventory-pill--accent,
.catalog-pill--accent {
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(16, 185, 129, 0.18);
  color: #047857;
}

.inventory-metric-grid,
.catalog-metric-grid {
  display: grid;
  gap: clamp(1rem, 1.5vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.inventory-metric-card,
.catalog-metric-card {
  position: relative;
  padding: clamp(1.15rem, 1.2vw + 0.9rem, 1.85rem);
  border-radius: 22px;
  background-color: var(--collecthub-surface-card);
  background-image: linear-gradient(145deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 233, 0.06));
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 26px 60px -45px rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inventory-metric-card::after,
.catalog-metric-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% 40%;
  height: 80%;
  background: radial-gradient(45% 45% at 50% 50%, rgba(129, 140, 248, 0.24) 0%, rgba(129, 140, 248, 0) 70%);
  pointer-events: none;
}

.inventory-metric-label,
.catalog-metric-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.inventory-metric-value,
.catalog-metric-value {
  color: var(--collecthub-heading-color);
}

.inventory-surface,
.catalog-surface {
  position: relative;
  overflow: hidden;
  background-color: var(--collecthub-surface-card);
  background-image: linear-gradient(135deg, rgba(99, 102, 241, 0.07), rgba(14, 165, 233, 0.05));
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 26px;
  padding: clamp(1.6rem, 1.2rem + 1vw, 2.3rem);
  box-shadow: 0 32px 80px -54px rgba(15, 23, 42, 0.45);
}

.inventory-surface::after,
.catalog-surface::after {
  content: "";
  position: absolute;
  inset: -20% -35% auto 60%;
  height: 60%;
  background: radial-gradient(40% 40% at 50% 50%, rgba(79, 70, 229, 0.18) 0%, rgba(79, 70, 229, 0) 70%);
  pointer-events: none;
  opacity: 0.65;
}

.inventory-surface > *,
.catalog-surface > * {
  position: relative;
  z-index: 1;
}

.inventory-quick-actions,
.catalog-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.inventory-feedback,
.catalog-feedback {
  border-radius: 24px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(16, 185, 129, 0.12));
  padding: 1.1rem 1.5rem;
  box-shadow: 0 24px 50px -40px rgba(22, 163, 74, 0.5);
  color: var(--collecthub-text-color);
}

.inventory-feedback.alert,
.catalog-feedback.alert {
  margin-bottom: 0;
  border: none;
}

.inventory-preview,
.catalog-preview {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background-image: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(14, 116, 144, 0.1));
}

.inventory-preview__header,
.catalog-preview__header {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.inventory-preview__thumb,
.catalog-preview__thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background-color: var(--collecthub-surface-strong);
}

.inventory-preview__tags .badge,
.catalog-preview__tags .badge {
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-weight: 600;
}

.inventory-controls,
.catalog-controls {
  gap: 1.75rem;
}

.inventory-controls-form,
.catalog-controls-form {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.inventory-controls-form .row.g-3,
.catalog-controls-form .row.g-3 {
  --bs-gutter-y: 1.25rem;
}

.inventory-table-section,
.catalog-table-section {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 1.2vw, 1.75rem);
}

.inventory-table-section > .table-responsive,
.catalog-table-section > .table-responsive {
  margin-top: clamp(0.85rem, 0.7vw, 1.1rem);
}

.inventory-table-section .inventory-table,
.catalog-table-section .inventory-table {
  font-size: 0.92rem;
}

.inventory-metric-card .inventory-metric-label,
.catalog-metric-label {
  color: var(--collecthub-muted-color);
}

.inventory-metric-card .inventory-metric-subtitle {
  color: var(--collecthub-muted-color);
}

@media (min-width: 992px) {
  .inventory-hero,
.catalog-hero {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .inventory-hero__meta,
.catalog-hero__meta {
    align-items: flex-end;
    text-align: right;
  }
}

@media (max-width: 575.98px) {
  .inventory-hero,
.catalog-hero {
    padding: 1.5rem;
  }

  .inventory-surface,
.catalog-surface {
    padding: 1.35rem;
    border-radius: 22px;
  }
}

:root[data-bs-theme="dark"] .inventory-hero, :root[data-bs-theme="dark"] .catalog-hero {
  background-image: linear-gradient(135deg, rgba(79, 70, 229, 0.28), rgba(14, 116, 144, 0.18));
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: 0 40px 90px -45px rgba(2, 6, 23, 0.85);
}

:root[data-bs-theme="dark"] .inventory-hero::after,
:root[data-bs-theme="dark"] .catalog-hero::after {
  background: radial-gradient(50% 50% at 50% 50%, rgba(56, 189, 248, 0.32) 0%, rgba(56, 189, 248, 0) 70%);
}

:root[data-bs-theme="dark"] .inventory-pill, :root[data-bs-theme="dark"] .catalog-pill {
  border-color: rgba(129, 140, 248, 0.35);
  color: #c7d2fe;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(14, 165, 233, 0.28));
}

:root[data-bs-theme="dark"] .inventory-pill--muted, :root[data-bs-theme="dark"] .catalog-pill--muted {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

:root[data-bs-theme="dark"] .inventory-pill--accent, :root[data-bs-theme="dark"] .catalog-pill--accent {
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(16, 185, 129, 0.28);
  color: #99f6e4;
}

:root[data-bs-theme="dark"] .inventory-metric-card,
:root[data-bs-theme="dark"] .catalog-metric-card {
  background-image: linear-gradient(155deg, rgba(79, 70, 229, 0.22), rgba(14, 165, 233, 0.14));
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: 0 34px 80px -45px rgba(2, 6, 23, 0.88);
}

:root[data-bs-theme="dark"] .inventory-surface, :root[data-bs-theme="dark"] .catalog-surface {
  background-image: linear-gradient(140deg, rgba(79, 70, 229, 0.22), rgba(14, 116, 144, 0.18));
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 34px 90px -50px rgba(2, 6, 23, 0.9);
}

:root[data-bs-theme="dark"] .inventory-surface::after, :root[data-bs-theme="dark"] .catalog-surface::after {
  background: radial-gradient(40% 40% at 50% 50%, rgba(129, 140, 248, 0.35) 0%, rgba(129, 140, 248, 0) 70%);
  opacity: 0.45;
}

:root[data-bs-theme="dark"] .inventory-table-wrapper,
:root[data-bs-theme="dark"] .catalog-table-wrapper {
  border: none;
  background: transparent;
  box-shadow: none;
}

:root[data-bs-theme="dark"] .inventory-feedback, :root[data-bs-theme="dark"] .catalog-feedback {
  border-color: rgba(45, 212, 191, 0.35);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.28), rgba(14, 116, 144, 0.22));
  box-shadow: 0 32px 70px -48px rgba(2, 44, 34, 0.85);
  color: #ecfdf5;
}

:root[data-bs-theme="dark"] .inventory-preview, :root[data-bs-theme="dark"] .catalog-preview {
  border-color: rgba(45, 212, 191, 0.35);
  background-image: linear-gradient(140deg, rgba(16, 185, 129, 0.28), rgba(14, 116, 144, 0.22));
}

:root[data-bs-theme="dark"] .inventory-preview__thumb, :root[data-bs-theme="dark"] .catalog-preview__thumb {
  border-color: rgba(94, 234, 212, 0.35);
  background-color: rgba(15, 23, 42, 0.85);
}

:root[data-bs-theme="dark"] .inventory-controls-form .row.g-3,
:root[data-bs-theme="dark"] .catalog-controls-form .row.g-3 {
  --bs-gutter-y: 1.35rem;
}

:root[data-bs-theme="dark"] .inventory-controls-form,
:root[data-bs-theme="dark"] .catalog-controls-form {
  background: transparent;
  border: none;
  box-shadow: none;
}

:root[data-bs-theme="dark"] .inventory-metric-card::after,
:root[data-bs-theme="dark"] .inventory-surface::after, :root[data-bs-theme="dark"] .catalog-surface::after {
  opacity: 0.55;
}
