:root {
  color-scheme: dark;
  --bg: #0c111d;
  --panel: #121a2a;
  --panel-2: #172135;
  --border: #26324a;
  --text: #e8ecf4;
  --muted: #9aa7bd;
  --primary: #7c9cff;
  --danger: #f26d7d;
  --success: #5ad1a4;
  --warn: #ffb454;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(180deg, #0b1220 0%, #0d1424 100%);
  color: var(--text);
}

body.ebay-body {
  --bg: #060606;
  --panel: #0f0f10;
  --panel-2: #171717;
  --border: #3d3214;
  --text: #f6f1db;
  --muted: #c9b675;
  --primary: #f5c94a;
  --danger: #ff8b5c;
  --success: #f0cf66;
  --warn: #f5c94a;
  background:
    radial-gradient(circle at top center, rgba(245,201,74,.10), transparent 24%),
    radial-gradient(circle at top right, rgba(245,201,74,.06), transparent 18%),
    linear-gradient(180deg, #030303 0%, #090909 100%);
  color: var(--text);
}

body.ebay-body a {
  color: #ffd76b;
}
a { color: #b7c8ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px; border-bottom: 1px solid var(--border); background: rgba(12,17,29,.8); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
}
.topbar h1 { margin: 0 0 6px; font-size: 28px; }
.topbar p { margin: 0; color: var(--muted); }
.grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 22px; align-items: start;
}
.span-2 { grid-column: span 2; }
.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border); border-radius: 20px; padding: 18px; box-shadow: 0 12px 30px rgba(0,0,0,.24);
}
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 18px; }
.primary, button {
  background: var(--primary); color: white; border: 0; border-radius: 12px; padding: 10px 14px; cursor: pointer; font-weight: 600;
}
button.secondary { background: #30415f; }
button.danger { background: var(--danger); }
input, textarea, select {
  width: 100%; background: #0f1728; color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px;
}
textarea { resize: vertical; min-height: 180px; font-family: ui-monospace, SFMono-Regular, monospace; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form { display: flex; gap: 10px; margin-bottom: 14px; }
.inline-form input { flex: 1; }
.pill-list { display: flex; flex-direction: column; gap: 10px; }
.pill {
  border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: flex; justify-content: space-between; gap: 12px; align-items: center;
  background: rgba(255,255,255,.02);
}
.pill.disabled { opacity: .7; }
.pill-actions { display: flex; gap: 8px; }
.sources-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.source-card { display: flex; flex-direction: column; gap: 12px; }
.source-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.source-head h3 { margin: 0; }
.source-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.checkbox { display: inline-flex; align-items: center; gap: 6px; }
.checkbox input { width: auto; }
.triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.actions { display: flex; gap: 10px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
.badge {
  display: inline-flex; align-items: center; justify-content: center; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; background: #22304b;
}
.badge.ok, .badge.in_stock, .badge.success { background: rgba(90,209,164,.18); color: #8ce7c3; }
.badge.error, .badge.blocked, .badge.out_of_stock { background: rgba(242,109,125,.18); color: #ff9cab; }
.badge.empty, .badge.unknown, .badge.idle { background: rgba(255,180,84,.16); color: #ffca7a; }
.feed { display: flex; flex-direction: column; gap: 10px; max-height: 540px; overflow: auto; }
.feed-item {
  border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.02);
}
.feed-item.success { border-color: rgba(90,209,164,.35); }
.muted { color: var(--muted); font-size: 13px; }
.offer-line { display: flex; flex-direction: column; margin-bottom: 8px; }
.title-cell { min-width: 260px; }
@media (max-width: 1200px) {
  .grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .sources-grid { grid-template-columns: 1fr; }
}
.wrap { word-break: break-word; }
.log-feed { max-height: 900px; }
.log-preview {
  margin: 8px 0 0;
  padding: 10px;
  border-radius: 12px;
  background: #0b1321;
  border: 1px solid rgba(255,255,255,.08);
  color: #cdd7e9;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.45;
}
.feed-item.blocked { border-color: rgba(242,109,125,.35); }
.feed-item.empty { border-color: rgba(255,180,84,.25); }
.feed-item.error { border-color: rgba(242,109,125,.45); }





.topbar-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;}
.page-nav{display:flex;gap:8px;flex-wrap:wrap;}
.nav-btn{background:#20304e;color:#dfe8fb;border:1px solid var(--border);border-radius:999px;padding:9px 14px;font-weight:700;}
.nav-btn.active{background:var(--primary);color:white;}
.pages-grid{display:block;padding:22px;}
.page-section{display:none;max-width:1600px;margin:0 auto 22px;}
.page-section.active-page{display:grid;grid-template-columns:2fr 1fr;gap:18px;align-items:start;}
.page-section.active-page > .card, .page-section.active-page > section.card{margin-bottom:0;}
.page-section#catalog-page{max-width:1690px;}
#catalog-page.page-section.active-page{grid-template-columns:1fr;}
.section-stack{margin-bottom:18px;}
.nested-card{padding:14px;}
.slim-head{margin:8px 0;}
.sticky-subbar{position:sticky;top:88px;z-index:2;background:linear-gradient(180deg,var(--panel) 0%, var(--panel-2) 100%);padding:8px 0;}
.compact{padding-top:0;}
.sort-btn{background:transparent;border:0;color:var(--text);padding:0;font:inherit;cursor:pointer;font-weight:700;}
.sort-btn .sort-arrow{display:inline-block;min-width:14px;text-align:center;color:var(--muted);}
.tall-table{max-height:78vh;}
#sources-page .sources-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.source-config-form{display:flex;flex-direction:column;gap:12px;margin-top:10px;}
@media (max-width: 1200px){.page-section.active-page{grid-template-columns:1fr;} #sources-page .sources-grid{grid-template-columns:1fr;} .sticky-subbar{top:76px;}}


.compact-source-select { min-height: auto; }
.sources-save-all-form .source-card details { margin-top: 0.5rem; }



main.pages-grid, .pages-grid { position: relative; z-index: 1; }
.topbar, .topbar * { position: relative; z-index: 50; }
.topbar-actions, .page-nav { position: relative; z-index: 60; }
.nav-btn, .topbar-actions form, .topbar-actions button { position: relative; z-index: 70; }
.sticky-subbar { z-index: 5; }
#sources-page .sticky-subbar { top: 96px; }
.filters-bar.sticky-subbar, .bulk-actions.sticky-subbar { pointer-events: none; }
.filters-bar.sticky-subbar > *, .bulk-actions.sticky-subbar > * { pointer-events: auto; }
.page-nav { isolation: isolate; }


/* V2.1.3 overrides */
.topbar { z-index: 50; }
.topbar-actions, .page-nav, .nav-btn, .filters-bar, .bulk-actions { position: relative; z-index: 5; }
.filters-bar, .bulk-actions { background: transparent; }
.sticky-subbar { position: static !important; top: auto !important; z-index: 1 !important; }
.table-wrap, .tall-table { overflow: auto; position: relative; z-index: 1; }
.page-section { overflow: visible; }
#catalog-page .section-stack { position: relative; z-index: 1; }


/* V2.1.4 stronger layout fixes */
html, body { overflow-x: hidden; }
.topbar { position: sticky; top: 0; z-index: 100; background: #0f172a; }
.page-nav { position: sticky; top: 72px; z-index: 95; background: linear-gradient(180deg, rgba(12,17,29,.98) 0%, rgba(18,26,42,.98) 100%); padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.topbar::before, .page-nav::before { content: ""; position: absolute; inset: 0; background: inherit; z-index: -1; }
.filters-bar, .bulk-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters-bar input, .filters-bar select, .bulk-actions input, .bulk-actions button, .bulk-actions label { position: relative; z-index: 2; }
.page-section, .section-stack, .card, .table-wrap { position: relative; z-index: 1; }
#sources-page .bulk-actions { position: sticky; top: 128px; z-index: 20; background: linear-gradient(180deg, rgba(18,26,42,.98) 0%, rgba(23,33,53,.98) 100%); padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; }
#catalog-page .filters-bar, #catalog-page .bulk-actions { position: sticky; top: 128px; background: linear-gradient(180deg, rgba(18,26,42,.98) 0%, rgba(23,33,53,.98) 100%); z-index: 20; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; }



/* V2.2.3 UI patch: restore dark theme around top actions / filters */
.topbar-actions,
.page-nav,
.filters-bar,
.bulk-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filters-bar,
.bulk-actions {
  margin: 10px 0 14px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(18,26,42,.98) 0%, rgba(23,33,53,.98) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
  z-index: 2;
}

.filters-bar input,
.filters-bar select,
.bulk-actions input,
.bulk-actions select {
  width: auto;
  min-width: 120px;
  background: #0f1728;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}

.bulk-actions .checkbox,
.filters-bar .checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.bulk-actions button,
.filters-bar button,
.topbar-actions button,
.page-nav .nav-btn {
  position: relative;
  z-index: 3;
}

.page-nav {
  margin-bottom: 12px;
}

.page-nav .nav-btn {
  background: #20304e;
  color: #dfe8fb;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  text-decoration: none;
}

.page-nav .nav-btn.active {
  background: var(--primary);
  color: white;
}

.favorite-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.favorite-history-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.02);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.favorite-history-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.favorite-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.favorite-history-chart {
  min-height: 150px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(124,156,255,.10) 0%, rgba(124,156,255,0) 100%),
    #0d1526;
  padding: 10px;
}

.favorite-history-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.favorite-history-chart-empty {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.favorite-history-empty {
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 18px;
}

button.secondary {
  background: #30415f;
  color: #fff;
}

button.danger {
  background: var(--danger);
  color: #fff;
}


/* V2.2.5 final dark-theme overrides */
.page-nav,
#sources-page .bulk-actions,
#catalog-page .filters-bar,
#catalog-page .bulk-actions,
.filters-bar,
.bulk-actions {
  background: linear-gradient(180deg, rgba(18,26,42,.98) 0%, rgba(23,33,53,.98) 100%) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.page-nav {
  padding: 10px 12px !important;
}

.page-nav .nav-btn,
.topbar-actions button,
.bulk-actions button,
.filters-bar button {
  box-shadow: none !important;
}

#sources-page .bulk-actions,
#catalog-page .filters-bar,
#catalog-page .bulk-actions {
  backdrop-filter: blur(8px);
}

#sources-page .bulk-actions::before,
#catalog-page .filters-bar::before,
#catalog-page .bulk-actions::before,
.page-nav::before {
  background: transparent !important;
}



/* V2.2.7 ergonomics */
.sources-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)) !important;
  gap: 18px !important;
  align-items: start;
}
.source-card {
  min-height: 0;
}
.source-card details summary {
  cursor: pointer;
  font-weight: 600;
}
.source-config-form .triple {
  grid-template-columns: repeat(3, minmax(100px, 1fr));
}
.filters-bar {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}
@media (max-width: 1400px) {
  .filters-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .sources-grid { grid-template-columns: 1fr !important; }
  .filters-bar { grid-template-columns: 1fr !important; }
}


/* V2.2.8 */
.sources-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
@media (max-width: 1400px) {
  .sources-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 1000px) {
  .sources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 700px) {
  .sources-grid { grid-template-columns: 1fr !important; }
}

.double {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#collection-page.page-section.active-page {
  grid-template-columns: 1fr;
}

.collection-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(153,178,255,.20);
  background: linear-gradient(180deg, rgba(35,45,68,.98) 0%, rgba(22,30,46,.98) 100%) !important;
  color: #dfe8ff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 10px 22px rgba(0,0,0,.22);
}

.collection-launcher:hover {
  background: linear-gradient(180deg, rgba(45,57,84,.98) 0%, rgba(28,37,58,.98) 100%) !important;
  color: #f6f9ff !important;
  border-color: rgba(153,178,255,.28);
  text-decoration: none;
}

.collection-launcher-icon {
  font-size: 15px;
  line-height: 1;
}

.collection-launcher-label {
  white-space: nowrap;
}

.collection-page-wide.page-section {
  --collection-series-value-color: #7c9cff;
  --collection-series-potential-color: #46d39c;
  --collection-series-realized-color: #ff8f5c;
  --collection-series-sales-color: #f5c94a;
}

.collection-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.collection-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.collection-kpi-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 132px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(153,178,255,.14);
  background: linear-gradient(180deg, rgba(18,26,42,.92) 0%, rgba(13,19,32,.98) 100%);
}

.collection-kpi-label {
  color: rgba(235, 244, 255, 0.92);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.collection-kpi-value {
  font-size: 24px;
  line-height: 1.1;
}

.collection-kpi-trend {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  color: #b8c9e7;
  font-size: 12px;
  font-weight: 700;
}

.collection-kpi-trend-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.collection-kpi-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: 11px;
  line-height: 1;
}

.collection-kpi-arrow-positive {
  color: #46d39c;
  background: rgba(70, 211, 156, .12);
}

.collection-kpi-arrow-negative {
  color: #ff8f5c;
  background: rgba(255, 143, 92, .12);
}

.collection-kpi-arrow-neutral {
  color: #c7d4eb;
  background: rgba(199, 212, 235, .12);
}

.collection-kpi-trend small {
  color: #90a5c8;
  font-size: 11px;
  font-weight: 600;
}

.collection-kpi-buckets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.collection-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, .95fr);
  gap: 18px;
}

.collection-search-panel,
.collection-editor-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.collection-search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

.collection-search-scope-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.collection-search-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.collection-search-form select,
.collection-search-form input[type="search"] {
  width: 100%;
  min-width: 0;
}

.collection-search-status {
  margin: 0;
}

.collection-search-status.collection-search-status-error {
  color: #ffb5bf;
}

.collection-search-results {
  display: grid;
  gap: 12px;
}

.collection-history-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(255,255,255,.02);
}

.collection-history-chart {
  min-height: 160px;
}

.collection-history-meta {
  gap: 8px;
}

.collection-result-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(255,255,255,.02);
}

.collection-result-media,
.collection-selected-media {
  width: 100%;
  max-width: 110px;
  aspect-ratio: 0.72;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(153,178,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.collection-result-media img,
.collection-selected-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collection-entry-media {
  width: 100px;
  max-width: 100px;
  min-width: 100px;
  height: 100px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(153,178,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.collection-entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collection-result-body,
.collection-entry-body,
.collection-selected-body {
  min-width: 0;
}

.collection-result-body strong,
.collection-entry-head strong,
.collection-selected-body strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}

.collection-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.collection-result-actions .primary,
.collection-result-actions .secondary {
  white-space: nowrap;
}

.collection-result-metrics,
.collection-entry-metrics {
  gap: 8px;
}

.collection-value-pill {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
}

.collection-value-pill .muted,
.collection-kpi-card .muted {
  color: rgba(235, 244, 255, 0.86);
}

.collection-value-pill-positive {
  border-color: rgba(76, 217, 100, 0.28);
  background: rgba(76, 217, 100, 0.10);
}

.collection-value-pill-negative {
  border-color: rgba(255, 107, 107, 0.28);
  background: rgba(255, 107, 107, 0.10);
}

.collection-value-pill-positive .muted,
.collection-value-pill-positive strong {
  color: #67e8a4;
}

.collection-value-pill-negative .muted,
.collection-value-pill-negative strong {
  color: #ff8b8b;
}

.collection-tone-positive {
  color: #67e8a4;
}

.collection-tone-negative {
  color: #ff8b8b;
}

.collection-tone-neutral {
  color: var(--text);
}

.collection-selected-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(153,178,255,.14);
  background: linear-gradient(180deg, rgba(20,28,45,.90) 0%, rgba(11,16,28,.98) 100%);
}

.collection-variant-picker {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.collection-variant-picker label {
  color: #dce6fb;
  font-size: 13px;
  font-weight: 700;
}

.collection-variant-picker select {
  width: 100%;
}

.collection-editor-panel input.is-readonly {
  background: rgba(255,255,255,.04);
  color: rgba(235, 244, 255, 0.92);
  border-color: rgba(153,178,255,.16);
}

.collection-selected-card.is-empty .collection-selected-media {
  background: rgba(255,255,255,.03);
}

.collection-booster-toggle {
  justify-content: flex-start;
  gap: 10px;
}

.collection-booster-toggle input {
  width: auto;
}

.collection-currency-hint {
  margin-bottom: 14px;
}

.collection-entry-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.collection-entry-list {
  display: grid;
  gap: 14px;
}

.collection-entry-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(255,255,255,.02);
}

.collection-entry-card.sold {
  border-color: rgba(255,180,84,.18);
}

.collection-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.collection-entry-title-block {
  min-width: 0;
}

.collection-entry-title-block .muted,
.collection-entry-updated,
.collection-fullpage-head .muted,
.collection-summary-highlight span,
.collection-summary-highlight .muted {
  color: #c4d3ee;
}

.collection-entry-side {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-direction: column;
}

.collection-trend-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 156px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  text-align: right;
}

.collection-trend-chip span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.collection-trend-chip strong {
  font-size: 15px;
  line-height: 1.2;
}

.collection-trend-chip-positive {
  border-color: rgba(76, 217, 100, 0.28);
  background: rgba(76, 217, 100, 0.10);
  color: #67e8a4;
}

.collection-trend-chip-negative {
  border-color: rgba(255, 107, 107, 0.28);
  background: rgba(255, 107, 107, 0.10);
  color: #ff8b8b;
}

.collection-trend-chip-neutral {
  color: var(--text);
}

.collection-entry-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.collection-entry-table-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
}

