/* Featured Robux banner — robux-why-popup */
/* robux-set-bigger */
/* robux-scroll-perf */
:root{
  --kb-feat-navy: #040a12;
  --kb-feat-navy-2: #0a1220;
  --kb-feat-cyan: #22d3ee;
  --kb-feat-cyan-soft: rgba(34,211,238,0.55);
  --kb-feat-gold: #f5c542;
  --kb-feat-radius: 20px;
  --kb-feat-w: 80rem; /* ~1280px — near full content width */
  --kb-feat-h: 24.25rem; /* ~388px — slightly taller so wider set stays balanced */
  --kb-feat-gap: 0.9rem;
}

.home-category-block--featured,
.home-category-block--featured .kb-featured,
.kb-featured--robux{
  overflow: visible !important;
}
.home-category-block--featured > .kb-cat-strip{ position: relative; z-index: 2;}

#store:has(.kb-featured--robux),
#categories-container:has(.kb-featured--robux),
#categories-container:has(.kb-featured--robux) > .space-y-6,
#categories-container:has(.kb-featured--robux) > .space-y-12,
.home-page:has(.kb-featured--robux) #store,
.home-page:has(.kb-featured--robux) #categories-container{
  overflow-x: clip;
  overflow-y: visible;
}

.kb-featured{
  position: relative;
  width: 100%;
  margin-top: 0.45rem;
  overflow: visible;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.kb-featured.is-inview{
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 640px){ .kb-featured{ margin-top: 0.55rem;} }

.kb-featured--robux{
  max-width: min(var(--kb-feat-w), 100%);
  margin-inline: auto;
  padding-inline: clamp(1.75rem, 3.75vw, 2.85rem);
}
@media (min-width: 768px){
  .kb-featured--robux{ max-width: min(var(--kb-feat-w), 98%); }
}
@media (min-width: 1280px){
  .kb-featured--robux{ max-width: min(var(--kb-feat-w), 100%); }
}

.kb-featured__viewport{
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  border-radius: var(--kb-feat-radius);
}
.kb-featured--robux .kb-featured__viewport{
  overflow: hidden;
  border-radius: 0;
}
.kb-featured__track{
  display: flex;
  width: 100%;
  transition: transform 0.42s cubic-bezier(0.22,1,0.36,1);
}
.kb-featured__slide{
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  opacity: 0.55;
  transition: opacity 0.35s ease;
}
.kb-featured__slide.is-active{ opacity: 1;}

/* —— Shared panel chrome —— */
.kb-featured__panel{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--kb-feat-radius);
  border: 1.5px solid var(--kb-feat-cyan-soft);
  background:
    radial-gradient(ellipse 80% 70% at 18% 45%, rgba(34,211,238,0.14), transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 80%, rgba(34,211,238,0.1), transparent 50%),
    radial-gradient(ellipse 100% 100% at 50% 50%, var(--kb-feat-navy-2), var(--kb-feat-navy));
  box-shadow:
    0 0 0 1px rgba(34,211,238,0.1),
    0 12px 28px rgba(0,0,0,0.42);
}

