:root {
    --bg-dark: #0a0a12;
    --primary: #ff0055;
    --secondary: #00e5ff;
    --text: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    padding-bottom: 80px;
    overflow-x: hidden;
}

/* ===== FIREFLY ANIMATION ===== */
.firefly-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.firefly {
    position: absolute;
    width: 4px; height: 4px;
    background: radial-gradient(circle, #fff, var(--secondary), transparent);
    border-radius: 50%;
    animation: fly 10s infinite linear;
    opacity: 0.7;
}
@keyframes fly {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)); opacity: 0; }
}

/* ===== STICKY HEADER ===== */
.sticky-header {
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a12 100%);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    z-index: 1000;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 4px 15px rgba(255,0,85,0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.site-title {
    color: var(--primary);
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.desktop-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: rgba(0,229,255,0.1);
    border-color: var(--secondary);
    color: var(--secondary);
}

.menu-icon {
    font-size: 16px;
}

.btn-app {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-app:hover {
    background: rgba(0,229,255,0.15);
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
}

.btn-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-masuk {
    background: linear-gradient(135deg, #ff0055 0%, #ff3366 100%);
    color: var(--text);
    box-shadow: 0 4px 15px rgba(255,0,85,0.4);
}

.btn-masuk:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,0,85,0.6);
}

.btn-daftar {
    background: linear-gradient(135deg, var(--secondary) 0%, #0099aa 100%);
    color: #000000;
    box-shadow: 0 4px 15px rgba(0,229,255,0.4);
}

.btn-daftar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,229,255,0.6);
}

.btn-icon {
    font-size: 16px;
}

.btn-label {
    white-space: nowrap;
}

.desktop-only {
    display: flex;
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 20px auto;
    gap: 20px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.content-area { 
    width: 100%; 
    flex: 1; 
}

/* ===== GAME MENU (HORIZONTAL SLIDER) ===== */
.game-menu {
    width: 100%;
    background: var(--glass);
    border-radius: 15px;
    padding: 15px;
    border: 2px solid rgba(0,229,255,0.3);
    box-shadow: 0 0 30px rgba(0,229,255,0.2);
    backdrop-filter: blur(10px);
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.game-menu h3 { display: none; }

.provider-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 10px;
}

.provider-list::-webkit-scrollbar { height: 8px; }
.provider-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); border-radius: 4px; }
.provider-list::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.provider-list li { margin: 0; flex-shrink: 0; display: inline-block; }

.provider-list a {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--secondary);
    white-space: nowrap;
    font-weight: 500;
}

.provider-list a:hover {
    background: rgba(0,229,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,229,255,0.3);
}

.provider-list li.active a {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    font-weight: bold;
    box-shadow: 0 0 20px rgba(255,0,85,0.5);
}

/* ===== PREDICTION TABLE ===== */
.prediction-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}
.prediction-table th, .prediction-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.prediction-table th {
    background: rgba(255,0,85,0.2);
    color: var(--secondary);
    font-weight: bold;
    text-transform: uppercase;
}
.rtp-bar {
    background: #333;
    height: 25px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.rtp-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0055, #ffcc00, var(--secondary));
    transition: width 1.5s;
}
.rtp-bar span {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 25px;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
}
.btn-cek-pola {
    background: linear-gradient(135deg, var(--secondary), #0099aa);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    animation: pulse 2s infinite;
}
@keyframes pulse { 
    0% { box-shadow: 0 0 0 0 rgba(0,229,255,0.7); } 
    50% { box-shadow: 0 0 0 10px rgba(0,229,255,0); } 
    100% { box-shadow: 0 0 0 0 rgba(0,229,255,0); } 
}

/* ===== JACKPOT ===== */
.jackpot-section { 
    text-align: center; 
    margin: 30px 0; 
    padding: 25px; 
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,165,0,0.1)); 
    border-radius: 15px; 
    border: 2px solid gold;
}
.progress-bar-container { 
    background: #333; 
    height: 35px; 
    border-radius: 17px; 
    overflow: hidden; 
    margin: 15px 0;
}
.progress-bar-fill { 
    height: 100%; 
    background: linear-gradient(90deg, gold, orange, #ff6600); 
    width: 0%; 
    transition: width 3s;
}
.jackpot-amount { 
    font-size: 28px; 
    font-weight: bold; 
    color: gold; 
}

/* ===== LATEST POSTS (CARD SLIDER) ===== */
.latest-posts-section {
    margin: 30px 0;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(26,26,46,0.8) 0%, rgba(22,33,62,0.8) 100%);
    border-radius: 15px;
    border: 2px solid rgba(0,229,255,0.3);
    box-shadow: 0 0 30px rgba(0,229,255,0.15);
}

.latest-posts-section h3 {
    color: var(--secondary);
    margin: 0 0 25px 0;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.posts-slider {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 5px 25px 5px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.posts-slider::-webkit-scrollbar {
    height: 10px;
}

.posts-slider::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.posts-slider::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 5px;
}

.post-card {
    flex: 0 0 320px;
    min-width: 320px;
    background: linear-gradient(135deg, rgba(26,26,46,0.95) 0%, rgba(22,33,62,0.95) 100%);
    border: 2px solid rgba(255,0,85,0.4);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    display: block;
}

.post-card-inner {
    padding: 20px;
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255,0,85,0.5);
    border-color: var(--primary);
}

