/* ============================================================
   MOCKUP STUDIO — style.css
   Theme: MockMonster marketplace (blue + green + charcoal)
   ============================================================ */

/* Fonts loaded via <link> in index.html for non-blocking preload */

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

/* ── Theme transition — View Transitions API circular reveal with soft edge ── */
@property --reveal-r {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-new(root) {
  -webkit-mask-image: radial-gradient(
    circle var(--reveal-r) at var(--reveal-cx, 50%) var(--reveal-cy, 50%),
    #000 calc(100% - 80px),
    transparent 100%
  );
  mask-image: radial-gradient(
    circle var(--reveal-r) at var(--reveal-cx, 50%) var(--reveal-cy, 50%),
    #000 calc(100% - 80px),
    transparent 100%
  );
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

:root {
  /* MockMonster brand palette */
  --blue:        #29ABE2;           /* "Monster" text blue */
  --blue-light:  #5FC3ED;
  --blue-glow:   rgba(41,171,226,0.15);
  --green:       #8DC63F;           /* monster creature green */
  --green-light: #A8D85A;
  --green-glow:  rgba(141,198,63,0.15);
  --charcoal:    #231F20;           /* logo stroke / nav dark */
  --star-gold:   #FFB800;           /* star ratings */
  --amber:       #D97706;
  --amber-light: #FCD34D;

  /* Backgrounds */
  --bg-page:    #F7F5F0;     /* warm off-white */
  --bg-card:    #FFFFFF;
  --bg-input:   #FAFAF8;
  --bg-raised:  #F0EDE6;
  --bg-sidebar: #FDFCFA;
  --bg-dark:    #1A1F2E;    /* keep dark for canvas areas */
  --bg-dark-2:  #222736;
  --bg-dark-3:  #2A3045;

  /* Surface (layers panel / dark UI panels) */
  --surface-1:  #1E2233;
  --surface-2:  #262B3D;
  --surface-3:  #313750;

  /* Borders */
  --border:       #E2DDD5;
  --border-focus: var(--blue);
  --border-dark:  #323750;

  /* Text */
  --text-0: #1C1917;    /* near-black */
  --text-1: #44403C;    /* medium */
  --text-2: #78716C;    /* muted */
  --text-3: #A8A29E;    /* very muted */
  --text-inv: #FFFFFF;  /* on dark backgrounds */

  /* Status */
  --success: #059669;
  --danger:  #DC2626;
  --warning: #D97706;

  /* Shape */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:    0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── DARK THEME ── */
[data-theme="dark"] {
  color-scheme: dark;

  --bg-page:    #0c0d12;
  --bg-card:    #14151a;
  --bg-input:   #1a1b22;
  --bg-raised:  #1e1f28;
  --bg-sidebar: #111218;

  --border:     rgba(255,255,255,0.08);

  --text-0:     #e8e8ec;
  --text-1:     #b0b0ba;
  --text-2:     #75757f;
  --text-3:     #4a4a54;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.35);
  --shadow:     0 4px 16px rgba(0,0,0,0.45);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.55);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.35);

  --blue-glow:  rgba(41,171,226,0.22);
  --green-glow: rgba(141,198,63,0.22);
}

html, body { height: 100%; overflow: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-page);
  color: var(--text-0);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* Light mode subtle mesh gradient for glass depth */
[data-theme="light"] body {
  background: linear-gradient(135deg, #F7F5F0 0%, #EEF0F5 35%, #F5F0F7 65%, #F0F5F2 100%);
  background-attachment: fixed;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ============================================================
   TOP NAV
   ============================================================ */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  height: 72px;
  flex-shrink: 0;
  z-index: 100;
}

.topnav-brand {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  cursor: pointer;
  user-select: none;
}

.brand-mock    { color: var(--charcoal); font-weight: 800; }
.brand-monster { color: var(--blue);     font-weight: 800; }

.topnav-tabs {
  display: flex;
  gap: 6px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

.nav-tab {
  padding: 7px 16px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}

.nav-tab:hover { color: var(--text-0); background: var(--bg-raised); border-color: var(--text-3); }
.nav-tab.active {
  background: var(--charcoal);
  color: #ffffff;
  border-color: var(--charcoal);
  font-weight: 600;
  box-shadow: none;
}

/* Etsy-inspired header */
.etsy-nav { gap: 16px; }

/* Auth mode — hide everything except logo */
.nav-auth-mode .etsy-search-tools,
.nav-auth-mode .etsy-icons { display: none !important; }
.etsy-brand { gap: 10px; display: flex; align-items: center; flex-shrink: 0; }
.etsy-logo {
  font-family: 'Georgia', serif;
  font-size: 28px;
  color: #d5631c;
  font-weight: 700;
}
.etsy-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}
.etsy-search-tools {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.etsy-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background-color: rgba(187,187,188,0.12);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  border-radius: 999px;
  height: 36px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.90),
    inset -2px -2px 0px -2px rgba(255,255,255,0.80),
    inset -3px -8px 1px -6px rgba(255,255,255,0.60),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.12),
    inset 0px 3px 4px -2px rgba(0,0,0,0.20),
    0px 1px 5px 0px rgba(0,0,0,0.10),
    0px 6px 16px 0px rgba(0,0,0,0.08);
  transition:
    background-color 300ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 300ms cubic-bezier(1, 0, 0.4, 1),
    color 200ms ease,
    transform 200ms ease;
}
.etsy-cat-btn:hover {
  background-color: rgba(187,187,188,0.20);
  color: var(--blue);
}
.etsy-cat-btn:active { transform: scale(0.96); }
.etsy-cat-btn.active {
  background-color: rgba(41,171,226,0.12);
  color: var(--blue);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.15),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.85),
    inset -2px -2px 0px -2px rgba(255,255,255,0.70),
    inset -3px -8px 1px -6px rgba(255,255,255,0.50),
    0px 1px 4px 0px rgba(41,171,226,0.12),
    0px 4px 12px 0px rgba(41,171,226,0.08);
}
.etsy-hamburger {
  font-size: 16px;
  transition: transform 0.42s ease;
  transform-origin: center;
}
.etsy-cat-btn.active .etsy-hamburger {
  transform: rotate(90deg);
}

/* Category mega-menu */
.category-menu-layer {
  position: fixed;
  inset: 0;
  z-index: 220;
  pointer-events: none;
}
.category-menu-layer.open {
  pointer-events: none;
}
.category-menu-backdrop {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  border: none;
  background: rgba(22, 27, 36, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s ease;
}
.category-menu-layer.open .category-menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.category-menu-popover {
  position: absolute;
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 96px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.22, 0.8, 0.22, 1);
}
.category-menu-popover::before {
  content: "";
  position: absolute;
  top: -8px;
  left: calc(var(--pointer-left, 120px) - 8px);
  width: 16px;
  height: 16px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.category-menu-layer.open .category-menu-popover {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.category-menu-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 16px 12px 16px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.category-menu-tab {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-0);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.32s ease;
}
.category-menu-tab:hover {
  border-color: var(--blue);
}
.category-menu-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}
.category-menu-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: min(560px, calc(100vh - 200px));
}
.category-menu-left {
  border-right: 1px solid var(--border);
  background: transparent;
}
.category-menu-list {
  padding: 8px 0;
  max-height: min(560px, calc(100vh - 200px));
  overflow-y: auto;
}
.category-menu-item {
  width: 100%;
  border: none;
  border-top: 1px solid transparent;
  border-bottom: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  color: var(--text-0);
  text-align: left;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.28s ease, border-color 0.28s ease, padding-left 0.28s ease;
}
.category-menu-item:hover {
  background: rgba(41,171,226,0.06);
}
.category-menu-item.active {
  background: rgba(41,171,226,0.10);
  border-top-color: rgba(41,171,226,0.25);
  border-bottom-color: rgba(41,171,226,0.25);
  padding-left: 24px;
}
.category-menu-item-label {
  font-size: 18px;
  line-height: 1.25;
}
.category-menu-item-arrow {
  font-size: 26px;
  color: var(--text-2);
  transform: scaleY(1.15);
}
.category-menu-right {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  background: transparent;
}
.category-menu-right-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.category-menu-right-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-0);
}
.category-menu-right-sub {
  font-size: 13px;
  color: var(--text-2);
}
.category-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px;
}
.category-subcard {
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: transform 0.48s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.48s ease;
}
.category-menu-layer.open .category-subcard {
  opacity: 1;
  transform: translateY(0);
}
.category-subcard-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 24% 24%, rgba(255,255,255,0.55), transparent 45%),
    linear-gradient(140deg, var(--theme-a), var(--theme-b) 58%, var(--theme-c));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  position: relative;
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.32s ease;
}
.category-subcard-art::after {
  content: "";
  position: absolute;
  inset: 12% 14%;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.category-subcard-title {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-0);
}
.category-subcard-subtitle {
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-2);
}
.category-subcard:hover .category-subcard-art {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

/* --- Search bar with fluid glow --- */
@keyframes glowPulse {
  0%   { opacity: 0.5; transform: scale(1); }
  50%  { opacity: 0.9; transform: scale(1.08); }
  100% { opacity: 0.5; transform: scale(1); }
}
.etsy-search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 36px;
  border: none;
  border-radius: 999px;
  height: 36px;
  padding: 0 3px 0 3px;
  overflow: hidden;
  background-color: rgba(187,187,188,0.12);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.90),
    inset -2px -2px 0px -2px rgba(255,255,255,0.80),
    inset -3px -8px 1px -6px rgba(255,255,255,0.60),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.12),
    inset 0px 3px 4px -2px rgba(0,0,0,0.20),
    0px 1px 5px 0px rgba(0,0,0,0.10),
    0px 6px 16px 0px rgba(0,0,0,0.08);
  transition:
    background-color 300ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 300ms cubic-bezier(1, 0, 0.4, 1);
  position: relative;
}
.etsy-search-wrap:hover {
  background-color: rgba(187,187,188,0.18);
}
.etsy-search-wrap:focus-within {
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.25),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.90),
    inset -2px -2px 0px -2px rgba(255,255,255,0.80),
    inset -3px -8px 1px -6px rgba(255,255,255,0.60),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.10),
    inset 0px 3px 4px -2px rgba(0,0,0,0.18),
    0px 0px 0px 3px rgba(41,171,226,0.10),
    0px 2px 12px 0px rgba(41,171,226,0.12);
}

.etsy-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 14px;
  padding: 0 8px 0 12px;
  height: 100%;
  color: var(--text-0);
  background: transparent;
  font-family: inherit;
}
.etsy-search-input::placeholder { color: var(--text-3); transition: opacity 0.25s; }
.etsy-search-input:focus::placeholder { opacity: 0.4; }

.etsy-search-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background-color: rgba(187,187,188,0.20);
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  color: var(--text-1);
  font-size: 17px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 2px 1px 0px -1px rgba(255,255,255,0.90),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.80),
    inset -2px -6px 1px -5px rgba(255,255,255,0.60),
    inset -1px 2px 3px -1px rgba(0,0,0,0.20),
    inset 0px -4px 1px -2px rgba(0,0,0,0.10),
    0px 3px 6px 0px rgba(0,0,0,0.08);
  transition:
    background-color 300ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 300ms cubic-bezier(1, 0, 0.4, 1),
    transform 200ms ease,
    color 200ms ease;
}
.etsy-search-btn:hover {
  background-color: rgba(41,171,226,0.18);
  color: var(--blue);
  transform: scale(1.06);
}
.etsy-search-btn:active { transform: scale(0.94); }
.search-icon-img {
  width: 14px;
  height: 14px;
  color: var(--text-1, #333);
  display: block;
}
[data-theme="dark"] .search-icon-img {
  color: #fff;
}

.etsy-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.etsy-icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  color: var(--text-1);
  background-color: rgba(187,187,188,0.12);
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 2px 1px 0px -1px rgba(255,255,255,0.90),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.80),
    inset -2px -6px 1px -5px rgba(255,255,255,0.60),
    inset -1px 2px 3px -1px rgba(0,0,0,0.20),
    inset 0px -4px 1px -2px rgba(0,0,0,0.10),
    0px 3px 6px 0px rgba(0,0,0,0.08);
  transition:
    background-color 300ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 300ms cubic-bezier(1, 0, 0.4, 1),
    transform 200ms ease;
}
.etsy-icon-btn:hover {
  background-color: rgba(187,187,188,0.22);
  transform: scale(1.06);
}
.etsy-icon-btn:active { transform: scale(0.94); }
.etsy-icon-btn.active {
  color: var(--blue);
  background-color: rgba(41,171,226,0.15);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.15),
    inset 2px 1px 0px -1px rgba(255,255,255,0.85),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.70),
    inset -2px -6px 1px -5px rgba(255,255,255,0.50),
    0px 1px 4px 0px rgba(41,171,226,0.12),
    0px 4px 12px 0px rgba(41,171,226,0.08);
}
.nav-icon-img {
  width: 18px;
  height: 18px;
  display: block;
  color: var(--text-1, #333);
  transition: color 0.3s;
}
[data-theme="dark"] .nav-icon-img {
  color: #fff;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.main-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.panel {
  display: none;
  height: 100%;
  overflow-y: auto;
  background: var(--bg-page);
}

.panel.active { display: flex; flex-direction: column; }

/* ============================================================
   PANEL HEADER
   ============================================================ */
.panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 32px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-card);
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-1);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}
.btn-back:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-glow); }

.panel-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: -0.4px;
}

.panel-subtitle {
  font-size: 13px;
  color: var(--text-2);
  margin-left: auto;
  font-weight: 400;
}

.admin-editor-tabs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
/* Compact back button inside tabs row */
.btn-back-compact {
  padding: 6px 10px;
  font-size: 14px;
  min-width: 32px;
  justify-content: center;
  margin-right: 4px;
}
/* Save status pushed to right */
.editor-save-status {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-2);
  font-weight: 400;
}
.admin-editor-tab {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-1);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.admin-editor-tab.active {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.admin-editor-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================================
   SCROLLABLE BODY
   ============================================================ */
.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

/* ============================================================
   MOCKUP GRID (admin panel)
   ============================================================ */
.mockup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.mockup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s;
  box-shadow: var(--shadow-card);
}

.mockup-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue-light);
}

.mockup-card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mockup-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.mockup-card:hover .mockup-card-thumb img { transform: scale(1.03); }

.no-thumb {
  font-size: 40px;
  opacity: 0.3;
}

.mockup-card-info {
  padding: 14px 16px 16px;
}

.mockup-card-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-0);
  margin-bottom: 4px;
}

.mockup-card-meta {
  font-size: 12px;
  color: var(--text-2);
}

.mockup-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--blue);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.video-badge { background: var(--amber) !important; }

/* Add new card */
.add-row { display: contents; }

.card-add {
  border: 2px dashed var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 160px;
  color: var(--text-3);
  cursor: pointer;
  border-radius: var(--radius-lg);
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  padding: 24px;
}

.card-add:hover {
  border-color: var(--blue-light);
  color: var(--blue);
  background: var(--blue-glow);
}

.card-add-video {
  border-color: rgba(217,119,6,0.25);
  color: var(--text-3);
}
.card-add-video:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(217,119,6,0.07);
}

.add-icon { font-size: 28px; font-weight: 300; }

/* ============================================================
   SHOP HERO — Etsy-style banner (user panel)
   ============================================================ */
.shop-hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, #3a3540 100%);
  color: #fff;
  padding: 32px 32px 28px;
  flex-shrink: 0;
}

.shop-hero-headline {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  color: #ffffff;
}

.shop-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}

.shop-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}

.filter-pill:hover {
  border-color: rgba(255,255,255,0.6);
  color: #ffffff;
}

.filter-pill.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  font-weight: 600;
}

.filter-pill .pill-count {
  font-size: 11px;
  opacity: 0.7;
  margin-left: 4px;
}

.sort-select {
  padding: 6px 32px 6px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  margin-left: auto;
  transition: all 0.18s;
}

.sort-select:hover {
  border-color: rgba(255,255,255,0.6);
  color: #ffffff;
}

.sort-select option {
  background: #231F20;
  color: #ffffff;
}

/* ============================================================
   SHOP GRID & CARDS — Etsy-style (user panel)
   ============================================================ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 240px);
  justify-content: start;
  gap: 20px;
  padding: 18px 24px 24px 24px;
}
.shop-content-wrap {
  transition: transform 0.375s ease;
  transform: translateX(0);
  will-change: transform;
}
.shop-content-wrap.shifted {
  transform: translateX(340px);
}
.shop-compact-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 20px 8px 20px;
  gap: 12px;
}
.shop-compact-title { display: flex; flex-direction: column; gap: 2px; }
.shop-compact-headline { font-size: 20px; font-weight: 700; color: var(--text-0); }
.shop-compact-sub { color: var(--text-2); font-size: 13px; }
.shop-compact-actions .btn { height: 36px; padding: 8px 14px; }
.filter-left-btn { border-radius: 999px; font-weight: 700; }

.filter-drawer {
  position: fixed;
  top: 72px;
  left: -340px;
  width: 320px;
  height: calc(100vh - 72px);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: left 0.25s ease;
  z-index: 150;
  overflow-y: auto;
}
.filter-drawer.open { left: 0; }
.filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-drawer-title { font-weight: 700; font-size: 15px; }
.filter-drawer-close {
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}
.filter-sort-wrap { display: flex; flex-direction: column; gap: 6px; }
.filter-sort-label { font-size: 12px; color: var(--text-2); }
.filter-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.filter-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  font-weight: 700;
}
.filter-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-1);
}
.filter-check input { accent-color: var(--blue); }
.filter-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.shop-cat-row {
  display: flex;
  gap: 10px;
  padding: 0;
  flex-wrap: wrap;
}
.shop-cat-btn {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-1);
}
.shop-cat-btn.active {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.filter-sort-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-1);
  margin-left: 0;
  width: 100%;
}
.filter-sort-select:hover {
  border-color: var(--blue);
  color: var(--text-1);
}
.filter-sort-select option {
  background: #fff;
  color: var(--text-1);
}

/* Clean Etsy-like filter sidebar */
.shop-compact-header {
  padding: 10px 18px 4px 18px;
}
.shop-compact-headline {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.shop-compact-sub {
  font-size: 13px;
  color: #6f6f6f;
}
.filter-left-btn {
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.shop-content-wrap.shifted {
  transform: translateX(340px);
}
.filter-drawer {
  width: 340px;
  left: -360px;
  background: #f6f6f6;
  border-right: 1px solid #d7d7d7;
  padding: 14px 16px 20px 16px;
  gap: 0;
  opacity: 0;
  transition: left 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}
.filter-drawer.open { opacity: 1; }
.filter-drawer-header {
  padding: 2px 4px 8px 4px;
}
.filter-drawer-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1f1f1f;
}
.filter-reset-link {
  border: none;
  background: transparent;
  color: #4c4c4c;
  text-decoration: underline;
  font-size: 16px;
  cursor: pointer;
}
.filter-hide-btn {
  margin: 4px 4px 12px 4px;
  border: none;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 12px 18px;
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.filter-accordion {
  border-top: 1px solid #d8d8d8;
}
.filter-accordion:last-child {
  border-bottom: 1px solid #d8d8d8;
}
.filter-accordion-toggle {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  transition: background 0.27s ease;
}
.filter-accordion-toggle:hover {
  background: rgba(0, 0, 0, 0.03);
}
.filter-accordion-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  line-height: 1.1;
}
.filter-chevron {
  font-size: 18px;
  font-weight: 700;
  color: #444;
  transition: transform 0.36s ease;
  transform: rotate(0deg);
}
.filter-accordion.open .filter-chevron {
  transform: rotate(90deg);
}
.filter-accordion-body {
  padding: 0 4px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: max-height 0.48s ease, opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease;
}
.filter-accordion.open .filter-accordion-body {
  padding: 0 4px 14px 4px;
  max-height: 520px;
  overflow-y: auto;
  opacity: 1;
  transform: translateY(0);
}
.filter-check-list,
.filter-radio-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 4px 12px 4px;
}
.filter-chip {
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-1);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.filter-chip:hover {
  border-color: var(--blue-light);
}
.filter-chip.active {
  border-color: var(--blue);
  background: var(--blue-glow);
  color: var(--blue-light);
}
.filter-profile-chip {
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
}
.filter-check {
  font-size: 16px;
  color: #2a2a2a;
}
.filter-check input {
  width: 18px;
  height: 18px;
}
.filter-dropdown {
  font-size: 15px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #5b5b5b 50%), linear-gradient(135deg, #5b5b5b 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 30px;
}
.filter-price-wrap .range-input {
  height: 10px;
}
.price-input-row .field-input {
  font-size: 14px;
  height: 40px;
}

.filter-icon-img {
  width: 14px;
  height: 14px;
  display: block;
  color: var(--text-1, #333);
  transition: color 0.3s;
}
[data-theme="dark"] .filter-icon-img {
  color: #fff;
}
.filter-icon-sm {
  width: 15px;
  height: 15px;
}
.filter-icon-invert {
  color: inherit;
}

/* ── Tag Input (editor) ── */
.tag-input-wrap { margin-top: 4px; }
.tag-input:disabled { opacity: 0.5; cursor: not-allowed; }
.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: default;
  line-height: 1.4;
}
.tag-pill__remove {
  cursor: pointer;
  opacity: 0.7;
  font-size: 14px;
  line-height: 1;
  margin-left: 2px;
}
.tag-pill__remove:hover { opacity: 1; }
.tag-hint {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}

/* ── Tag Pills on Detail Page ── */
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 8px;
  grid-column: 1 / -1;
}
.detail-tag-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(41,171,226,0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(41,171,226,0.2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.detail-tag-pill:hover {
  background: var(--blue);
  color: #fff;
}
[data-theme="dark"] .detail-tag-pill {
  background: rgba(41,171,226,0.15);
  border-color: rgba(41,171,226,0.3);
}
[data-theme="dark"] .detail-tag-pill:hover {
  background: var(--blue);
  color: #fff;
}

.shop-with-drawer.no-filter-anim .shop-content-wrap,
.shop-with-drawer.no-filter-anim .filter-drawer,
.shop-with-drawer.no-filter-anim .filter-chevron,
.shop-with-drawer.no-filter-anim .filter-accordion-body {
  transition: none !important;
}

.shop-detail {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) 1fr;
  gap: 24px;
}
.shop-detail-main-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  display: block;
}
/* Video hero wrapper */
.shop-detail-media-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}
.shop-detail-main-video {
  width: 100%;
  display: block;
  border-radius: 0; /* wrapper handles rounding */
  box-shadow: none;
}
.shop-detail-video-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 2;
  user-select: none;
}
.shop-detail-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  pointer-events: none;
}
.shop-detail-tap-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  pointer-events: none;
  z-index: 3;
}
.shop-detail-thumbs {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.shop-detail-thumb {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}
.shop-detail-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.shop-detail-thumb.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-glow);
}
.shop-detail-info h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.shop-detail-meta {
  display: flex;
  gap: 10px;
  color: var(--text-2);
  font-size: 13px;
  margin-bottom: 12px;
}
.shop-type-pill {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}
.shop-detail-desc {
  color: var(--text-1);
  margin-bottom: 18px;
  line-height: 1.6;
}
.shop-detail-desc-rich p,
.shop-detail-desc-rich ul,
.shop-detail-desc-rich ol,
.shop-detail-desc-rich h3,
.shop-detail-desc-rich h4 {
  margin: 0 0 10px 0;
}
.shop-detail-desc-rich ul,
.shop-detail-desc-rich ol {
  padding-left: 20px;
}
.shop-detail-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 12px;
}
.shop-detail-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.shop-detail-buy-btn {
  flex: 1;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
}
.shop-detail-preview-btn {
  flex: 1;
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
}

/* ============================================================
   REVIEW SYSTEM
   ============================================================ */

/* Review section on detail page */
.review-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.review-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-1);
}
.review-loading {
  padding: 20px;
  color: var(--text-2);
  text-align: center;
}
.review-empty {
  padding: 32px 20px;
  color: var(--text-2);
  text-align: center;
  font-style: italic;
}
.review-write-btn {
  margin-bottom: 20px;
}

/* Review summary */
.review-summary {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid var(--border);
}
.review-summary-score {
  text-align: center;
  min-width: 100px;
}
.review-summary-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 4px;
}
.review-summary-count {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-top: 4px;
}
.review-summary-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.review-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.review-bar-label {
  font-size: 0.82rem;
  color: var(--star-gold);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}
.review-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(0,0,0,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.review-bar-fill {
  height: 100%;
  background: var(--star-gold);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.review-bar-count {
  font-size: 0.78rem;
  color: var(--text-2);
  width: 24px;
  text-align: left;
  flex-shrink: 0;
}

/* Review list */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Review card */
.review-card {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 20px;
}
.review-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.review-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.review-card-namedate {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.review-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-1);
}
.review-date {
  font-size: 0.78rem;
  color: var(--text-2);
}
.review-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--text-1);
}
.review-body {
  color: var(--text-2);
  line-height: 1.6;
  font-size: 0.92rem;
  margin: 0 0 8px 0;
}

/* Review photos */
.review-photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.review-photo-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.review-photo-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Seller reply inside review card */
.review-seller-reply {
  margin-top: 12px;
  padding: 12px 16px;
  border-left: 3px solid var(--blue);
  background: rgba(41,171,226,0.06);
  border-radius: 0 10px 10px 0;
}
.review-seller-reply-label {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--blue);
  margin-bottom: 4px;
}
.review-seller-reply p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── Star picker (review modal) ── */
.star-picker {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.star-picker-star {
  font-size: 32px;
  color: #D9D1C7;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  user-select: none;
}
.star-picker-star.active,
.star-picker-star.hover {
  color: var(--star-gold);
}
.star-picker-star:hover {
  transform: scale(1.15);
}

/* ── Review modal ── */
.review-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.review-modal {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  border: 1px solid var(--border);
  max-width: 520px;
  width: 100%;
  padding: 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
}
.review-modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text-1);
}
.review-modal-subtitle {
  color: var(--text-2);
  margin: 0 0 20px 0;
  font-size: 0.9rem;
}
.review-modal-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-1);
  margin-bottom: 6px;
}
.review-modal-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-1);
  font-size: 0.92rem;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.review-modal-input:focus {
  border-color: var(--blue);
}
.review-modal-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-1);
  font-size: 0.92rem;
  margin-bottom: 14px;
  outline: none;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.review-modal-textarea:focus {
  border-color: var(--blue);
}
.review-modal-submit {
  width: 100%;
  margin-top: 8px;
}
.review-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 1.4rem;
  color: var(--text-2);
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.review-modal-close:hover {
  background: rgba(0,0,0,0.06);
}

/* ── Photo upload in modal ── */
.review-photo-upload {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.review-photo-thumbs {
  display: flex;
  gap: 8px;
}
.review-photo-thumb-wrap {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}
.review-photo-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-photo-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.review-photo-add {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}
.review-photo-add:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ── Photo lightbox ── */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.photo-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}
.photo-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.photo-lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}
.photo-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.photo-lightbox-nav:hover {
  background: rgba(255,255,255,0.3);
}
.photo-lightbox-prev { left: 16px; }
.photo-lightbox-next { right: 16px; }

/* ── Seller review tab ── */
.seller-reviews-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.seller-review-filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.seller-review-filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.seller-review-filter-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.seller-review-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 6px;
  padding: 0 5px;
}
.seller-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.seller-review-card {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 20px;
  transition: border-color 0.2s;
}
.seller-review-card.unread {
  border-left: 3px solid var(--blue);
}
.seller-review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.seller-review-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.seller-review-mockup-link {
  font-size: 0.82rem;
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
}
.seller-review-mockup-link:hover {
  opacity: 0.8;
}
.seller-review-reply-form {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.seller-review-reply-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-1);
  font-size: 0.88rem;
  font-family: inherit;
  resize: vertical;
  min-height: 38px;
  outline: none;
  transition: border-color 0.2s;
}
.seller-review-reply-input:focus {
  border-color: var(--blue);
}

/* ── Review reminder banner ── */
.review-reminder {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.review-reminder-text {
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-1);
}
.review-reminder-dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  color: var(--text-2);
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-reminder-dismiss:hover {
  background: rgba(0,0,0,0.06);
}

/* ── Review notification in user editor sidebar ── */
.review-notif-wrap {
  margin-bottom: 8px;
}
.review-notif {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255,184,0,0.12), rgba(255,184,0,0.04));
  border: 1px solid rgba(255,184,0,0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-1);
}
.review-notif:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,184,0,0.2);
  background: linear-gradient(135deg, rgba(255,184,0,0.2), rgba(255,184,0,0.08));
}
.review-notif-star {
  font-size: 1.1rem;
  color: var(--star-gold);
}
.review-notif-done {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(141,198,63,0.08);
  border: 1px solid rgba(141,198,63,0.25);
  border-radius: 12px;
  font-size: 0.84rem;
  color: var(--text-2);
}
.review-notif-done-check {
  color: var(--green);
  font-weight: 700;
}
.review-notif-done-link {
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}
.review-notif-done-link:hover {
  opacity: 0.8;
}
[data-theme="dark"] .review-notif {
  background: linear-gradient(135deg, rgba(255,184,0,0.08), rgba(255,184,0,0.02));
  border-color: rgba(255,184,0,0.2);
}
[data-theme="dark"] .review-notif-done {
  background: rgba(141,198,63,0.05);
  border-color: rgba(141,198,63,0.15);
}

