/* ===== UTAMA ===== */
body {
  background: linear-gradient(#067dec, #74dfff, #067dec);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* agar tidak ikut scroll di desktop */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  min-height: 100vh;
  margin: 0;
  padding: 50px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
}

/* Versi Desktop Lebar (layar besar) */
@media screen and (min-width: 1200px) {
  body {
    background-size: cover;
    background-position: center;
    padding: 60px 80px;
  }
}

/* ===== MAIN CONTAINER RESPONSIF ===== */
@media (min-width: 992px) {
  main.container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ===== RESPONSIF MOBILE ===== */
@media (max-width: 991.98px) {
  .provider-list {
    display: flex;
    overflow-x: auto;
  }
}

.nav-btn {
  display: none;
}

.scroll-wrapper {
  overflow: visible;
}

/* ===== Logo ===== */
.logo-rtp {
  width: 140px;
  height: auto;
  transition: all 0.3s ease;
}

/* Responsif terbaik saat ini */
@media (min-width: 577px) and (max-width: 768px) {
  .logo-rtp {
    width: 200px;
    margin-bottom: -15px;
    margin-top: -50px;
  }
}

@media (max-width: 576px) {
  .logo-rtp {
    width: 200px;
    margin-bottom: -15px;
    margin-top: -50px;
  }
}

@media (min-width: 769px) {
  .logo-rtp {
    width: 450px;
    margin-bottom: -20px;
    margin-top: -50px;
  }
}
/* ===== End Logo ===== */

/* ===== MARQUEE BULHORN ===== */
.custom-marquee {
  background: linear-gradient(#067dec, #74dfff, #067dec);
  color: #fffbe6;
  font-weight: bold;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  border-radius: 5px;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: slide-marquee 15s linear infinite;
}

.marquee-content span {
  display: inline-block;
  padding-right: 100%;
  text-shadow: 0 0 5px #000000, 0 0 10px #474342; /* glow oranye */
}

@keyframes slide-marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}
/* ===== MARQUEE BULHORN ===== */

/* ===== Flipper Banner ===== */
.flip-card {
  width: 360px;
  height: 260px;
  perspective: 1200px;
  margin: 1rem auto;
  cursor: pointer;
  margin-top: -50px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  border-radius: 12px;
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-card-front {
  background: none;
  color: white;
}

.flip-card-back {
  background: none;
  color: white;
  transform: rotateY(180deg);
}

.flip-card-front img,
.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.95;
  border-radius: inherit;
  transition: opacity 0.4s ease;
}

/* ✅ Responsif Mobile */
@media (max-width: 576px) {
  .flip-card {
    width: 95%;
    height: 230px;
    margin-top: -35px;
    margin-bottom: 30px;
  }

  .flip-card-inner {
    border-radius: 8px;
  }

  .flip-card-front,
  .flip-card-back {
    border-radius: 8px;
  }

  .flip-card-front img,
  .flip-card-back img {
    border-radius: 8px;
  }
}

/* ✅ Responsif Tablet */
@media (min-width: 577px) and (max-width: 991px) {
  .flip-card {
    width: 520px;
    height: 340px;
  }
}

/* ✅ Desktop Only */
@media (min-width: 992px) {
  .main-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: #1c1c1c;
  }

  .flip-card {
    width: 620px;
    height: 400px;
    margin-bottom: 10px;
  }

  .flip-card-front,
  .flip-card-back {
    border-radius: 14px;
  }
}
/* ===== End Flipper Banner===== */

/* ===== LOGIN & SIGNUP ===== */
.login-daftar-wrapper {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 8px 0;
  display: flex;
  flex-direction: column; /* vertikal untuk semua ukuran */
  gap: 6px;
  box-sizing: border-box;
  margin-top: -70px;
}

/* Gaya tombol modern */
.btn-modern {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  letter-spacing: 1px;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
  background: linear-gradient(#067dec, #74dfff, #067dec);
  color: white;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  border: 2.5px solid #ffffff;
}

/* Hover efek */
.btn-login:hover,
.btn-daftar:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(241, 241, 241, 0.5);
}

.btn-modern i {
  font-size: 1.2rem;
}
/* ===== End LOGIN & SIGNUP ===== */

/* ===== SLOT PROVIDER List WRAPPER ===== */
.slot-provider-horizontal {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  border-radius: 5px;
  margin-bottom: -20px;
  background: linear-gradient(#067dec, #74dfff, #067dec);
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  border: 2.5px solid #ffffff;
}

.scroll-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.provider-list {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 16px;
  padding: 16px 24px;
}

.provider-list::-webkit-scrollbar {
  display: none;
}

.provider-item {
  flex: 0 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  background: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);

  /* Tambahan untuk center */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px; /* Atur tinggi item agar cukup untuk centering */
}

.provider-item:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); /* shadow oranye saat hover */
}