.collection-entry-table-cell span {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.collection-entry-table-cell strong {
  font-size: 14px;
  line-height: 1.3;
}

.collection-inline-history {
  margin-top: 14px;
}

.collection-inline-history-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(255,255,255,.03);
}

.collection-result-card > .collection-inline-history {
  grid-column: 1 / -1;
}

.collection-entry-updated {
  margin-top: 6px;
}

.collection-entry-editor {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.collection-entry-editor summary {
  cursor: pointer;
  font-weight: 700;
}

.collection-entry-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.collection-entry-action-row-split {
  margin-top: 12px;
}

.collection-entry-action-row form {
  margin: 0;
}

.collection-sell-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.collection-sell-form input {
  min-width: 180px;
}

.collection-entry-media-placeholder {
  padding: 10px;
  text-align: center;
}

@media (max-width: 1180px) {
  .collection-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .double,
  .collection-kpi-grid {
    grid-template-columns: 1fr;
  }

  .collection-search-input-row {
    grid-template-columns: 1fr;
  }

  .collection-result-card,
  .collection-selected-card,
  .collection-entry-card {
    grid-template-columns: 1fr;
  }

  .collection-result-media,
  .collection-selected-media,
  .collection-entry-media {
    max-width: 170px;
    margin: 0 auto;
  }

  .collection-entry-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .collection-entry-side {
    width: 100%;
    align-items: flex-start;
  }

  .collection-trend-chip {
    min-width: 0;
    width: 100%;
    text-align: left;
  }

  .collection-entry-table {
    grid-template-columns: 1fr 1fr;
  }

  .collection-launcher-label {
    display: none;
  }

  .collection-launcher {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }
}

.collection-page-wide.page-section {
  max-width: min(1880px, calc(100vw - 32px));
  width: 100%;
}

#collection-active-page.page-section.active-page,
#collection-set-page.page-section.active-page,
#collection-sales-page.page-section.active-page {
  grid-template-columns: 1fr;
}

#collection-page .collection-entry-section {
  display: none;
}

.collection-dashboard-shell {
  gap: 22px;
}

.collection-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.82fr) minmax(420px, 1.02fr);
  gap: 6px;
  align-items: stretch;
}

.collection-sidebar-stack {
  display: grid;
  gap: 10px;
  align-self: start;
  width: 100%;
  max-width: 460px;
  justify-self: end;
}

.collection-overview-card,
.collection-summary-card {
  border-radius: 22px;
  border: 1px solid rgba(153,178,255,.12);
  background:
    radial-gradient(circle at top right, rgba(124,156,255,.08), transparent 34%),
    linear-gradient(180deg, rgba(18,28,47,.94) 0%, rgba(11,18,31,.98) 100%);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

.collection-overview-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
}

.collection-summary-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  width: 100%;
  justify-self: end;
  align-self: start;
}

.collection-sale-card {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(153,178,255,.12);
  background:
    radial-gradient(circle at top right, rgba(124,156,255,.06), transparent 34%),
    linear-gradient(180deg, rgba(18,28,47,.94) 0%, rgba(11,18,31,.98) 100%);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  justify-self: stretch;
}

.collection-sale-card-body {
  display: grid;
  gap: 10px;
}

.collection-sale-empty-state {
  display: grid;
  gap: 10px;
}

.collection-sale-start-btn {
  justify-content: center;
}

.collection-sale-composer-form {
  display: grid;
  gap: 10px;
}

.collection-sale-selected-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.collection-sale-selected-media {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dce7fb;
}

.collection-sale-selected-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-sale-selected-body {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
}

.collection-sale-selected-body strong {
  font-size: 14px;
  line-height: 1.25;
}

.collection-sale-selected-body .muted {
  color: #c7d4eb;
}

.collection-sale-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.collection-sale-summary-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
}

.collection-sale-summary-cell span {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.collection-sale-summary-cell strong {
  font-size: 14px;
  line-height: 1.3;
}

.collection-sale-form-grid label {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
}

.collection-sale-form-grid label input {
  margin-top: 0;
}

.collection-sale-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.collection-sale-action-row .primary,
.collection-sale-action-row .secondary {
  flex: 1 1 0;
  justify-content: center;
}

.collection-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.collection-kpi-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.collection-kpi-card-centered {
  justify-content: flex-start;
  gap: 6px;
}

.collection-kpi-card-centered .collection-kpi-stack {
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: flex-start;
  justify-content: stretch;
  padding-top: 2px;
  text-align: left;
  gap: 6px;
}

.collection-kpi-card-centered .collection-kpi-value {
  display: block;
  width: 100%;
  text-align: left;
  align-self: center;
}

.collection-kpi-card-centered .collection-kpi-trend {
  align-items: flex-start;
  text-align: left;
}

.collection-kpi-split {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.collection-kpi-split-label {
  color: rgba(214, 224, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 600;
}

.collection-kpi-split-value {
  margin: 0;
  color: #f7faff;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
}

.collection-dashboard-chart-panel {
  display: grid;
  gap: 4px;
}

.collection-dashboard-chart {
  min-height: 260px;
  position: relative;
  overflow: visible;
}

.collection-dashboard-chart.favorite-history-chart {
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: 0;
}

.collection-dashboard-chart.favorite-history-chart svg {
  background: none !important;
}

.collection-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.collection-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.collection-chart-range {
  display: inline-flex;
  align-items: center;
}

.collection-chart-range select {
  min-width: 156px;
  border-radius: 12px;
}

.collection-chart-legend-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(153,178,255,.16);
  background: rgba(255,255,255,.03);
  color: #e8efff;
  font-size: 12px;
  font-weight: 700;
}

.collection-chart-legend-btn.is-muted {
  opacity: .48;
}

.collection-chart-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--legend-color, #7c9cff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--legend-color, #7c9cff) 25%, transparent);
}

.collection-chart-point {
  cursor: pointer;
}

.collection-chart-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 168px;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(153,178,255,.18);
  background: rgba(7, 12, 24, .96);
  box-shadow: 0 16px 34px rgba(0,0,0,.32);
  backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 16px));
  transition: opacity .14s ease;
  z-index: 5;
}

.collection-chart-tooltip.is-visible {
  opacity: 1;
}

.collection-chart-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: rgba(7, 12, 24, .96);
  border-right: 1px solid rgba(153,178,255,.18);
  border-bottom: 1px solid rgba(153,178,255,.18);
  transform: translateX(-50%) rotate(45deg);
}

.collection-chart-tooltip-title {
  display: block;
  margin-bottom: 4px;
  color: #93a6c8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.collection-chart-tooltip-value {
  display: block;
  color: var(--tooltip-color, #f4f8ff);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.collection-chart-tooltip-date {
  display: block;
  margin-top: 4px;
  color: #d0d9ea;
  font-size: 12px;
  font-weight: 600;
}

.collection-summary-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid rgba(153,178,255,.12);
}

.collection-summary-tab {
  min-height: 40px;
  border-radius: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #b9cbef;
  justify-content: center;
}

.collection-summary-tab.is-active {
  background: transparent;
  color: #f4f8ff;
  border-bottom-color: #6e94ff;
}

.collection-summary-panel {
  display: grid;
  gap: 10px;
}

.collection-summary-highlight {
  display: grid;
  gap: 6px;
  padding: 2px 0 4px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.collection-summary-highlight strong {
  font-size: 30px;
  line-height: 1;
}

.collection-summary-line strong,
.collection-summary-line-values strong {
  color: #f4f8ff;
}

.collection-summary-line .collection-tone-positive,
.collection-summary-line-values .collection-tone-positive,
.collection-summary-highlight .collection-tone-positive {
  color: #67e8a4;
}

.collection-summary-line .collection-tone-negative,
.collection-summary-line-values .collection-tone-negative,
.collection-summary-highlight .collection-tone-negative {
  color: #ff8b8b;
}

.collection-summary-line .collection-tone-neutral,
.collection-summary-line-values .collection-tone-neutral,
.collection-summary-highlight .collection-tone-neutral {
  color: #f4f8ff;
}

.collection-summary-list {
  display: grid;
  gap: 8px;
}

.collection-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(153,178,255,.10);
  background: rgba(255,255,255,.03);
}

.collection-summary-line span {
  color: #c7d4eb;
}

.collection-summary-line-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.collection-summary-line-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.collection-summary-line .collection-summary-line-icon-cards,
.collection-summary-line .collection-summary-line-icon-value {
  color: var(--collection-series-value-color, #7c9cff);
}

.collection-summary-line .collection-summary-line-icon-potential {
  color: var(--collection-series-potential-color, #46d39c);
}

.collection-summary-line .collection-summary-line-icon-realized {
  color: var(--collection-series-realized-color, #ff8f5c);
}

.collection-summary-line .collection-summary-line-icon-sales {
  color: var(--collection-series-sales-color, #f5c94a);
}

.collection-summary-line-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.collection-summary-line-values small {
  color: #8fa7ca;
  font-size: 11px;
  font-weight: 600;
}

.collection-summary-link {
  width: 100%;
  justify-content: center;
}

.collection-chart-color-form {
  margin-top: 12px;
}

.collection-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.collection-color-field {
  display: grid;
  gap: 6px;
}

.collection-color-field span {
  color: #d8e4fb;
  font-size: 13px;
  font-weight: 700;
}

.collection-color-field input[type="color"] {
  width: 100%;
  min-height: 44px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(153,178,255,.14);
  background: #0f1728;
  cursor: pointer;
}

.collection-set-groups {
  display: grid;
  gap: 18px;
}

.collection-set-group {
  display: grid;
  gap: 12px;
}

.collection-set-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.collection-set-group-head h3 {
  margin: 0;
  font-size: 20px;
}

.collection-set-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.collection-set-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.collection-set-search {
  flex: 1 1 320px;
}

.collection-set-search input {
  width: 100%;
}

.collection-set-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(153,178,255,.12);
  background: linear-gradient(180deg, rgba(18,26,42,.92) 0%, rgba(13,19,32,.98) 100%);
  color: #edf4ff;
  text-align: left;
}

.collection-set-card.is-active {
  border-color: rgba(110,148,255,.42);
  box-shadow: 0 0 0 1px rgba(110,148,255,.25), 0 12px 22px rgba(0,0,0,.18);
}

.collection-set-card.is-inactive {
  border-color: rgba(153,178,255,.08);
  background: linear-gradient(180deg, rgba(15,22,35,.92) 0%, rgba(10,15,25,.98) 100%);
}

.collection-set-card-media {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dce7fb;
}

.collection-set-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.collection-set-card-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.collection-set-card-series {
  color: #8fa5ca;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.collection-set-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #9fb3d5;
  font-size: 12px;
  flex-wrap: wrap;
}

.collection-set-card-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(153,178,255,.14);
  background: rgba(255,255,255,.04);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.collection-set-card-status.is-active {
  color: #46d39c;
  border-color: rgba(70, 211, 156, .28);
  background: rgba(70, 211, 156, .10);
}

.collection-set-card-status.is-inactive {
  color: #98abc9;
  border-color: rgba(152, 171, 201, .18);
  background: rgba(152, 171, 201, .08);
}

.collection-set-detail {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(153,178,255,.12);
  background: linear-gradient(180deg, rgba(18,28,47,.94) 0%, rgba(11,18,31,.98) 100%);
}

.collection-set-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.collection-set-detail-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.collection-set-detail-logo {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.collection-set-detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collection-set-detail-stats {
  display: grid;
  gap: 10px;
  min-width: 220px;
}

.collection-set-detail-stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(255,255,255,.03);
}

.collection-set-detail-stat span {
  color: #92a4c4;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.collection-set-detail-stat strong {
  color: #f5f8ff;
  font-size: 18px;
}

.collection-set-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 12px;
}

.collection-set-card-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.collection-set-card-item.is-missing {
  opacity: .44;
  filter: grayscale(1);
}

.collection-set-card-item.is-owned {
  opacity: 1;
  filter: none;
  border-color: rgba(76, 217, 100, 0.22);
}

.collection-set-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(0,0,0,.22);
}

.collection-set-card-item-media {
  position: relative;
  width: 100%;
  aspect-ratio: 0.72;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.collection-set-card-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-set-owned-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 30px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(76, 217, 100, .92);
  color: #08130d;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.collection-set-card-item-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.collection-set-card-item-body strong {
  font-size: 13px;
  line-height: 1.25;
}

.collection-set-variant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.collection-set-variant-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(153,178,255,.14);
  background: rgba(255,255,255,.035);
  color: #9db1d6;
  font-size: 11px;
  font-weight: 700;
}

.collection-set-variant-pill small {
  color: #edf4ff;
  font-size: 10px;
  font-weight: 800;
}

.collection-set-variant-pill.is-owned {
  border-color: rgba(70, 211, 156, .26);
  background: rgba(70, 211, 156, .12);
  color: #79edbd;
}

.collection-set-card-item-actions {
  display: flex;
  justify-content: center;
}

.collection-set-card-item-actions .nav-btn,
.collection-set-card-item-actions .secondary {
  width: 100%;
  justify-content: center;
}

.collection-card-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

body.collection-card-overlay-open {
  overflow: hidden;
}

.collection-card-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 19, .58);
  backdrop-filter: blur(7px);
}

.collection-card-overlay-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(153,178,255,.14);
  background: linear-gradient(180deg, rgba(18,28,47,.98) 0%, rgba(10,16,27,.99) 100%);
  box-shadow: 0 36px 84px rgba(0,0,0,.45);
}

.collection-card-overlay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #f5f8ff;
  font-size: 24px;
  line-height: 0;
  cursor: pointer;
}

.collection-card-modal {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 22px;
}

.collection-card-modal-media {
  align-self: start;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(153,178,255,.14);
  background: rgba(255,255,255,.04);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collection-card-modal-media img {
  width: 100%;
  height: auto;
  display: block;
}

.collection-card-modal-placeholder {
  color: #92a4c4;
  padding: 24px;
  text-align: center;
}

.collection-card-modal-body {
  display: grid;
  gap: 16px;
}

.collection-card-modal-header {
  display: grid;
  gap: 6px;
}

.collection-card-modal-header h3 {
  margin: 0;
  font-size: 28px;
}

.collection-card-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.collection-card-variant-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(153,178,255,.14);
  background: rgba(255,255,255,.03);
  color: #d9e5fb;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.collection-card-variant-btn small {
  color: #8fa7ca;
  font-size: 11px;
  font-weight: 800;
}

.collection-card-variant-btn.is-active {
  border-color: rgba(124,156,255,.36);
  background: rgba(124,156,255,.16);
  color: #f5f8ff;
}

.collection-card-variant-btn.is-owned {
  box-shadow: inset 0 0 0 1px rgba(70, 211, 156, .18);
}

.collection-card-modal-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.collection-card-modal-kpi {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(255,255,255,.03);
}

.collection-card-modal-kpi span {
  color: #92a4c4;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.collection-card-modal-kpi strong {
  font-size: 20px;
}

.collection-card-modal-actions,
.collection-card-inline-actions,
.collection-card-inline-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.collection-card-inline-actions > button,
.collection-card-inline-actions > form,
.collection-card-inline-form-actions > button {
  flex: 1 1 0;
}

.collection-card-modal-actions > button,
.collection-card-modal-actions > form {
  flex: 1 1 0;
}

.collection-card-modal-actions > form {
  display: flex;
}

.collection-card-inline-actions > form {
  display: flex;
}

.collection-card-modal-actions > form > button,
.collection-card-modal-actions > button,
.collection-card-inline-actions > form > button,
.collection-card-inline-actions > button,
.collection-card-inline-form-actions > button {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  justify-content: center;
}

.collection-card-inline-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(153,178,255,.14);
  background: rgba(255,255,255,.035);
}

.collection-card-variant-note {
  color: #a8bad8;
  font-size: 13px;
  line-height: 1.45;
}

.collection-card-inline-panel form {
  margin: 0;
}

.collection-card-inline-form {
  display: grid;
  gap: 12px;
}

.collection-card-inline-form label {
  display: grid;
  gap: 6px;
  color: #d8e2ff;
  font-size: 14px;
}

.collection-card-inline-form input {
  width: 100%;
}

.collection-fullpage-shell {
  gap: 20px;
}

.collection-fullpage-head {
  align-items: center;
}

.collection-entry-list-wide {
  gap: 16px;
}

.collection-sell-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(255,255,255,.03);
}

.collection-sell-panel-form {
  display: grid;
  gap: 12px;
}

.collection-sell-panel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collection-flash-message {
  transition: opacity .28s ease, transform .28s ease;
}

.collection-flash-message.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
}

