
/* Provider navigation polish — desktop and mobile */
.mobileprovider,
.bg-custom .container {
  position: relative;
}

.mobileprov,
.desktopprov {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 12px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 8px 10px 14px !important;
  margin: 0 !important;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 187, 75, .55) transparent;
}

.mobileprov::-webkit-scrollbar,
.desktopprov::-webkit-scrollbar {
  height: 5px;
}

.mobileprov::-webkit-scrollbar-track,
.desktopprov::-webkit-scrollbar-track {
  background: transparent;
}

.mobileprov::-webkit-scrollbar-thumb,
.desktopprov::-webkit-scrollbar-thumb {
  background: rgba(233, 187, 75, .55);
  border-radius: 999px;
}

.menuprovider {
  flex: 0 0 112px !important;
  min-width: 112px !important;
  scroll-snap-align: start;
  list-style: none !important;
}

.menuprovider > a {
  position: relative;
  display: flex !important;
  min-height: 104px;
  height: 100%;
  padding: 11px 8px 9px !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  overflow: hidden;
  border: 1px solid rgba(232, 184, 73, .24);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(233, 185, 70, .12), transparent 54%),
    linear-gradient(180deg, rgba(47, 28, 25, .96), rgba(25, 16, 16, .98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 7px 18px rgba(0,0,0,.18);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.menuprovider > a:hover,
.menuprovider > a:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(242, 196, 79, .85);
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 196, 75, .22), transparent 58%),
    linear-gradient(180deg, rgba(57, 34, 27, .98), rgba(28, 17, 16, .99));
  box-shadow:
    0 0 0 1px rgba(231, 180, 62, .18),
    0 10px 25px rgba(0,0,0,.3),
    0 0 20px rgba(228, 172, 46, .12);
}

.menuprovider > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  opacity: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #f1c75a, transparent);
  transition: opacity .2s ease;
}

.menuprovider > a:hover::after,
.menuprovider > a:focus-visible::after {
  opacity: 1;
}

.styleimgprovider {
  display: block !important;
  width: 82px !important;
  height: 58px !important;
  max-width: 100% !important;
  margin: 0 auto 8px !important;
  padding: 6px !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 10px;
  background: rgba(7, 7, 9, .62);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.035),
    0 5px 13px rgba(0,0,0,.24);
}

.menuprovider small {
  display: -webkit-box !important;
  min-height: 28px;
  max-width: 100%;
  overflow: hidden;
  color: #eee !important;
  font-size: 11px !important;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Preserve the selected provider highlight used by the existing page. */
.menuprovider.active > a,
.menuprovider > a.active,
.menuprovider[aria-current="page"] > a {
  border-color: #efc553 !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 195, 70, .27), transparent 58%),
    linear-gradient(180deg, rgba(64, 40, 27, .98), rgba(31, 19, 16, .99)) !important;
  box-shadow:
    0 0 0 1px rgba(240, 192, 65, .25),
    0 0 22px rgba(235, 181, 56, .2) !important;
}

@media (max-width: 767.98px) {
  .mobileprovider {
    width: 100%;
    overflow: hidden;
  }

  .mobileprov {
    gap: 9px !important;
    padding: 8px 12px 13px !important;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .mobileprov::-webkit-scrollbar {
    display: none;
  }

  .mobileprov::after {
    content: "";
    flex: 0 0 4px;
  }

  .menuprovider {
    flex-basis: 96px !important;
    min-width: 96px !important;
  }

  .menuprovider > a {
    min-height: 94px;
    padding: 9px 7px 8px !important;
    border-radius: 12px;
  }

  .styleimgprovider {
    width: 72px !important;
    height: 50px !important;
    margin-bottom: 7px !important;
    padding: 5px !important;
  }

  .menuprovider small {
    min-height: 25px;
    font-size: 10px !important;
  }
}

@media (min-width: 768px) {
  .desktopprov {
    justify-content: flex-start !important;
  }
}


/* Provider UI v2: root page spacing and reliable mobile swipe */
.mobileprovider {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  touch-action: pan-x !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-x: contain !important;
  cursor: grab;
}

.mobileprovider.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.mobileprovider .mobileprov {
  display: inline-flex !important;
  width: max-content !important;
  min-width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
  touch-action: pan-x !important;
}

.desktopprov.provider-all,
.mobileprovider.provider-all .mobileprov {
  padding-bottom: 18px !important;
}

.desktopprov.provider-all .menuprovider > a {
  min-height: 110px;
}

.desktopprov.provider-all .menuprovider small {
  min-height: 30px;
}

.desktopprov.provider-selected {
  margin-bottom: 8px !important;
}

.menuprovider.active > a {
  transform: translateY(-2px);
}

@media (max-width: 767.98px) {
  .mobileprovider {
    padding: 0 !important;
    margin: 0 !important;
  }

  .mobileprovider .mobileprov {
    padding-left: 12px !important;
    padding-right: 18px !important;
  }

  .mobileprovider .menuprovider {
    flex: 0 0 104px !important;
    min-width: 104px !important;
  }

  .mobileprovider .menuprovider > a {
    min-height: 100px !important;
  }

  .mobileprovider .styleimgprovider {
    width: 78px !important;
    height: 54px !important;
  }

  .mobileprovider::after {
    content: "Geser";
    position: sticky;
    right: 8px;
    bottom: 2px;
    float: right;
    margin-top: -22px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,.55);
    color: rgba(255,255,255,.75);
    font-size: 9px;
    pointer-events: none;
    z-index: 3;
  }
}


/* More breathing room between provider navigation and game cards */
.desktopprov,
.mobileprovider {
  margin-bottom: 30px !important;
}

.provider-page-title {
  padding: 4px 0 22px !important;
}

.provider-page-title h2 {
  margin: 0 !important;
}

@media (max-width: 767.98px) {
  .mobileprovider {
    margin-bottom: 20px !important;
  }

  .provider-page-title {
    padding-bottom: 16px !important;
  }
}
