* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PLAY", sans-serif;
  background: #d9d9d9;
  overflow-x: hidden;
}

@media (min-width: 1028px) {
  main {
    margin: 20px 100px;
  }
}

/*Style header mode dekstop*/
.header {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  height: 70px;
  align-items: center;
  justify-content: space-between;
  background-color: #222;
  padding: 10px;
  border-block-end: 1px solid #f1c40f;
}
.grup-container {
  display: flex;
  margin-left: 120px;
  padding: 10 20px;
}
.logo-container img {
  width: 200px;
  align-items: center;
}
.nav-container {
  display: flex;
  align-items: center;
  margin-left: 20px;
  align-items: center;
}
.nav-links {
  display: flex;
  list-style: none;
}
.nav-links li {
  padding: 5px;
  font-size: 10px;
}
.nav-links a {
  color: #d9d9d9;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-links a:hover {
  color: white;
}
.language-selector {
  display: flex;
  align-items: center;
  color: white;
}
.language-selector span {
  font-size: 15px;
}
.flag-icon {
  width: 30px;
  height: 30px;
  margin-right: 5px;
  border-radius: 100px;
}

.periode {
  font-size: 14px;
  color: #333;
}

.periode .icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
}

.boxsaldo-dekstop {
  display: flex;
  align-items: center;
  color: white;
  margin-right: 100px;
  gap: 10px;
}
.boxsaldo-dekstop svg {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  padding: 2px;
}
.svg-outer {
  fill: white;
}
.saldouser-box {
  display: flex;
  flex-direction: column;
}
.transaksiprofil-box svg {
  width: 30px;
  height: 30px;
  margin-left: 10px;
  background-color: black;
}
.saldodekstop-box {
  color: green;
  font-weight: bold;
}
.logout-dekstop {
  display: none;
  flex-direction: column;
  background-color: white;
  position: absolute;
  border-radius: 5px;
}
.logout-dekstop a {
  border-bottom: 1px solid #ccc;
  padding: 10px;
  color: black;
  font-size: 14px;
  text-decoration: none;
  border-radius: 5px;
}
.logout-dekstop a:hover {
  background: #f1c40f;
  border-radius: 5px;
}

.banner-container img {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
}

.info-dekstop {
  display: flex;
  justify-content: space-between;
  background: white;
  margin: 15px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  align-items: center;
  padding: 15px;
}
.info-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
}
.info-wrapper svg {
  width: 70px;
  height: 70px;
  border-radius: 50%;
}
.svg-primary {
  fill: #f1c40f;
}
.profil-container {
  display: flex;
  flex-direction: column;
}
.username-profil {
  font-weight: bold;
  font-size: 16px;
}
.edit-profil {
  font-size: 12px;
  color: #f1c40f;
  margin-top: 10px;
  text-decoration: none;
}
.saldo-bonus {
  display: flex;
  gap: 20px;
  align-items: center;
}
.saldo-bonus a {
  text-decoration: none;
  background: #f1c40f;
  padding: 15px;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  text-shadow: 1px 1px 0px rgba(0, 0, 1);
}
.bonus-amount {
  display: flex;
  flex-direction: column;
  border-right: 1px solid black;
  padding-right: 10px;
}
.bonus-amount span {
  font-size: 14px;
  font-weight: bold;
}
.ttl-bonus {
  text-align: right;
}
.table-container {
  background: white;
  padding: 15px;
  margin: 15px;
  border-radius: 8px;
  overflow-x: auto;
}

.riwayat-dekstop {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-weight: bold;
  background-color: white;
}

.riwayat-dekstop thead {
  background-color: #eaeaea;
  font-size: 12px;
}

.riwayat-dekstop th,
.riwayat-dekstop td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #ddd;
}

.riwayat-dekstop th {
  font-weight: bold;
  color: #222;
}

.riwayat-dekstop td {
  color: #333;
}

.carousel-wrapper {
  position: relative;
  background: #ddd; /* Background abu-abu */
  padding: 20px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.provider-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.provider-container::-webkit-scrollbar {
  display: none;
}

.provider-container figure {
  flex: 0 0 auto;
  background: white;
  padding: 10px;
  border-radius: 10px;
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.provider-container img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  display: block;
  padding: 0;
  margin: 0;
}

button.prev,
button.next {
  color: black;
  border: none;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  background: none;
}

button.prev {
  margin-right: 10px;
}

button.next {
  margin-left: 10px;
}

.floating-whatsapp {
  position: fixed;
  bottom: 50px;
  left: -4px;
  background-color: #333; /* Warna background tombol */
  border-radius: 0px 10px 10px 0px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: width 0.3s;
  width: 20px; /* default width saat tertutup */
  height: 100px;
  z-index: 1000;
  border-top: 5px solid #f1c40f;
  border-bottom: 5px solid #f1c40f;
  border-right: 5px solid #f1c40f;
}

.floating-whatsapp.open {
  width: 80px;
}

.inner-content {
  display: block;
  align-items: center;
  padding: 10px;
  transition: opacity 0.3s;
  text-align: center;
}

.inner-content img.logo-top {
  width: 40px;
}

.inner-content img.whatsapp-icon {
  width: 40px;
}

.toggle-btn {
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  background: #f1c40f;
  width: 30px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: white;
  padding-right: 10px;
}

.toggle-btn span {
  transform: rotate(0deg);
  display: inline-block;
  transition: transform 0.3s;
}

/* Saat floating whatsapp dibuka */
.floating-whatsapp.open .toggle-btn span {
  transform: rotate(180deg);
}
@media (min-width: 1028px) {
  #menu,
  #menu ul {
    display: none;
    pointer-events: none;
  }
}

