:root {
    --bg-dark: #0f121e; --bg-card: #1a1f2e; --accent-gold: #fbbf24; 
    --accent-red: #ef4444; --text-main: #fff; --text-muted: #94a3b8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background-color: var(--bg-dark); color: var(--text-main); overflow-x: hidden; }

/* Header */
.header { background: linear-gradient(180deg, #1e2330 0%, #0f121e 100%); padding: 20px; text-align: center; border-bottom: 2px solid #2a3146; position: sticky; top: 0; z-index: 100; }
.header h1 { font-size: 2rem; font-weight: 900; background: linear-gradient(to right, var(--accent-gold), #fff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.live-info { display: flex; justify-content: center; gap: 20px; margin-top: 10px; font-size: 0.9rem; color: var(--text-muted); }
.clock { color: #10b981; font-weight: 700; }
.search-box { max-width: 500px; margin: 15px auto; position: relative; }
.search-box input { width: 100%; padding: 12px 20px 12px 45px; border-radius: 50px; border: 1px solid #2a3146; background: #141824; color: white; outline: none; }
.search-box i { position: absolute; left: 15px; top: 12px; color: var(--text-muted); }

/* Slider */
.slider-container { max-width: 1200px; margin: 20px auto; overflow: hidden; border-radius: 15px; }
.slider { display: flex; transition: transform 0.5s ease; }
.slide { min-width: 100%; height: 180px; display: flex; align-items: center; justify-content: center; background-size: cover; }
.slide-box { background: rgba(0,0,0,0.7); padding: 20px; border-radius: 10px; border: 1px solid var(--accent-gold); text-align: center; }
.slide-box h2 { color: var(--accent-gold); }
.slide-box p { color: #ddd; font-size: 0.9rem; }
.s1 { background: linear-gradient(45deg, #ff416c, #ff4b2b); }
.s2 { background: linear-gradient(45deg, #11998e, #38ef7d); }
.s3 { background: linear-gradient(45deg, #373B44, #4286f4); }
.dots { text-align: center; margin-top: 10px; }
.dot { height: 10px; width: 10px; background-color: #2a3146; border-radius: 50%; display: inline-block; margin: 0 5px; cursor: pointer; }
.dot.active { background-color: var(--accent-gold); }

/* Filter */
.filter-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 20px; background: #141824; }
.btn-filter { background: transparent; border: 1px solid #2a3146; color: var(--text-muted); padding: 8px 20px; border-radius: 20px; cursor: pointer; transition: 0.2s; }
.btn-filter:hover, .btn-filter.active { background: var(--accent-gold); color: #000; border-color: var(--accent-gold); }

/* Grid */
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px 50px; }
.provider-section { margin-bottom: 40px; }
.provider-title { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #2a3146; }
.provider-logo { width: 30px; height: 30px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #000; font-weight: bold; font-size: 0.8rem; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }

/* Card */
.game-card { background: var(--bg-card); border-radius: 10px; overflow: hidden; transition: 0.3s; position: relative; border: 1px solid transparent; }
.game-card:hover { transform: translateY(-5px); border-color: var(--accent-gold); }
.game-card.gacor { border-color: #10b981; }
.game-img { height: 90px; background: #2a3146; position: relative; }
.game-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 5px; right: 5px; background: var(--accent-red); color: white; font-size: 9px; padding: 2px 6px; border-radius: 4px; font-weight: bold; z-index: 10; animation: pulse 2s infinite; }
.game-body { padding: 8px; text-align: center; }
.game-name { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rtp-box { background: #141824; border-radius: 6px; padding: 6px; margin-top: 4px; }
.rtp-val { font-size: 1.2rem; font-weight: 900; color: #10b981; }
.gacor .rtp-val { color: var(--accent-red); text-shadow: 0 0 5px var(--accent-red); }

/* Footer */
.footer-section { background: #141824; padding: 40px 20px; margin-top: 50px; text-align: center; border-top: 1px solid #2a3146; }
.footer-section h3 { color: var(--accent-gold); margin-bottom: 10px; }
.footer-section p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Animation */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.flip { animation: flipAnim 0.5s; }
@keyframes flipAnim { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); opacity: 0.5; } 100% { transform: rotateX(0); } }

@media (max-width: 600px) {
    .header h1 { font-size: 1.5rem; }
    .game-grid { grid-template-columns: repeat(2, 1fr); }
}