/* --- TEMA ROYAL GOLD & LUXURY BLACK --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@300;400;600&display=swap');

:root {
    /* Palette Warna Mewah */
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 20, 0.85);
    --bg-glass: rgba(30, 30, 30, 0.6);
    
    /* Aksen Emas */
    --gold-primary: #d4af37; 
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --gold-text: #e5c76b;
    
    /* Warna Pendukung */
    --text-white: #ffffff;
    --text-grey: #a0a0a0;
    --accent-red: #c0392b; 
    --accent-green: #27ae60; 
    
    /* Dimensi */
    --container-width: 1200px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, .brand-font { font-family: 'Playfair Display', serif; }

/* --- BACKGROUND CANVAS --- */
#goldCanvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
    background: radial-gradient(circle at center, #111111 0%, #000000 100%);
}

/* --- UTILITIES --- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.text-gold { color: var(--gold-primary); }
.text-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* --- NAVBAR --- */
.navbar {
    position: fixed; top: 0; width: 100%;
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 15px 0; z-index: 1000;
    backdrop-filter: blur(10px);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 45px; width: auto; transition: 0.3s; }
.logo-img:hover { transform: scale(1.05); filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5)); }

.nav-menu { display: flex; gap: 30px; list-style: none; }
.nav-menu li a {
    color: var(--text-grey); text-decoration: none; font-weight: 500;
    font-size: 0.95rem; transition: 0.3s; position: relative;
}
.nav-menu li a:hover, .nav-menu li a.active { color: var(--gold-text); }
.nav-menu li a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0;
    background: var(--gold-primary); transition: 0.3s;
}
.nav-menu li a:hover::after { width: 100%; }

.auth-buttons { display: flex; gap: 15px; }
.btn {
    padding: 10px 24px; border-radius: 50px; font-weight: 600; text-decoration: none;
    font-size: 0.9rem; transition: all 0.3s ease; letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}