/* —— Card shell (non-split / fallback) —— */
.kb-featured__card{
  --kb-card-radius: var(--kb-feat-radius);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "art" "info";
  width: 100%;
  min-height: 0;
  gap: 0;
  isolation: isolate;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.kb-featured__card:not(.kb-featured__card--split){
  overflow: hidden;
  border-radius: var(--kb-card-radius);
  border: 1.5px solid var(--kb-feat-cyan-soft);
  background:
    radial-gradient(ellipse 80% 70% at 18% 45%, rgba(34,211,238,0.14), transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 80%, rgba(34,211,238,0.1), transparent 50%),
    radial-gradient(ellipse 100% 100% at 50% 50%, var(--kb-feat-navy-2), var(--kb-feat-navy));
  box-shadow:
    0 0 0 1px rgba(34,211,238,0.1),
    0 12px 28px rgba(0,0,0,0.42);
}
.kb-featured__card:not(.kb-featured__card--split) .kb-featured__panel{
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Split: art ~58% / info ~42% — compact buy panel */
.kb-featured__card--split{
  gap: var(--kb-feat-gap);
  grid-template-areas: "art" "info";
}
.kb-featured__panel--art{ grid-area: art;}
.kb-featured__panel--info{ grid-area: info;}

@media (min-width: 768px){
  .kb-featured__card,
  .kb-featured__card--split{
    grid-template-columns: minmax(0, 1.55fr) minmax(18.5rem, 1fr);
    grid-template-rows: var(--kb-feat-h);
    grid-template-areas: "art info";
    min-height: var(--kb-feat-h);
    height: var(--kb-feat-h);
    max-height: var(--kb-feat-h);
  }
  .kb-featured__card--split{
    grid-template-columns: minmax(0, 1.55fr) minmax(17.75rem, 0.85fr); /* ~65/35, denser info */
  }
  .kb-featured__card--split .kb-featured__panel--info{
    min-width: 17.75rem;
    width: 100%;
  }
}

/* Rotating energy wash — static while scrolling (robux-scroll-perf); animate only when idle + inview */
.kb-featured__energy{
  position: absolute;
  inset: -40%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(34,211,238,0.18) 40deg,
    transparent 90deg,
    rgba(245,197,66,0.1) 160deg,
    transparent 220deg,
    rgba(34,211,238,0.14) 300deg,
    transparent 360deg
  );
  animation: kb-feat-energy 48s linear infinite;
  animation-play-state: paused;
  will-change: auto;
}
.kb-featured.is-inview:not(.is-anim-paused) .kb-featured__energy{
  animation-play-state: running;
}
html.is-page-scrolling .kb-featured__energy{
  animation-play-state: paused !important;
}
@keyframes kb-feat-energy{
  to{ transform: rotate(360deg);}
}

.kb-featured__glow{
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 56%;
  height: 70%;
  border-radius: 50%;
  filter: none;
  background: radial-gradient(circle closest-side,rgba(34,211,238,0.22) 0%,rgba(34,211,238,0.08) 45%,transparent 72%);
}
.kb-featured__glow--tl{
  top: -18%;
  left: -10%;
  background: radial-gradient(circle closest-side,rgba(34,211,238,0.22) 0%,rgba(34,211,238,0.08) 45%,transparent 72%);
}
.kb-featured__glow--br{
  right: -8%;
  bottom: -22%;
  background: radial-gradient(circle closest-side,rgba(34,211,238,0.16) 0%,rgba(34,211,238,0.06) 45%,transparent 72%);
}

/* Particles (art only) — cyan/teal for robux split (no gold rim); pause off-screen / while scrolling */
.kb-featured__particles{
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
}
.kb-featured__dot-p{
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(5px * var(--s, 1));
  height: calc(5px * var(--s, 1));
  border-radius: 50%;
  background: var(--kb-feat-cyan);
  box-shadow: none;
  opacity: 0.45;
  animation: kb-feat-particle 5.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  animation-play-state: paused;
}
.kb-featured__card--split .kb-featured__energy{
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(34,211,238,0.2) 40deg,
    transparent 90deg,
    rgba(34,211,238,0.12) 160deg,
    transparent 220deg,
    rgba(34,211,238,0.16) 300deg,
    transparent 360deg
  );
}
.kb-featured__dot-p:nth-child(n+5){ display: none;}
.kb-featured.is-inview:not(.is-anim-paused) .kb-featured__dot-p{
  animation-play-state: running;
}
html.is-page-scrolling .kb-featured__dot-p{
  animation-play-state: paused !important;
}
@keyframes kb-feat-particle{
  0%,100%{ transform: translate3d(0,0,0) scale(1); opacity: 0.35;}
  50%{ transform: translate3d(0,-8px,0) scale(1.15); opacity: 0.75;}
}

/* robux-no-banner-label — seal pill removed from art panel */
.kb-featured__seal{ display: none !important;}

