/* ==========================================================================
   LOWIZ STORE — PREMIUM MARKETPLACE LISTINGS SYSTEM (PRO V1)
   Inspired by Steam Community Market & Modern Digital Marketplaces
   ========================================================================== */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==========================================================================
   1. STANDALONE LISTINGS PAGE MODE ISOLATION
   Hides all store products, YouTube Premium, PUBG, categories & home sections
   when user navigates to the dedicated Listings Page (#elanlar)
   ========================================================================== */
#lwListings[hidden],
#lwListingsPage[hidden],
#lwListingDetail[hidden],
#lwImageLightbox[hidden],
#lwListingModal[hidden] {
  display: none !important;
}

body.lw-listings-standalone-open main > *:not(#lwListingsPage):not(#lwListingDetail):not(#lwImageLightbox):not(#lwListingModal),
body.lw-listings-standalone-open #recentSaleTicker,
body.lw-listings-standalone-open .recent-sale-ticker {
  display: none !important;
}

body.lw-listings-standalone-open #lwListingsPage {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: calc(100dvh - 140px);
}

/* ==========================================================================
   2. HOME PAGE HERO LISTINGS CAROUSEL (YOUTUBE PREMIUM BANNER SLOT)
   Deep navy/obsidian surface, subtle indigo-cyan light accents, large media
   ========================================================================== */
html body #home .market-hero-grid.is-no-listings {
  grid-template-columns: 1fr !important;
  min-height: 0 !important;
}
html body #home .market-hero-grid.is-no-listings .market-side-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
}

html body #home .lw-hero-listings-stage[hidden] {
  display: none !important;
}
html body #home .lw-hero-listings-stage:not([hidden]) {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  min-width: 0 !important;
  width: 100% !important;
}

.lw-hero-listings-frame {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 374px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(120% 90% at 88% 12%, rgba(99, 102, 241, 0.18) 0%, rgba(56, 189, 248, 0.07) 42%, transparent 70%),
    radial-gradient(90% 80% at 10% 92%, rgba(124, 58, 237, 0.14) 0%, transparent 65%),
    linear-gradient(155deg, #0c1222 0%, #070b15 58%, #050811 100%);
  box-shadow:
    0 24px 64px rgba(2, 5, 14, 0.62),
    0 4px 16px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.lw-hero-listings-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 14px 18px 10px;
  pointer-events: none;
}

.lw-hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(10, 15, 28, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #f1f5f9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  backdrop-filter: blur(12px);
}

.lw-hero-live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}

#lwHeroSlideMeta {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 15, 28, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.lw-hero-listings-viewport {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  overflow: hidden;
  touch-action: pan-y;
}

.lw-hero-listings-track {
  display: flex;
  width: 100%;
  min-height: 374px;
  will-change: transform;
}

.lw-hero-listing-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
}

.lw-hero-listing-slide .lw-hero-slide-card {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: hidden;
  cursor: pointer;
}

.lw-hero-slide-backdrop {
  position: absolute;
  inset: -24px;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: blur(36px) saturate(1.15) brightness(0.26);
  transform: scale(1.06);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lw-hero-listing-slide.is-active .lw-hero-slide-backdrop {
  transform: scale(1.12);
}

.lw-hero-slide-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(98deg, rgba(6, 9, 18, 0.95) 0%, rgba(8, 12, 24, 0.85) 48%, rgba(8, 12, 24, 0.55) 100%),
    linear-gradient(0deg, rgba(5, 8, 16, 0.92) 0%, transparent 38%);
  pointer-events: none;
}

.lw-hero-slide-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(242px, 0.98fr);
  align-items: center;
  gap: 22px;
  padding: 50px 50px 42px;
  box-sizing: border-box;
}

.lw-hero-slide-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.lw-hero-slide-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.lw-hero-cat-pill {
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.32);
  color: #e0e7ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lw-hero-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(16, 185, 129, 0.13);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #6ee7b7;
  font-size: 10px;
  font-weight: 700;
}

.lw-hero-active-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
}