.post-date {
    display: inline-block;
    font-size: 12px;
    color: var(--secondary);
    margin-bottom: 12px;
    padding: 5px 12px;
    background: rgba(0,229,255,0.15);
    border-radius: 5px;
    font-weight: bold;
}

.post-provider {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--secondary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card:hover .post-read-more {
    color: var(--primary);
}

/* ===== AUTO POST CONTENT ===== */
.auto-post-content {
    background: var(--glass);
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--primary);
}
.auto-post-content h3 {
    color: var(--secondary);
    margin-bottom: 15px;
}
.auto-post-content p {
    line-height: 1.6;
    margin-bottom: 10px;
}

/* ===== TICKER ===== */
.ticker-wrap { 
    overflow: hidden; 
    white-space: nowrap; 
    background: rgba(0,0,0,0.3); 
    padding: 15px 0;
    border-radius: 8px;
    margin: 20px 0;
}
.ticker { 
    display: inline-block; 
    animation: ticker 30s linear infinite; 
}
.ticker-item { 
    display: inline-block; 
    padding: 0 30px; 
    color: var(--secondary); 
    font-weight: bold; 
}
@keyframes ticker { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } 
}

/* ===== FAQ ===== */
.faq-section { 
    margin: 30px 0;
}
.faq-section h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 22px;
}
.faq-item { 
    background: var(--glass); 
    margin-bottom: 10px; 
    border-radius: 8px; 
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.faq-question { 
    padding: 15px 20px; 
    cursor: pointer; 
    font-weight: bold; 
    display: flex; 
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}
.faq-question:hover { 
    background: rgba(255,255,255,0.1); 
}
.faq-question::after { 
    content: '+'; 
    font-size: 24px; 
    color: var(--primary);
    font-weight: bold;
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after { 
    content: '−'; 
    color: var(--secondary);
    transform: rotate(180deg);
}
.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s ease, padding 0.3s ease; 
    padding: 0 20px;
    background: rgba(0,0,0,0.2);
}
.faq-item.active .faq-answer { 
    max-height: 200px; 
    padding: 15px 20px;
}
.faq-answer p {
    line-height: 1.6;
    color: #ccc;
}

/* ===== STICKY FOOTER ===== */
.sticky-footer {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 2px solid var(--primary);
    z-index: 1000;
}
.footer-btn {
    color: white; 
    text-decoration: none; 
    font-weight: bold; 
    padding: 12px 25px; 
    border-radius: 8px; 
    text-align: center; 
    flex: 1; 
    margin: 0 5px;
}
.footer-btn.login { background: #333; }
.footer-btn.daftar { 
    background: linear-gradient(135deg, var(--primary), #ff3366); 
    animation: pulse 1.5s infinite; 
}
.footer-btn.promo { 
    background: linear-gradient(135deg, var(--secondary), #0099aa); 
    color: black;
}

/* ===== MODAL ===== */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.9);
}
.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e); 
    margin: 10% auto; 
    padding: 30px; 
    border: 2px solid var(--secondary); 
    border-radius: 15px; 
    width: 90%; 
    max-width: 450px; 
    text-align: center; 
    position: relative;
}
.close-modal { 
    position: absolute; 
    top: 15px; right: 20px; 
    font-size: 32px; 
    cursor: pointer; 
    color: var(--primary); 
}
.pola-details { 
    display: flex; 
    justify-content: space-around; 
    margin: 25px 0; 
    gap: 10px; 
}
.pola-box { 
    background: rgba(255,255,255,0.1); 
    padding: 15px; 
    border-radius: 10px; 
    flex: 1; 
}
.pola-box strong { 
    display: block; 
    font-size: 24px; 
    color: var(--secondary); 
    margin-top: 8px; 
}
.css-bar-chart { 
    height: 180px; 
    display: flex; 
    align-items: flex-end; 
    justify-content: center; 
    margin-top: 25px; 
    background: rgba(0,0,0,0.3); 
    border-radius: 10px; 
    padding: 20px; 
}
.bar { 
    width: 80px; 
    background: linear-gradient(to top, var(--primary), var(--secondary)); 
    border-radius: 10px 10px 0 0; 
    transition: height 1.5s; 
    position: relative; 
}
.bar span { 
    position: absolute; 
    top: -30px; 
    width: 100%; 
    text-align: center; 
    font-weight: bold; 
    font-size: 18px; 
    color: var(--secondary); 
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .sticky-header {
        padding: 10px 15px;
    }
    
    .header-container {
        gap: 10px;
    }
    
    .header-left {
        gap: 15px;
    }
    
    .site-logo {
        height: 35px;
    }
    
    .site-title {
        font-size: 16px;
    }
    
    /* Hide desktop elements */
    .desktop-menu,
    .btn-app {
        display: none !important;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .btn-auth {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .latest-posts-section {
        padding: 20px 15px;
    }
    
    .latest-posts-section h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .post-card {
        flex: 0 0 280px;
        min-width: 280px;
    }
    
    .post-card-inner {
        padding: 15px;
    }
    
    .post-title {
        font-size: 13px;
    }
    
    .post-provider {
        font-size: 14px;
    }
}