/* robux-gap-shadow-fix — no outer shadow into gutter (follows rounded corner) */
.kb-featured__card--split{
  filter: none;
}
.kb-featured__card--split .kb-featured__panel{
  overflow: hidden;
  filter: none;
  contain: layout paint;
  /* inset-only: outer box-shadow always paints into the gap */
  box-shadow:
    inset 0 0 0 1px rgba(34,211,238,0.12),
    inset 0 0 18px -12px rgba(34,211,238,0.14);
}
.kb-featured__card--split .kb-featured__panel--art,
.kb-featured__card--split .kb-featured__panel--info{
  box-shadow:
    inset 0 0 0 1px rgba(34,211,238,0.12),
    inset 0 0 18px -12px rgba(34,211,238,0.14);
}
.kb-featured__card--split .kb-featured__glow--br{
  right: 12%;
  bottom: -18%;
  opacity: 0.45;
  width: 42%;
  height: 55%;
}
.kb-featured__card--split .kb-featured__media,
.kb-featured__card--split .kb-featured__img{
  filter: none;
}
@media (min-width: 768px){
  .kb-featured__card--split .kb-featured__media-glow{
    background:
      linear-gradient(180deg,
        transparent 42%,
        rgba(4,10,18,0.18) 80%,
        rgba(4,10,18,0.4) 100%),
      radial-gradient(ellipse 45% 55% at 18% 85%, rgba(34,211,238,0.2), transparent 70%);
  }
}

/* —— Media / art zone —— */
.kb-featured__media{
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 11.5rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 40% 50%, rgba(34,211,238,0.18), transparent 68%),
    linear-gradient(160deg, #0a1220, #03080e);
}
.kb-featured__panel--art .kb-featured__media{
  height: 100%;
}
@media (min-width: 768px){
  .kb-featured__media{
    min-height: 100%;
    height: 100%;
    aspect-ratio: auto;
    margin: 0;
  }
}
.kb-featured__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.kb-featured__card:hover .kb-featured__img{ transform: scale(1.055);}

.kb-featured__media-glow{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(180deg,
      transparent 35%,
      rgba(4,10,18,0.25) 70%,
      rgba(4,10,18,0.55) 100%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(34,211,238,0.22), transparent 70%);
}
@media (min-width: 768px){
  .kb-featured__media-glow{
    background:
      linear-gradient(90deg,
        transparent 55%,
        rgba(4,10,18,0.18) 82%,
        rgba(4,10,18,0.35) 100%),
      radial-gradient(ellipse 45% 55% at 20% 85%, rgba(34,211,238,0.22), transparent 70%);
  }
  .kb-featured__card:not(.kb-featured__card--split) .kb-featured__media-glow{
    background:
      linear-gradient(90deg,
        transparent 8%,
        transparent 42%,
        rgba(4,10,18,0.28) 68%,
        rgba(4,10,18,0.72) 88%,
        rgba(4,10,18,0.92) 100%),
      radial-gradient(ellipse 45% 55% at 20% 85%, rgba(34,211,238,0.22), transparent 70%);
  }
}

/* —— Content / info panel (Kingdom-style buy panel) —— */
.kb-featured__panel--info{
  display: flex;
  position: relative;
}
.kb-featured__card--split .kb-featured__panel--info{
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 70% at 88% 55%, rgba(34,211,238,0.1), transparent 58%),
    radial-gradient(ellipse 90% 80% at 40% 18%, rgba(34,211,238,0.1), transparent 55%),
    radial-gradient(ellipse 100% 100% at 50% 50%, var(--kb-feat-navy-2), var(--kb-feat-navy));
}
.kb-featured__info{
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
  padding: 1.15rem 1.35rem 1.35rem;
  box-sizing: border-box;
}
.kb-featured__info--buy{
  justify-content: space-between;
  gap: 0.55rem;
  height: 100%;
  padding: 0.95rem 1rem 1rem;
}
@media (min-width: 768px){
  .kb-featured__info{
    gap: 0.65rem;
    padding: 1.5rem 1.75rem 1.55rem 1.55rem;
  }
  .kb-featured__card--split .kb-featured__info{
    gap: 0.7rem;
    justify-content: center;
    padding: 1.75rem 2.4rem 1.75rem 1.85rem;
    max-width: 28rem;
  }
  .kb-featured__card--split .kb-featured__info--buy{
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1.1rem 1.05rem;
    max-width: none;
    width: 100%;
  }
  .kb-featured__card:not(.kb-featured__card--split) .kb-featured__info{
    padding: 1.35rem 1.75rem 1.45rem 0.85rem;
    background:
      linear-gradient(90deg,
        transparent 0%,
        rgba(4,10,18,0.35) 18%,
        rgba(4,10,18,0.88) 48%,
        rgba(4,10,18,0.97) 100%);
  }
}

