/* === Umum === */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #0e0e0e;
    color: #fff;
}
a {
    text-decoration: none;
}

/* === Header === */
.topbar {
    background: #1a1a1a;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.6em;
    font-weight: bold;
    color: #f9c300;
}
.menu a {
    margin: 0 12px;
    color: #ddd;
    font-weight: 500;
}
.menu a.active {
    color: #f9c300;
    font-weight: bold;
}
.btn-cta {
    background: #f9c300;
    color: #000;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

/* === Banner === */
.banner {
    text-align: center;
    background: linear-gradient(to right, #2d0b00, #3d1300);
    padding: 40px 20px;
}
.banner img {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 20px;
}

/* === Kategori === */
.kategori {
    text-align: center;
    margin: 20px 0;
}
.kategori a {
    margin: 0 10px;
    padding: 10px 15px;
    background: #222;
    border-radius: 5px;
    color: #f9c300;
    font-weight: bold;
}

/* === Game Grid === */
.search-box {
    text-align: center;
    margin: 30px 0;
}
.search-box input {
    width: 80%;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    outline: none;
}
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1100px;
    margin: auto;
}
.game-card {
    background: #1c1c1c;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}
.game-card:hover {
    transform: scale(1.05);
}
.game-card img {
    width: 100%;
    border-radius: 8px;
}
.btn-play {
    margin-top: 10px;
    background: #f9c300;
    color: #000;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
}

/* === Popup Login/Register === */
.popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
}
.popup-content {
    background: #1c1c1c;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
}
.popup-content input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 6px;
}
.btn-login {
    background: #f9c300;
    color: #000;
    padding: 10px;
    border: none;
    border-radius: 6px;
    width: 100%;
}
.hide {
    display: none;
}

/* === Promo & News Box === */
.content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}
.promo-box, .news-box {
    background: #1c1c1c;
    border-left: 4px solid #f9c300;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}
.promo-box img, .news-box img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}
.promo-box h2, .news-box h2 {
    margin: 10px 0 5px;
}
.promo-box p, .news-box p {
    line-height: 1.6em;
}

/* === Game Detail === */
.game-detail {
    background: #1c1c1c;
    padding: 25px;
    border-radius: 10px;
    max-width: 800px;
    margin: auto;
}
.detail-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}
.game-detail ul {
    padding-left: 20px;
    line-height: 1.7em;
}

/* === Fade-In Effect === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}
.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* === WhatsApp Button === */
.wa-float {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: #25d366;
    color: white;
    padding: 12px 14px;
    border-radius: 50px;
    font-weight: bold;
    z-index: 999;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.livechat {
  position: fixed;
  bottom: 70px;
  right: 15px;
  background: #f9c300;
  color: #000;
  padding: 12px 18px;
  font-weight: bold;
  border-radius: 50px;
  box-shadow: 0 0 10px #0003;
  z-index: 999;
}
.livechat a {
  color: #000;
  text-decoration: none;
}
