:root {
    --bg-dark: #0f0f13;
    --bg-card: rgba(30, 30, 36, 0.8);
    --gold-primary: #f5c518;
    --gold-gradient: linear-gradient(to bottom, #ffe87a, #b8860b);
    --gold-gradient-hover: linear-gradient(to bottom, #fff3a6, #daa520);
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --red-rtp: #ff3333;
    --yellow-rtp: #ffcc00;
    --green-rtp: #00cc44;
    --border-color: rgba(245, 197, 24, 0.3);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    background-image: radial-gradient(circle at 50% 0%, #2a2a35 0%, #0f0f13 70%);
    background-attachment: fixed;
    min-height: 100vh;
}

.text-gold {
    color: var(--gold-primary);
}

/* Header */
.header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px 5%;
    background: rgba(15, 15, 19, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.burger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 25px;
    z-index: 101;
}

.burger-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--gold-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-gold {
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(245, 197, 24, 0.5);
}

.logo-white {
    color: var(--text-white);
}

.logo-subtitle {
    font-size: 10px;
    color: var(--gold-primary);
    letter-spacing: 2px;
    margin-top: -2px;
}

.live-chat {
    background: var(--gold-gradient);
    color: #000;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(245, 197, 24, 0.3);
}

.live-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 197, 24, 0.5);
    background: var(--gold-gradient-hover);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Top Nav Buttons */
.nav-buttons-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.nav-btn-elegant {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 24, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 5px;
    text-decoration: none;
    color: var(--text-white);
    font-size: 11px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.nav-btn-elegant .icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.nav-btn-elegant:hover, .nav-btn-elegant.active {
    background: var(--gold-gradient);
    color: #000;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(245, 197, 24, 0.4);
    transform: translateY(-2px);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(20, 20, 24, 0.95);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 20px rgba(0,0,0,0.5);
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    color: var(--gold-primary);
    font-size: 16px;
    letter-spacing: 1px;
}

.close-sidebar {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-sidebar:hover {
    color: var(--gold-primary);
}

/* Providers in Sidebar */
.providers-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) var(--bg-dark);
}

.providers-container::-webkit-scrollbar {
    width: 6px;
}

.providers-container::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.providers-container::-webkit-scrollbar-thumb {
    background-color: var(--gold-primary);
    border-radius: 10px;
}

.provider-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 15px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    width: 100%;
}

.provider-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-primary);
    padding-left: 25px;
}

.provider-btn.active {
    background: var(--gold-gradient);
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(245, 197, 24, 0.4);
}

/* Games Section */
.section-title {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.section-title h2 {
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Search Bar */
.search-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
}

.game-search-input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(30, 30, 36, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-white);
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.game-search-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(245, 197, 24, 0.3);
}

.game-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 15px 40px rgba(245, 197, 24, 0.2);
}

.game-img-container {
    width: 100%;
    height: 100px;
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.game-img-placeholder {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.2);
}

.game-info {
    padding: 10px;
}

.game-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* RTP Bar */
.rtp-container {
    margin-bottom: 15px;
}

.rtp-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 5px;
}

.rtp-bar-bg {
    width: 100%;
    height: 10px;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
}

.rtp-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease-in-out, background-color 1s ease;
}

.rtp-status-green .rtp-bar-fill { background-color: var(--green-rtp); box-shadow: 0 0 10px var(--green-rtp); }
.rtp-status-yellow .rtp-bar-fill { background-color: var(--yellow-rtp); box-shadow: 0 0 10px var(--yellow-rtp); }
.rtp-status-red .rtp-bar-fill { background-color: var(--red-rtp); box-shadow: 0 0 10px var(--red-rtp); }

.rtp-status-green .rtp-value { color: var(--green-rtp); }
.rtp-status-yellow .rtp-value { color: var(--yellow-rtp); }
.rtp-status-red .rtp-value { color: var(--red-rtp); }

/* Details */
.game-details {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    align-items: center;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: var(--text-gray);
    font-weight: 600;
    font-size: 11px;
}

.detail-value {
    font-weight: 700;
    color: var(--gold-primary);
    font-size: 11px;
}

.pola-value {
    font-family: monospace;
    background: rgba(245, 197, 24, 0.1);
    padding: 3px 4px;
    border-radius: 4px;
    font-size: 10px;
}

.play-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--gold-gradient);
    color: #000;
    text-decoration: none;
    padding: 8px;
    margin-top: 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 12px;
    transition: opacity 0.2s;
}