.lw-hero-slide-title {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(22px, 2.4vw, 31px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.03em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lw-hero-slide-desc {
  margin: 0;
  color: #94a3b8;
  font-size: 12.5px;
  line-height: 1.5;
  max-width: 42ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lw-hero-slide-footer {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.lw-hero-price-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 7px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lw-hero-price-box small {
  color: #94a3b8;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.lw-hero-price-box strong {
  color: #38bdf8;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.lw-hero-slide-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 700;
}

.lw-hero-slide-open-row {
  margin-top: 4px;
}

.lw-hero-open-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 9px;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: #e0e7ff;
  font-size: 11.5px;
  font-weight: 750;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lw-hero-open-chip i {
  font-style: normal;
  transition: transform 0.2s ease;
}

.lw-hero-slide-card:hover .lw-hero-open-chip {
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(165, 180, 252, 0.5);
}

.lw-hero-slide-card:hover .lw-hero-open-chip i {
  transform: translate(2px, -1px);
}

.lw-hero-slide-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
}

.lw-hero-media-frame {
  position: relative;
  width: 100%;
  max-width: 332px;
  height: 274px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.18), rgba(5, 8, 16, 0.96));
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lw-hero-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #060913;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.lw-hero-slide-card:hover .lw-hero-media-frame img {
  transform: scale(1.035);
}

.lw-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 12, 24, 0.76);
  color: #f8fafc;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lw-hero-arrow:hover {
  background: rgba(79, 70, 229, 0.42);
  border-color: rgba(165, 180, 252, 0.45);
  transform: translateY(-50%) scale(1.04);
}

.lw-hero-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.lw-hero-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lw-hero-arrow-prev { left: 10px; }
.lw-hero-arrow-next { right: 10px; }

.lw-hero-listings-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

#lwHeroDots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(7, 10, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

#lwHeroDots button {
  width: 7px;
  height: 7px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.4);
  cursor: pointer;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

#lwHeroDots button.active {
  width: 22px;
  background: linear-gradient(90deg, #818cf8, #38bdf8);
}

.lw-hero-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 5;
  overflow: hidden;
}

#lwHeroProgressBar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #6366f1, #38bdf8);
}

.lw-hero-listings-loading {
  width: 100%;
  min-height: 374px;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 13px;
}

.lw-hero-cta-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.lw-hero-listings-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 13px;
  border: 1px solid rgba(129, 140, 248, 0.38);
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 55%, #1e3a8a 100%);
  box-shadow:
    0 12px 28px rgba(49, 46, 129, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lw-hero-listings-link:hover {
  transform: translateY(-2px);
  border-color: rgba(165, 180, 252, 0.65);
  box-shadow: 0 16px 34px rgba(49, 46, 129, 0.52);
}

.lw-hero-listings-link i {
  font-style: normal;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.lw-hero-listings-link:hover i {
  transform: translateX(3px);
}

/* ==========================================================================
   3. DEDICATED STANDALONE LISTINGS PAGE (#lwListingsPage)
   Steam / Premium Marketplace header, search, category filters & cards
   ========================================================================== */
.lw-listings-section {
  padding: clamp(28px, 4vw, 56px) 0 72px;
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(79, 70, 229, 0.11), transparent 70%),
    radial-gradient(800px 380px at 88% 8%, rgba(14, 165, 233, 0.08), transparent 70%),
    linear-gradient(180deg, #070b14 0%, #050811 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.lw-standalone-container {
  max-width: 1220px;
  margin: 0 auto;
}

.lw-standalone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.lw-standalone-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.78);
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.lw-standalone-back:hover {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(129, 140, 248, 0.45);
  transform: translateX(-2px);
}

.lw-standalone-topbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.lw-standalone-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.24);
  color: #6ee7b7;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.lw-standalone-live-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.lw-listing-create {
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-radius: 11px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #4f46e5, #3730a3);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(67, 56, 202, 0.28);
}

.lw-standalone-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  margin-bottom: 26px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  background:
    radial-gradient(600px 220px at 90% 0%, rgba(99, 102, 241, 0.12), transparent 70%),
    linear-gradient(165deg, rgba(15, 22, 38, 0.92), rgba(9, 13, 24, 0.96));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.lw-standalone-eyebrow {
  margin: 0 0 6px;
  color: #818cf8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.lw-standalone-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.lw-standalone-title-row h1 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.lw-standalone-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 800;
}

.lw-standalone-subtitle {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 68ch;
}

.lw-listings-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: #a5b4fc;
  font-size: 12px;
}

.lw-listings-meta::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #818cf8;
}

