/* ── Premium Category Pills (Slots / Live / Sports / VIP) ── */

.cat-pills {
  display: flex;
  gap: 10px;
  padding: 14px 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-pills::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  color: rgba(226, 232, 240, 0.88);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.cat-pill-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-pill-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cat-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.cat-pill.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(56, 189, 248, 0.35);
  color: #fff;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.12);
}

.cat-pill--gold {
  border-color: rgba(234, 179, 8, 0.45);
  background: rgba(15, 23, 42, 0.6);
  color: #fbbf24;
}

.cat-pill--gold:hover,
.cat-pill--gold.active {
  border-color: rgba(250, 204, 21, 0.65);
  box-shadow: 0 0 22px rgba(234, 179, 8, 0.2);
  color: #fde047;
}

/* ── Premium Category Cards Row ── */

.cat-cards-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  padding: 14px 0 10px;
}

.cat-cards-scroll::-webkit-scrollbar { display: none; }

.cat-cards-scroll::after {
  content: "";
  position: sticky;
  right: 0;
  top: 0;
  float: right;
  width: 28px;
  height: 1px;
  pointer-events: none;
}

.cat-cards {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  padding: 0 16px 2px;
  width: max-content;
}

.cat-card {
  --cat-glow: #38bdf8;
  position: relative;
  flex: 0 0 calc((100vw - 32px - 24px) / 4.12);
  width: calc((100vw - 32px - 24px) / 4.12);
  min-width: 78px;
  max-width: 92px;
  aspect-ratio: 1;
  scroll-snap-align: start;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  -webkit-tap-highlight-color: transparent;
  background: #080b12;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -8px 20px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.cat-card-orb {
  position: absolute;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  height: 72%;
  border-radius: 50%;
  background: var(--cat-glow);
  opacity: 0.42;
  filter: blur(22px);
  pointer-events: none;
  z-index: 0;
}

.cat-card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 38%,
    transparent 62%,
    rgba(0, 0, 0, 0.25) 100%
  );
  pointer-events: none;
  z-index: 3;
}

.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.04) 40%,
    color-mix(in srgb, var(--cat-glow) 35%, transparent) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
}

.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 52%,
    rgba(0, 0, 0, 0.55) 78%,
    rgba(0, 0, 0, 0.82) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.cat-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: color-mix(in srgb, var(--cat-glow) 35%, transparent);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.6),
    0 0 28px color-mix(in srgb, var(--cat-glow) 28%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.cat-card:active {
  transform: scale(0.97);
}

.cat-card.active {
  border-color: color-mix(in srgb, var(--cat-glow) 55%, transparent);
  transform: translateY(-3px);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.55),
    0 0 0 1.5px color-mix(in srgb, var(--cat-glow) 50%, transparent),
    0 0 32px color-mix(in srgb, var(--cat-glow) 35%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.cat-card.active .cat-card-orb {
  opacity: 0.58;
  filter: blur(26px);
}

.cat-card--hot {
  background:
    radial-gradient(ellipse 95% 75% at 50% 8%, #dc2626 0%, #7f1d1d 38%, #1a0505 68%, #060608 100%);
}

.cat-card--slot {
  background:
    radial-gradient(ellipse 95% 75% at 50% 8%, #d97706 0%, #92400e 38%, #2a1204 68%, #060608 100%);
}

.cat-card--live {
  background:
    radial-gradient(ellipse 95% 75% at 50% 8%, #16a34a 0%, #14532d 38%, #052e16 68%, #060608 100%);
}

.cat-card--sport {
  background:
    radial-gradient(ellipse 95% 75% at 50% 8%, #9333ea 0%, #6b21a8 38%, #3b0764 68%, #060608 100%);
}

.cat-card--fish {
  background:
    radial-gradient(ellipse 95% 75% at 50% 8%, #0284c7 0%, #0369a1 38%, #0c4a6e 68%, #060608 100%);
}

.cat-card--poker {
  background:
    radial-gradient(ellipse 95% 75% at 50% 8%, #ec4899 0%, #db2777 38%, #831843 68%, #060608 100%);
}

.cat-card-icon {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 76%;
  height: 62%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  filter:
    drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.cat-card:hover .cat-card-icon,
.cat-card.active .cat-card-icon {
  transform: translateX(-50%) scale(1.08) translateY(-2px);
}

.cat-card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cat-card-label {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 0 4px 11px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  letter-spacing: 0.03em;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 400px) {
  .cat-cards-scroll { scroll-padding-inline: 18px; }

  .cat-cards {
    gap: 9px;
    padding: 0 18px 2px;
  }

  .cat-card {
    flex-basis: calc((100vw - 36px - 27px) / 4.12);
    width: calc((100vw - 36px - 27px) / 4.12);
    max-width: 96px;
    border-radius: 20px;
  }

  .cat-card-label {
    font-size: 13px;
    padding-bottom: 12px;
  }
}

@media (min-width: 520px) {
  .cat-card {
    flex-basis: 92px;
    width: 92px;
  }
}