.btn-login { background: transparent; border: 1px solid var(--gold-primary); color: var(--gold-primary); }
.btn-login:hover { background: rgba(212, 175, 55, 0.1); }
.btn-register {
    background: var(--gold-gradient); color: #000; border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5); }

.mobile-menu-btn { display: none; font-size: 1.5rem; color: var(--gold-primary); cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
    margin-top: 100px; padding: 80px 20px 60px; text-align: center; position: relative;
}
.status-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; border-radius: 4px;
    background: rgba(39, 174, 96, 0.15); color: var(--accent-green); border: 1px solid var(--accent-green);
    font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 25px;
}
.hero h1 { font-size: 3.2rem; line-height: 1.2; margin-bottom: 20px; color: #fff; }
.hero .subtitle {
    font-size: 1.1rem; color: var(--text-grey); max-width: 700px; margin: 0 auto 35px; font-weight: 300;
}
.stats-bar { display: flex; justify-content: center; gap: 30px; margin-top: 20px; }
.stat-item {
    background: var(--bg-glass); border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 25px; border-radius: 8px; display: flex; align-items: center; gap: 10px;
}
.stat-item i { color: var(--gold-primary); }
.stat-item span { font-weight: 600; color: var(--text-white); }

/* --- PROVIDER SECTION --- */
.provider-section { padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }

.provider-scroll {
    display: flex !important;             
    flex-direction: row !important;         
    flex-wrap: nowrap !important;           
    gap: 15px;                               
    overflow-x: auto !important;             
    padding: 10px 5px 30px 5px;
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth;
    -ms-overflow-style: none; 
    scrollbar-width: none;
}
.provider-scroll::-webkit-scrollbar { display: none; }

.provider-item {
    flex: 0 0 auto; width: 100px; height: 110px;  
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    scroll-snap-align: center;
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    position: relative; z-index: 1; 
    text-decoration: none;
    -webkit-tap-highlight-color: transparent; 
}

/* Badge */
.provider-item[data-badge]::after {
    content: attr(data-badge);
    position: absolute; top: -5px; right: -5px; font-size: 0.55rem; padding: 2px 6px;
    border-radius: 4px; color: #000; font-weight: 800; z-index: 10;
}
[data-badge-type="promo"]::after { background: #ff4d4d; }
[data-badge-type="new"]::after { background: #00e676; }

.provider-item:hover {
    transform: translateY(-10px) scale(1.08) !important; 
    border-color: var(--gold-primary) !important; 
    background: rgba(212, 175, 55, 0.15); 
    z-index: 10; 
    box-shadow: 0 20px 30px rgba(212, 175, 55, 0.3) !important; 
}

.provider-item.active {
    background: var(--gold-gradient); 
    border: none;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    z-index: 5;
}
.provider-item.active img { filter: brightness(0); transform: scale(1.1); } 
.provider-item.active .provider-name { color: #000; font-weight: 800; }

.provider-item img { 
    width: 45px; height: 45px; object-fit: contain; margin-bottom: 8px; 
    pointer-events: none; filter: grayscale(100%); transition: 0.3s;
} 
.provider-item:hover img { filter: grayscale(0%); }
.provider-item .provider-name {
    font-size: 0.65rem; font-weight: 600; color: var(--text-grey); 
    text-transform: uppercase; pointer-events: none; text-align: center;
}

/* --- BANNER --- */
.banner-container { padding: 30px 20px; }
.promo-img { width: 100%; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid rgba(212, 175, 55, 0.3); }

/* --- GAMES GRID --- */
.games-area { padding: 40px 20px; min-height: 500px; }
.grid-container {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px;
}
@media(min-width: 992px) { .grid-container { grid-template-columns: repeat(6, 1fr); gap: 20px; } }

.game-card {
    background: var(--bg-card); border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05); position: relative;
    transition: 0.3s; cursor: pointer;
}
.game-card:hover { border-color: var(--gold-primary); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

.card-wrapper { position: relative; overflow: hidden; }
.card-thumb { 
    width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; 
    transition: transform 0.5s ease;
}
.game-card:hover .card-thumb { transform: scale(1.1); }

.card-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s;
    z-index: 5;
}
.game-card:hover .card-overlay { opacity: 1; }

.btn-play {
    background: var(--gold-gradient); color: #000; padding: 8px 20px;
    border-radius: 20px; font-weight: bold; font-size: 0.8rem; text-transform: uppercase;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    text-decoration: none;
}

.ribbon, .game-badge {
    position: absolute; top: 10px; left: 10px; background: var(--accent-red);
    color: white; font-size: 0.65rem; font-weight: 700; padding: 3px 8px;
    border-radius: 4px; z-index: 6; box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.card-body { padding: 12px; background: #111; border-top: 1px solid #222; }
.game-title {
    font-size: 0.8rem; font-weight: 600; color: #fff; margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-dev { font-size: 0.65rem; color: var(--text-grey); margin-bottom: 12px; }

.rtp-section { display: flex; flex-direction: column; gap: 5px; }
.rtp-labels { display: flex; justify-content: space-between; font-size: 0.7rem; font-weight: 600; }
.rtp-bar-bg {
    width: 100%; height: 10px; background: #222; border-radius: 5px; overflow: hidden;
    position: relative; border: 1px solid rgba(255,255,255,0.1);
}
.rtp-bar-fill { height: 100%; width: 0%; border-radius: 5px; transition: width 1s ease, background 0.3s; position: relative; z-index: 1; }

.rtp-med { background: var(--gold-primary); } 
.rtp-low { background: var(--accent-red); }  
.rtp-bad { background: #555; }               
.rtp-high { 
    background: var(--accent-green); 
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.4); 
    overflow: hidden; 
}
.rtp-high::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    transform: skewX(-20deg); z-index: 2; animation: battery-charge 1.5s infinite linear;
}
@keyframes battery-charge { 0% { left: -100%; } 100% { left: 200%; } }

/* --- SEO & FOOTER --- */
.content-section { padding: 60px 20px; background: #080808; }
.article-box { max-width: 900px; margin: 0 auto; border-left: 4px solid var(--gold-primary); padding-left: 30px; }
.article-box h2 { font-size: 2rem; color: var(--gold-primary); margin-bottom: 20px; }
.article-box h3 { font-size: 1.4rem; color: #fff; margin-top: 30px; margin-bottom: 15px; }
.article-box p { color: var(--text-grey); margin-bottom: 15px; text-align: justify; font-size: 0.95rem; }

footer {
    background: #000; border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 50px 20px 100px; text-align: center;
}
.footer-logo { font-size: 2rem; font-family: 'Playfair Display', serif; margin-bottom: 15px; }
.footer-links a { color: var(--text-grey); margin: 0 15px; text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold-primary); }
.copyright { margin-top: 30px; color: #555; font-size: 0.8rem; }

/* --- BOTTOM NAV & MODAL --- */
.bottom-menu {
    display: flex; justify-content: space-around; align-items: center;
    position: fixed; bottom: 0; width: 100%; background: #000;
    border-top: 1px solid #222; padding: 12px 0; z-index: 999;
}
.menu-link { text-decoration: none; color: #666; display: flex; flex-direction: column; align-items: center; font-size: 0.7rem; gap: 4px; }
.menu-link i { font-size: 1.3rem; }
.menu-link.active, .menu-link:hover { color: var(--gold-primary); }
.menu-link.register { color: var(--gold-primary); }

.chat-widget { position: fixed; bottom: 85px; right: 20px; z-index: 998; }
.chat-btn {
    width: 55px; height: 55px; background: var(--gold-gradient); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #000;
    font-size: 24px; box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    animation: float 3s ease-in-out infinite;
    text-decoration: none;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(5px); }
.modal-content {
    background: #111; border: 1px solid var(--gold-primary);
    margin: 10% auto; padding: 40px; width: 90%; max-width: 600px;
    border-radius: 10px; position: relative; color: #fff;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}
.close-btn { position: absolute; top: 15px; right: 20px; color: #fff; font-size: 28px; cursor: pointer; transition: 0.3s; }
.close-btn:hover { color: var(--gold-primary); }
.modal-body h3 { color: var(--gold-primary); margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.modal-body p { color: #ccc; margin-bottom: 15px; font-size: 0.9rem; }
.action-btn { display: block; width: 100%; padding: 15px; text-align: center; background: var(--gold-primary); color: #000; text-decoration: none; font-weight: bold; border-radius: 6px; margin-top: 10px; }

@media(max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #000; flex-direction: column; padding: 20px; border-bottom: 2px solid var(--gold-primary); }
    .nav-menu.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .auth-buttons { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .grid-container { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}