/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --bg: #f3f8ff;
  --ink: #041225;
  --muted: #64748b;
  --panel: #ffffff;
  --panel-muted: #edf4ff;
  --line: #d7e6ff;
  --line-strong: #bed6ff;
  --brand: #00a7ff;
  --brand-muted: #d9f2ff;
  --brand-strong: #0067d6;
  --warn: #ef4444;
  --warn-muted: #fee2e2;
  --accent: #0043ff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --radius-lg: 18px;
  --app-edge-gutter: 18px;
  --app-shell-max-width: 1400px;
  --app-panel-padding: 24px;
  --app-touch-target: 44px;
  --app-vh: 1vh;
  --app-numeric-tight-tracking: -0.045em;
}

* { box-sizing: border-box; }
html, body, #__next {
  max-width: 100%;
  overflow-x: hidden;
  min-height: 100%;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: calc(var(--app-vh) * 100);
  position: relative;
  isolation: isolate;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  background: #020811;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(2, 8, 17, 0.24), rgba(2, 8, 17, 0.84)),
    radial-gradient(circle at 8% 12%, rgba(38, 219, 255, 0.16), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(31, 146, 244, 0.18), transparent 44%),
    url("/landing-bg.jpg") center center / cover no-repeat,
    linear-gradient(155deg, #0a0e1a, #050810);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 54px,
      rgba(64, 214, 255, 0.18) 54px 56px,
      transparent 56px 142px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 68px,
      rgba(34, 155, 255, 0.16) 68px 70px,
      transparent 70px 168px
    ),
    linear-gradient(112deg, transparent 0 24%, rgba(64, 214, 255, 0.16) 24% 24.2%, transparent 24.2% 100%),
    linear-gradient(-80deg, transparent 0 52%, rgba(64, 214, 255, 0.12) 52% 52.2%, transparent 52.2% 100%),
    linear-gradient(90deg, transparent 0%, rgba(132, 243, 255, 0) 24%, rgba(132, 243, 255, 0.9) 50%, rgba(132, 243, 255, 0) 76%, transparent 100%),
    linear-gradient(0deg, transparent 0%, rgba(132, 243, 255, 0) 24%, rgba(132, 243, 255, 0.9) 50%, rgba(132, 243, 255, 0) 76%, transparent 100%);
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size:
    auto,
    auto,
    auto,
    auto,
    220px 3px,
    3px 220px;
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    -32% 28%,
    72% -35%;
  opacity: 0.36;
  pointer-events: none;
}

h1, h2, h3, .kicker { font-family: 'Space Grotesk', sans-serif; }

.appNumericValue,
.stat-value,
.price-tag {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  text-wrap: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1, tabular-nums lining-nums;
  letter-spacing: var(--app-numeric-tight-tracking);
}

html[data-form-factor="tablet"] {
  --app-edge-gutter: 20px;
  --app-shell-max-width: 1120px;
  --app-panel-padding: 20px;
  --app-touch-target: 46px;
}

html[data-form-factor="phone"] {
  --app-edge-gutter: 14px;
  --app-shell-max-width: 100%;
  --app-panel-padding: 14px;
  --app-touch-target: 48px;
}

html[data-form-factor="phone"] body,
html[data-form-factor="tablet"] body {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

html[data-input-mode="touch"] .btn,
html[data-input-mode="touch"] button,
html[data-input-mode="touch"] input,
html[data-input-mode="touch"] select,
html[data-input-mode="touch"] textarea,
html[data-input-mode="touch"] .actionLink,
html[data-input-mode="touch"] .nav-link {
  min-height: var(--app-touch-target);
}

.shell,
.dashboard-container,
.catalog-app-shell {
  --bg: rgba(4, 12, 24, 0.72);
  --ink: #e8f7ff;
  --muted: #8fa9c5;
  --panel: rgba(6, 18, 34, 0.86);
  --panel-muted: rgba(10, 28, 48, 0.76);
  --line: rgba(115, 217, 255, 0.2);
  --line-strong: rgba(150, 237, 255, 0.42);
  --brand-muted: rgba(0, 167, 255, 0.16);
  --brand-strong: #74ddff;
  --warn-muted: rgba(127, 29, 29, 0.32);
}

.shell {
  width: min(var(--app-shell-max-width), calc(100vw - (var(--app-edge-gutter) * 2)));
  margin: 0 auto;
  padding: clamp(18px, 2.8vw, 32px) 0 calc(48px + env(safe-area-inset-bottom));
  display: grid;
  grid-gap: 20px;
  gap: 20px;
  position: relative;
  z-index: 1;
  animation: fade-in 300ms ease-out;
}

.shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 220px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(13, 64, 110, 0.52), rgba(2, 12, 24, 0)),
    radial-gradient(circle at 12% 18%, rgba(79, 226, 255, 0.26), transparent 34%);
  opacity: 0.88;
  pointer-events: none;
}

