/* ===== INDEX.HTML STYLES - Khusus Halaman Lobby ===== */

/* Featured Hero Banner */
.featured-hero {
    position: relative; 
    width: 100%; 
    height: 220px; 
    border-radius: 15px; 
    overflow: hidden;
    margin-bottom: 20px; 
    border: 1px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-bg { width: 100%; height: 100%; object-fit: cover; }

.hero-content {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%;
    background: linear-gradient(to top, #000 10%, transparent);
    padding: 20px 15px; 
    display: flex; 
    flex-direction: column; 
    gap: 5px;
}

.hero-tag { 
    background: var(--gold); 
    color: #000; 
    padding: 3px 10px; 
    border-radius: 4px; 
    font-size: 10px; 
    font-weight: bold; 
    width: fit-content; 
}

.hero-title { 
    font-family: 'Rajdhani'; 
    font-size: 24px; 
    font-weight: 800; 
    color: #fff; 
    line-height: 1; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.8); 
}

.play-now-btn {
    margin-top: 10px; 
    background: linear-gradient(90deg, #d4af37, #f4e04d);
    border: none; 
    color: #000; 
    font-weight: bold; 
    padding: 10px; 
    border-radius: 8px;
    cursor: pointer; 
    font-family: 'Rajdhani'; 
    letter-spacing: 1px;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 5px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); 
    animation: pulse 2s infinite; 
    text-decoration: none;
}

/* Horizontal Scroll Cards */
.h-scroll-wrapper {
    display: flex; 
    gap: 12px; 
    overflow-x: auto; 
    padding-bottom: 10px;
    scroll-snap-type: x mandatory; 
    margin-bottom: 20px;
    -ms-overflow-style: none; 
    scrollbar-width: none;
}

.h-scroll-wrapper::-webkit-scrollbar { display: none; }

.h-card {
    min-width: 130px; 
    border-radius: 10px; 
    overflow: hidden;
    border: 1px solid #333; 
    position: relative; 
    scroll-snap-align: start;
    background: #1a1a1a;
}

.h-card img { width: 100%; height: 130px; object-fit: cover; }
.h-info { padding: 8px; }
.h-title { 
    font-size: 10px; 
    color: #fff; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    font-weight: bold;
}
.h-rtp { 
    font-size: 9px; 
    color: var(--gold); 
    display: flex; 
    align-items: center; 
    gap: 3px; 
}

/* Sticky Category */
.sticky-cat {
    position: sticky; 
    top: 60px; 
    z-index: 90; 
    background: rgba(8,8,8,0.95);
    padding: 10px 0; 
    margin-bottom: 15px; 
    border-bottom: 1px solid #222;
}

.category-scroll { 
    display: flex; 
    gap: 10px; 
    overflow-x: auto; 
    padding-bottom: 10px; 
    scrollbar-width: none; 
}

.category-scroll::-webkit-scrollbar { display: none; }

.cat-btn {
    white-space: nowrap; 
    background: #222; 
    border: 1px solid #333;
    color: #888; 
    padding: 8px 16px; 
    border-radius: 20px; 
    font-size: 12px;
    cursor: pointer; 
    display: flex; 
    gap: 6px; 
    align-items: center; 
    transition: 0.3s;
}

.cat-btn.active, .cat-btn:hover { 
    background: var(--gold); 
    color: #000; 
    font-weight: bold; 
    border-color: var(--gold); 
}

/* Live Activity Bar */
.live-activity-bar {
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid #333; 
    border-radius: 4px;
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    height: 30px; 
    font-size: 11px;
}

.activity-icon { 
    background: var(--gold); 
    color: #000; 
    padding: 0 8px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: bold; 
    z-index: 2; 
}

.marquee-wrapper { 
    flex: 1; 
    overflow: hidden; 
    white-space: nowrap; 
    position: relative; 
}

.marquee-content { 
    display: inline-block; 
    padding-left: 100%; 
    animation: marquee 20s linear infinite; 
}

@keyframes marquee { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-100%); } 
}