.play-btn:hover {
    opacity: 0.9;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.updating .rtp-value {
    animation: pulse 0.5s ease-in-out;
}

/* Auth Buttons */
.auth-buttons-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

.auth-btn {
    flex: 1;
    max-width: 250px;
    padding: 14px 20px;
    text-align: center;
    border-radius: 8px;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    color: var(--text-white);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.auth-btn.btn-login {
    background: linear-gradient(135deg, #1a1a24, #2a2a35);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.auth-btn.btn-daftar {
    background: var(--gold-gradient);
    color: #000;
    border-color: #ffe600;
}

/* Shiny effect */
.auth-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.auth-btn:hover {
    transform: translateY(-2px);
}
.auth-btn.btn-login:hover {
    box-shadow: 0 6px 20px rgba(245, 197, 24, 0.2);
}
.auth-btn.btn-daftar:hover {
    box-shadow: 0 6px 20px rgba(245, 197, 24, 0.4);
}

/* Home Page Styles */
.home-section {
    padding-top: 10px;
}

.home-banners {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.home-banner {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.home-banner.banner-rtp {
    background: linear-gradient(135deg, rgba(30,30,36,0.9), rgba(139, 101, 8, 0.4)), url('https://file001.nxtengine.net/open-img-pub/games/pgsoft/65.jpg') center/cover;
}

.home-banner.banner-prediksi {
    background: linear-gradient(135deg, rgba(30,30,36,0.9), rgba(200, 0, 0, 0.4)), url('https://file001.nxtengine.net/open-img-pub/games/pgsoft/74.jpg') center/cover;
}

.home-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

.home-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(245, 197, 24, 0.3);
    border-color: var(--gold-primary);
}

.home-banner .banner-content {
    position: relative;
    z-index: 2;
}

.home-banner h3 {
    font-size: 24px;
    color: var(--gold-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.home-banner p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #eee;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.home-banner .banner-btn {
    display: inline-block;
    background: var(--gold-gradient);
    color: #000;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(245, 197, 24, 0.4);
}

.home-description {
    background: rgba(20, 20, 24, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    line-height: 1.8;
    color: var(--text-gray);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.home-description h3 {
    color: var(--gold-primary);
    margin-bottom: 15px;
    text-align: center;
    font-size: 20px;
}

.home-description p {
    margin-bottom: 15px;
    font-size: 14px;
    text-align: justify;
}

.home-description p:last-child {
    margin-bottom: 0;
}

/* Media Query for larger screens */
@media (min-width: 600px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .game-img-container {
        height: 150px;
    }
    
    .game-info {
        padding: 15px;
    }
    
    .game-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .rtp-header {
        font-size: 12px;
    }
    
    .detail-label, .detail-value {
        font-size: 13px;
    }
    
    .pola-value {
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .play-btn {
        padding: 10px;
        margin-top: 15px;
        font-size: 14px;
    }
    
    .home-banners {
        flex-direction: row;
    }
    
    .home-banner {
        flex: 1;
        padding: 50px 20px;
    }
}

/* Prediksi Page Styles */
.prediksi-section {
    padding-top: 10px;
}

.pasaran-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

@media (min-width: 600px) {
    .pasaran-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

.pasaran-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}

.pasaran-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-primary);
}

/* SPESIAL TOP 3 */
.pasaran-card.top-pasaran {
    background: linear-gradient(135deg, rgba(30,30,36,0.9), rgba(184, 134, 11, 0.3));
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 20px rgba(245, 197, 24, 0.3);
    position: relative;
}

.pasaran-card.top-pasaran::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #f5c518, transparent, #b8860b, transparent);
    z-index: -1;
    border-radius: 14px;
    animation: borderGlow 3s linear infinite;
    opacity: 0.5;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hot-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(to right, #ff0000, #ff5500);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 5px 10px rgba(255, 0, 0, 0.4);
    letter-spacing: 1px;
    z-index: 10;
    animation: pulse 1s infinite;
}

.pasaran-info h3 {
    color: var(--gold-primary);
    font-size: 20px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.pasaran-info .times {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #ccc;
}

.times span {
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 4px;
    border-left: 3px solid var(--gold-primary);
}

.view-prediksi-btn {
    background: var(--gold-gradient);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 3px 10px rgba(245, 197, 24, 0.3);
}

.view-prediksi-btn:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Modal Prediksi */
.prediksi-modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.prediksi-modal-content {
    background-color: var(--bg-dark);
    margin: 5% auto; 
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    width: 90%; 
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 15px 20px;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-white);
}

.prediksi-header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30,30,36,0.8);
}

.prediksi-header h3 {
    color: var(--text-white);
    font-size: 24px;
    letter-spacing: 1px;
}

.prediksi-header p {
    color: var(--gold-primary);
    font-size: 14px;
    margin-top: 5px;
}

.prediksi-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prediksi-box {
    background: rgba(0,0,0,0.3);
    border: 1px dashed rgba(245, 197, 24, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.prediksi-box.highlight-box {
    border-style: solid;
    border-color: var(--gold-primary);
    background: rgba(245, 197, 24, 0.05);
}

.prediksi-box h4 {
    color: var(--text-gray);
    font-size: 12px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.angka-large {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 5px;
}

.angka-medium {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
}

.angka-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.angka-grid span {
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 16px;
    color: var(--text-white);
}

.prediksi-row {
    display: flex;
    gap: 15px;
}

.prediksi-box.half {
    flex: 1;
}
