/* ================================
   BODY BACKGROUND
================================ */
body {
  height: 100vh;
  margin: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(193, 154, 107, 0.08), transparent 50%),
    linear-gradient(270deg, #2B1A0E, #5A3E1B, #8B6B3F, #2B1A0E);
  background-size: 600% 600%;
  animation: moveGradient 25s ease infinite;
  color: #f5deb3;
}

@keyframes moveGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* NAVIGATION STYLE */
nav {
  flex: 1;
  text-align: center;
}

nav a {
  color: #f5f5f5;                 /* teks default putih */
  margin: 0 18px;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  padding: 8px 14px;
  border-radius: 6px;
  position: relative;
  transition: all 0.35s ease;
}

/* efek garis bawah tipis (default transparan) */
nav {
  flex: 1;
  text-align: center;
}

nav a {
  color: #f5f5f5;                  /* putih elegan */
  margin: 0 18px;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  padding: 8px 14px;
  position: relative;
  transition: color 0.35s ease;
}

/* border bawah animasi */
nav {
  flex: 1;
  text-align: center;
}

nav a {
  color: #f5f5f5;                 /* teks default putih lembut */
  margin: 0 15px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: 6px;
  position: relative;
  transition: all 0.3s ease;
  background: linear-gradient(145deg, #2b1a12, #1c0f0a); /* coklat tua elegan */
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.4),
              inset -2px -2px 5px rgba(255,255,255,0.1);
}

nav a:hover {
  color: #d4af37; /* gold saat hover */
  background: linear-gradient(145deg, #3a2619, #2a1810); /* coklat lebih terang */
  box-shadow: 2px 2px 6px rgba(0,0,0,0.6),
              -2px -2px 6px rgba(255,255,255,0.05),
              inset 0 0 5px rgba(212,175,55,0.5); /* efek inner glow gold */
  transform: translateY(-2px); /* kesan tombol naik */
}

nav a.act {
  color: #d4af37; /* gold elegan untuk aktif */
  font-weight: bold;
  border-bottom: 3px solid #d4af37; /* underline gold lebih tebal */
  text-shadow: 0 0 5px rgba(212,175,55,0.7); /* glow gold */
}


/* ================================
   HEADER
================================ */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(43, 26, 14, 0.9);
  z-index: 1000;
}

.logo img { 
  height: 45px; /* default desktop */
}

@media (max-width: 768px) {
  .logo img {
    height: 41px; /* lebih kecil di mobile */
  }
}

.auth-buttons {
  display: flex;
  gap: 12px;
  margin-left: auto;   /* dorong tombol ke kanan */
  align-items: center; /* biar sejajar vertical */
}

.auth-buttons a {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}

/* Homepage → header tetap fixed */
body.home .site-header {
  position: fixed;
  background: rgba(43, 26, 14, 0.9); /* semi transparan */
}
body.home main {
  padding-top: 100px; /* supaya konten gak ketiban header */
}

/* Subpage → header normal */
body.subpage .site-header {
  position: relative;
  background: #2b1a0e; /* solid coklat */
}

/* Konten subpage */
body.subpage main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 40px 30px; /* atas lebih besar biar ada jarak dari header */
  line-height: 1.8;
  color: #f5f5f5;
  font-size: 1.05rem;
}

/* Heading */
body.subpage h1 {
  color: #FFD700;
  font-size: 2.3rem;
  font-weight: 900;
  text-align: center;
  margin: 30px 0 15px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  font-family: 'Montserrat', sans-serif;
}

body.subpage h2 {
  color: #facc15;
  font-size: 2.1rem;
  font-weight: 800;
  text-align: center;
  margin: 35px 0 20px;
  font-family: 'Montserrat', sans-serif;
}

body.subpage h3 {
  color: #eab308;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 25px 0 15px;
  font-family: 'Montserrat', sans-serif;
  padding-left: 35px; /* untuk space diamond */
  position: relative;
}

body.subpage h3::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: #facc15;
  font-size: 1rem;
}

/* RTP SUBPAGE */

/* Grid container */
.game-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