/* Header: thumb + platform / title / status */
.kb-featured__head{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}
.kb-featured__thumb{
  flex: 0 0 auto;
  width: 3.15rem;
  height: 4.05rem;
  border-radius: 0.55rem;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(34,211,238,0.35);
  background: rgba(6,18,28,0.7);
  box-shadow: 0 0 12px -4px rgba(34,211,238,0.35);
}
.kb-featured__head-meta{
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 auto;
}
.kb-featured__info--buy .kb-featured__platform{
  color: var(--kb-feat-cyan);
  text-shadow: 0 0 10px rgba(34,211,238,0.35);
}
.kb-featured__platform{
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgb(150 170 195 / 0.85);
}
.kb-featured__info--buy .kb-featured__title{
  margin: 0;
  max-width: 100%;
  font-family: "Kanit", "Fredoka", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: #f4f8ff;
  text-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kb-featured__status{
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: rgb(150 170 195 / 0.78);
}
.kb-featured__status--out{
  color: rgba(255,140,140,0.9);
  font-weight: 700;
}

/* Cyan-border selection box (text only — single thumb lives in head) */
.kb-featured__select{
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  border: 1.5px solid var(--kb-feat-cyan);
  background: rgba(6,18,28,0.55);
  box-shadow:
    0 0 0 1px rgba(34,211,238,0.12),
    0 0 18px -6px rgba(34,211,238,0.35);
  box-sizing: border-box;
}
.kb-featured__select-img{
  display: none;
}
.kb-featured__select-meta{
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1 1 auto;
}
.kb-featured__select-name{
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  color: #f4f8ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kb-featured__select-check{
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  color: #4ade80;
}
.kb-featured__select-icon{
  width: 0.85rem;
  height: 0.85rem;
  stroke-width: 3;
}

/* Why-buy CTA (opens modal) */
.kb-featured__why{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 2.35rem;
  margin: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(34,211,238,0.45);
  background: rgba(34,211,238,0.08);
  color: var(--kb-feat-cyan);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.kb-featured__why:hover,
.kb-featured__why:focus-visible{
  background: rgba(34,211,238,0.16);
  border-color: rgba(34,211,238,0.75);
  color: #fff;
  outline: none;
}
.kb-featured__why-icon{
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  stroke-width: 2.4;
}

/* Robux why-buy modal — trust-card layout (text left, hex icon right) */
/* why-buy-icon */
.robux-why-modal{
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.15rem;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.robux-why-modal[hidden]:not(.is-open){ display: none !important;}
/* mobile-black-screen-fix */
.robux-why-modal:not(.is-open){ opacity: 0 !important; visibility: hidden !important; pointer-events: none !important;}
.robux-why-modal.is-open{
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.robux-why-modal__backdrop{
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  border: 0;
  padding: 0;
  background: rgb(2 8 16 / 0.78);
  cursor: pointer;
}
.robux-why-modal__panel{
  position: relative;
  z-index: 1;
  width: min(100%, 40rem);
  padding: 1.45rem 1.15rem 1.45rem 1.55rem;
  overflow: visible;
  isolation: isolate;
  border-radius: 1.1rem;
  border: 1.5px solid hsl(var(--primary));
  background:
    linear-gradient(108deg,
      color-mix(in srgb, hsl(var(--primary)) 16%, rgb(6 14 20)) 0%,
      rgb(6 14 20 / 0.94) 40%,
      rgb(3 8 12 / 0.98) 100%);
  box-shadow:
    0 16px 40px rgb(0 0 0 / 0.5),
    0 0 32px -8px hsl(var(--primary) / 0.48),
    inset 0 1px 0 rgb(255 255 255 / 0.07);
  transform: translate3d(0, 10px, 0) scale(0.97);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.robux-why-modal.is-open .robux-why-modal__panel{
  transform: translate3d(0, 0, 0) scale(1);
}
.robux-why-modal__close{
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  padding: 0;
  border-radius: 0.65rem;
  border: 1px solid hsl(var(--primary) / 0.45);
  background: hsl(var(--primary) / 0.12);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.robux-why-modal__close:hover,
.robux-why-modal__close:focus-visible{
  background: hsl(var(--primary) / 0.22);
  border-color: hsl(var(--primary) / 0.7);
  outline: none;
}
.robux-why-modal__row{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  min-height: 8.5rem;
  padding-right: 0.15rem;
}
.robux-why-modal__text{
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1 1 auto;
  padding: 0.15rem 0.25rem 0.15rem 0;
  padding-right: 0.35rem;
  text-align: left;
}
.robux-why-modal__title{
  margin: 0 2.2rem 0.7rem 0;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #fff;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.robux-why-modal__list{
  margin: 0;
  padding: 0 0 0 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  list-style: disc;
}
.robux-why-modal__list li{
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.48;
  color: rgb(var(--foreground) / 0.82);
}
.robux-why-modal__list strong{
  color: #f4f8ff;
  font-weight: 800;
}
.robux-why-modal__icon-wrap{
  position: relative;
  z-index: 2;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 11.5rem;
  height: 11.5rem;
  margin: -2.15rem -0.85rem -2.15rem -0.2rem;
  overflow: visible;
  pointer-events: none;
  transform: translateX(0.2rem);
}
.robux-why-modal__icon{
  display: block;
  width: 100%;
  height: 100%;
  max-width: 11.5rem;
  max-height: 11.5rem;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 20px rgb(0 0 0 / 0.45))
    drop-shadow(0 0 18px hsl(var(--primary) / 0.32));
}
@media (min-width: 640px){
  .robux-why-modal{ padding: 1.5rem;}
  .robux-why-modal__panel{
    width: min(100%, 44rem);
    padding: 1.7rem 1.25rem 1.7rem 1.85rem;
    border-radius: 1.2rem;
  }
  .robux-why-modal__row{ gap: 0.75rem; min-height: 9.5rem;}
  .robux-why-modal__title{ font-size: 1.42rem; margin-bottom: 0.75rem;}
  .robux-why-modal__list li{ font-size: 0.98rem; line-height: 1.52;}
  .robux-why-modal__icon-wrap{
    width: 13.25rem;
    height: 13.25rem;
    margin: -2.5rem -1.1rem -2.5rem -0.25rem;
    transform: translateX(0.3rem);
  }
  .robux-why-modal__icon{ max-width: 13.25rem; max-height: 13.25rem;}
}
@media (max-width: 479px){
  .robux-why-modal__row{
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    min-height: 0;
  }
  .robux-why-modal__text{ padding-right: 2.4rem; padding-bottom: 0.15rem;}
  .robux-why-modal__title{ margin-right: 0; font-size: 1.18rem;}
  .robux-why-modal__list li{ font-size: 0.9rem;}
  .robux-why-modal__icon-wrap{
    width: 9.25rem;
    height: 9.25rem;
    margin: -0.35rem auto -1.1rem;
    transform: none;
  }
  .robux-why-modal__icon{ max-width: 9.25rem; max-height: 9.25rem;}
  .robux-why-modal__panel{ padding: 1.35rem 1.2rem 1.1rem;}
}

/* Price row — fills width; discount on the right */
.kb-featured__price-row{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}
.kb-featured__price-block{
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
  flex: 1 1 auto;
}
.kb-featured__compare{
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  color: rgb(140 160 185 / 0.7);
  text-decoration: line-through;
}
.kb-featured__price-label{
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: rgb(170 190 210 / 0.85);
}
.kb-featured__price{
  margin: 0;
  font-family: "Kanit", "Fredoka", system-ui, sans-serif;
  font-size: clamp(1.65rem, 3.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: #f4f8ff;
  white-space: nowrap;
}
.kb-featured__discount{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--kb-feat-cyan);
  color: #041018;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 0 14px -2px rgba(34,211,238,0.55);
}

/* Small ROBUX badge (legacy / non-buy) */
.kb-featured__badge{
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.32rem 0.78rem;
  border-radius: 0.4rem;
  border: 1px solid hsl(var(--primary) / 0.6);
  background: hsl(var(--primary) / 0.16);
  color: hsl(var(--primary));
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 0 14px -4px hsl(var(--primary) / 0.45);
}

.kb-featured__title{
  margin: 0;
  max-width: 24rem;
  font-family: "Kanit", "Fredoka", system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.08;
  color: #f4f8ff;
  text-shadow: 0 0 22px hsl(var(--primary) / 0.35);
}
.kb-featured__card--split .kb-featured__title{
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
}
.kb-featured__card--split .kb-featured__info--buy .kb-featured__title{
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  text-shadow: none;
}

.kb-featured__sub{
  margin: -0.1rem 0 0.05rem;
  max-width: 24rem;
  font-size: clamp(0.78rem, 1.6vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: rgb(160 180 205 / 0.78);
}

.kb-featured__hook{
  margin: 0;
  max-width: 26rem;
  font-size: clamp(1.05rem, 2.3vw, 1.28rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: rgb(210 222 240 / 0.94);
}
.kb-featured__hook-price{
  color: hsl(var(--primary));
  font-weight: 800;
  text-shadow: 0 0 16px hsl(var(--primary) / 0.45);
}

/* Cyan primary CTA — full-width on buy panel */
.kb-featured__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  min-height: 3rem;
  min-width: 11.5rem;
  padding: 0.78rem 1.75rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--primary) / 0.85);
  background: hsl(var(--primary));
  color: #041018;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow:
    0 0 0 1px hsl(var(--primary) / 0.2),
    0 0 18px -4px hsl(var(--primary) / 0.55),
    0 6px 14px rgb(0 0 0 / 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.kb-featured__cta--full{
  width: 100%;
  min-width: 0;
  margin-top: 0;
  min-height: 2.85rem;
  padding: 0.7rem 1.1rem;
  border-radius: 0.7rem;
  box-sizing: border-box;
}
.kb-featured__cta-icon{
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2.4;
}
.kb-featured__cta:hover{
  transform: translate3d(0,-2px,0) scale(1.01);
  filter: none;
  box-shadow:
    0 0 0 1px hsl(var(--primary) / 0.3),
    0 0 22px -2px hsl(var(--primary) / 0.65),
    0 8px 18px rgb(0 0 0 / 0.3);
}
.kb-featured__cta:focus-visible{
  outline: 2px solid hsl(var(--primary));
  outline-offset: 3px;
}

.kb-featured__soldout{
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,140,140,0.9);
}

/* Floating hex — left K + right Robux (robux-icon-right) */
/* robux-float-mobile — transform-only bob on all viewports; pause off-screen only */
.kb-featured__float{
  display: block !important;
  position: absolute;
  z-index: 12;
  width: 9.5rem;
  height: auto;
  min-width: 7rem;
  min-height: 7rem;
  max-width: none;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  user-select: none;
  object-fit: contain;
  filter: none;
  will-change: auto;
  backface-visibility: hidden;
}
.kb-featured.is-inview .kb-featured__float{ will-change: transform;}
.kb-featured:not(.is-inview) .kb-featured__energy,
.kb-featured:not(.is-inview) .kb-featured__dot-p,
.kb-featured:not(.is-inview) .kb-featured__float--left,
.kb-featured:not(.is-inview) .kb-featured__float--right,
.kb-featured.is-anim-paused .kb-featured__energy,
.kb-featured.is-anim-paused .kb-featured__dot-p,
.kb-featured.is-anim-paused .kb-featured__float--left,
.kb-featured.is-anim-paused .kb-featured__float--right{
  animation-play-state: paused !important;
}
/* Energy/particles still pause while scrolling; float bob stays on (cheap transform) */
html.is-page-scrolling .kb-featured__energy,
html.is-page-scrolling .kb-featured__dot-p{
  animation-play-state: paused !important;
}
.kb-featured__float--left{
  left: -2.15rem;
  top: 4%;
  animation: kb-feat-bob-l 3.2s ease-in-out infinite;
  animation-play-state: paused;
}
.kb-featured__float--right{
  display: block !important;
  right: -2.15rem;
  left: auto;
  top: 38%;
  animation: kb-feat-bob-r 3.6s ease-in-out infinite;
  animation-play-state: paused;
}
.kb-featured.is-inview:not(.is-anim-paused) .kb-featured__float--left,
.kb-featured.is-inview:not(.is-anim-paused) .kb-featured__float--right{
  animation-play-state: running;
}
@media (min-width: 640px){
  .kb-featured__float{ width: 12rem; min-width: 10rem; min-height: 10rem;}
  .kb-featured__float--left{ left: -2.65rem; top: 2%;}
  .kb-featured__float--right{ right: -2.65rem; top: 34%;}
}
@media (min-width: 1024px){
  .kb-featured__float{ width: 13.5rem; min-width: 11.5rem; min-height: 11.5rem;}
  .kb-featured__float--left{ left: -3.35rem; top: 4%;}
  .kb-featured__float--right{ right: -3.35rem; top: 36%;}
}
@media (max-width: 479px){
  .kb-featured__float{ width: 7rem; min-width: 5.75rem; min-height: 5.75rem;}
  .kb-featured__float--left{ left: -0.55rem; top: 4%;}
  .kb-featured__float--right{ right: -0.55rem; top: 42%;}
}

@keyframes kb-feat-bob-l{
  0%,100%{ transform: translate3d(0,0,0);}
  50%{ transform: translate3d(0,-8px,0);}
}
@keyframes kb-feat-bob-r{
  0%,100%{ transform: translate3d(0,0,0);}
  50%{ transform: translate3d(0,-10px,0);}
}

.kb-featured__nav{
  position: absolute;
  top: 50%;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,0.5);
  background: rgba(6,10,18,0.9);
  color: var(--kb-feat-cyan);
  box-shadow: 0 0 14px -2px rgba(34,211,238,0.4);
  transform: translateY(-50%);
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.15s ease, transform 0.15s ease;
}
.kb-featured__nav:hover{
  background: rgba(10,16,28,0.98);
  transform: translateY(-50%) scale(1.05);
}
.kb-featured__nav--prev{ left: 0.35rem;}
.kb-featured__nav--next{ right: 0.35rem;}
.kb-featured__nav-icon{ width: 1.1rem; height: 1.1rem; pointer-events: none;}
.kb-featured--robux .kb-featured__nav--prev{ left: calc(0.2rem + clamp(1.75rem,3.75vw,2.85rem));}
.kb-featured--robux .kb-featured__nav--next{ right: calc(0.2rem + clamp(1.75rem,3.75vw,2.85rem));}

.kb-featured__dots{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  position: relative;
  z-index: 2;
}
.kb-featured__dot{
  width: 0.45rem;
  height: 0.45rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(34,211,238,0.28);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.kb-featured__dot.is-active{ width: 1.15rem; background: var(--kb-feat-cyan);}

@media (max-width: 767px){
  .kb-featured__card--split{
    gap: 0.75rem;
  }
  .kb-featured__media{
    aspect-ratio: 16 / 10;
    min-height: 10.5rem;
  }
  .kb-featured__card{
    min-height: 0;
    height: auto;
    max-height: none;
  }
  .kb-featured__panel--art,
  .kb-featured__panel--info{
    width: 100%;
  }
  .kb-featured__info{
    width: 100%;
    padding-top: 1rem;
  }
  /* hide-mobile-produto-robux — selection box redundant on stacked mobile panel */
  .kb-featured__select{
    display: none;
  }
  .kb-featured__info--buy{
    height: auto;
    padding: 1rem 1rem 1.15rem;
    gap: 0.7rem;
  }
  .kb-featured__price{
    font-size: clamp(1.55rem, 6.5vw, 2rem);
  }
  .kb-featured__cta,
  .kb-featured__cta--full{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .kb-featured__nav{ top: calc(28% + 0.35rem);}
  .kb-featured--robux{ padding-inline: clamp(1.35rem, 3.5vw, 2.25rem);}
}

@media (prefers-reduced-motion: reduce){
  .kb-featured__energy,
  .kb-featured__dot-p,
  .kb-featured__float--left,
  .kb-featured__float--right{
    animation: none !important;
  }
  .kb-featured{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile: skip energy spin + particles (paint hit); keep icon float bob */
@media (max-width: 767px){
  .kb-featured__energy{ animation: none !important; opacity: 0.12;}
  .kb-featured__particles{ display: none;}
}