.shell > * {
  position: relative;
  z-index: 1;
}

.shell > header.panel:first-child {
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  border-radius: 24px;
  border: 1px solid rgba(116, 221, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(8, 35, 61, 0.96), rgba(4, 15, 29, 0.94)),
    radial-gradient(circle at 88% 18%, rgba(66, 214, 255, 0.18), transparent 24%);
  box-shadow:
    0 28px 60px rgba(2, 10, 20, 0.3),
    inset 0 1px 0 rgba(173, 240, 255, 0.12);
}

.shell > header.panel:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(109, 236, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(82, 224, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.shell > header.panel:first-child h1,
.shell > header.panel:first-child h2,
.shell > header.panel:first-child p,
.shell > header.panel:first-child span {
  position: relative;
  z-index: 1;
  color: var(--ink);
}

.shell > header.panel:first-child .kicker {
  color: #79e4ff;
}

/* Dashboard Layout */
.dashboard-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  overflow: clip;
}

.dashboard-sidebar {
  background:
    linear-gradient(180deg, rgba(5, 16, 30, 0.96), rgba(3, 11, 22, 0.94)),
    radial-gradient(circle at 16% 10%, rgba(74, 219, 255, 0.18), transparent 28%),
    radial-gradient(circle at 78% 82%, rgba(34, 110, 214, 0.18), transparent 34%);
  border-right: 1px solid rgba(99, 220, 255, 0.18);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  color: #e6f7ff;
  overflow: hidden;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  box-shadow:
    inset -1px 0 0 rgba(129, 231, 255, 0.12),
    18px 0 60px rgba(2, 8, 17, 0.3);
}

.dashboard-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(72, 223, 255, 0.06) 0 1px,
      transparent 1px 34px
    ),
    linear-gradient(180deg, rgba(112, 236, 255, 0.1), transparent 22%);
  opacity: 0.8;
  pointer-events: none;
}

.dashboard-sidebar > * {
  position: relative;
  z-index: 1;
}

.dashboard-sidebar > div:first-child > a:first-child {
  position: relative;
  overflow: hidden;
  border-radius: 18px !important;
  padding: 16px 14px 18px !important;
  margin-bottom: 28px !important;
  background:
    linear-gradient(180deg, rgba(7, 34, 60, 0.98), rgba(4, 16, 31, 0.94)) !important;
  border: 1px solid rgba(116, 221, 255, 0.24) !important;
  box-shadow:
    0 20px 36px rgba(2, 10, 20, 0.28),
    inset 0 1px 0 rgba(166, 239, 255, 0.12);
}

.dashboard-sidebar > div:first-child > a:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(90, 225, 255, 0.16), transparent 36%),
    radial-gradient(circle at 85% 18%, rgba(45, 135, 255, 0.2), transparent 26%);
  pointer-events: none;
}

.dashboard-sidebar > div:first-child > a:first-child img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.28));
}

.dashboard-sidebar > div:first-child > a:first-child h2 {
  position: relative;
  z-index: 1;
  color: #f2fcff !important;
  letter-spacing: 0.04em;
}

.dashboard-main {
  position: relative;
  overflow: hidden;
  padding: 38px 32px 32px;
  background:
    linear-gradient(180deg, rgba(4, 14, 28, 0.74), rgba(3, 11, 22, 0.84)),
    radial-gradient(circle at 8% 0%, rgba(74, 219, 255, 0.12), transparent 24%);
  min-width: 0;
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(159, 236, 255, 0.08),
    inset 1px 0 0 rgba(159, 236, 255, 0.04);
}

html[data-form-factor="tablet"] .dashboard-main {
  padding: 24px 20px 22px;
}