/* Responsive */
@media (max-width: 1024px) {
  .game-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .game-list {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Card */
.subpage-card {
  background: #2b1a0e;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-align: center;
}

/* Hover effect */
.subpage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(212,175,55,0.4);
}

/* Image ikut ukuran aslinya */
.subpage-card img {
  display: block;
  width: 100%;         /* penuh lebar card */
  height: auto;        /* tinggi otomatis (ikuti proporsi gambar) */
  object-fit: contain; /* biar ga ketarik/pecah */
}

/* Info bagian bawah */
.subpage-card .game-info {
  padding: 12px;
  color: #f5f5f5;
  font-family: 'Montserrat', sans-serif;
}

.subpage-card .game-info h4 {
  margin: 8px 0;
  font-size: 1rem;
  color: #FFD700;
  text-shadow: 0 0 5px rgba(255,215,0,0.6);
}

.subpage-card .rtp {
  display: inline-block;
  background: linear-gradient(90deg, #d4af37, #facc15);
  color: #1c1c1c;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 20px;
  margin-top: 5px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.4);
}

/* Container bar */
.rtp-ex {
  width: 100%;
  height: 20px;
  background: #1c1c1c;
  border-radius: 6px;
  overflow: hidden;
  margin: 8px 0;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.6);
  position: relative;
}

/* Isi bar */
.rtp-ax {
  height: 100%;
  background: linear-gradient(90deg, #FFD700, #facc15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* angka di ujung kanan */
  padding-right: 6px;
  box-sizing: border-box;
  transition: width 0.6s ease;
  position: relative;
}

/* Angka persen di dalam bar */
.rtp-ox {
  font-size: 0.85rem;
  font-weight: bold;
  color: #1c1c1c; /* biar kontras dengan kuning */
  text-shadow: 0 0 3px rgba(255,255,255,0.7);
}


/* SUB Hero */
/* Bungkus artikel dengan gaya mirip hero-section */
.sub-hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(to bottom, #3a2619, #2b1a0e); /* gradasi coklat */
  padding: 120px 20px 60px; /* jarak biar gak nempel header */
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Batasi area artikel */
.sub-hero main {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(0,0,0,0.3);  /* biar ada efek kotak transparan */
  padding: 40px 50px;
  border-radius: 12px;
  color: #f5f5f5;
  line-height: 1.8;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* H1 mirip homepage */
.sub-hero h1 {
  color: #FFD700;
  font-size: 2.5rem;
  font-weight: 900;
  text-align: center;
  margin: 20px 0 30px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  font-family: 'Montserrat', sans-serif;
}

/* H2 */
.sub-hero h2 {
  color: #facc15;
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin: 35px 0 20px;
  font-family: 'Montserrat', sans-serif;
}

/* H3 dengan simbol */
.sub-hero h3 {
  color: #eab308;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 25px 0 15px;
  font-family: 'Montserrat', sans-serif;
  padding-left: 35px;
  position: relative;
}

.sub-hero h3::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: #facc15;
  font-size: 1rem;
}


/* ================================
   HERO SECTION
================================ */

.hero-title {
  margin: 50px 0 30px;
  text-align: center;
  color: #FFD700; /* warna emas */
  font-weight: 900;
  font-size: 3rem;
  line-height: 1.2;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7),
               2px 2px 10px rgba(0, 0, 0, 0.8);
}
@media (max-width: 1024px) {
  .hero-title { font-size: 2.5rem; }
}
@media (max-width: 767px) {
  .hero-title { font-size: 2rem; }
}

.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}
.hero-section video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-section .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}
.hero-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #2B1A0E 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 270px 20px 100px;
}

.brand-title {
  font-size: 4rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.active-users2 {
  font-size: 1.5rem !important;
  font-weight: bold;
  color: #ffffff !important;
  margin: 5px 0;
}


.active-users {
  font-size: 1.5rem;
  font-weight: bold;
  color: #facc15;
  margin: 10px 0;
}
.stars {
  color: #FFD700;
  font-size: 1.5rem;
  margin-bottom: 25px;
}

/* HEADER BASE */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
}

/* Desktop auth buttons */
.auth-buttons {
  display: flex;
  gap: 12px;
  margin-left: auto;
  align-items: center;
}

