/* =========
   GLOBAL
========== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Anek Tamil", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #e5e7eb;
}

body {
  background-color: #020617;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Scrollbar halus */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* =========
   NAVBAR
========== */

.navbar {
  background: radial-gradient(circle at top, #1f2937 0, #020617 55%, #020617);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.navbar-logo .logo-placeholder {
  width: 130px;
  height: 40px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.navbar-right {
  margin-top: 3.7rem; /* compensate fixed navbar */
  display: flex;
  justify-content: flex-end;
  color: #9ca3af;
  font-size: 0.85rem;
}

.current-time i {
  color: #0ea5e9;
}

/* =========
   MAIN WRAP
========== */

.main-content {
  padding-top: 0.7rem;
  padding-bottom: 3rem;
}

/* =========
   BANNER
========== */

.banner-container {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.banner-placeholder {
  background: linear-gradient(135deg, #0f172a, #020617);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
}

.banner-placeholder::before,
.banner-placeholder::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.28), transparent);
  filter: blur(3px);
}

.banner-placeholder::before {
  top: -40px;
  left: -60px;
}
.banner-placeholder::after {
  bottom: -60px;
  right: -40px;
}

.banner-text {
  position: relative;
  z-index: 1;
}

/* Swiper pagination dots */
.banner-swiper .swiper-pagination-bullet {
  background: #64748b;
  opacity: 1;
}
.banner-swiper .swiper-pagination-bullet-active {
  background: #22c55e;
}

/* =========
   LOGIN / REGISTER
========== */

.login-register-container {
  margin-top: 1rem;
  margin-bottom: 1.1rem;
}

.login-register-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-auth {
  border-radius: 999px;
  padding: 0.55rem 1.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.18s ease-out;
}

.login-btn {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e5e7eb;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.4);
}

.register-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #020617;
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.4);
}

.btn-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.7);
}

/* =========
   CHAT IFRAME
========== */

iframe {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #020617;
}

/* =========
   PROVIDER SLIDER
========== */

.provider-slider-container {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.provider-swiper .swiper-slide {
  width: auto;
}

.provider-logo-item {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.provider-logo-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #1f2937, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #e2e8f0;
  overflow: hidden;
}

.provider-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.provider-name {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #cbd5f5;
}

.provider-logo-item.active,
.provider-logo-item:hover {
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
  background: radial-gradient(circle at top, #0f172a, #020617);
}

/* Swiper nav arrows */
.provider-slider-container .swiper-button-next,
.provider-slider-container .swiper-button-prev {
  color: #94a3b8;
}
.provider-slider-container .swiper-button-next:hover,
.provider-slider-container .swiper-button-prev:hover {
  color: #e5e7eb;
}

/* =========
   SECTION HEADER
========== */

.section-header {
  margin-top: 1.7rem;
  margin-bottom: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.section-title {
  color: #f9fafb;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.provider-filter .btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

/* =========
   GAME GRID
========== */

.games-grid {
  margin-top: 0.5rem;
}

.game-card {
  background: radial-gradient(circle at top, #020617, #020617 40%, #020617);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.4rem 0.4rem 0.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.16s ease-out;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.9);
  border-color: rgba(56, 189, 248, 0.7);
}

.online-players {
  position: absolute;
  top: 0.4rem;
  left: 0.45rem;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.online-players i {
  color: #22c55e;
}

.game-img-container {
  position: relative;
  margin-bottom: 0.35rem;
  border-radius: 12px;
  overflow: hidden;
}

.game-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

.game-img-placeholder {
  width: 100%;
  height: 90px;
  background: radial-gradient(circle at top, #1e293b, #020617);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.provider-tag {
  position: absolute;
  bottom: 0.3rem;
  right: 0.4rem;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 0.07rem 0.45rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* RTP display */

.game-info {
  font-size: 0.75rem;
}

.rtp-display {
  margin-bottom: 0.25rem;
}

.rtp-value {
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 0.1rem;
}

.rtp-progress {
  height: 6px;
  border-radius: 999px;
  background: #020617;
  overflow: hidden;
}

.rtp-progress .progress-bar {
  border-radius: 999px;
}

/* Tombol MAIN & POLA */

.game-buttons {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.btn-main,
.btn-pola {
  flex: 1;
  border-radius: 999px;
  border: none;
  padding: 0.25rem 0.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: all 0.15s ease-out;
}

.btn-main {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #020617;
}

.btn-main:disabled {
  background: #1f2937;
  color: #6b7280;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-pola {
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #e5e7eb;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.5);
}

.btn-pola.disabled,
.btn-pola:disabled {
  background: #020617;
  color: #6b7280;
  box-shadow: 0 0 0 1px rgba(75, 85, 99, 0.7);
  cursor: not-allowed;
}

.btn-main:hover:not(:disabled),
.btn-pola:hover:not(.disabled):not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.8);
}

/* =========
   LOAD MORE
========== */

.load-more-btn {
  border-radius: 999px;
  padding: 0.45rem 1.8rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
  color: #e5e7eb;
  font-weight: 600;
  transition: all 0.18s ease-out;
}

.load-more-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.9);
}

/* Loading dots */

.loading-dots {
  display: inline-flex;
  gap: 0.3rem;
}

.loading-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #e5e7eb;
  animation: loadingBounce 0.9s infinite alternate;
}

.loading-dots .dot:nth-child(2) {
  animation-delay: 0.15s;
}
.loading-dots .dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes loadingBounce {
  from {
    transform: translateY(0);
    opacity: 0.4;
  }
  to {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* =========
   FOOTER
========== */

.footer-section {
  position: relative;
  margin-top: 2.5rem;
  background: radial-gradient(circle at top, #020617, #020617 60%, #000);
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding-top: 1.8rem;
  padding-bottom: 1.2rem;
}

.footer-title {
  font-size: 0.95rem;
  color: #f9fafb;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-line {
  width: 60px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #22c55e, #0ea5e9);
  margin: 0.3rem 0 0.7rem;
}

.footer-text {
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.2rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: #e5e7eb;
}

.footer-links a i {
  color: #22c55e;
  margin-right: 0.3rem;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 0.6rem;
}

.footer-contact li {
  font-size: 0.82rem;
  color: #e5e7eb;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge-item {
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-bottom {
  margin-top: 1rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding-top: 0.7rem;
  font-size: 0.75rem;
  color: #9ca3af;
}