/* Homepage admin banner — marketplace (NeixPay/index.php) */
.lx-home-banner-root {
  display: none;
  width: 100%;
}

.lx-home-banner-root--visible,
.lx-home-banner-root:not(:empty) {
  display: block;
}

body.lx-storefront-home .lx-home-banner-root--visible {
  margin: 0;
  padding: 0;
}

/* Compact banner — matches React HomeBanner */
.hb-region {
  --hb-h: 250px;
  --hb-cols: 4;
  position: relative;
  overflow: hidden;
  height: var(--hb-h);
  min-height: var(--hb-h);
  max-height: var(--hb-h);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #0b1020;
  isolation: isolate;
}

.hb-stage {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
  min-height: 0;
  box-sizing: border-box;
}

.hb-bg-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.9s ease;
}

.hb-bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hb-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hb-bg-wrap .lx-video-shield,
.lx-video-shield.hb-bg-slide,
.lx-video-shield.hb-bg-video,
.lx-video-shield.hb-card-media,
.lx-video-shield.hb-card-video,
.lx-video-shield--embed.hb-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hb-bg-video,
.hb-bg-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center;
}

.lx-video-shield {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-touch-callout: none;
}

.lx-video-shield--embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.lx-vscover {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: transparent;
  touch-action: none;
}

.hb-banner-content {
  display: flex;
  padding: clamp(0.5rem, 2vw, 1rem) clamp(0.75rem, 3vw, 1.5rem);
  pointer-events: none;
  color: #fff;
  box-sizing: border-box;
}

.hb-banner-content--placement-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.hb-banner-content--center {
  justify-content: center;
  text-align: center;
}

.hb-banner-content--right {
  justify-content: flex-end;
  text-align: right;
}

.hb-banner-content--left {
  justify-content: flex-start;
  text-align: left;
}

.hb-banner-content--v-top {
  align-items: flex-start;
}

.hb-banner-content--v-center {
  align-items: center;
}

.hb-banner-content--v-bottom {
  align-items: flex-end;
}

.hb-banner-content--placement-above-cards,
.hb-banner-content--placement-below-cards {
  position: relative;
  inset: auto;
  z-index: 3;
  flex: 0 0 auto;
  width: 100%;
}

.hb-banner-content-inner {
  max-width: min(520px, 90%);
}

.hb-banner-kicker {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #facc15;
  margin-bottom: 4px;
}

.hb-banner-title {
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 4px;
}

.hb-banner-subtitle,
.hb-banner-paragraph {
  opacity: 0.92;
  line-height: 1.35;
  margin: 0 0 6px;
}

.hb-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.hb-card-icons {
  margin-bottom: 4px;
}

.hb-cards {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem clamp(0.65rem, 2.5vw, 1.1rem);
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
}

.hb-cards--inset {
  padding: clamp(14px, 3vw, 20px) clamp(16px, 3.5vw, 24px);
}

.hb-cards--inset.hb-cards--desktop.hb-cards--grid,
.hb-cards--inset.hb-cards--desktop.hb-cards--flex {
  gap: clamp(10px, 1.8vw, 14px);
}

.hb-cards--desktop.hb-cards--grid {
  display: grid;
  grid-template-columns: repeat(var(--hb-cols, 4), minmax(0, 1fr));
  gap: 0.45rem;
  align-items: stretch;
}

.hb-cards--desktop.hb-cards--flex {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
}

.hb-cards--desktop.hb-cards--flex .hb-card-slot--flex {
  flex: 1 1 0;
  min-width: 0;
}

.hb-card-slot {
  display: flex;
  align-items: stretch;
  min-height: 0;
  height: 100%;
  min-width: 0;
}

.hb-card-slot--align-left {
  justify-content: flex-start;
}

.hb-card-slot--align-center {
  justify-content: center;
}

.hb-card-slot--align-right {
  justify-content: flex-end;
}

.hb-card--size-large {
  width: 100%;
  height: 100%;
}

.hb-card--size-small {
  width: 100%;
  height: 100%;
  max-height: 100%;
  align-self: stretch;
}

.hb-cards--desktop.hb-cards--flex .hb-card--flex-item {
  flex: 1 1 0;
  min-width: 0;
}