.lw-standalone-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.lw-standalone-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.lw-standalone-search-icon {
  position: absolute;
  left: 15px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #64748b;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

#lwListingsSearchInput {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 44px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(7, 11, 21, 0.88);
  color: #f8fafc;
  font: inherit;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#lwListingsSearchInput::placeholder {
  color: #64748b;
}

#lwListingsSearchInput:focus {
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.lw-standalone-search-clear {
  position: absolute;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

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

.lw-standalone-cats {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.lw-standalone-cats::-webkit-scrollbar {
  display: none;
}

.lw-cat-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.lw-cat-chip:hover {
  border-color: rgba(129, 140, 248, 0.35);
  color: #f8fafc;
}

.lw-cat-chip.is-active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.32), rgba(56, 189, 248, 0.18));
  border-color: rgba(129, 140, 248, 0.55);
  color: #ffffff;
}

.lw-standalone-sort-wrap {
  flex: 0 0 auto;
}

#lwListingsSort {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(11, 16, 30, 0.9);
  color: #e2e8f0;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

/* ==========================================================================
   4. MARKETPLACE LISTING CARDS (.lw-listing-card)
   ========================================================================== */
.lw-listings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.lw-listing-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(165deg, rgba(17, 24, 42, 0.96), rgba(9, 13, 24, 0.98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.lw-listing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.42);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
}

.lw-listing-image {
  position: relative;
  height: 236px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 25%, rgba(79, 70, 229, 0.2), transparent 70%),
    #070b15;
}

.lw-listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.lw-listing-card:hover .lw-listing-image img {
  transform: scale(1.04);
}

.lw-listing-placeholder {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  color: #a5b4fc;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.lw-listing-placeholder small {
  font-size: 10px;
  color: #64748b;
  letter-spacing: 0.28em;
}

.lw-listing-status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(6, 78, 59, 0.75);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.lw-listing-status.is-sold {
  background: rgba(30, 41, 59, 0.82);
  border-color: rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
}

.lw-listing-photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(7, 11, 21, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 10.5px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.lw-listing-copy {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px;
}

.lw-listing-card-topmeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lw-listing-copy > small,
.lw-listing-card-cat {
  color: #818cf8;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lw-listing-card-date {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.lw-listing-copy h3 {
  font-size: 18px;
  font-weight: 820;
  line-height: 1.3;
  margin: 8px 0 6px;
  color: #f8fafc;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lw-listing-card-desc {
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 12.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lw-listing-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.lw-listing-bottom strong {
  font-size: 18px;
  font-weight: 900;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
}

.lw-listing-views {
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.18s ease;
}

.lw-listing-views.is-loading,
.lw-listing-detail-views.is-loading {
  opacity: 0.6;
}

.lw-listing-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.lw-listing-owner-actions button {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.08);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.lw-listing-owner-actions button.danger {
  color: #fda4af;
}

.lw-listing-empty {
  padding: 44px 20px;
  text-align: center;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(11, 16, 30, 0.6);
  color: #94a3b8;
}

.lw-listing-empty strong {
  display: block;
  color: #f1f5f9;
  font-size: 16px;
  margin-bottom: 6px;
}

.lw-listings-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 13px;
  border: 1px solid rgba(129, 140, 248, 0.32);
  background: rgba(30, 41, 59, 0.65);
  color: #e0e7ff;
  font-weight: 800;
  cursor: pointer;
}

/* ==========================================================================
   5. ALL-NEW PREMIUM LISTING DETAIL VIEW (#lwListingDetail)
   Steam / Digital Marketplace Inspect View with Gallery, Thumbs, Specs & Seller
   ========================================================================== */
.lw-listing-detail {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2.2vw, 26px);
  background: rgba(3, 6, 14, 0.86);
  backdrop-filter: blur(18px);
  box-sizing: border-box;
}

.lw-listing-detail-dialog {
  position: relative;
  width: min(100%, 1060px);
  max-height: 94dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(79, 70, 229, 0.13), transparent 70%),
    linear-gradient(165deg, #0d1323 0%, #070b15 100%);
  color: #f8fafc;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.72);
}

.lw-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: rgba(7, 11, 21, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  flex: 0 0 auto;
}

.lw-detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.85);
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.lw-detail-back-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(129, 140, 248, 0.45);
}

.lw-detail-breadcrumb {
  color: #64748b;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.lw-listing-detail-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lw-listing-detail-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(248, 113, 113, 0.4);
}

.lw-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
}

