* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #0d0518;
  background-image: radial-gradient(ellipse at top, #1a0a2e 0%, #0d0518 50%, #050210 100%);
  font-family: Arial, sans-serif;
  color: #f5e6c8;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

/* POPUP STYLE */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 5, 24, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
}

.popup-content {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1450 100%);
  color: #ffd700;
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid #ffd700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5), inset 0 0 15px rgba(138, 43, 226, 0.3);
  max-width: 300px;
}

.popup-content h2 {
  margin-bottom: 15px;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.popup-content button {
  background: linear-gradient(90deg, #ffd700, #d4a017);
  color: #1a0a2e;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.popup-content button:hover {
  background: linear-gradient(90deg, #ffe55c, #ffd700);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  transform: scale(1.05);
}

header {
  background-color: #0a0414;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  width: 100%;
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 2px 15px rgba(138, 43, 226, 0.3);
}

.logo img {
  height: 50px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

nav.desktop-nav {
  display: flex;
  gap: 20px;
}

nav.desktop-nav a {
  color: #f5e6c8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
}

nav.desktop-nav a:hover {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.register {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  padding: 10px 15px;
  border: 1px solid #ffd700;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.register:hover {
  color: #1a0a2e;
  background-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.login {
  background: linear-gradient(90deg, #ffd700, #d4a017);
  color: #1a0a2e;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  transition: 0.3s;
}

.login:hover {
  background: linear-gradient(90deg, #ffe55c, #ffd700);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.9);
}

.right-mobile {
  display: none;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  z-index: 10000;
}

.hamburger .bar {
  width: 30px;
  height: 3px;
  background-color: #ffd700;
  transition: all 0.3s ease;
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-register,
.mobile-login {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-register {
  color: #ffd700;
  border: 1px solid #ffd700;
  text-decoration: none;
  font-weight: bold;
}

.mobile-login {
  background: linear-gradient(90deg, #ffd700, #d4a017);
  color: #1a0a2e;
  text-decoration: none;
  font-weight: bold;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 0;
  width: 100%;
  background-color: #0a0414;
  box-shadow: 0 8px 16px rgba(138, 43, 226, 0.4);
  z-index: 9999;
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  overflow: hidden;
  animation: dropdownFade 0.3s ease;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  padding: 15px 20px;
  color: #f5e6c8;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(138, 43, 226, 0.3);
  background-color: #0a0414;
  transition: background-color 0.3s, color 0.3s;
}

.mobile-nav a:hover {
  background-color: #1a0a2e;
  color: #ffd700;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  nav.desktop-nav,
  .actions {
    display: none;
  }

  .right-mobile {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .logo img {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .mobile-register,
  .mobile-login {
    padding: 5px 8px;
    font-size: 11px;
  }

  .right-mobile {
    gap: 5px;
  }
}

.marquee-container {
  background: linear-gradient(90deg, #1a0a2e, #2d1450, #1a0a2e);
  color: #ffd700;
  padding: 10px 0;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
}

.marquee-text {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

.carousel-slide {
  display: none;
}

.carousel-slide img {
  width: 100%;
  display: block;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 10px;
  margin-top: -22px;
  color: #ffd700;
  font-weight: bold;
  font-size: 20px;
  user-select: none;
  background: rgba(26, 10, 46, 0.7);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 50%;
  z-index: 10;
  transition: 0.3s;
}

.prev:hover,
.next:hover {
  background-color: rgba(26, 10, 46, 0.95);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

body.nav-open .carousel-container .prev,
body.nav-open .carousel-container .next {
  display: none;
}

.dot-container {
  text-align: center;
  position: absolute;
  width: 100%;
  bottom: 15px;
  z-index: 5;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: rgba(245, 230, 200, 0.5);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
  background-color: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.live-score {
  background: linear-gradient(135deg, #15082a 0%, #1a0a2e 50%, #15082a 100%);
  padding: 30px 15px;
  margin: 20px 0;
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.live-score .buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.live-score .buttons a {
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  transition: 0.3s;
}

.masuk {
  background: linear-gradient(90deg, #ffd700, #d4a017);
  color: #1a0a2e;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.masuk:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
}

.daftar {
  background: linear-gradient(90deg, #8a2be2, #4b0082);
  color: #ffd700;
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.7);
  border: 1px solid #ffd700;
}

.daftar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(138, 43, 226, 1);
}

.cta-button {
  margin-top: 25px;
  background: linear-gradient(90deg, #4b0082, #8a2be2);
  color: #ffd700;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 16px;
  display: inline-block;
  transition: 0.3s;
  border: 1px solid #ffd700;
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.cta-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
}

footer {
  background: #0a0414;
  color: #f5e6c8;
  text-align: center;
  padding: 15px;
  font-size: 14px;
  width: 100%;
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 -2px 15px rgba(138, 43, 226, 0.3);
}

.money-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.money {
  position: absolute;
  top: -50px;
  width: 40px;
  height: 40px;
  background-image: url('../images/CAHAYA.png');
  background-size: cover;
  opacity: 0.6;
  filter: hue-rotate(40deg) brightness(1.2) drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes tendangButton {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  20% {
    transform: translate(-10px, -10px) scale(1.1);
  }
  40% {
    transform: translate(0px, 0px) scale(1);
  }
  60% {
    transform: translate(100px, -30px) scale(1.2);
  }
  80% {
    transform: translate(300px, -80px) scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: translate(600px, -150px) scale(0.3);
    opacity: 0;
  }
}

#enterButton.tendang {
  animation: tendangButton 1.2s forwards ease-in;
}