/* Glacier light — shared styles from desing-template references */

:root {
  --primary: #0a4c6e;
  --primary-light: #7dd3fc;
  --primary-container: #7dd3fc;
  --on-primary-container: #001f2e;
  --gold: #b08d57;
  --gold-2: #9a7a4b;
  --bg: #f0f7ff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #cbd5e1;
  --danger: #ef4444;
  --ok: #2e7d5a;
  --navy: var(--primary);
  --navy-2: #e0efff;
  --sidebar-w: 280px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body.app-body {
  background: radial-gradient(circle at 10% 20%, rgba(125, 211, 252, 0.18) 0%, transparent 42%),
              radial-gradient(circle at 90% 80%, rgba(200, 160, 240, 0.1) 0%, transparent 40%),
              linear-gradient(180deg, #f0f7ff 0%, #e8f4fc 100%);
  background-attachment: fixed;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Reference: glass / aurora ─────────────────────────── */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 10% 20%, rgba(125, 211, 252, 0.2) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(200, 160, 240, 0.15) 0%, transparent 40%),
              linear-gradient(180deg, #f0f7ff 0%, #e0efff 100%);
}
.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: 0 8px 32px rgba(125, 211, 252, 0.1);
}
.glass-card-sidebar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(10, 76, 110, 0.1);
  box-shadow: 4px 0 24px rgba(10, 76, 110, 0.06);
}
.frozen-overlay {
  background: linear-gradient(180deg, rgba(10, 76, 110, 0.03) 0%, transparent 100%);
  pointer-events: none;
}
.ice-gradient-text {
  background: linear-gradient(135deg, #0a4c6e 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glacier-input {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(125, 211, 252, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.glacier-input:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow: 0 0 15px rgba(125, 211, 252, 0.15);
  outline: none;
}
.glass-bg {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(148, 163, 184, 0.1);
}
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(14, 77, 110, 0.1);
}
.glass-panel-elevated {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(14, 77, 110, 0.12);
}
.bg-mesh {
  background: radial-gradient(circle at 0% 0%, rgba(125, 211, 252, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 100% 100%, rgba(200, 160, 240, 0.1) 0%, transparent 50%);
}
.glacier-bg-page {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  min-height: 100%;
}
.thumb-active-ref {
  border: 2px solid #c9a96e !important;
}
.brand-accent-btn {
  background: #c2a370;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(194, 163, 112, 0.3);
}
.brand-accent-btn:hover { filter: brightness(1.05); }

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-logo--sm { width: 2rem; height: 2rem; }
.brand-logo--lg { width: 3rem; height: 3rem; }
.brand-lockup { text-decoration: none; color: inherit; }

/* Product modal — lumina_add_product_glacier_light_1 */
#product-modal-backdrop {
  align-items: stretch !important;
  justify-content: center !important;
  padding: 0 !important;
}
#product-modal {
  max-width: 100% !important;
  width: 100% !important;
  max-height: 100vh !important;
  height: 100vh !important;
  border-radius: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #f8fbff !important;
  border: none !important;
  box-shadow: none !important;
}
#product-modal .pm-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 6rem;
}
#product-modal .pm-footer {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(203, 213, 225, 0.8);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(14, 77, 110, 0.06);
}
#product-modal .glass-input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(14, 77, 110, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  width: 100%;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  outline: none;
}
#product-modal .glass-input:focus {
  background: #fff;
  border-color: #0e4d6e;
  box-shadow: 0 0 15px rgba(14, 77, 110, 0.1);
}
#product-modal .upload-zone-ref {
  border: 2px dashed rgba(14, 77, 110, 0.2);
  border-radius: 0.75rem;
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
#product-modal .upload-zone-ref:hover,
#product-modal .upload-zone-ref.drag-over {
  border-color: rgba(14, 77, 110, 0.45);
}
#product-modal .img-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.75rem;
}
#product-modal .img-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--line);
}
#product-modal .img-thumb.primary { border-color: #c9a96e; }
#product-modal .img-thumb img { width: 100%; height: 100%; object-fit: cover; }
#product-modal .img-thumb-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  color: white;
  font-size: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gold-button, .btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(180, 134, 11, 0.25);
}
.gold-button:hover, .btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.gold-button:active, .btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary.w-full { width: 100%; }

.gradient-button {
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
  color: #0a4c6e;
  box-shadow: 0 4px 14px rgba(125, 211, 252, 0.35);
}