/* ── Dark theme overrides ── */
[data-theme="dark"] .review-card,
[data-theme="dark"] .seller-review-card,
[data-theme="dark"] .review-reminder,
[data-theme="dark"] .review-summary {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .review-modal {
  background: rgba(20,21,26,0.95);
  border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .review-modal-close:hover,
[data-theme="dark"] .review-reminder-dismiss:hover {
  background: rgba(255,255,255,0.08);
}
[data-theme="dark"] .review-bar-track {
  background: rgba(255,255,255,0.08);
}
[data-theme="dark"] .seller-review-filter-btn {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: var(--text-2);
}
[data-theme="dark"] .review-seller-reply {
  background: rgba(41,171,226,0.1);
}

/* ── Review responsive ── */
@media (max-width: 768px) {
  .review-summary {
    flex-direction: column;
    gap: 16px;
  }
  .review-summary-score {
    flex-direction: row;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .review-photos {
    flex-wrap: wrap;
  }
  .seller-review-reply-form {
    flex-direction: column;
  }
  .seller-review-header {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .review-card,
  .seller-review-card,
  .review-reminder {
    padding: 14px;
  }
  .review-modal {
    padding: 20px;
    margin: 10px;
  }
  .review-summary-num {
    font-size: 2rem;
  }
}

/* ============================================================
   PURCHASE HISTORY
   ============================================================ */
.purchase-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}
.purchase-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.purchase-row:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: rgba(41,171,226,0.25);
}
.purchase-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-page);
}
.purchase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.purchase-info {
  flex: 1;
  min-width: 0;
}
.purchase-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.purchase-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
}
.purchase-dot {
  opacity: 0.4;
}
.purchase-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Dark theme */
[data-theme="dark"] .purchase-row {
  background: var(--bg-card);
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .purchase-row:hover {
  border-color: rgba(41,171,226,0.3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 600px) {
  .purchase-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .purchase-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ============================================================
   MESSAGES PAGE
   ============================================================ */
.messages-body {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}
.messages-layout {
  display: flex;
  flex: 1;
  height: calc(100vh - 120px);
  min-height: 400px;
}

/* Conversation list (left) */
.conv-list {
  width: 300px;
  flex-shrink: 0;
  border-right: 1px solid rgba(0,0,0,0.08);
  overflow-y: auto;
  background: rgba(255,255,255,0.50);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
}
.conv-list-header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.conv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  flex: 1;
}
.conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}
.conv-item:hover {
  background: rgba(41,171,226,0.06);
}
.conv-item-active {
  background: rgba(41,171,226,0.08);
  border-left-color: var(--blue);
}
.conv-item-unread .conv-name {
  font-weight: 700;
}
.conv-item-unread .conv-preview {
  font-weight: 600;
  color: var(--text-1);
}
.conv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.conv-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.conv-text {
  flex: 1;
  min-width: 0;
}
.conv-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-preview {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.conv-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.conv-time {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}
.conv-unread-dot {
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chat pane (right) */
.chat-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chat-pane-empty {
  align-items: center;
  justify-content: center;
}
.chat-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.60);
  backdrop-filter: blur(18px);
  flex-shrink: 0;
}
.chat-header-name {
  font-weight: 600;
  font-size: 14px;
}
.chat-back-btn {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text-2);
  border-radius: 6px;
}
.chat-back-btn:hover {
  background: rgba(0,0,0,0.06);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-bubble {
  display: flex;
  flex-direction: column;
  max-width: 68%;
}
.chat-bubble-mine {
  align-self: flex-end;
  align-items: flex-end;
}
.chat-bubble-theirs {
  align-self: flex-start;
  align-items: flex-start;
}
.chat-bubble-text {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.45;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.chat-bubble-mine .chat-bubble-text {
  background: var(--blue);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}
.chat-bubble-theirs .chat-bubble-text {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px 16px 16px 4px;
  color: var(--text-1);
}
.chat-bubble-time {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 3px;
  padding: 0 4px;
}
.chat-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.60);
  backdrop-filter: blur(18px);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 18px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  max-height: 120px;
  outline: none;
  background: rgba(255,255,255,0.8);
  color: var(--text-1);
  transition: border-color 0.2s;
}
.chat-input:focus {
  border-color: var(--blue);
}
.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}
.chat-send-btn:hover {
  background: var(--blue-light);
}
.chat-send-btn:active {
  transform: scale(0.93);
}

/* Contact Seller in user editor sidebar */
.sidebar-contact-seller {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.sidebar-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.sidebar-contact-btn {
  width: 100%;
  justify-content: center;
}

/* Dark theme — messages */
[data-theme="dark"] .conv-list {
  background: rgba(20,21,26,0.80);
  border-right-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .conv-list-header {
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .conv-item:hover {
  background: rgba(41,171,226,0.1);
}
[data-theme="dark"] .conv-item-active {
  background: rgba(41,171,226,0.12);
}
[data-theme="dark"] .chat-header {
  background: rgba(20,21,26,0.85);
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .chat-bubble-theirs .chat-bubble-text {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .chat-input-bar {
  background: rgba(20,21,26,0.85);
  border-top-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .chat-input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: var(--text-1);
}
[data-theme="dark"] .chat-back-btn:hover {
  background: rgba(255,255,255,0.08);
}
[data-theme="dark"] .sidebar-contact-seller {
  border-top-color: rgba(255,255,255,0.08);
}

/* Responsive — messages */
@media (max-width: 700px) {
  .conv-list {
    width: 100%;
    border-right: none;
  }
  .conv-list-hidden-mobile {
    display: none;
  }
  .chat-back-btn {
    display: flex;
  }
  .chat-bubble {
    max-width: 85%;
  }
}

/* ============================================================
   NAV DROPDOWN MENUS (User + Seller)
   ============================================================ */
.nav-user-wrap, .nav-sm-wrap {
  position: relative;
  display: inline-flex;
}
.nav-avatar-btn {
  padding: 0;
  overflow: hidden;
}
.nav-avatar-sm {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.nav-avatar-initials-sm {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}
.nav-lottie-icon { pointer-events: none; }
[data-theme="dark"] .lottie-anim svg { filter: invert(1); }
.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  z-index: 1000;
  overflow: hidden;
  padding: 4px 0;
}
.nav-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: transparent;
}
.nav-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-menu-header-simple {
  padding: 12px 16px;
}
.nav-menu-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--blue);
}
.nav-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(41,171,226,0.1);
}
.nav-menu-info {
  min-width: 0;
  flex: 1;
}
.nav-menu-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-menu-email {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-menu-credits {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-menu-credits-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}
.nav-menu-credits-btn {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  background: rgba(41,171,226,0.1);
  border: 1px solid rgba(41,171,226,0.2);
  border-radius: 12px;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.nav-menu-credits-btn:hover {
  background: var(--blue);
  color: #fff;
}
.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  color: var(--text-1);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.nav-menu-item:hover {
  background: rgba(41,171,226,0.06);
}
.nav-menu-item svg {
  flex-shrink: 0;
  color: var(--text-2);
}
.nav-menu-item:hover svg {
  color: var(--blue);
}
.nav-menu-badge {
  margin-left: auto;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}
.nav-menu-divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 4px 0;
}
.nav-menu-theme {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
}
.nav-menu-theme svg {
  flex-shrink: 0;
  color: var(--text-2);
}
.nav-menu-theme-toggle {
  margin-left: auto;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  padding: 0;
}
.nav-menu-theme-toggle.active {
  background: var(--blue);
}
.nav-menu-theme-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.nav-menu-theme-toggle.active .nav-menu-theme-thumb {
  transform: translateX(18px);
}

/* Dark overrides for dropdown */
[data-theme="dark"] .nav-menu {
  background: rgba(20,21,26,0.95);
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .nav-menu-header {
  border-bottom-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .nav-menu-credits {
  border-bottom-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .nav-menu-item:hover {
  background: rgba(41,171,226,0.1);
}
[data-theme="dark"] .nav-menu-divider {
  background: rgba(255,255,255,0.08);
}
[data-theme="dark"] .nav-menu-theme-toggle {
  background: rgba(255,255,255,0.15);
}
[data-theme="dark"] .nav-menu-credits-btn {
  background: rgba(41,171,226,0.15);
  border-color: rgba(41,171,226,0.3);
}

@media (max-width: 600px) {
  .nav-menu { width: 260px; }
}

/* ============================================================
   PERSISTENT SIDEBAR (User + Seller sections)
   ============================================================ */
.main-content.has-sidebar {
  display: flex;
  flex-direction: row;
}
.main-content.has-sidebar > .panel {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}
.page-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--blue);
}
.sidebar-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(41,171,226,0.1);
}
.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-nav {
  flex: 1;
  padding: 6px 0;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  cursor: pointer;
  color: var(--text-1);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.sidebar-item:hover {
  background: rgba(41,171,226,0.06);
}
.sidebar-item.active {
  color: var(--text-0);
  font-weight: 600;
  background: rgba(41,171,226,0.08);
  border-left: 3px solid var(--blue);
  padding-left: 13px;
}
.sidebar-item svg {
  flex-shrink: 0;
  color: var(--text-2);
}
.sidebar-item:hover svg,
.sidebar-item.active svg {
  color: var(--blue);
}
.sidebar-badge {
  margin-left: auto;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}
.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 12px;
}
.sidebar-bottom {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
}
.sidebar-credits {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}

/* Dark overrides for sidebar */
[data-theme="dark"] .sidebar-item:hover {
  background: rgba(41,171,226,0.1);
}
[data-theme="dark"] .sidebar-item.active {
  background: rgba(41,171,226,0.12);
}

/* Responsive: hide sidebar on mobile */
@media (max-width: 768px) {
  .page-sidebar { display: none; }
  .main-content.has-sidebar { flex-direction: column; }
}

/* ============================================================
   NOTIFICATION DROPDOWN
   ============================================================ */
.nav-bell-wrap {
  display: inline-flex;
}
.notif-backdrop,
.nav-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
}
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: -12px;
  width: 360px;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  z-index: 1000;
  overflow: hidden;
}
.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.notif-dropdown-title {
  font-weight: 700;
  font-size: 15px;
}
.notif-mark-all {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.notif-mark-all:hover {
  background: rgba(41,171,226,0.08);
}
.notif-list {
  flex: 1;
  overflow-y: auto;
}
.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item:hover {
  background: rgba(41,171,226,0.06);
}
.notif-item.unread {
  background: rgba(41,171,226,0.04);
}
.notif-item.unread .notif-title {
  font-weight: 700;
}
.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.notif-text {
  flex: 1;
  min-width: 0;
}
.notif-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.notif-body {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.35;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-time {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 3px;
  opacity: 0.7;
}
.notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 6px;
}

/* Dark theme — notifications */
[data-theme="dark"] .notif-dropdown {
  background: rgba(20,21,26,0.95);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
[data-theme="dark"] .notif-dropdown-header {
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .notif-item {
  border-bottom-color: rgba(255,255,255,0.04);
}
[data-theme="dark"] .notif-item:hover {
  background: rgba(41,171,226,0.1);
}
[data-theme="dark"] .notif-item.unread {
  background: rgba(41,171,226,0.06);
}

/* Responsive — notifications */
@media (max-width: 600px) {
  .notif-dropdown {
    width: calc(100vw - 24px);
    right: -60px;
    max-height: 50vh;
  }
}

.shop-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  position: relative;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Square 1:1 thumbnail — Etsy standard */
.shop-card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-raised);
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg);
}

.shop-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
  border-radius: inherit;
}

.shop-card:hover .shop-card-thumb img {
  transform: scale(1.06);
}

.shop-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.22s;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

.shop-card:hover .shop-card-thumb::after {
  background: rgba(0,0,0,0.06);
}

.shop-card-video-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.shop-no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.3;
  background: var(--bg-raised);
  border-radius: inherit;
}

/* Type badge — bottom-left of thumb, offset right of heart btn */
.shop-type-badge {
  position: absolute;
  bottom: 12px;
  left: 48px;
  background: rgba(0,0,0,0.65);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* Featured badge — bottom-right of thumb, offset left of cart btn */
.shop-featured-badge {
  position: absolute;
  bottom: 12px;
  right: 48px;
  background: var(--star-gold);
  color: var(--charcoal);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  z-index: 1;
}

/* Heart / favorite button — top-left of thumb, hover-only */
.shop-heart-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1), color 0.25s ease;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
  z-index: 4;
}
.shop-card:hover .shop-heart-btn {
  opacity: 1;
  transform: scale(1);
}
.shop-heart-btn.favorited {
  opacity: 1;
  transform: scale(1);
  color: #e74c3c;
}
.shop-heart-btn:hover {
  color: #e74c3c;
  transform: scale(1.2);
}
.shop-heart-btn.favorited:hover {
  color: #ff6b6b;
  transform: scale(1.2);
}
/* Pop animation on toggle */
@keyframes heart-pop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.4); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.shop-heart-btn.pop,
.shop-cart-btn.pop { animation: heart-pop 0.4s cubic-bezier(0.34,1.56,0.64,1); }

.shop-heart-btn svg,
.shop-cart-btn svg { display: block; pointer-events: none; }

/* Cart/bag button — top-right of thumb, hover-only */
.shop-cart-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1), color 0.25s ease;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
  z-index: 4;
}
.shop-card:hover .shop-cart-btn {
  opacity: 1;
  transform: scale(1);
}
.shop-cart-btn.in-cart {
  opacity: 1;
  transform: scale(1);
  color: #2e7d32;
}
.shop-cart-btn:hover {
  color: var(--blue);
  transform: scale(1.2);
}
.shop-cart-btn.in-cart:hover {
  color: #43a047;
  transform: scale(1.2);
}

/* Nav badge (item count pill) */
.nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

/* Card info area */
.shop-card-info {
  padding: 12px 14px 14px;
}

.shop-card-shop {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 5px;
  font-weight: 500;
}

/* Product name — 2-line clamp */
.shop-card-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-0);
  margin-bottom: 7px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Star rating row */
.shop-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  font-size: 12px;
  min-height: 18px;
}

.shop-stars {
  display: flex;
  gap: 1px;
  line-height: 1;
}

.shop-star {
  font-size: 13px;
  color: #D9D1C7;
}

.shop-star.filled {
  color: var(--star-gold);
}

.shop-star.half {
  color: var(--star-gold);
  opacity: 0.5;
}

.shop-rating-score {
  font-weight: 600;
  color: var(--text-1);
  font-size: 12px;
}

.shop-rating-count {
  color: var(--text-3);
  font-size: 11px;
}

/* Price */
.shop-card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
}

.shop-price-free {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: var(--green-glow);
  color: var(--green);
  border: 1px solid rgba(141,198,63,0.3);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

/* Empty shop grid state */
.shop-empty {
  grid-column: 1 / -1;
  padding: 80px 40px;
  text-align: center;
  color: var(--text-2);
}

.shop-empty h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 8px;
}

.shop-empty p {
  font-size: 14px;
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   EDITOR LAYOUT
   ============================================================ */
.editor-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  flex: 1;
  min-height: 0;
  padding: 12px 16px;
  overflow: hidden;
}
.editor-layout.editor-layout-collapsed {
  grid-template-columns: 1fr;
  padding: 12px 12px;
  overflow-y: auto;
  overflow-x: hidden;
}
.editor-canvas-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  min-height: 0;
}
/* Zero gap between video canvas and timeline (they merge visually) */
.editor-canvas-col .video-corner-wrap + .video-timeline-wrap {
  margin-top: -4px;
}
/* Compact info bar below canvas */
.editor-canvas-col > .info-row {
  padding: 4px 10px;
  font-size: 10px;
  background: transparent;
  border: none;
  color: var(--text-3);
}
.editor-canvas-col > .info-row .info-dot {
  width: 5px; height: 5px;
}

.editor-settings-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.editor-layout.editor-layout-collapsed .editor-settings-col {
  max-width: none;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  position: relative;
  overflow: visible;
}
/* scroll-fade: CSS mask removed — dissolve is now per-element via JS opacity */

/* ============================================================
   LISTING EDITOR - 2-COLUMN LAYOUT
   ============================================================ */
.listing-editor-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
  padding-bottom: 48px; /* breathing room above scroll fade */
}
.listing-editor-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.listing-editor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Section cards */
.listing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
}
.listing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.listing-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: 0.3px;
}
.listing-card-subtitle {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}

/* Action bar — sits ABOVE the scroll container so it's never dissolved/blurred */
.listing-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  margin: 0 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}
.listing-action-bar .btn-row { margin: 0; }
.listing-action-status {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

/* Two-column field row (side by side inputs) */
.listing-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   CORNER EDITOR
   ============================================================ */
.corner-editor-wrap {
  flex: 1;
  background: var(--bg-dark);            /* keep dark for canvas work */
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 280px;
}

.corner-editor-wrap.drag-over-canvas {
  outline: 2px dashed var(--blue);
  outline-offset: -2px;
  background: rgba(41, 171, 226, 0.06);
}

.corner-editor-wrap .placeholder-text {
  color: #666;
  font-size: 14px;
  text-align: center;
  padding: 40px;
}

.corner-editor-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  height: 100%;
  user-select: none;
}

.corner-editor-inner img,
.corner-editor-inner video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.corner-editor-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.corner-editor-wrap.panzoom-enabled {
  touch-action: none;
}
.corner-editor-wrap.panzoom-enabled.hand-ready {
  cursor: grab;
}

.corner-editor-wrap.panzoom-enabled.hand-dragging {
  cursor: grabbing;
}

.zoom-rail {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  background: rgba(26, 31, 46, 0.82);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.zoom-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #4a516d;
  background: #2b3145;
  color: #e8ecff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.zoom-btn:hover {
  border-color: #6fa9ff;
  color: #ffffff;
}

.zoom-range {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 20px;
  height: 130px;
  cursor: ns-resize;
  background: transparent;
}

.zoom-value {
  font-size: 11px;
  color: #cbd5ff;
  min-width: 42px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   EDITOR TOOLBAR — liquid glass (matches theme-switch)
   ============================================================ */
.editor-toolbar {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateX(-8px) translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px;
  border: none;
  border-radius: 18px;
  background-color: rgba(187,187,188,0.36);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.25),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.90),
    inset -2px -2px 0px -2px rgba(255,255,255,0.80),
    inset -3px -8px 1px -6px rgba(255,255,255,0.60),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.10),
    inset -1.5px 2.5px 0px -2px rgba(0,0,0,0.15),
    inset 0px 3px 4px -2px rgba(0,0,0,0.15),
    inset 2px -6.5px 1px -4px rgba(0,0,0,0.08),
    0px 1px 5px 0px rgba(0,0,0,0.12),
    0px 8px 24px 0px rgba(0,0,0,0.10);
  opacity: 0;
  pointer-events: auto;
  transition:
    opacity 0.3s cubic-bezier(1,0,0.4,1),
    transform 0.3s cubic-bezier(1,0,0.4,1),
    background-color 0.4s cubic-bezier(1,0,0.4,1),
    box-shadow 0.4s cubic-bezier(1,0,0.4,1);
}
.editor-toolbar.etb-visible {
  opacity: 1;
  transform: translateX(0) translateY(-50%);
}
.editor-toolbar:hover {
  background-color: rgba(187,187,188,0.42);
}
/* Dark mode — more visible on dark canvas */
[data-theme="dark"] .editor-toolbar {
  background-color: rgba(60,63,80,0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.22),
    inset -2px -2px 0px -2px rgba(255,255,255,0.18),
    inset -3px -8px 1px -6px rgba(255,255,255,0.12),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.30),
    inset -1.5px 2.5px 0px -2px rgba(0,0,0,0.35),
    inset 0px 3px 4px -2px rgba(0,0,0,0.35),
    inset 2px -6.5px 1px -4px rgba(0,0,0,0.20),
    0px 1px 5px 0px rgba(0,0,0,0.30),
    0px 8px 24px 0px rgba(0,0,0,0.25);
}
[data-theme="dark"] .editor-toolbar:hover {
  background-color: rgba(70,73,95,0.62);
}

/* ── Tool buttons — glass thumb style ── */
.etb-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 99em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: inherit;
  /* Visible resting glass thumb — like theme-switch__thumb */
  background-color: rgba(187,187,188,0.28);
  color: rgba(40,40,50,0.75);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 2px 1px 0px -1px rgba(255,255,255,0.80),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.60),
    inset -2px -6px 1px -5px rgba(255,255,255,0.40),
    inset -1px 2px 3px -1px rgba(0,0,0,0.12),
    inset 0px -4px 1px -2px rgba(0,0,0,0.06),
    0px 2px 4px 0px rgba(0,0,0,0.06);
  transition:
    background-color 0.25s cubic-bezier(1,0,0.4,1),
    box-shadow 0.25s cubic-bezier(1,0,0.4,1),
    color 0.2s ease;
}
.etb-btn:hover {
  background-color: rgba(187,187,188,0.42);
  color: rgba(30,30,40,0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.18),
    inset 2px 1px 0px -1px rgba(255,255,255,0.90),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.70),
    inset -2px -6px 1px -5px rgba(255,255,255,0.50),
    inset -1px 2px 3px -1px rgba(0,0,0,0.15),
    inset 0px -4px 1px -2px rgba(0,0,0,0.08),
    0px 3px 8px 0px rgba(0,0,0,0.10);
}
.etb-btn.etb-active {
  background-color: rgba(41,171,226,0.35);
  color: #fff;
  box-shadow:
    inset 0 0 0 1.5px rgba(41,171,226,0.50),
    inset 2px 1px 0px -1px rgba(255,255,255,0.70),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.50),
    inset -2px -6px 1px -5px rgba(255,255,255,0.35),
    inset -1px 2px 3px -1px rgba(0,0,0,0.15),
    0px 2px 8px 0px rgba(41,171,226,0.25),
    0px 0px 12px 0px rgba(41,171,226,0.10);
}
/* Dark mode buttons — bright enough on dark bg */
[data-theme="dark"] .etb-btn {
  background-color: rgba(187,187,188,0.14);
  color: rgba(235,235,245,0.65);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 2px 1px 0px -1px rgba(255,255,255,0.22),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.16),
    inset -2px -6px 1px -5px rgba(255,255,255,0.10),
    inset -1px 2px 3px -1px rgba(0,0,0,0.30),
    inset 0px -4px 1px -2px rgba(0,0,0,0.15),
    0px 2px 4px 0px rgba(0,0,0,0.15);
}
[data-theme="dark"] .etb-btn:hover {
  background-color: rgba(187,187,188,0.22);
  color: rgba(235,235,245,0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 2px 1px 0px -1px rgba(255,255,255,0.30),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.22),
    inset -2px -6px 1px -5px rgba(255,255,255,0.15),
    inset -1px 2px 3px -1px rgba(0,0,0,0.35),
    inset 0px -4px 1px -2px rgba(0,0,0,0.18),
    0px 3px 8px 0px rgba(0,0,0,0.20);
}
[data-theme="dark"] .etb-btn.etb-active {
  background-color: rgba(41,171,226,0.30);
  color: var(--blue-light);
  box-shadow:
    inset 0 0 0 1.5px rgba(41,171,226,0.40),
    inset 2px 1px 0px -1px rgba(255,255,255,0.25),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.18),
    inset -2px -6px 1px -5px rgba(255,255,255,0.12),
    inset -1px 2px 3px -1px rgba(0,0,0,0.35),
    0px 2px 8px 0px rgba(41,171,226,0.20),
    0px 0px 12px 0px rgba(41,171,226,0.08);
}

/* Snap toggle — ON state (green accent) */
.etb-btn.etb-toggle.etb-snap-on {
  background-color: rgba(141,198,63,0.30);
  color: #8DC63F;
  box-shadow:
    inset 0 0 0 1.5px rgba(141,198,63,0.45),
    inset 2px 1px 0px -1px rgba(255,255,255,0.70),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.50),
    inset -2px -6px 1px -5px rgba(255,255,255,0.35),
    inset -1px 2px 3px -1px rgba(0,0,0,0.15),
    0px 2px 8px 0px rgba(141,198,63,0.20),
    0px 0px 12px 0px rgba(141,198,63,0.08);
}
.etb-btn.etb-toggle:not(.etb-snap-on) {
  opacity: 0.5;
}
[data-theme="dark"] .etb-btn.etb-toggle.etb-snap-on {
  background-color: rgba(141,198,63,0.25);
  color: #8DC63F;
  box-shadow:
    inset 0 0 0 1.5px rgba(141,198,63,0.35),
    inset 2px 1px 0px -1px rgba(255,255,255,0.22),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.16),
    inset -2px -6px 1px -5px rgba(255,255,255,0.10),
    inset -1px 2px 3px -1px rgba(0,0,0,0.35),
    0px 2px 8px 0px rgba(141,198,63,0.18),
    0px 0px 12px 0px rgba(141,198,63,0.06);
}

.etb-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
  pointer-events: none;
}

/* ── Divider ── */
.etb-divider {
  width: 24px;
  height: 1px;
  background: rgba(0,0,0,0.10);
  margin: 3px 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25);
}
[data-theme="dark"] .etb-divider {
  background: rgba(0,0,0,0.25);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

/* ── Split circle: color + texture ── */
.etb-color-tex {
  width: 36px;
  height: 36px;
  border-radius: 99em;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border: none;
  padding: 0;
  /* Glass rim — matches theme-switch__thumb */
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.15),
    inset 2px 1px 0px -1px rgba(255,255,255,0.80),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.60),
    inset -2px -6px 1px -5px rgba(255,255,255,0.40),
    inset -1px 2px 3px -1px rgba(0,0,0,0.15),
    0px 3px 8px 0px rgba(0,0,0,0.12);
  transition: box-shadow 0.25s cubic-bezier(1,0,0.4,1), transform 0.15s ease;
}
.etb-color-tex:hover {
  transform: scale(1.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.22),
    inset 2px 1px 0px -1px rgba(255,255,255,0.90),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.70),
    inset -2px -6px 1px -5px rgba(255,255,255,0.50),
    inset -1px 2px 3px -1px rgba(0,0,0,0.18),
    0px 4px 12px 0px rgba(0,0,0,0.18);
}
[data-theme="dark"] .etb-color-tex {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 2px 1px 0px -1px rgba(255,255,255,0.22),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.16),
    inset -2px -6px 1px -5px rgba(255,255,255,0.10),
    inset -1px 2px 3px -1px rgba(0,0,0,0.35),
    0px 3px 8px 0px rgba(0,0,0,0.25);
}
[data-theme="dark"] .etb-color-tex:hover {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 2px 1px 0px -1px rgba(255,255,255,0.30),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.22),
    inset -2px -6px 1px -5px rgba(255,255,255,0.15),
    inset -1px 2px 3px -1px rgba(0,0,0,0.40),
    0px 4px 14px 0px rgba(0,0,0,0.30);
}
.etb-ct-color,
.etb-ct-tex {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  cursor: pointer;
}
.etb-ct-color {
  left: 0;
  border-radius: 99em 0 0 99em;
}
.etb-ct-tex {
  right: 0;
  border-radius: 0 99em 99em 0;
  background-size: 8px 8px;
  background-repeat: repeat;
}
/* "no texture" diagonal lines indicator */
.etb-ct-tex.etb-ct-no-tex {
  background: repeating-linear-gradient(
    -45deg,
    rgba(180,180,190,0.4) 0px,
    rgba(180,180,190,0.4) 1px,
    rgba(100,100,110,0.25) 1px,
    rgba(100,100,110,0.25) 4px
  );
}
[data-theme="dark"] .etb-ct-tex.etb-ct-no-tex {
  background: repeating-linear-gradient(
    -45deg,
    rgba(200,200,210,0.25) 0px,
    rgba(200,200,210,0.25) 1px,
    rgba(60,60,70,0.5) 1px,
    rgba(60,60,70,0.5) 4px
  );
}
/* Vertical split line */
.etb-color-tex::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: rgba(255,255,255,0.45);
  box-shadow: 1px 0 0 rgba(0,0,0,0.08);
  z-index: 2;
  pointer-events: none;
}
[data-theme="dark"] .etb-color-tex::after {
  background: rgba(255,255,255,0.12);
  box-shadow: 1px 0 0 rgba(0,0,0,0.25);
}
/* Hidden native color input */
.etb-ct-color-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* ── Color Picker Popup ── */
.cp-popup {
  position: fixed;
  z-index: 50;
  width: 260px;
  padding: 14px;
  border-radius: 16px;
  background-color: rgba(240,240,245,0.75);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.30),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.90),
    inset -2px -2px 0px -2px rgba(255,255,255,0.80),
    inset -3px -8px 1px -6px rgba(255,255,255,0.60),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.08),
    inset -1.5px 2.5px 0px -2px rgba(0,0,0,0.12),
    0px 4px 12px 0px rgba(0,0,0,0.10),
    0px 12px 40px 0px rgba(0,0,0,0.12);
  color: #1d1d1f;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: cpPopIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes cpPopIn {
  from { opacity: 0; transform: scale(0.92) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
[data-theme="dark"] .cp-popup {
  background-color: rgba(40,42,54,0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.20),
    inset -2px -2px 0px -2px rgba(255,255,255,0.16),
    inset -3px -8px 1px -6px rgba(255,255,255,0.10),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.25),
    inset -1.5px 2.5px 0px -2px rgba(0,0,0,0.30),
    0px 4px 12px 0px rgba(0,0,0,0.30),
    0px 12px 40px 0px rgba(0,0,0,0.35);
  color: #e5e5ea;
}
.cp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cp-title {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.55;
}
.cp-preview-wrap {
  width: 44px;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  border: 1px solid var(--border);
}
.cp-preview-old,
.cp-preview-new {
  width: 50%;
  height: 100%;
}
.cp-sv-wrap {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  cursor: crosshair;
}
.cp-sv-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.cp-sv-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(0,0,0,0.2);
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.cp-hue-wrap {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
}
.cp-hue-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.cp-hue-cursor {
  position: absolute;
  top: -1px;
  width: 6px;
  height: calc(100% + 2px);
  border-radius: 3px;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.3);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  pointer-events: none;
  transform: translateX(-50%);
}
.cp-hex-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cp-hex-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.5;
  user-select: none;
}
.cp-hex-input {
  flex: 1;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 12px;
  padding: 4px 6px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--bg-input, rgba(255,255,255,0.5));
  color: var(--text-1);
  outline: none;
  text-transform: uppercase;
  max-width: 80px;
}
.cp-hex-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-glow);
}
.cp-hex-input.cp-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220,38,38,0.15);
}
[data-theme="dark"] .cp-hex-input {
  background: rgba(255,255,255,0.06);
}
.cp-section { display: flex; flex-direction: column; gap: 4px; }
.cp-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.45;
}
.cp-swatch-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.cp-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s;
  flex-shrink: 0;
}
.cp-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
[data-theme="dark"] .cp-swatch {
  border-color: rgba(255,255,255,0.12);
}
.cp-swatch-add {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px dashed var(--border);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-3, #999);
  transition: border-color 0.15s, color 0.15s, transform 0.12s;
  padding: 0;
}
.cp-swatch-add:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: scale(1.12);
}