html[data-form-factor="phone"] .dashboard-main {
  padding: 16px max(12px, env(safe-area-inset-left)) calc(18px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
}

.dashboard-main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 240px;
  background:
    linear-gradient(135deg, rgba(12, 58, 100, 0.48), rgba(4, 15, 28, 0)),
    radial-gradient(circle at 18% 22%, rgba(90, 225, 255, 0.16), transparent 28%);
  pointer-events: none;
}

.dashboard-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(84, 228, 255, 0.06), transparent 14%),
    repeating-linear-gradient(
      90deg,
      transparent 0 72px,
      rgba(92, 224, 255, 0.045) 72px 73px,
      transparent 73px 144px
    );
  opacity: 0.8;
  pointer-events: none;
}

.dashboard-main > * {
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.dashboard-main p,
.dashboard-main span,
.dashboard-main small {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.muted {
  color: var(--muted, #64748b);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mobile-copy {
  display: block;
  max-width: 100%;
  white-space: normal;
  line-height: 1.45;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  color: rgba(211, 239, 255, 0.74);
  font-weight: 600;
  border: 1px solid rgba(102, 214, 255, 0.08);
  background: rgba(5, 18, 33, 0.46);
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(104, 235, 255, 0), rgba(104, 235, 255, 0.9), rgba(104, 235, 255, 0));
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-link span:first-child {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: rgba(118, 236, 255, 0.08);
  border: 1px solid rgba(118, 236, 255, 0.12);
  color: #dffaff;
  flex-shrink: 0;
}

.nav-link:hover {
  background: rgba(10, 37, 59, 0.68);
  border-color: rgba(98, 218, 255, 0.24);
  color: #f2fcff;
  transform: translateX(3px);
}

.nav-link:hover::before,
.nav-link.active::before {
  opacity: 1;
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(48, 207, 255, 0.24), rgba(34, 110, 214, 0.34));
  border-color: rgba(119, 229, 255, 0.42);
  color: #f5fdff;
  box-shadow: inset 0 0 0 1px rgba(149, 238, 255, 0.14), 0 16px 28px rgba(4, 24, 40, 0.28);
}

.dashboard-main > .section-title:first-of-type,
.dashboard-main > .mobile-top-nav + .section-title,
.dashboard-main > .panel:first-of-type:not(.mobile-top-nav),
.dashboard-main > .mobile-top-nav + .panel {
  position: relative;
  overflow: hidden;
  padding: 24px 24px 22px;
  margin-bottom: 24px;
  border: 1px solid rgba(116, 221, 255, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(8, 35, 61, 0.94), rgba(4, 15, 29, 0.9)),
    radial-gradient(circle at 86% 18%, rgba(66, 214, 255, 0.14), transparent 26%);
  box-shadow:
    0 24px 48px rgba(2, 10, 20, 0.24),
    inset 0 1px 0 rgba(173, 240, 255, 0.12);
}

.dashboard-main > .section-title:first-of-type::before,
.dashboard-main > .mobile-top-nav + .section-title::before,
.dashboard-main > .panel:first-of-type:not(.mobile-top-nav)::before,
.dashboard-main > .mobile-top-nav + .panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(109, 236, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(82, 224, 255, 0.1), transparent 56%);
  pointer-events: none;
}

.dashboard-main > .section-title:first-of-type > *,
.dashboard-main > .mobile-top-nav + .section-title > *,
.dashboard-main > .panel:first-of-type:not(.mobile-top-nav) > *,
.dashboard-main > .mobile-top-nav + .panel > * {
  position: relative;
  z-index: 1;
}

.dashboard-main > .section-title:first-of-type h1,
.dashboard-main > .section-title:first-of-type h2,
.dashboard-main > .mobile-top-nav + .section-title h1,
.dashboard-main > .mobile-top-nav + .section-title h2,
.dashboard-main > .panel:first-of-type:not(.mobile-top-nav) h1,
.dashboard-main > .panel:first-of-type:not(.mobile-top-nav) h2,
.dashboard-main > .panel:first-of-type:not(.mobile-top-nav) h3,
.dashboard-main > .mobile-top-nav + .panel h1,
.dashboard-main > .mobile-top-nav + .panel h2,
.dashboard-main > .mobile-top-nav + .panel h3 {
  color: #f2fcff;
}

.dashboard-main > .section-title:first-of-type p,
.dashboard-main > .section-title:first-of-type .muted,
.dashboard-main > .mobile-top-nav + .section-title p,
.dashboard-main > .mobile-top-nav + .section-title .muted,
.dashboard-main > .panel:first-of-type:not(.mobile-top-nav) p,
.dashboard-main > .panel:first-of-type:not(.mobile-top-nav) .muted,
.dashboard-main > .mobile-top-nav + .panel p,
.dashboard-main > .mobile-top-nav + .panel .muted {
  color: rgba(220, 241, 255, 0.78);
}

.dashboard-main > .section-title:first-of-type .kicker,
.dashboard-main > .mobile-top-nav + .section-title .kicker,
.dashboard-main > .panel:first-of-type:not(.mobile-top-nav) .kicker,
.dashboard-main > .mobile-top-nav + .panel .kicker {
  color: #79e4ff;
}

.panel {
  background:
    linear-gradient(180deg, rgba(7, 19, 35, 0.92), rgba(5, 14, 28, 0.88)),
    radial-gradient(circle at 100% 0%, rgba(90, 216, 255, 0.08), transparent 24%);
  border: 1px solid rgba(104, 214, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--app-panel-padding);
  box-shadow:
    0 22px 44px rgba(2, 10, 20, 0.24),
    0 2px 10px rgba(2, 10, 20, 0.18),
    inset 0 1px 0 rgba(161, 238, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  color: var(--ink);
  overflow-wrap: anywhere;
}

html[data-form-factor="tablet"] .inventory-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

html[data-form-factor="phone"] .inventory-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html[data-form-factor="phone"] .modal-panel,
html[data-form-factor="tablet"] .modal-panel {
  width: min(96vw, 1000px);
  max-height: 94vh;
  max-height: calc((var(--app-vh) * 100) - 24px);
}

html[data-form-factor="phone"] .table-container,
html[data-form-factor="tablet"] .table-container {
  -webkit-overflow-scrolling: touch;
}

.hero {
  background: linear-gradient(135deg, #0051c8 0%, #00a7ff 60%, #39d0ff 100%);
  color: white;
  border: none;
}

.hero .kicker { color: var(--brand-muted); }

.kicker {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .7rem;
  font-weight: 700;
  color: var(--brand);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background:
    linear-gradient(180deg, rgba(7, 19, 35, 0.92), rgba(5, 14, 28, 0.88)),
    radial-gradient(circle at 100% 0%, rgba(90, 216, 255, 0.08), transparent 24%);
  border: 1px solid rgba(104, 214, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--app-panel-padding);
  box-shadow:
    0 22px 44px rgba(2, 10, 20, 0.24),
    0 2px 10px rgba(2, 10, 20, 0.18),
    inset 0 1px 0 rgba(161, 238, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

.section-title h2 { margin: 0; font-size: 1.5rem; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.mobile-top-nav {
  display: none;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.inventory-mobile-menu.mobile-top-nav {
  display: none;
}

.inventory-mobile-menu {
  padding: 12px;
  border-radius: 14px;
}

.inventory-mobile-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.inventory-mobile-menu-button {
  min-width: 112px;
  min-height: 44px;
}

.inventory-mobile-dropdown {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  max-height: min(72vh, 560px);
  overflow-y: auto;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.inventory-mobile-section {
  border: 1px solid rgba(104, 214, 255, 0.18);
  background: linear-gradient(180deg, rgba(9, 23, 42, 0.9), rgba(5, 15, 29, 0.88));
  border-radius: 12px;
  padding: 10px;
}

.inventory-mobile-section .kicker {
  margin-bottom: 8px;
}

.inventory-mobile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.inventory-mobile-links .btn {
  width: 100%;
  justify-content: flex-start;
  min-height: 42px;
}

.inventory-mobile-controls {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.inventory-view-panel {
  padding: 12px 14px;
}

.inventory-view-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.inventory-view-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-muted);
}

.inventory-view-switch .btn {
  border-radius: 0;
  min-width: 108px;
  padding: 8px 14px;
  font-size: 0.8rem;
}

.inventory-view-switch .btn + .btn {
  border-left: 1px solid var(--line);
}

.inventory-pnl-toggle {
  display: none;
  width: 100%;
  border: 1px solid rgba(104, 214, 255, 0.18);
  background: linear-gradient(180deg, rgba(9, 23, 42, 0.9), rgba(5, 15, 29, 0.88));
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 10px;
}

.inventory-pnl-body {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-solid { background: var(--brand-strong); color: white; }
.btn-solid:hover { background: #3cb9f4; transform: translateY(-1px); box-shadow: 0 14px 28px rgba(60, 185, 244, 0.3); }

.btn-ghost {
  background: linear-gradient(180deg, rgba(8, 23, 40, 0.92), rgba(12, 31, 52, 0.9));
  border-color: rgba(132, 224, 255, 0.34);
  color: var(--btn-ghost-ink, #f3fbff);
  box-shadow: inset 0 1px 0 rgba(234, 248, 255, 0.06);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: linear-gradient(180deg, rgba(11, 30, 51, 0.96), rgba(16, 39, 64, 0.94));
  border-color: rgba(167, 235, 255, 0.52);
}

.btn-danger { background: var(--warn-muted); color: var(--warn); border-color: transparent; }
.btn-danger:hover { background: #fee2e2; border-color: #fecaca; }

input, select, textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(104, 214, 255, 0.22);
  padding: 10px 14px;
  background: rgba(4, 13, 26, 0.86);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 167, 255, 0.16);
}

.form-group {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted, #64748b);
}

.grid-cols-2 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 20px; gap: 20px; }
.grid-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 20px; gap: 20px; }

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-gap: 20px;
  gap: 20px;
}

.inventory-gallery-card {
  position: relative;
  border: 1px solid rgba(244, 248, 255, 0.2);
  box-shadow:
    0 20px 40px rgba(2, 10, 20, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.inventory-gallery-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--radius-lg) - 4px);
  border: 1px solid rgba(228, 240, 255, 0.14);
  pointer-events: none;
}

.card {
  background: linear-gradient(180deg, rgba(8, 21, 38, 0.94), rgba(5, 14, 28, 0.9));
  border: 1px solid rgba(104, 214, 255, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 18px 36px rgba(2, 10, 20, 0.22),
    inset 0 1px 0 rgba(168, 239, 255, 0.08);
  color: var(--ink);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 46px rgba(2, 10, 20, 0.28),
    inset 0 1px 0 rgba(168, 239, 255, 0.1);
}

.card-img-wrap {
  aspect-ratio: 63/88;
  background: var(--panel-muted);
  position: relative;
  overflow: hidden;
}

.inventory-card-image-button {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 16px;
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inventory-card-content {
  gap: 10px;
}

.inventory-card-status {
  margin-bottom: 2px;
}

.inventory-card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.inventory-card-stats {
  margin-top: 4px;
}

.inventory-card-details {
  margin-top: 4px;
  border: 1px solid rgba(126, 198, 255, 0.18);
  border-radius: 12px;
  background: rgba(5, 16, 30, 0.72);
  overflow: hidden;
}

.inventory-card-details summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #d9ebff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inventory-card-details summary::-webkit-details-marker {
  display: none;
}

.inventory-card-details summary::after {
  content: "▾";
  color: #8fd7ff;
  font-size: 0.82rem;
}

.inventory-card-details[open] summary::after {
  content: "▴";
}

.inventory-card-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
  padding: 0 12px 10px;
}

.inventory-card-allocate-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 12px 10px;
}

.inventory-card-action-stack {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 0 12px 12px;
}

.inventory-card-footnote {
  display: block;
  padding: 0 12px 12px;
  color: #8de2c8;
  font-size: 0.78rem;
}

.card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.card-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--panel-muted);
  color: var(--muted, #64748b);
}

.price-tag {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-strong);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-label { font-size: 0.65rem; text-transform: uppercase; color: var(--muted, #94a3b8); font-weight: 700; }
.stat-value { font-size: 0.9rem; font-weight: 600; }

.mobile-stack-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-row > * {
  margin-top: 0 !important;
}

/* Table styling */
.table-container {
  background: linear-gradient(180deg, rgba(7, 19, 35, 0.92), rgba(5, 14, 28, 0.88));
  border: 1px solid rgba(104, 214, 255, 0.18);
  border-radius: var(--radius-lg);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow:
    0 18px 36px rgba(2, 10, 20, 0.22),
    inset 0 1px 0 rgba(161, 238, 255, 0.08);
}

.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

table { width: 100%; border-collapse: collapse; min-width: 640px; }
th { background: linear-gradient(180deg, rgba(10, 28, 49, 0.98), rgba(7, 20, 36, 0.94)); padding: 12px 16px; text-align: left; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #8ddfff; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(10, 30, 52, 0.7); }

/* Existing Animations */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .dashboard-container { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; }
  .dashboard-main { padding: 14px; }
  .mobile-top-nav { display: flex; }
  .inventory-mobile-menu.mobile-top-nav { display: block; }
  .inventory-header-actions { display: none !important; }
  .inventory-view-row { align-items: stretch; }
  .inventory-pnl-toggle { display: flex; }
  .inventory-pnl-body { display: none; }
  .inventory-pnl-body.open { display: block; }
  .panel { padding: 16px; border-radius: 14px; }
  .section-title { flex-direction: column; align-items: stretch; gap: 10px; }
  .grid-cols-2 { grid-template-columns: 1fr; gap: 12px; }
  .grid-cols-3 { grid-template-columns: 1fr; gap: 10px; }
  .inventory-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
  .modal-panel { width: min(96vw, 1000px); max-height: 94vh; }
  .modal-header { padding: 14px; }
  .modal-body { padding: 14px; }
}

@media (max-width: 768px) {
  .shell { width: 100%; padding: 10px var(--app-edge-gutter) 24px; gap: 12px; }
  .dashboard-main { padding: 16px; }
  .panel { padding: 12px; border-radius: 12px; }
  .dashboard-main .panel,
  .dashboard-main .table-container,
  .dashboard-main .card {
    margin-inline: 2px;
  }
  .btn { padding: 10px 12px; font-size: 0.85rem; }
  .table-container { border-radius: 12px; }
  table { min-width: 560px; }
  th, td { padding: 10px 10px; font-size: 0.82rem; }
  .location-grid { grid-template-columns: 1fr; }
  .form-grid { gap: 10px; }
  .badge { font-size: 0.72rem; padding: 4px 8px; }
  .mobile-stack-between { flex-direction: column; align-items: stretch; gap: 8px; }
  .search-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .search-row select { width: 100% !important; }
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-content { padding: 12px; }
  .card-title { font-size: 1rem; }
  .price-tag { font-size: 1.05rem; }
  .inventory-card-detail-grid { grid-template-columns: 1fr; }
  .inventory-view-panel { padding: 12px; }
  .inventory-view-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .inventory-view-switch .btn {
    min-width: 0;
    width: 100%;
  }
  .modal-panel { width: 96vw; max-height: 95vh; }
  .modal-header h2 { font-size: 1.1rem; margin: 0; }
  .modal-body { padding: 12px; }
  .inventory-mobile-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .shell { padding-left: max(var(--app-edge-gutter), env(safe-area-inset-left)); padding-right: max(var(--app-edge-gutter), env(safe-area-inset-right)); }
  .dashboard-main { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .section-title h1 { font-size: 1.35rem; margin: 0; }
  .kicker { font-size: .62rem; }
  input, select { padding: 9px 10px; font-size: 0.9rem; }
  table { min-width: 520px; }
}

/* Maintain some specific overrides for binder/catalog from old CSS but cleaned up */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
}

.modal-panel {
  width: min(1000px, 98vw);
  max-height: 90vh;
  background: linear-gradient(180deg, rgba(7, 19, 35, 0.96), rgba(5, 14, 28, 0.94));
  border: 1px solid rgba(104, 214, 255, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 60px rgba(2, 10, 20, 0.34);
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success { background: var(--brand-muted); color: var(--brand-strong); }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: rgba(14, 50, 89, 0.82); color: #92e6ff; }

/* Customer Catalog / Binder Experience */
.catalog-app-shell {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
  background: transparent;
  color: white;
  padding-bottom: calc(80px + env(safe-area-inset-bottom)); /* Space for sticky footer */
}

.catalog-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.8);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  padding: calc(12px + env(safe-area-inset-top)) 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.binder-container {
  padding: 8px;
  max-width: 500px;
  margin: 0 auto;
}

.binder-surface {
  background: #1e293b;
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  border: 3px solid #334155;
  position: relative;
}

.binder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
  gap: 8px;
  aspect-ratio: 3/4;
}

.pocket {
  background: #0f172a;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s;
}

.pocket:active { transform: scale(0.95); }

.pocket-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.pocket-price {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(16, 185, 129, 0.9);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.binder-controls {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.page-btn {
  background: #334155;
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.page-btn:active:not(:disabled) { background: var(--brand); }

.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.cart-summary {
  display: flex;
  flex-direction: column;
}

.cart-label { font-size: 0.7rem; text-transform: uppercase; color: #94a3b8; font-weight: 700; letter-spacing: 0.05em; }
.cart-value { font-size: 1.1rem; font-weight: 700; color: var(--brand); }

.checkout-btn {
  background: var(--brand);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.snipe-grid .card-img-wrap {
  aspect-ratio: 63 / 88;
}

.snipe-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.snipe-grid-two .card-img-wrap {
  aspect-ratio: 63 / 88;
}

.snipe-search-wrap {
  position: relative;
}

.snipe-suggest-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 60;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
  max-height: 260px;
  overflow-y: auto;
}

.snipe-suggest-row {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

.snipe-suggest-row:last-child {
  border-bottom: none;
}

.scan-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  grid-gap: 12px;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.scan-carousel-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.scan-carousel-card h4 {
  margin: 10px 0 4px;
  font-size: 0.95rem;
  line-height: 1.3;
}

.scan-carousel-image {
  width: 100%;
  aspect-ratio: 63 / 88;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel-muted);
  display: grid;
  place-items: center;
}

.scan-carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scan-queue-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84px;
  grid-gap: 8px;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.scan-queue-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel-muted);
  padding: 0;
  position: relative;
  height: 116px;
  cursor: pointer;
}

.scan-queue-item.active {
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 2px var(--brand-muted);
}

.scan-queue-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scan-queue-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.58);
  display: grid;
  place-items: center;
}

.scan-spinner {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.9s linear infinite;
}

.scan-queue-state {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
}

.scan-queue-state.done {
  background: #047857;
}

.scan-queue-state.error {
  background: #dc2626;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.snipe-suggest-row:hover {
  background: var(--panel-muted);
}

.snipe-suggest-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.snipe-suggest-thumb {
  width: 38px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.snipe-suggest-thumb-empty {
  display: grid;
  place-items: center;
  color: #94a3b8;
  background: var(--panel-muted);
}

.deal-thumb-hover {
  transition: transform 180ms ease, box-shadow 180ms ease;
  transform-origin: center center;
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .deal-thumb-hover:hover {
    transform: scale(2.1);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    z-index: 25;
  }
}

@media (max-width: 768px) {
  .snipe-grid {
    grid-template-columns: 1fr;
  }
  .snipe-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .snipe-grid-two .card-content {
    padding: 10px;
  }
  .snipe-grid-two .stats-row {
    gap: 4px;
  }
  .snipe-grid-two .stat-value {
    font-size: 0.78rem;
  }
}

/* eBay Lister responsive */
.lister-desktop-table { display: block; }
.lister-mobile-cards  { display: none; }
.lister-mobile-stats  { display: none; }

@media (max-width: 1024px) {
  .lister-desktop-table { display: none; }
  .lister-mobile-cards  {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .lister-mobile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 8px;
    gap: 8px;
    margin-bottom: 12px;
  }
}

/* Detailed Modal Overrides */
.immersive-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  animation: slide-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-close-strip {
  height: 5px;
  width: 40px;
  background: #334155;
  border-radius: 99px;
  margin: 12px auto;
}

.immersive-content {
  flex: 1 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  overflow-y: auto;
  width: 100%;
}

.detail-img {
  width: 100%;
  max-width: 280px;
  max-height: 40vh;
  object-fit: contain;
  filter: drop-shadow(0 15px 20px rgba(0,0,0,0.5));
  flex-shrink: 0;
}

.detail-info {
  text-align: center;
  width: 100%;
  flex-shrink: 0;
}

.detail-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 4px; }
.detail-meta { color: #94a3b8; font-size: 0.85rem; }

.detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  margin: 12px 0;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 10px;
  gap: 10px;
  width: 100%;
  padding-bottom: 20px;
}

.add-btn {
  background: var(--brand);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  width: 100%;
}

.back-btn {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  padding: 12px;
  border-radius: 16px;
  font-weight: 600;
  width: 100%;
}

