/* Banner: static image replacement */
.banner {
  overflow: hidden;
  max-height: 35vw;
  aspect-ratio: 1920 / 613;
}
.banner > a {
  display: block;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.banner > a img {
  display: block;
  width: 75%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ========== PEMBERITAHUAN (Announcement) SECTION ========== */

.announcement-container {
  background: linear-gradient(180deg, #0a0a12 0%, #0f0f1a 100%) !important;
  border: 1px solid rgba(220, 0, 0, 0.2) !important;
  border-radius: 12px !important;
  margin: 16px 0 !important;
  padding: 14px 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
}

.announcement-container [data-section="title"] {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  flex-shrink: 0 !important;
}

.announcement-container [data-icon="announcement"] {
  display: none !important;
}

.announcement-container [data-section="announcements"] {
  flex: 1 !important;
  min-width: 0 !important;
  background: rgba(0, 0, 0, 0.25) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.announcement-container .announcement-list li {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 6px 12px !important;
}

.announcement-container [data-section="date"] {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  flex-shrink: 0 !important;
}

/* ========== NEON STYLE SECTIONS (Design 2) ========== */

.neon-section {
  margin-bottom: 12px;
}
.neon-section .section-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(220, 0, 0, 0.5);
  text-transform: uppercase;
}
.neon-section .games-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.neon-section .games-scroll::-webkit-scrollbar {
  display: none;
}
.neon-section .games-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.neon-section .game-card {
  flex: 0 0 auto;
  width: 160px;
  min-width: 160px;
  transition: all 0.25s;
  overflow: hidden;
  border-radius: 20px;
}
.neon-section .game-card:hover {
  box-shadow: 0 0 20px rgba(220, 0, 0, 0.3);
}
.neon-section .game-card .img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px;
}
.neon-section .game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.neon-section .game-card .play-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.95) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding-bottom: 12px;
  opacity: 0;
  transition: opacity 0.25s;
}
.neon-section .game-card:hover .play-overlay {
  opacity: 1;
}
.neon-section .game-card .play-btn {
  background: #dc0000;
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
}
.neon-section .game-card .play-btn:hover {
  background: #ff3333;
  color: #fff;
}
.neon-section .game-card .coba-btn {
  background: transparent;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid #fff;
  cursor: pointer;
}
.neon-section .game-card .coba-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.neon-section .game-card .game-name {
  padding: 8px 6px;
  font-size: 11px;
  color: #a0a0a0;
  text-align: center;
}

@media (max-width: 576px) {
  .neon-section .game-card {
    width: 140px;
    min-width: 140px;
  }
}

/* Provider tabs: ensure panes show/hide (Bootstrap JS missing) */
.popular-games .tab-content .tab-pane {
  display: none;
}
.popular-games .tab-content .tab-pane.active {
  display: block;
}

/* ========== POPULAR GAMES SECTION REDESIGN (Neon) ========== */