/* ── Texture popup — liquid glass ── */
.tex-popup {
  position: absolute;
  z-index: 50;
  width: 270px;
  padding: 14px;
  border-radius: 16px;
  /* Light mode glass */
  background-color: rgba(240,240,245,0.75);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.30),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.90),
    inset -2px -2px 0px -2px rgba(255,255,255,0.80),
    inset -3px -8px 1px -6px rgba(255,255,255,0.60),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.08),
    inset -1.5px 2.5px 0px -2px rgba(0,0,0,0.12),
    0px 4px 12px 0px rgba(0,0,0,0.10),
    0px 12px 40px 0px rgba(0,0,0,0.12);
  color: #1d1d1f;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: texPopIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes texPopIn {
  from { opacity: 0; transform: scale(0.92) translateX(-6px); }
  to   { opacity: 1; transform: scale(1) translateX(0); }
}
[data-theme="dark"] .tex-popup {
  background-color: rgba(40,42,54,0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.20),
    inset -2px -2px 0px -2px rgba(255,255,255,0.16),
    inset -3px -8px 1px -6px rgba(255,255,255,0.10),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.25),
    inset -1.5px 2.5px 0px -2px rgba(0,0,0,0.30),
    0px 4px 12px 0px rgba(0,0,0,0.30),
    0px 12px 40px 0px rgba(0,0,0,0.35);
  color: #e5e5ea;
}
.tex-popup-title {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.55;
}

/* ── Quick row: 5 swatches + "..." button ── */
.tex-popup-quick-row {
  display: flex;
  gap: 5px;
  align-items: center;
}
.tex-popup-swatch {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  background-size: 10px 10px;
  background-repeat: repeat;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 1px 1px 0 rgba(255,255,255,0.30),
    0 2px 4px rgba(0,0,0,0.10);
}
[data-theme="dark"] .tex-popup-swatch {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1px 1px 0 rgba(255,255,255,0.10),
    0 2px 4px rgba(0,0,0,0.25);
}
.tex-popup-swatch:hover {
  transform: scale(1.10);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.20),
    inset 1px 1px 0 rgba(255,255,255,0.40),
    0 3px 8px rgba(0,0,0,0.15);
}
.tex-popup-swatch.tex-active {
  border-color: var(--blue);
  box-shadow:
    0 0 0 2px rgba(41,171,226,0.30),
    inset 0 0 0 1px rgba(41,171,226,0.20),
    0 2px 8px rgba(41,171,226,0.15);
}

/* "+" add custom pattern button (quick row) */
.tex-popup-add-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(60,60,70,0.55);
  background: rgba(187,187,188,0.12);
  border: 1.5px dashed rgba(120,120,128,0.25);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}
.tex-popup-add-btn:hover {
  background: rgba(41,171,226,0.10);
  border-color: var(--blue);
  color: var(--blue);
  transform: scale(1.08);
}
[data-theme="dark"] .tex-popup-add-btn {
  color: rgba(235,235,245,0.45);
  background: rgba(187,187,188,0.08);
  border-color: rgba(200,200,210,0.15);
}
[data-theme="dark"] .tex-popup-add-btn:hover {
  background: rgba(41,171,226,0.15);
  border-color: var(--blue);
  color: var(--blue-light);
}

/* "+" add custom pattern button (browser grid) */
.pb-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(187,187,188,0.10) !important;
  background-image: none !important;
  border: 1.5px dashed rgba(120,120,128,0.25);
  color: rgba(60,60,70,0.5);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}
.pb-add-btn:hover {
  background: rgba(41,171,226,0.10) !important;
  border-color: var(--blue);
  color: var(--blue);
  transform: scale(1.04);
}
[data-theme="dark"] .pb-add-btn {
  background: rgba(187,187,188,0.06) !important;
  border-color: rgba(200,200,210,0.15);
  color: rgba(235,235,245,0.4);
}
[data-theme="dark"] .pb-add-btn:hover {
  background: rgba(41,171,226,0.15) !important;
  border-color: var(--blue);
  color: var(--blue-light);
}

/* "..." more button */
.tex-popup-more-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(60,60,70,0.55);
  background: rgba(187,187,188,0.15);
  border: 1.5px dashed rgba(120,120,128,0.25);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}
.tex-popup-more-btn:hover {
  background: rgba(41,171,226,0.10);
  border-color: var(--blue);
  color: var(--blue);
  transform: scale(1.08);
}
[data-theme="dark"] .tex-popup-more-btn {
  color: rgba(235,235,245,0.45);
  background: rgba(187,187,188,0.08);
  border-color: rgba(200,200,210,0.15);
}
[data-theme="dark"] .tex-popup-more-btn:hover {
  background: rgba(41,171,226,0.15);
  border-color: var(--blue);
  color: var(--blue-light);
}

.tex-popup-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tex-popup-row label {
  font-size: 11px;
  font-weight: 600;
  min-width: 44px;
  opacity: 0.6;
}
.tex-popup-slider {
  flex: 1;
  height: 4px;
  accent-color: var(--blue);
  cursor: pointer;
}
.tex-popup-val {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 30px;
  text-align: right;
  opacity: 0.6;
}

/* ── Rotation controls ── */
.tex-popup-rot-row {
  gap: 5px;
}
.tex-rot-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
  background: rgba(187,187,188,0.18);
  transition: background 0.15s, color 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.tex-rot-btn:hover {
  background: rgba(41,171,226,0.18);
  color: var(--blue);
  transform: scale(1.08);
}
.tex-rot-btn:active {
  transform: scale(0.95);
}
[data-theme="dark"] .tex-rot-btn {
  background: rgba(187,187,188,0.10);
}
[data-theme="dark"] .tex-rot-btn:hover {
  background: rgba(41,171,226,0.22);
  color: var(--blue-light);
}
.tex-rot-input {
  width: 44px;
  height: 26px;
  border: 1.5px solid rgba(120,120,128,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.5);
  color: inherit;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 0 2px;
  flex-shrink: 0;
  transition: border-color 0.15s;
  -moz-appearance: textfield;
}
.tex-rot-input::-webkit-inner-spin-button,
.tex-rot-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tex-rot-input:focus {
  outline: none;
  border-color: var(--blue);
}
[data-theme="dark"] .tex-rot-input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(200,200,210,0.12);
}
[data-theme="dark"] .tex-rot-input:focus {
  border-color: var(--blue);
}

/* ── Axis Lock Buttons ── */
.tex-popup-lock-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tex-lock-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 8px;
  border: 1.5px solid rgba(120,120,128,0.2);
  border-radius: 6px;
  cursor: pointer;
  color: inherit;
  background: rgba(187,187,188,0.12);
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.tex-lock-btn svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.tex-lock-btn:hover {
  background: rgba(41,171,226,0.12);
  border-color: rgba(41,171,226,0.3);
  color: var(--blue);
  transform: scale(1.04);
}
.tex-lock-btn:active {
  transform: scale(0.95);
}
.tex-lock-btn.tex-lock-on {
  background: rgba(41,171,226,0.18);
  border-color: rgba(41,171,226,0.45);
  color: var(--blue);
}
[data-theme="dark"] .tex-lock-btn {
  background: rgba(187,187,188,0.08);
  border-color: rgba(120,120,128,0.15);
}
[data-theme="dark"] .tex-lock-btn:hover {
  background: rgba(41,171,226,0.18);
  border-color: rgba(41,171,226,0.35);
  color: var(--blue-light);
}
[data-theme="dark"] .tex-lock-btn.tex-lock-on {
  background: rgba(41,171,226,0.22);
  border-color: rgba(41,171,226,0.5);
  color: var(--blue-light);
}

.tex-popup-remove {
  background: rgba(220,38,38,0.06);
  border: 1.5px solid rgba(220,38,38,0.25);
  border-radius: 10px;
  color: #ef4444;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.tex-popup-remove:hover {
  background: rgba(220,38,38,0.12);
  border-color: rgba(220,38,38,0.45);
}
[data-theme="dark"] .tex-popup-remove {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.20);
  color: #f87171;
}
[data-theme="dark"] .tex-popup-remove:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.35);
}

/* ── Pattern Browser (full grid popup from "..." button) ── */
.pattern-browser {
  position: fixed;
  z-index: 55;
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
  padding: 14px;
  border-radius: 16px;
  background-color: rgba(240,240,245,0.80);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.30),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.90),
    inset -2px -2px 0px -2px rgba(255,255,255,0.80),
    inset -3px -8px 1px -6px rgba(255,255,255,0.60),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.08),
    inset -1.5px 2.5px 0px -2px rgba(0,0,0,0.12),
    0px 6px 20px 0px rgba(0,0,0,0.12),
    0px 16px 50px 0px rgba(0,0,0,0.14);
  color: #1d1d1f;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: texPopIn 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
[data-theme="dark"] .pattern-browser {
  background-color: rgba(40,42,54,0.85);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.20),
    inset -2px -2px 0px -2px rgba(255,255,255,0.16),
    inset -3px -8px 1px -6px rgba(255,255,255,0.10),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.25),
    inset -1.5px 2.5px 0px -2px rgba(0,0,0,0.30),
    0px 6px 20px 0px rgba(0,0,0,0.30),
    0px 16px 50px 0px rgba(0,0,0,0.40);
  color: #e5e5ea;
}
.pb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pb-title {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
}
.pb-close {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  background: rgba(0,0,0,0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.5;
  transition: opacity 0.15s, background 0.15s;
  padding: 0;
}
.pb-close:hover {
  opacity: 1;
  background: rgba(0,0,0,0.12);
}
[data-theme="dark"] .pb-close {
  background: rgba(255,255,255,0.06);
}
[data-theme="dark"] .pb-close:hover {
  background: rgba(255,255,255,0.12);
}
.pb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.pb-swatch {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 2.5px solid transparent;
  cursor: pointer;
  background-size: 12px 12px;
  background-repeat: repeat;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 1px 1px 0 rgba(255,255,255,0.30),
    0 2px 4px rgba(0,0,0,0.10);
}
[data-theme="dark"] .pb-swatch {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1px 1px 0 rgba(255,255,255,0.10),
    0 2px 4px rgba(0,0,0,0.25);
}
.pb-swatch:hover {
  transform: scale(1.06);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.20),
    inset 1px 1px 0 rgba(255,255,255,0.40),
    0 3px 8px rgba(0,0,0,0.15);
}
.pb-swatch.tex-active {
  border-color: var(--blue);
  box-shadow:
    0 0 0 2px rgba(41,171,226,0.30),
    inset 0 0 0 1px rgba(41,171,226,0.20),
    0 2px 8px rgba(41,171,226,0.15);
}
.pb-swatch-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2px 4px;
  font-size: 8px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Tool cursors ── */
.corner-editor-wrap.tool-hand {
  cursor: grab !important;
}
.corner-editor-wrap.tool-hand.hand-dragging {
  cursor: grabbing !important;
}
.corner-editor-wrap.tool-zoom {
  cursor: zoom-in !important;
}
.corner-editor-wrap.tool-rotate {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath d='M12 4a8 8 0 1 0 6.93 4H16' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpolyline points='16,4 19,4 19,8' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 12 12, crosshair !important;
}
[data-theme="dark"] .corner-editor-wrap.tool-rotate {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath d='M12 4a8 8 0 1 0 6.93 4H16' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpolyline points='16,4 19,4 19,8' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 12 12, crosshair !important;
}
.corner-editor-wrap:has(.caf-isolation-overlay) .editor-toolbar {
  display: none;
}
@media (max-width: 600px) {
  .editor-toolbar { left: 6px; padding: 4px; gap: 1px; border-radius: 12px; }
  .etb-btn { width: 30px; height: 30px; }
  .etb-btn svg { width: 15px; height: 15px; }
  .etb-color-tex { width: 30px; height: 30px; }
  .tex-popup { width: 210px; padding: 10px; }
  .tex-popup-swatch, .tex-popup-more-btn, .tex-popup-add-btn { width: 30px; height: 30px; }
  .pattern-browser { width: 250px; }
  .pb-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Editor tabs */
.editor-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-raised);
  padding: 3px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: fit-content;
}

.editor-tab {
  padding: 6px 18px;
  border: none;
  background: transparent;
  color: var(--text-2);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.editor-tab:hover { color: var(--text-0); }
.editor-tab.active {
  background: var(--bg-card);
  color: var(--blue);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Controls hint */
.controls-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: #888;  /* muted on dark bg */
  padding: 7px 12px;
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
}
.controls-hint span { display: flex; align-items: center; gap: 4px; }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-3);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
}
.field-hint {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}
.field-hint-folder {
  font-size: 11px;
  color: var(--text-3);
  padding: 4px 8px;
  background: var(--bg-raised);
  border-radius: 6px;
  border: 1px dashed var(--border);
  margin-top: -8px;
}

.field-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-0);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  width: 100%;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
  font-family: inherit;
}

.field-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.field-input::placeholder { color: var(--text-3); }

select.field-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A8A29E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.richtext-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.richtext-btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-1);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.richtext-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.richtext-editor {
  min-height: 170px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-0);
}
.richtext-editor:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.richtext-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--text-3);
}

.listing-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.listing-image-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-raised);
  overflow: hidden;
}
.listing-image-item img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
}
.listing-image-tools {
  display: flex;
  gap: 6px;
  padding: 8px;
}
.listing-image-tools .btn {
  flex: 1;
}
.listing-image-empty {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  color: var(--text-2);
  font-size: 12px;
}
.listing-filter-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-listing-preview-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-raised);
  padding: 10px;
}
.admin-listing-preview-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-listing-preview-media {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.admin-listing-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  background: var(--bg-raised);
}
.admin-listing-preview-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-listing-preview-shop {
  font-size: 12px;
  color: var(--text-2);
}
.admin-listing-preview-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-0);
}
.admin-listing-preview-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
}
.admin-listing-thumb-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.admin-listing-thumb-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.admin-listing-preview-detail {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-size: 13px;
  color: var(--text-1);
  line-height: 1.6;
}
.admin-listing-preview-detail p,
.admin-listing-preview-detail ul,
.admin-listing-preview-detail ol,
.admin-listing-preview-detail h3,
.admin-listing-preview-detail h4 {
  margin: 0 0 8px 0;
}

/* Upload button */
.upload-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-raised);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.upload-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-glow); }
.upload-btn.has-file {
  border-style: solid;
  border-color: var(--success);
  color: var(--success);
  background: rgba(5,150,105,0.06);
}

/* Range slider — glass style */
.range-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.range-input {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
}

.range-input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  margin-top: -8px;
  /* Glass thumb */
  background: rgba(255,255,255,0.92);
  box-shadow:
    0 1px 8px 0 rgba(0,30,63,0.12),
    0 0 2px 0 rgba(0,9,20,0.08),
    inset 0 0 12px rgba(255,255,255,0.6),
    inset 1px 1px 0 rgba(69,168,243,0.15),
    inset -1px -1px 0 rgba(69,168,243,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.range-input::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow:
    0 2px 12px 0 rgba(0,30,63,0.18),
    0 0 2px 0 rgba(0,9,20,0.10),
    inset 0 0 16px rgba(255,255,255,0.7),
    inset 1px 1px 0 rgba(69,168,243,0.20),
    inset -1px -1px 0 rgba(69,168,243,0.12);
}
.range-input::-webkit-slider-thumb:active {
  transform: scaleY(0.94) scaleX(1.08);
}

/* Firefox */
.range-input::-moz-range-track {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  border: none;
}
.range-input::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  background: rgba(255,255,255,0.92);
  box-shadow:
    0 1px 8px 0 rgba(0,30,63,0.12),
    0 0 2px 0 rgba(0,9,20,0.08),
    inset 0 0 12px rgba(255,255,255,0.6),
    inset 1px 1px 0 rgba(69,168,243,0.15),
    inset -1px -1px 0 rgba(69,168,243,0.08);
}

/* Dark mode slider */
[data-theme="dark"] .range-input {
  background: rgba(255,255,255,0.08);
}
[data-theme="dark"] .range-input::-webkit-slider-thumb {
  background: rgba(255,255,255,0.12);
  box-shadow:
    0 1px 8px 0 rgba(0,0,0,0.3),
    0 0 2px 0 rgba(0,0,0,0.15),
    inset 0 0 14px rgba(255,255,255,0.08),
    inset 1px 1px 0 rgba(255,255,255,0.10),
    inset -1px -1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(4px);
}
[data-theme="dark"] .range-input::-webkit-slider-thumb:hover {
  background: rgba(255,255,255,0.18);
  box-shadow:
    0 2px 12px 0 rgba(41,171,226,0.20),
    0 0 2px 0 rgba(0,0,0,0.20),
    inset 0 0 16px rgba(255,255,255,0.12),
    inset 1px 1px 0 rgba(255,255,255,0.14),
    inset -1px -1px 0 rgba(255,255,255,0.06);
}
[data-theme="dark"] .range-input::-moz-range-track {
  background: rgba(255,255,255,0.08);
}
[data-theme="dark"] .range-input::-moz-range-thumb {
  background: rgba(255,255,255,0.12);
  box-shadow:
    0 1px 8px 0 rgba(0,0,0,0.3),
    inset 0 0 14px rgba(255,255,255,0.08),
    inset 1px 1px 0 rgba(255,255,255,0.10);
}

.range-value {
  font-size: 12px;
  color: var(--text-1);
  min-width: 38px;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(41,171,226,0.25);
}
.btn-primary:hover { background: #1E90C0; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(41,171,226,0.3); }

.btn-secondary {
  background: var(--bg-raised);
  color: var(--text-0);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-glow); }

.btn-danger {
  background: rgba(220,38,38,0.08);
  color: var(--danger);
  border: 1px solid rgba(220,38,38,0.2);
}
.btn-danger:hover { background: rgba(220,38,38,0.14); border-color: var(--danger); }

.btn-sm { padding: 5px 13px; font-size: 12px; }
.btn-full { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   INFO ROW
   ============================================================ */
.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-2);
  padding: 6px 10px;
  background: var(--bg-raised);
  border-radius: 8px;
  line-height: 1.4;
}

.info-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.info-tip {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 11px;
  color: var(--text-3);
}
.info-tip strong {
  font-size: 10px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   MOCKUP PREVIEW RENDERER
   ============================================================ */
.mockup-preview-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  position: relative;
}

.mockup-renderer {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}

.layer-base {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.layer-art {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transform-origin: 0 0;
  pointer-events: none;
  object-fit: fill;
}

.layer-glass {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transform-origin: 0 0;
  pointer-events: none;
  object-fit: cover;
}

/* ============================================================
   USER EDITOR LAYOUT
   ============================================================ */
/* Floating back button in user editor preview area */
.user-editor-back-float {
  align-self: flex-start;
  margin-bottom: 4px;
  z-index: 5;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: var(--radius);
}

.user-editor-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 12px;
  padding: 12px 16px;
  height: 100%;
  overflow: hidden;
}

.user-canvas-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  min-height: 280px;
}

.user-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 14px;
  box-shadow: var(--shadow-card);
}
/* Tighter section labels inside user sidebar */
.user-sidebar .section-label {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--text-3);
  padding-bottom: 0;
  border-bottom: none;
  margin-top: 6px;
  margin-bottom: 2px;
}
/* Compact dropzone inside user sidebar */
.user-sidebar .dropzone {
  padding: 18px 14px;
}
.user-sidebar .dropzone .dz-icon { font-size: 26px; margin-bottom: 4px; }
.user-sidebar .dropzone .dz-text { font-size: 13px; }
.user-sidebar .dropzone .dz-sub { font-size: 11px; }
/* Compact info rows in sidebar */
.user-sidebar .info-row { font-size: 11px; padding: 3px 0; }
.user-sidebar .info-tip { font-size: 10px; }

/* ============================================================
   DROP ZONE
   ============================================================ */
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-raised);
  color: var(--text-2);
}

.dropzone:hover, .dropzone.drag-over {
  border-color: var(--blue);
  background: var(--blue-glow);
  color: var(--blue);
}

.dropzone .dz-icon { font-size: 36px; margin-bottom: 10px; display: block; }
.dropzone .dz-text { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--text-1); }
.dropzone .dz-sub { font-size: 12px; color: var(--text-3); }
.dropzone.has-file { border-style: solid; border-color: var(--blue); background: var(--blue-glow); }

/* Art thumbnail */
.art-thumb {
  width: 100%;
  border-radius: var(--radius);
  object-fit: contain;
  background: repeating-conic-gradient(#e8e8e8 0% 25%, #f5f5f5 0% 50%) 0 0 / 20px 20px;
  max-height: 160px;
  border: 1px solid var(--border);
}

/* Batch art thumbnail strip */
.art-batch-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}
.art-batch-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: visible;
  border: 2px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s;
  flex-shrink: 0;
}
.art-batch-thumb.active { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-glow); }
.art-batch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.art-batch-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-0);
  color: var(--bg-card);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 2;
  line-height: 1;
  overflow: hidden;
  padding: 3px;
}
.art-batch-remove-icon {
  width: 100%;
  height: 100%;
}
.art-batch-thumb:hover .art-batch-remove { opacity: 1; }
.art-batch-remove:hover { background: #e74c3c; }

/* ============================================================
   ADMIN AUTH
   ============================================================ */
.auth-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 32px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  width: 380px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.auth-icon { margin-bottom: 16px; display: block; }
.auth-logo-img { height: 48px; width: auto; object-fit: contain; }

.auth-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}

.auth-card p {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.auth-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 10px;
  min-height: 18px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 40px;
  color: var(--text-2);
  text-align: center;
}

.empty-icon { font-size: 56px; margin-bottom: 8px; opacity: 0.6; }
.empty-state h3 { font-size: 20px; color: var(--text-0); font-weight: 700; }
.empty-state p { font-size: 14px; max-width: 280px; line-height: 1.6; }

/* ============================================================
   MY MOCKUPS — Folder Layout
   ============================================================ */
.my-mockups-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.my-mockups-sidebar {
  border-right: 1px solid var(--border);
  padding: 12px 0;
  overflow-y: auto;
  background: var(--bg-raised);
  display: flex;
  flex-direction: column;
}
.my-mockups-content {
  padding: 24px;
  overflow-y: auto;
}
.my-mockups-search {
  padding: 0 24px 16px;
}
.my-mockups-search input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  font-size: 14px;
  color: var(--text-0);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.my-mockups-search input::placeholder { color: var(--text-3); }
.my-mockups-search input:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.my-mockups-search-wrap {
  position: relative;
}
.my-mockups-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-3);
  pointer-events: none;
}

/* Sidebar sections & items */
.my-sidebar-section {
  padding: 12px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
  user-select: none;
}
.my-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-1);
  transition: background 0.15s, color 0.15s;
  user-select: none;
  position: relative;
}
.my-sidebar-item:hover { background: var(--blue-glow); color: var(--text-0); }
.my-sidebar-item.active {
  background: var(--blue-glow);
  color: var(--blue);
  font-weight: 600;
}
.my-sidebar-item.active::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--blue);
  border-radius: 3px 0 0 3px;
}
.my-sidebar-icon { font-size: 15px; flex-shrink: 0; width: 20px; text-align: center; }
.my-sidebar-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-sidebar-badge {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-3);
  background: var(--bg-page);
  padding: 1px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}
.my-sidebar-delete {
  opacity: 0;
  font-size: 13px;
  color: var(--text-3);
  cursor: pointer;
  padding: 2px 4px;
  transition: opacity 0.15s, color 0.15s;
  flex-shrink: 0;
}
.my-sidebar-item:hover .my-sidebar-delete { opacity: 1; }
.my-sidebar-delete:hover { color: #e74c3c; }

.my-sidebar-new-folder {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--blue);
  transition: background 0.15s;
}
.my-sidebar-new-folder:hover { background: var(--blue-glow); }

/* Inline rename input */
.my-sidebar-rename {
  border: 1px solid var(--blue);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 13px;
  background: var(--bg-card);
  color: var(--text-0);
  width: 100%;
  outline: none;
}

/* Card folder button */
.mockup-card { position: relative; }
.card-folder-btn {
  position: absolute;
  bottom: 52px;
  right: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, border-color 0.2s;
  z-index: 2;
}
.mockup-card:hover .card-folder-btn { opacity: 1; }
.card-folder-btn:hover { border-color: var(--blue); }

/* Duplicate button (top-right of card thumb) */
.card-dup-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s;
  z-index: 2;
  color: var(--text-1);
}
.mockup-card:hover .card-dup-btn { opacity: 1; }
.card-dup-btn:hover {
  border-color: var(--blue);
  background: var(--blue-glow);
  color: var(--blue);
}

/* Folder dropdown */
.card-folder-dropdown {
  position: absolute;
  bottom: 86px;
  right: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 10;
}
.card-folder-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text-1);
  cursor: pointer;
  transition: background 0.15s;
}
.card-folder-dropdown-item:hover { background: var(--blue-glow); }
.card-folder-dropdown-item input[type="checkbox"] { accent-color: var(--blue); }
.card-folder-dropdown-empty {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

/* ── Drag-and-drop: cards → folders ── */
.mockup-card[draggable] { cursor: grab; }
.mockup-card[draggable]:active { cursor: grabbing; }
.mockup-card.dragging {
  opacity: 0.4;
  transform: scale(0.96);
  box-shadow: 0 0 0 2px var(--blue);
  transition: opacity 0.15s, transform 0.15s;
}

/* Sidebar glow during drag */
.my-mockups-sidebar.drag-active .my-sidebar-item[data-folder-id] {
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.my-sidebar-item.folder-drop-ready {
  background: var(--blue-glow);
  border-left: 3px solid transparent;
}
.my-sidebar-item.folder-drag-over {
  background: var(--blue-glow);
  box-shadow: inset 0 0 0 2px var(--blue);
  border-radius: 8px;
  transform: scale(1.03);
  color: var(--blue);
  font-weight: 600;
}

/* Pulse on successful drop */
@keyframes folderDropPulse {
  0%   { transform: scale(1); background: var(--blue-glow); }
  40%  { transform: scale(1.06); background: var(--blue); color: #fff; }
  100% { transform: scale(1); background: var(--blue-glow); }
}
.my-sidebar-item.folder-drop-pulse {
  animation: folderDropPulse 0.45s ease;
  border-radius: 8px;
}

/* New Folder button drop state */
.my-sidebar-new-folder.folder-drop-ready {
  background: var(--blue-glow);
}
.my-sidebar-new-folder.folder-drag-over {
  background: var(--blue-glow);
  box-shadow: inset 0 0 0 2px var(--blue);
  border-radius: 8px;
  transform: scale(1.03);
  transition: all 0.15s;
}

/* Grid header (shows current view name) */
.my-mockups-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.my-mockups-grid-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-0);
}
.my-mockups-grid-count {
  font-size: 13px;
  color: var(--text-2);
}

/* Project badge on card thumbnail */
.project-badge {
  background: var(--blue) !important;
}

/* Project actions in editor sidebar */
.project-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-actions .btn {
  font-size: 12px;
  padding: 8px 16px;
}

/* Project sidebar items — subtle left accent */
.project-sidebar-item .my-sidebar-icon {
  font-size: 14px;
}

/* Responsive: sidebar → pills */
@media (max-width: 700px) {
  .my-mockups-layout { grid-template-columns: 1fr; }
  .my-mockups-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    overflow-y: hidden;
  }
  .my-sidebar-section { display: none; }
  .my-sidebar-item {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 13px;
  }
  .my-sidebar-item.active { border-color: var(--blue); }
  .my-sidebar-item.active::after { display: none; }
  .my-sidebar-new-folder { padding: 6px 12px; border-radius: 20px; border: 1px dashed var(--blue); }
  .my-sidebar-delete { opacity: 1; }
}

/* ============================================================
   VIDEO EDITOR
   ============================================================ */
.video-editor-wrap {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 20px;
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius);
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-dark-2);
  font-size: 14px;
}
.video-upload-area:hover {
  border-color: var(--amber);
  color: var(--amber-light);
  background: rgba(217,119,6,0.08);
}

.video-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================
   VIDEO TIMELINE
   ============================================================ */
.video-timeline-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: #1a1a1e;
  border-radius: 0 0 var(--radius) var(--radius);
  border: 1px solid var(--border-dark);
  border-top: none;
}

/* --- Transport + time (compact inline bar) --- */
.transport-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #151518;
  border-bottom: 1px solid #2a2a30;
}
.transport-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #3a3a44;
  background: transparent;
  color: #b0b0b8;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s;
  overflow: hidden;
  padding: 0;
}
.transport-btn:hover {
  border-color: var(--blue);
  color: #fff;
  background: rgba(41,171,226,0.1);
}
.transport-btn.active {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 8px var(--blue-glow);
}
.transport-btn.rec-btn .rec-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #dc2626;
}
.transport-btn.rec-btn:hover .rec-dot {
  box-shadow: 0 0 6px rgba(220,38,38,0.6);
}
@keyframes rec-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(220,38,38,0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}
.transport-btn.rec-btn.recording .rec-dot { animation: rec-pulse 0.5s ease-out; }
.transport-btn.loop-btn.active {
  border-color: var(--blue);
  box-shadow: 0 0 8px var(--blue-glow);
}
.transport-time {
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #e0e0e0;
  background: #111114;
  border: 1px solid #2a2a30;
  border-radius: 4px;
  padding: 3px 8px;
  min-width: 72px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}