.lw-detail-gallery-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: rgba(4, 7, 15, 0.65);
  border-right: 1px solid rgba(148, 163, 184, 0.1);
  min-width: 0;
}

.lw-listing-detail-image {
  position: relative;
  width: 100%;
  height: clamp(320px, 52vh, 500px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    radial-gradient(circle at 50% 35%, rgba(79, 70, 229, 0.14), rgba(4, 7, 15, 0.98));
  display: grid;
  place-items: center;
  cursor: zoom-in;
  touch-action: pan-y;
}

.lw-listing-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
  display: block;
  user-select: none;
}

.lw-gallery-zoom-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(7, 11, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.lw-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  background: rgba(7, 11, 21, 0.78);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.lw-gallery-arrow:hover {
  background: rgba(79, 70, 229, 0.55);
}

.lw-gallery-arrow.prev { left: 12px; }
.lw-gallery-arrow.next { right: 12px; }

.lw-gallery-count {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(7, 11, 21, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
}

.lw-detail-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.lw-detail-thumbs[hidden] {
  display: none !important;
}

.lw-detail-thumb {
  flex: 0 0 68px;
  width: 68px;
  height: 54px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(148, 163, 184, 0.18);
  background: #070b15;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.lw-detail-thumb:hover {
  opacity: 0.92;
}

.lw-detail-thumb.is-active {
  opacity: 1;
  border-color: #818cf8;
  transform: translateY(-1px);
}

.lw-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lw-listing-detail-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 2.5vw, 28px);
  min-width: 0;
}

.lw-detail-pill-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.lw-detail-cat-badge {
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.34);
  color: #e0e7ff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lw-detail-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
  font-size: 10.5px;
  font-weight: 750;
}

.lw-detail-status-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

.lw-listing-detail-copy h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
  color: #f8fafc;
}

.lw-detail-price-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.lw-detail-price-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lw-detail-price-label {
  color: #94a3b8;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

#lwDetailPrice {
  color: #38bdf8;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.lw-detail-verified-tag span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 750;
}

.lw-detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.lw-detail-spec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(11, 17, 32, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.12);
  min-width: 0;
}

.lw-detail-spec-label {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lw-detail-spec-val {
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lw-detail-seller-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.lw-detail-seller-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.lw-detail-seller-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lw-detail-seller-info strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
}

.lw-seller-verified {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #c7d2fe;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.lw-detail-seller-info small {
  color: #94a3b8;
  font-size: 11.5px;
}

.lw-detail-desc-box {
  padding: 13px 15px;
  border-radius: 13px;
  background: rgba(7, 11, 21, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.lw-detail-desc-box h3 {
  margin: 0 0 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lw-detail-desc-box p {
  margin: 0;
  color: #dbe4f0;
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.lw-detail-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: auto;
  padding-top: 4px;
}

.lw-detail-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 13px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(110, 231, 183, 0.35);
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.32);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lw-detail-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(5, 150, 105, 0.44);
}

.lw-detail-whatsapp-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  flex: 0 0 auto;
}

.lw-detail-whatsapp-btn i {
  font-style: normal;
}

.lw-detail-secondary-back {
  min-height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.lw-detail-secondary-back:hover {
  background: rgba(30, 41, 59, 0.85);
  color: #fff;
}

/* ==========================================================================
   6. FULLSCREEN IMAGE LIGHTBOX WITH INTERACTIVE ZOOM (#lwImageLightbox)
   ========================================================================== */
.lw-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10120;
  background: rgba(2, 4, 10, 0.96);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(14px);
}

.lw-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(7, 11, 21, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  z-index: 3;
}

.lw-lightbox-counter {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}

.lw-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lw-lightbox-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.lw-lightbox-btn:hover {
  background: rgba(79, 70, 229, 0.45);
}

.lw-lightbox-close {
  font-size: 22px;
}

.lw-lightbox-stage {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 20px;
  cursor: zoom-in;
}

.lw-lightbox-stage.is-zoomed {
  cursor: zoom-out;
}

#lwImageLightboxImg {
  max-width: 92vw;
  max-height: 82dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
  user-select: none;
}

.lw-lightbox-nav {
  position: absolute;
  top: 54%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 15, 28, 0.8);
  color: #fff;
  font-size: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
}

.lw-lightbox-nav.prev { left: 16px; }
.lw-lightbox-nav.next { right: 16px; }
.lw-lightbox-nav[hidden] { display: none !important; }