.provider-item img {
  height: 72px;
  width: auto;
  display: block;
  border-radius: 10px;
  padding: 8px;
  background-color: transparent;
  object-fit: contain;
}

@media (min-width: 992px) {
  .slot-provider-horizontal {
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
    border-radius: 10px;
    margin-bottom: -20px;
    background: linear-gradient(#067dec, #74dfff, #067dec);
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
  }

  .scroll-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .provider-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    list-style: none;
    margin: 0;
  }

  .provider-list::-webkit-scrollbar {
    display: none;
  }

  .provider-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
  }

  .provider-item:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4); /* shadow oranye saat hover */
  }

  .provider-item img {
    height: 92px; /* Diperbesar khusus desktop */
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    background-color: transparent;
    margin-bottom: 6px;
  }

  .provider-item p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
  }
}
/* ===== End SLOT PROVIDER List WRAPPER ===== */

/* ===== INFO RTP  ===== */
.rtp-info-box {
  background: linear-gradient(#067dec, #74dfff, #067dec);
  animation: fadeIn 0.6s ease-in-out;
  margin-bottom: -30px;
  border: 2.5px solid #ffffff;
}

.provider-logo {
  width: 36px;
  height: auto;
  border-radius: 4px;
}

.provider-name {
  font-size: 15px;
  font-weight: 600;
  color: #f1f1f1;
}

.rating-box i {
  font-size: 16px;
}

@media (max-width: 576px) {
  .provider-logo {
    width: 28px;
  }

  .provider-name {
    font-size: 13px;
  }

  .rtp-info-box h6 {
    font-size: 13px;
  }

  .rating-box i {
    font-size: 14px;
  }
}

/* Animasi ringan saat muncul */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* End Info RTP */

/* ===== MOBILE RESPONSIVE RTP ===== */
@media (max-width: 768px) {
  .rtp-card {
    font-size: 0.6rem !important;
  }

  .rtp-card .card-img-top {
    height: 100px !important;
  }

  .rtp-card table {
    font-size: 0.6rem !important;
  }

  .rtp-card .progress-bar {
    font-size: 0.6rem !important;
  }

  .icon-providers img {
    height: 18px !important;
  }

  .rtp-card h6 {
    font-size: 0.7rem !important;
  }

  .col {
    max-width: 100% !important;
  }

  .btn-danger {
    font-size: 0.6rem !important;
    padding: 4px 8px !important;
  }

  .row-cols-3 > * {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
/* ===== Search Bar ===== */
/* None */
/* ===== End Search Bar ===== */

/* ===== CARD RTP ===== */
.mini-card {
  background: linear-gradient(#067dec, #74dfff, #067dec);
  color: #ffffff;
  border: 2.5px solid #ffffff;
  border-radius: 0.75rem;
  padding: 0.3rem;
  font-size: 0.6rem;
  box-shadow: 0 2px 6px rgba(192, 187, 185, 0.5);
}

.jam-gacor strong {
  transition: opacity 0.5s ease;
  display: inline-block;
}

.slot-image-wrapper {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 154, 243, 0.3);
}

.slot-image {
  display: block;
  max-width: 100%;
  width: 90%;
  height: auto;
  max-height: 180px;
  margin: 0 auto;
  border-radius: 10px;
  transition: filter 0.3s ease;
  border: 2.5px solid #ffffff;
  object-fit: contain;
}

.slot-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 0.5rem;
  transition: transform 0.2s ease;
  object-fit: contain;
}

.slot-card:hover {
  transform: translateY(-4px); /* Naik halus saat hover */
}

.slot-card:hover .slot-image {
  filter: grayscale(100%) brightness(70%);
}

.slot-card:hover .play-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.hot-badge {
  position: absolute;
  top: 3px;
  left: 17px;
  width: 35px;
  height: auto;
  z-index: 2;
  border-radius: 4px;
  box-shadow: none;
}

/* Responsive untuk perangkat mobile */
@media (max-width: 480px) {
  .hot-badge {
    width: 28px;
    top: 2px;
    left: 6px;
  }
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  background-color: rgba(191, 160, 66, 0.5);
  border: none;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  gap: 0.25rem;
  z-index: 10;
  white-space: nowrap;
  width: auto;
  min-width: 110px;
  max-width: 80%;
}

/* Tabel pola */
.pola-table {
  font-size: 0.6rem;
  border-collapse: collapse;
  color: #fff;
  margin-top: -10px;
  border: 2.5px solid #ffd700;
}

.provider-icon {
  width: 30px;
  height: auto;
  filter: brightness(1) saturate(1.2);
}

.pola-title {
  font-size: 0.8rem;
  color: #fff;
  margin-bottom: 0;
  text-align: left;
  font-weight: 600;
}

.provider-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pola-card h6 {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.pola-table td i {
  transition: transform 0.2s ease;
  color: #ff6f00;
}

.pola-table td {
  padding: 0.2rem;
  vertical-align: middle;
  border-color: #ff6f00;
  border-style: solid;
  border-width: 0 0 1px 0;
}

.table-bordered > :not(caption) > * > * {
  border-color: #ff6f00;
}

.table thead th {
  background-color: #4e1a00;
  color: #ff6f00;
}

.progress {
  width: 100%;
  height: 15px;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

.auto-progress-bar{
  display:flex;              /* aktifkan flexbox */
  align-items:center;        /* center vertikal */
  justify-content:center;    /* center horizontal */
  font-weight:600;           /* teks lebih tebal (opsional) */
  font-size:.85rem;          /* sesuaikan ukuran (opsional) */
  color:#fff;                /* pastikan terbaca */
  white-space:nowrap;        /* agar teks 100% tidak terpotong */
  pointer-events:none;       /* klik tidak mengganggu */
}

/* Desktop-only adjustments */
@media (min-width: 992px) {
  .play-btn {
    font-size: 0.9rem;
    padding: 0.15rem 0.6rem;
    border-radius: 10px;
    background-color: rgba(255, 111, 0, 0.85);
    box-shadow: 0 1px 3px rgba(255, 111, 0, 0.6);
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 60px;
    margin-bottom: 60px;
  }

  .slot-image {
    width: 88%;
    border-radius: 8px;
  }
  .hot-badge {
    width: 38px;
    top: 2px;
    left: 6px;
  }
}

/* Tampilkan tombol play hanya di layar medium ke atas */
@media (min-width: 768px) {
  .play-btn {
    display: inline-flex;
  }

  .slot-image {
    width: 100%; /* Besarkan jadi 110% dari container */
    max-width: none; /* Hilangkan batas max-width jika ada */
    border-radius: 10px; /* Bisa sedikit dibulatkan */
  }
}

/* Responsive untuk mobile kecil */
@media (max-width: 576px) {
  .slot-card {
    max-width: 140%;
  }
  .play-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    min-width: 90px;
  }
  .slot-image {
    width: 100%; /* Besarkan juga di mobile kecil */
    max-width: none;
    border-radius: 8px;
  }
}

/* Tablet */
@media (min-width: 577px) and (max-width: 991px) {
  .slot-card {
    max-width: 260px;
  }
  .play-btn {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }
  .slot-image {
    border-radius: 10px;
  }
}
/* ===== End Card RTP ===== */

/* ===== Notification ===== */
.notif-box {
  position: fixed;
  bottom: -100px; /* awalnya tersembunyi */
  left: 0;
  right: 0;
  margin: 0 auto;
  background: linear-gradient(#067dec, #74dfff, #067dec);
  padding: 14px 24px;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: bold;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease, bottom 0.5s ease;
  text-align: center;
  max-width: 100%;
}

/* Saat notifikasi aktif (ditampilkan) */
.notif-box.show {
  bottom: 0; /* munculkan dari bawah */
  opacity: 1;
}

/* Responsif: Sesuaikan di mobile */
@media (max-width: 480px) {
  .notif-box {
    font-size: 0.8rem;
    padding: 12px 16px;
  }
}
/* ===== End Notification ===== */

/* ===== Scroll ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: linear-gradient(145deg, #f30000, #630c00); /* hitam ke coklat */
  color: gold;
  border: none;
  border-radius: 50%;
  padding: 15px 17px;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(90, 75, 72, 0.4); /* efek gold glow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-top-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
  background: linear-gradient(145deg, #2c2c2c, #6d4c41); /* efek hover gelap */
  color: #fff8dc; /* lebih terang saat hover */
}
/* ===== End Scroll ===== */

/* ===== Navbar Footer ===== */
#bottomNav {
  transition: transform 0.3s ease-in-out;
  will-change: transform;
}

#bottomNav.hide {
  transform: translateY(100%);
}

/* ===== End Navbar Footer ===== */