.transport-separator {
  width: 1px;
  height: 18px;
  background: #2a2a30;
  margin: 0 4px;
}
.snap-indicator {
  font-size: 10px;
  color: #666;
  letter-spacing: 0.3px;
  margin-left: 6px;
  user-select: none;
}
.snap-indicator.snap-active { color: var(--star-gold, #FFB800); }

/* --- Timeline track area --- */
.timeline-track-area {
  position: relative;
  height: 52px;
  background: #1e1e22;
  cursor: crosshair;
  user-select: none;
  overflow: visible;
}

/* Ruler (top portion of track) */
.timeline-ruler {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 20px;
  border-bottom: 1px solid #2a2a30;
  pointer-events: none;
}
.timeline-ruler .tick {
  position: absolute;
  bottom: 0;
  width: 1px;
}
/* Frame ticks — subtle white */
.timeline-ruler .tick.frame {
  height: 4px;
  background: rgba(255,255,255,0.08);
}
/* Second ticks — gold, taller */
.timeline-ruler .tick.second {
  height: 10px;
  background: var(--star-gold, #FFB800);
  opacity: 0.5;
}
/* Major second ticks (labeled) — brighter gold, tallest */
.timeline-ruler .tick.major {
  height: 14px;
  background: var(--star-gold, #FFB800);
  opacity: 0.7;
}
.timeline-ruler .tick.minor {
  height: 6px;
  background: rgba(255,255,255,0.12);
}
.timeline-ruler .tick-label {
  position: absolute;
  top: 1px;
  transform: translateX(-50%);
  font-size: 8px;
  font-family: 'SF Mono', 'Courier New', monospace;
  color: #888;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.3px;
}

/* Keyframe track (below ruler) */
.timeline-kf-track {
  position: absolute;
  top: 20px; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0, transparent calc(100% / 30 - 1px),
    rgba(255,255,255,0.02) calc(100% / 30 - 1px), rgba(255,255,255,0.02) calc(100% / 30)
  );
}

/* Keyframe diamond markers */
.timeline-kf-marker {
  position: absolute;
  top: 50%;
  width: 9px; height: 9px;
  background: var(--green);
  border: 1px solid rgba(168,216,104,0.6);
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 1.5px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  z-index: 2;
}
.timeline-kf-marker:hover {
  transform: translate(-50%, -50%) rotate(45deg) scale(1.4);
  box-shadow: 0 0 10px rgba(141,198,63,0.6);
}
.timeline-kf-marker.kf-marker-active {
  background: var(--blue);
  border-color: rgba(95,195,237,0.6);
  box-shadow: 0 0 10px var(--blue-glow);
}

/* Snap indicator line (appears when snapping) */
.timeline-snap-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--star-gold, #FFB800);
  opacity: 0.6;
  z-index: 4;
  pointer-events: none;
  animation: snapFlash 0.3s ease-out;
}
@keyframes snapFlash {
  0%   { opacity: 1; box-shadow: 0 0 6px rgba(255,184,0,0.6); }
  100% { opacity: 0.6; box-shadow: none; }
}

/* Playhead — glowing blue line with triangle head */
.timeline-playhead {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--blue);
  box-shadow: 0 0 6px rgba(41,171,226,0.4);
  z-index: 5;
  pointer-events: none;
  transform: translateX(-1px);
  left: 0;
  transition: box-shadow 0.15s;
}
.timeline-playhead.snapping {
  box-shadow: 0 0 12px rgba(255,184,0,0.6);
  background: var(--star-gold, #FFB800);
}
.timeline-playhead::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--blue);
  filter: drop-shadow(0 0 3px rgba(41,171,226,0.5));
}
.timeline-playhead.snapping::before {
  border-top-color: var(--star-gold, #FFB800);
  filter: drop-shadow(0 0 3px rgba(255,184,0,0.5));
}
.timeline-playhead-grab {
  position: absolute;
  top: -4px; left: -10px;
  width: 22px; height: 60px;
  cursor: ew-resize;
  pointer-events: auto;
  z-index: 6;
}

/* --- Keyframe list (compact horizontal) --- */
.keyframe-list {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px 10px;
  max-height: 64px;
  overflow-y: auto;
  background: #151518;
  border-top: 1px solid #2a2a30;
}
.keyframe-list .info-row {
  color: #666;
  font-size: 11px;
  padding: 2px 0;
  background: transparent;
  border: none;
}
.kf-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #222228;
  border: 1px solid #2a2a30;
  border-radius: 4px;
  font-size: 11px;
  transition: border-color 0.12s, background 0.12s;
  cursor: pointer;
}
.kf-row:hover { background: #2a2a34; border-color: #444; }
.kf-row.kf-active {
  border-color: var(--blue);
  background: rgba(41,171,226,0.12);
}
.kf-time {
  font-family: 'SF Mono', 'Courier New', monospace;
  color: #ccc;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.kf-label {
  color: var(--blue);
  font-size: 10px;
  font-weight: 500;
}
.kf-row .btn-sm {
  padding: 1px 5px;
  font-size: 10px;
  min-height: 0;
  line-height: 1.2;
}

/* --- Video editor canvas --- */
.editor-video {
  border-radius: var(--radius);
  background: #000;
  width: 100%;
}
.video-corner-wrap {
  position: relative;
  min-height: 48vh;
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-corner-wrap .video-upload-area {
  min-height: 48vh;
  width: 100%;
  border: none;
  border-radius: 0;
}

/* ── Video upload progress overlay ── */
.video-upload-progress {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}
.vup-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vup-ring {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}
.vup-ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 6;
}
.vup-ring-fill {
  fill: none;
  stroke: var(--blue);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 326.73; /* 2 * PI * 52 */
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 0.3s ease;
  filter: drop-shadow(0 0 6px rgba(41,171,226,0.5));
}
.vup-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: -0.02em;
}
.vup-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  letter-spacing: 0.01em;
}
.vup-bar-wrap {
  width: 200px;
  max-width: 80%;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.vup-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(41,171,226,0.4);
}

/* ============================================================
   DOWNLOAD AREA
   ============================================================ */
.download-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.download-area .btn { justify-content: center; }
.export-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}
.export-progress-bar {
  height: 6px;
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) 0%, #7bb7ff 100%);
  width: 0%;
  transition: width 120ms linear;
}
.export-progress-text {
  font-size: 12px;
  color: var(--text-2);
  min-width: 78px;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: toast-in 0.28s ease;
  opacity: 1;
  transition: opacity 0.3s;
  min-width: 200px;
}

.toast.success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.toast.error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.toast.info    { background: #E0F2FE; color: #075985; border: 1px solid #BAE6FD; }

@keyframes toast-in {
  from { transform: translateX(30px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes march-ants-dark {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -12; }
}

@keyframes march-ants-light {
  from { stroke-dashoffset: 6; }
  to { stroke-dashoffset: -6; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ============================================================
   PREVIEW ART OVERLAY (shop detail → "Preview with your Art")
   ============================================================ */
.preview-art-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.preview-art-modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-width: 720px; width: 100%;
  max-height: 90vh;
  overflow: auto;
  display: flex; flex-direction: column;
}
.preview-art-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.preview-art-header h3 { margin: 0; font-size: 16px; color: var(--text-0); }
.preview-art-canvas {
  padding: 16px;
  display: flex; align-items: center; justify-content: center;
  min-height: 200px;
}
.preview-art-canvas canvas,
.preview-art-canvas .mockup-renderer,
.preview-art-canvas .mockup-preview-wrap {
  max-height: 60vh; width: 100%; border-radius: var(--radius);
}
.preview-art-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* --- SELLER SHOP PAGE (public storefront — Etsy-style) --- */

.seller-shop-page { width: 100%; padding: 0; }
.seller-shop-back { padding: 12px 24px; }

/* Preview mode banner */
.seller-shop-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px; background: var(--blue-glow); border-bottom: 2px solid var(--blue); color: var(--text-0); font-size: 14px; font-weight: 600; position: sticky; top: 0; z-index: 10; }
.seller-shop-preview-bar .btn { flex-shrink: 0; }

/* Hero banner — full width edge-to-edge */
.seller-shop-hero { width: 100%; height: 280px; background-size: cover; background-position: center; background-color: var(--bg-raised); position: relative; overflow: hidden; }
.seller-shop-hero-default { background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%); }

/* Info row below banner */
.seller-shop-info-row { display: flex; align-items: flex-start; gap: 16px; padding: 0 24px 16px; position: relative; }
.seller-shop-info-row .seller-shop-avatar,
.seller-shop-info-row .seller-shop-avatar-placeholder { margin-top: -36px; position: relative; z-index: 2; }
.seller-shop-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg-page); flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.seller-shop-avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--blue); color: white; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; border: 4px solid var(--bg-page); flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.seller-shop-info-col { flex: 1; min-width: 0; padding-top: 8px; }
.seller-shop-name { font-size: 22px; font-weight: 800; margin: 0 0 2px; color: var(--text-0); }
.seller-shop-location { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }

/* Inline stats */
.seller-shop-info-stats { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); flex-wrap: wrap; }
.seller-shop-info-stats .pipe { color: var(--border); margin: 0 2px; }
.seller-shop-info-rating { color: var(--text-0); font-weight: 600; }

/* Action buttons (right-aligned) */
.seller-shop-info-actions { display: flex; gap: 8px; margin-left: auto; padding-top: 8px; flex-shrink: 0; }
.seller-shop-info-actions .btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1.5px solid var(--border); }
.seller-shop-info-actions .btn svg { vertical-align: middle; }

/* Tab bar (underline style) */
.seller-shop-tab-bar { display: flex; align-items: center; border-bottom: 2px solid var(--border); padding: 0 24px; margin: 0 0 0; }
.seller-shop-tab { padding: 12px 20px; font-size: 15px; font-weight: 600; color: var(--text-2); background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; transition: color 0.2s, border-color 0.2s; white-space: nowrap; }
.seller-shop-tab:hover { color: var(--text-0); }
.seller-shop-tab.active { color: var(--text-0); border-bottom-color: var(--text-0); }
.seller-shop-tab-search { margin-left: auto; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-raised); font-size: 14px; color: var(--text-1); outline: none; width: 220px; transition: border-color 0.2s; }
.seller-shop-tab-search:focus { border-color: var(--blue); }
.seller-shop-tab-search::placeholder { color: var(--text-3); }

/* Tab content */
.seller-shop-tab-content { min-height: 300px; }

/* Items layout: sidebar + content */
.seller-shop-items-layout { display: flex; gap: 0; padding: 0; }
.seller-shop-sidebar { width: 220px; flex-shrink: 0; padding: 24px 0 24px 24px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--border); }
.seller-shop-sidebar-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; font-size: 14px; cursor: pointer; border: none; background: none; color: var(--text-1); width: 100%; text-align: left; border-radius: 0; transition: color 0.15s, background 0.15s; }
.seller-shop-sidebar-item:hover { background: var(--bg-raised); color: var(--text-0); }
.seller-shop-sidebar-item.active { color: var(--blue); font-weight: 700; border-left: 3px solid var(--blue); padding-left: 13px; }
.seller-shop-sidebar-count { font-size: 13px; color: var(--text-3); font-weight: 400; }
.seller-shop-sidebar-contact { margin-top: auto; padding: 16px; border-top: 1px solid var(--border); }
.seller-shop-sidebar-contact .btn { display: inline-flex; align-items: center; gap: 6px; }

/* Items content area */
.seller-shop-items-content { flex: 1; min-width: 0; padding: 24px; }
.seller-shop-items-content .shop-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); padding: 0; }
.seller-shop-content-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.seller-shop-section-title { font-size: 18px; font-weight: 700; color: var(--text-0); margin: 0; padding: 0; }
.seller-shop-sort { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); color: var(--text-1); font-size: 14px; cursor: pointer; }

/* Featured picks scroll */
.seller-shop-featured-scroll { display: flex; gap: 16px; padding: 0 0 24px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.seller-shop-featured-scroll .shop-card { flex: 0 0 220px; scroll-snap-align: start; }

/* Announcement */
.seller-shop-announcement { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin: 0 0 16px; background: var(--blue-glow); border: 1px solid var(--blue); border-radius: var(--radius); color: var(--text-0); font-size: 14px; }
.seller-shop-announcement-icon { font-size: 18px; flex-shrink: 0; }
.seller-shop-announcement-close { margin-left: auto; background: none; border: none; color: var(--text-2); cursor: pointer; font-size: 16px; padding: 4px; }
.seller-shop-announcement-close:hover { color: var(--text-0); }

/* Vacation mode */
.seller-shop-vacation { text-align: center; padding: 64px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg, 16px); }
.seller-shop-vacation-icon { font-size: 64px; margin-bottom: 16px; }
.seller-shop-vacation h3 { font-size: 24px; margin-bottom: 8px; color: var(--text-0); }
.seller-shop-vacation p { color: var(--text-2); max-width: 400px; margin: 0 auto; }

/* Reviews tab */
.seller-shop-reviews-tab { padding: 24px; max-width: 800px; }
.seller-shop-reviews-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }

/* About tab */
.seller-shop-about-tab { padding: 24px; max-width: 700px; display: flex; flex-direction: column; gap: 20px; }
.seller-shop-about-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg, 16px); padding: 24px; }
.seller-shop-about-card h3 { font-size: 18px; font-weight: 700; color: var(--text-0); margin: 0 0 12px; }
.seller-shop-about-card p { color: var(--text-1); font-size: 14px; line-height: 1.6; margin: 0 0 8px; }
.seller-shop-about-bio { white-space: pre-wrap; }
.seller-shop-about-detail { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.seller-shop-about-detail svg { flex-shrink: 0; }
.seller-shop-about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }
.seller-shop-about-stat { text-align: center; padding: 16px; background: var(--bg-raised); border-radius: var(--radius); }
.seller-shop-about-stat-value { display: block; font-size: 24px; font-weight: 800; color: var(--text-0); margin-bottom: 4px; }
.seller-shop-about-stat-label { font-size: 13px; color: var(--text-2); }
.seller-shop-about-card .seller-shop-socials { margin-top: 4px; }
.seller-shop-about-card .seller-shop-social-link { background: var(--bg-raised); color: var(--text-1); }
.seller-shop-about-card .seller-shop-social-link:hover { background: var(--blue-glow); color: var(--blue); }

/* Social links (used in about tab and elsewhere) */
.seller-shop-socials { display: flex; gap: 8px; }
.seller-shop-social-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-raised); color: var(--text-1); transition: all 0.2s; text-decoration: none; }
.seller-shop-social-link:hover { background: var(--blue-glow); color: var(--blue); }
.seller-shop-social-link svg { width: 16px; height: 16px; }

/* Clickable shop name in cards */
.shop-card-shop-link { color: var(--text-2); text-decoration: none; transition: color 0.15s; }
.shop-card-shop-link:hover { color: var(--blue); text-decoration: underline; }

/* Seller dashboard shop settings */
.seller-shop-settings { max-width: 700px; }
.seller-shop-banner-preview { width: 100%; height: 150px; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--border); margin-bottom: 12px; }
.seller-shop-banner-placeholder { width: 100%; height: 150px; border-radius: var(--radius); background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%); display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; margin-bottom: 12px; }

.seller-shop-pin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.seller-shop-pin-item { border: 2px solid var(--border); border-radius: var(--radius); padding: 8px; cursor: pointer; transition: border-color 0.2s, background 0.2s; text-align: center; }
.seller-shop-pin-item.pinned { border-color: var(--blue); background: var(--blue-glow); }
.seller-shop-pin-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm, 6px); margin-bottom: 6px; }

.seller-shop-order-list { display: flex; flex-direction: column; gap: 4px; }
.seller-shop-order-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg-input); border-radius: var(--radius-sm, 6px); border: 1px solid var(--border); }
.seller-shop-order-row .drag-handle { cursor: grab; color: var(--text-3); font-size: 18px; user-select: none; }
.seller-shop-order-row .drag-handle:active { cursor: grabbing; }
.seller-shop-order-thumb { width: 40px; height: 40px; border-radius: var(--radius-sm, 6px); object-fit: cover; }
.seller-shop-order-name { flex: 1; font-size: 14px; color: var(--text-0); }

/* Dark theme overrides */
[data-theme="dark"] .seller-shop-social-link { background: rgba(255,255,255,0.08); color: var(--text-2); }
[data-theme="dark"] .seller-shop-social-link:hover { background: rgba(41,171,226,0.2); color: var(--blue); }
[data-theme="dark"] .seller-shop-announcement { background: rgba(41,171,226,0.12); }
[data-theme="dark"] .seller-shop-about-card .seller-shop-social-link { background: rgba(255,255,255,0.06); }

/* ── Sale badges on shop cards ── */
.shop-card-sale-badge {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  background: #e53935; color: #fff; font-weight: 700; font-size: 12px;
  padding: 3px 8px; border-radius: 4px; line-height: 1;
  box-shadow: 0 2px 6px rgba(229,57,53,0.35);
}
.shop-card-sale-timer {
  position: absolute; bottom: 8px; left: 8px; z-index: 3;
  background: rgba(0,0,0,0.75); color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 4px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.shop-card-price-original {
  text-decoration: line-through; opacity: 0.5; margin-right: 6px; font-size: 13px;
}
.shop-card-price-sale {
  color: #e53935; font-weight: 700;
}
[data-theme="dark"] .shop-card-price-sale { color: #ef5350; }

/* ── Shop-wide sale banner (seller shop page) ── */
.seller-shop-sale-banner {
  background: linear-gradient(135deg, #e53935 0%, #ff6f00 100%);
  color: #fff; padding: 16px 24px; border-radius: var(--radius, 12px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 16px; font-size: 16px;
  box-shadow: 0 4px 16px rgba(229,57,53,0.25);
}
.seller-shop-sale-banner-text { flex: 1; }
.seller-shop-sale-banner-text strong { font-size: 18px; }
.seller-shop-sale-banner-countdown {
  font-size: 14px; font-weight: 600; white-space: nowrap;
  background: rgba(0,0,0,0.2); padding: 6px 14px; border-radius: 6px;
}
.seller-shop-sale-banner-timer { font-variant-numeric: tabular-nums; }

/* ── Bundle cards (seller shop page) ── */
.seller-shop-bundles-scroll {
  display: flex; gap: 16px; padding: 0 0 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.seller-shop-bundle-card {
  flex: 0 0 240px; scroll-snap-align: start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius, 12px); padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.seller-shop-bundle-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12); transform: translateY(-2px);
}
.seller-shop-bundle-name {
  font-weight: 700; font-size: 15px; color: var(--text-0);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.seller-shop-bundle-thumbs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
}
.seller-shop-bundle-thumbs img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-sm, 6px);
}
.seller-shop-bundle-thumb-placeholder {
  width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: var(--bg-input); border-radius: var(--radius-sm, 6px); font-size: 24px; opacity: 0.4;
}
.seller-shop-bundle-thumb-more {
  width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: var(--bg-input); border-radius: var(--radius-sm, 6px);
  font-size: 14px; font-weight: 600; color: var(--text-2);
}
.seller-shop-bundle-price {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.seller-shop-bundle-original {
  text-decoration: line-through; opacity: 0.5; font-size: 13px; color: var(--text-2);
}
.seller-shop-bundle-sale {
  font-weight: 700; font-size: 16px; color: var(--green);
}
.seller-shop-bundle-save {
  font-size: 12px; font-weight: 600; color: #fff; background: var(--green);
  padding: 2px 8px; border-radius: 4px;
}
.seller-shop-bundle-count {
  font-size: 12px; color: var(--text-3);
}

/* ── Seller dashboard: bundles & discounts cards ── */
.bundle-row, .sale-item-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--bg-input); border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border); margin-bottom: 6px;
}
.bundle-row-info, .sale-item-info { flex: 1; min-width: 0; }
.bundle-row-name, .sale-item-name {
  font-weight: 600; font-size: 14px; color: var(--text-0);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bundle-row-meta, .sale-item-meta {
  font-size: 12px; color: var(--text-3); margin-top: 2px;
}
.bundle-editor {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius, 12px); padding: 16px; margin-top: 12px;
}
.bundle-editor h4 { margin: 0 0 12px; font-size: 15px; color: var(--text-0); }
.bundle-mockup-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px; margin: 12px 0;
}
.bundle-mockup-item {
  border: 2px solid var(--border); border-radius: var(--radius-sm, 6px);
  padding: 6px; cursor: pointer; text-align: center; transition: border-color 0.2s, background 0.2s;
}
.bundle-mockup-item.selected { border-color: var(--blue); background: var(--blue-glow); }
.bundle-mockup-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 4px; margin-bottom: 4px;
}
.bundle-mockup-item span {
  font-size: 11px; color: var(--text-2); display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.discount-tier-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--bg-input); border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border); margin-bottom: 6px;
}
.discount-tier-row label { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.discount-tier-row input {
  width: 70px; padding: 6px 8px; border: 1px solid var(--border);
  border-radius: var(--radius-sm, 6px); background: var(--bg-page);
  color: var(--text-0); font-size: 14px; text-align: center;
}
.sale-item-timer {
  font-size: 12px; font-weight: 600; color: #e53935;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.sale-item-prices {
  font-size: 13px; color: var(--text-2);
}
.sale-item-prices .sale-original {
  text-decoration: line-through; opacity: 0.6; margin-right: 4px;
}
.sale-item-prices .sale-new {
  color: var(--green); font-weight: 600;
}

/* ── Cart discount banners ── */
.cart-drawer-discount, .cart-discount-banner {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: linear-gradient(135deg, rgba(141,198,63,0.12), rgba(141,198,63,0.06));
  border: 1px solid rgba(141,198,63,0.3); border-radius: var(--radius-sm, 6px);
  font-size: 13px; color: var(--text-0); margin-top: 8px;
}
.cart-drawer-discount strong, .cart-discount-banner strong { color: var(--green); }
.cart-drawer-subtotal { opacity: 0.6; font-size: 13px; }
.cart-drawer-savings { font-size: 13px; }

/* Cart drawer sale price styling */
.cart-drawer-price-original {
  text-decoration: line-through; opacity: 0.5; margin-right: 6px; font-size: 12px;
}
.cart-drawer-price-sale {
  color: var(--green); font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   TABLET (max 900px)
   ============================================================ */
@media (max-width: 900px) {
  .editor-layout, .user-editor-layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .user-canvas-col {
    overflow: visible;
  }
  .mockup-preview-wrap {
    min-height: 260px;
    max-height: 55vh;
  }
  .layer-base {
    max-height: 50vh;
  }
  .editor-layers-col {
    width: 100%;
    max-width: none;
    max-height: 200px;
    overflow-y: auto;
  }
  .editor-settings-col, .user-sidebar {
    max-height: 420px;
  }
  .listing-editor-grid {
    grid-template-columns: 1fr;
  }
  .listing-field-row {
    grid-template-columns: 1fr;
  }
  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    justify-content: start;
    padding: 16px;
    gap: 12px;
  }
  .shop-content-wrap.shifted {
    transform: translateX(0);
  }
  .filter-drawer {
    width: 88vw;
    left: -90vw;
  }
  .etsy-icons {
    gap: 6px;
  }
  .category-menu-popover {
    left: 8px !important;
    width: calc(100vw - 16px) !important;
    top: 84px !important;
    max-height: calc(100vh - 92px);
  }
  .category-menu-popover::before {
    display: none;
  }
  .category-menu-body {
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 190px);
  }
  .category-menu-item-label {
    font-size: 16px;
  }
  .category-menu-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 14px;
  }
  /* Nav: hide text labels, keep compact */
  .etsy-cat-btn span:not(.etsy-hamburger) { display: none; }
  .etsy-cat-btn { padding: 0 10px; }
  .nav-logout-btn { display: none; }
}

/* ============================================================
   MOBILE (max 600px) — Etsy-style 2-row nav
   ============================================================ */
@media (max-width: 600px) {
  /* --- NAV: 2-row layout --- */
  .topnav.etsy-nav {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 10px;
    gap: 8px;
  }
  /* Row 1: logo + icons */
  .etsy-brand {
    order: 1;
  }
  .etsy-logo-img {
    height: 32px;
  }
  .etsy-icons {
    order: 2;
    margin-left: auto;
    gap: 4px;
  }
  .etsy-icon-btn {
    width: 30px;
    height: 30px;
  }
  .nav-icon-img {
    width: 15px;
    height: 15px;
  }
  .nav-avatar {
    width: 28px;
    height: 28px;
  }
  .nav-avatar-initials {
    font-size: 11px;
  }
  .nav-user-area {
    gap: 4px;
    margin-left: 0;
  }
  .nav-logout-btn { display: none; }
  .nav-signin-btn {
    font-size: 12px;
    padding: 4px 10px;
  }

  /* Row 2: search full width */
  .etsy-search-tools {
    order: 3;
    width: 100%;
    flex: none;
    gap: 6px;
  }
  .etsy-search-wrap {
    height: 32px;
    padding: 0 2px 0 2px;
  }
  .etsy-search-input {
    font-size: 13px;
  }
  .etsy-search-btn {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
  .etsy-cat-btn {
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }
  .etsy-cat-btn span:not(.etsy-hamburger) { display: none; }

  /* --- SHOP GRID --- */
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;
    gap: 8px;
  }
  .shop-card-name { font-size: 12px; }
  .shop-card-author { font-size: 11px; }
  .shop-card-price { font-size: 13px; }
  .shop-card-rating { font-size: 11px; }

  /* --- SHOP DETAIL --- */
  .shop-detail-layout {
    flex-direction: column;
    padding: 12px;
  }
  .shop-detail-media { max-width: 100%; }
  .shop-detail-info { padding: 12px 0 0; }

  /* --- HERO BANNER --- */
  .hero-banner { min-height: 140px; padding: 16px; }
  .hero-banner h1 { font-size: 20px; }
  .hero-banner p { font-size: 13px; }

  /* --- FILTER PILLS --- */
  .filter-pills { padding: 8px 10px; gap: 6px; flex-wrap: nowrap; overflow-x: auto; }
  .filter-pill { font-size: 12px; padding: 5px 10px; white-space: nowrap; flex-shrink: 0; }

  /* --- EDITOR --- */
  .editor-layout, .user-editor-layout {
    padding: 8px 6px;
    grid-template-columns: 1fr;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .user-canvas-col {
    overflow: visible;
    min-height: auto;
  }
  .mockup-preview-wrap {
    min-height: 220px;
    max-height: 50vh;
  }
  .layer-base {
    max-height: 45vh;
  }
  .editor-settings-col, .user-sidebar {
    max-height: none;
    overflow: visible;
  }
  .user-sidebar {
    width: 100%;
  }
  /* Make download buttons larger on mobile for touch */
  .download-area .btn {
    padding: 12px 16px;
    font-size: 15px;
    min-height: 44px;
  }
  /* Art batch thumbs — 2 per row on phones */
  .art-batch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .zoom-rail {
    transform: scale(0.85);
    transform-origin: bottom right;
  }

  /* --- MODALS --- */
  .preview-art-modal {
    width: 95vw;
    max-height: 90vh;
  }
  .modal-card {
    padding: 20px;
    width: 95vw;
  }

  /* --- AUTH --- */
  .auth-card {
    padding: 20px 16px;
    width: 95vw;
  }
  .auth-card h2 { font-size: 20px; }

  /* --- ADMIN --- */
  .admin-tab-bar { padding: 0 10px; overflow-x: auto; }
  .admin-tab-btn { font-size: 13px; padding: 8px 12px; white-space: nowrap; }
  .admin-user-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }
  .admin-user-actions { width: 100%; }
  .request-card {
    flex-direction: column;
    margin: 0 10px 8px;
  }
  .request-actions {
    flex-direction: row;
    width: 100%;
  }

  /* --- CATEGORIES MENU: bottom sheet style --- */
  .category-menu-backdrop {
    top: 0;
  }
  .category-menu-popover {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%) scale(1) !important;
  }
  .category-menu-popover::before { display: none; }
  .category-menu-layer.open .category-menu-popover {
    transform: translateY(0) scale(1) !important;
  }
  .category-menu-tabs {
    padding: 12px 14px 10px;
    gap: 6px;
    justify-content: center;
  }
  .category-menu-tab {
    font-size: 12px;
    padding: 6px 12px;
  }
  .category-menu-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  /* Hide left sidebar on mobile, show items as horizontal scroll pills */
  .category-menu-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
  }
  .category-menu-list {
    display: flex;
    overflow-x: auto;
    padding: 8px 10px;
    gap: 6px;
    max-height: none;
    -webkit-overflow-scrolling: touch;
  }
  .category-menu-item {
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
    font-size: 13px;
    white-space: nowrap;
  }
  .category-menu-item:hover {
    background: rgba(41,171,226,0.06);
  }
  .category-menu-item.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    padding-left: 14px;
  }
  .category-menu-item.active .category-menu-item-label {
    color: #fff;
  }
  .category-menu-item-arrow { display: none; }
  .category-menu-item-label {
    font-size: 13px;
  }
  .category-menu-right {
    padding: 14px;
    gap: 12px;
  }
  .category-menu-right-title {
    font-size: 18px;
  }
  .category-menu-right-sub {
    font-size: 12px;
  }
  .category-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .category-subcard-art {
    border-radius: 8px;
  }
  .category-subcard-title {
    font-size: 12px;
  }
}

/* ============================================================
   SMALL PHONE (max 380px)
   ============================================================ */
@media (max-width: 380px) {
  .topnav.etsy-nav { padding: 6px 8px; }
  .etsy-logo-img { height: 26px; }
  .etsy-icon-btn { width: 26px; height: 26px; }
  .nav-icon-img { width: 13px; height: 13px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 8px; }
  .etsy-search-input { font-size: 13px; }
  .auth-card { padding: 16px 12px; }
  .mockup-preview-wrap { min-height: 180px; max-height: 42vh; }
  .layer-base { max-height: 38vh; }
  .user-editor-layout { padding: 4px; gap: 8px; }
  .user-sidebar { padding: 10px; }
}

/* ============================================================
   AUTH — social buttons, divider, toggle
   ============================================================ */