.navigasi-menu,
.tombol-container,
small,
.info-container,
.dashboard-button,
.game-container,
.riwayat-container,
.game-populer,
.promo-populer {
  display: none;
}
.fa-bars {
  display: none;
}

/*style mode dekstop end*/
/*Style tampilan hp*/
@media (max-width: 1028px) {
  /*display off untuk mode hp*/
  .auth-buttons,
  .nav-container,
  .language-selector,
  .info-dekstop,
  .table-container,
  .carousel-wrapper,
  .boxsaldo-dekstop {
    display: none;
  }

  .header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    border: none;
  }
  .fa-bars {
    display: block;
    color: white;
    font-size: 20px;
  }
  /*menu didalam hamburger menu responsif hp*/
  #menu {
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    right: 0;
    background: #222;
    color: white;
    width: 80%;
    height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 1000;
  }
  /* Saat menu tampil */
  #menu.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
  #menu ul {
    display: flex;
    flex-direction: column;
  }
  #menu li {
    list-style: none;
    margin-top: 30px;
    padding: 10px 20px;
  }
  #menu a {
    text-decoration: none;
    color: white;
  }
  #menu small {
    margin-top: 30px;
    font-size: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    color: #ccccccad;
  }
  .tombol-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
  }

  .profil-name-saldo-reload {
    display: flex;
    gap: 5px;
    align-items: center;
  }

  .profil-name-saldo-reload svg {
    align-items: center;
    display: flex;
    width: 30px;
    height: 30px;
  }
  .svg-outer {
    fill: white;
  }

  .profil-name-saldo-reload span {
    font-size: 14px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
  }
  .saldodimenu {
    color: rgb(32, 172, 32);
  }

  /*header responsif hp*/
  .grup-container {
    display: block;
    margin: 0 auto;
    width: 100%;
  }
  .logo-container {
    display: block;
    margin: 0 auto;
    width: 100%;
  }
  .logo-container img {
    max-width: 200px;
  }

  /*navigasi game dalam hamburger menu responsif hp*/
  .navigasi-menu {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    background-color: #333;
    scrollbar-width: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  }
  .navigasi-menu::-webkit-scrollbar {
    display: none;
  }

  .navigasi-menu figure {
    flex: 0 0 20%;
    scroll-snap-align: start;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .navigasi-menu a {
    text-decoration: none;
  }
  .navigasi-menu figure:hover {
    background: #333;
  }
  .navigasi-menu svg {
    width: 25px;
    fill: white;
  }
  .navigasi-menu figcaption {
    font-size: 10px;
    margin-top: 10px;
    font-weight: bold;
    color: white;
    text-align: center;
  }

  .game-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background-color: #f1c40f;
    height: 70px;
  }
  .game-container figure {
    padding: 10px;
    align-items: center;
    display: flex;
    width: 20%;
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .game-container a {
    text-decoration: none;
  }
  .game-container figure:hover {
    background: #333;
  }
  .game-container svg {
    display: block;
    margin: 0 auto;
    width: 25px;
    fill: white;
  }
  .game-container figcaption {
    font-size: 10px;
    margin-top: 10px;
    text-shadow: 1px 1px 0px rgba(0, 0, 1);
    font-weight: bold;
    color: white;
    text-align: center;
  }

  .dashboard-button {
    display: flex;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    margin-top: 20px;
    justify-content: center;
  }
  .dashboard-button a {
    display: inline-block;
    width: 50%;
    text-align: center;
    margin: 0 5px;
    padding: 15px;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 15px;
    text-decoration: none;
  }
  .deposit-btn {
    background-color: rgb(31, 176, 31);
  }
  .withdraw-btn {
    background: #333;
  }
  .info-container {
    display: block;
    margin-top: 20px;
  }
  .user-wrapper {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    margin: 0 15px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background: #333;
  }
  .box-user {
    display: flex;
    flex-direction: column;
    padding: 15px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
  }
  .user-name {
    color: white;
    font-size: 14px;
  }
  .user-saldo {
    color: rgb(32, 172, 32);
    font-size: 12px;
  }
  .box-saldo {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    align-items: center;
  }

  .promo-text {
    display: flex;
    flex-direction: column;
  }

  .promo-box {
    color: white;
    font-size: 14px;
  }

  .tombol-claim {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-left: 10px;
  }

  .claim-button {
    display: block;
    padding: 8px 16px;
    width: 100%;
    max-width: 210px; /* Kamu bisa ubah sesuai kebutuhan */
    text-align: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    background-color: #f1c40f;
    border-radius: 5px;
    font-size: 12px;
  }

  .menu-wrapper {
    background: #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
  }

  .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    color: #000;
  }

  .menu-item svg {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
  }
  .svg-primary {
    fill: #f1c40f;
  }

  .game-populer {
    display: block;
    width: 100%;
    margin: 0 auto;
    margin-top: 10px;
  }
  .tag-logo {
    display: flex;
    align-items: center;
    font-weight: bold;
  }
  .tag-logo svg {
    margin-left: 10px;
    width: 20px;
    fill: #f1c40f;
    text-shadow: 1px 1px 0px rgba(0, 0, 1);
  }
  .tag-logo span {
    font-size: 15px;
  }
  .figure-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
  }

  .figure-container figure {
    flex: 1 1 calc(33.333% - 10.666px);
    margin: 0;
  }

  .figure-container img {
    width: 100%;
    height: auto;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    display: block;
  }

  .figure-container figcaption {
    color: white;
    text-align: center;
    background: #222;
    padding: 5px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    font-size: 12px;
    height: 30px;
    align-items: center;
  }
  .figure-container a {
    text-decoration: none;
  }
  .figure-container figure:hover {
    transform: scale(1.05);
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
  }

  .riwayat-container {
    display: block;
    margin-top: 20px;
  }
  .riwayat-wrapper {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    margin: 0 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: white;
  }
  .riwayat-head {
    padding: 15px;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
  }
  .status {
    font-size: 14px;
    color: rgb(32, 172, 32);
    font-weight: bold;
  }

  .riwayat-detail {
    display: flex;
    justify-content: space-between;
    padding: 15px;
  }
  .details {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .pengirim {
    font-size: 12px;
  }
  .penerima {
    font-size: 12px;
  }
  .nominal {
    font-size: 14px;
    font-weight: bold;
  }

  .promo-populer {
    display: block;
    width: 100%;
    margin: 0 auto;
    margin-top: 10px;
  }
  .tag-promo {
    display: flex;
    align-items: center;
    font-weight: bold;
  }
  .tag-promo svg {
    margin-left: 10px;
    width: 20px;
    margin: 0 15px;
    fill: #f1c40f;
    text-shadow: 1px 1px 0px rgba(0, 0, 1);
  }
  .tag-promo span {
    font-size: 15px;
  }
  .figure-container2 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 20px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    scroll-snap-type: x mandatory; /* <- optional, biar nge-snap pas slide */
  }
  .figure-container2::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .figure-container2 figure {
    flex: 0 0 90%;
    min-width: 80%;
    margin: 0;
    scroll-snap-align: center;
    background: white;
  }

  .figure-container2 img {
    width: 100%;
    height: 150px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    display: block;
  }

  .figure-container2 figcaption {
    font-size: 14px;
    margin-bottom: 10px;
    color: #111;
    font-weight: bold;
    padding: 10px;
  }
  .figure-container2 a {
    text-decoration: none;
  }
  .figure-container2 figure:hover {
    transform: scale(1.05);
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
  }
}

.footer-container {
  background-color: #000;
  color: #fff;
  padding: 30px 20px;
  font-family: Arial, sans-serif;
  margin-top: 30px;
}

.footer-container h4 {
  color: #f1c40f;
  font-size: 16px;
  margin-bottom: 10px;
}

.nav-footer,
.payment-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 10px;
}

.nav-footer span,
.payment-footer figure span {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.payment-footer figure {
  display: flex;
  align-items: center;
}

.info-footer {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 25px;
}

.powered-by img {
  max-height: 40px;
  margin-top: 10px;
}

.trusted-logos img,
.responsibility-logos img {
  height: 35px;
  margin: 5px;
  object-fit: contain;
}

.trusted-logos,
.responsibility-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.contact-us .contact-icons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-us .contact-icons div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ccc;
  font-size: 14px;
}

.contact-us img {
  width: 20px;
  height: 20px;
}

@media (min-width: 768px) {
  .info-footer {
    flex-direction: row;
    justify-content: space-between;
  }

  .nav-footer,
  .payment-footer {
    justify-content: start;
    gap: 30px;
  }
}