/* ==========================================================================
   7. OWNER CREATE / EDIT MODAL (#lwListingModal)
   ========================================================================== */
.lw-listing-modal {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 15, 0.8);
  backdrop-filter: blur(14px);
}

.lw-listing-dialog {
  width: min(100%, 520px);
  max-height: min(90dvh, 760px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 22px;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.lw-listing-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.lw-listing-dialog-head h2 {
  font-size: 20px;
  margin: 0;
}

.lw-listing-dialog-head button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #1e293b;
  color: #fff;
  font-size: 22px;
}

.lw-listing-form {
  display: grid;
  gap: 13px;
}

.lw-listing-form label {
  display: grid;
  gap: 6px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}

.lw-listing-form input,
.lw-listing-form textarea,
.lw-listing-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 11px;
  padding: 12px;
  background: #090d18;
  color: #f8fafc;
  font: inherit;
  outline: none;
}

.lw-listing-form textarea {
  min-height: 95px;
  resize: vertical;
}

.lw-listing-form-actions {
  display: flex;
  gap: 9px;
  margin-top: 4px;
}

.lw-listing-form-actions button {
  flex: 1;
  border-radius: 11px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #1e293b;
  color: #e2e8f0;
  font-weight: 800;
}

.lw-listing-form-actions button[type=submit] {
  background: linear-gradient(135deg, #4f46e5, #3730a3);
  border-color: transparent;
  color: #fff;
}

.lw-listing-modal-open {
  overflow: hidden;
}

/* ==========================================================================
   8. RESPONSIVE DESIGN (TABLET & MOBILE DOWN TO 320PX, ZERO OVERFLOW)
   ========================================================================== */
@media (max-width: 980px) {
  .lw-listings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .lw-detail-body {
    grid-template-columns: 1fr;
  }
  .lw-detail-gallery-col {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding: 16px;
  }
  .lw-listing-detail-image {
    height: clamp(250px, 44vh, 390px);
  }
}

@media (max-width: 680px) {
  html body #home .lw-hero-listings-stage:not([hidden]) {
    gap: 10px !important;
  }
  .lw-hero-listings-frame {
    min-height: 368px;
    border-radius: 18px;
  }
  .lw-hero-listings-top {
    padding: 10px 12px 6px;
  }
  .lw-hero-live-pill {
    padding: 4px 9px;
    font-size: 9px;
  }
  #lwHeroSlideMeta {
    padding: 3px 8px;
    font-size: 8.5px;
  }
  .lw-hero-listings-track,
  .lw-hero-listings-loading {
    min-height: 368px;
  }
  /* Stacked mobile hero layout: LARGE showcase image on top, clean info below */
  .lw-hero-slide-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 42px 14px 36px;
    align-content: start;
  }
  .lw-hero-slide-media {
    order: -1;
    width: 100%;
  }
  .lw-hero-media-frame {
    max-width: 100%;
    height: 192px;
    border-radius: 14px;
  }
  .lw-hero-slide-copy {
    gap: 7px;
  }
  .lw-hero-slide-title {
    font-size: clamp(18px, 5.2vw, 22px);
    line-height: 1.15;
    -webkit-line-clamp: 1;
  }
  .lw-hero-slide-desc {
    font-size: 11.5px;
    line-height: 1.4;
    -webkit-line-clamp: 1;
  }
  .lw-hero-slide-footer {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .lw-hero-price-box {
    padding: 5px 11px;
    border-radius: 10px;
  }
  .lw-hero-price-box small {
    font-size: 7.5px;
  }
  .lw-hero-price-box strong {
    font-size: 16px;
  }
  .lw-hero-slide-views {
    padding: 6px 10px;
    font-size: 10.5px;
  }
  .lw-hero-slide-open-row {
    display: none;
  }
  .lw-hero-arrow {
    top: 138px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .lw-hero-arrow-prev { left: 8px; }
  .lw-hero-arrow-next { right: 8px; }
  .lw-hero-listings-bottom {
    bottom: 8px;
  }
  .lw-hero-listings-link {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0 18px;
    font-size: 13px;
  }

  /* Standalone Listings Page on Mobile */
  .lw-standalone-hero {
    padding: 16px;
    border-radius: 16px;
  }
  .lw-standalone-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .lw-standalone-sort-wrap,
  #lwListingsSort {
    width: 100%;
  }
  .lw-listings-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .lw-listing-image {
    height: 210px;
  }
  .lw-listing-copy {
    padding: 14px;
  }

  /* Detail Modal on Mobile */
  .lw-listing-detail {
    padding: 0;
  }
  .lw-listing-detail-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
  }
  .lw-detail-topbar {
    padding: 11px 14px;
  }
  .lw-detail-breadcrumb {
    display: none;
  }
  .lw-detail-gallery-col {
    padding: 12px;
  }
  .lw-listing-detail-image {
    height: clamp(220px, 38dvh, 310px);
  }
  .lw-listing-detail-copy {
    padding: 16px 14px 24px;
  }
  .lw-detail-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .lw-hero-media-frame {
    height: 172px;
  }
  .lw-detail-specs-grid {
    grid-template-columns: 1fr;
  }
  .lw-standalone-topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .lw-standalone-back {
    justify-content: center;
  }
}