.auth-subtitle { color: var(--text-2); margin-bottom: 20px; }
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-0);
  transition: background 0.15s, border-color 0.15s;
}
.btn-social:hover { background: var(--bg-raised); border-color: var(--blue); }
.btn-social svg { flex-shrink: 0; }
.btn-discord:hover { border-color: #5865F2; }
.btn-facebook:hover { border-color: #1877F2; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--text-3);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-toggle { font-size: 13px; color: var(--text-2); margin-top: 16px; text-align: center; }
.auth-toggle-link { color: var(--blue); cursor: pointer; font-weight: 600; }
.auth-toggle-link:hover { text-decoration: underline; }

.btn-full { width: 100%; justify-content: center; }
.btn-link {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 12px;
  margin-top: 12px;
  text-decoration: underline;
  padding: 0;
}
.btn-link:hover { color: var(--text-1); }
.auth-skip { display: block; text-align: center; width: 100%; }

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-danger:hover { background: #b91c1c; }

/* ============================================================
   NAV — user area
   ============================================================ */
.nav-user-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}
.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--blue);
}
.nav-avatar-initials {
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logout-btn { font-size: 12px; padding: 4px 10px; }
.nav-signin-btn {
  white-space: nowrap;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* ============================================================
   ADMIN DASHBOARD — tabs
   ============================================================ */
.admin-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  padding: 0 16px;
}
.admin-tab-btn {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.admin-tab-btn:hover { color: var(--text-0); }
.admin-tab-btn.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ============================================================
   ROLE BADGES
   ============================================================ */
.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.role-user     { background: var(--bg-raised); color: var(--text-2); border: 1px solid var(--border); }
.role-seller   { background: rgba(141,198,63,0.12); color: var(--green); border: 1px solid var(--green); }
.role-admin    { background: rgba(41,171,226,0.12); color: var(--blue); border: 1px solid var(--blue); }
.role-pending  { background: rgba(217,119,6,0.12); color: #d97706; border: 1px solid #d97706; }
.role-approved { background: rgba(141,198,63,0.12); color: var(--green); border: 1px solid var(--green); }
.role-rejected { background: rgba(220,38,38,0.10); color: #dc2626; border: 1px solid #dc2626; }

/* ============================================================
   ADMIN — user table
   ============================================================ */
.admin-user-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
}
.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: 16px;
}
.admin-user-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-user-email { font-weight: 600; font-size: 14px; }
.admin-user-name { color: var(--text-2); font-size: 13px; }
.admin-user-actions { display: flex; align-items: center; gap: 8px; }

/* ============================================================
   ADMIN: CREDITS TAB
   ============================================================ */
.admin-credits-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  margin: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.admin-credits-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.admin-credits-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-1);
}
.admin-credits-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-2);
}
.admin-credits-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 16px 16px;
}
.admin-credits-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: 12px;
  flex-wrap: wrap;
}
.admin-credits-user {
  display: flex;
  flex-direction: column;
  min-width: 150px;
}
.admin-credits-email {
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-credits-email-sub {
  font-size: 0.75rem;
  color: var(--text-2);
}
.admin-credits-edit {
  display: flex;
  align-items: center;
  gap: 8px;
}
.role-none { background: #e8e8e8; color: #666; }
.role-basic { background: #e3f2fd; color: #1565c0; }
.role-pro { background: #e8f5e9; color: #2e7d32; }
.role-enterprise { background: #fff3e0; color: #e65100; }

/* ============================================================
   SELLER REQUEST CARDS
   ============================================================ */
.request-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 16px 8px;
}
.request-business { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.request-user { color: var(--text-2); font-size: 13px; margin-bottom: 4px; }
.request-portfolio { font-size: 13px; color: var(--blue); text-decoration: none; display: block; margin-bottom: 4px; }
.request-portfolio:hover { text-decoration: underline; }
.request-desc { font-size: 13px; color: var(--text-1); max-width: 480px; line-height: 1.5; }
.request-actions { display: flex; flex-direction: column; gap: 6px; min-width: 100px; }

/* ============================================================
   MODAL OVERLAY (reusable)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}
.modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl, 12px);
  padding: 32px;
  width: 460px;
  max-width: 100%;
  box-shadow: var(--shadow-lg, 0 25px 50px rgba(0,0,0,0.25));
}

/* ============================================================
   CUSTOM DIALOG
   ============================================================ */
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  transition: background 0.2s ease;
}
.dialog-overlay.open {
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.dialog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 28px 22px;
  width: 380px;
  max-width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.04);
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.2s ease;
}
.dialog-overlay.open .dialog-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.dialog-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.dialog-message {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 16px;
}
.dialog-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text-0);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  font-family: inherit;
  margin-bottom: 18px;
  box-sizing: border-box;
}
.dialog-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
.dialog-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.dialog-btn {
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.dialog-btn-cancel {
  background: var(--bg-raised);
  color: var(--text-1);
  border: 1px solid var(--border);
}
.dialog-btn-cancel:hover {
  border-color: var(--text-2);
  background: var(--bg-page);
}
.dialog-btn-ok {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(41,171,226,0.25);
}
.dialog-btn-ok:hover {
  background: #1E90C0;
  box-shadow: 0 4px 14px rgba(41,171,226,0.3);
  transform: translateY(-1px);
}
.dialog-btn-danger {
  background: #dc2626;
  box-shadow: 0 2px 8px rgba(220,38,38,0.25);
}
.dialog-btn-danger:hover {
  background: #b91c1c;
  box-shadow: 0 4px 14px rgba(220,38,38,0.3);
}

/* ============================================================
   SELLER CTA + MISC
   ============================================================ */
.seller-cta-row { padding: 12px 16px; }
.field-textarea { resize: vertical; font-family: inherit; line-height: 1.5; }

/* ============================================================
   PRIVACY POLICY
   ============================================================ */
.privacy-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px;
}
.privacy-policy h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-0);
}
.privacy-date {
  color: var(--text-2);
  font-size: 13px;
  margin-bottom: 24px;
}
.privacy-policy h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
  color: var(--text-0);
}
.privacy-policy h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 16px 0 6px;
  color: var(--text-1);
}
.privacy-policy p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-1);
  margin-bottom: 12px;
}
.privacy-policy ul {
  margin: 0 0 12px 20px;
  padding: 0;
}
.privacy-policy li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-1);
  margin-bottom: 4px;
}
.privacy-policy strong {
  color: var(--text-0);
}
.auth-privacy-link {
  font-size: 12px !important;
  color: var(--text-2) !important;
  margin-top: 4px;
}
.auth-privacy-link:hover {
  color: var(--blue) !important;
}

/* ============================================================
   PRICING / CREDITS PAGE
   ============================================================ */
.pricing-header {
  text-align: center;
  padding: 40px 24px 24px;
}
.pricing-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-1);
  margin: 0 0 8px;
}
.pricing-subtitle {
  font-size: 1.05rem;
  color: var(--text-2);
  margin: 0 0 16px;
}
.pricing-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-glow);
  border: 1px solid var(--blue-light);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.95rem;
}
.pricing-balance-label {
  color: var(--text-2);
}
.pricing-balance-value {
  font-weight: 700;
  color: var(--blue);
  font-size: 1.1rem;
}

/* Tier cards grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 24px 32px;
  max-width: 960px;
  margin: 0 auto;
}

/* ============================================================
   LANDING PAGE — Apple-style scroll experience
   ============================================================ */

/* Nav landing mode — hide search tools */
.nav-landing-mode .etsy-search-tools { display: none !important; }

/* ── Container ── */
.landing-page {
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - 72px);
  scroll-behavior: smooth;
  background: var(--bg-page);
}

/* ── Hero ── */
.landing-hero {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 40px;
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, var(--blue-glow) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 60% 55%, var(--green-glow) 0%, transparent 70%);
}

.landing-hero-logo {
  height: 120px;
  width: auto;
  margin-bottom: 32px;
  filter: drop-shadow(0 4px 24px rgba(41,171,226,0.18));
}

.landing-hero-headline {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text-0);
  margin-bottom: 16px;
}

.landing-gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero-sub {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 36px;
}

.landing-hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ── Buttons ── */
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.landing-btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(41,171,226,0.35);
}
.landing-btn-primary:hover {
  background: var(--blue-light);
  box-shadow: 0 6px 28px rgba(41,171,226,0.45);
  transform: translateY(-2px);
}

.landing-btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.landing-btn-outline:hover {
  background: var(--blue-glow);
  transform: translateY(-2px);
}

.landing-btn-green {
  background: var(--green);
  color: #fff;
  padding: 16px 40px;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(141,198,63,0.35);
}
.landing-btn-green:hover {
  background: var(--green-light);
  box-shadow: 0 6px 28px rgba(141,198,63,0.45);
  transform: translateY(-2px);
}

/* ── Scroll hint ── */
.landing-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-3);
  cursor: pointer;
  animation: landing-bounce 2s ease-in-out infinite;
}
@keyframes landing-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ── Hero blur-reveal animations ── */
.landing-fadein {
  opacity: 0;
  transform: translateY(20%);
  filter: blur(10px);
  animation: landing-blur-reveal 1s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
.landing-fadein-d1 { animation-delay: 0.12s; }
.landing-fadein-d2 { animation-delay: 0.24s; }
.landing-fadein-d3 { animation-delay: 0.38s; }
.landing-fadein-d4 { animation-delay: 0.55s; }

@keyframes landing-blur-reveal {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Word-by-word blur reveal for headlines */
.blur-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20%);
  filter: blur(10px);
  animation: landing-blur-reveal 1s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* Subtitle word blur — slightly faster */
.blur-word-sub {
  display: inline-block;
  opacity: 0;
  transform: translateY(20%);
  filter: blur(8px);
  animation: landing-blur-reveal 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* ── Skip animations on re-render (async data loads) ── */
.landing-no-anim .landing-fadein,
.landing-no-anim .blur-word,
.landing-no-anim .blur-word-sub {
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
}
.landing-no-anim .scroll-reveal {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}
.landing-no-anim .scroll-blur-word {
  opacity: 1;
  filter: none;
  transform: none;
  transition: none;
}

/* ── Section titles ── */
.landing-section-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.8px;
  text-align: center;
  color: var(--text-0);
  margin-bottom: 48px;
}

/* ── Features ── */
.landing-features {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.landing-feature-card {
  position: relative;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.landing-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.landing-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue-glow);
  color: var(--blue);
  margin-bottom: 20px;
}

.landing-feature-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 10px;
}

.landing-feature-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ── Interactive Demo ── */
.landing-demo {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.landing-demo-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 48px;
}

.landing-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.landing-demo-slot {
  position: relative;
  padding: 24px 20px 28px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.landing-demo-slot:hover {
  box-shadow: var(--shadow-lg);
}

.landing-demo-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--blue-glow);
  color: var(--blue);
  border: 1px solid rgba(41,171,226,0.18);
}

.landing-demo-preview {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
}
.landing-demo-preview .mockup-renderer {
  max-width: 100%;
}
.landing-demo-preview .mockup-renderer img.layer-base,
.landing-demo-preview .mockup-renderer video.layer-base {
  max-height: 42vh;
  border-radius: var(--radius-sm);
}

.landing-demo-dropzone {
  width: 100%;
  padding: 18px 16px;
  border-radius: var(--radius);
  cursor: pointer;
}

.landing-demo-dl {
  padding: 10px 24px;
  font-size: 14px;
}

.landing-demo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  color: var(--text-3);
  font-size: 15px;
  gap: 8px;
}

.landing-demo-cta {
  margin-top: 48px;
}
.landing-demo-cta-text {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 16px;
}

/* ── Gallery ── */
.landing-gallery {
  padding: 80px 0;
  overflow: hidden;
}

.landing-gallery-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.landing-gallery-strip {
  display: flex;
  gap: 16px;
  animation: landing-marquee 40s linear infinite;
  width: max-content;
}

.landing-gallery-thumb {
  flex-shrink: 0;
  width: 220px;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--border);
}
.landing-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-gallery-placeholder {
  opacity: 0.5;
}

@keyframes landing-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Stats ── */
.landing-stats {
  padding: 80px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.landing-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.landing-stat-value {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.landing-stat-label {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}

/* ── CTA ── */
.landing-cta {
  padding: 100px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--charcoal) 0%, #1a2540 50%, #1e3a30 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: 40px;
}

.landing-cta-headline {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.landing-cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
}

.landing-cta-links {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
}
.landing-cta-links a {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.landing-cta-links a:hover { color: rgba(255,255,255,0.8); }
.landing-cta-dot { color: rgba(255,255,255,0.25); font-size: 13px; }

/* ── Scroll edge fade (top/bottom overlays) ── */
.scroll-edge-fade {
  position: sticky;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
  z-index: 10;
  pointer-events: none;
  overflow: visible;
}
.scroll-edge-fade-top { top: 0; }
.scroll-edge-fade-bottom { bottom: 0; }
.scroll-edge-fade::before,
.scroll-edge-fade::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
/* Solid color gradient layer (::before) */
.scroll-edge-fade-top::before {
  top: 0;
  height: 45px;
  background: linear-gradient(to bottom, var(--bg-page) 0%, transparent 100%);
}
.scroll-edge-fade-bottom::before {
  bottom: 0;
  height: 45px;
  background: linear-gradient(to top, var(--bg-page) 0%, transparent 100%);
}
/* Blur layer (::after) — stacks on top for a frosted edge */
.scroll-edge-fade-top::after {
  top: 0;
  height: 30px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}
.scroll-edge-fade-bottom::after {
  bottom: 0;
  height: 30px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(to top, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
}
.scroll-edge-fade.active::before,
.scroll-edge-fade.active::after {
  opacity: 1;
}

/* ── Scroll reveal system (with blur) ── */
.scroll-reveal {
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              filter 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.scroll-reveal.from-bottom { transform: translateY(40px); }
.scroll-reveal.from-left { transform: translateX(-40px); }
.scroll-reveal.from-right { transform: translateX(40px); }
.scroll-reveal.scale-in { transform: scale(0.85); }

.scroll-reveal.in-view {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.scroll-reveal.delay-1 { transition-delay: 0.1s; }
.scroll-reveal.delay-2 { transition-delay: 0.2s; }
.scroll-reveal.delay-3 { transition-delay: 0.3s; }
.scroll-reveal.delay-4 { transition-delay: 0.4s; }

/* ── Scroll-triggered word-by-word blur reveal (section titles) ── */
.scroll-reveal-title {
  /* Container is always visible — children animate individually */
}
.scroll-blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20%);
  transition: opacity 1s cubic-bezier(0.25, 0.1, 0.25, 1),
              filter 1s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.scroll-reveal-title.in-view .scroll-blur-word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ── Dark theme overrides ── */
[data-theme="dark"] .landing-feature-card {
  background: rgba(20,21,26,0.65);
  border-color: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

[data-theme="dark"] .landing-demo-slot {
  background: rgba(20,21,26,0.65);
  border-color: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

[data-theme="dark"] .landing-gallery-thumb {
  border-color: rgba(255,255,255,0.06);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .seller-shop-hero { height: 160px; }
  .seller-shop-back { padding: 8px 16px; }
  .seller-shop-info-row { flex-wrap: wrap; padding: 0 16px 12px; gap: 12px; }
  .seller-shop-avatar, .seller-shop-avatar-placeholder { width: 64px; height: 64px; font-size: 24px; margin-top: -28px; }
  .seller-shop-name { font-size: 18px; }
  .seller-shop-info-actions { width: 100%; margin-left: 0; padding-top: 0; }
  .seller-shop-tab-bar { padding: 0 16px; overflow-x: auto; gap: 0; }
  .seller-shop-tab { padding: 10px 14px; font-size: 14px; }
  .seller-shop-tab-search { width: 160px; font-size: 13px; padding: 6px 12px; }
  .seller-shop-items-layout { flex-direction: column; }
  .seller-shop-sidebar { width: 100%; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); padding: 12px 16px; gap: 4px; }
  .seller-shop-sidebar-item { white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); }
  .seller-shop-sidebar-item.active { border-left: none; padding-left: 14px; border-color: var(--blue); background: var(--blue-glow); }
  .seller-shop-sidebar-contact { display: none; }
  .seller-shop-items-content { padding: 16px; }
  .seller-shop-featured-scroll { padding: 0 0 16px; }
  .seller-shop-reviews-tab { padding: 16px; }
  .seller-shop-about-tab { padding: 16px; }
  .seller-shop-about-card { padding: 16px; }
  .seller-shop-announcement { margin: 0 0 12px; padding: 10px 12px; }
  .seller-shop-sale-banner { flex-direction: column; align-items: stretch; padding: 12px 16px; font-size: 14px; }
  .seller-shop-sale-banner-text strong { font-size: 15px; }
  .seller-shop-sale-banner-countdown { align-self: center; }
  .seller-shop-bundles-scroll { gap: 12px; }
  .seller-shop-bundle-card { flex: 0 0 200px; padding: 12px; }
  .bundle-mockup-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .discount-tier-row { flex-wrap: wrap; }

  .landing-hero-headline { font-size: 38px; }
  .landing-hero-sub { font-size: 17px; }
  .landing-hero-logo { height: 80px; }
  .landing-section-title { font-size: 30px; }

  .landing-features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .landing-demo-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .landing-demo { padding: 60px 16px; }

  .landing-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
  .landing-stat-value { font-size: 32px; }

  .landing-cta-headline { font-size: 30px; }
}

@media (max-width: 480px) {
  .landing-hero { padding: 40px 16px 32px; }
  .landing-hero-headline { font-size: 30px; letter-spacing: -1px; }
  .landing-hero-sub { font-size: 16px; }
  .landing-hero-logo { height: 64px; margin-bottom: 24px; }
  .landing-hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }
  .landing-btn { width: 100%; }

  .landing-features { padding: 60px 16px; }
  .landing-demo { padding: 48px 16px; }
  .landing-demo-preview .mockup-renderer img.layer-base,
  .landing-demo-preview .mockup-renderer video.layer-base { max-height: 35vh; }
  .landing-gallery { padding: 48px 0; }
  .landing-stats { padding: 48px 16px; }
  .landing-cta { padding: 64px 16px; }

  .landing-cta-headline { font-size: 24px; }
  .landing-gallery-thumb { width: 160px; height: 120px; }
}

/* ============================================================
   CART DRAWER (right-side slide-in)
   ============================================================ */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.18);
  z-index: 149;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 72px;
  right: -400px;
  width: 380px;
  height: calc(100vh - 72px);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  padding: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: right 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  z-index: 151;
  overflow: hidden;
}
.cart-drawer.open {
  right: 0;
  opacity: 1;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-drawer-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-0);
}
.cart-drawer-count {
  font-size: 13px;
  color: var(--text-3);
  flex: 1;
}
.cart-drawer-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 22px;
  color: var(--text-2);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.cart-drawer-close:hover {
  background: var(--bg-raised);
  color: var(--text-0);
}

.cart-drawer-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.cart-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.cart-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.cart-drawer-item:hover {
  background: var(--bg-raised);
}

.cart-drawer-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.cart-drawer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-drawer-item-info {
  flex: 1;
  min-width: 0;
}
.cart-drawer-item-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-drawer-item-price {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  margin-top: 2px;
}

.cart-drawer-item-remove {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.cart-drawer-item-remove:hover {
  background: rgba(231,76,60,0.1);
  color: #e74c3c;
}

.cart-drawer-footer {
  border-top: 1px solid var(--border);
  padding: 16px 20px 20px;
  flex-shrink: 0;
}
.cart-drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 12px;
}
.cart-drawer-checkout {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
}
.cart-drawer-clear {
  display: block;
  margin: 10px auto 0;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
}
.cart-drawer-clear:hover { color: var(--text-2); }

/* Light theme glass */
[data-theme="light"] .cart-drawer {
  background-color: rgba(187,187,188,0.10);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-left: none;
  box-shadow:
    inset 1px 0 0 rgba(255,255,255,0.50),
    inset 0 1px 0 rgba(255,255,255,0.60),
    -4px 0 16px rgba(0,0,0,0.04);
}

/* Dark theme glass */
[data-theme="dark"] .cart-drawer {
  background-color: rgba(20,21,26,0.85);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-left: none;
  box-shadow:
    inset 1px 0 0 rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.03),
    -4px 0 16px rgba(0,0,0,0.2);
}

@media (max-width: 480px) {
  .cart-drawer {
    width: 100vw;
    right: -100vw;
  }
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.cart-item-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-raised);
}
.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-author {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.cart-item-price {
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  margin-top: 4px;
}
.cart-item-remove { flex-shrink: 0; }
.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  max-width: 400px;
  margin: 0 auto;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-2);
}
.cart-summary-row + .cart-summary-row {
  border-top: 1px solid var(--border);
}
.cart-total {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-1);
}
.cart-balance { color: var(--text-3); font-size: 13px; }
.cart-checkout-btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
}

.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.pricing-card-popular {
  border-color: var(--green);
  box-shadow: 0 4px 24px rgba(141,198,63,0.18);
}
.pricing-card-popular:hover {
  box-shadow: 0 12px 32px rgba(141,198,63,0.25);
}
.pricing-card-current {
  border-color: var(--blue);
}
.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-card-header {
  margin-bottom: 16px;
}
.pricing-card-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text-1);
}
.pricing-card-tagline {
  font-size: 0.9rem;
  color: var(--text-2);
  margin: 0;
}
.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 4px;
}
.pricing-currency {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-2);
}
.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
}
.pricing-period {
  font-size: 1rem;
  color: var(--text-2);
}
.pricing-card-credits {
  background: var(--blue-glow);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.9rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 20px;
}
.pricing-credits-num {
  font-weight: 800;
  font-size: 1.05rem;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
  width: 100%;
}
.pricing-features li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-check {
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
}
.pricing-btn {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  margin-top: auto;
}
.pricing-btn-popular {
  background: var(--green);
  border-color: var(--green);
}
.pricing-btn-popular:hover {
  background: #7ab635;
  border-color: #7ab635;
}

/* Custom credits */
.pricing-custom {
  max-width: 560px;
  margin: 0 auto 40px;
  padding: 32px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 16px;
  text-align: center;
}
.pricing-custom-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text-1);
}
.pricing-custom-subtitle {
  font-size: 0.9rem;
  color: var(--text-2);
  margin: 0 0 20px;
}
.pricing-custom-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.pricing-custom-input {
  width: 100px;
  padding: 10px 12px;
  border: 2px solid #d9d9d9;
  border-radius: 10px;
  font-size: 1rem;
  text-align: center;
  font-weight: 600;
}
.pricing-custom-input:focus {
  border-color: var(--blue);
  outline: none;
}
.pricing-custom-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-1);
  min-width: 60px;
}
.pricing-demo-notice {
  margin-top: 20px;
  padding: 10px 16px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #6d5800;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

/* Credit popup (not enough credits) */
.credit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: creditOverlayIn 0.25s ease-out;
}
@keyframes creditOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.credit-popup {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 420px;
  width: 90vw;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: creditPopupIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes creditPopupIn {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.credit-popup-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.credit-popup h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text-1);
}
.credit-popup p {
  color: var(--text-2);
  font-size: 0.95rem;
  margin: 0 0 20px;
}
.credit-popup-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}
.credit-popup-stat {
  text-align: center;
}
.credit-popup-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-2);
  display: block;
  margin-bottom: 4px;
}
.credit-popup-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
}
.credit-popup-stat-value.has { color: var(--green); }
.credit-popup-stat-value.need { color: var(--blue); }
.credit-popup-stat-value.short { color: #e53935; }
.credit-popup-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.credit-popup-actions .btn {
  min-width: 130px;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 10px;
}

/* Nav credit badge */
.nav-credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--blue-glow);
  border: 1px solid var(--blue-light);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-credit-badge:hover {
  background: var(--blue-light);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    padding: 0 16px 24px;
  }
  .pricing-header {
    padding: 24px 16px 16px;
  }
  .pricing-title {
    font-size: 1.5rem;
  }
  .pricing-custom {
    margin: 0 16px 32px;
  }
  .pricing-custom-row {
    flex-wrap: wrap;
  }
  .credit-popup-stats {
    gap: 16px;
  }
}

/* ============================================================
   PROFILE PAGE (Etsy-style)
   ============================================================ */
.profile-header {
  padding: 24px 24px 0;
  max-width: 720px;
  margin: 0 auto;
}
.profile-page-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text-0);
}
.profile-page-subtitle {
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
}
.profile-tabs {
  display: flex;
  gap: 0;
  max-width: 720px;
  margin: 20px auto 0;
  padding: 0 24px;
  border-bottom: 2px solid var(--border);
}
.profile-tab {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.profile-tab:hover { color: var(--text-0); }
.profile-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.profile-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.profile-card-danger {
  border-color: #e53e3e44;
}
.profile-card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-0);
}

/* Avatar section */
.profile-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.profile-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}
.profile-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  border: 3px solid var(--border);
}
.profile-avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Form fields */
.profile-field {
  margin-bottom: 14px;
}
.profile-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 5px;
}

/* Info rows (read-only) */
.profile-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.profile-info-row:last-child { border-bottom: none; }
.profile-info-label {
  color: var(--text-2);
  font-weight: 500;
}
.profile-info-value {
  color: var(--text-0);
  font-weight: 600;
}
.profile-info-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
.profile-info-link:hover { text-decoration: underline; }

/* Connected accounts */
.profile-connected-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.profile-connected-row:last-child { border-bottom: none; }
.profile-connected-provider {
  font-weight: 600;
  color: var(--text-0);
}
.profile-connected-status {
  font-size: 13px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
}
.profile-connected-status.connected {
  background: #8dc63f22;
  color: var(--green);
}
.profile-connected-status.not-connected {
  background: var(--bg-raised);
  color: var(--text-2);
}

/* Danger zone */
.danger-zone-title {
  font-size: 14px;
  font-weight: 700;
  color: #e53e3e;
  margin: 0 0 6px;
}
.danger-zone-desc {
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 12px;
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 600px) {
  .profile-header { padding: 16px 16px 0; }
  .profile-tabs { padding: 0 16px; }
  .profile-tab { padding: 8px 12px; font-size: 13px; }
  .profile-content { padding: 16px 16px 32px; }
  .profile-card { padding: 16px; }
  .profile-avatar-wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .profile-info-row, .profile-connected-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ============================================================
   SITE FOOTER (Professional)
   ============================================================ */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px 24px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-0);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 6px;
}
.footer-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.7;
}
.footer-link:hover {
  color: var(--blue);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 32px;
  border-top: 1px solid var(--border);
}
.footer-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-2);
}

@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 28px 20px 16px;
  }
}
@media (max-width: 480px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 16px 12px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }
}

/* ============================================================
   UTILITY
   ============================================================ */
.hidden { display: none !important; }

/* ============================================================
   SELLER SALES TAB
   ============================================================ */
.seller-sales-summary {
  display: flex;
  gap: 12px;
  padding: 16px;
  flex-wrap: wrap;
}
.seller-sales-stat {
  flex: 1 1 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  min-width: 110px;
}
.seller-sales-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
}
.seller-sales-stat-value.revenue { color: var(--text-0); }
.seller-sales-stat-value.net     { color: var(--green); }
.seller-sales-stat-value.count   { color: var(--blue); }
.seller-sales-stat-value.balance { color: var(--green); }
.seller-sales-stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-2);
  margin-top: 6px;
}
.seller-sales-section-title {
  padding: 12px 16px 4px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-1);
}
.seller-product-breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 16px 12px;
}
.seller-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: 12px;
}
.seller-product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.seller-product-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seller-product-type {
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.seller-product-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-2);
  flex-shrink: 0;
}
.seller-product-revenue {
  font-weight: 700;
  color: var(--green);
}
.seller-tx-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 16px 24px;
}
.seller-tx-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 6px);
  gap: 8px;
}
.seller-tx-header {
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-2);
  padding-bottom: 2px;
}
.seller-tx-cell { font-size: 13px; }
.seller-tx-cell.date     { flex: 0 0 100px; color: var(--text-2); }
.seller-tx-cell.product  { flex: 1 1 auto; font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-tx-cell.gross    { flex: 0 0 55px; text-align: right; color: var(--text-1); }
.seller-tx-cell.net-col  { flex: 0 0 55px; text-align: right; font-weight: 700; color: var(--green); }
.seller-tx-cell.status-col { flex: 0 0 90px; text-align: center; }
.sale-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.sale-completed { background: rgba(141,198,63,0.15); color: var(--green); }
.sale-refunded  { background: rgba(229,57,53,0.15);  color: #e53935; }
.sale-disputed  { background: rgba(255,184,0,0.15);  color: var(--star-gold); }

/* Chart wrapper */
.seller-chart-wrap {
  margin: 0 16px 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.seller-chart-wrap canvas {
  border-radius: var(--radius-sm, 6px);
}

@media (max-width: 640px) {
  .seller-sales-summary { gap: 8px; padding: 12px; }
  .seller-sales-stat { padding: 14px 10px; }
  .seller-sales-stat-value { font-size: 1.3rem; }
  .seller-tx-cell.date { flex: 0 0 70px; font-size: 11px; }
  .seller-tx-cell.gross, .seller-tx-cell.net-col { flex: 0 0 45px; }
  .seller-tx-cell.status-col { flex: 0 0 70px; }
  .seller-chart-wrap { margin: 0 12px 10px; padding: 10px; }
}

/* ============================================================
   ELEMENTS PANEL (layer/element system)
   ============================================================ */
/* ── Layers Panel (Photoshop-style) ────────────────────── */
.editor-layers-col {
  width: 220px;
  min-width: 200px;
  max-width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.layers-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  height: 100%;
  overflow: hidden;
}

.layers-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--border);
}
.layers-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.layers-add-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius);
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.layers-add-btn:hover { background: var(--blue); color: #fff; }

.layers-add-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  min-width: 160px;
  overflow: hidden;
}
.layers-add-option {
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text-0);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.layers-add-option:hover { background: var(--bg-raised); }

/* Layer list */
.layers-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  overflow-y: auto;
  padding: 4px;
  position: relative;
  user-select: none;
}
.layers-list:empty::after {
  content: 'No layers';
  color: var(--text-3);
  font-size: 12px;
  padding: 12px;
  text-align: center;
}

/* Base image label at bottom */
.layers-base-label {
  padding: 6px 12px;
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  border-top: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Individual layer row */
.layer-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, opacity 0.15s, box-shadow 0.15s;
  font-size: 12px;
  min-height: 44px;
  position: relative;
  overflow: hidden;
}
.layer-row:hover { background: var(--bg-raised); }
.layer-row.selected {
  background: rgba(41, 171, 226, 0.1);
  border-color: var(--blue);
}
/* Pointer-based drag-and-drop */
.layer-row.drag-source {
  opacity: 0.25;
  pointer-events: none;
}
.drag-ghost {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.92;
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.10);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  will-change: transform;
}
[data-theme="dark"] .drag-ghost {
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.25);
}
.drop-indicator {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 0 6px rgba(41,171,226,0.4);
  transition: top 0.08s ease-out;
}
.drop-indicator::before {
  content: '';
  position: absolute;
  left: -3px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
/* Folder highlight when a layer is dragged over it */
.layer-row.folder-drop-target {
  background: var(--blue) !important;
  color: #fff !important;
  border-color: var(--blue) !important;
  padding-top: 8px;
  padding-bottom: 8px;
  transition: background 0.15s, padding 0.15s, color 0.15s;
}
.layer-row.folder-drop-target .layer-subtitle,
.layer-row.folder-drop-target .folder-chevron {
  color: rgba(255,255,255,0.7) !important;
}
.layer-row.folder-drop-target svg {
  color: #fff !important;
}
.layer-row.folder-drop-target .drag-handle {
  color: rgba(255,255,255,0.5) !important;
}
.layer-row.folder-child {
  padding-left: 20px;
}
.layer-row.folder-row {
  font-weight: 600;
  background: var(--bg-raised);
  transition: background 0.15s, padding 0.15s, color 0.15s;
}

/* Folder children container — animated collapse/expand */
.folder-children-wrap {
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  opacity: 1;
}
.folder-children-wrap.collapsed {
  max-height: 0 !important;
  opacity: 0;
}

/* Art layer special badge */
.layer-row.art-layer {
  border-left: 3px solid var(--green);
}
.art-badge {
  font-size: 11px;
  color: var(--green);
  margin-right: 2px;
}

/* Layer thumbnail */
/* Layer thumb group (layer thumb + optional mask thumb side by side) */
.layer-thumb-group {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.layer-thumb {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  background: var(--bg-input);
}

/* Mask thumbnail */
.mask-thumb {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1.5px solid var(--blue);
  overflow: hidden;
  cursor: pointer;
  background: #000;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mask-thumb:hover {
  border-color: var(--blue-light);
  box-shadow: 0 0 6px rgba(41, 171, 226, 0.4);
}

/* Mask popup menu */
.mask-popup {
  position: fixed;
  z-index: 10000;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  padding: 6px;
  min-width: 190px;
  font-size: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mask-popup-btn {
  display: block;
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-1);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}
.mask-popup-btn:hover {
  background: var(--bg-raised);
}
.mask-popup-remove {
  color: #e74c3c;
}
.mask-popup-section {
  padding: 6px 0;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}
.mask-popup-label {
  font-weight: 600;
  color: var(--text-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 10px 4px;
}
.mask-popup-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
}
.mask-popup-sublabel {
  font-size: 11px;
  color: var(--text-3);
  width: 42px;
  flex-shrink: 0;
}
.mask-popup-select {
  flex: 1;
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-1);
  font-size: 11px;
  cursor: pointer;
}
.mask-popup-slider {
  flex: 1;
  height: 4px;
  cursor: pointer;
  accent-color: var(--blue);
}
.mask-popup-val {
  font-size: 11px;
  color: var(--text-2);
  min-width: 30px;
  text-align: right;
}
.mask-popup-invert {
  border-top: 1px solid var(--border);
  margin-top: 2px;
  padding-top: 7px;
}

/* Layer info (name + subtitle) */
.layer-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.layer-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-1);
  font-size: 12px;
  line-height: 1.2;
}
.layer-subtitle {
  font-size: 10px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Layer controls (eye, lock, delete) */
.layer-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.eye-toggle {
  width: 20px;
  height: 20px;
  text-align: center;
  cursor: pointer;
  opacity: 0.6;
  font-size: 12px;
  flex-shrink: 0;
  user-select: none;
  transition: opacity 0.15s;
}
.eye-toggle:hover { opacity: 1; }
.eye-toggle.off { opacity: 0.3; }
.eye-toggle.off:hover { opacity: 0.6; }

/* Static lock indicator on locked layers */
.lock-indicator {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.5;
  pointer-events: none;
}

/* Lock toggle in topbar */
.tb-lock-btn {
  background: none;
  border: none;
  border-radius: 4px;
  padding: 4px;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-2);
  width: 24px;
  height: 24px;
}
.tb-lock-btn:hover { opacity: 0.7; }
.tb-lock-btn.locked { opacity: 1; color: var(--blue); }
.tb-lock-btn svg {
  display: block;
}