/* Tombol dasar */
.auth-buttons a,
.auth-buttons-mobile a {
  display: inline-block;
  min-width: 100px;
  text-align: center;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

/* Register */
.btn-register2 {
  color: #fff;
  background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
}
.btn-register2:hover {
  background: linear-gradient(90deg, #15803d 0%, #16a34a 100%);
  transform: translateY(-2px);
}

/* Login */
.btn-login2 {
  color: #fff;
  background: #111827;
  border: 1px solid #374151;
}
.btn-login2:hover {
  background: #1f2937;
  transform: translateY(-2px);
}

/* Mobile menu hidden default */
.auth-buttons-mobile {
  display: none;
  flex-direction: column;
  gap: 10px;
  background: #111827;
  padding: 15px;
  border-radius: 8px;
  position: absolute;
  top: 70px;
  right: 20px;
  z-index: 999;
}

/* Tombol hamburger */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  margin-left: auto;
}

/* Responsive rules */
@media (max-width: 768px) {
  .auth-buttons { display: none; }         /* desktop buttons hidden */
  .hamburger { display: block; }           /* show hamburger */
}


/* ================================
   HERO SECTION BUTTONS (tengah)
================================ */
.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 20px auto 0;  /* beri jarak ke atas */
}

.hero-buttons a {
  display: block;
  text-align: center;
  font-weight: bold;
  padding: 16px 24px;
  border-radius: 8px;
  transition: 0.3s;
  cursor: pointer;
}

/* Register di hero (hijau besar) */
.hero-buttons .btn-register {
  background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
  color: #fff;
}
.hero-buttons .btn-register2:hover {
  background: linear-gradient(90deg, #15803d 0%, #16a34a 100%);
  transform: translateY(-2px);
}

/* Demo di hero (kuning besar) */
.hero-buttons .btn-demo {
  background: #facc15;
  color: #111;
}
.hero-buttons .btn-demo:hover {
  background: #eab308;
  transform: translateY(-2px);
}

/* Responsive: stack vertical di mobile */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    max-width: 100%;
  }

  .hero-buttons a {
    width: 90%;
    max-width: 320px;
  }
}



/* ================================
   MAIN GRID
================================ */
.main-container {
  max-width: 1450px;
  margin: 0 auto;
  padding: 3rem 1rem;
}
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .main-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ================================
   POPULAR SLOTS
================================ */
.popular-slots-container {
  background: #2B1A0E;
  border: 2px solid #FFD700;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  height: 100%;
  box-sizing: border-box;
}
.popular-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #FFD700;
}