.marquee-content span { margin-right: 30px; color: #ccc; }
.marquee-content strong { color: var(--gold); }

/* Jackpot Section */
.jackpot-section {
    text-align: center; 
    background: linear-gradient(to bottom, #222, #000);
    border: 1px solid var(--gold); 
    padding: 15px; 
    border-radius: 10px; 
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.jackpot-label { 
    font-size: 10px; 
    letter-spacing: 3px; 
    color: #888; 
    margin-bottom: 5px; 
    text-transform: uppercase; 
}

.jackpot-number {
    font-family: 'Rajdhani', sans-serif; 
    font-size: 28px; 
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--gold), #fff);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Promo Grid */
.promo-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px; 
    margin-bottom: 20px; 
}

.promo-item { 
    border-radius: 8px; 
    overflow: hidden; 
    border: 1px solid #333; 
    transition: transform 0.2s; 
    cursor: pointer; 
}

.promo-item:hover { 
    border-color: var(--gold); 
    transform: translateY(-3px); 
}

.promo-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}

/* Section Title */
.section-title { 
    font-size: 14px; 
    font-weight: bold; 
    color: #fff; 
    margin-bottom: 15px; 
    border-left: 3px solid var(--gold); 
    padding-left: 10px; 
}

/* Game Grid */
.game-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px; 
    align-items: stretch;
}

.game-card {
    background: #1a1a1a; 
    border-radius: 8px; 
    overflow: hidden; 
    position: relative;
    text-decoration: none; 
    border: 1px solid #333; 
    transition: transform 0.2s; 
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.game-card:hover { 
    border-color: var(--gold); 
    transform: translateY(-3px); 
    z-index: 2; 
}

.game-thumb { 
    width: 100%; 
    aspect-ratio: 1/1; 
    object-fit: cover; 
    display: block; 
}

.card-badge {
    position: absolute; 
    top: 5px; 
    right: 5px; 
    background: red; 
    color: white;
    font-size: 9px; 
    padding: 2px 6px; 
    border-radius: 4px; 
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); 
    z-index: 2; 
    animation: pulse 2s infinite;
}