/* Lottie animated icons */
.eye-toggle {
  border-radius: 3px;
  cursor: pointer;
}
.folder-lord-icon {
  display: block;
}
/* Transport button lottie icons (play, pause, loop) */
.transport-lord {
  display: block;
  margin: auto;
}
/* Inline lottie icon inside buttons (download, upload) */
.btn-lord-icon {
  vertical-align: middle;
  margin-right: 4px;
}
/* Heart/star lottie icon on shop cards */
.heart-lord-icon {
  width: 100%;
  height: 100%;
}
/* Dropzone upload lottie icon */
.dz-lord-icon {
  display: block;
  margin: 0 auto;
}
/* Dark mode: invert lock indicator img so it shows as light */
[data-theme="dark"] .lock-indicator {
  filter: invert(1) brightness(2);
}
.layer-delete {
  opacity: 0;
  cursor: pointer;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.layer-row:hover .layer-delete { opacity: 0.5; }
.layer-delete:hover { opacity: 1 !important; }

/* Expose toggle switch (mini iOS-style on folder rows) */
.expose-switch {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.expose-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.expose-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border);
  border-radius: 8px;
  transition: background 0.25s, box-shadow 0.25s;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.expose-slider::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  left: 2px;
  bottom: 2px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 1px 4px rgba(0,30,63,0.10),
    inset 0 0 6px rgba(255,255,255,0.5),
    inset 1px 1px 0 rgba(69,168,243,0.10);
}
.expose-switch.active .expose-slider {
  background: var(--green);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08), 0 0 6px rgba(141,198,63,0.20);
}
.expose-switch.active .expose-slider::before {
  transform: translateX(12px);
}
[data-theme="dark"] .expose-slider {
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}
[data-theme="dark"] .expose-slider::before {
  background: rgba(255,255,255,0.14);
  box-shadow:
    0 1px 4px rgba(0,0,0,0.25),
    inset 0 0 8px rgba(255,255,255,0.06),
    inset 1px 1px 0 rgba(255,255,255,0.08);
}

/* Folder thumb */
.folder-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--bg-raised);
  border-radius: 4px;
  overflow: hidden;
}

/* Base image row (non-interactive) */
.layer-base-row {
  opacity: 0.7;
  cursor: pointer;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  transition: opacity 0.15s;
}
.layer-base-row:hover {
  opacity: 1;
}
.base-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--bg-raised);
  overflow: hidden;
}

/* Layers topbar (compact Photoshop-style: blend + opacity + color + lock) */
.layers-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--border);
  min-height: 30px;
  flex-shrink: 0;
  overflow: hidden;
}
.layers-topbar select.tb-blend {
  font-size: 11px;
  padding: 2px 20px 2px 6px;
  border-radius: var(--radius-sm, 4px);
  min-width: 80px;
  max-width: 100px;
  height: 24px;
  border: 1px solid var(--border);
  background-color: var(--bg-input, var(--bg-card));
  color: var(--text-1);
  cursor: pointer;
  flex-shrink: 0;
}
.layers-topbar .tb-opacity {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.layers-topbar .tb-opacity input[type="range"] {
  flex: 1;
  height: 3px;
  min-width: 40px;
}
.layers-topbar .tb-opacity-val {
  font-size: 10px;
  color: var(--text-2);
  min-width: 28px;
  text-align: right;
  user-select: none;
  flex-shrink: 0;
}
.layers-topbar .tb-color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.layers-topbar .tb-color-swatch input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border: none;
  padding: 0;
}

/* Inline rename input */
.layer-name-input {
  width: 100%;
  font-size: 12px;
  padding: 1px 4px;
  border: 1px solid var(--blue);
  border-radius: 3px;
  background: var(--bg-input, var(--bg-card));
  color: var(--text-1);
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

/* Right-click context menu */
.layer-ctx-menu {
  position: fixed;
  z-index: 10000;
  min-width: 170px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  padding: 4px 0;
  font-size: 12px;
  color: var(--text-1);
}
.layer-ctx-item {
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s;
  position: relative;
  overflow: hidden;
}
.layer-ctx-item:hover {
  background: var(--blue);
  color: #fff;
}
.layer-ctx-item.disabled {
  opacity: 0.35;
  pointer-events: none;
}
.layer-ctx-sep {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

/* Folder chevron */
.folder-collapse-chevron {
  display: inline-block;
  width: 14px;
  font-size: 10px;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}
.folder-collapse-chevron.collapsed {
  transform: rotate(-90deg);
}

/* Drag handle grip */
.drag-handle {
  width: 8px;
  cursor: grab;
  flex-shrink: 0;
  opacity: 0.3;
  font-size: 10px;
  user-select: none;
  transition: opacity 0.15s;
}
.layer-row:hover .drag-handle { opacity: 0.7; }

/* Layer image in preview */
.layer-image {
  position: absolute;
  pointer-events: none;
  transform-origin: 0 0;
}

/* Layer element in live preview */
.layer-element {
  position: absolute;
  pointer-events: none;
  transform-origin: 0 0;
}
.layer-folder-wrap {
  position: absolute;
  pointer-events: none;
}

/* Exposed folder controls in user editor */
.exposed-folder-controls {
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exposed-folder-controls + .exposed-folder-controls {
  margin-top: 2px;
}
.exposed-folder-name {
  font-weight: 700;
  font-size: 12px;
  color: var(--text-1);
  letter-spacing: 0.02em;
}
/* Compact inline field rows inside folder controls */
.exposed-folder-controls .field {
  gap: 4px;
}
.exposed-folder-controls .field-label {
  font-size: 11px;
  color: var(--text-2);
  font-weight: 500;
}
.exposed-folder-controls .range-row {
  gap: 8px;
}
.exposed-folder-controls .range-input {
  height: 4px;
}
.exposed-folder-controls .range-input::-webkit-slider-thumb {
  width: 16px; height: 16px;
  margin-top: -6px;
  box-shadow:
    0 1px 6px 0 rgba(0,30,63,0.10),
    inset 0 0 8px rgba(255,255,255,0.5),
    inset 1px 1px 0 rgba(69,168,243,0.12);
}
[data-theme="dark"] .exposed-folder-controls .range-input::-webkit-slider-thumb {
  box-shadow:
    0 1px 6px 0 rgba(0,0,0,0.25),
    inset 0 0 10px rgba(255,255,255,0.06),
    inset 1px 1px 0 rgba(255,255,255,0.08);
}
.exposed-folder-controls select.field-input {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
}
/* Frame controls in user editor */
.frame-controls .exposed-folder-name::before {
  content: '\1F5BC';
  margin-right: 4px;
  font-size: 11px;
}
/* Art layer controls in user editor */
.art-controls .exposed-folder-name::before {
  content: '\1F3A8';
  margin-right: 4px;
  font-size: 11px;
}

/* Inline color row */
.color-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.color-field-row .field-label {
  font-size: 11px;
  color: var(--text-2);
  font-weight: 500;
  margin: 0;
}
.color-swatch-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  padding: 0;
  position: relative;
}
.color-swatch-btn:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-glow);
}
.color-swatch-btn input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border: none;
  padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .elements-list {
    max-height: 150px;
  }
  .elem-move-select {
    display: none;
  }
}

/* ============================================================
   DARK THEME — GLASS / MOUSE LIGHT / TRANSITIONS / POLISH
   ============================================================ */

/* ── Smooth theme transitions ── */
body,
.topnav,
.shop-card,
.mockup-card,
.dialog-card,
.modal-card,
.auth-card,
.field-input,
.filter-drawer, .cart-drawer,
.landing-feature-card,
.landing-demo-slot,
.category-menu-popover,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-back,
.pricing-card,
.toast,
.filter-pill,
.etsy-icon-btn,
.etsy-search-input,
.nav-credit-badge {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

/* ── Theme toggle — glass pill switch ── */
.theme-switch {
  --glass-light: 1;
  --glass-dark: 1;
  position: relative;
  width: 66px; height: 36px;
  border-radius: 99em;
  border: none;
  background-color: rgba(187,187,188,0.12);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  overflow: visible;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.90),
    inset -2px -2px 0px -2px rgba(255,255,255,0.80),
    inset -3px -8px 1px -6px rgba(255,255,255,0.60),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.12),
    inset -1.5px 2.5px 0px -2px rgba(0,0,0,0.20),
    inset 0px 3px 4px -2px rgba(0,0,0,0.20),
    inset 2px -6.5px 1px -4px rgba(0,0,0,0.10),
    0px 1px 5px 0px rgba(0,0,0,0.10),
    0px 6px 16px 0px rgba(0,0,0,0.08);
  transition:
    background-color 400ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 400ms cubic-bezier(1, 0, 0.4, 1);
}
.theme-switch:hover {
  background-color: rgba(187,187,188,0.20);
}
.theme-switch__track {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  border-radius: 99em;
}
.theme-switch__icons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  pointer-events: none;
  z-index: 1;
}
.theme-switch__icon {
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s, scale 0.2s cubic-bezier(0.5, 0, 0, 1);
}
.theme-icon-img {
  width: 16px;
  height: 16px;
  display: block;
  color: #555;
}
[data-theme="dark"] .theme-icon-img {
  color: #fff;
}
.theme-switch__sun { opacity: 0.8; }
.theme-switch__moon { opacity: 0.35; }
.theme-switch--dark .theme-switch__sun { opacity: 0.35; }
.theme-switch--dark .theme-switch__moon { opacity: 0.9; }
.theme-switch:hover .theme-switch__icon { scale: 1.15; }
/* Glass thumb (sliding indicator) */
.theme-switch__thumb {
  position: absolute;
  top: 4px; left: 4px;
  width: 28px; height: 28px;
  border-radius: 99em;
  z-index: 2;
  background-color: rgba(187,187,188,0.36);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 2px 1px 0px -1px rgba(255,255,255,0.90),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.80),
    inset -2px -6px 1px -5px rgba(255,255,255,0.60),
    inset -1px 2px 3px -1px rgba(0,0,0,0.20),
    inset 0px -4px 1px -2px rgba(0,0,0,0.10),
    0px 3px 6px 0px rgba(0,0,0,0.08);
  transition:
    translate 400ms cubic-bezier(1, 0, 0.4, 1),
    background-color 400ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 400ms cubic-bezier(1, 0, 0.4, 1);
  animation: themeThumbBounce 440ms ease;
}
.theme-switch--dark .theme-switch__thumb {
  translate: 30px 0;
  animation: themeThumbBounceDark 440ms ease;
}
@keyframes themeThumbBounce {
  0% { scale: 1 1; }
  50% { scale: 1.15 0.92; }
  100% { scale: 1 1; }
}
@keyframes themeThumbBounceDark {
  0% { scale: 1 1; }
  50% { scale: 1.15 0.92; }
  100% { scale: 1 1; }
}
/* Dark mode variant */
.theme-switch--dark {
  --glass-light: 0.3;
  --glass-dark: 2;
  background-color: rgba(187,187,188,0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.27),
    inset -2px -2px 0px -2px rgba(255,255,255,0.24),
    inset -3px -8px 1px -6px rgba(255,255,255,0.18),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.24),
    inset -1.5px 2.5px 0px -2px rgba(0,0,0,0.40),
    inset 0px 3px 4px -2px rgba(0,0,0,0.40),
    inset 2px -6.5px 1px -4px rgba(0,0,0,0.20),
    0px 1px 5px 0px rgba(0,0,0,0.20),
    0px 6px 16px 0px rgba(0,0,0,0.16);
}
.theme-switch--dark:hover {
  background-color: rgba(187,187,188,0.14);
}
.theme-switch--dark .theme-switch__thumb {
  background-color: rgba(187,187,188,0.20);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 2px 1px 0px -1px rgba(255,255,255,0.27),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.24),
    inset -2px -6px 1px -5px rgba(255,255,255,0.18),
    inset -1px 2px 3px -1px rgba(0,0,0,0.40),
    inset 0px -4px 1px -2px rgba(0,0,0,0.20),
    0px 3px 6px 0px rgba(0,0,0,0.16);
}

/* ── Mouse light — specular rim light that follows cursor along glass edges ── */
/* Base: position relative for the ::after pseudo-element */
.ml-target,
.btn, .btn-primary, .btn-secondary, .btn-danger, .btn-back, .btn-social,
.etsy-icon-btn, .etsy-search-btn, .etsy-cat-btn, .etsy-search-wrap,
.shop-card, .mockup-card, .pricing-card, .card-add,
.dialog-btn-ok, .dialog-btn-cancel, .dialog-btn-danger,
.filter-pill, .admin-tab-btn, .editor-tab, .admin-editor-tab,
.category-menu-tab, .category-subcard, .profile-tab,
.nav-credit-badge,
.shop-detail-thumb, .art-batch-thumb,
.field-input, .dialog-input,
.richtext-btn, .zoom-btn, .transport-btn,
.layers-add-btn, .layers-add-option, .layer-row, .layer-ctx-item,
.my-sidebar-item, .card-folder-btn, .card-dup-btn,
.pricing-btn, .pricing-btn-popular,
.shop-detail-buy-btn, .shop-detail-preview-btn,
.filter-left-btn, .filter-accordion-toggle,
.category-menu-item,
.dropzone, .request-card, .profile-card,
.toast, .auth-card,
.dialog-card, .modal-card,
.exposed-folder-controls,
.seller-sales-stat, .seller-product-row, .seller-tx-row, .seller-chart-wrap,
.review-card, .seller-review-card, .review-reminder,
.purchase-row, .conv-item, .notif-item,
.nav-menu-item,
.sidebar-item {
  position: relative;
}

/* Specular rim pseudo-element — gradient masked to border edge only */
.ml-target::after,
.btn::after, .btn-primary::after, .btn-secondary::after, .btn-danger::after, .btn-back::after, .btn-social::after,
.etsy-icon-btn::after, .etsy-search-btn::after, .etsy-cat-btn::after, .etsy-search-wrap::after,
.shop-card::after, .mockup-card::after, .pricing-card::after, .card-add::after,
.dialog-btn-ok::after, .dialog-btn-cancel::after, .dialog-btn-danger::after,
.filter-pill::after, .admin-tab-btn::after, .editor-tab::after, .admin-editor-tab::after,
.category-menu-tab::after, .category-subcard::after, .profile-tab::after,
.nav-credit-badge::after,
.shop-detail-thumb::after, .art-batch-thumb::after,
.field-input::after, .dialog-input::after,
.richtext-btn::after, .zoom-btn::after, .transport-btn::after,
.layers-add-btn::after, .layers-add-option::after, .layer-row::after, .layer-ctx-item::after,
.my-sidebar-item::after, .card-folder-btn::after, .card-dup-btn::after,
.pricing-btn::after, .pricing-btn-popular::after,
.shop-detail-buy-btn::after, .shop-detail-preview-btn::after,
.filter-left-btn::after, .filter-accordion-toggle::after,
.category-menu-item::after,
.dropzone::after, .request-card::after, .profile-card::after,
.toast::after, .auth-card::after,
.dialog-card::after, .modal-card::after,
.exposed-folder-controls::after,
.seller-sales-stat::after, .seller-product-row::after, .seller-tx-row::after, .seller-chart-wrap::after,
.review-card::after, .seller-review-card::after, .review-reminder::after,
.purchase-row::after, .conv-item::after, .notif-item::after, .nav-menu-item::after, .sidebar-item::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    var(--ml-size, 200px) circle at var(--ml-x, 50%) var(--ml-y, 50%),
    rgba(255,255,255,0.38), transparent 70%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 1;
}

/* Activate rim on mouse proximity */
.ml-active::after { opacity: 1; }

/* Light theme: blue-tinted specular rim */
[data-theme="light"] .ml-active::after {
  background: radial-gradient(
    var(--ml-size, 200px) circle at var(--ml-x, 50%) var(--ml-y, 50%),
    rgba(41,171,226,0.32), transparent 70%
  );
  opacity: 1;
}

/* ── Global click animation — smooth press on ALL interactive elements ── */
.btn, .btn-primary, .btn-secondary, .btn-danger, .btn-back, .btn-social,
.etsy-icon-btn, .etsy-search-btn, .etsy-cat-btn,
.dialog-btn-ok, .dialog-btn-cancel, .dialog-btn-danger,
.filter-pill, .admin-tab-btn, .editor-tab, .admin-editor-tab,
.category-menu-tab, .profile-tab,
.nav-credit-badge,
.richtext-btn, .zoom-btn, .transport-btn,
.layers-add-btn, .layers-add-option,
.my-sidebar-item, .card-folder-btn,
.pricing-btn, .pricing-btn-popular,
.shop-detail-buy-btn, .shop-detail-preview-btn,
.filter-left-btn, .filter-accordion-toggle,
.category-menu-item, .category-subcard,
.expose-switch {
  transition:
    background-color 300ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 300ms cubic-bezier(1, 0, 0.4, 1),
    transform 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}
.btn:active, .btn-primary:active, .btn-secondary:active, .btn-danger:active,
.btn-back:active, .btn-social:active,
.etsy-icon-btn:active, .etsy-search-btn:active, .etsy-cat-btn:active,
.dialog-btn-ok:active, .dialog-btn-cancel:active, .dialog-btn-danger:active,
.filter-pill:active, .admin-tab-btn:active, .editor-tab:active, .admin-editor-tab:active,
.category-menu-tab:active, .profile-tab:active,
.nav-credit-badge:active,
.richtext-btn:active, .zoom-btn:active, .transport-btn:active,
.layers-add-btn:active, .layers-add-option:active,
.my-sidebar-item:active, .card-folder-btn:active,
.pricing-btn:active, .pricing-btn-popular:active,
.shop-detail-buy-btn:active, .shop-detail-preview-btn:active,
.filter-left-btn:active, .filter-accordion-toggle:active,
.category-menu-item:active, .category-subcard:active,
.expose-switch:active {
  transform: scale(0.96);
}

/* Cards: subtle press + lift on hover */
.shop-card, .mockup-card, .pricing-card,
.card-add, .request-card, .profile-card {
  transition:
    background-color 350ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 350ms cubic-bezier(1, 0, 0.4, 1),
    transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 300ms ease;
}
.shop-card:active, .mockup-card:active, .pricing-card:active,
.card-add:active, .request-card:active, .profile-card:active {
  transform: scale(0.98);
}

/* ============================================================
   LIGHT GLASS EFFECTS (iOS-style frosted glass)
   ============================================================ */

/* ── Nav bar glass (light) ── */
[data-theme="light"] .topnav {
  background-color: rgba(187,187,188,0.10);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.75),
    inset -2px -2px 0px -2px rgba(255,255,255,0.60),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.06),
    inset 0px 3px 4px -2px rgba(0,0,0,0.08),
    0px 1px 5px 0px rgba(0,0,0,0.05),
    0px 6px 20px 0px rgba(0,0,0,0.03);
}

/* ── Buttons glass (light) ── */
[data-theme="light"] .btn-primary {
  background-color: rgba(41,171,226,0.82);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.15),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.50),
    inset -1px -1px 0px -1px rgba(255,255,255,0.35),
    inset -2px -5px 1px -4px rgba(255,255,255,0.25),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.12),
    inset 0px 2px 3px -1px rgba(0,0,0,0.15),
    0px 1px 4px 0px rgba(41,171,226,0.15),
    0px 4px 12px 0px rgba(41,171,226,0.12);
  transition:
    background-color 300ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 300ms cubic-bezier(1, 0, 0.4, 1),
    transform 200ms ease;
}
[data-theme="light"] .btn-primary:hover {
  background-color: rgba(41,171,226,0.92);
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.18),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.60),
    inset -1px -1px 0px -1px rgba(255,255,255,0.40),
    inset -2px -5px 1px -4px rgba(255,255,255,0.30),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.10),
    inset 0px 2px 3px -1px rgba(0,0,0,0.12),
    0px 2px 8px 0px rgba(41,171,226,0.22),
    0px 8px 20px 0px rgba(41,171,226,0.18);
}
[data-theme="light"] .btn-primary:active {
  transform: translateY(0) scale(0.98);
}

[data-theme="light"] .btn-secondary {
  background-color: rgba(187,187,188,0.12);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.85),
    inset -1px -1px 0px -1px rgba(255,255,255,0.70),
    inset -2px -5px 1px -4px rgba(255,255,255,0.50),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.08),
    inset 0px 2px 3px -1px rgba(0,0,0,0.12),
    0px 1px 4px 0px rgba(0,0,0,0.06),
    0px 4px 12px 0px rgba(0,0,0,0.04);
  transition:
    background-color 300ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 300ms cubic-bezier(1, 0, 0.4, 1),
    transform 200ms ease;
}
[data-theme="light"] .btn-secondary:hover {
  background-color: rgba(187,187,188,0.20);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.90),
    inset -1px -1px 0px -1px rgba(255,255,255,0.80),
    inset -2px -5px 1px -4px rgba(255,255,255,0.55),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.06),
    inset 0px 2px 3px -1px rgba(0,0,0,0.10),
    0px 2px 6px 0px rgba(41,171,226,0.08),
    0px 6px 16px 0px rgba(41,171,226,0.06);
}
[data-theme="light"] .btn-secondary:active {
  transform: scale(0.98);
}

/* ── Cards glass (light) ── */
[data-theme="light"] .shop-card,
[data-theme="light"] .mockup-card {
  background-color: rgba(187,187,188,0.10);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.80),
    inset -2px -2px 0px -2px rgba(255,255,255,0.65),
    inset -3px -8px 1px -6px rgba(255,255,255,0.45),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.08),
    inset 0px 3px 4px -2px rgba(0,0,0,0.10),
    0px 1px 5px 0px rgba(0,0,0,0.06),
    0px 6px 16px 0px rgba(0,0,0,0.04);
}
[data-theme="light"] .shop-card:hover,
[data-theme="light"] .mockup-card:hover {
  background-color: rgba(187,187,188,0.16);
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.85),
    inset -2px -2px 0px -2px rgba(255,255,255,0.70),
    inset -3px -8px 1px -6px rgba(255,255,255,0.50),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.06),
    inset 0px 3px 4px -2px rgba(0,0,0,0.08),
    0px 2px 8px 0px rgba(41,171,226,0.08),
    0px 12px 28px 0px rgba(0,0,0,0.08);
}

/* ── Dialog / Modal glass (light) ── */
[data-theme="light"] .dialog-card,
[data-theme="light"] .modal-card,
[data-theme="light"] .auth-card {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.72) 0%,
    rgba(245,245,247,0.62) 50%,
    rgba(255,255,255,0.68) 100%
  );
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.50);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.20),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.90),
    inset -2px -2px 0px -2px rgba(255,255,255,0.75),
    inset -3px -8px 1px -6px rgba(255,255,255,0.55),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.06),
    inset 0px 3px 4px -2px rgba(0,0,0,0.08),
    0px 4px 16px 0px rgba(0,0,0,0.08),
    0px 24px 48px 0px rgba(0,0,0,0.12);
}

/* ── Filter drawer glass (light) ── */
[data-theme="light"] .filter-drawer {
  background-color: rgba(187,187,188,0.10);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-right: none;
  box-shadow:
    inset -1px 0 0 rgba(255,255,255,0.50),
    inset 0 1px 0 rgba(255,255,255,0.60),
    4px 0 16px rgba(0,0,0,0.04);
}

/* ── Category menu glass (light) ── */
[data-theme="light"] .category-menu-popover {
  background-color: rgba(245,245,248,0.80);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: none;
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.50),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.90),
    inset -2px -2px 0px -2px rgba(255,255,255,0.70),
    inset -3px -10px 2px -7px rgba(255,255,255,0.40),
    inset -1px 2px 4px -1px rgba(0,0,0,0.06),
    inset 0px -5px 2px -3px rgba(0,0,0,0.04),
    0px 8px 20px 0px rgba(0,0,0,0.08),
    0px 24px 60px 0px rgba(0,0,0,0.10);
}
[data-theme="light"] .category-menu-popover::before {
  background: rgba(245,245,248,0.80);
  border-left: 1px solid rgba(255,255,255,0.50);
  border-top: 1px solid rgba(255,255,255,0.50);
}
[data-theme="light"] .category-menu-backdrop {
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
[data-theme="light"] .category-menu-tabs {
  border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .category-menu-item {
  border-bottom-color: rgba(0,0,0,0.05);
}
[data-theme="light"] .category-menu-item:hover {
  background: rgba(41,171,226,0.06);
}
[data-theme="light"] .category-menu-item.active {
  background: rgba(41,171,226,0.08);
  border-top-color: rgba(41,171,226,0.20);
  border-bottom-color: rgba(41,171,226,0.20);
  color: var(--blue);
}
[data-theme="light"] .category-menu-item.active .category-menu-item-label {
  color: var(--blue);
}
[data-theme="light"] .category-subcard-art {
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .category-subcard:hover .category-subcard-art {
  border-color: rgba(41,171,226,0.25);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(41,171,226,0.12);
}

/* ── Inputs glass (light) ── */
[data-theme="light"] .field-input,
[data-theme="light"] select.field-input,
[data-theme="light"] .dialog-input {
  background-color: rgba(187,187,188,0.08);
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.65),
    inset -1px -1px 0px -1px rgba(255,255,255,0.50),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.06),
    inset 0px 2px 3px -1px rgba(0,0,0,0.08);
}
[data-theme="light"] .field-input:focus,
[data-theme="light"] select.field-input:focus,
[data-theme="light"] .dialog-input:focus {
  background-color: rgba(187,187,188,0.14);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.30),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.70),
    inset -1px -1px 0px -1px rgba(255,255,255,0.55),
    0px 0px 0px 3px rgba(41,171,226,0.10),
    0px 2px 8px 0px rgba(41,171,226,0.08);
}

/* ── Tabs & pills glass (light) ── */
[data-theme="light"] .filter-pill,
[data-theme="light"] .admin-tab-btn,
[data-theme="light"] .editor-tab,
[data-theme="light"] .admin-editor-tab,
[data-theme="light"] .category-menu-tab,
[data-theme="light"] .profile-tab {
  background-color: rgba(187,187,188,0.08);
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.60),
    inset -1px -1px 0px -1px rgba(255,255,255,0.45),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.05),
    0px 1px 3px 0px rgba(0,0,0,0.03);
}
[data-theme="light"] .filter-pill.active,
[data-theme="light"] .admin-tab-btn.active,
[data-theme="light"] .editor-tab.active,
[data-theme="light"] .admin-editor-tab.active,
[data-theme="light"] .category-menu-tab.active,
[data-theme="light"] .profile-tab.active {
  background-color: rgba(41,171,226,0.12);
  color: var(--blue);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.15),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.70),
    inset -1px -1px 0px -1px rgba(255,255,255,0.50),
    0px 1px 4px 0px rgba(41,171,226,0.10),
    0px 4px 10px 0px rgba(41,171,226,0.06);
}
[data-theme="light"] .filter-pill:hover,
[data-theme="light"] .admin-tab-btn:hover,
[data-theme="light"] .editor-tab:hover,
[data-theme="light"] .admin-editor-tab:hover {
  background-color: rgba(187,187,188,0.16);
}

/* ── Listing cards glass (light) ── */
[data-theme="light"] .listing-card {
  background-color: rgba(187,187,188,0.08);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.75),
    inset -1.5px -1.5px 0px -1px rgba(255,255,255,0.60),
    inset -2px -6px 1px -4px rgba(255,255,255,0.40),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.06),
    inset 0px 2px 3px -1px rgba(0,0,0,0.08),
    0px 1px 4px 0px rgba(0,0,0,0.04),
    0px 4px 12px 0px rgba(0,0,0,0.03);
}

/* ── Seller sales stat cards glass (light) ── */
[data-theme="light"] .seller-sales-stat,
[data-theme="light"] .seller-product-row,
[data-theme="light"] .seller-tx-row:not(.seller-tx-header),
[data-theme="light"] .seller-chart-wrap {
  background-color: rgba(187,187,188,0.08);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.45),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.65),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.05),
    0px 1px 3px 0px rgba(0,0,0,0.04);
}

/* ── Pricing cards glass (light) ── */
[data-theme="light"] .pricing-card {
  background-color: rgba(187,187,188,0.10);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.80),
    inset -2px -2px 0px -2px rgba(255,255,255,0.65),
    inset -3px -8px 1px -6px rgba(255,255,255,0.45),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.08),
    inset 0px 3px 4px -2px rgba(0,0,0,0.10),
    0px 1px 5px 0px rgba(0,0,0,0.05),
    0px 6px 16px 0px rgba(0,0,0,0.04);
}
[data-theme="light"] .pricing-card:hover,
[data-theme="light"] .pricing-card.featured {
  background-color: rgba(187,187,188,0.16);
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.85),
    inset -2px -2px 0px -2px rgba(255,255,255,0.70),
    inset -3px -8px 1px -6px rgba(255,255,255,0.50),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.06),
    inset 0px 3px 4px -2px rgba(0,0,0,0.08),
    0px 2px 8px 0px rgba(41,171,226,0.08),
    0px 12px 28px 0px rgba(0,0,0,0.08);
}

