:root {
    --bg-dark: #04070b;
    --bg-card: #0a1018;
    --gold-primary: #d4af37; /* Gold yang lebih elegan */
    --gold-glow: #f9e29d;
    --text-main: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --accent-blue: #1d4ed8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #020408;
    color: var(--text-main);
    font-family: 'Exo 2', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.wrapper {
    width: 95%;
    max-width: 800px;
    margin: 30px auto;
    background-color: #060b13;
    height: auto;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    box-shadow: 0 0 50px rgba(0,0,0,0.9);
    border-radius: 8px; 
     overflow: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gold-primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img { height: 35px; filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3)); }

.btn-login, .btn-register {
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.btn-login { color: var(--gold-primary); border: 1px solid var(--gold-primary); margin-right: 8px; }
.btn-register { background: linear-gradient(to bottom, #d4af37, #aa8928); color: #000; }
.btn-register:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }

/* Hero */
.hero img { width: 100%; display: block; border-bottom: 1px solid var(--border-color); }

/* Nav Icons */
.nav-icons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 20px;
    background: #000;
}

.icon-item { 
    text-align: center; 
    text-decoration: none; 
    color: var(--text-muted);
    transition: 0.3s;
}

.icon-box {
    background: #0f172a;
    border: 1px solid var(--border-color); /* Awalnya border redup */
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    transition: 0.3s ease; /* Biar transisi nyalanya halus */
}

.icon-box img { width: 30px; height: 30px; transition: 0.3s; }

/* EFEK SAAT KURSOR DIARAHKAN (HOVER) */
.icon-item:hover .icon-box {
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-3px); /* Efek sedikit mengangkat */
}

.icon-item:hover span {
    color: var(--gold-primary);
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.icon-item:hover .icon-box img {
    transform: scale(1.1); /* Icon membesar dikit */
}

.icon-box { 
    border-color: var(--gold-primary); 
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); 
    background: rgba(212, 175, 55, 0.05);
}


/* Jackpot */
.area-jackpot-baru {
    padding: 25px 15px;
    background: #000;
    display: flex;
    justify-content: center;
}

.bingkai-emas-luar {
    width: 100%;
    max-width: 550px;
    padding: 3px; /* Ketebalan bingkai emas */
    border-radius: 15px;
    /* Gradasi Metalik Emas */
    background: linear-gradient(90deg, #bf953f, #fcf6ba, #b38728, #fcf6ba, #aa771c);
    box-shadow: 0 0 20px rgba(191, 149, 63, 0.4);
}

.layar-digital-dalam {
    background: radial-gradient(circle, #0f1b2d 0%, #050a12 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.label-atas-jp {
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
    opacity: 0.8;
}

.angka-jp-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.currency-label {
    font-size: 18px;
    font-weight: 900;
    color: #fcf6ba;
}

.angka-digital {
    font-family: 'Courier New', monospace; /* Font digital */
    font-size: 36px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 2px 2px 2px #000;
}

/* Animasi Kilauan Emas */
.cahaya-kilat {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-30deg);
    animation: jalankilat 5s infinite;
}

@keyframes jalankilat {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* Responsif HP */
@media (max-width: 480px) {
    .angka-digital { font-size: 26px; }
    .currency-label { font-size: 14px; }
}

/* Brand Grid */
.brand-container {
    margin: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
}

.brand-box-header { 
    font-size: 14px; 
    text-align: center; 
    margin-bottom: 15px; 
    color: var(--text-muted);
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}

.brand-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #fff;
    text-decoration: none;
    padding: 8px;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    transition: 0.2s;
}

.brand-btn:hover {
    background: var(--gold-primary);
    color: #000;
    transform: translateY(-2px);
}

/* ARTICLE SECTION - PERBAIKAN TUMPANG TINDIH */
.article-container { 
    padding: 30px 20px; 
    background: #060b13;
}

.article-content { 
    max-height: 300px; /* Tinggi awal saat terpotong */
    overflow: hidden; 
    position: relative; 
    transition: max-height 0.5s ease;
    text-align: justify;
}

/* Efek Fade-out agar tidak tumpang tindih */
.article-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, #060b13);
    pointer-events: none;
    transition: 0.3s;
}

.article-content.expanded { 
    max-height: 5000px; /* Nilai besar agar terbuka semua */
}

.article-content.expanded::after {
    opacity: 0; /* Hilangkan bayangan saat terbuka */
}

.article-content h1 { color: var(--gold-primary); font-size: 22px; margin-bottom: 20px; line-height: 1.3; }
.article-content h2 { color: var(--gold-glow); font-size: 18px; margin: 20px 0 10px; }
.article-content h3 { color: var(--gold-primary); font-size: 16px; margin: 15px 0 10px; }
.article-content p { margin-bottom: 15px; font-size: 15px; color: var(--text-main); }

.btn-toggle {
    display: block; 
    width: fit-content;
    margin: 20px auto 0;
    padding: 10px 30px;
    background: transparent; 
    border: 1px solid var(--gold-primary); 
    color: var(--gold-primary);
    cursor: pointer; 
    font-weight: bold; 
    border-radius: 25px;
    transition: 0.3s;
}

.btn-toggle:hover {
    background: var(--gold-primary);
    color: #000;
}

/* FAQ */
.faq-section { padding: 20px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.faq-head { padding: 18px; cursor: pointer; display: flex; justify-content: space-between; font-weight: bold; font-size: 14px; color: var(--gold-glow); }
.faq-body { max-height: 0; padding: 0 18px; transition: 0.3s ease-out; background: #08101a; color: var(--text-muted); }
.faq-item.active .faq-body { max-height: 300px; padding: 15px 18px; border-top: 1px solid var(--border-color); }

.banner-promo {
    padding: 10px 20px 30px; /* Memberi jarak atas dan bawah */
    text-align: center;
}

.banner-promo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px; /* Membuat sudut tumpul agar lebih modern */
    border: 1px solid var(--border-color); /* Frame tipis agar menyatu dengan tema */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Efek bayangan biar 'pop-out' */
    transition: transform 0.3s ease;
}

.banner-promo img:hover {
    transform: scale(1.01); /* Efek zoom halus saat disentuh kursor */
    border-color: var(--gold-primary);
}

/* Footer */
footer { padding: 40px 20px; text-align: center; border-top: 1px solid var(--border-color); background: #000; }
.footer-links a { color: var(--gold-primary); text-decoration: none; font-size: 13px; margin: 0 10px; }
.copyright { margin-top: 20px; font-size: 12px; color: #475569; }

@media (max-width: 480px) {
    .brand-grid { grid-template-columns: repeat(3, 1fr); }
    .jp-display { font-size: 24px; }
}