.skeleton-banner {
    width: 100%;
    min-height: 131.5px;
    padding: 25px 28px 35px 28px;
    border-radius: 14px;
    overflow: hidden;
    background-color: rgba(74, 81, 87, 1);
    animation: pulse 1.5s infinite alternate;
  }
  .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100%;
  }
  @keyframes pulse {
      0% {
          opacity: 0.6;
      }
      100% {
          opacity: 1;
      }
  }

  #popular-cards-container,
  #cards-container {
    will-change: contents;
  }

  .game-card-animate {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
    animation: gameCardFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0ms);
  }

  .popular-card-animate {
    opacity: 0;
    transform: translateX(-18px) scale(0.96);
    animation: popularCardSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0ms);
  }

  .game-card-inner,
  .popular-card-inner {
    position: relative;
    overflow: hidden;
  }

  .game-card-inner::after,
  .popular-card-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.14) 45%,
      transparent 70%
    );
    transform: translateX(-130%);
    transition: transform 0.75s ease;
  }

  .game-card-inner:hover::after,
  .popular-card-inner:hover::after {
    transform: translateX(130%);
  }

  .games-loading {
    position: relative;
    min-height: 160px;
  }

  .games-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background:
      linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent),
      rgba(255,255,255,0.02);
    background-size: 220% 100%;
    animation: gamesLoadingShimmer 1.1s linear infinite;
    pointer-events: none;
  }

  @keyframes gameCardFadeUp {
    0% {
      opacity: 0;
      transform: translateY(22px) scale(0.96);
      filter: blur(4px);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
  }

  @keyframes popularCardSlideIn {
    0% {
      opacity: 0;
      transform: translateX(-18px) scale(0.96);
      filter: blur(4px);
    }
    100% {
      opacity: 1;
      transform: translateX(0) scale(1);
      filter: blur(0);
    }
  }

  @keyframes gamesLoadingShimmer {
    0% {
      background-position: 220% 0;
    }
    100% {
      background-position: -220% 0;
    }
  }

  /* Animasi banner, flash sale, dan news */
  .banner-slide-animate {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
    animation: bannerSlideReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0ms);
  }

  .banner-image-animate {
    transition: transform 0.8s ease, filter 0.8s ease;
  }

  .banner-slide-animate:hover .banner-image-animate {
    transform: scale(1.035);
    filter: brightness(1.08) saturate(1.08);
  }

  .flash-sale-card-animate {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    animation: flashSalePopIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0ms);
  }

  .flash-sale-card-animate::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: translateX(-130%);
    transition: transform 0.75s ease;
  }

  .flash-sale-card-animate:hover::before {
    transform: translateX(130%);
  }

  .news-card-animate {
    opacity: 0;
    transform: translateX(28px) scale(0.96);
    animation: newsCardReveal 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0ms);
  }

  .news-card-animate img {
    transition: transform 0.8s ease, filter 0.8s ease;
  }

  .news-card-animate:hover img {
    transform: scale(1.08);
    filter: brightness(1.08) saturate(1.08);
  }

  .ajax-loading-soft {
    position: relative;
    min-height: 120px;
  }

  .ajax-loading-soft::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 18px;
    background:
      linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent),
      rgba(255,255,255,0.025);
    background-size: 220% 100%;
    animation: gamesLoadingShimmer 1.1s linear infinite;
    pointer-events: none;
  }

  @keyframes bannerSlideReveal {
    0% {
      opacity: 0;
      transform: translateY(26px) scale(0.98);
      filter: blur(5px);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
  }

  @keyframes flashSalePopIn {
    0% {
      opacity: 0;
      transform: translateY(18px) scale(0.96);
      filter: blur(4px);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
  }

  @keyframes newsCardReveal {
    0% {
      opacity: 0;
      transform: translateX(28px) scale(0.96);
      filter: blur(4px);
    }
    100% {
      opacity: 1;
      transform: translateX(0) scale(1);
      filter: blur(0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .game-card-animate,
    .popular-card-animate,
    .banner-slide-animate,
    .flash-sale-card-animate,
    .news-card-animate {
      opacity: 1;
      transform: none;
      animation: none;
      filter: none;
    }

    .game-card-inner::after,
    .popular-card-inner::after,
    .flash-sale-card-animate::before,
    .games-loading::before,
    .ajax-loading-soft::before {
      display: none;
    }
  }

.tab.active,
.category-tab-button.active {
  position: relative;
  overflow: hidden !important;
  color: hsl(var(--primary-foreground)) !important;
  background: var(
    --button-gradient-theme,
    linear-gradient(to top, hsl(var(--primary)), hsl(var(--primary)))
  ) !important;
  border-color: hsl(var(--primary) / 0.55) !important;
  border-radius: 0.75rem !important;
  background-clip: padding-box !important;
  box-shadow:
    0 10px 24px hsl(var(--primary) / 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.tab.active::before,
.category-tab-button.active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  z-index: 0;
  pointer-events: none;
}

.tab.active .category-tab-icon,
.tab.active span,
.category-tab-button.active .category-tab-icon,
.category-tab-button.active span {
  position: relative;
  z-index: 1;
}

.tab.active .category-tab-icon,
.category-tab-button.active .category-tab-icon {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.tab.active span,
.category-tab-button.active span {
  color: hsl(var(--primary-foreground)) !important;
}

  .category-tab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 0.5rem;
    min-height: 42px;
    min-width: 122px;
    padding: 0.55rem 1rem;
    border: 1px solid hsl(var(--border) / 0.45);
    line-height: 1;
  }

  .category-tab-button span {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
  }

  .category-tab-icon {
    height: 22px;
    width: 22px;
    flex-shrink: 0;
    border-radius: 7px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease;
  }

  .tab.active .category-tab-icon,
  .tab:hover .category-tab-icon,
  .tab:focus .category-tab-icon {
    transform: scale(1.06);
  }

  @media (max-width: 640px) {
    #categories-container {
      gap: 0.55rem;
      padding-bottom: 0.2rem;
    }

    .category-tab-button {
      min-width: 128px;
      min-height: 44px;
      padding-left: 0.9rem;
      padding-right: 0.9rem;
      border-radius: 0.85rem;
      font-size: 0.82rem;
    }

    .category-tab-icon {
      height: 24px;
      width: 24px;
      border-radius: 8px;
    }
  }

   /* ─── Section: Kenapa Memilih Kami ─── */
  .why-choose-section {
    position: relative;
    overflow: hidden;
    background: hsl(var(--background));
  }

  .why-choose-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle at 10% 20%, hsl(var(--primary) / 0.05) 0%, transparent 50%),
      radial-gradient(circle at 90% 80%, hsl(var(--primary) / 0.04) 0%, transparent 50%);
    pointer-events: none;
  }

  .why-choose-section::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, hsl(var(--primary) / 0.03), transparent 70%);
    pointer-events: none;
  }

  .why-stat-card {
    position: relative;
    overflow: hidden;
    border: 1px solid hsl(var(--border) / 0.55);
    background:
      radial-gradient(circle at top right, var(--why-card-glow, hsl(var(--primary) / 0.10)), transparent 42%),
      linear-gradient(135deg, hsl(var(--card) / 0.88), hsl(var(--muted) / 0.35));
    transition:
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.4s ease,
      box-shadow 0.4s ease;
  }

  .why-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36%;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--why-card-glow, hsl(var(--primary) / 0.4));
    opacity: 0.5;
    transition: opacity 0.3s ease, width 0.3s ease;
  }

  .why-stat-card:hover::before {
    opacity: 1;
    width: 65%;
  }

  .why-stat-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: hsl(var(--primary) / 0.42);
    box-shadow:
      0 20px 42px hsl(var(--primary) / 0.12),
      0 0 0 1px hsl(var(--primary) / 0.08);
  }

  .why-feature-card {
    position: relative;
    overflow: hidden;
    border: 1px solid hsl(var(--border) / 0.55);
    background:
      radial-gradient(circle at top right, var(--why-card-glow, hsl(var(--primary) / 0.10)), transparent 42%),
      linear-gradient(135deg, hsl(var(--card) / 0.88), hsl(var(--muted) / 0.35));
    transition:
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.4s ease,
      box-shadow 0.4s ease,
      background 0.4s ease;
  }

  .why-feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, transparent, var(--why-icon-color, hsl(var(--primary))), transparent);
    opacity: 0.35;
    transition: opacity 0.3s ease, left 0.3s ease, right 0.3s ease;
  }

  .why-feature-card:hover::after {
    opacity: 1;
    left: 10%;
    right: 10%;
  }

  .why-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      120deg,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent
    );
    transform: translateX(-130%);
    transition: transform 0.85s ease;
    pointer-events: none;
  }

  .why-feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: hsl(var(--primary) / 0.42);
    box-shadow:
      0 24px 48px hsl(var(--primary) / 0.12),
      0 0 0 1px hsl(var(--primary) / 0.08);
    background:
      radial-gradient(circle at top right, var(--why-card-glow, hsl(var(--primary) / 0.18)), transparent 42%),
      linear-gradient(135deg, hsl(var(--card)), hsl(var(--muted) / 0.45));
  }

  .why-feature-card:hover::before {
    transform: translateX(130%);
  }

  .why-icon-box {
    background:
      linear-gradient(135deg, var(--why-icon-from, hsl(var(--primary) / 0.20)), var(--why-icon-to, hsl(var(--primary) / 0.06)));
    border: 1px solid var(--why-icon-border, hsl(var(--primary) / 0.20));
    color: var(--why-icon-color, hsl(var(--primary)));
    box-shadow:
      0 8px 24px var(--why-icon-shadow, hsl(var(--primary) / 0.10)),
      inset 0 1px 0 rgba(255,255,255,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .why-feature-card:hover .why-icon-box {
    transform: scale(1.1) rotate(-4deg);
    box-shadow:
      0 12px 32px var(--why-icon-shadow, hsl(var(--primary) / 0.18)),
      inset 0 1px 0 rgba(255,255,255,0.18);
  }

  .why-gradient-title {
    background: linear-gradient(90deg, #facc15, #fb923c, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
  }

  .why-gradient-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #facc15, #fb923c, #f97316);
    opacity: 0.35;
  }

  .why-card-animate {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
    animation: whyCardReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0ms);
  }

  @keyframes whyCardReveal {
    0% {
      opacity: 0;
      transform: translateY(22px) scale(0.97);
      filter: blur(4px);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .why-card-animate {
      opacity: 1;
      transform: none;
      animation: none;
      filter: none;
    }

    .why-feature-card::before,
    .why-feature-card::after {
      display: none;
    }
  }

  /* ─── Stat Cards Grid ─── */
  .why-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .why-stat-card {
    min-width: 0;
  }

  .why-stat-inner {
    min-height: 86px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  @media (max-width: 480px) {
    .why-stats-grid {
      gap: 0.65rem;
    }

    .why-stat-inner {
      min-height: 82px;
    }

    .why-stat-number {
      font-size: 0.82rem;
      line-height: 1.1;
      white-space: nowrap;
    }

    .why-stat-label {
      margin-top: 0.45rem;
      font-size: 0.58rem;
      line-height: 1.15;
      text-align: center;
      min-height: 1.35rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  @media (min-width: 640px) {
    .why-stats-grid {
      gap: 1.75rem;
    }

    .why-stat-inner {
      min-height: 120px;
    }

    .why-stat-number {
      font-size: 1.25rem;
      line-height: 1.25;
    }

    .why-stat-label {
      margin-top: 0.75rem;
      font-size: 0.75rem;
      line-height: 1.25;
    }
  }

  @media (min-width: 768px) {
    .why-stats-grid {
      gap: 2.5rem;
    }

    .why-stat-number {
      font-size: 1.5rem;
    }

    .why-stat-label {
      font-size: 0.875rem;
    }
  }

  @media (min-width: 1024px) {
    .why-stats-grid {
      gap: 3rem;
    }
  }

  /* ─── Feature Cards Alignment ─── */
  .why-feature-card {
    text-align: center;
  }

  .why-feature-card .why-feature-header {
    justify-content: center;
  }

  .why-feature-card h3,
  .why-feature-card p {
    text-align: center;
  }

  @media (max-width: 640px) {
    .why-feature-card {
      padding-left: 1.35rem;
      padding-right: 1.35rem;
    }

    .why-feature-card p {
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
      line-height: 1.7;
      word-break: normal;
      overflow-wrap: anywhere;
    }
  }

  @media (max-width: 640px) {
    .why-feature-card {
      padding-top: 2rem !important;
    }

    .why-feature-card .why-feature-header {
      margin-top: 0.25rem;
      margin-bottom: 1.35rem;
    }

    .why-feature-card .why-icon-box {
      margin-top: 0.15rem;
    }
  }
