:root {
    --bg-dark: #050505;
    --bg-card: #151515;
    --bg-card-hover: #1f1f1f;
    --gold-light: #fceabb;
    --gold-main: #f8b500;
    --gold-dark: #b38000;
    --text-light: #ffffff;
    --text-muted: #aaaaaa;
    --border-gold: #f8b500;
    --neon-glow: 0 0 10px rgba(248, 181, 0, 0.6), 0 0 20px rgba(248, 181, 0, 0.4);
}

/* ANIMASI BACKGROUND BERGERAK */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ANIMASI CAHAYA KELAP KELIP */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px var(--gold-main); }
    50% { box-shadow: 0 0 20px var(--gold-main), 0 0 30px var(--gold-light); }
    100% { box-shadow: 0 0 5px var(--gold-main); }
}

/* ANIMASI MENGAPUNG (GERAK NAIK TURUN) */
@keyframes floatUpDown {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* ANIMASI DETAK JANTUNG / MEMBESAR MENGECIL */
@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* ANIMASI TEKS BERCAHAYA */
@keyframes textGlow {
    0% { text-shadow: 0 0 10px var(--gold-main); }
    50% { text-shadow: 0 0 25px var(--gold-light), 0 0 15px var(--gold-main); }
    100% { text-shadow: 0 0 10px var(--gold-main); }
}

body {
    /* Menerapkan Background Bergerak */
    background: linear-gradient(-45deg, #050505, #1a1a1a, #2b1d00, #000000);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    
    color: var(--text-light);
    font-family: 'Rubik', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.header-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--gold-main);
    margin: 30px 0 20px 0;
    letter-spacing: 4px;
    text-transform: uppercase;
    /* Animasi Gerak Pada Judul */
    animation: textGlow 2s infinite, heartbeat 3s infinite;
}
.header-title span { color: #fff; text-shadow: none; }

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.btn-action {
    background: linear-gradient(to bottom, #ffe066 0%, #f8b500 100%);
    color: #000 !important;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.1rem;
    border: 1px solid #fff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(248, 181, 0, 0.3);
    /* Menambahkan efek gerak konstan pada tombol */
    animation: floatUpDown 4s ease-in-out infinite;
}

/* Variasi delay animasi supaya geraknya tidak bersamaan semua */
.btn-action:nth-child(1) { animation-delay: 0s; }
.btn-action:nth-child(2) { animation-delay: 0.5s; }
.btn-action:nth-child(3) { animation-delay: 1s; }
.btn-action:nth-child(4) { animation-delay: 1.5s; }

.btn-action:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(to bottom, #fff 0%, #ffe066 100%);
    box-shadow: var(--neon-glow);
    animation-play-state: paused; /* Berhenti saat di-hover */
}

.announcement {
    background: linear-gradient(90deg, #111, #222, #111);
    border: 1px solid var(--gold-main);
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--gold-light);
    font-weight: bold;
    margin-bottom: 30px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    /* Animasi glowing pada box pengumuman */
    animation: pulseGlow 3s infinite;
}

.banner-container {
    width: 100%;
    max-width: 750px;
    overflow: hidden; 
    border-radius: 12px;
    margin: 20px auto;
    border: 2px solid var(--gold-main);
    box-shadow: var(--neon-glow);
    /* Animasi Mengapung Pada Banner */
    animation: floatUpDown 5s ease-in-out infinite;
}
.banner-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}
.banner-container:hover img {
    transform: scale(1.05);
}

.root {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* SIDEBAR PREMIUM SGCWIN STYLE */
.slot-sidebar {
    width: 280px;
    background: var(--bg-card);
    border: 1px solid #333;
    border-top: 3px solid var(--gold-main);
    border-radius: 12px;
    padding: 15px;
    position: sticky;
    top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    box-sizing: border-box;
    /* Animasi sidebar */
    animation: floatUpDown 6s ease-in-out infinite;
}
.sidebar-header {
    text-align: center;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.sidebar-header h3 { margin: 10px 0 5px 0; font-size: 1.8rem; color: var(--gold-main); font-weight: 900; }
.sidebar-header h4 { margin: 0; color: var(--text-muted); font-size: 0.9rem; letter-spacing: 2px; }

.slot-sidebar-nav { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    max-height: 500px; 
    overflow-y: auto; 
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-right: 5px;
}

.slot-sidebar-nav::-webkit-scrollbar { width: 4px; }
.slot-sidebar-nav::-webkit-scrollbar-track { background: #000; }
.slot-sidebar-nav::-webkit-scrollbar-thumb { background: var(--gold-main); border-radius: 10px; }

.slot-sidebar-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 12px 5px;
    background: #0a0a0a;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #222;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 0.8rem;
}
.slot-sidebar-nav a i { font-size: 1.3rem; color: var(--gold-dark); transition: all 0.3s ease; }

.slot-sidebar-nav a:hover, .slot-sidebar-nav a.active {
    background: linear-gradient(145deg, #2a2a2a, #111);
    color: var(--gold-light);
    border-color: var(--gold-main);
    box-shadow: inset 0 0 10px rgba(248, 181, 0, 0.2);
    transform: scale(1.05); /* Membesar saat disentuh */
}
.slot-sidebar-nav a:hover i, .slot-sidebar-nav a.active i {
    color: var(--gold-main);
    transform: scale(1.2) rotate(5deg);
}

.content { flex: 1; width: 100%; }
.provider-section {
    margin-bottom: 40px;
    background: rgba(20, 20, 20, 0.6);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #222;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    /* Animasi masuk perlahan */
    animation: heartbeat 5s infinite ease-in-out;
}

.game-title {
    background: linear-gradient(90deg, transparent, rgba(248, 181, 0, 0.2), transparent);
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-top: 1px solid var(--gold-main);
    border-bottom: 1px solid var(--gold-main);
}
.game-title h2 { margin: 0; font-size: 1.4rem; color: var(--gold-main); text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 0 5px rgba(0,0,0,0.8); }

.wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.9);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.card:hover { 
    transform: translateY(-5px); 
    border-color: var(--gold-main);
    box-shadow: var(--neon-glow);
}
.card img { width: 100%; height: auto; display: block; }

@keyframes loadingBar {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

.percent {
    background: #222;
    height: 28px;
    position: relative;
    overflow: hidden;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}
.percent-bar {
    height: 100%;
    background-color: #f1c40f;
    background-image: linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);
    background-size: 30px 30px;
    animation: loadingBar 1s linear infinite;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
.percent-bar.hijau { background-color: #00e676; box-shadow: 0 0 10px #00e676; }
.percent-bar.kuning { background-color: #ffea00; box-shadow: 0 0 10px #ffea00;}
.percent-bar.merah { background-color: #ff1744; box-shadow: 0 0 10px #ff1744;}

.percent-txt {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    margin: 0; font-weight: 900; color: #fff; z-index: 2;
    text-shadow: 1px 1px 2px #000, -1px -1px 2px #000;
    letter-spacing: 1px;
}

.detail-wrapper { 
    background: #111; 
    padding: 12px; 
    color: #fff; 
    text-align: center; 
    flex: 1; 
}
.detail-box { 
    background: #1a1a1a;
    border: 1px solid #333; 
    margin-bottom: 10px; 
    border-radius: 6px; 
    padding: 8px; 
}
.detail-box:last-child { margin-bottom: 0; }
.detail-box h5 { 
    margin: 0 0 8px 0; 
    color: var(--gold-main); 
    font-size: 0.9rem; 
    font-weight: 900; 
    border-bottom: 1px dashed #444; 
    padding-bottom: 5px; 
    text-transform: uppercase;
}
.detail-box p { 
    margin: 4px 0; 
    font-weight: bold; 
    font-size: 0.85rem; 
    color: #ddd; 
    text-align: center; 
}
.jamgacorRange { 
    font-size: 0.9rem; 
    font-weight: 900; 
    color: #00e676 !important;
    margin: 0; 
    text-align: center !important; 
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .header-title { font-size: 2rem; margin: 15px 0; }
    .root { flex-direction: column; gap: 15px; }
    
    .slot-sidebar { 
        width: 100%; 
        position: relative; 
        top: 0; 
        padding: 12px; 
        animation: none; /* Matikan animasi gerak di mobile agar tidak mengganggu */
    }
    .sidebar-header h3 { font-size: 1.5rem; }
    
    .slot-sidebar-nav { 
        max-height: 220px; 
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .slot-sidebar-nav a { padding: 10px 5px; font-size: 0.75rem; }
    
    .wrapper { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .action-buttons { grid-template-columns: 1fr 1fr; gap: 10px; }
    .btn-action { font-size: 0.9rem; padding: 12px; }
    
    .provider-section { padding: 15px; animation: none; }
    .banner-container { padding: 0; margin: 15px auto; }
}

@media (max-width: 400px) {
    .wrapper { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .slot-sidebar-nav { grid-template-columns: repeat(2, 1fr); }
    .detail-box h5 { font-size: 0.75rem; }
    .detail-box p { font-size: 0.7rem; }
    .btn-action { font-size: 0.8rem; padding: 10px; gap: 5px; }
}

footer {
    background-color: #0a0a0a;
    color: #fff;
    padding: 25px 20px;
    border-top: 2px solid var(--gold-main);
    margin-top: 40px;
    text-align: center;
}

#footer-wrapper {
    background: #050505;
}

.credit-link {
    font-size: 0.9rem;
    color: #888;
}
.credit-link a {
    color: var(--gold-main);
    text-decoration: none;
    font-weight: bold;
}
.credit-link a:hover {
    color: #fff;
    text-shadow: var(--neon-glow);
}