/* ── Toast glass (light) ── */
[data-theme="light"] .toast {
  background-color: rgba(187,187,188,0.12);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.80),
    inset -1px -1px 0px -1px rgba(255,255,255,0.60),
    0px 4px 12px 0px rgba(0,0,0,0.06),
    0px 12px 32px 0px rgba(0,0,0,0.08);
}

/* ── Heart / Cart buttons sit on card image — dark overlay, theme-independent ── */

/* ── Search bar glass (light) ── */
/* ── Search input — transparent inside the glass wrap (light) ── */
[data-theme="light"] .etsy-search-input {
  background: transparent;
  border: none;
  box-shadow: none;
}
[data-theme="light"] .etsy-search-input:focus {
  box-shadow: none;
}

/* ── Dialog buttons glass (light) ── */
[data-theme="light"] .dialog-btn-cancel {
  background-color: rgba(187,187,188,0.12);
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.70),
    inset -1px -1px 0px -1px rgba(255,255,255,0.50),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.06),
    0px 1px 3px 0px rgba(0,0,0,0.04);
}
[data-theme="light"] .dialog-btn-cancel:hover {
  background-color: rgba(187,187,188,0.20);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.80),
    inset -1px -1px 0px -1px rgba(255,255,255,0.55),
    0px 2px 6px 0px rgba(0,0,0,0.06);
}
[data-theme="light"] .dialog-btn-ok {
  background-color: rgba(41,171,226,0.82);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  border: none;
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.15),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.50),
    inset -1px -1px 0px -1px rgba(255,255,255,0.35),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.10),
    0px 1px 4px 0px rgba(41,171,226,0.15),
    0px 4px 12px 0px rgba(41,171,226,0.12);
}
[data-theme="light"] .dialog-btn-ok:hover {
  background-color: rgba(41,171,226,0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.18),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.60),
    inset -1px -1px 0px -1px rgba(255,255,255,0.40),
    0px 2px 8px 0px rgba(41,171,226,0.22),
    0px 8px 20px 0px rgba(41,171,226,0.18);
}

/* ── Btn-danger / btn-back glass (light) ── */
[data-theme="light"] .btn-danger {
  background-color: rgba(231,76,60,0.80);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  border: none;
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.40),
    inset -1px -1px 0px -1px rgba(255,255,255,0.25),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.12),
    0px 1px 4px 0px rgba(231,76,60,0.15);
}
[data-theme="light"] .btn-danger:hover {
  background-color: rgba(231,76,60,0.90);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.15),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.50),
    0px 2px 8px 0px rgba(231,76,60,0.20);
}
[data-theme="light"] .btn-back {
  background-color: rgba(187,187,188,0.08);
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.65),
    inset -1px -1px 0px -1px rgba(255,255,255,0.50),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.05),
    0px 1px 3px 0px rgba(0,0,0,0.03);
}
[data-theme="light"] .btn-back:hover {
  background-color: rgba(187,187,188,0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.70),
    0px 2px 6px 0px rgba(41,171,226,0.06);
}
[data-theme="light"] .btn-social {
  background-color: rgba(187,187,188,0.10);
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.70),
    inset -1px -1px 0px -1px rgba(255,255,255,0.50),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.06),
    0px 1px 3px 0px rgba(0,0,0,0.04);
}
[data-theme="light"] .btn-social:hover {
  background-color: rgba(187,187,188,0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.80),
    0px 2px 6px 0px rgba(41,171,226,0.06);
}

/* ── User sidebar glass (light) ── */
[data-theme="light"] .user-sidebar {
  background-color: rgba(187,187,188,0.08);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: none;
  box-shadow:
    inset -1px 0 0 rgba(255,255,255,0.50),
    inset 0 1px 0 rgba(255,255,255,0.60),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.70),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.05),
    2px 0 12px rgba(0,0,0,0.04);
}

/* ── My mockups sidebar glass (light) ── */
[data-theme="light"] .my-mockups-sidebar {
  background-color: rgba(187,187,188,0.06);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: none;
  box-shadow:
    inset -1px 0 0 rgba(255,255,255,0.50),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.65),
    2px 0 12px rgba(0,0,0,0.03);
}

/* ── My sidebar items glass (light) ── */
[data-theme="light"] .my-sidebar-item:hover {
  background-color: rgba(187,187,188,0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1px 1px 0px -1px rgba(255,255,255,0.65);
}
[data-theme="light"] .my-sidebar-item.active {
  background-color: rgba(41,171,226,0.10);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.12),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.60),
    0px 1px 4px 0px rgba(41,171,226,0.06);
}

/* ── Profile card glass (light) ── */
[data-theme="light"] .profile-card {
  background-color: rgba(187,187,188,0.10);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.80),
    inset -2px -2px 0px -2px rgba(255,255,255,0.65),
    inset -3px -8px 1px -6px rgba(255,255,255,0.45),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.08),
    inset 0px 3px 4px -2px rgba(0,0,0,0.10),
    0px 1px 5px 0px rgba(0,0,0,0.06),
    0px 6px 16px 0px rgba(0,0,0,0.04);
}

/* ── Request card glass (light) ── */
[data-theme="light"] .request-card {
  background-color: rgba(187,187,188,0.10);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.80),
    inset -2px -2px 0px -2px rgba(255,255,255,0.65),
    inset -3px -8px 1px -6px rgba(255,255,255,0.45),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.08),
    inset 0px 3px 4px -2px rgba(0,0,0,0.10),
    0px 1px 5px 0px rgba(0,0,0,0.06),
    0px 6px 16px 0px rgba(0,0,0,0.04);
}

/* ── Exposed folder controls glass (light) ── */
[data-theme="light"] .exposed-folder-controls {
  background-color: rgba(187,187,188,0.08);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.65),
    inset -1px -1px 0px -1px rgba(255,255,255,0.50),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.05),
    0px 1px 4px 0px rgba(0,0,0,0.03);
}

/* ── Dropzone glass (light) ── */
[data-theme="light"] .dropzone {
  background-color: rgba(187,187,188,0.06);
  border: none;
  box-shadow:
    inset 0 0 0 2px rgba(187,187,188,0.20),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.60),
    inset -1px -1px 0px -1px rgba(255,255,255,0.45),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.04);
}
[data-theme="light"] .dropzone:hover,
[data-theme="light"] .dropzone.active {
  background-color: rgba(41,171,226,0.06);
  box-shadow:
    inset 0 0 0 2px rgba(41,171,226,0.30),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.70),
    0px 0px 0px 3px rgba(41,171,226,0.08);
}

/* ── Richtext editor glass (light) ── */
[data-theme="light"] .richtext-editor {
  background-color: rgba(187,187,188,0.08);
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.65),
    inset -1px -1px 0px -1px rgba(255,255,255,0.50),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.06),
    inset 0px 2px 3px -1px rgba(0,0,0,0.08);
}
[data-theme="light"] .richtext-editor:focus {
  background-color: rgba(187,187,188,0.14);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.30),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.70),
    0px 0px 0px 3px rgba(41,171,226,0.10);
}
[data-theme="light"] .richtext-btn {
  background-color: rgba(187,187,188,0.08);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1px 1px 0px -1px rgba(255,255,255,0.65),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.04),
    0px 1px 2px 0px rgba(0,0,0,0.02);
}
[data-theme="light"] .richtext-btn:hover {
  background-color: rgba(187,187,188,0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1px 1px 0px -1px rgba(255,255,255,0.70),
    0px 1px 4px 0px rgba(0,0,0,0.04);
}

/* ── Credit badge glass (light) ── */
[data-theme="light"] .nav-credit-badge {
  background-color: rgba(41,171,226,0.10);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.12),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.65),
    0px 1px 4px 0px rgba(41,171,226,0.08);
}

/* ── Nav avatar glass (light) ── */
[data-theme="light"] .nav-avatar-initials {
  background-color: rgba(41,171,226,0.12);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.12),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.60),
    inset -1px -1px 0px -1px rgba(255,255,255,0.40),
    0px 1px 4px 0px rgba(41,171,226,0.10);
}

/* ── Zoom / transport buttons glass (light) ── */
[data-theme="light"] .zoom-btn,
[data-theme="light"] .transport-btn {
  background-color: rgba(187,187,188,0.08);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1px 1px 0px -1px rgba(255,255,255,0.65),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.04),
    0px 1px 2px 0px rgba(0,0,0,0.02);
}
[data-theme="light"] .zoom-btn:hover,
[data-theme="light"] .transport-btn:hover {
  background-color: rgba(187,187,188,0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1px 1px 0px -1px rgba(255,255,255,0.70),
    0px 1px 4px 0px rgba(0,0,0,0.04);
}

/* ── Layers panel buttons glass (light) ── */
[data-theme="light"] .layers-add-btn {
  background-color: rgba(187,187,188,0.08);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1px 1px 0px -1px rgba(255,255,255,0.65),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.04),
    0px 1px 2px 0px rgba(0,0,0,0.02);
}
[data-theme="light"] .layers-add-btn:hover {
  background-color: rgba(41,171,226,0.10);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1px 1px 0px -1px rgba(255,255,255,0.70),
    0px 1px 4px 0px rgba(41,171,226,0.06);
}
[data-theme="light"] .layers-add-option {
  background-color: rgba(187,187,188,0.06);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1px 1px 0px -1px rgba(255,255,255,0.60);
}
[data-theme="light"] .layers-add-option:hover {
  background-color: rgba(41,171,226,0.08);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.10),
    inset 1px 1px 0px -1px rgba(255,255,255,0.70);
}

/* ── Layers panel glass (light) ── */
[data-theme="light"] .layers-panel {
  background-color: rgba(187,187,188,0.06);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-right: none;
  box-shadow:
    inset -1px 0 0 rgba(255,255,255,0.40),
    inset 0 1px 0 rgba(255,255,255,0.50),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.65),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.05),
    2px 0 12px rgba(0,0,0,0.03);
}
[data-theme="light"] .layers-panel-header {
  border-bottom-color: rgba(255,255,255,0.35);
  background-color: rgba(255,255,255,0.15);
}
[data-theme="light"] .layers-topbar {
  border-bottom-color: rgba(255,255,255,0.30);
  background-color: rgba(255,255,255,0.10);
}
[data-theme="light"] .layers-topbar select.tb-blend {
  background-color: rgba(187,187,188,0.10);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1px 1px 0px -1px rgba(255,255,255,0.60),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.04),
    0px 1px 2px 0px rgba(0,0,0,0.02);
}
[data-theme="light"] .layer-row {
  background-color: rgba(187,187,188,0.06);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1px 1px 0px -1px rgba(255,255,255,0.50);
  transition:
    background-color 200ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 200ms cubic-bezier(1, 0, 0.4, 1);
}
[data-theme="light"] .layer-row:hover {
  background-color: rgba(187,187,188,0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1px 1px 0px -1px rgba(255,255,255,0.65),
    0px 1px 4px 0px rgba(41,171,226,0.05);
}
[data-theme="light"] .layer-row.selected {
  background-color: rgba(41,171,226,0.10);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.15),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.55),
    0px 1px 4px 0px rgba(41,171,226,0.08);
}
[data-theme="light"] .layer-row.folder-row {
  background-color: rgba(187,187,188,0.10);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1px 1px 0px -1px rgba(255,255,255,0.60),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.03);
}
[data-theme="light"] .layers-base-label {
  border-top-color: rgba(255,255,255,0.30);
}
[data-theme="light"] .layers-add-menu {
  background-color: rgba(245,245,248,0.80);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.35),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.80),
    0px 4px 16px 0px rgba(0,0,0,0.10),
    0px 16px 36px 0px rgba(0,0,0,0.08);
}
[data-theme="light"] .layer-ctx-menu {
  background-color: rgba(245,245,248,0.82);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.40),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.85),
    inset -2px -2px 0px -2px rgba(255,255,255,0.65),
    0px 4px 16px 0px rgba(0,0,0,0.10),
    0px 16px 36px 0px rgba(0,0,0,0.08);
}
[data-theme="light"] .layer-ctx-item:hover {
  background-color: rgba(41,171,226,0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 1px 1px 0px -1px rgba(255,255,255,0.40);
}
[data-theme="light"] .layer-ctx-sep {
  background: rgba(0,0,0,0.06);
}
[data-theme="light"] .drag-ghost {
  background-color: rgba(245,245,248,0.85);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.15),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.70),
    0px 8px 24px rgba(0,0,0,0.12),
    0px 2px 6px rgba(0,0,0,0.06);
}

/* ── Card folder buttons glass (light) ── */
[data-theme="light"] .card-folder-btn {
  background-color: rgba(187,187,188,0.08);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1px 1px 0px -1px rgba(255,255,255,0.65),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.04),
    0px 1px 2px 0px rgba(0,0,0,0.02);
}
[data-theme="light"] .card-folder-btn:hover {
  background-color: rgba(187,187,188,0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1px 1px 0px -1px rgba(255,255,255,0.70),
    0px 1px 4px 0px rgba(0,0,0,0.04);
}
[data-theme="light"] .card-dup-btn {
  background-color: rgba(187,187,188,0.08);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1px 1px 0px -1px rgba(255,255,255,0.65),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.04),
    0px 1px 2px 0px rgba(0,0,0,0.02);
}
[data-theme="light"] .card-dup-btn:hover {
  background-color: rgba(41,171,226,0.10);
  color: var(--blue);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.12),
    inset 1px 1px 0px -1px rgba(255,255,255,0.70),
    0px 1px 4px 0px rgba(0,0,0,0.04);
}

/* ── Expose switch glass (light) ── */
[data-theme="light"] .expose-switch {
  background-color: rgba(187,187,188,0.10);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.70),
    inset -1px -1px 0px -1px rgba(255,255,255,0.50),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.05);
}

/* ── Pricing action buttons glass (light) ── */
[data-theme="light"] .pricing-btn {
  background-color: rgba(187,187,188,0.12);
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.70),
    inset -1px -1px 0px -1px rgba(255,255,255,0.50),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.06),
    0px 1px 3px 0px rgba(0,0,0,0.04);
}
[data-theme="light"] .pricing-btn:hover {
  background-color: rgba(187,187,188,0.20);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.80),
    0px 2px 6px 0px rgba(0,0,0,0.06);
}
[data-theme="light"] .pricing-btn-popular {
  background-color: rgba(41,171,226,0.82);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  border: none;
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.15),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.50),
    inset -1px -1px 0px -1px rgba(255,255,255,0.35),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.10),
    0px 1px 4px 0px rgba(41,171,226,0.15),
    0px 4px 12px 0px rgba(41,171,226,0.12);
}
[data-theme="light"] .pricing-btn-popular:hover {
  background-color: rgba(41,171,226,0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.18),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.60),
    0px 2px 8px 0px rgba(41,171,226,0.22),
    0px 8px 20px 0px rgba(41,171,226,0.18);
}

/* ── Shop detail buttons glass (light) ── */
[data-theme="light"] .shop-detail-buy-btn {
  background-color: rgba(41,171,226,0.82);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  border: none;
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.15),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.50),
    inset -1px -1px 0px -1px rgba(255,255,255,0.35),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.10),
    0px 1px 4px 0px rgba(41,171,226,0.15),
    0px 4px 12px 0px rgba(41,171,226,0.12);
}
[data-theme="light"] .shop-detail-buy-btn:hover {
  background-color: rgba(41,171,226,0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.18),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.60),
    0px 2px 8px 0px rgba(41,171,226,0.22),
    0px 8px 20px 0px rgba(41,171,226,0.18);
}
[data-theme="light"] .shop-detail-preview-btn {
  background-color: rgba(187,187,188,0.12);
  backdrop-filter: blur(6px) saturate(150%);
  -webkit-backdrop-filter: blur(6px) saturate(150%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.70),
    inset -1px -1px 0px -1px rgba(255,255,255,0.50),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.06),
    0px 1px 3px 0px rgba(0,0,0,0.04);
}
[data-theme="light"] .shop-detail-preview-btn:hover {
  background-color: rgba(187,187,188,0.20);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.80),
    0px 2px 6px 0px rgba(0,0,0,0.06);
}

/* ── Category subcards glass (light) ── */
[data-theme="light"] .category-subcard {
  background-color: rgba(187,187,188,0.08);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.65),
    inset -1px -1px 0px -1px rgba(255,255,255,0.50),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.04),
    0px 1px 3px 0px rgba(0,0,0,0.02);
}
[data-theme="light"] .category-subcard:hover {
  background-color: rgba(187,187,188,0.16);
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.70),
    0px 2px 6px 0px rgba(41,171,226,0.06);
}

/* ── Filter buttons glass (light) ── */
[data-theme="light"] .filter-accordion-toggle {
  background-color: rgba(187,187,188,0.06);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1px 1px 0px -1px rgba(255,255,255,0.60),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.03);
}
[data-theme="light"] .filter-accordion-toggle:hover {
  background-color: rgba(187,187,188,0.12);
}
[data-theme="light"] .filter-left-btn {
  background-color: rgba(187,187,188,0.08);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1px 1px 0px -1px rgba(255,255,255,0.65),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.04),
    0px 1px 2px 0px rgba(0,0,0,0.02);
}
[data-theme="light"] .filter-left-btn:hover {
  background-color: rgba(41,171,226,0.10);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1px 1px 0px -1px rgba(255,255,255,0.70),
    0px 1px 4px 0px rgba(41,171,226,0.06);
}

/* ── Category menu items glass (light) ── */
[data-theme="light"] .category-menu-left {
  background-color: rgba(0,0,0,0.02);
  border-right: none;
  box-shadow: inset -1px 0 0 rgba(0,0,0,0.06);
}
[data-theme="light"] .category-menu-tabs button {
  background-color: rgba(187,187,188,0.08);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 1px 1px 0px -1px rgba(255,255,255,0.65),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.04),
    0px 1px 2px 0px rgba(0,0,0,0.02);
}
[data-theme="light"] .category-menu-tabs button.active {
  background-color: rgba(41,171,226,0.10);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.12),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.65),
    0px 1px 4px 0px rgba(41,171,226,0.08);
}
[data-theme="light"] .category-menu-tabs button:hover {
  background-color: rgba(187,187,188,0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.10),
    inset 1px 1px 0px -1px rgba(255,255,255,0.70),
    0px 1px 4px 0px rgba(0,0,0,0.04);
}

/* ============================================================
   DARK GLASS EFFECTS
   ============================================================ */

/* ── Nav bar glass ── */
[data-theme="dark"] .topnav {
  background-color: rgba(187,187,188,0.04);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.14),
    inset -2px -2px 0px -2px rgba(255,255,255,0.08),
    inset -3px -8px 1px -6px rgba(255,255,255,0.05),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.25),
    inset 0px 3px 4px -2px rgba(0,0,0,0.30),
    0px 1px 5px 0px rgba(0,0,0,0.15),
    0px 6px 20px 0px rgba(0,0,0,0.12);
}

/* ── Buttons glass ── */
[data-theme="dark"] .btn-primary {
  background-color: rgba(41,171,226,0.22);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: none;
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.18),
    inset -1px -1px 0px -1px rgba(255,255,255,0.12),
    inset -2px -5px 1px -4px rgba(255,255,255,0.08),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.25),
    inset 0px 2px 3px -1px rgba(0,0,0,0.20),
    0px 1px 4px 0px rgba(41,171,226,0.12),
    0px 4px 12px 0px rgba(41,171,226,0.10);
  transition:
    background-color 300ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 300ms cubic-bezier(1, 0, 0.4, 1),
    transform 200ms ease;
}
[data-theme="dark"] .btn-primary:hover {
  background-color: rgba(41,171,226,0.34);
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.22),
    inset -1px -1px 0px -1px rgba(255,255,255,0.16),
    inset -2px -5px 1px -4px rgba(255,255,255,0.10),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.20),
    inset 0px 2px 3px -1px rgba(0,0,0,0.16),
    0px 2px 8px 0px rgba(41,171,226,0.20),
    0px 8px 20px 0px rgba(41,171,226,0.16);
}
[data-theme="dark"] .btn-primary:active {
  transform: translateY(0) scale(0.98);
}

[data-theme="dark"] .btn-secondary {
  background-color: rgba(187,187,188,0.06);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: none;
  color: var(--text-1);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.12),
    inset -1px -1px 0px -1px rgba(255,255,255,0.08),
    inset -2px -5px 1px -4px rgba(255,255,255,0.05),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.25),
    inset 0px 2px 3px -1px rgba(0,0,0,0.20),
    0px 1px 4px 0px rgba(0,0,0,0.12),
    0px 4px 12px 0px rgba(0,0,0,0.08);
  transition:
    background-color 300ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 300ms cubic-bezier(1, 0, 0.4, 1),
    transform 200ms ease;
}
[data-theme="dark"] .btn-secondary:hover {
  background-color: rgba(41,171,226,0.12);
  color: var(--blue-light);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.16),
    inset -1px -1px 0px -1px rgba(255,255,255,0.10),
    inset -2px -5px 1px -4px rgba(255,255,255,0.07),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.20),
    inset 0px 2px 3px -1px rgba(0,0,0,0.16),
    0px 2px 6px 0px rgba(41,171,226,0.10),
    0px 6px 16px 0px rgba(41,171,226,0.06);
}
[data-theme="dark"] .btn-secondary:active {
  transform: scale(0.98);
}

[data-theme="dark"] .btn-danger {
  background: rgba(220,38,38,0.12);
  border-color: rgba(220,38,38,0.25);
}
[data-theme="dark"] .btn-danger:hover {
  background: rgba(220,38,38,0.20);
  border-color: rgba(220,38,38,0.4);
}

[data-theme="dark"] .btn-back {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
}
[data-theme="dark"] .btn-back:hover {
  background: rgba(41,171,226,0.12);
  border-color: rgba(41,171,226,0.25);
  color: var(--blue-light);
}

[data-theme="dark"] .btn-social {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .btn-social:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

/* ── Cards glass ── */
[data-theme="dark"] .shop-card,
[data-theme="dark"] .mockup-card {
  background-color: rgba(187,187,188,0.04);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.15),
    inset -2px -2px 0px -2px rgba(255,255,255,0.10),
    inset -3px -8px 1px -6px rgba(255,255,255,0.06),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.20),
    inset 0px 3px 4px -2px rgba(0,0,0,0.25),
    0px 1px 5px 0px rgba(0,0,0,0.15),
    0px 6px 16px 0px rgba(0,0,0,0.12);
}
[data-theme="dark"] .shop-card:hover,
[data-theme="dark"] .mockup-card:hover {
  background-color: rgba(187,187,188,0.08);
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.20),
    inset -2px -2px 0px -2px rgba(255,255,255,0.14),
    inset -3px -8px 1px -6px rgba(255,255,255,0.08),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.16),
    inset 0px 3px 4px -2px rgba(0,0,0,0.20),
    0px 2px 8px 0px rgba(41,171,226,0.10),
    0px 12px 28px 0px rgba(0,0,0,0.20);
}

[data-theme="dark"] .card-add {
  border: none;
  background-color: rgba(187,187,188,0.03);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.10),
    0px 1px 4px 0px rgba(0,0,0,0.10);
}
[data-theme="dark"] .card-add:hover {
  background-color: rgba(41,171,226,0.08);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.15),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.12),
    0px 2px 8px 0px rgba(41,171,226,0.08);
}

/* ── Dialog / Modal glass ── */
[data-theme="dark"] .dialog-card,
[data-theme="dark"] .modal-card,
[data-theme="dark"] .auth-card {
  background: linear-gradient(
    135deg,
    rgba(30,32,40,0.78) 0%,
    rgba(22,24,30,0.72) 50%,
    rgba(30,32,40,0.75) 100%
  );
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.20),
    inset -2px -2px 0px -2px rgba(255,255,255,0.14),
    inset -3px -8px 1px -6px rgba(255,255,255,0.10),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.20),
    inset 0px 3px 4px -2px rgba(0,0,0,0.25),
    0px 4px 16px 0px rgba(0,0,0,0.25),
    0px 24px 48px 0px rgba(0,0,0,0.35);
}
[data-theme="dark"] .dialog-overlay.open {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
[data-theme="dark"] .modal-overlay {
  background: rgba(0,0,0,0.6);
}

[data-theme="dark"] .auth-overlay {
  background: rgba(0,0,0,0.6);
}

/* ── Filter drawer glass ── */
[data-theme="dark"] .filter-drawer {
  background-color: rgba(187,187,188,0.04);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-right: none;
  box-shadow:
    inset -1px 0 0 rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.03),
    4px 0 16px rgba(0,0,0,0.15);
}

/* ── Category menu glass ── */
[data-theme="dark"] .category-menu-popover {
  background-color: rgba(18,19,26,0.82);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: none;
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.14),
    inset -2px -2px 0px -2px rgba(255,255,255,0.08),
    inset -3px -10px 2px -7px rgba(255,255,255,0.05),
    inset -1px 2px 4px -1px rgba(0,0,0,0.35),
    inset 0px -5px 2px -3px rgba(0,0,0,0.18),
    0px 8px 20px 0px rgba(0,0,0,0.30),
    0px 24px 60px 0px rgba(0,0,0,0.40);
}
[data-theme="dark"] .category-menu-popover::before {
  background: rgba(18,19,26,0.82);
  border-left: 1px solid rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.06);
}
[data-theme="dark"] .category-menu-backdrop {
  background: rgba(0, 0, 0, 0.50);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
[data-theme="dark"] .category-menu-tabs {
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .category-menu-item {
  color: var(--text-1);
  border-bottom-color: rgba(255,255,255,0.04);
}
[data-theme="dark"] .category-menu-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-0);
}
[data-theme="dark"] .category-menu-item.active {
  background: rgba(41,171,226,0.10);
  border-top-color: rgba(41,171,226,0.18);
  border-bottom-color: rgba(41,171,226,0.18);
  color: var(--blue-light);
}
[data-theme="dark"] .category-menu-item.active .category-menu-item-label {
  color: var(--blue-light);
}
[data-theme="dark"] .category-menu-item-arrow {
  color: var(--text-3);
}
[data-theme="dark"] .category-menu-right-title {
  color: var(--text-0);
}
[data-theme="dark"] .category-menu-right-sub {
  color: var(--text-2);
}
[data-theme="dark"] .category-subcard-title {
  color: var(--text-0);
}
[data-theme="dark"] .category-subcard-subtitle {
  color: var(--text-2);
}
[data-theme="dark"] .category-subcard-art {
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.30);
}
[data-theme="dark"] .category-subcard:hover .category-subcard-art {
  border-color: rgba(41,171,226,0.25);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(41,171,226,0.15);
}

/* ── Inputs glass ── */
[data-theme="dark"] .field-input,
[data-theme="dark"] select.field-input,
[data-theme="dark"] .dialog-input {
  background-color: rgba(187,187,188,0.04);
  border: none;
  color: var(--text-0);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.10),
    inset -1px -1px 0px -1px rgba(255,255,255,0.06),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.15),
    inset 0px 2px 3px -1px rgba(0,0,0,0.18);
}
[data-theme="dark"] select option {
  background-color: #1a1b22;
  color: #e8e8ec;
}
[data-theme="dark"] select option:checked {
  background-color: #29ABE2;
  color: #fff;
}
[data-theme="dark"] .field-input:focus,
[data-theme="dark"] select.field-input:focus,
[data-theme="dark"] .dialog-input:focus {
  background-color: rgba(187,187,188,0.06);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.30),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.12),
    0px 0px 0px 3px rgba(41,171,226,0.12),
    0px 2px 8px 0px rgba(41,171,226,0.08);
}
[data-theme="dark"] .field-input::placeholder {
  color: var(--text-3);
}

/* ── Dialog buttons glass ── */
[data-theme="dark"] .dialog-btn-cancel {
  background-color: rgba(187,187,188,0.06);
  border: none;
  color: var(--text-1);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.10),
    inset -1px -1px 0px -1px rgba(255,255,255,0.06),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.15),
    0px 1px 3px 0px rgba(0,0,0,0.08);
}
[data-theme="dark"] .dialog-btn-cancel:hover {
  background-color: rgba(187,187,188,0.10);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.14),
    inset -1px -1px 0px -1px rgba(255,255,255,0.08),
    0px 2px 6px 0px rgba(0,0,0,0.10);
}
[data-theme="dark"] .dialog-btn-ok {
  background-color: rgba(41,171,226,0.22);
  border: none;
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.18),
    inset -1px -1px 0px -1px rgba(255,255,255,0.12),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.20),
    0px 1px 4px 0px rgba(41,171,226,0.12),
    0px 4px 12px 0px rgba(41,171,226,0.10);
}
[data-theme="dark"] .dialog-btn-ok:hover {
  background-color: rgba(41,171,226,0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.22),
    inset -1px -1px 0px -1px rgba(255,255,255,0.14),
    0px 2px 8px 0px rgba(41,171,226,0.20),
    0px 8px 20px 0px rgba(41,171,226,0.14);
}

/* ── Nav icon buttons ── */
/* ── Nav icon buttons glass (dark) ── */
[data-theme="dark"] .etsy-icon-btn {
  background-color: rgba(187,187,188,0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 2px 1px 0px -1px rgba(255,255,255,0.16),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.10),
    inset -2px -6px 1px -5px rgba(255,255,255,0.06),
    inset -1px 2px 3px -1px rgba(0,0,0,0.30),
    inset 0px -4px 1px -2px rgba(0,0,0,0.15),
    0px 3px 6px 0px rgba(0,0,0,0.12);
}
[data-theme="dark"] .etsy-icon-btn:hover {
  background-color: rgba(187,187,188,0.12);
}
[data-theme="dark"] .etsy-icon-btn.active {
  background-color: rgba(41,171,226,0.12);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.12),
    inset 2px 1px 0px -1px rgba(255,255,255,0.14),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.08),
    0px 1px 4px 0px rgba(41,171,226,0.10),
    0px 4px 12px 0px rgba(41,171,226,0.06);
}