.hb-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background: rgba(8, 12, 20, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  min-height: 0;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
}

.hb-card--media {
  background: #0b1020;
}

.hb-card--center {
  text-align: center;
  align-items: center;
}

.hb-card--right {
  text-align: right;
  align-items: flex-end;
}

.hb-card--justify {
  text-align: justify;
}

.hb-card--center .hb-card-actions,
.hb-card--right .hb-card-actions {
  justify-content: center;
}

.hb-card--right .hb-card-actions {
  justify-content: flex-end;
}

.hb-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hb-card-media-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease;
}

.hb-card-video,
.hb-card-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.hb-card-media-slide--active {
  opacity: 1;
}

.hb-card-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hb-card-body {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
}

.hb-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #facc15;
  margin-bottom: 4px;
  line-height: 1.2;
}

.hb-card-title {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: inherit;
}

.hb-card-subtitle {
  opacity: 0.92;
  line-height: 1.35;
  margin: 0 0 6px;
}

.hb-cursor {
  display: inline-block;
  margin-left: 2px;
  font-weight: 400;
  animation: hb-blink 1s steps(1) infinite;
}

@keyframes hb-blink {
  50% {
    opacity: 0;
  }
}

.hb-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  position: relative;
  z-index: 3;
}

.hb-card-actions--top-left,
.hb-card-actions--top-center,
.hb-card-actions--top-right,
.hb-card-actions--bottom-left,
.hb-card-actions--bottom-center,
.hb-card-actions--bottom-right,
.hb-card-actions--center {
  position: absolute;
  margin: 0;
}

.hb-card-actions--top-left {
  top: 0.55rem;
  left: 0.65rem;
  justify-content: flex-start;
}

.hb-card-actions--top-center {
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
}

.hb-card-actions--top-right {
  top: 0.55rem;
  right: 0.65rem;
  justify-content: flex-end;
}

.hb-card-actions--bottom-left {
  bottom: 0.55rem;
  left: 0.65rem;
  justify-content: flex-start;
}

.hb-card-actions--bottom-center {
  bottom: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
}

.hb-card-actions--bottom-right {
  bottom: 0.55rem;
  right: 0.65rem;
  justify-content: flex-end;
}

.hb-card-actions--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  justify-content: center;
}

.hb-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.hb-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.hb-btn--primary {
  background: #22c55e;
  color: #04140a;
}

.hb-btn--outline {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.hb-cards--carousel .hb-card-slot {
  animation: hb-card-enter 0.55s ease both;
}

.hb-cards--carousel .hb-card-slot:nth-child(2) {
  animation-delay: 0.04s;
}

.hb-cards--carousel .hb-card-slot:nth-child(3) {
  animation-delay: 0.08s;
}

.hb-cards--carousel .hb-card-slot:nth-child(4) {
  animation-delay: 0.12s;
}

.hb-cards--carousel .hb-card-slot:nth-child(n + 5) {
  animation-delay: 0.16s;
}

@keyframes hb-card-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hb-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  bottom: 6px;
}

.hb-card-dots {
  display: none;
}

.hb-dots span,
.hb-card-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.2s ease, background 0.2s ease;
}

.hb-dots span.is-active,
.hb-card-dots span.is-active {
  width: 18px;
  background: #fff;
}

.hb-card-dots span.is-active {
  background: #22c55e;
}

@media (max-width: 767px) {
  .hb-region {
    --hb-h: clamp(160px, 42vw, 200px);
  }

  .hb-cards--mobile {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0.45rem;
  }

  .hb-cards--mobile-multi {
    flex-wrap: nowrap;
  }

  .hb-cards--mobile .hb-card-slot {
    flex: 1 1 0;
    min-width: 0;
  }

  .hb-cards--mobile .hb-card {
    width: 100%;
    height: 100%;
  }

  .hb-cards--mobile .hb-card--size-small {
    width: 100%;
    height: 100%;
  }

  .hb-cards--mobile.hb-cards--inset {
    padding: clamp(12px, 4vw, 18px) clamp(12px, 4vw, 16px);
  }

  .hb-dots {
    bottom: 18px;
  }
}