.card-badge.new { background: #00aa00; }

.card-info { 
    padding: 8px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.g-title { 
    font-size: 11px; 
    color: #fff; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    margin-bottom: 5px; 
    display: block;
    min-height: 14px; 
}

.rtp-container { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    font-size: 9px; 
}

.rtp-label { color: #666; font-weight: bold; }
.rtp-track { 
    flex: 1; 
    height: 4px; 
    background: #333; 
    border-radius: 2px; 
    overflow: hidden; 
}

.rtp-fill { 
    height: 100%; 
    background: #00ff00; 
    transition: width 0.5s, background 0.5s; 
}

.rtp-val { 
    color: var(--gold); 
    font-weight: bold; 
    width: 25px; 
    text-align: right; 
}

/* Coming Soon Games */
.coming-soon-grid .game-card.disabled { 
    opacity: 0.6; 
    cursor: not-allowed; 
    border-color: #222; 
}

.game-thumb.grayscale { filter: grayscale(100%); }

.lock-icon {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    font-size: 24px; 
    color: #fff; 
    z-index: 5; 
    background: rgba(0,0,0,0.5);
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

/* Leaderboard */
.leaderboard-box { 
    background: #151515; 
    border: 1px solid #333; 
    border-radius: 10px; 
    padding: 10px; 
    margin-bottom: 20px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
}

.leaderboard-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-bottom: 2px solid var(--gold); 
    padding-bottom: 8px; 
    margin-bottom: 10px;
}

.lb-title { 
    font-family: 'Rajdhani'; 
    font-weight: bold; 
    color: #fff; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

.lb-refresh { 
    font-size: 10px; 
    color: #0f0; 
    cursor: pointer; 
    animation: pulse 2s infinite; 
}

.lb-table-container { 
    height: 180px; 
    overflow-y: auto; 
    scrollbar-width: thin; 
    scrollbar-color: #333 #111; 
}

.lb-table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 11px; 
}

.lb-table td { 
    padding: 8px 5px; 
    border-bottom: 1px solid #222; 
    color: #ccc; 
}

.lb-user { 
    font-weight: bold; 
    color: #fff; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

.lb-game { 
    color: #888; 
    font-style: italic; 
    font-size: 10px; 
}

.lb-amount { 
    color: #00ff00; 
    font-weight: bold; 
    text-align: right; 
    font-family: 'Rajdhani'; 
    font-size: 12px; 
}

.rank-1 { color: #ffd700; }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }

/* Voucher Card Inline */
.voucher-card-inline {
    background: linear-gradient(135deg, #1a1a1a, #000);
    border: 1px solid var(--gold);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Spin Wheel */
.spin-btn-floating {
    position: fixed; 
    bottom: 150px; 
    right: 20px; 
    z-index: 998;
    width: 55px; 
    height: 55px; 
    border-radius: 50%;
    background: radial-gradient(circle, #ff0000, #990000);
    border: 2px solid #fff; 
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    display: flex; 
    justify-content: center; 
    align-items: center;
    cursor: pointer; 
    animation: bounce 2s infinite;
}

.wheel-container { 
    position: relative; 
    width: 280px; 
    height: 280px; 
    margin: 0 auto; 
    border-radius: 50%; 
    border: 8px solid #d4af37; 
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5); 
    overflow: hidden; 
}

.wheel {
    width: 100%; 
    height: 100%; 
    border-radius: 50%;
    background: conic-gradient(
        #ff0000 0deg 60deg, 
        #000000 60deg 120deg, 
        #ff0000 120deg 180deg, 
        #000000 180deg 240deg, 
        #ff0000 240deg 300deg, 
        #000000 300deg 360deg
    );
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    position: relative;
}

.wheel-pointer {
    position: absolute; 
    top: -10px; 
    left: 50%; 
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 15px solid transparent;
    border-right: 15px solid transparent; 
    border-top: 25px solid #00ff00; 
    z-index: 5;
}

.spin-center-btn {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    width: 55px; 
    height: 55px; 
    background: #fff; 
    border-radius: 50%;
    border: 4px solid var(--gold); 
    z-index: 10; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    font-weight: bold;
    color: #000; 
    cursor: pointer; 
    font-family: 'Rajdhani';
}

/* Winner Toast */
.winner-toast {
    position: fixed; 
    top: 80px; 
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ff00; 
    border-left: 5px solid #00ff00;
    padding: 10px 15px; 
    border-radius: 5px;
    display: flex; 
    align-items: center; 
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,255,0,0.2);
    z-index: 9999; 
    opacity: 0; 
    pointer-events: none;
    transition: opacity 0.5s, top 0.5s;
    width: 90%; 
    max-width: 350px;
}

.winner-toast.show { opacity: 1; top: 90px; }

.winner-img { 
    width: 30px; 
    height: 30px; 
    border-radius: 50%; 
    object-fit: cover; 
    border:1px solid #fff; 
}

.winner-text { 
    font-size: 11px; 
    color: #fff; 
    line-height: 1.3; 
}

.winner-amount { 
    color: #00ff00; 
    font-weight: bold; 
    font-family: 'Rajdhani'; 
    font-size: 13px; 
}

/* Loading Screen */
#loading-screen {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: #000; 
    z-index: 9999;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    transition: opacity 0.5s;
}

.loader {
    width: 50px; 
    height: 50px; 
    border: 5px solid #333;
    border-top: 5px solid var(--gold); 
    border-radius: 50%;
    animation: spin 1s linear infinite; 
    margin-bottom: 20px;
}

.loading-text { 
    font-family: 'Rajdhani'; 
    color: var(--gold); 
    letter-spacing: 2px; 
    animation: pulse 1s infinite; 
}

/* Server Selector */
.server-selector-card {
    background: linear-gradient(135deg, #111, #000);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status-badge {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid #0f0;
    color: #0f0;
    font-family: 'Rajdhani';
}

.selector-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}

#server-select {
    flex: 1;
    background: #111;
    color: #fff;
    border: 1px solid var(--gold);
    padding: 10px;
    border-radius: 6px;
    font-family: 'Rajdhani';
    font-weight: bold;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.server-power-val {
    font-family: 'Rajdhani';
    font-weight: 800;
    color: var(--gold);
    font-size: 20px;
    min-width: 50px;
    text-align: right;
}

.power-bar-container {
    width: 100%;
    height: 10px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #333;
}

.power-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff0000, #00ff00);
    transition: width 1.5s cubic-bezier(0.17, 0.67, 0.83, 0.67), background 1s;
}

.status-footer {
    font-size: 10px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    font-style: italic;
}

/* Buttons */
.claim-btn {
    width: 100%; 
    padding: 12px;
    background: linear-gradient(90deg, #d4af37, #f4e04d);
    border: none; 
    border-radius: 8px; 
    font-weight: bold; 
    font-size: 16px;
    cursor: pointer; 
    color: #000; 
    transition: 0.2s;
}

.vip-booster-btn {
    width: 100%; 
    padding: 12px; 
    background: linear-gradient(135deg, var(--gold), #b38b00);
    border: none; 
    border-radius: 6px; 
    font-weight: bold; 
    color: #000; 
    cursor: pointer;
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    font-family: 'Rajdhani'; 
    font-size: 14px;
}

/* Responsive for Index */
@media (max-width: 600px) {
    .promo-grid { grid-template-columns: 1fr; } 
    .game-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}