.popular-games {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: linear-gradient(180deg, #0a0a12 0%, #12121f 50%, #0d0d18 100%);
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(220, 0, 0, 0.2);
  box-shadow: 0 0 40px rgba(220, 0, 0, 0.08);
}

.popular-games [data-section="left"] {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 400px;
}

.popular-games [data-section="left"] .section-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  height: auto;
  padding: 14px 16px;
  background: rgba(220, 0, 0, 0.15);
  border: 1px solid rgba(220, 0, 0, 0.4);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: 0 0 12px rgba(220, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.popular-games [data-section="left"] [data-icon="play"] {
  display: none;
}

/* ========== PEMENANG MESIN SLOT (Jackpot Winners) - Neon Theme ========== */

.popular-games .jackpot-winners {
  background: linear-gradient(180deg, rgba(220, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(220, 0, 0, 0.06) 100%);
  border-radius: 8px;
  border: 1px solid rgba(220, 0, 0, 0.25);
  box-shadow: 0 0 24px rgba(220, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.popular-games .jackpot-winners .jackpot-winner-title {
  padding: 12px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(220, 0, 0, 0.12);
  border-bottom: 1px solid rgba(220, 0, 0, 0.2);
  box-shadow: 0 0 16px rgba(220, 0, 0, 0.1);
  text-shadow: 0 0 12px rgba(220, 0, 0, 0.5);
}

.popular-games .jackpot-winners .jackpot-winner-title [data-icon="trophy"] {
  display: inline-block !important;
  height: 18px;
  width: 18px;
  margin-right: 0;
  filter: drop-shadow(0 0 6px rgba(220, 0, 0, 0.8)) brightness(1.1);
}

.popular-games .jackpot-winners .winners-ticker-container {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.popular-games .winners-ticker {
  height: 100% !important;
  overflow: hidden;
}

.popular-games .winners-ticker ul {
  animation: winners-scroll 25s linear infinite;
}

@keyframes winners-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.popular-games .winners-ticker ul li {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.popular-games .winners-ticker ul li:hover {
  background: rgba(220, 0, 0, 0.08);
  border-color: rgba(220, 0, 0, 0.2);
  box-shadow: 0 0 12px rgba(220, 0, 0, 0.12);
}

.popular-games .winners-ticker ul li img {
  height: 48px;
  width: 48px;
  border-radius: 8px;
  border: 1px solid rgba(220, 0, 0, 0.15);
  flex-shrink: 0;
}

.popular-games .winners-ticker ul li .winner-info {
  color: #e8e8e8;
  font-size: 11px;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.popular-games .winners-ticker ul li .winner-info > div:first-child {
  color: #b0b0b0;
  font-size: 10px;
}

.popular-games .winners-ticker ul li .winner-amount {
  color: #dc0000;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(220, 0, 0, 0.5);
}

.popular-games [data-section="left"] a[href*="arcade"] {
  display: block;
}
.popular-games [data-section="left"] a[href*="arcade"] img {
  border-radius: 8px;
  transition: box-shadow 0.25s;
}
.popular-games [data-section="left"] a[href*="arcade"]:hover img {
  box-shadow: 0 0 20px rgba(220, 0, 0, 0.4);
}

/* Right: provider tabs + content */
.popular-games [data-section="right"] {
  flex: 1;
  min-width: 0;
}

.popular-games .scrtabs-tab-container {
  background: transparent !important;
  height: auto !important;
  padding: 0 0 16px 0;
}

.popular-games .scrtabs-tab-scroll-arrow {
  display: none !important;
}

.popular-games .scrtabs-tabs-fixed-container {
  width: 100% !important;
}

.popular-games .scrtabs-tabs-movable-container {
  width: 100% !important;
  left: 0 !important;
}

.popular-games .nav-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  border: none;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.popular-games .nav-tabs::-webkit-scrollbar {
  height: 4px;
}
.popular-games .nav-tabs::-webkit-scrollbar-thumb {
  background: rgba(220, 0, 0, 0.4);
  border-radius: 2px;
}
.popular-games .nav-tabs > li {
  flex: 0 0 auto;
  margin: 0;
}

.popular-games .nav-tabs > li > a {
  background: rgba(255, 255, 255, 0.06) !important;
  padding: 8px 16px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.25s;
}

.popular-games .nav-tabs > li > a:hover {
  background: rgba(220, 0, 0, 0.2) !important;
  border-color: rgba(220, 0, 0, 0.4) !important;
}

.popular-games .nav-tabs > li.active > a {
  background: rgba(220, 0, 0, 0.25) !important;
  border-color: #dc0000 !important;
  box-shadow: 0 0 16px rgba(220, 0, 0, 0.3);
}

.popular-games .nav-tabs > li > a img {
  height: 36px !important;
  width: auto !important;
  max-width: 100px;
  display: block;
}

/* Tab content */
.popular-games .tab-content {
  padding: 0;
}

.popular-games .tab-pane > picture {
  display: none;
}

.popular-games .tab-pane > picture img.animated-image {
  display: none;
}

.popular-games .popular-game-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.popular-games .game-item {
  margin: 0;
}

.popular-games .game-wrapper {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px;
  transition: box-shadow 0.25s;
}

.popular-games .game-wrapper:hover {
  box-shadow: 0 0 20px rgba(220, 0, 0, 0.3);
}

.popular-games .game-wrapper picture,
.popular-games .game-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.popular-games .game-wrapper .link-container {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.95) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding-bottom: 10px;
  opacity: 0;
  transition: opacity 0.25s;
}

.popular-games .game-wrapper:hover .link-container {
  opacity: 1;
}

.popular-games .game-wrapper .free-play,
.popular-games .game-wrapper .play-now {
  padding: 6px 14px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px !important;
  border: none !important;
  background-image: none !important;
  margin: 0 !important;
  text-decoration: none !important;
}

.popular-games .game-wrapper .free-play:before,
.popular-games .game-wrapper .play-now:before {
  display: none !important;
}

.popular-games .game-wrapper .free-play {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

.popular-games .game-wrapper .free-play:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

.popular-games .game-wrapper .play-now {
  background: #dc0000 !important;
  color: #fff !important;
}

.popular-games .game-wrapper .play-now:hover {
  background: #ff3333 !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  .popular-games {
    flex-direction: column;
  }
  .popular-games [data-section="left"] {
    flex: none;
    width: 100%;
  }
  .popular-games .popular-game-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== PROMOTION CARDS SECTION ========== */

.promotion-cards-section {
  margin-bottom: 32px;
  padding: 28px;
  background: linear-gradient(180deg, #0a0a12 0%, #0f0f1a 100%);
  border-radius: 16px;
  border: 1px solid rgba(220, 0, 0, 0.15);
}

.promotion-cards-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.95;
}

.promotion-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.promotion-card {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: #fff !important;
  transition: all 0.3s ease;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.promotion-card:hover,
.promotion-card:focus {
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(220, 0, 0, 0.15);
  border-color: rgba(220, 0, 0, 0.3);
}

.promotion-card-icon {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.promotion-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.promotion-card:hover .promotion-card-icon img {
  transform: scale(1.08);
}

.promotion-card-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}

.promotion-card-content {
  position: relative;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promotion-card-game {
  font-size: 15px;
  font-weight: 700;
  color: #fff !important;
  line-height: 1.3;
}

.promotion-card-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65) !important;
  line-height: 1.4;
}

.promotion-card-cta {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #fff !important;
  background: #dc0000;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.2s ease;
  width: fit-content;
}

.promotion-card:hover .promotion-card-cta {
  background: #ff3333 !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(220, 0, 0, 0.4);
}

@media (max-width: 992px) {
  .promotion-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .promotion-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .promotion-cards-section {
    padding: 20px;
    margin-bottom: 24px;
  }
  .promotion-cards-title {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .promotion-card-content {
    padding: 14px;
  }
  .promotion-card-game {
    font-size: 14px;
  }
  .promotion-card-desc {
    font-size: 11px;
  }
  .promotion-card-cta {
    font-size: 11px;
    padding: 8px 16px;
  }
}