.active-nav-item,
.nav-item.active {
  background: linear-gradient(90deg, rgba(10, 76, 110, 0.1) 0%, transparent 100%);
  border-left: 3px solid #0a4c6e;
  color: #0a4c6e !important;
  font-weight: 600;
}
.nav-item.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.nav-badge { display: none; }
.nav-badge.visible { display: inline-flex; }
.active-pill {
  box-shadow: 0 4px 12px rgba(125, 211, 252, 0.4);
}
.active-tab-glow {
  box-shadow: 0 4px 12px rgba(176, 141, 87, 0.15);
}

.glacier-blur {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(10, 76, 110, 0.08);
}
.glacier-glow {
  box-shadow: 0 0 30px rgba(125, 211, 252, 0.08);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(10, 76, 110, 0.15); border-radius: 10px; }

/* ── Auth shell (sign_in / sign_up refs) ───────────────── */
#auth-shell {
  min-height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
}
#auth-shell.active { display: flex; }
.auth-view { display: none; width: 100%; max-width: 28rem; }
.auth-view.active { display: block; }

/* ── App shell ─────────────────────────────────────────── */
#app-shell { display: none; height: 100vh; overflow: hidden; }
#app-shell.active { display: flex; }

#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(2px);
  z-index: 38;
}
#sidebar-overlay.open { display: block; }

#sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  flex-shrink: 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (max-width: 768px) {
  #sidebar {
    position: fixed;
    left: 0;
    top: 0;
    max-width: 320px;
    width: 80%;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  #sidebar.open { transform: translateX(0); }
}

#main-content { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

#view-area {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem 2rem;
}
@media (min-width: 768px) {
  #view-area { padding: 1.25rem 1.5rem 2rem; }
}

[data-view="app"] { display: none; }
[data-view="app"].active { display: block; }

/* ── Legacy buttons / forms (modals) ───────────────────── */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--primary-light); color: var(--primary); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: 0.5rem;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}
.btn-icon:hover { background: rgba(125, 211, 252, 0.15); color: var(--primary); }

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 1rem; }
.field label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.field input, .field select, .field textarea {
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 0.5rem;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  width: 100%;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow: 0 0 15px rgba(125, 211, 252, 0.15);
}

.otp-boxes { display: flex; gap: 8px; justify-content: center; }
.otp-box {
  width: 48px;
  height: 54px;
  border: 2px solid var(--line);
  border-radius: 10px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  outline: none;
  font-family: inherit;
}
.otp-box:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.2);
}

/* ── Modals / drawer ───────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 76, 110, 0.2);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  padding: 1rem;
}
.modal-backdrop.hidden { display: none; }
.modal-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  border: 1px solid rgba(125, 211, 252, 0.25);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(10, 76, 110, 0.12);
}
.modal-header {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
.modal-body { overflow-y: auto; padding: 1.5rem; flex: 1; }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
/* Glacier modals — save/edit catalog, add-to-catalog */
.glacier-modal-panel {
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
}
.glacier-modal-panel.glow-subtle {
  box-shadow: 0 10px 40px rgba(10, 76, 110, 0.12);
}
.glacier-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(193, 199, 206, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.glacier-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin: 0;
}
.glacier-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}
.glacier-modal-body.space-y-sections > * + * {
  margin-top: 2rem;
}
.glacier-modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(193, 199, 206, 0.5);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.45);
}
.glacier-modal-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary, #4c626b);
  margin-bottom: 0.5rem;
}
.glacier-modal .glass-input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(193, 199, 206, 0.6);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  width: 100%;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  box-shadow: 0 1px 2px rgba(10, 76, 110, 0.04);
}
.glacier-modal .glass-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(10, 76, 110, 0.15);
}
.glacier-modal-btn-cancel {
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(193, 199, 206, 0.8);
  background: transparent;
  color: #64748b;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.glacier-modal-btn-cancel:hover {
  background: rgba(241, 245, 249, 0.9);
  color: var(--text);
}
.glacier-modal-btn-primary {
  padding: 0.625rem 2rem;
  border-radius: 9999px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(10, 76, 110, 0.2);
  transition: opacity 0.15s, transform 0.1s;
}
.glacier-modal-btn-primary:hover { opacity: 0.92; }
.glacier-modal-btn-primary:active { transform: scale(0.98); }
.glacier-modal-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.drawer-panel {
  background: linear-gradient(180deg, #f0f9ff 0%, #e8f4fc 100%);
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 520px;
  height: 100%;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(10, 76, 110, 0.12);
  border-left: 1px solid rgba(125, 211, 252, 0.25);
}
.order-drawer-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

#confirm-dialog {
  background: white;
  border-radius: 14px;
  padding: 2rem;
  max-width: 380px;
  width: 100%;
  border: 1px solid rgba(125, 211, 252, 0.2);
}