.slot-info {
  width: 100%;
}
.slot-card {
  background: linear-gradient(145deg, #3A2415, #2B1A0E);
  border: 2px solid rgba(200,169,81,0.6);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}
.slot-card:hover {
  border-color: #FFD700;
  box-shadow: 0 0 12px rgba(255,215,0,0.6);
  transform: translateY(-3px);
}
.slot-content { display: flex; align-items: flex-start; gap: 12px; }
.slot-image { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.slot-title { font-weight: 700; font-size: 1.1rem; color: #FFD700; margin: 0; }

/* RTP BAR */
.progress-container { 
  width: 100%;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
}

.progress-bar {
  width: 100%;
  height: 16px;
  background: #3a2a1a;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: var(--target, 0); /* ambil nilai dari inline style */
  background: linear-gradient(90deg, #FFD700, #FFA500);
  border-radius: 8px 0 0 8px; /* rounded kiri saja */
  transition: width 1s ease; /* animasi biar smooth */
}

.progress-label {
  margin-top: 4px;
  font-size: 12px;
  font-weight: bold;
  color: #FFD700;
  text-align: right;
}

/* ================================
   FEATURE CARDS
================================ */
.feature-hula,
.info-card,
.feature-box {
  background: #2B1A0E;
  border: 2px solid #FFD700;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  height: 100%;
  box-sizing: border-box;
}

.feature-hula .feature-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(90deg, #FFD700, #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  margin-bottom: 20px;
}
.feature-hula .feature-item {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px;
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 10px;
  background: rgba(43, 26, 14, 0.85);
  margin-bottom: 12px;
  transition: all 0.3s ease;
}
.feature-hula .feature-item:hover {
  border-color: #FFD700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
  background: linear-gradient(135deg, rgba(43, 26, 14, 0.95), rgba(255, 215, 0, 0.1));
  transform: translateY(-3px);
}
.feature-hula .feature-icon { width: 64px; height: 64px; object-fit: contain; }
.feature-hula .feature-name { font-weight: 800; font-size: 18px; color: #FFD700; }
.feature-hula .feature-value, .feature-hula .feature-desc { font-size: 14px; color: #f5deb3; }

/* ================================
   INFO COLUMN
================================ */
.info-column { display: flex; flex-direction: column; gap: 24px; }
.info-title, .feature-box-title {
  font-weight: bold;
  color: #FFD700;
  text-shadow: 1px 1px 2px #000;
  margin-bottom: 12px;
}
.info-title { font-size: 1.5rem; }
.feature-box-title { font-size: 1.8rem; }
.info-text { font-size: 1rem; line-height: 1.6; color: #f5deb3; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; align-items: flex-start; margin-bottom: 10px; color: #f5deb3; }
.checkmark { color: #22c55e; font-weight: bold; margin-right: 8px; }

/* ================================
   H1 UTAMA
================================ */
.h1-section { margin-top: 40px; text-align: center; }
.h1-section .brand-title {
  font-weight: 900;
  color: #FFD700;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
  line-height: 1.3;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .h1-section .brand-title { font-size: 4rem; }
}
@media (max-width: 767px) {
  .h1-section .brand-title { font-size: 2.2rem; }
}

/* ================================
   PROVIDER GRID
================================ */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(180px, auto));
  gap: 20px;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}
.feature-card {
  background: rgba(43, 26, 14, 0.7);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.feature-card:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #FFD700, #FFA500, #FFB400, #8B4513);
  color: #111;
  transform: translateY(-5px);
}
.feature-card h3 { font-size: 16px; font-weight: bold; color: #FFD700; }
.feature-card:hover h3 { color: #111; }
.feature-icon { width: 100%; max-width: 250px; margin-bottom: 12px; }
@media (max-width: 768px) {
  .features { grid-template-columns: 1fr; grid-template-rows: repeat(8, auto); }
  .feature-card { padding: 16px; }
  .feature-card h3 { font-size: 14px; }
}

/* ================================
   PAYMENT SECTION
================================ */
h2, .h2-section {
  margin: 40px 0 20px;
  text-align: center;
  color: #FFD700;
  font-weight: 900;
  line-height: 1.2;
  font-size: 2.5rem;  /* default ukuran */
  font-family: 'Montserrat', sans-serif;
}

@media (min-width: 1024px) {
  h2, .h2-section { font-size: 3rem; }
}

@media (max-width: 767px) {
  h2, .h2-section { font-size: 1.8rem; }
}

.payment-heading {
  color: #FFD700;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}
@media (min-width: 1024px) { .payment-heading { font-size: 3rem; } }
@media (max-width: 767px) { .payment-heading { font-size: 1.8rem; } }
.payment-proof-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  justify-items: center;
}
.payment-proof-item {
  background: rgba(43, 26, 14, 0.85);
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 16px;
  padding: 16px;
  max-width: 360px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.payment-proof-item:hover {
  transform: scale(1.05);
  border-color: #FFD700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}
.payment-proof-item img { width: 100%; border-radius: 12px; display: block; margin: 0 auto; }
.payment-proof-title {
  margin-top: 12px;
  color: #FFD700;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}
@media (max-width: 767px) {
  .payment-proof-section { grid-template-columns: 1fr; }
  .payment-proof-item { max-width: 100%; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .payment-proof-section { grid-template-columns: repeat(2, 1fr); }
  .payment-proof-item { max-width: 320px; }
}
@media (min-width: 1024px) {
  .payment-proof-section { grid-template-columns: repeat(3, 1fr); }
  .payment-proof-item { max-width: 360px; }
}

/* p font */
p {
  color: #ffffff;
  font-size: 20px;
  text-align: center;
  line-height: 1.6;
}


/* ================================
   FOOTER
================================ */
.site-footer {
  background: #1C1C1C;
  color: #fff;
  padding: 32px 0;
  text-align: center;
  border-top: 2px solid #FFD700;
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
