/* ═══════════════════════════════════════════════════════════
   LI GAMING BD — PREMIUM 3D STOREFRONT  (v4 · borderless)
   Cards use the same look as the profile panel: raised slate
   surface, soft shadow, inner highlight — NO borders.
   Markup: lx-* classes (renderOffers / renderHomeHighlights).
   ═══════════════════════════════════════════════════════════ */

:root {
  --lx-gold-1: #ffe08a;
  --lx-gold-2: #f6b90b;
  --lx-gold-3: #d48f00;
  --lx-ink: #2a1a00;
  --lx-surface-a: #2c3244;
  --lx-surface-b: #1f2434;
}

/* ───────── Grid spacing ───────── */
html body #offerGrid { gap: 12px 10px !important; padding-bottom: 6px !important; }

/* ═════════ CARD ═════════ */
.lx-card {
  position: relative;
  container-type: inline-size;
  display: block;
  padding: 6px;
  border-radius: 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, var(--lx-surface-a) 0%, var(--lx-surface-b) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .09);
  transform: translateZ(0);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.25), box-shadow .3s ease;
  will-change: transform;
}
.lx-card:hover,
.lx-card:focus-visible {
  transform: translateY(-4px);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .13);
}
.lx-card:active {
  transform: translateY(1px) scale(.985);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

.lx-frame { position: relative; }

/* ═════════ IMAGE (floating rounded tile) ═════════ */
.lx-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 15px;
  background: #0a0f1c;
  box-shadow: 0 0 0 0 transparent;
}
.lx-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.lx-card:hover .lx-img { transform: scale(1.06); }
.lx-media::after {                               /* soft depth vignette */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 70%, rgba(8, 11, 22, .38) 100%);
}
.lx-media::before {                              /* moving gloss */
  content: "";
  position: absolute; inset: -10% 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .26) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform .9s ease;
}
.lx-card:hover .lx-media::before,
.lx-card:active .lx-media::before { transform: translateX(130%); }

/* ═════════ INFO (compact) ═════════ */
.lx-info { padding: 8px 3px 3px; }

.lx-title {
  margin: 0 0 6px;
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-size: clamp(11.5px, 6.6cqw, 14.5px);
  font-weight: 800;
  line-height: 1.2;
  color: #f3f5fa;
  text-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═════════ PRICE ROW — everything scales with card width ═════════ */
.lx-prices {
  display: flex;
  align-items: center;
  gap: 4px;
  gap: 2.2cqw;
  min-width: 0;
}

/* current price — gold 3D button (same as profile "Pending") */
.lx-price {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 8px;
  padding: 0 4cqw;
  border-radius: 9px;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 12.5px;
  font-size: clamp(11px, 6.2cqw, 14px);
  font-weight: 800;
  line-height: 1;
  color: var(--lx-ink);
  text-shadow: none;
  background: linear-gradient(180deg, var(--lx-gold-1) 0%, var(--lx-gold-2) 58%, var(--lx-gold-3) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7);
}

/* old price — clean, readable, struck through (no box, no clipping) */
.lx-old {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-size: 11.5px;
  font-size: clamp(10.5px, 6.6cqw, 13.5px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: #b4bdd2;
  text-decoration: line-through;
  text-decoration-color: #ff6573;
  text-decoration-thickness: 1.6px;
  text-shadow: none;
}

/* discount — glossy red 3D badge (same red as profile "Logout") */
.lx-off {
  flex: 0 0 auto;
  margin-left: auto;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 6px;
  padding: 0 3.2cqw;
  border-radius: 9px;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 10px;
  font-size: clamp(9px, 4.9cqw, 11.5px);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  text-shadow: none;
  background: linear-gradient(180deg, #ff6f80 0%, #ec3b4f 55%, #c8152f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5);
}
.lx-off::after {
  content: "";
  position: absolute; top: 0; left: -70%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  animation: lx-shine 3.6s ease-in-out infinite;
}
@keyframes lx-shine { 0%, 55% { left: -70%; } 100% { left: 150%; } }

/* chevron chip (cards with no discount) */
.lx-go {
  flex: 0 0 auto;
  margin-left: auto;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  font-size: 19px; font-weight: 800; line-height: 1;
  color: var(--lx-gold-1);
  background: linear-gradient(180deg, #394058, #272d40);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

/* ═════════ VIP — warm gold-tinted surface, still borderless ═════════ */
.lx-vip {
  background: linear-gradient(180deg, #3b3524 0%, #26231a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 224, 138, .22);
}

/* ═════════ LATEST OFFERS (feature card) ═════════ */
.lx-feature .lx-feature-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 3px 3px;
}
.lx-cash {
  min-width: 0;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 13px;
  font-size: clamp(11.5px, 6.4cqw, 14.5px);
  font-weight: 800;
  color: #f3f5fa;
  text-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═════════ HERO SLIDER (no yellow ring) ═════════ */
html body .hero {
  border-radius: 22px !important;
  box-shadow: none !important;
}
html body .hero::after {
  content: "" !important;
  display: block !important;
  position: absolute !important; inset: 0 !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  z-index: 5 !important;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .16) 50%, transparent 62%) !important;
  background-size: 250% 100% !important;
  animation: lx-sheen 6s ease-in-out infinite !important;
}
@keyframes lx-sheen { 0% { background-position: 170% 0; } 55%, 100% { background-position: -70% 0; } }

/* ═════════ FILTER CHIPS (borderless 3D) ═════════ */
html body .filters .filter {
  border: 0 !important;
  background: linear-gradient(180deg, #2c3244 0%, #1f2434 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1) !important;
  transition: transform .2s cubic-bezier(.2, .9, .3, 1.4), filter .2s !important;
}
html body .filters .filter:hover { transform: translateY(-2px) !important; filter: brightness(1.12) !important; }
html body .filters .filter:active { transform: translateY(2px) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 #0d111c !important; }
html body .filters .filter.active {
  background: linear-gradient(180deg, #5fd0ff 0%, #1a7df0 52%, #0c4cb5 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .6) !important;
}

/* ═════════ HEADER (no yellow line) ═════════ */
html body header.top .nav-search-btn,
html body header.top .profile-nav,
html body header.top .cart-nav {
  background: linear-gradient(180deg, #2c3244 0%, #1f2434 100%) !important;
  border: 0 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12) !important;
  transition: transform .2s cubic-bezier(.2, .9, .3, 1.4), filter .2s !important;
}
html body header.top .nav-search-btn:active,
html body header.top .profile-nav:active,
html body header.top .cart-nav:active { transform: translateY(2px) !important; }
html body header.top { box-shadow: none !important; }

@media (prefers-reduced-motion: reduce) {
  .lx-off::after, html body .hero::after { animation: none !important; }
  .lx-card, .lx-img, .lx-media::before { transition: none; }
}