/* ── Search wrap glass (dark) ── */
[data-theme="dark"] .etsy-search-wrap {
  background-color: rgba(187,187,188,0.05);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.16),
    inset -2px -2px 0px -2px rgba(255,255,255,0.10),
    inset -3px -8px 1px -6px rgba(255,255,255,0.06),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.25),
    inset 0px 3px 4px -2px rgba(0,0,0,0.30),
    0px 1px 5px 0px rgba(0,0,0,0.15),
    0px 6px 16px 0px rgba(0,0,0,0.12);
}
[data-theme="dark"] .etsy-search-wrap:hover {
  background-color: rgba(187,187,188,0.08);
}
[data-theme="dark"] .etsy-search-wrap:focus-within {
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.20),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.16),
    inset -2px -2px 0px -2px rgba(255,255,255,0.10),
    inset -3px -8px 1px -6px rgba(255,255,255,0.06),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.20),
    inset 0px 3px 4px -2px rgba(0,0,0,0.25),
    0px 0px 0px 3px rgba(41,171,226,0.10),
    0px 2px 12px 0px rgba(41,171,226,0.08);
}

/* ── Search input (dark) — transparent inside the glass wrap ── */
[data-theme="dark"] .etsy-search-input {
  background: transparent;
  border: none;
  color: var(--text-0);
  box-shadow: none;
}
[data-theme="dark"] .etsy-search-input:focus {
  box-shadow: none;
}

/* ── Search button glass (dark) ── */
[data-theme="dark"] .etsy-search-btn {
  background-color: rgba(187,187,188,0.08);
  color: var(--text-1);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 2px 1px 0px -1px rgba(255,255,255,0.16),
    inset -1.5px -1px 0px -1px rgba(255,255,255,0.10),
    inset -2px -6px 1px -5px rgba(255,255,255,0.06),
    inset -1px 2px 3px -1px rgba(0,0,0,0.30),
    0px 3px 6px 0px rgba(0,0,0,0.12);
}
[data-theme="dark"] .etsy-search-btn:hover {
  background-color: rgba(41,171,226,0.14);
  color: var(--blue-light);
}

/* ── Categories button glass (dark) ── */
[data-theme="dark"] .etsy-cat-btn {
  background-color: rgba(187,187,188,0.05);
  color: var(--text-1);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.16),
    inset -2px -2px 0px -2px rgba(255,255,255,0.10),
    inset -3px -8px 1px -6px rgba(255,255,255,0.06),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.25),
    inset 0px 3px 4px -2px rgba(0,0,0,0.30),
    0px 1px 5px 0px rgba(0,0,0,0.15),
    0px 6px 16px 0px rgba(0,0,0,0.12);
}
[data-theme="dark"] .etsy-cat-btn:hover {
  background-color: rgba(187,187,188,0.10);
  color: var(--blue-light);
}
[data-theme="dark"] .etsy-cat-btn.active {
  background-color: rgba(41,171,226,0.10);
  color: var(--blue-light);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.12),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.14),
    inset -2px -2px 0px -2px rgba(255,255,255,0.08),
    0px 1px 4px 0px rgba(41,171,226,0.10),
    0px 4px 12px 0px rgba(41,171,226,0.06);
}

/* ── Tabs & pills glass ── */
[data-theme="dark"] .admin-tab-btn,
[data-theme="dark"] .filter-pill,
[data-theme="dark"] .editor-tab,
[data-theme="dark"] .admin-editor-tab,
[data-theme="dark"] .category-menu-tab,
[data-theme="dark"] .profile-tab {
  background-color: rgba(187,187,188,0.04);
  border: none;
  color: var(--text-2);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.10),
    inset -1px -1px 0px -1px rgba(255,255,255,0.06),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.10),
    0px 1px 3px 0px rgba(0,0,0,0.06);
}
[data-theme="dark"] .admin-tab-btn.active,
[data-theme="dark"] .admin-tab-btn:hover,
[data-theme="dark"] .filter-pill.active,
[data-theme="dark"] .editor-tab.active,
[data-theme="dark"] .editor-tab:hover,
[data-theme="dark"] .admin-editor-tab.active,
[data-theme="dark"] .admin-editor-tab:hover,
[data-theme="dark"] .category-menu-tab.active,
[data-theme="dark"] .profile-tab.active {
  background-color: rgba(41,171,226,0.12);
  color: var(--text-0);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.10),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.14),
    inset -1px -1px 0px -1px rgba(255,255,255,0.08),
    0px 1px 4px 0px rgba(41,171,226,0.08),
    0px 4px 10px 0px rgba(41,171,226,0.05);
}
[data-theme="dark"] .filter-pill.active {
  color: #fff;
}

/* ── Listing / admin cards glass ── */
[data-theme="dark"] .listing-card {
  background-color: rgba(187,187,188,0.04);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.14),
    inset -2px -2px 0px -2px rgba(255,255,255,0.10),
    inset -3px -8px 1px -6px rgba(255,255,255,0.06),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.14),
    inset 0px 3px 4px -2px rgba(0,0,0,0.18),
    0px 1px 5px 0px rgba(0,0,0,0.10),
    0px 6px 16px 0px rgba(0,0,0,0.12);
}
[data-theme="dark"] .listing-card-header {
  border-bottom-color: rgba(255,255,255,0.06);
}

/* ── Panel header ── */
[data-theme="dark"] .panel-header {
  border-bottom-color: rgba(255,255,255,0.06);
}

/* ── User sidebar glass ── */
[data-theme="dark"] .user-sidebar {
  background-color: rgba(187,187,188,0.03);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.10),
    inset -2px -2px 0px -2px rgba(255,255,255,0.06),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.12),
    inset 0px 3px 4px -2px rgba(0,0,0,0.15),
    2px 0 12px rgba(0,0,0,0.10);
}

/* ── Exposed folder / frame controls glass ── */
[data-theme="dark"] .exposed-folder-controls {
  background-color: rgba(187,187,188,0.04);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.10),
    inset -1px -1px 0px -1px rgba(255,255,255,0.06),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.12),
    0px 1px 4px 0px rgba(0,0,0,0.08);
}

/* ── Dropzone glass ── */
[data-theme="dark"] .dropzone {
  background-color: rgba(187,187,188,0.02);
  border: none;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.06),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.08),
    inset -1px -1px 0px -1px rgba(255,255,255,0.04),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.10);
}
[data-theme="dark"] .dropzone:hover,
[data-theme="dark"] .dropzone.active {
  background-color: rgba(41,171,226,0.06);
  box-shadow:
    inset 0 0 0 2px rgba(41,171,226,0.30),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.12),
    inset -1px -1px 0px -1px rgba(255,255,255,0.06),
    0px 0px 0px 3px rgba(41,171,226,0.08),
    0px 2px 8px 0px rgba(41,171,226,0.06);
}

/* ── Richtext editor glass ── */
[data-theme="dark"] .richtext-editor {
  background-color: rgba(187,187,188,0.04);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: none;
  color: var(--text-0);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.10),
    inset -1px -1px 0px -1px rgba(255,255,255,0.06),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.15),
    inset 0px 2px 3px -1px rgba(0,0,0,0.18);
}
[data-theme="dark"] .richtext-editor:focus {
  background-color: rgba(187,187,188,0.06);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.30),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.12),
    0px 0px 0px 3px rgba(41,171,226,0.12),
    0px 2px 8px 0px rgba(41,171,226,0.08);
}
[data-theme="dark"] .richtext-btn {
  background-color: rgba(187,187,188,0.04);
  border: none;
  color: var(--text-1);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 1px 1px 0px -1px rgba(255,255,255,0.10),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.10),
    0px 1px 2px 0px rgba(0,0,0,0.06);
}
[data-theme="dark"] .richtext-btn:hover {
  background-color: rgba(187,187,188,0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    inset 1px 1px 0px -1px rgba(255,255,255,0.14),
    0px 1px 4px 0px rgba(0,0,0,0.08);
}

/* ── Toast glass ── */
[data-theme="dark"] .toast {
  background-color: rgba(187,187,188,0.06);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: none;
  color: var(--text-0);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.16),
    inset -2px -2px 0px -2px rgba(255,255,255,0.10),
    inset -3px -8px 1px -6px rgba(255,255,255,0.06),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.18),
    inset 0px 3px 4px -2px rgba(0,0,0,0.22),
    0px 4px 12px 0px rgba(0,0,0,0.15),
    0px 16px 36px 0px rgba(0,0,0,0.20);
}

/* ── Shop hero dark ── */
[data-theme="dark"] .shop-hero {
  background: linear-gradient(135deg, #0c0d12 0%, #161820 100%);
}
[data-theme="dark"] .shop-hero-overlay {
  background: linear-gradient(to bottom, transparent 0%, rgba(12,13,18,0.85) 60%, var(--bg-page) 100%);
}

/* ── Heart / Cart buttons — dark overlay on image, no theme override needed ── */

/* ── Profile cards glass ── */
[data-theme="dark"] .profile-card {
  background-color: rgba(187,187,188,0.04);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.14),
    inset -2px -2px 0px -2px rgba(255,255,255,0.10),
    inset -3px -8px 1px -6px rgba(255,255,255,0.06),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.14),
    inset 0px 3px 4px -2px rgba(0,0,0,0.18),
    0px 1px 5px 0px rgba(0,0,0,0.10),
    0px 6px 16px 0px rgba(0,0,0,0.12);
}

/* ── Seller sales stat cards glass ── */
[data-theme="dark"] .seller-sales-stat,
[data-theme="dark"] .seller-product-row,
[data-theme="dark"] .seller-tx-row:not(.seller-tx-header),
[data-theme="dark"] .seller-chart-wrap {
  background-color: rgba(187,187,188,0.03);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1px 1px 0px -1px rgba(255,255,255,0.10),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.10),
    0px 1px 2px 0px rgba(0,0,0,0.06);
}

/* ── Pricing cards glass ── */
[data-theme="dark"] .pricing-card {
  background-color: rgba(187,187,188,0.03);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.14),
    inset -2px -2px 0px -2px rgba(255,255,255,0.10),
    inset -3px -8px 1px -6px rgba(255,255,255,0.06),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.14),
    inset 0px 3px 4px -2px rgba(0,0,0,0.18),
    0px 1px 5px 0px rgba(0,0,0,0.10),
    0px 6px 16px 0px rgba(0,0,0,0.12);
}
[data-theme="dark"] .pricing-card:hover {
  background-color: rgba(187,187,188,0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.18),
    inset -2px -2px 0px -2px rgba(255,255,255,0.12),
    inset -3px -8px 1px -6px rgba(255,255,255,0.08),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.16),
    inset 0px 3px 4px -2px rgba(0,0,0,0.20),
    0px 2px 8px 0px rgba(41,171,226,0.08),
    0px 12px 28px 0px rgba(0,0,0,0.18);
}
[data-theme="dark"] .pricing-card.featured {
  background-color: rgba(41,171,226,0.06);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.12),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.18),
    inset -2px -2px 0px -2px rgba(255,255,255,0.12),
    inset -3px -8px 1px -6px rgba(255,255,255,0.08),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.16),
    inset 0px 3px 4px -2px rgba(0,0,0,0.20),
    0px 4px 12px 0px rgba(41,171,226,0.10),
    0px 16px 36px 0px rgba(0,0,0,0.20);
}

/* ── Credit badge glass ── */
[data-theme="dark"] .nav-credit-badge {
  background-color: rgba(41,171,226,0.12);
  border: none;
  color: var(--blue-light);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.15),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.12),
    inset -1px -1px 0px -1px rgba(255,255,255,0.06),
    0px 1px 4px 0px rgba(41,171,226,0.08);
}

/* ── My mockups sidebar glass ── */
[data-theme="dark"] .my-mockups-sidebar {
  background-color: rgba(187,187,188,0.03);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: none;
  box-shadow:
    inset -1px 0 0 rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.03),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.10),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.12),
    2px 0 12px rgba(0,0,0,0.10);
}

/* ── Select dropdown arrow for dark mode ── */
[data-theme="dark"] select.field-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2375757f' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ── Scrollbar dark ── */
[data-theme="dark"] ::-webkit-scrollbar { width: 8px; height: 8px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: transparent; }
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.10);
  border-radius: 4px;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.18);
}

/* ── Nav avatar glass ── */
[data-theme="dark"] .nav-avatar-initials {
  background-color: rgba(41,171,226,0.16);
  border: none;
  color: var(--blue-light);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.15),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.14),
    inset -1px -1px 0px -1px rgba(255,255,255,0.08),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.15),
    0px 1px 4px 0px rgba(41,171,226,0.10);
}

/* ── Category menu items glass ── */
[data-theme="dark"] .category-menu-left {
  background-color: rgba(0,0,0,0.15);
  border-right: none;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.04);
}
[data-theme="dark"] .category-menu-tabs button {
  background-color: rgba(187,187,188,0.04);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 1px 1px 0px -1px rgba(255,255,255,0.10),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.10),
    0px 1px 2px 0px rgba(0,0,0,0.06);
}
[data-theme="dark"] .category-menu-tabs button.active {
  background-color: rgba(41,171,226,0.14);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.12),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.14),
    inset -1px -1px 0px -1px rgba(255,255,255,0.08),
    0px 1px 4px 0px rgba(41,171,226,0.08);
}
[data-theme="dark"] .category-menu-tabs button:hover {
  background-color: rgba(187,187,188,0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    inset 1px 1px 0px -1px rgba(255,255,255,0.14),
    0px 1px 4px 0px rgba(0,0,0,0.08);
}

/* ── Category subcards glass ── */
[data-theme="dark"] .category-subcard {
  background-color: rgba(187,187,188,0.03);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.10),
    inset -1px -1px 0px -1px rgba(255,255,255,0.06),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.10),
    0px 1px 3px 0px rgba(0,0,0,0.06);
}
[data-theme="dark"] .category-subcard:hover {
  background-color: rgba(187,187,188,0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.14),
    inset -1px -1px 0px -1px rgba(255,255,255,0.08),
    0px 2px 6px 0px rgba(41,171,226,0.06);
}

/* ── Filter section/accordion dark ── */
[data-theme="dark"] .filter-section-head {
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .filter-accordion-toggle {
  background-color: rgba(187,187,188,0.03);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 1px 1px 0px -1px rgba(255,255,255,0.08),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.08);
}
[data-theme="dark"] .filter-accordion-toggle:hover {
  background-color: rgba(187,187,188,0.06);
}
[data-theme="dark"] .filter-left-btn {
  background-color: rgba(187,187,188,0.04);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 1px 1px 0px -1px rgba(255,255,255,0.10),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.10),
    0px 1px 2px 0px rgba(0,0,0,0.06);
}
[data-theme="dark"] .filter-left-btn:hover {
  background-color: rgba(41,171,226,0.10);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    inset 1px 1px 0px -1px rgba(255,255,255,0.14),
    0px 1px 4px 0px rgba(41,171,226,0.06);
}

/* ── Shop card thumb overlay dark ── */
[data-theme="dark"] .shop-card-thumb {
  background: rgba(255,255,255,0.02);
}
[data-theme="dark"] .mockup-card-thumb {
  background: rgba(255,255,255,0.02);
}

/* ── Request card glass ── */
[data-theme="dark"] .request-card {
  background-color: rgba(187,187,188,0.04);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.14),
    inset -2px -2px 0px -2px rgba(255,255,255,0.10),
    inset -3px -8px 1px -6px rgba(255,255,255,0.06),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.14),
    inset 0px 3px 4px -2px rgba(0,0,0,0.18),
    0px 1px 5px 0px rgba(0,0,0,0.10),
    0px 6px 16px 0px rgba(0,0,0,0.12);
}

/* ── My sidebar items glass ── */
[data-theme="dark"] .my-sidebar-item {
  background-color: transparent;
  border: none;
  box-shadow: none;
}
[data-theme="dark"] .my-sidebar-item:hover {
  background-color: rgba(187,187,188,0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 1px 1px 0px -1px rgba(255,255,255,0.10);
}
[data-theme="dark"] .my-sidebar-item.active {
  background-color: rgba(41,171,226,0.10);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.12),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.12),
    0px 1px 4px 0px rgba(41,171,226,0.06);
}

/* ── Card folder buttons glass ── */
[data-theme="dark"] .card-folder-btn {
  background-color: rgba(187,187,188,0.04);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 1px 1px 0px -1px rgba(255,255,255,0.10),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.10),
    0px 1px 2px 0px rgba(0,0,0,0.06);
}
[data-theme="dark"] .card-folder-btn:hover {
  background-color: rgba(187,187,188,0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    inset 1px 1px 0px -1px rgba(255,255,255,0.14),
    0px 1px 4px 0px rgba(0,0,0,0.08);
}
[data-theme="dark"] .card-dup-btn {
  background-color: rgba(187,187,188,0.04);
  border: none;
  color: var(--text-1);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 1px 1px 0px -1px rgba(255,255,255,0.10),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.10),
    0px 1px 2px 0px rgba(0,0,0,0.06);
}
[data-theme="dark"] .card-dup-btn:hover {
  background-color: rgba(41,171,226,0.12);
  color: var(--blue);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.15),
    inset 1px 1px 0px -1px rgba(255,255,255,0.14),
    0px 1px 4px 0px rgba(0,0,0,0.08);
}

/* ── Zoom / transport buttons glass ── */
[data-theme="dark"] .zoom-btn,
[data-theme="dark"] .transport-btn {
  background-color: rgba(187,187,188,0.04);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 1px 1px 0px -1px rgba(255,255,255,0.10),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.10),
    0px 1px 2px 0px rgba(0,0,0,0.06);
}
[data-theme="dark"] .zoom-btn:hover,
[data-theme="dark"] .transport-btn:hover {
  background-color: rgba(187,187,188,0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    inset 1px 1px 0px -1px rgba(255,255,255,0.14),
    0px 1px 4px 0px rgba(0,0,0,0.08);
}

/* ── Layers panel buttons glass ── */
[data-theme="dark"] .layers-add-btn {
  background-color: rgba(187,187,188,0.04);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 1px 1px 0px -1px rgba(255,255,255,0.10),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.10),
    0px 1px 2px 0px rgba(0,0,0,0.06);
}
[data-theme="dark"] .layers-add-btn:hover {
  background-color: rgba(41,171,226,0.10);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    inset 1px 1px 0px -1px rgba(255,255,255,0.14),
    0px 1px 4px 0px rgba(41,171,226,0.06);
}
[data-theme="dark"] .layers-add-option {
  background-color: rgba(187,187,188,0.05);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 1px 1px 0px -1px rgba(255,255,255,0.10);
}
[data-theme="dark"] .layers-add-option:hover {
  background-color: rgba(41,171,226,0.12);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.10),
    inset 1px 1px 0px -1px rgba(255,255,255,0.14);
}
[data-theme="dark"] .layers-panel {
  background-color: rgba(187,187,188,0.03);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-right: none;
  box-shadow:
    inset -1px 0 0 rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.03),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.10),
    inset -0.3px -1px 4px 0px rgba(0,0,0,0.12),
    2px 0 12px rgba(0,0,0,0.10);
}
[data-theme="dark"] .layers-panel-header {
  border-bottom-color: rgba(255,255,255,0.06);
  background-color: rgba(255,255,255,0.02);
}
[data-theme="dark"] .layers-topbar {
  border-bottom-color: rgba(255,255,255,0.06);
  background-color: rgba(255,255,255,0.02);
}
[data-theme="dark"] .layers-topbar select.tb-blend {
  background-color: rgba(187,187,188,0.06);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1px 1px 0px -1px rgba(255,255,255,0.10),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.10),
    0px 1px 2px 0px rgba(0,0,0,0.06);
}
[data-theme="dark"] .layer-row {
  background-color: rgba(187,187,188,0.03);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 1px 1px 0px -1px rgba(255,255,255,0.08);
  transition:
    background-color 200ms cubic-bezier(1, 0, 0.4, 1),
    box-shadow 200ms cubic-bezier(1, 0, 0.4, 1);
}
[data-theme="dark"] .layer-row:hover {
  background-color: rgba(187,187,188,0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    inset 1px 1px 0px -1px rgba(255,255,255,0.12),
    0px 1px 4px 0px rgba(0,0,0,0.08);
}
[data-theme="dark"] .layer-row.selected {
  background-color: rgba(41,171,226,0.08);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.15),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.10),
    0px 1px 4px 0px rgba(41,171,226,0.06);
}
[data-theme="dark"] .layer-row.folder-row {
  background-color: rgba(187,187,188,0.05);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1px 1px 0px -1px rgba(255,255,255,0.10),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.08);
}
[data-theme="dark"] .layers-base-label {
  border-top-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .layers-add-menu {
  background-color: rgba(20,21,26,0.90);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.14),
    0px 4px 16px 0px rgba(0,0,0,0.25),
    0px 16px 36px 0px rgba(0,0,0,0.20);
}
[data-theme="dark"] .layer-ctx-menu {
  background-color: rgba(20,21,26,0.92);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1.8px 3px 0px -2px rgba(255,255,255,0.16),
    inset -2px -2px 0px -2px rgba(255,255,255,0.08),
    0px 4px 16px 0px rgba(0,0,0,0.25),
    0px 16px 36px 0px rgba(0,0,0,0.20);
}
[data-theme="dark"] .layer-ctx-item:hover {
  background-color: rgba(41,171,226,0.22);
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.10),
    inset 1px 1px 0px -1px rgba(255,255,255,0.12);
}
[data-theme="dark"] .layer-ctx-sep {
  background: rgba(255,255,255,0.06);
}
[data-theme="dark"] .drag-ghost {
  background-color: rgba(20,21,26,0.90);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.14),
    0px 8px 24px rgba(0,0,0,0.35),
    0px 2px 6px rgba(0,0,0,0.20);
}

/* ── Pricing action buttons glass ── */
[data-theme="dark"] .pricing-btn {
  background-color: rgba(187,187,188,0.06);
  border: none;
  color: var(--text-1);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.10),
    inset -1px -1px 0px -1px rgba(255,255,255,0.06),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.15),
    0px 1px 3px 0px rgba(0,0,0,0.08);
}
[data-theme="dark"] .pricing-btn:hover {
  background-color: rgba(187,187,188,0.10);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.14),
    0px 2px 6px 0px rgba(0,0,0,0.10);
}
[data-theme="dark"] .pricing-btn-popular {
  background-color: rgba(41,171,226,0.22);
  border: none;
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.18),
    inset -1px -1px 0px -1px rgba(255,255,255,0.12),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.20),
    0px 1px 4px 0px rgba(41,171,226,0.12),
    0px 4px 12px 0px rgba(41,171,226,0.10);
}
[data-theme="dark"] .pricing-btn-popular:hover {
  background-color: rgba(41,171,226,0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.22),
    inset -1px -1px 0px -1px rgba(255,255,255,0.14),
    0px 2px 8px 0px rgba(41,171,226,0.20),
    0px 8px 20px 0px rgba(41,171,226,0.14);
}

/* ── Shop detail buttons glass ── */
[data-theme="dark"] .shop-detail-buy-btn {
  background-color: rgba(41,171,226,0.22);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.18),
    inset -1px -1px 0px -1px rgba(255,255,255,0.12),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.20),
    0px 1px 4px 0px rgba(41,171,226,0.12),
    0px 4px 12px 0px rgba(41,171,226,0.10);
}
[data-theme="dark"] .shop-detail-buy-btn:hover {
  background-color: rgba(41,171,226,0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.22),
    0px 2px 8px 0px rgba(41,171,226,0.20),
    0px 8px 20px 0px rgba(41,171,226,0.14);
}
[data-theme="dark"] .shop-detail-preview-btn {
  background-color: rgba(187,187,188,0.06);
  border: none;
  color: var(--text-1);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.10),
    inset -1px -1px 0px -1px rgba(255,255,255,0.06),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.15),
    0px 1px 3px 0px rgba(0,0,0,0.08);
}
[data-theme="dark"] .shop-detail-preview-btn:hover {
  background-color: rgba(187,187,188,0.10);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.14),
    0px 2px 6px 0px rgba(0,0,0,0.10);
}

/* ── Shop detail thumbs glass ── */
[data-theme="dark"] .shop-detail-thumb {
  background-color: rgba(187,187,188,0.03);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1px 1px 0px -1px rgba(255,255,255,0.08);
}
[data-theme="dark"] .shop-detail-thumb:hover,
[data-theme="dark"] .shop-detail-thumb.active {
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.20),
    inset 1px 1px 0px -1px rgba(255,255,255,0.12),
    0px 1px 4px 0px rgba(41,171,226,0.08);
}

/* ── Art batch thumbs glass ── */
[data-theme="dark"] .art-batch-thumb {
  background-color: rgba(187,187,188,0.03);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1px 1px 0px -1px rgba(255,255,255,0.08);
}
[data-theme="dark"] .art-batch-thumb:hover,
[data-theme="dark"] .art-batch-thumb.active {
  box-shadow:
    inset 0 0 0 1px rgba(41,171,226,0.20),
    inset 1px 1px 0px -1px rgba(255,255,255,0.12),
    0px 1px 4px 0px rgba(41,171,226,0.08);
}

/* ── Expose switch glass ── */
[data-theme="dark"] .expose-switch {
  background-color: rgba(187,187,188,0.06);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.10),
    inset -1px -1px 0px -1px rgba(255,255,255,0.06),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.12);
}

/* ── Btn-danger / btn-back glass ── */
[data-theme="dark"] .btn-danger {
  background-color: rgba(231,76,60,0.18);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(231,76,60,0.15),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.14),
    inset -1px -1px 0px -1px rgba(255,255,255,0.08),
    inset -0.3px -1px 3px 0px rgba(0,0,0,0.20),
    0px 1px 4px 0px rgba(231,76,60,0.12);
}
[data-theme="dark"] .btn-danger:hover {
  background-color: rgba(231,76,60,0.28);
  box-shadow:
    inset 0 0 0 1px rgba(231,76,60,0.20),
    inset 1.5px 2px 0px -1px rgba(255,255,255,0.18),
    0px 2px 8px 0px rgba(231,76,60,0.15);
}
[data-theme="dark"] .btn-back {
  background-color: rgba(187,187,188,0.04);
  border: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    inset 1px 1px 0px -1px rgba(255,255,255,0.10),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.10),
    0px 1px 2px 0px rgba(0,0,0,0.06);
}
[data-theme="dark"] .btn-back:hover {
  background-color: rgba(187,187,188,0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    inset 1px 1px 0px -1px rgba(255,255,255,0.14),
    0px 1px 4px 0px rgba(0,0,0,0.08);
}

/* ── Btn-social glass ── */
[data-theme="dark"] .btn-social {
  background-color: rgba(187,187,188,0.06);
  border: none;
  color: var(--text-1);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.10),
    inset -1px -1px 0px -1px rgba(255,255,255,0.06),
    inset -0.3px -1px 2px 0px rgba(0,0,0,0.15),
    0px 1px 3px 0px rgba(0,0,0,0.08);
}
[data-theme="dark"] .btn-social:hover {
  background-color: rgba(187,187,188,0.10);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 1px 1.5px 0px -1px rgba(255,255,255,0.14),
    0px 2px 6px 0px rgba(0,0,0,0.10);
}

/* ============================================================
   OBJECT ISOLATION TOOL — Overlay, Toolbar, Progress
   ============================================================ */

/* ── Full-screen isolation overlay ───────────────────── */
.caf-isolation-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  background: #0a0a0f;
  border-radius: inherit;
  overflow: hidden;
}

.caf-info-bar {
  text-align: center;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.caf-image-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.caf-image-wrapper {
  position: absolute;
  line-height: 0;
  border-radius: 6px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
  transform-origin: 0 0;
  overflow: hidden;
}
.caf-image-wrapper .caf-source-img {
  display: block;
}

/* ── Segment overlay canvas ──────────────────────────── */
.caf-segment-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* ── Pan/zoom cursor states ─────────────────────────── */
.caf-hand-ready,
.caf-hand-ready .caf-segment-canvas { cursor: grab !important; }
.caf-grabbing,
.caf-grabbing .caf-segment-canvas { cursor: grabbing !important; }

/* ── Toolbar ──────────────────────────────────────────── */
.caf-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 14px;
  z-index: 20;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  background: rgba(20,21,26,0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.35),
    0 1px 3px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.04);
  color: #e8e8ec;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  width: fit-content;
  margin: 0 auto 12px;
}
.caf-toolbar.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Toolbar buttons ─────────────────────────────────── */
.caf-btn {
  padding: 5px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.caf-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}
.caf-btn-apply {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.caf-btn-apply:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
}
.caf-btn-cancel:hover {
  background: rgba(255,59,48,0.15);
  color: #ff6b60;
  border-color: rgba(255,59,48,0.3);
}
.caf-btn-clear {
  font-size: 11px;
  padding: 4px 10px;
  opacity: 0.6;
}
.caf-btn-clear:hover {
  opacity: 1;
}

.caf-spacer {
  flex: 1;
  min-width: 10px;
}

/* ── Progress overlay ─────────────────────────────────── */
.caf-progress {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  border-radius: inherit;
}
.caf-progress-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.caf-ring {
  width: 100px;
  height: 100px;
}
.caf-ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.1);
  stroke-width: 6;
}
.caf-ring-fill {
  fill: none;
  stroke: var(--blue);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.3s ease;
  filter: drop-shadow(0 0 6px rgba(41,171,226,0.5));
}
.caf-pct {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-top: -12px;
}
.caf-progress-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
}

/* ── SAM point markers ──────────────────────────────── */
.sam-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.sam-point-marker {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; line-height: 1;
  color: #fff;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  z-index: 6;
  animation: sam-pop 0.2s ease-out;
}
.sam-point-fg {
  background: #22c55e;
  border: 2px solid #fff;
}
.sam-point-bg {
  background: #ef4444;
  border: 2px solid #fff;
}
@keyframes sam-pop {
  0% { transform: translate(-50%, -50%) scale(0); }
  70% { transform: translate(-50%, -50%) scale(1.2); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* ── SAM mode toggle buttons ──────────────────────────── */
.caf-btn-mode {
  display: flex; align-items: center; gap: 4px;
}
.caf-btn-mode.active {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}
.caf-btn-mode-fg.active { color: #22c55e; border-color: #22c55e55; }
.caf-btn-mode-bg.active { color: #ef4444; border-color: #ef444455; }

/* ── Decode spinner ──────────────────────────────────── */
.sam-decoding .caf-segment-canvas {
  opacity: 0.6;
  transition: opacity 0.15s;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 600px) {
  .caf-toolbar {
    gap: 6px;
    padding: 6px 10px;
    font-size: 11px;
  }
  .caf-btn { padding: 4px 10px; font-size: 11px; }
  .caf-info-bar { font-size: 11px; padding: 6px 8px; }
}