@media (max-width: 1280px) {
  .collection-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .collection-summary-card {
    max-width: none;
    justify-self: stretch;
  }

  .collection-sale-card {
    max-width: none;
  }

  .collection-dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .collection-dashboard-kpis,
  .collection-summary-tabs,
  .collection-sell-panel-grid {
    grid-template-columns: 1fr;
  }

  .collection-chart-toolbar,
  .collection-set-toolbar,
  .collection-set-detail-head,
  .collection-set-detail-title,
  .collection-card-modal {
    align-items: flex-start;
    flex-direction: column;
  }

  .collection-summary-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .collection-summary-line-values {
    align-items: flex-start;
  }

  .collection-card-modal-kpis {
    grid-template-columns: 1fr;
  }
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.catalog-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.catalog-shell {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(460px, .8fr);
  gap: 24px;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid rgba(153,178,255,.14);
  background:
    radial-gradient(circle at top right, rgba(124,156,255,.10), transparent 28%),
    linear-gradient(180deg, rgba(18,28,47,.94) 0%, rgba(11,18,31,.98) 100%);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.catalog-hero-head {
  align-items: flex-start;
  gap: 12px;
}

.catalog-hero-copy .muted {
  margin: 0;
  max-width: 860px;
  font-size: 15px;
  line-height: 1.7;
}

.catalog-summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.catalog-summary-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(255,255,255,.03);
}

.catalog-summary-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9bb8ef;
}

.catalog-summary-value {
  color: #f4f8ff;
  font-size: 22px;
  font-weight: 800;
}

.catalog-filter-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(153,178,255,.12);
  background: linear-gradient(180deg, rgba(18,26,42,.98) 0%, rgba(23,33,53,.98) 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}

.catalog-filter-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.catalog-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.catalog-filter-panel .status-banner {
  margin-bottom: 12px;
}

.catalog-price-slider-shell {
  display: grid;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(255,255,255,.03);
}

.catalog-price-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #cfdcff;
  font-size: 13px;
  font-weight: 700;
}

.catalog-price-slider-head strong {
  color: #91f0ca;
  font-size: 13px;
}

#filter-price-range {
  width: 100%;
  accent-color: #7ea6ff;
}

.catalog-filter-main input,
.catalog-filter-grid input,
.catalog-filter-grid select {
  min-height: 42px;
}

.catalog-bulk-panel {
  margin: 0;
}

.catalog-bulk-categories {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(9,15,27,.62);
}

.catalog-bulk-categories summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  color: #9dd0ff;
  font-size: 13px;
  font-weight: 800;
}

.catalog-bulk-categories summary::-webkit-details-marker {
  display: none;
}

.catalog-bulk-categories-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.catalog-table-wrap {
  padding-top: 2px;
  overflow-x: auto;
}

#catalog-table {
  border-collapse: separate;
  border-spacing: 0 12px;
  min-width: 980px;
}

#catalog-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0 10px 8px;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(12,17,29,.96) 0%, rgba(12,17,29,.72) 100%);
  backdrop-filter: blur(6px);
}

#catalog-table tbody td {
  padding: 18px 16px;
  border-top: 1px solid rgba(153,178,255,.10);
  border-bottom: 1px solid rgba(153,178,255,.10);
  background: rgba(255,255,255,.02);
}

#catalog-table tbody td:first-child {
  border-left: 1px solid rgba(153,178,255,.10);
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

#catalog-table tbody td:last-child {
  border-right: 1px solid rgba(153,178,255,.10);
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}

#catalog-table tbody tr.catalog-row:hover td {
  background: rgba(255,255,255,.04);
  border-color: rgba(153,178,255,.18);
}

.catalog-cell-product {
  min-width: 480px;
  width: 56%;
}

.catalog-product-layout {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.catalog-product-thumb {
  position: relative;
  width: 110px;
  height: 110px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(153,178,255,.12);
  background:
    radial-gradient(circle at top left, rgba(124,156,255,.18), transparent 55%),
    linear-gradient(180deg, rgba(21,31,49,.96) 0%, rgba(12,18,30,.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 12px 24px rgba(0,0,0,.18);
}

.catalog-product-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.catalog-product-thumb.is-fallback {
  display: grid;
  place-items: center;
}

.catalog-product-thumb.is-fallback span {
  color: #d9e5ff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .08em;
}

#catalog-table tbody tr.catalog-row:hover .catalog-product-thumb {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 30px rgba(0,0,0,.24);
}

.title-cell {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.title-row strong a {
  color: #f1f6ff;
  font-size: 15px;
  line-height: 1.45;
}

.catalog-key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-product-note {
  color: #aab9d8;
  font-size: 13px;
  line-height: 1.55;
}

.catalog-key-chip,
.catalog-flag-chip,
.catalog-category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.catalog-key-chip {
  border: 1px solid rgba(153,178,255,.14);
  background: rgba(255,255,255,.03);
  color: #b8c8ea;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.catalog-flag-chip {
  border: 1px solid rgba(255,180,84,.16);
  background: rgba(255,180,84,.10);
  color: #ffd18b;
}

.catalog-category-chip {
  border: 1px solid rgba(117, 226, 189, .18);
  background: rgba(71, 171, 136, .12);
  color: #9ff1cd;
}

.catalog-category-editor {
  margin-top: 4px;
}

.catalog-category-editor summary {
  list-style: none;
  cursor: pointer;
  color: #9dd0ff;
  font-size: 12px;
  font-weight: 700;
}

.catalog-category-editor summary::-webkit-details-marker {
  display: none;
}

.catalog-category-editor-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(10,16,28,.56);
}

.catalog-category-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 10px;
}

.catalog-category-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(153,178,255,.08);
  background: rgba(255,255,255,.03);
}

.catalog-category-checkbox input {
  margin: 0;
}

.catalog-category-editor-actions {
  display: flex;
  justify-content: flex-end;
}

#categories-page.page-section.active-page {
  grid-template-columns: 1fr;
}

.categories-shell {
  gap: 20px;
}

.categories-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.categories-overview-card,
.category-card {
  border-radius: 22px;
  border: 1px solid rgba(153,178,255,.12);
  background:
    radial-gradient(circle at top right, rgba(124,156,255,.10), transparent 34%),
    linear-gradient(180deg, rgba(18,28,47,.94) 0%, rgba(11,18,31,.98) 100%);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

.categories-overview-card {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
}

.categories-overview-label {
  color: #9bb8ef;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.categories-overview-value {
  color: #f5f9ff;
  font-size: 28px;
  line-height: 1;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-admin-create-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(220px, 1.4fr) auto;
  gap: 10px;
  align-items: end;
}

.category-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  justify-items: center;
  text-align: center;
}

.category-card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.category-card-head strong {
  color: #f4f8ff;
  font-size: 19px;
  line-height: 1.2;
}

.category-card-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.category-image-link {
  display: inline-flex;
  width: 200px;
  height: 200px;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
}

.category-card-image {
  display: block;
  width: 200px;
  height: 200px;
  min-height: 200px;
  border-radius: 18px;
  border: 1px solid rgba(153,178,255,.12);
  object-fit: cover;
  background: rgba(8,14,26,.42);
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
}

.category-card-image-placeholder {
  display: grid;
  place-items: center;
  width: 200px;
  height: 200px;
  padding: 18px;
  color: #dfe8fb;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .03em;
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(124,156,255,.24), transparent 50%),
    linear-gradient(180deg, rgba(26,38,61,.94) 0%, rgba(13,21,36,.98) 100%);
}

.category-image-upload-form {
  display: grid;
  gap: 10px;
  width: 100%;
}

.category-image-upload-label {
  display: grid;
  gap: 6px;
  color: #cfdcff;
  font-size: 12px;
  font-weight: 700;
}

.category-image-upload-label input[type="file"] {
  width: 100%;
}

.category-delete-form {
  width: 100%;
}

.category-delete-form .danger,
.category-image-upload-form .secondary {
  width: 100%;
}

.catalog-cell-price {
  min-width: 180px;
}

.catalog-price-main {
  color: #f4f8ff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .01em;
}

.catalog-price-note {
  margin-top: 6px;
  color: #9db2e7;
  font-size: 12px;
  line-height: 1.4;
}

.catalog-secondary-main {
  color: #eef4ff;
  font-size: 14px;
  line-height: 1.45;
}

.catalog-cell-stock,
.catalog-cell-changed {
  white-space: nowrap;
}

.catalog-offer-group {
  display: grid;
  gap: 10px;
}

.catalog-offer-group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(153,178,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.025) 100%);
}

.catalog-offer-group summary::-webkit-details-marker {
  display: none;
}

.catalog-offer-summary {
  display: grid;
  gap: 4px;
}

.catalog-offer-summary strong {
  color: #f3f7ff;
  font-size: 13px;
}

.catalog-offer-summary span,
.catalog-offer-summary-hint {
  color: var(--muted);
  font-size: 12px;
}

.catalog-offer-group[open] .catalog-offer-summary-hint {
  color: #b7c8ff;
}

.offers {
  display: grid;
  gap: 10px;
}

.offer-line {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid rgba(153,178,255,.10);
  background: rgba(8,14,26,.44);
}

.offer-line-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.offer-line-head a {
  color: #eef4ff;
  font-weight: 700;
}

.offer-line-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-offer-empty {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(153,178,255,.12);
  background: rgba(255,255,255,.02);
}

.catalog-empty-row td {
  padding: 22px 16px !important;
  border: 1px dashed rgba(153,178,255,.16) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.02) !important;
  text-align: center;
}