/* ── Toasts ────────────────────────────────────────────── */
#toasts {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 340px;
}
.toast {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  pointer-events: auto;
  box-shadow: 0 4px 16px rgba(10, 76, 110, 0.12);
}
.toast-info { background: var(--primary); color: #fff; }
.toast-success { background: var(--ok); color: #fff; }
.toast-error { background: var(--danger); color: #fff; }

/* ── Skeleton ──────────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #e8f4fc 25%, #d5e8f5 50%, #e8f4fc 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: 6px;
}

/* ── Product grid (lumina_glacier_light_edition) ───────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

.product-card-ref {
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card-ref:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(125, 211, 252, 0.15);
}
.product-card-ref .card-img {
  position: relative;
  height: 12rem;
  background: #f1f5f9;
  overflow: hidden;
}
.product-card-ref .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.product-card-ref:hover .card-img img { transform: scale(1.08); }
.badge-new-ref {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #0a4c6e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge-draft-ref {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(100, 116, 139, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
.select-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.select-overlay.checked {
  background: var(--primary-light);
  border-color: var(--primary);
}

.card-actions-ref {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(125, 211, 252, 0.2);
  color: var(--muted);
}

/* ── My Catalogs (lumina_my_catalogs_glacier_light_final) ─ */
.glacier-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 102, 139, 0.1);
  box-shadow: 0 10px 40px rgba(0, 102, 139, 0.05);
}
#catalog-list-panel .glacier-input {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(113, 133, 148, 0.15);
}
#catalog-list-panel .glacier-input:focus-within {
  border-color: rgba(10, 76, 110, 0.3);
}
.catalogs-insights-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 76, 110, 0.05) 0%, rgba(176, 141, 87, 0.08) 100%);
}
.catalogs-fab {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  z-index: 35;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #b08d57;
  color: #fff;
  border: none;
  box-shadow: 0 10px 25px rgba(176, 141, 87, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.catalogs-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(176, 141, 87, 0.45);
}
.catalogs-fab:active { transform: scale(0.95); }
@media (min-width: 768px) {
  .catalogs-fab { bottom: 2rem; right: 2rem; }
}

/* ── Orders glass table ────────────────────────────────── */
.orders-glass-wrap { border-radius: 0.75rem; overflow: hidden; }

/* ── Empty / load more ─────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem;
  text-align: center;
  gap: 1rem;
}
.load-more-bar { display: flex; justify-content: center; margin-top: 1.5rem; }

/* ── Status pills ──────────────────────────────────────── */
.status-pill {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.status-pill.new { background: rgba(125, 211, 252, 0.25); color: var(--primary); }
.status-pill.seen { background: rgba(10, 76, 110, 0.08); color: var(--primary); }
.status-pill.closed { background: rgba(46, 125, 90, 0.15); color: var(--ok); }
.status-pill.active { background: rgba(176, 141, 87, 0.15); color: var(--gold-dark); }
.status-pill.archived { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

/* ── Product detail (keep layout) ──────────────────────── */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .pd-layout { grid-template-columns: 1fr; }
}

/* ── Upload / thumbs (modal) ───────────────────────────── */
.upload-zone {
  border: 2px dashed rgba(10, 76, 110, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
}
.upload-zone:hover { border-color: var(--primary-light); background: rgba(125, 211, 252, 0.08); }

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

#catalog-selection-bar {
  display: none;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 1rem;
  border-radius: 12px;
}
#catalog-selection-bar.visible {
  display: flex;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(125, 211, 252, 0.35);
  box-shadow: 0 8px 24px rgba(125, 211, 252, 0.12);
}

#pd-zoom-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
#pd-zoom-backdrop.hidden { display: none; }

.filter-toggle.on {
  border-color: rgba(125, 211, 252, 0.6) !important;
  color: var(--primary) !important;
  background: rgba(125, 211, 252, 0.2) !important;
  box-shadow: 0 4px 12px rgba(125, 211, 252, 0.25);
}

#menu-btn { display: none; }
@media (max-width: 768px) {
  #menu-btn { display: flex; }
}

.ai-dot {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(125, 211, 252, 0.2);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}
.ai-dot.hidden { display: none !important; }