/* ==========================================================================
   MARKETPLACE V2 UPGRADE: DISCOUNT PRICE SYSTEM & UNCROPPED TIKTOK SHOWCASE
   ========================================================================== */

/* 1. Uncropped High-Clarity Image Frame with Ambient Blur Backdrop */
.lw-listing-image {
  height: 256px !important;
  position: relative !important;
  overflow: hidden !important;
  background: radial-gradient(circle at 50% 35%, rgba(139, 92, 246, 0.18), rgba(7, 10, 20, 0.96)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px !important;
  box-sizing: border-box !important;
}

.lw-listing-img-ambient,
.lw-hero-media-ambient {
  position: absolute !important;
  inset: -14px !important;
  background-size: cover !important;
  background-position: center !important;
  filter: blur(22px) saturate(1.35) brightness(0.42) !important;
  transform: scale(1.08) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.lw-listing-image > img {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 12px !important;
  filter: drop-shadow(0 12px 24px rgba(2, 6, 23, 0.65)) !important;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.lw-listing-card:hover .lw-listing-image > img {
  transform: scale(1.035) !important;
}

.lw-hero-media-frame {
  position: relative !important;
  overflow: hidden !important;
  height: 268px !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.2), rgba(7, 11, 22, 0.94)) !important;
}

.lw-hero-media-frame > img {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 12px !important;
  filter: drop-shadow(0 14px 28px rgba(2, 6, 23, 0.72)) !important;
}

/* Social / TikTok Listing Card Elevation */
.lw-listing-card.is-social-showcase {
  border-color: rgba(168, 85, 247, 0.34) !important;
  box-shadow:
    0 20px 46px rgba(2, 6, 23, 0.56),
    0 0 0 1px rgba(56, 189, 248, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.lw-listing-card.is-social-showcase:hover {
  border-color: rgba(168, 85, 247, 0.62) !important;
  box-shadow:
    0 26px 58px rgba(88, 28, 135, 0.38),
    0 0 24px rgba(56, 189, 248, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.lw-listing-image .lw-listing-photo-count,
.lw-listing-image .lw-listing-status,
.lw-listing-image .lw-listing-discount-ribbon,
.lw-hero-media-frame .lw-listing-photo-count {
  z-index: 2 !important;
}

/* 2. Discount Price System (Old Strikethrough + Bold New Price + Auto % Badge) */
.lw-price-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.lw-price-old-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.lw-price-old {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.76);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(244, 63, 94, 0.75);
  font-variant-numeric: tabular-nums;
}

.lw-price-discount-badge,
.lw-hero-discount-pill,
.lw-listing-discount-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.92), rgba(168, 85, 247, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 14px rgba(244, 63, 94, 0.32);
}

.lw-listing-discount-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 0.68rem;
}

.lw-price-current {
  font-size: 1.18rem !important;
  font-weight: 900 !important;
  color: #38bdf8 !important;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}

.lw-price-stack--hero .lw-price-current {
  font-size: 1.32rem !important;
}

.lw-price-stack--detail .lw-price-old {
  font-size: 0.92rem;
}

.lw-price-stack--detail .lw-price-current {
  font-size: 1.65rem !important;
}

/* Price fields grid inside Listing Create/Edit Modal */
.lw-listing-price-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 720px) {
  .lw-listing-image {
    height: 236px !important;
  }
  .lw-hero-media-frame {
    height: 220px !important;
  }
  .lw-listing-price-fields {
    grid-template-columns: 1fr;
  }
}