@media (max-width: 1380px) {
  .catalog-hero {
    grid-template-columns: 1fr;
  }

  .catalog-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-product-layout {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .catalog-product-thumb {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 980px) {
  .catalog-summary-list,
  .catalog-filter-grid {
    grid-template-columns: 1fr;
  }

  .catalog-filter-main {
    grid-template-columns: 1fr;
  }

  #catalog-table {
    min-width: 1120px;
  }

  .catalog-shell {
    padding: 20px;
  }

  .catalog-product-layout {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
  }

  .catalog-product-thumb {
    width: 82px;
    height: 82px;
  }
}
.favorite-inline-form {
  margin: 0;
}
.favorite-btn {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--warn) !important;
  padding: 4px 8px !important;
  border-radius: 10px !important;
  font-size: 18px;
  line-height: 1;
}
.favorite-btn.active {
  background: rgba(255, 180, 84, .12) !important;
  border-color: var(--warn) !important;
}
.catalog-blacklist-btn {
  background: transparent !important;
  border: 1px solid rgba(242,109,125,.28) !important;
  color: #ff9eab !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.catalog-blacklist-btn:hover {
  border-color: rgba(242,109,125,.48) !important;
  background: rgba(242,109,125,.10) !important;
}
.catalog-watch-store-form {
  margin: 0;
}
.catalog-watch-store-btn {
  background: transparent !important;
  border: 1px solid rgba(124,156,255,.32) !important;
  color: #9db8ff !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.catalog-watch-store-btn:hover {
  border-color: rgba(124,156,255,.55) !important;
  background: rgba(124,156,255,.10) !important;
}
.catalog-watch-store-btn.active {
  background: rgba(124,156,255,.16) !important;
  border-color: rgba(124,156,255,.6) !important;
  color: #cdd9ff !important;
}
.catalog-store-pickup {
  margin: 6px 0 2px;
}
.catalog-store-pickup > summary {
  cursor: pointer;
  color: #9db8ff;
  font-size: 12px;
  font-weight: 700;
}
.catalog-store-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.catalog-store-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px 10px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.catalog-store-list li:last-child { border-bottom: none; }
.kj-dept {
  display: inline-block;
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  color: #cdd9ff;
  background: rgba(124,156,255,.12);
  border: 1px solid rgba(124,156,255,.3);
  border-radius: 6px;
  padding: 1px 4px;
}
.kj-etat {
  margin-left: auto;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.kj-etat.en_stock { color: #7ee0a0; border: 1px solid rgba(126,224,160,.4); }
.kj-etat.limite { color: #ffd479; border: 1px solid rgba(255,212,121,.4); }
.title-row > .favorite-btn:not(.favorite-toggle-trigger) {
  display: none !important;
}
.run-progress-card {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(124,156,255,.28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(31,47,79,.92) 0%, rgba(23,33,53,.96) 100%);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.run-progress-card-auto {
  border-color: rgba(90,209,164,.24);
  background: linear-gradient(180deg, rgba(21,55,53,.92) 0%, rgba(16,36,40,.96) 100%);
}
.run-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.run-progress-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.run-progress-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.run-progress-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  background: rgba(255,255,255,.04) !important;
  color: var(--text) !important;
  font-size: 18px;
  line-height: 1;
}
.run-progress-close:hover {
  background: rgba(242,109,125,.14) !important;
  border-color: rgba(242,109,125,.34) !important;
  color: #ffd7dc !important;
}
.run-progress-close:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(90,209,164,.14);
  border: 1px solid rgba(90,209,164,.24);
  color: #8ef0c7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.live-indicator::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #5ad1a4;
  box-shadow: 0 0 0 0 rgba(90,209,164,.65);
  animation: livePulse 1.5s ease-out infinite;
}
@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(90,209,164,.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(90,209,164,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(90,209,164,0);
  }
}
.run-progress-bar {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 10px;
}
.run-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c9cff 0%, #5ad1a4 100%);
  transition: width .25s ease;
}
.run-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.run-progress-source {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(124,156,255,.18);
  background: rgba(10,16,29,.56);
}
.run-progress-source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.run-progress-source-name {
  min-width: 0;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.run-progress-source-percent {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.run-progress-source .run-progress-bar {
  height: 8px;
  margin-bottom: 8px;
}
.run-progress-source-term {
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.run-progress-source-idle {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  color: var(--muted);
}
.run-progress-source-idle .run-progress-source-term {
  min-height: 0;
  text-align: center;
}
@media (max-width: 1100px) {
  .run-progress-grid {
    grid-template-columns: 1fr;
  }
}

.brand-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.brand-link:hover {
  text-decoration: none;
}

.status-banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}

.status-success {
  border-color: rgba(90,209,164,.32);
  background: rgba(90,209,164,.10);
}

.status-error {
  border-color: rgba(242,109,125,.32);
  background: rgba(242,109,125,.12);
}

.webhook-form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.webhook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.webhook-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.graph-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.activation-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.activation-card {
  width: min(560px, 100%);
}

.activation-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.auth-card {
  width: min(1120px, 100%);
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.auth-panel h2 {
  margin: 0;
}

.auth-help-list {
  margin-top: 16px;
}

.module-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.08);
}

.module-switch:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.module-switch-ebay {
  background: linear-gradient(180deg, #111111 0%, #050505 100%);
  color: #f5c94a;
  border: 1px solid rgba(245,201,74,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 10px 22px rgba(0,0,0,.28);
}

.module-switch-ebay:hover {
  color: #ffe28d;
  background: linear-gradient(180deg, #151515 0%, #080808 100%);
  filter: none;
}

.module-kicker {
  margin-bottom: 6px;
  color: var(--warn);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.module-grid {
  display: block;
  padding: 28px 32px 36px;
}

.module-page {
  display: grid !important;
  grid-template-columns: 1fr !important;
  max-width: 1200px;
  margin: 0 auto;
}

.module-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.ebay-shell {
  max-width: 1560px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.ebay-topbar {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

body.ebay-body .topbar {
  background: rgba(7,7,7,.92);
  border-bottom: 1px solid rgba(245,201,74,.22);
  box-shadow: inset 0 -1px 0 rgba(245,201,74,.08);
}

.ebay-topbar-left {
  min-width: 0;
}

.ebay-topbar-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.ebay-topbar-center .module-kicker {
  margin-bottom: 0;
}

.ebay-topbar-right {
  justify-content: flex-end;
}

.ebay-topnav {
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.ebay-topnav-compact {
  max-width: 560px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.ebay-body .module-kicker {
  color: #f5c94a;
}

.ebay-tab {
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(245,201,74,.16);
  background: linear-gradient(180deg, rgba(20,20,20,.96) 0%, rgba(10,10,10,.96) 100%);
  color: #e8ddae;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.ebay-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(245,201,74,.34);
  background: linear-gradient(180deg, rgba(28,28,28,.98) 0%, rgba(14,14,14,.98) 100%);
  color: #ffeb9b;
}

.ebay-tab.active {
  background: linear-gradient(180deg, #f5c94a 0%, #d8aa23 100%);
  color: #15120a;
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 10px 24px rgba(245,201,74,.20);
}

.ebay-locked-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.ebay-locked-fieldset[disabled] {
  opacity: .58;
  filter: saturate(.72);
}

.ebay-panel {
  display: none;
  width: 100%;
  border-radius: 24px;
}

.ebay-panel.active {
  display: block;
}

.ebay-search-panel {
  background:
    radial-gradient(circle at top right, rgba(245,201,74,.10), transparent 18%),
    linear-gradient(180deg, rgba(16,16,16,.98) 0%, rgba(10,10,10,1) 100%);
}

.ebay-search-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.ebay-search-head h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.05;
}

.ebay-search-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  color: #f5c94a;
  font-weight: 800;
  letter-spacing: .01em;
}

.ebay-search-meta {
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  text-align: right;
}

.ebay-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ebay-form-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ebay-inline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
}

.ebay-field-card {
  min-height: 100%;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20,20,20,.98) 0%, rgba(12,12,12,.98) 100%);
  border: 1px solid rgba(245,201,74,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.ebay-field-card h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.ebay-field-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.ebay-field-card label:last-of-type {
  margin-bottom: 0;
}

.ebay-field-card span {
  font-weight: 700;
  color: #f8efc9;
}

.ebay-search-actions {
  justify-content: flex-end;
  margin-top: 2px;
}

.ebay-history-head {
  align-items: flex-start;
  gap: 18px;
}

.ebay-history-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.ebay-history-head h3 {
  margin: 0;
  line-height: 1.3;
}

.ebay-history-thumb-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  border-radius: 16px;
  overflow: hidden;
  align-self: flex-start;
  border: 1px solid rgba(245,201,74,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.01) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ebay-history-thumb-link:hover {
  transform: translateY(-1px);
  border-color: rgba(245,201,74,.34);
  box-shadow: 0 10px 22px rgba(0,0,0,.24);
  text-decoration: none;
}

.ebay-history-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.ebay-body .card {
  box-shadow: 0 14px 34px rgba(0,0,0,.32);
}

body.ebay-body input,
body.ebay-body textarea,
body.ebay-body select {
  background: #0b0b0b;
  border: 1px solid rgba(245,201,74,.14);
  color: #f7f0d5;
}

body.ebay-body .muted {
  color: #c9b675;
}

body.ebay-body .status-banner {
  border-color: rgba(245,201,74,.24);
  background: rgba(245,201,74,.08);
}

body.ebay-body .status-success {
  border-color: rgba(245,201,74,.30);
  background: rgba(245,201,74,.10);
}

body.ebay-body .badge.idle,
body.ebay-body .badge.unknown,
body.ebay-body .badge.empty {
  background: rgba(245,201,74,.14);
  color: #ffd976;
}

body.ebay-body .badge.ok,
body.ebay-body .badge.success,
body.ebay-body .badge.in_stock {
  background: rgba(245,201,74,.20);
  color: #fff1b6;
}

body.ebay-body .module-switch {
  background: linear-gradient(180deg, #a8bcff 0%, #8fa6ee 100%);
  color: #0f1522;
  border: 1px solid rgba(188,205,255,.26);
  box-shadow: 0 10px 24px rgba(143,166,238,.22);
}

body.ebay-body .module-switch:hover {
  filter: none;
  background: linear-gradient(180deg, #b8c9ff 0%, #9db3f3 100%);
}

@media (max-width: 1180px) {
  .ebay-topbar {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ebay-topbar-center,
  .ebay-topbar-right {
    align-items: stretch;
  }

  .ebay-topnav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ebay-form-grid,
  .ebay-form-grid-compact {
    grid-template-columns: 1fr;
  }

  .ebay-search-head {
    flex-direction: column;
  }

  .ebay-search-meta {
    min-width: 0;
    align-items: flex-start;
    text-align: left;
  }

  .ebay-inline-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .module-grid {
    padding: 18px 14px 26px;
  }

  .ebay-topnav {
    grid-template-columns: 1fr;
  }

  .ebay-history-head {
    gap: 14px;
  }

  .ebay-history-thumb-link {
    width: 74px;
    height: 74px;
    flex-basis: 74px;
  }
}

body:not(.ebay-body) {
  --bg: #0b1018;
  --panel: #121826;
  --panel-2: #192233;
  --border: #2a3448;
  --text: #eef2fb;
  --muted: #99a4bb;
  --primary: #99b2ff;
  --danger: #ff8c82;
  --success: #8fd0b8;
  --warn: #d8b16a;
  font-family: "Segoe UI Variable Text", "Aptos", "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(153,178,255,.10), transparent 22%),
    radial-gradient(circle at top center, rgba(216,177,106,.06), transparent 18%),
    linear-gradient(180deg, #0b1018 0%, #0d1320 45%, #101826 100%);
}

body:not(.ebay-body) .topbar {
  background:
    linear-gradient(90deg, rgba(11,16,24,.96) 0%, rgba(15,22,34,.96) 55%, rgba(18,26,40,.96) 100%);
  border-bottom: 1px solid rgba(153,178,255,.10);
  box-shadow: 0 14px 32px rgba(0,0,0,.26), inset 0 -1px 0 rgba(255,255,255,.025);
}

body:not(.ebay-body) .topbar h1 {
  font-family: "Segoe UI Variable Display", "Aptos Display", "Inter", sans-serif;
  font-size: 31px;
  letter-spacing: .01em;
}

body:not(.ebay-body) .topbar p {
  color: #98a6c0;
}

body:not(.ebay-body) .brand-link h1 {
  background: linear-gradient(90deg, #f8fbff 0%, #d9e5ff 58%, #b7c9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body:not(.ebay-body) .card {
  border-radius: 24px;
  border: 1px solid rgba(82,97,128,.26);
  background:
    radial-gradient(circle at top right, rgba(153,178,255,.06), transparent 18%),
    linear-gradient(180deg, rgba(18,24,38,.98) 0%, rgba(25,34,51,.98) 100%);
  box-shadow: 0 16px 38px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.025);
}

body:not(.ebay-body) .section-head h2 {
  font-family: "Segoe UI Variable Display", "Aptos Display", "Inter", sans-serif;
  font-size: 20px;
  letter-spacing: .01em;
}

body:not(.ebay-body) .page-nav {
  width: 100%;
  max-width: 1060px;
  display: grid;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
}

body:not(.ebay-body) .page-nav-primary,
body:not(.ebay-body) .page-nav-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

body:not(.ebay-body) .page-nav-primary {
  display: inline-flex;
  flex-wrap: wrap;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  padding: 5px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top center, rgba(143,166,238,.10), transparent 64%),
    linear-gradient(180deg, rgba(22,30,47,.94) 0%, rgba(15,21,33,.96) 100%);
  border: 1px solid rgba(153,178,255,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
}

body:not(.ebay-body) .page-nav-secondary {
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 6px;
}

body:not(.ebay-body) .page-nav-primary .nav-btn,
body:not(.ebay-body) .page-nav-secondary .nav-btn,
body:not(.ebay-body) .page-nav .nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(110,124,156,.16);
  background: rgba(29,38,58,.62);
  color: #dce4f7;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

body:not(.ebay-body) .page-nav-primary .nav-btn {
  min-width: 148px;
  min-height: 44px;
  border-radius: 14px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(31,41,61,.90) 0%, rgba(24,31,47,.92) 100%);
  border-color: rgba(153,178,255,.12);
  font-size: 13px;
  letter-spacing: .01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

body:not(.ebay-body) .page-nav-secondary .nav-btn {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(19,27,41,.54);
  color: #afbddb;
}

body:not(.ebay-body) .page-nav-primary .nav-btn .nav-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  font-size: 14px;
  line-height: 1;
}

body:not(.ebay-body) .page-nav .nav-btn:hover {
  transform: translateY(-1px);
  background: rgba(39,50,75,.88);
  border-color: rgba(153,178,255,.22);
  color: #f5f8ff;
  text-decoration: none;
}

body:not(.ebay-body) .page-nav-primary .nav-btn.active {
  background: linear-gradient(180deg, rgba(142,167,241,.40) 0%, rgba(111,136,219,.38) 100%);
  color: #f7fbff;
  border-color: rgba(171,194,255,.28);
  box-shadow: 0 8px 18px rgba(103,128,214,.18);
}

body:not(.ebay-body) .page-nav-secondary .nav-btn.active {
  background: rgba(143,166,238,.16);
  color: #f5f8ff;
  border-color: rgba(153,178,255,.18);
  box-shadow: none;
}

body:not(.ebay-body) .filters-bar,
body:not(.ebay-body) .bulk-actions,
body:not(.ebay-body) #sources-page .bulk-actions,
body:not(.ebay-body) #catalog-page .filters-bar,
body:not(.ebay-body) #catalog-page .bulk-actions {
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(16,22,34,.96) 0%, rgba(21,29,44,.98) 100%) !important;
  border: 1px solid rgba(153,178,255,.10) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

body:not(.ebay-body) input,
body:not(.ebay-body) textarea,
body:not(.ebay-body) select {
  background: #0d1320;
  border: 1px solid rgba(110,124,156,.18);
  color: #eff3ff;
  border-radius: 14px;
}

body:not(.ebay-body) input:focus,
body:not(.ebay-body) textarea:focus,
body:not(.ebay-body) select:focus {
  outline: none;
  border-color: rgba(153,178,255,.44);
  box-shadow: 0 0 0 3px rgba(153,178,255,.12);
}

body:not(.ebay-body) .muted {
  color: #99a4bb;
}

body:not(.ebay-body) .badge {
  border: 1px solid rgba(255,255,255,.04);
}

body:not(.ebay-body) .badge.ok,
body:not(.ebay-body) .badge.in_stock,
body:not(.ebay-body) .badge.success {
  background: rgba(143,208,184,.15);
  color: #ccf7e6;
}

body:not(.ebay-body) .badge.error,
body:not(.ebay-body) .badge.blocked,
body:not(.ebay-body) .badge.out_of_stock {
  background: rgba(255,140,130,.14);
  color: #ffd0cb;
}

body:not(.ebay-body) .badge.empty,
body:not(.ebay-body) .badge.unknown,
body:not(.ebay-body) .badge.idle {
  background: rgba(216,177,106,.14);
  color: #f2d8a6;
}

body:not(.ebay-body) .favorite-history-card,
body:not(.ebay-body) .feed-item,
body:not(.ebay-body) .pill {
  background: rgba(255,255,255,.022);
  border-color: rgba(110,124,156,.18);
}

body:not(.ebay-body) .favorite-history-chart {
  border-color: rgba(110,124,156,.18);
  background:
    linear-gradient(180deg, rgba(153,178,255,.10) 0%, rgba(153,178,255,0) 100%),
    #0d1320;
}

body:not(.ebay-body) table tr:hover td {
  background: rgba(153,178,255,.035);
}

body:not(.ebay-body) .run-progress-card {
  border-color: rgba(153,178,255,.20);
  background: linear-gradient(180deg, rgba(19,27,42,.96) 0%, rgba(24,34,52,.98) 100%);
}

body:not(.ebay-body) .run-progress-bar span {
  background: linear-gradient(90deg, #9db5ff 0%, #8fd0b8 100%);
}

body:not(.ebay-body) .status-banner {
  border-color: rgba(153,178,255,.12);
  background: rgba(255,255,255,.03);
}

body:not(.ebay-body) .status-success {
  border-color: rgba(143,208,184,.22);
  background: rgba(143,208,184,.09);
}

.topbar-shell {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.topbar-center-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

body:not(.ebay-body) .topbar-center-shell .module-kicker {
  color: #f5f8ff;
}

.topbar-shell .page-nav,
.topbar-shell .nav-btn,
.topbar-shell .topbar-actions {
  position: static;
}

.brand-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  min-width: 0;
}

.brand-panel-compact {
  gap: 8px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo {
  width: 18px;
  max-width: 100%;
  height: auto;
  display: block;
}

.brand-logo-header {
  width: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
  height: auto !important;
  max-height: 72px !important;
  object-fit: contain;
  transform: scale(2);
  transform-origin: left center;
}

.brand-mark-header {
  padding: 0 !important;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
}

.activation-brand-mark .brand-logo {
  width: 96px;
}

.auth-shell .activation-brand-mark .brand-logo {
  width: 288px;
  max-width: min(288px, 78vw);
  height: auto;
}

.brand-copy {
  min-width: 0;
}

.brand-kicker {
  margin-bottom: 6px;
  color: var(--warn);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-subline {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.app-topbar-actions,
.ebay-topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.notification-shell {
  position: relative;
}

.cart-shell {
  position: relative;
}

.notification-bell-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-panel-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.notification-bell-icon {
  font-size: 16px;
  line-height: 1;
}

.cart-panel-label {
  white-space: nowrap;
}

.notification-bell-label {
  white-space: nowrap;
}

.notification-bell-badge {
  min-width: 20px;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffcc6f 0%, #e6a93c 100%);
  color: #17120a;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.cart-panel-badge {
  min-width: 20px;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(88, 128, 228, .96) 0%, rgba(57, 93, 182, .98) 100%);
  color: #f5f8ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.notification-center-panel {
  position: fixed;
  top: 84px;
  right: 12px;
  width: min(420px, calc(100vw - 24px));
  display: grid;
  gap: 14px;
  padding: 18px;
  z-index: 140;
  box-shadow: 0 26px 56px rgba(5, 10, 20, .52);
}

.cart-panel {
  position: fixed;
  top: 84px;
  right: 12px;
  width: min(420px, calc(100vw - 24px));
  display: grid;
  gap: 14px;
  padding: 18px;
  z-index: 140;
  box-shadow: 0 26px 56px rgba(5, 10, 20, .52);
}

.notification-center-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notification-center-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.cart-panel-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.notification-center-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.notification-center-toggle input {
  width: auto;
  margin-top: 2px;
}

.notification-center-toolbar {
  justify-content: flex-start;
}

.notification-center-list {
  display: grid;
  gap: 12px;
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

.cart-panel-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

.notification-center-item {
  display: grid;
  gap: 10px;
}

.cart-panel-item {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(255,255,255,.03);
}

.notification-center-item.notification-unread {
  border-color: rgba(245,201,74,.30);
  box-shadow: inset 0 0 0 1px rgba(245,201,74,.08);
}

.notification-center-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cart-panel-item-head,
.store-side-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notification-center-item-title {
  color: #eef4ff;
  font-size: 14px;
  font-weight: 700;
}

.cart-panel-item strong,
.store-side-item strong {
  display: block;
  margin: 0;
}

.notification-center-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
}

.notification-center-actions {
  justify-content: flex-start;
}

.notification-center-actions .nav-btn {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
}

.cart-panel-actions .nav-btn {
  width: 100%;
}

.notification-center-empty {
  padding: 10px 0 4px;
}

.cart-remove-btn {
  min-width: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(242,109,125,.20);
  background: linear-gradient(180deg, rgba(33,24,29,.96) 0%, rgba(22,16,19,.98) 100%);
  color: #f2b7c0;
  box-shadow: none;
}

.cart-remove-btn:hover {
  border-color: rgba(242,109,125,.34);
  background: linear-gradient(180deg, rgba(47,28,36,.98) 0%, rgba(27,17,22,.99) 100%);
  color: #ffd5dc;
}

.cart-item-remove-form {
  margin: 0;
}

.profile-launcher {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.profile-launcher-link {
  text-decoration: none;
}

.profile-store-cta {
  margin-top: 12px;
}

.checkout-summary-card {
  gap: 18px;
}

.checkout-summary-cta {
  margin-top: 20px;
  padding-top: 8px;
}

.store-launcher {
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, #ffcc6f 0%, #e6a93c 100%) !important;
  color: #17120a !important;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(230,169,60,.18);
}

.store-launcher:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffd986 0%, #efb34a 100%) !important;
  color: #100d08 !important;
  text-decoration: none;
}

body:not(.ebay-body) .store-launcher {
  border: 1px solid rgba(153,178,255,.20);
  background: linear-gradient(180deg, rgba(35,45,68,.98) 0%, rgba(22,30,46,.98) 100%) !important;
  color: #dfe8ff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 10px 22px rgba(0,0,0,.22);
}

body:not(.ebay-body) .store-launcher:hover {
  background: linear-gradient(180deg, rgba(45,57,84,.98) 0%, rgba(28,37,58,.98) 100%) !important;
  color: #f6f9ff !important;
  border-color: rgba(153,178,255,.28);
}

.profile-avatar-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-block;
}

.profile-avatar-head,
.profile-avatar-body {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
}

.profile-avatar-head {
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.profile-avatar-body {
  bottom: 0;
  width: 14px;
  height: 8px;
  border-radius: 10px 10px 7px 7px;
}

.profile-shell-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-shell {
  display: grid;
  gap: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.profile-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 20px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(153,178,255,.14);
  background:
    radial-gradient(circle at top right, rgba(245,201,74,.10), transparent 28%),
    linear-gradient(180deg, rgba(18,28,47,.96) 0%, rgba(11,18,31,.98) 100%);
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}

.profile-hero-head {
  align-items: flex-start;
  gap: 12px;
}

.profile-hero-copy .muted {
  margin: 0;
  max-width: 760px;
}

.profile-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-kpi {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(255,255,255,.03);
}

.profile-kpi-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9bb8ef;
}

.profile-kpi-value {
  color: #f4f8ff;
  font-size: 16px;
  font-weight: 800;
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.profile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.profile-order-count-badge {
  margin-top: -2px;
  align-self: flex-start;
}

.profile-card-head p {
  margin: 8px 0 0;
}

.profile-detail-list {
  display: grid;
  gap: 12px;
}

.profile-detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(255,255,255,.03);
}

.profile-detail-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-detail-row strong {
  color: #eef4ff;
  font-size: 14px;
  line-height: 1.45;
  text-align: right;
}

.profile-order-summary {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.profile-license-card {
  border-color: rgba(245,201,74,.16);
  background:
    radial-gradient(circle at top right, rgba(245,201,74,.08), transparent 28%),
    linear-gradient(180deg, rgba(23,22,20,.98) 0%, rgba(11,11,10,.99) 100%);
}

.profile-license-form {
  display: grid;
  gap: 14px;
}

.profile-license-form label {
  display: grid;
  gap: 8px;
}

.profile-license-actions {
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-shell-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.profile-shell-footer form {
  margin: 0;
}

.profile-logout-btn {
  min-width: 180px;
  border: 1px solid rgba(255,140,130,.26);
  background: linear-gradient(180deg, rgba(45,25,31,.96) 0%, rgba(29,17,22,.98) 100%);
  color: #ffe5e1;
  padding-inline: 18px;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(5, 10, 20, .18);
}

.profile-inline-note {
  margin: 0;
  color: #c9d8f7;
  font-size: 13px;
  line-height: 1.55;
}

#profile-page.active-page {
  display: block;
  max-width: 1320px;
  margin: 0 auto 22px;
}

#profile-page.active-page > .card {
  max-width: 1320px;
  margin: 0 auto;
}

#store-page.active-page {
  display: block;
  max-width: 1620px;
  margin: 0 auto 22px;
}

#store-page.active-page > .store-layout {
  max-width: 1620px;
  margin: 0 auto;
}

#cart-page.active-page,
#checkout-page.active-page {
  display: block;
  max-width: 1120px;
  margin: 0 auto 22px;
}

#cart-page.active-page > .card,
#checkout-page.active-page > .card {
  max-width: 1120px;
  margin: 0 auto;
}

.profile-card,
.store-card,
.store-overview-card {
  gap: 14px;
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.store-layout > .section-stack {
  margin-bottom: 0;
}

.store-shell {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.store-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(153,178,255,.14);
  background: linear-gradient(180deg, rgba(18,28,47,.94) 0%, rgba(11,18,31,.98) 100%);
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}

.store-hero-head {
  align-items: flex-start;
  gap: 12px;
}

.store-hero-copy .muted {
  margin: 0;
  max-width: 760px;
}

.store-hero-side {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(153,178,255,.14);
  background:
    radial-gradient(circle at top right, rgba(245,201,74,.12), transparent 34%),
    linear-gradient(180deg, rgba(26,34,52,.96) 0%, rgba(17,24,37,.96) 100%);
}

.store-side-panel {
  grid-column: 3;
  gap: 16px;
  position: sticky;
  top: 88px;
  align-self: start;
}

.store-package-shell {
  display: grid;
  gap: 20px;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.store-package-shell + .store-package-shell {
  margin-top: 0;
}

.store-package-shell-pm {
  border: 1px solid rgba(98,143,255,.22);
  background:
    radial-gradient(circle at top right, rgba(95,146,255,.10), transparent 28%),
    linear-gradient(180deg, rgba(19,31,56,.96) 0%, rgba(11,20,39,.98) 100%);
}

.store-package-shell-ebay {
  border: 1px solid rgba(245,201,74,.18);
  background:
    radial-gradient(circle at top right, rgba(245,201,74,.10), transparent 26%),
    linear-gradient(180deg, rgba(26,24,18,.92) 0%, rgba(18,18,16,.96) 100%);
}

.store-package-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.store-package-head h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.store-package-head .muted {
  margin: 0;
}

.store-package-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.store-grid {
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 6px;
}

.store-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px;
  border-radius: 24px;
}

.store-card-featured {
  transform: translateY(-2px);
}

.store-card-cta {
  margin-top: auto;
  padding-top: 4px;
}

.store-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.store-card-head h3,
.profile-card h3 {
  margin: 0;
}

.store-card-head h3 {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
}

.store-card-head .badge {
  min-height: 34px;
  padding-inline: 12px;
}

.store-card > .muted {
  margin: 0;
  color: #b7c8ef;
  font-size: 13px;
  line-height: 1.45;
}

.store-card-subtitle {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.store-card-highlight {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}

.store-bullet-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
  color: #dce7ff;
  font-size: 14px;
  line-height: 1.5;
}

.store-package-shell-pm .store-package-tag {
  border: 1px solid rgba(119,168,255,.22);
  background: rgba(78,119,215,.26);
  color: #f4f8ff;
}

.store-package-shell-pm .store-package-head h3,
.store-package-shell-pm .store-package-head .muted,
.store-package-shell-pm .store-card-head .badge.ok,
.store-package-shell-pm .store-card-subtitle,
.store-package-shell-pm .store-price span {
  color: #eef4ff;
}

.store-package-shell-pm .store-card {
  border: 1px solid rgba(110,156,255,.18);
  background: linear-gradient(180deg, rgba(34,50,86,.96) 0%, rgba(18,29,52,.98) 100%);
}

.store-package-shell-pm .store-card-featured {
  border-color: rgba(132,178,255,.34);
  box-shadow: 0 18px 36px rgba(64,111,212,.16);
}

.store-package-shell-pm .store-card-head h3 {
  border: 1px solid rgba(132,178,255,.28);
  background: rgba(78,119,215,.28);
  color: #ffffff;
}

.store-package-shell-pm .store-card-head .badge.ok {
  background: rgba(78,119,215,.24);
}

.store-package-shell-pm .store-card-highlight {
  background: rgba(78,119,215,.22);
  color: #f4f8ff;
}

.store-package-shell-pm .store-price,
.store-package-shell-pm .store-bullet-list {
  color: #f4f8ff;
}

.store-package-shell-pm .store-bullet-list li::marker {
  color: #9bc1ff;
}

.store-package-shell-ebay .store-package-tag {
  border: 1px solid rgba(245,201,74,.22);
  background: rgba(245,201,74,.10);
  color: #f7df8c;
}

.store-package-shell-ebay .store-package-head h3,
.store-package-shell-ebay .store-package-head .muted,
.store-package-shell-ebay .store-card-subtitle,
.store-package-shell-ebay .store-price span {
  color: #f3f1eb;
}

.store-package-shell-ebay .store-card {
  border: 1px solid rgba(245,201,74,.14);
  background: linear-gradient(180deg, rgba(23,22,20,.98) 0%, rgba(11,11,10,.99) 100%);
}

.store-package-shell-ebay .store-card-featured {
  border-color: rgba(245,201,74,.28);
  box-shadow: 0 18px 36px rgba(245,201,74,.10);
}

.store-package-shell-ebay .store-card-head h3 {
  border: 1px solid rgba(245,201,74,.22);
  background: linear-gradient(180deg, rgba(42,34,11,.92) 0%, rgba(24,20,8,.98) 100%);
  color: #f7df8c;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.store-package-shell-ebay .store-card-head .badge.ok {
  background: linear-gradient(180deg, rgba(44,36,12,.94) 0%, rgba(22,19,8,.98) 100%);
  color: #f7df8c;
  border-color: rgba(245,201,74,.22);
}

.store-package-shell-ebay .store-card-highlight {
  background: linear-gradient(180deg, rgba(42,34,11,.94) 0%, rgba(22,19,8,.98) 100%);
  color: #f7df8c;
  border: 1px solid rgba(245,201,74,.18);
}

.store-package-shell-ebay .store-price,
.store-package-shell-ebay .store-bullet-list {
  color: #f7f3ea;
}

.store-package-shell-ebay .store-bullet-list li::marker {
  color: #f5d980;
}

.store-package-shell-ebay .store-buy-btn {
  background: linear-gradient(180deg, #171717 0%, #080808 100%);
  color: #f5c94a;
  border: 1px solid rgba(245,201,74,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 10px 22px rgba(0,0,0,.28);
}

.store-package-shell-ebay .store-buy-btn:hover {
  background: linear-gradient(180deg, #1c1c1c 0%, #0b0b0b 100%);
  color: #ffe28d;
}

.store-side-bullets {
  gap: 8px;
}

.store-side-items {
  display: grid;
  gap: 10px;
}

.store-side-item {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(255,255,255,.03);
}

.store-side-actions {
  margin-top: auto;
}

.store-side-actions .nav-btn {
  width: 100%;
}

.store-price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--text);
}

.store-price span {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}

.store-price-note {
  margin-top: -2px;
  color: #c9d7fb;
  font-size: 14px;
  line-height: 1.45;
}

.store-meta-list {
  display: grid;
  gap: 10px;
}

.store-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(153,178,255,.12);
  background: rgba(255,255,255,.03);
  font-size: 13px;
}

.store-meta-row span {
  color: var(--muted);
}

.store-meta-row strong {
  color: #eef3ff;
  font-size: 13px;
  text-align: right;
}

.store-buy-btn {
  width: 100%;
}

.store-note-banner {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(153,178,255,.18);
  background: rgba(21,27,41,.82);
  color: #dce7ff;
  line-height: 1.5;
}

.store-shell > .status-banner,
.store-shell > .store-note-banner {
  grid-column: 1 / -1;
}

.cart-line-pill {
  align-items: center;
}

.cart-line-pill strong {
  display: block;
  margin-bottom: 4px;
}

.activation-brand-panel {
  justify-content: center;
  margin-bottom: 18px;
}

.auth-shell .activation-brand-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

body:not(.ebay-body) .brand-logo {
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}

body:not(.ebay-body) .brand-mark {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body:not(.ebay-body) .profile-launcher {
  background: linear-gradient(180deg, rgba(18,24,38,.98) 0%, rgba(24,34,52,.98) 100%);
  color: #eef3ff;
}

body:not(.ebay-body) .store-launcher {
  border-color: rgba(255,214,138,.26) !important;
}

body.ebay-body .brand-mark {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.ebay-body .profile-launcher {
  background: linear-gradient(180deg, rgba(20,20,20,.96) 0%, rgba(10,10,10,.96) 100%);
  border-color: rgba(245,201,74,.16);
  color: #f6e7a8;
}

body.ebay-body .profile-launcher:hover {
  border-color: rgba(245,201,74,.34);
  color: #ffefb4;
}

body.ebay-body .store-launcher {
  border-color: rgba(255,214,138,.24) !important;
  box-shadow: 0 10px 24px rgba(230,169,60,.16);
}

@media (max-width: 1180px) {
  .topbar-shell {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .topbar-center-shell {
    justify-content: stretch;
  }

  .topbar-shell .page-nav {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-topbar-actions {
    justify-content: center;
  }

  .profile-shell-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero-card,
  .profile-detail-grid {
    grid-template-columns: 1fr;
  }

  .profile-kpi-grid {
    grid-template-columns: 1fr;
  }

  .store-layout,
  .store-shell {
    grid-template-columns: 1fr;
  }

  .store-side-panel {
    grid-column: auto;
    position: static;
  }

  .store-shell {
    grid-column: auto;
  }

  .store-package-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .store-package-shell {
    padding: 18px;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body:not(.ebay-body) .page-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-admin-create-form {
    grid-template-columns: 1fr;
  }

  .category-image-link,
  .category-card-image,
  .category-card-image-placeholder {
    width: 120px;
    height: 120px;
    min-height: 120px;
  }

  .category-card-image-placeholder {
    padding: 12px;
    font-size: 14px;
  }

  .brand-panel,
  .brand-panel-compact {
    align-items: center;
    padding-left: 0;
  }

  .brand-logo {
    width: 18px;
  }

  .brand-logo-header {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    height: auto !important;
    max-height: 56px !important;
    transform: scale(1.45);
  }

  .profile-launcher {
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .store-hero-side {
    padding: 16px;
  }

  .store-package-tag {
    width: 100%;
    justify-content: center;
  }

  .store-price {
    font-size: 24px;
  }
}

/* V2026-05-10 topbar navigation stability */
body:not(.ebay-body) .topbar-shell {
  grid-template-columns: minmax(128px, 190px) minmax(0, 1fr) auto;
  gap: 10px;
}

body:not(.ebay-body) .topbar-center-shell {
  width: 100%;
  gap: 8px;
}

body:not(.ebay-body) .topbar-shell .page-nav {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap !important;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 10px;
  padding: 0 !important;
  overflow: visible;
  scrollbar-width: auto;
  scroll-behavior: auto;
}

body:not(.ebay-body) .topbar-shell .page-nav .nav-btn {
  white-space: nowrap;
}

body:not(.ebay-body) .app-topbar-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
}

body:not(.ebay-body) .app-topbar-actions > * {
  flex: 0 0 auto;
}

body:not(.ebay-body) .app-topbar-actions .nav-btn,
body:not(.ebay-body) .app-topbar-actions .module-switch {
  white-space: nowrap;
}

body:not(.ebay-body) .topbar-shell .page-nav::-webkit-scrollbar,
body:not(.ebay-body) .app-topbar-actions::-webkit-scrollbar {
  height: 6px;
}

body:not(.ebay-body) .topbar-shell .page-nav::-webkit-scrollbar-thumb,
body:not(.ebay-body) .app-topbar-actions::-webkit-scrollbar-thumb {
  background: rgba(153, 178, 255, .24);
  border-radius: 999px;
}

@media (max-width: 1380px) {
  body:not(.ebay-body) .topbar-shell {
    grid-template-columns: minmax(112px, 160px) minmax(0, 1fr) auto;
  }

  body:not(.ebay-body) .page-nav-primary {
    max-width: 100%;
  }

  body:not(.ebay-body) .page-nav-primary .nav-btn {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 13px;
  }
}

@media (max-width: 1180px) {
  body:not(.ebay-body) .topbar-shell .page-nav,
  body:not(.ebay-body) .app-topbar-actions {
    justify-content: center;
  }

  body:not(.ebay-body) .page-nav-primary {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  body:not(.ebay-body) .topbar-shell .page-nav,
  body:not(.ebay-body) .app-topbar-actions {
    justify-content: flex-start;
  }

  body:not(.ebay-body) .page-nav-primary,
  body:not(.ebay-body) .page-nav-secondary {
    justify-content: flex-start;
  }

  body:not(.ebay-body) .page-nav-primary {
    display: flex;
    width: 100%;
    padding: 6px;
  }

  body:not(.ebay-body) .page-nav-primary .nav-btn {
    min-width: 0;
    flex: 1 1 100%;
  }
}

/* V2026-05-18 mobile-first catalog and header cleanup */
@media (max-width: 760px) {
  .pages-grid {
    padding: 14px;
  }

  .page-section {
    margin-bottom: 16px;
  }

  body:not(.ebay-body) .topbar {
    padding: 10px 12px;
  }

  body:not(.ebay-body) .topbar-shell {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body:not(.ebay-body) .brand-panel,
  body:not(.ebay-body) .brand-panel-compact {
    justify-content: center;
    padding-left: 0;
  }

  body:not(.ebay-body) .brand-mark-header {
    margin-left: 0;
  }

  body:not(.ebay-body) .brand-logo-header {
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    max-height: 58px !important;
    transform: scale(1.25);
    transform-origin: center;
  }

  body:not(.ebay-body) .topbar-center-shell {
    align-items: stretch;
    gap: 8px;
  }

  body:not(.ebay-body) .topbar-center-shell .module-kicker {
    text-align: center;
    font-size: 9px;
    letter-spacing: .12em;
  }

  body:not(.ebay-body) .topbar-shell .page-nav {
    gap: 6px;
    margin: 0;
    overflow: visible;
  }

  body:not(.ebay-body) .page-nav-primary {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    width: 100%;
    margin: 0;
    padding: 6px;
    gap: 6px;
  }

  body:not(.ebay-body) .page-nav-primary .nav-btn {
    flex: 0 0 auto;
    min-width: 120px;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }

  body:not(.ebay-body) .page-nav-primary .nav-btn span:last-child {
    white-space: nowrap;
  }

  body:not(.ebay-body) .page-nav-secondary {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 0 2px;
    margin: 0 -2px;
    scrollbar-width: thin;
  }

  body:not(.ebay-body) .page-nav-primary::-webkit-scrollbar,
  body:not(.ebay-body) .page-nav-secondary::-webkit-scrollbar,
  body:not(.ebay-body) .app-topbar-actions::-webkit-scrollbar {
    height: 5px;
  }

  body:not(.ebay-body) .page-nav-primary::-webkit-scrollbar-thumb,
  body:not(.ebay-body) .page-nav-secondary::-webkit-scrollbar-thumb,
  body:not(.ebay-body) .app-topbar-actions::-webkit-scrollbar-thumb {
    background: rgba(153, 178, 255, .24);
    border-radius: 999px;
  }

  body:not(.ebay-body) .page-nav-secondary .nav-btn {
    white-space: nowrap;
  }

  body:not(.ebay-body) .app-topbar-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding: 0 0 2px;
  }

  body:not(.ebay-body) .app-topbar-actions .nav-btn,
  body:not(.ebay-body) .app-topbar-actions .module-switch {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  body:not(.ebay-body) .notification-bell-label,
  body:not(.ebay-body) .cart-panel-label {
    font-size: 12px;
  }

  body:not(.ebay-body) .notification-center-panel,
  body:not(.ebay-body) .cart-panel {
    top: 104px;
    right: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 116px);
    overflow: auto;
  }

  .catalog-shell {
    gap: 18px;
    padding: 16px;
  }

  .catalog-hero {
    gap: 18px;
    padding: 18px;
    border-radius: 20px;
  }

  .catalog-summary-list {
    grid-template-columns: 1fr;
  }

  .catalog-summary-item {
    padding: 12px 14px;
  }

  .catalog-filter-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .catalog-filter-main,
  .catalog-filter-grid {
    grid-template-columns: 1fr;
  }

  .catalog-category-checkbox-grid,
  .categories-overview,
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .catalog-category-editor-form {
    padding: 12px;
  }

  .category-card {
    padding: 16px;
  }

  .category-card-head {
    flex-direction: column;
  }

  .category-card-actions .nav-btn {
    width: 100%;
  }

  .catalog-bulk-panel.compact {
    display: grid;
    gap: 10px;
  }

  .catalog-table-wrap {
    overflow: visible;
  }

  #catalog-table {
    width: 100%;
    min-width: 0;
    border-spacing: 0;
    table-layout: fixed;
  }

  #catalog-table thead {
    display: none;
  }

  #catalog-table tbody {
    display: grid;
    gap: 14px;
  }

  #catalog-table tbody tr.catalog-row {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(153,178,255,.12);
    background:
      radial-gradient(circle at top right, rgba(124,156,255,.10), transparent 28%),
      linear-gradient(180deg, rgba(18,28,47,.94) 0%, rgba(11,18,31,.98) 100%);
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
  }

  #catalog-table tbody tr.catalog-row:hover td {
    background: transparent;
    border-color: transparent;
  }

  #catalog-table tbody td {
    padding: 0;
    border: 0;
    background: transparent;
  }

  #catalog-table tbody td:first-child,
  #catalog-table tbody td:last-child {
    border: 0;
    border-radius: 0;
  }

  #catalog-table tbody td[data-label]:not(.catalog-cell-product):not(.catalog-cell-select) {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding-top: 10px;
    border-top: 1px solid rgba(153,178,255,.10);
  }

  #catalog-table tbody td[data-label]:not(.catalog-cell-product):not(.catalog-cell-select)::before {
    content: attr(data-label);
    color: #9bb8ef;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .catalog-cell-select {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  }

  .catalog-cell-select::before {
    content: attr(data-label);
    color: #9bb8ef;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .catalog-cell-product {
    min-width: 0;
    width: 100%;
  }

  .catalog-product-layout {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
  }

  .catalog-product-thumb {
    width: 74px;
    height: 74px;
    border-radius: 16px;
  }

  .title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .title-row strong {
    width: 100%;
  }

  .catalog-inline-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .catalog-product-note {
    font-size: 12px;
    line-height: 1.5;
  }

  .catalog-cell-price,
  .catalog-cell-offers {
    min-width: 0;
  }

  .catalog-price-main {
    font-size: 20px;
  }

  .catalog-cell-stock .badge,
  .catalog-cell-offers .catalog-offer-group,
  .catalog-cell-offers .catalog-offer-empty {
    justify-self: start;
  }

  .catalog-offer-group summary {
    padding: 10px 12px;
    align-items: flex-start;
  }

  .catalog-offer-summary strong {
    font-size: 12px;
  }

  .catalog-empty-row {
    display: block;
  }

  .catalog-empty-row td {
    display: block;
  }
}

@media (max-width: 420px) {
  body:not(.ebay-body) .brand-logo-header {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    transform: scale(1.16);
  }

  body:not(.ebay-body) .page-nav-primary .nav-btn {
    min-width: 112px;
    padding: 8px 11px;
    font-size: 11px;
  }

  #catalog-table tbody td[data-label]:not(.catalog-cell-product):not(.catalog-cell-select) {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .catalog-cell-select {
    flex-wrap: wrap;
    gap: 6px;
  }

  .catalog-product-layout {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .catalog-product-thumb {
    width: 64px;
    height: 64px;
  }

  .category-stat-pill {
    min-width: 0;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NEON DESIGN SYSTEM — version définitive
   ► Violet #c084fc × Cyan #22d3ee × Base sombre #050410
   ► Aucun conflit de spécificité — règles ordonnées du général au spécifique
   ► Ne modifie PAS .ebay-body (DA noir/or préservée)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────
   SVG icons dans les boutons nav
   ────────────────────────────────────────────────────── */
.nav-btn-icon, .collection-launcher-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; flex-shrink: 0;
}
.nav-btn-icon svg, .collection-launcher-icon svg {
  display: block; width: 16px; height: 16px; stroke: currentColor;
}

/* ──────────────────────────────────────────────────────
   VARIABLES + FOND AURORA
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) {
  --primary: #c084fc;
  --success: #4ade80;
  --danger:  #f87171;
  --warn:    #fbbf24;
  --text:    #f0e8ff;
  --muted:   #9b8fba;
  --collection-series-value-color:     #c084fc;
  --collection-series-potential-color: #34d399;
  --collection-series-realized-color:  #f87171;
  --collection-series-sales-color:     #fbbf24;
  color: #f0e8ff;
  background:
    radial-gradient(ellipse 120% 55% at 50% -10%, rgba(192,132,252,0.22) 0%, transparent 65%),
    radial-gradient(ellipse  70% 45% at 96%   4%, rgba(34,211,238,0.11)  0%, transparent 55%),
    radial-gradient(ellipse  55% 40% at  0%  32%, rgba(192,132,252,0.06) 0%, transparent 55%),
    #050410;
  background-attachment: fixed;
}

/* Liens */
body:not(.ebay-body) a                  { color: #c084fc; }
body:not(.ebay-body) a:hover            { color: #d8b4fe; text-decoration: underline; }
body:not(.ebay-body) .muted             { color: #9b8fba !important; }
body:not(.ebay-body) .module-kicker,
body:not(.ebay-body) .brand-kicker      { color: rgba(192,132,252,0.65) !important; text-shadow: 0 0 10px rgba(192,132,252,0.25) !important; }

/* ──────────────────────────────────────────────────────
   TOPBAR
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) .topbar {
  background: rgba(5,4,16,0.90) !important;
  backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(192,132,252,0.16) !important;
  box-shadow: 0 1px 0 rgba(192,132,252,0.08), 0 16px 40px rgba(0,0,0,0.55) !important;
}
body:not(.ebay-body) .topbar-center-shell .module-kicker {
  color: rgba(192,132,252,0.65) !important;
  letter-spacing: 0.12em !important;
  text-shadow: 0 0 14px rgba(192,132,252,0.35) !important;
}
body:not(.ebay-body) .brand-logo-header {
  filter: drop-shadow(0 0 10px rgba(192,132,252,0.22)) !important;
}

/* ──────────────────────────────────────────────────────
   NAVIGATION
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) .page-nav-primary {
  background: rgba(13,10,30,0.95) !important;
  border: 1px solid rgba(192,132,252,0.22) !important;
  backdrop-filter: none !important;
  box-shadow: 0 0 30px rgba(192,132,252,0.10), 0 8px 30px rgba(0,0,0,0.45) !important;
  padding: 5px 6px !important; gap: 4px !important;
}
body:not(.ebay-body) .nav-btn {
  background: rgba(192,132,252,0.06) !important;
  border: 1px solid rgba(192,132,252,0.15) !important;
  color: #baaed4 !important;
  transition: all 0.18s cubic-bezier(0.4,0,0.2,1) !important;
  text-decoration: none !important;
}
body:not(.ebay-body) .nav-btn:hover:not(.store-launcher) {
  background: rgba(192,132,252,0.12) !important;
  border-color: rgba(192,132,252,0.32) !important;
  color: #e8d8ff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 0 14px rgba(192,132,252,0.18), 0 8px 22px rgba(0,0,0,0.35) !important;
  text-decoration: none !important;
}
body:not(.ebay-body) .nav-btn.active:not(.store-launcher) {
  background: rgba(192,132,252,0.15) !important;
  border-color: rgba(192,132,252,0.55) !important;
  color: #f0e0ff !important;
  box-shadow: 0 0 18px rgba(192,132,252,0.30), 0 0 50px rgba(192,132,252,0.10) !important;
  text-shadow: 0 0 10px rgba(192,132,252,0.45) !important;
}

/* ──────────────────────────────────────────────────────
   CARDS — fond solide
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) .card {
  background: #0d0a1e !important;
  border: 1px solid rgba(192,132,252,0.14) !important;
  border-radius: 20px !important;
  box-shadow: 0 0 0 1px rgba(192,132,252,0.06), 0 4px 36px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.03) !important;
  backdrop-filter: none !important;
}
body:not(.ebay-body) .nested-card {
  background: rgba(192,132,252,0.04) !important;
  border-color: rgba(192,132,252,0.10) !important;
}

/* ──────────────────────────────────────────────────────
   BOUTONS
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) .primary, body:not(.ebay-body) button.primary {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%) !important;
  border: 1px solid rgba(192,132,252,0.35) !important;
  color: #fff !important;
  box-shadow: 0 0 22px rgba(168,85,247,0.38), 0 8px 22px rgba(0,0,0,0.45) !important;
  transition: all 0.18s ease !important;
}
body:not(.ebay-body) .primary:hover, body:not(.ebay-body) button.primary:hover {
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%) !important;
  box-shadow: 0 0 30px rgba(192,132,252,0.52), 0 12px 28px rgba(0,0,0,0.50) !important;
  transform: translateY(-1px) !important;
}
body:not(.ebay-body) button.secondary, body:not(.ebay-body) .secondary {
  background: rgba(192,132,252,0.08) !important;
  border: 1px solid rgba(192,132,252,0.24) !important;
  color: #c9bcf7 !important; box-shadow: none !important;
}
body:not(.ebay-body) button.secondary:hover, body:not(.ebay-body) .secondary:hover {
  background: rgba(192,132,252,0.15) !important;
  border-color: rgba(192,132,252,0.38) !important;
  color: #e0d6ff !important;
  box-shadow: 0 0 12px rgba(192,132,252,0.20) !important;
}
body:not(.ebay-body) button.danger, body:not(.ebay-body) .danger-btn {
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%) !important;
  border: 1px solid rgba(248,113,113,0.35) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(248,113,113,0.25), 0 8px 20px rgba(0,0,0,0.45) !important;
}
body:not(.ebay-body) .sort-btn {
  background: transparent !important; border: 0 !important;
  color: #f0e8ff !important; box-shadow: none !important; transform: none !important;
}

/* Store launcher */
body:not(.ebay-body) .store-launcher {
  background: rgba(192,132,252,0.10) !important;
  border: 1px solid rgba(192,132,252,0.30) !important;
  color: #e2d4ff !important;
  box-shadow: 0 0 16px rgba(192,132,252,0.16) !important;
}
body:not(.ebay-body) .store-launcher:hover {
  background: rgba(192,132,252,0.18) !important;
  border-color: rgba(192,132,252,0.48) !important;
  color: #f0e8ff !important;
  box-shadow: 0 0 24px rgba(192,132,252,0.30) !important;
}

/* eBay Sniper : préserver l'or */
body:not(.ebay-body) .module-switch-ebay {
  color: #f5c94a !important;
  background: linear-gradient(180deg, #111111 0%, #050505 100%) !important;
  border-color: rgba(245,201,74,0.34) !important;
  box-shadow: 0 0 16px rgba(245,201,74,0.14), 0 10px 22px rgba(0,0,0,0.30) !important;
}
body:not(.ebay-body) .module-switch-ebay:hover {
  color: #ffe28d !important;
  background: linear-gradient(180deg, #181818 0%, #0a0a0a 100%) !important;
  border-color: rgba(245,201,74,0.50) !important;
  box-shadow: 0 0 22px rgba(245,201,74,0.22) !important;
  transform: translateY(-1px) !important; filter: none !important;
}
body:not(.ebay-body) a.module-switch-ebay { color: #f5c94a !important; text-decoration: none !important; }
body:not(.ebay-body) a.module-switch-ebay:hover { color: #ffe28d !important; text-decoration: none !important; }

/* Module switch PapyMonitor */
body:not(.ebay-body) .module-switch:not(.module-switch-ebay) {
  background: rgba(192,132,252,0.10) !important;
  border: 1px solid rgba(192,132,252,0.30) !important;
  color: #e2d4ff !important;
  box-shadow: 0 0 16px rgba(192,132,252,0.16) !important;
}
body:not(.ebay-body) .module-switch:not(.module-switch-ebay):hover {
  background: rgba(192,132,252,0.18) !important; border-color: rgba(192,132,252,0.46) !important;
  color: #f0e8ff !important; box-shadow: 0 0 24px rgba(192,132,252,0.28) !important; filter: none !important;
}

/* ──────────────────────────────────────────────────────
   INPUTS
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) input, body:not(.ebay-body) textarea, body:not(.ebay-body) select {
  background: #07050f !important;
  border: 1px solid rgba(192,132,252,0.16) !important;
  color: #f0e8ff !important; border-radius: 12px !important;
}
body:not(.ebay-body) input::placeholder, body:not(.ebay-body) textarea::placeholder {
  color: rgba(192,132,252,0.38) !important;
}
body:not(.ebay-body) input:focus, body:not(.ebay-body) textarea:focus, body:not(.ebay-body) select:focus {
  border-color: rgba(192,132,252,0.58) !important;
  box-shadow: 0 0 0 3px rgba(192,132,252,0.12) !important;
  outline: none !important;
}
body:not(.ebay-body) input[type="range"] { accent-color: #c084fc !important; }

/* ──────────────────────────────────────────────────────
   PANNEAUX NOTIFICATION + PANIER — fond solide
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) .notification-center-panel,
body:not(.ebay-body) .cart-panel {
  background: #07050f !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(192,132,252,0.30) !important;
  border-radius: 20px !important;
  box-shadow: 0 0 40px rgba(192,132,252,0.14), 0 32px 72px rgba(0,0,0,0.82) !important;
}
body:not(.ebay-body) .cart-remove-btn {
  background: rgba(248,113,113,0.07) !important; border-color: rgba(248,113,113,0.24) !important; color: #fca5a5 !important;
}
body:not(.ebay-body) .cart-remove-btn:hover {
  background: rgba(248,113,113,0.15) !important; border-color: rgba(248,113,113,0.42) !important; color: #fecaca !important;
}

/* ──────────────────────────────────────────────────────
   BADGES
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) .notification-bell-badge,
body:not(.ebay-body) .cart-panel-badge {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%) !important;
  color: #f0e8ff !important; box-shadow: 0 0 12px rgba(168,85,247,0.55) !important;
}
body:not(.ebay-body) .badge { border: 1px solid rgba(255,255,255,0.06) !important; }
body:not(.ebay-body) .badge.ok, body:not(.ebay-body) .badge.in_stock, body:not(.ebay-body) .badge.success {
  background: rgba(74,222,128,0.10) !important; color: #86efac !important;
  border-color: rgba(74,222,128,0.24) !important; box-shadow: 0 0 8px rgba(74,222,128,0.14) !important;
}
body:not(.ebay-body) .badge.error, body:not(.ebay-body) .badge.blocked, body:not(.ebay-body) .badge.out_of_stock {
  background: rgba(248,113,113,0.10) !important; color: #fca5a5 !important;
  border-color: rgba(248,113,113,0.24) !important; box-shadow: 0 0 8px rgba(248,113,113,0.14) !important;
}
body:not(.ebay-body) .badge.empty, body:not(.ebay-body) .badge.unknown, body:not(.ebay-body) .badge.idle {
  background: rgba(251,191,36,0.10) !important; color: #fde68a !important;
  border-color: rgba(251,191,36,0.24) !important; box-shadow: 0 0 8px rgba(251,191,36,0.14) !important;
}

/* ──────────────────────────────────────────────────────
   FEED + PILLS
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) .feed-item, body:not(.ebay-body) .pill {
  background: rgba(192,132,252,0.04) !important; border-color: rgba(192,132,252,0.13) !important;
}
body:not(.ebay-body) .feed-item.success { border-color: rgba(74,222,128,0.26) !important; background: rgba(74,222,128,0.05) !important; }
body:not(.ebay-body) .feed-item.blocked { border-color: rgba(248,113,113,0.28) !important; }
body:not(.ebay-body) .feed-item.error   { border-color: rgba(248,113,113,0.36) !important; }
body:not(.ebay-body) .feed-item.empty   { border-color: rgba(251,191,36,0.24) !important; }

/* ──────────────────────────────────────────────────────
   FILTERS / BULK BARS
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) .filters-bar,
body:not(.ebay-body) .bulk-actions,
body:not(.ebay-body) #sources-page .bulk-actions,
body:not(.ebay-body) #catalog-page .filters-bar,
body:not(.ebay-body) #catalog-page .bulk-actions {
  background: #0a0818 !important;
  border: 1px solid rgba(192,132,252,0.16) !important;
  border-radius: 16px !important;
  backdrop-filter: none !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.45) !important;
}

/* ──────────────────────────────────────────────────────
   TABLE
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) table tr:hover td { background: rgba(192,132,252,0.04) !important; }

/* ──────────────────────────────────────────────────────
   PROGRESS BAR
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) .run-progress-bar span {
  background: linear-gradient(90deg, #a855f7 0%, #22d3ee 100%) !important;
  box-shadow: 0 0 12px rgba(168,85,247,0.45) !important;
}
body:not(.ebay-body) .run-progress-card { background: #0d0a1e !important; border-color: rgba(192,132,252,0.22) !important; }

/* ──────────────────────────────────────────────────────
   STATUS BANNERS
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) .status-banner     { background: rgba(192,132,252,0.06) !important; border-color: rgba(192,132,252,0.18) !important; }
body:not(.ebay-body) .status-success    { background: rgba(74,222,128,0.08) !important;  border-color: rgba(74,222,128,0.28) !important; }
body:not(.ebay-body) .status-error      { background: rgba(248,113,113,0.08) !important; border-color: rgba(248,113,113,0.28) !important; }

/* ──────────────────────────────────────────────────────
   GRAPHIQUES (mini-charts favoris)
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) .favorite-history-chart {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(192,132,252,0.12) 0%, transparent 60%), #060412 !important;
  border: 1px solid rgba(192,132,252,0.18) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(192,132,252,0.08) !important;
}
body:not(.ebay-body) .favorite-history-card {
  background: rgba(192,132,252,0.04) !important;
  border-color: rgba(192,132,252,0.13) !important;
  transition: all 0.2s ease !important;
}
body:not(.ebay-body) .favorite-history-card:hover {
  border-color: rgba(192,132,252,0.32) !important;
  box-shadow: 0 0 24px rgba(192,132,252,0.18), 0 8px 32px rgba(0,0,0,0.55) !important;
  transform: translateY(-2px) !important;
}

/* ──────────────────────────────────────────────────────
   COLLECTION — toutes les zones
   ────────────────────────────────────────────────────── */

/* Variable CSS (bypass inline style avec !important sur la propriété) */
body:not(.ebay-body) .collection-summary-line-icon-cards,
body:not(.ebay-body) .collection-summary-line-icon-value    { color: #c084fc !important; }
body:not(.ebay-body) .collection-summary-line-icon-potential{ color: #34d399 !important; }
body:not(.ebay-body) .collection-summary-line-icon-realized { color: #f87171 !important; }
body:not(.ebay-body) .collection-summary-line-icon-sales    { color: #fbbf24 !important; }

/* GRANDE VALEUR PORTFOLIO (249,90 €) → blanc lumineux avec halo violet */
body:not(.ebay-body) .collection-summary-highlight strong {
  color: #f0e8ff !important;
  text-shadow: 0 0 22px rgba(192,132,252,0.50) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}
body:not(.ebay-body) .collection-summary-highlight .collection-tone-positive,
body:not(.ebay-body) .collection-summary-highlight .collection-tone-negative,
body:not(.ebay-body) .collection-summary-highlight .collection-tone-neutral {
  color: #f0e8ff !important;
  text-shadow: 0 0 22px rgba(192,132,252,0.50) !important;
}

/* VALEUR TOTALE (ligne 2 de la liste) → violet */
body:not(.ebay-body) .collection-summary-list > .collection-summary-line:nth-child(2) strong,
body:not(.ebay-body) .collection-summary-list > .collection-summary-line:nth-child(2) .collection-tone-positive,
body:not(.ebay-body) .collection-summary-list > .collection-summary-line:nth-child(2) .collection-tone-neutral {
  color: #f0e8ff !important;
  font-weight: 700 !important;
}

/* PROFIT POTENTIEL (ligne 3) et PROFIT RÉALISÉ (ligne 4) : vert/rouge selon tone */
body:not(.ebay-body) .collection-summary-list > .collection-summary-line:nth-child(3) .collection-tone-positive,
body:not(.ebay-body) .collection-summary-list > .collection-summary-line:nth-child(4) .collection-tone-positive {
  color: #4ade80 !important; text-shadow: 0 0 8px rgba(74,222,128,0.38) !important; font-weight: 700 !important;
}
body:not(.ebay-body) .collection-summary-list > .collection-summary-line:nth-child(3) .collection-tone-negative,
body:not(.ebay-body) .collection-summary-list > .collection-summary-line:nth-child(4) .collection-tone-negative {
  color: #f87171 !important; text-shadow: 0 0 8px rgba(248,113,113,0.35) !important; font-weight: 700 !important;
}
body:not(.ebay-body) .collection-summary-list > .collection-summary-line:nth-child(3) .collection-tone-neutral,
body:not(.ebay-body) .collection-summary-list > .collection-summary-line:nth-child(4) .collection-tone-neutral {
  color: #9b8fba !important; font-weight: 700 !important;
}

/* VARIATIONS 30J (trends dans aperçu du marché) */
body:not(.ebay-body) .collection-tone-positive { color: #4ade80 !important; }
body:not(.ebay-body) .collection-tone-negative { color: #f87171 !important; }
body:not(.ebay-body) .collection-tone-neutral  { color: #f0e8ff !important; }

/* KPI cards grandes valeurs */
body:not(.ebay-body) .collection-kpi-value.collection-tone-positive { color: #4ade80 !important; text-shadow: 0 0 14px rgba(74,222,128,0.40) !important; }
body:not(.ebay-body) .collection-kpi-value.collection-tone-negative { color: #f87171 !important; text-shadow: 0 0 14px rgba(248,113,113,0.35) !important; }
body:not(.ebay-body) .collection-kpi-value.collection-tone-neutral  { color: #f0e8ff !important; }
body:not(.ebay-body) .collection-kpi-label { color: rgba(192,132,252,0.75) !important; }

/* Trend labels */
body:not(.ebay-body) .collection-kpi-trend .collection-tone-positive { color: #4ade80 !important; text-shadow: 0 0 6px rgba(74,222,128,0.30) !important; }
body:not(.ebay-body) .collection-kpi-trend .collection-tone-negative { color: #f87171 !important; text-shadow: 0 0 6px rgba(248,113,113,0.30) !important; }
body:not(.ebay-body) .collection-kpi-trend .collection-tone-neutral  { color: #9b8fba !important; }

/* Onglets Ma collection / Mes ventes */
body:not(.ebay-body) .collection-summary-tabs { border-color: rgba(192,132,252,0.16) !important; }
body:not(.ebay-body) .collection-summary-tab { color: #9b8fba !important; transition: color 0.18s ease !important; }
body:not(.ebay-body) .collection-summary-tab:hover { color: #e0d6ff !important; }
body:not(.ebay-body) .collection-summary-tab.is-active {
  color: #f0e8ff !important;
  border-bottom-color: #c084fc !important;
  text-shadow: 0 0 10px rgba(192,132,252,0.35) !important;
}

/* "Voir la collection entière" */
body:not(.ebay-body) .collection-summary-link {
  background: rgba(192,132,252,0.08) !important;
  border: 1px solid rgba(192,132,252,0.22) !important;
  color: #c9bcf7 !important; transition: all 0.18s ease !important;
}
body:not(.ebay-body) .collection-summary-link:hover {
  background: rgba(192,132,252,0.15) !important;
  border-color: rgba(192,132,252,0.40) !important;
  color: #e0d6ff !important; box-shadow: 0 0 14px rgba(192,132,252,0.20) !important; transform: translateY(-1px) !important;
}

/* Cards collection */
body:not(.ebay-body) .collection-overview-card, body:not(.ebay-body) .collection-kpi-card {
  border-color: rgba(192,132,252,0.14) !important; background: rgba(192,132,252,0.04) !important;
}
body:not(.ebay-body) .collection-result-card { border-color: rgba(192,132,252,0.14) !important; background: rgba(192,132,252,0.03) !important; transition: all 0.18s ease !important; }
body:not(.ebay-body) .collection-result-card:hover { border-color: rgba(192,132,252,0.32) !important; box-shadow: 0 0 16px rgba(192,132,252,0.14) !important; }
body:not(.ebay-body) .collection-entry-card { border-color: rgba(192,132,252,0.12) !important; background: rgba(192,132,252,0.03) !important; transition: all 0.18s ease !important; }
body:not(.ebay-body) .collection-entry-card:hover { border-color: rgba(192,132,252,0.28) !important; box-shadow: 0 0 16px rgba(192,132,252,0.12) !important; }
body:not(.ebay-body) .collection-entry-card.sold { border-color: rgba(251,191,36,0.22) !important; }
body:not(.ebay-body) .collection-sale-card { border-color: rgba(192,132,252,0.14) !important; background: #0d0a1e !important; }
body:not(.ebay-body) .collection-selected-card { border-color: rgba(192,132,252,0.22) !important; background: #0d0a1e !important; }
body:not(.ebay-body) .collection-history-panel, body:not(.ebay-body) .collection-inline-history-shell { border-color: rgba(192,132,252,0.12) !important; }
body:not(.ebay-body) .collection-result-media, body:not(.ebay-body) .collection-entry-media { border-color: rgba(192,132,252,0.14) !important; background: rgba(192,132,252,0.05) !important; }

/* Set cards (Toutes mes collections) */
body:not(.ebay-body) .collection-set-card { border-color: rgba(192,132,252,0.14) !important; background: #0d0a1e !important; transition: all 0.2s ease !important; }
body:not(.ebay-body) .collection-set-card:hover { border-color: rgba(192,132,252,0.32) !important; box-shadow: 0 0 20px rgba(192,132,252,0.16) !important; transform: translateY(-2px) !important; }
body:not(.ebay-body) .collection-set-card.is-active { border-color: rgba(192,132,252,0.45) !important; box-shadow: 0 0 28px rgba(192,132,252,0.28) !important; }
body:not(.ebay-body) .collection-set-card.is-inactive { border-color: rgba(192,132,252,0.08) !important; opacity: 0.75 !important; }
body:not(.ebay-body) .collection-set-card-media { border-color: rgba(192,132,252,0.14) !important; background: rgba(192,132,252,0.06) !important; color: #c9bcf7 !important; }
body:not(.ebay-body) .collection-set-card-series, body:not(.ebay-body) .collection-set-card-meta { color: #9b8fba !important; }
body:not(.ebay-body) .collection-set-detail { border-color: rgba(192,132,252,0.14) !important; background: #0d0a1e !important; }
body:not(.ebay-body) .collection-set-detail-stat { border-color: rgba(192,132,252,0.13) !important; background: rgba(192,132,252,0.04) !important; }
body:not(.ebay-body) .collection-set-detail-stat span { color: rgba(192,132,252,0.70) !important; }
body:not(.ebay-body) .collection-set-card-item { border-color: rgba(192,132,252,0.12) !important; background: rgba(192,132,252,0.03) !important; transition: all 0.18s ease !important; }
body:not(.ebay-body) .collection-set-card-item:hover { border-color: rgba(192,132,252,0.28) !important; box-shadow: 0 0 14px rgba(192,132,252,0.14) !important; }
body:not(.ebay-body) .collection-set-variant-pill { border-color: rgba(192,132,252,0.16) !important; background: rgba(192,132,252,0.06) !important; color: #c9bcf7 !important; }

/* Graphique collection */
body:not(.ebay-body) .collection-dashboard-chart {
  background: radial-gradient(ellipse 80% 50% at 20% 50%, rgba(192,132,252,0.04) 0%, transparent 60%), #0a0818 !important;
  border-color: rgba(192,132,252,0.16) !important; min-height: 260px !important;
}
body:not(.ebay-body) .collection-chart-legend-item { border-color: rgba(192,132,252,0.12) !important; color: #c4bfdf !important; }
body:not(.ebay-body) .collection-chart-tooltip {
  background: #07050f !important; border: 1px solid rgba(192,132,252,0.28) !important;
  box-shadow: 0 0 20px rgba(192,132,252,0.18), 0 12px 30px rgba(0,0,0,0.7) !important;
}
body:not(.ebay-body) .collection-chart-tooltip-title { color: rgba(192,132,252,0.75) !important; }
body:not(.ebay-body) .collection-summary-tab.is-active { border-bottom-color: #c084fc !important; }

/* ──────────────────────────────────────────────────────
   CATALOGUE
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) .catalog-hero {
  border-color: rgba(192,132,252,0.16) !important;
  background: radial-gradient(circle at top right, rgba(192,132,252,0.08), transparent 30%), #0d0a1e !important;
}
body:not(.ebay-body) .catalog-summary-item {
  border-color: rgba(192,132,252,0.12) !important; background: rgba(192,132,252,0.04) !important; transition: all 0.18s ease !important;
}
body:not(.ebay-body) .catalog-summary-item:hover { border-color: rgba(192,132,252,0.28) !important; background: rgba(192,132,252,0.07) !important; }
body:not(.ebay-body) .catalog-summary-label { color: rgba(192,132,252,0.75) !important; text-shadow: 0 0 8px rgba(192,132,252,0.25) !important; }
body:not(.ebay-body) .catalog-summary-value { color: #f0e8ff !important; font-size: 26px !important; font-weight: 800 !important; }
body:not(.ebay-body) .catalog-filter-panel { background: #0a0818 !important; border-color: rgba(192,132,252,0.16) !important; }
body:not(.ebay-body) .catalog-price-slider-shell { background: rgba(192,132,252,0.04) !important; border-color: rgba(192,132,252,0.14) !important; }
body:not(.ebay-body) .catalog-price-slider-head { color: #e0d6ff !important; }
body:not(.ebay-body) .catalog-price-slider-head strong { color: #c084fc !important; text-shadow: 0 0 10px rgba(192,132,252,0.40) !important; }
body:not(.ebay-body) .catalog-bulk-categories { background: #0a0818 !important; border-color: rgba(192,132,252,0.16) !important; }
body:not(.ebay-body) .catalog-bulk-categories summary { color: #c084fc !important; }
body:not(.ebay-body) .catalog-product-thumb {
  border-color: rgba(192,132,252,0.14) !important;
  background: radial-gradient(circle at top left, rgba(192,132,252,0.16), transparent 55%), linear-gradient(180deg, rgba(18,12,35,0.96) 0%, rgba(10,7,22,0.98) 100%) !important;
}
body:not(.ebay-body) #catalog-table tbody td { border-color: rgba(192,132,252,0.10) !important; background: rgba(192,132,252,0.02) !important; }
body:not(.ebay-body) #catalog-table tbody td:first-child { border-left-color: rgba(192,132,252,0.10) !important; }
body:not(.ebay-body) #catalog-table tbody td:last-child  { border-right-color: rgba(192,132,252,0.10) !important; }
body:not(.ebay-body) #catalog-table tbody tr.catalog-row:hover td { background: rgba(192,132,252,0.05) !important; border-color: rgba(192,132,252,0.20) !important; }
body:not(.ebay-body) #catalog-table tbody tr.catalog-row:hover td:first-child { box-shadow: inset 3px 0 0 rgba(192,132,252,0.55) !important; }
body:not(.ebay-body) #catalog-table thead th { background: linear-gradient(180deg, rgba(7,5,15,0.98) 0%, rgba(7,5,15,0.72) 100%) !important; }
body:not(.ebay-body) .catalog-price-main { color: #f0e8ff !important; font-size: 20px !important; font-weight: 800 !important; }
body:not(.ebay-body) .catalog-price-note, body:not(.ebay-body) .catalog-secondary-main { color: #9b8fba !important; }

/* ──────────────────────────────────────────────────────
   CATÉGORIES
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) .category-card { border-color: rgba(192,132,252,0.16) !important; background: #0d0a1e !important; transition: all 0.2s ease !important; }
body:not(.ebay-body) .category-card:hover { border-color: rgba(192,132,252,0.40) !important; box-shadow: 0 0 24px rgba(192,132,252,0.18) !important; transform: translateY(-3px) !important; }
body:not(.ebay-body) .category-image-link { border-color: rgba(192,132,252,0.18) !important; background: rgba(192,132,252,0.05) !important; transition: all 0.2s ease !important; }
body:not(.ebay-body) .category-image-link:hover { border-color: rgba(192,132,252,0.38) !important; box-shadow: 0 0 20px rgba(192,132,252,0.18) !important; }
body:not(.ebay-body) .category-stat-pill { border-color: rgba(192,132,252,0.16) !important; background: rgba(192,132,252,0.05) !important; color: #c9bcf7 !important; }

/* ──────────────────────────────────────────────────────
   BOUTIQUE
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) .store-hero { background: #0d0a1e !important; border-color: rgba(192,132,252,0.18) !important; }
body:not(.ebay-body) .store-package-shell-pm { border-color: rgba(192,132,252,0.22) !important; background: radial-gradient(circle at top right, rgba(192,132,252,0.10), transparent 28%), linear-gradient(180deg, rgba(22,15,40,0.96) 0%, rgba(12,8,25,0.98) 100%) !important; }
body:not(.ebay-body) .store-package-shell-pm .store-package-tag { border-color: rgba(192,132,252,0.26) !important; background: rgba(192,132,252,0.12) !important; color: #e8d8ff !important; }
body:not(.ebay-body) .store-package-shell-pm .store-card { border-color: rgba(192,132,252,0.18) !important; background: linear-gradient(180deg, rgba(28,18,52,0.96) 0%, rgba(15,10,32,0.98) 100%) !important; }
body:not(.ebay-body) .store-package-shell-pm .store-card-featured { border-color: rgba(192,132,252,0.45) !important; box-shadow: 0 0 30px rgba(192,132,252,0.16) !important; }
body:not(.ebay-body) .store-package-shell-pm .store-card-head h3 { border-color: rgba(192,132,252,0.30) !important; background: rgba(192,132,252,0.16) !important; color: #f0e8ff !important; text-shadow: 0 0 12px rgba(192,132,252,0.35) !important; }
body:not(.ebay-body) .store-package-shell-pm .store-card-highlight { background: rgba(192,132,252,0.12) !important; color: #e8d8ff !important; }
body:not(.ebay-body) .store-package-shell-pm .store-price, body:not(.ebay-body) .store-package-shell-pm .store-bullet-list { color: #f0e8ff !important; }
body:not(.ebay-body) .store-package-shell-pm .store-bullet-list li::marker { color: #c084fc !important; }
body:not(.ebay-body) .store-card > .muted { color: #9b8fba !important; }
body:not(.ebay-body) .store-bullet-list { color: #e0d6ff !important; }
body:not(.ebay-body) .store-price { font-size: 28px !important; font-weight: 800 !important; letter-spacing: -0.02em !important; color: #f0e8ff !important; }

/* ──────────────────────────────────────────────────────
   PROFIL
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) .profile-hero-card { background: #0d0a1e !important; border-color: rgba(192,132,252,0.18) !important; box-shadow: 0 0 0 1px rgba(192,132,252,0.06), 0 4px 36px rgba(0,0,0,0.55) !important; padding: 22px 28px !important; }
body:not(.ebay-body) .profile-kpi { background: rgba(192,132,252,0.05) !important; border-color: rgba(192,132,252,0.15) !important; padding: 10px 14px !important; border-radius: 14px !important; }
body:not(.ebay-body) .profile-kpi-label { color: rgba(192,132,252,0.80) !important; font-size: 9px !important; letter-spacing: 0.10em !important; }
body:not(.ebay-body) .profile-kpi-value { font-size: 14px !important; font-weight: 700 !important; color: #f0e8ff !important; }
body:not(.ebay-body) .profile-detail-row { background: rgba(192,132,252,0.04) !important; border-color: rgba(192,132,252,0.13) !important; transition: all 0.15s ease !important; }
body:not(.ebay-body) .profile-detail-row:hover { border-color: rgba(192,132,252,0.22) !important; background: rgba(192,132,252,0.06) !important; }
body:not(.ebay-body) .profile-detail-row span { color: rgba(192,132,252,0.65) !important; font-size: 12px !important; }
body:not(.ebay-body) .profile-detail-row strong { font-weight: 700 !important; color: #f0e8ff !important; font-size: 13px !important; }
body:not(.ebay-body) .profile-logout-btn { background: rgba(248,113,113,0.07) !important; border-color: rgba(248,113,113,0.26) !important; color: #fca5a5 !important; box-shadow: none !important; }
body:not(.ebay-body) .profile-logout-btn:hover { background: rgba(248,113,113,0.15) !important; border-color: rgba(248,113,113,0.42) !important; color: #fecaca !important; box-shadow: 0 0 14px rgba(248,113,113,0.22) !important; }
body:not(.ebay-body) .profile-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px !important; }

/* ──────────────────────────────────────────────────────
   SECTION HEADS
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) .section-head h2 { color: #f0e8ff !important; letter-spacing: -0.01em !important; }
body:not(.ebay-body) .log-preview { background: #07050f !important; border-color: rgba(192,132,252,0.14) !important; color: #c9bcf7 !important; }

/* ──────────────────────────────────────────────────────
   SCROLLBAR
   ────────────────────────────────────────────────────── */
body:not(.ebay-body) ::-webkit-scrollbar          { width: 6px; height: 6px; }
body:not(.ebay-body) ::-webkit-scrollbar-track     { background: rgba(192,132,252,0.03); }
body:not(.ebay-body) ::-webkit-scrollbar-thumb     { background: rgba(192,132,252,0.22); border-radius: 999px; }
body:not(.ebay-body) ::-webkit-scrollbar-thumb:hover { background: rgba(192,132,252,0.40); }

/* ──────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  body:not(.ebay-body) #catalog-table tbody tr.catalog-row {
    background: #0d0a1e !important; border-color: rgba(192,132,252,0.15) !important;
    box-shadow: 0 0 0 1px rgba(192,132,252,0.06), 0 4px 22px rgba(0,0,0,0.45) !important;
  }
}
@media (max-width: 1100px) {
  .store-layout { grid-template-columns: 1fr !important; gap: 18px; }
  .store-shell { grid-column: 1 !important; }
  .store-side-panel { grid-column: 1 !important; position: static !important; }
}
@media (max-width: 760px) {
  .store-layout { gap: 14px; }
  .store-shell  { grid-template-columns: 1fr !important; }
  .store-package-shell { padding: 18px; border-radius: 20px; }
  .store-card   { padding: 18px; gap: 16px; }
  .store-card-head h3 { font-size: 18px !important; }
}
@media (max-width: 900px) {
  .profile-shell-grid  { grid-template-columns: 1fr !important; }
  .profile-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .profile-hero-card   { grid-template-columns: 1fr !important; }
}
@media (max-width: 760px) {
  .profile-detail-grid { grid-template-columns: 1fr !important; }
  .profile-kpi-grid    { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .auth-grid           { grid-template-columns: 1fr !important; }
  #sources-page .sources-grid { grid-template-columns: 1fr !important; }
  .page-section.active-page:not(#catalog-page):not(#profile-page):not(#store-page):not(#cart-page):not(#checkout-page) {
    grid-template-columns: 1fr !important;
  }
}

/* ── CORRECTION : .collection-summary-card n'est pas une .card → override direct ── */
body:not(.ebay-body) .collection-summary-card {
  background: #0d0a1e !important;
  border: 1px solid rgba(192,132,252,0.18) !important;
  box-shadow: 0 0 0 1px rgba(192,132,252,0.08), 0 4px 32px rgba(0,0,0,0.55) !important;
}

/* Aussi collection-overview-card si pas ciblée */
body:not(.ebay-body) .collection-overview-card {
  background: #0d0a1e !important;
  border: 1px solid rgba(192,132,252,0.14) !important;
}

/* Sidebar stack */
body:not(.ebay-body) .collection-sidebar-stack {
  background: transparent !important;
}

/* ══════════════════════════════════════════════════════════
   CORRECTION FINALE : tous les bleus hardcodés dans collection
   ══════════════════════════════════════════════════════════ */

/* Summary lines : bordure + fond + texte label */
body:not(.ebay-body) .collection-summary-line {
  border-color: rgba(192,132,252,0.12) !important;
  background: rgba(192,132,252,0.04) !important;
}
body:not(.ebay-body) .collection-summary-line span,
body:not(.ebay-body) .collection-summary-line-label {
  color: #9b8fba !important;
}

/* Chart legend button */
body:not(.ebay-body) .collection-chart-legend-btn {
  border-color: rgba(192,132,252,0.14) !important;
  background: rgba(192,132,252,0.05) !important;
  color: #c4bfdf !important;
}

/* Toutes les cartes/panels collection avec bordures bleues */
body:not(.ebay-body) .collection-kpi-card,
body:not(.ebay-body) .collection-history-panel,
body:not(.ebay-body) .collection-result-card,
body:not(.ebay-body) .collection-selected-card,
body:not(.ebay-body) .collection-entry-card,
body:not(.ebay-body) .collection-inline-history-shell,
body:not(.ebay-body) .collection-sale-card,
body:not(.ebay-body) .collection-set-card,
body:not(.ebay-body) .collection-set-detail,
body:not(.ebay-body) .collection-set-detail-stat,
body:not(.ebay-body) .collection-set-card-item,
body:not(.ebay-body) .collection-card-modal-kpi,
body:not(.ebay-body) .collection-card-inline-panel,
body:not(.ebay-body) .collection-sell-panel {
  border-color: rgba(192,132,252,0.13) !important;
  background: rgba(192,132,252,0.04) !important;
}

/* Médias/images dans collection */
body:not(.ebay-body) .collection-selected-media,
body:not(.ebay-body) .collection-entry-media,
body:not(.ebay-body) .collection-sale-selected-media,
body:not(.ebay-body) .collection-set-card-media,
body:not(.ebay-body) .collection-set-detail-logo,
body:not(.ebay-body) .collection-card-modal-media {
  border-color: rgba(192,132,252,0.14) !important;
  background: rgba(192,132,252,0.05) !important;
}

/* Textes bleus dans les cartes collection */
body:not(.ebay-body) .collection-set-card-series,
body:not(.ebay-body) .collection-set-card-meta,
body:not(.ebay-body) .collection-set-detail-stat span {
  color: #9b8fba !important;
}

/* Launcher button dans la nav */
body:not(.ebay-body) .collection-launcher {
  border-color: rgba(192,132,252,0.18) !important;
}

/* Variant pills */
body:not(.ebay-body) .collection-set-variant-pill,
body:not(.ebay-body) .collection-card-variant-btn {
  border-color: rgba(192,132,252,0.16) !important;
  background: rgba(192,132,252,0.06) !important;
  color: #c9bcf7 !important;
}

/* Dialog modal collection */
body:not(.ebay-body) .collection-card-overlay-dialog {
  background: #0d0a1e !important;
  border-color: rgba(192,132,252,0.22) !important;
}

/* Export logs : boutons alignés */
.log-export-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.log-export-actions .nav-btn {
  text-decoration: none;
  font-size: 12px;
  padding: 6px 12px;
}


/* ══════════════════════════════════════════════════════════
   Page Blocklist — tableau des produits filtrés
   ══════════════════════════════════════════════════════════ */
body:not(.ebay-body) .blocked-table-wrap {
  border: 1px solid rgba(192,132,252,0.14) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #0a0818 !important;
}
body:not(.ebay-body) .blocked-table {
  width: 100%;
  border-collapse: collapse;
}
body:not(.ebay-body) .blocked-table thead th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(192,132,252,0.70) !important;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(7,5,15,0.98) 0%, rgba(7,5,15,0.72) 100%) !important;
  border-bottom: 1px solid rgba(192,132,252,0.16) !important;
}
body:not(.ebay-body) .blocked-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(192,132,252,0.08) !important;
  vertical-align: middle;
  color: #c9bcf7;
}
body:not(.ebay-body) .blocked-table tbody tr:hover td {
  background: rgba(192,132,252,0.05) !important;
}
body:not(.ebay-body) .blocked-table tbody tr:last-child td {
  border-bottom: 0 !important;
}
body:not(.ebay-body) .blocked-title-cell {
  max-width: 520px;
  font-weight: 600;
}
body:not(.ebay-body) .blocked-title-cell a {
  color: #c084fc !important;
  text-decoration: none;
}
body:not(.ebay-body) .blocked-title-cell a:hover {
  color: #d8b4fe !important;
  text-shadow: 0 0 12px rgba(192,132,252,0.40);
}
body:not(.ebay-body) .blocked-rule-badge {
  display: inline-block;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(248,113,113,0.10) !important;
  border: 1px solid rgba(248,113,113,0.28) !important;
  color: #fca5a5 !important;
  white-space: nowrap;
}
body:not(.ebay-body) .blocked-action-cell {
  text-align: right;
  white-space: nowrap;
}
body:not(.ebay-body) .blocked-action-cell form {
  margin: 0;
}

/* Blocklist — barre bulk + vignettes */
body:not(.ebay-body) .blocked-bulk-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}
body:not(.ebay-body) .blocked-bulk-check {
  display: inline-flex; align-items: center; gap: 8px;
  color: #c9bcf7; font-size: 13px; cursor: pointer;
}
body:not(.ebay-body) .blocked-check-col { width: 34px; text-align: center; }
body:not(.ebay-body) .blocked-thumb-col { width: 60px; }
body:not(.ebay-body) .blocked-row-check,
body:not(.ebay-body) #blocked-select-all { accent-color: #c084fc; width: 16px; height: 16px; cursor: pointer; }
body:not(.ebay-body) .blocked-thumb {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 10px; object-fit: contain;
  background: rgba(192,132,252,0.06); border: 1px solid rgba(192,132,252,0.14);
}
body:not(.ebay-body) .blocked-thumb-empty { color: rgba(192,132,252,0.45); font-weight: 700; }
body:not(.ebay-body) .blocked-price {
  margin-top: 4px; font-size: 13px; font-weight: 700; color: #f0e8ff;
}

/* ══════════════════════════════════════════════════════════
   AMAZON — Bons plans
   ══════════════════════════════════════════════════════════ */
body:not(.ebay-body) .amazon-affiliate-notice {
  font-size: 12px; font-style: italic; color: rgba(192,132,252,0.6) !important;
  border-left: 2px solid rgba(255,153,0,0.5); padding-left: 10px;
}

/* Grille catégories */
body:not(.ebay-body) .amazon-category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(278px, 1fr)); gap: 18px;
}
body:not(.ebay-body) .amazon-category-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px; border-radius: 16px; cursor: pointer;
  background: #0d0a1e !important; border: 1px solid rgba(192,132,252,0.16) !important;
  color: #f0e8ff !important; transition: all 0.18s ease;
}
body:not(.ebay-body) .amazon-category-card:hover {
  border-color: rgba(255,153,0,0.45) !important;
  box-shadow: 0 0 22px rgba(255,153,0,0.16), 0 8px 26px rgba(0,0,0,0.5) !important;
  transform: translateY(-2px);
}
body:not(.ebay-body) .amazon-category-image {
  width: 263px; height: 263px; max-width: 100%; object-fit: contain; border-radius: 16px;
  background: rgba(192,132,252,0.05); border: 1px solid rgba(192,132,252,0.12);
  display: flex; align-items: center; justify-content: center;
}
body:not(.ebay-body) .amazon-category-image-empty {
  font-size: 72px; font-weight: 800; color: rgba(255,153,0,0.65);
}
body:not(.ebay-body) .amazon-category-name { font-weight: 700; text-align: center; font-size: 14px; }

/* Panneau deals */
body:not(.ebay-body) .amazon-deals-head { display: flex; align-items: center; gap: 12px; }
body:not(.ebay-body) #amazon-deals-back { font-size: 13px; }
body:not(.ebay-body) .amazon-deals-list { display: flex; flex-direction: column; gap: 26px; margin-top: 12px; }
body:not(.ebay-body) .amazon-deal-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}

/* Carte deal : image en haut, infos, prix, CTA en bas */
body:not(.ebay-body) .amazon-deal-row {
  display: flex; flex-direction: column; gap: 11px;
  padding: 14px; border-radius: 16px;
  background: #0d0a1e !important; border: 1px solid rgba(192,132,252,0.14) !important;
  transition: all 0.15s ease;
}
body:not(.ebay-body) .amazon-deal-row:hover {
  border-color: rgba(255,153,0,0.38) !important;
  box-shadow: 0 0 16px rgba(255,153,0,0.12) !important;
}
body:not(.ebay-body) .amazon-deal-thumb {
  width: 100%; height: 180px; flex-shrink: 0; object-fit: contain; border-radius: 12px;
  background: rgba(255,255,255,0.96); border: 1px solid rgba(192,132,252,0.14);
  display: flex; align-items: center; justify-content: center;
}
body:not(.ebay-body) .amazon-deal-thumb-empty { background: rgba(192,132,252,0.06); color: rgba(192,132,252,0.45); font-size: 26px; font-weight: 800; }
body:not(.ebay-body) .amazon-deal-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
body:not(.ebay-body) .amazon-deal-title { font-weight: 700; color: #f0e8ff; font-size: 18px; line-height: 1.35; }
body:not(.ebay-body) .amazon-deal-price { font-size: 24px; font-weight: 800; color: #ff9900; letter-spacing: -0.01em; }
body:not(.ebay-body) .amazon-deal-checked { font-size: 11px; }
body:not(.ebay-body) .amazon-deal-badge {
  align-self: flex-start; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: 999px; background: rgba(255,153,0,0.14); color: #ffb84d; border: 1px solid rgba(255,153,0,0.3);
}
body:not(.ebay-body) .amazon-deal-cta {
  width: 100%; text-align: center; white-space: nowrap; text-decoration: none !important;
  background: linear-gradient(135deg, #ff9900 0%, #e67e00 100%) !important;
  border: 1px solid rgba(255,153,0,0.4) !important; color: #1a1207 !important; font-weight: 700 !important;
  padding: 14px 24px !important; border-radius: 12px !important; font-size: 16px;
  box-shadow: 0 0 18px rgba(255,153,0,0.28), 0 6px 18px rgba(0,0,0,0.4) !important;
  transition: all 0.15s ease !important;
}
body:not(.ebay-body) .amazon-deal-cta:hover {
  transform: translateY(-1px); box-shadow: 0 0 26px rgba(255,153,0,0.45), 0 8px 22px rgba(0,0,0,0.5) !important;
  text-decoration: none !important;
}

/* Admin Amazon */
body:not(.ebay-body) .amazon-admin-cat {
  border: 1px solid rgba(192,132,252,0.14); border-radius: 14px; padding: 12px 14px; margin-top: 10px;
  background: rgba(192,132,252,0.03);
}
body:not(.ebay-body) .amazon-admin-cat-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body:not(.ebay-body) .amazon-admin-cat-head form { margin-left: auto; }
body:not(.ebay-body) .amazon-admin-cat-thumb { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,0.92); }
body:not(.ebay-body) .amazon-admin-deal-editor { margin: 10px 0; }
body:not(.ebay-body) .amazon-admin-deal-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin-top: 6px;
  border-radius: 10px; background: rgba(192,132,252,0.04); border: 1px solid rgba(192,132,252,0.10);
}
body:not(.ebay-body) .amazon-admin-deal-thumb { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,0.92); }
body:not(.ebay-body) .amazon-admin-deal-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
body:not(.ebay-body) .amazon-admin-deal-title { font-weight: 600; color: #f0e8ff; }
body:not(.ebay-body) .amazon-admin-deal-actions { display: flex; gap: 6px; flex-shrink: 0; }
body:not(.ebay-body) .amazon-admin-deal-actions button { font-size: 11px; padding: 5px 9px; }

body:not(.ebay-body) .amazon-admin-deal-edit { margin: 4px 0 10px 0; padding-left: 4px; }
body:not(.ebay-body) .amazon-admin-deal-edit > summary { font-size: 12px; color: rgba(192,132,252,0.8); cursor: pointer; }

/* Amazon — toolbar Voir tout + groupes */
body:not(.ebay-body) .amazon-toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
body:not(.ebay-body) .amazon-all-group { margin-bottom: 26px; }
body:not(.ebay-body) .amazon-all-group-title {
  font-size: 16px; font-weight: 800; color: #ff9900; margin: 0 0 12px 0;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,153,0,0.25);
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* Amazon — détail dans la ligne deal + meilleure occupation */
body:not(.ebay-body) .amazon-deal-desc { font-size: 14px; color: #c4bfdf; line-height: 1.4; }
@media (max-width: 760px) {
  body:not(.ebay-body) .amazon-deal-grid { grid-template-columns: minmax(0, 1fr); }
}
