/* Shared category pages (slot, casino, sportbook, etc.) */
.page-category {
  background: #5ebef0;
}
.page-category .page-bg {
  background: url('https://cdn.edge-files.cloud/dfc283/assets/bg.jpg') center top / cover no-repeat fixed;
}
.page-category .page {
  padding-bottom: 40px;
}

.category-panel {
  background: rgba(180, 230, 255, .55);
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 22px;
  padding: 16px 14px 18px;
  box-shadow: 0 10px 28px rgba(6,58,115,.18);
  margin-top: 10px;
}

.category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.category-head h1 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(15px, 1.8vw, 18px);
  color: #fff;
  letter-spacing: .4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #0d6bb8, #085291);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 3px 0 #05457c;
}
.category-head h1 i { color: #ffd24a; }
.category-head h1 .fa-dice { color: #ff6fa8; }
.category-head h1 .fa-heart { color: #ff4d6d; }
.category-head h1 .fa-futbol { color: #a78bfa; }
.category-head h1 .fa-fish { color: #38bdf8; }
.category-head h1 .fa-gamepad { color: #c084fc; }
.category-head h1 .fa-diamond { color: #60a5fa; }
.category-head h1 .fa-puzzle-piece { color: #34d399; }
.category-head h1 .fa-fire { color: #fb923c; }

.category-back {
  flex: 0 0 auto;
  background: #fff;
  color: #0b5eab;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(11, 94, 171, .35);
  box-shadow: 0 2px 6px rgba(6,58,115,.12);
}
.category-back:hover {
  color: #063A73;
  filter: brightness(1.03);
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.provider-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #063A73;
  border-radius: 16px;
  padding: 0;
  background: transparent;
  border: 2px solid transparent;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.provider-card:hover,
.provider-card.is-active {
  transform: translateY(-3px);
}
.provider-card:hover .provider-art,
.provider-card.is-active .provider-art {
  border-color: #ffb400;
  box-shadow:
    0 0 0 2px rgba(255,180,0,.45),
    0 10px 22px rgba(6,58,115,.28);
}

.provider-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #0b5eab;
  border: 2px solid rgba(255,255,255,.75);
  box-shadow: 0 6px 14px rgba(6,58,115,.22);
}
.provider-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.provider-logo-pill {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58%;
  max-width: 84%;
  height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 4px 12px rgba(6,58,115,.25);
}
.provider-logo-pill img {
  display: block;
  max-height: 20px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.provider-card h2 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(11px, 1.15vw, 14px);
  font-weight: 700;
  letter-spacing: .3px;
  text-align: center;
  color: #063A73;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}

@media (max-width: 1100px) {
  .provider-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  .provider-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .category-panel {
    margin-top: 6px;
    padding: 10px 8px 12px;
    border-radius: 16px;
  }
  .category-head {
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 8px;
    align-items: center;
  }
  .category-head h1 {
    font-size: 11px;
    padding: 6px 10px;
    gap: 5px;
  }
  .category-head h1 i { font-size: 11px; }
  .category-back {
    font-size: 10px;
    padding: 5px 8px;
    white-space: nowrap;
  }
  .provider-card {
    gap: 4px;
  }
  .provider-art {
    border-radius: 10px;
    border-width: 1.5px;
    aspect-ratio: 1 / 0.88;
  }
  .provider-logo-pill {
    height: 18px;
    padding: 1px 6px;
    bottom: 5px;
  }
  .provider-logo-pill img { max-height: 12px; }
  .provider-card h2 {
    font-size: 9px;
    letter-spacing: 0;
  }
}
@media (max-width: 480px) {
  .provider-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .category-panel { padding: 8px 6px 10px; border-radius: 14px; }
  .category-head h1 { font-size: 10px; padding: 5px 8px; }
  .category-back { font-size: 9px; padding: 4px 6px; }
  .provider-card h2 { font-size: 9px; }
}

/* INTEGRASI V2G: pill berisi nama provider, di bawah art (posisi h2) */
.provider-card > .provider-logo-pill {
  position: static;
  transform: none;
  margin: 8px auto 0;
  height: auto;
  min-height: 28px;
  font-weight: 800;
  font-size: 11px;
  color: #1a2a4a;
  white-space: nowrap;
}
/* INTEGRASI V2G: gambar provider utuh (tidak ke-crop) */
.provider-cover { object-fit: contain; }
