:root {
    --bg-dark: #080808;
    --bg-card: #121212;
    --gold: #d4af37;
    --gold-glow: #ffea80;
    --text-main: #ffffff;
    --text-muted: #888;
    --bonanza-pink: #ff69b4;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    outline: none; 
    -webkit-tap-highlight-color: transparent; 
}

body { 
    font-family: 'Poppins', sans-serif; 
    background: var(--bg-dark); 
    color: var(--text-main); 
    overflow-x: hidden; 
}

.bg-animation { 
    position: fixed; 
    width: 100%; 
    height: 100%; 
    z-index: -1; 
    background: radial-gradient(circle at center, #151515, #000); 
}

.gold-particles { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    background-image: radial-gradient(var(--gold) 1px, transparent 1px); 
    background-size: 40px 40px; 
    opacity: 0.1; 
    animation: moveBg 60s linear infinite; 
}

@keyframes moveBg { 
    from { transform: translateY(0); } 
    to { transform: translateY(-500px); } 
}

.top-bar-pro {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: rgba(15, 15, 15, 0.95); 
    backdrop-filter: blur(10px);
    padding: 8px 15px; 
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 100;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.header-left, .header-right { flex: 1; }
.header-right { display: flex; justify-content: flex-end; }
.header-center-logo { flex: 1; display: flex; justify-content: center; }

.main-logo { 
    height: 40px; 
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5)); 
    transition: 0.3s; 
}

.main-logo:hover { transform: scale(1.1); }

.user-profile-sm { display: flex; gap: 8px; align-items: center; }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gold); }
.user-details-sm { display: flex; flex-direction: column; }
.username-sm { font-size: 11px; font-weight: bold; }
.level-sm { font-size: 9px; color: var(--gold); }

.balance-display {
    background: #000; 
    border: 1px solid var(--gold); 
    padding: 4px 10px; 
    border-radius: 20px;
    display: flex; 
    align-items: center; 
    gap: 6px; 
    font-size: 10px; 
    cursor: pointer; 
    transition: 0.2s;
}

.balance-amount { 
    font-family: 'Rajdhani'; 
    font-size: 14px; 
    font-weight: bold; 
    color: var(--gold-glow); 
}

.balance-display.flash { background: var(--gold); }
.add-btn { font-size: 12px; color: var(--gold); }

.main-content, .lobby-content { 
    padding-top: 70px; 
    padding-bottom: 80px; 
    max-width: 800px; 
    margin: 0 auto; 
    padding-left: 15px; 
    padding-right: 15px; 
}

.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;
}

.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-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;
}

.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 {
    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 { 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; }

.game-wrapper-pro { margin-bottom: 20px; }

.game-status-bar {
    display: flex; 
    gap: 10px; 
    background: #1a1a1a; 
    padding: 6px 12px; 
    font-size: 10px;
    border-radius: 8px 8px 0 0; 
    border: 1px solid #333; 
    border-bottom: none; 
    color: #aaa;
}

.rtp-live { margin-left: auto; color: var(--gold); font-weight: bold; animation: pulse 2s infinite; }

.game-frame-border {
    border: 2px solid var(--gold); 
    border-radius: 0 0 8px 8px; 
    overflow: hidden;
    background: #000; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

iframe { width: 100%; height: 50vh; border: none; display: block; }

.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;
}

#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; }

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.category-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 20px; 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); }

.section-title { font-size: 14px; font-weight: bold; color: #fff; margin-bottom: 15px; border-left: 3px solid var(--gold); padding-left: 10px; }

.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-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;
}

.mobile-bottom-nav {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 60px; 
    background: rgba(15,15,15,0.95);
    border-top: 1px solid #333; 
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    z-index: 99;
}

.nav-item { color: #666; font-size: 10px; display: flex; flex-direction: column; align-items: center; text-decoration: none; gap: 3px; }
.nav-item i { font-size: 18px; }
.nav-item.active { color: var(--gold); }
.nav-item-center { position: relative; top: -20px; }

.center-btn { 
    width: 50px; 
    height: 50px; 
    background: var(--gold); 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    color: #000; 
    font-size: 20px; 
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); 
}

.chat-widget-btn {
    width: 55px; height: 55px; border-radius: 50%; 
    background: #25d366; 
    border: none; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
    cursor: pointer; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    position: relative; 
    overflow: hidden;
}

.chat-box-container {
    display: none; 
    position: absolute; 
    bottom: 70px; 
    right: 0; 
    width: 300px;
    background: #1a1a1a; 
    border: 1px solid var(--gold); 
    border-radius: 12px;
    overflow: hidden; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.chat-bubble-user { align-self: flex-end; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 12px 2px 12px 12px; font-size: 11px; max-width: 80%; margin-bottom: 8px; }
.chat-bubble-admin { align-self: flex-start; background: #333; color: #fff; padding: 8px 12px; border-radius: 2px 12px 12px 12px; font-size: 11px; max-width: 80%; margin-bottom: 8px; border: 1px solid #444; }

.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; }

.modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.85); 
    backdrop-filter: blur(5px);
    z-index: 2000; 
    display: none;
    justify-content: center; 
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #000);
    border: 2px solid var(--gold);
    width: 90%; 
    max-width: 400px;
    padding: 25px; 
    border-radius: 15px;
    text-align: center; 
    position: relative;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.modal-title { font-family: 'Rajdhani'; font-size: 24px; font-weight: bold; color: var(--gold); margin-bottom: 10px; text-transform: uppercase; }

.modal-input {
    width: 100%; 
    padding: 12px; 
    margin: 15px 0;
    background: #111; 
    border: 1px solid #333; 
    color: #fff;
    font-size: 16px; 
    text-align: center; 
    letter-spacing: 2px;
    border-radius: 8px; 
    text-transform: uppercase;
}

.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;
}

.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: 300px; height: 300px; margin: 0 auto; border-radius: 50%; border: 10px 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);
}

.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); }
.lb-table-container { height: 180px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #333 #111; }
.lb-amount { color: #00ff00; font-weight: bold; text-align: right; font-family: 'Rajdhani'; font-size: 12px; }

.transfer-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background: #000; 
    z-index: 10000; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    font-family: 'Rajdhani', sans-serif;
    transition: opacity 0.5s ease-out;
    padding: 20px;
}

.transfer-box {
    width: 100%; 
    max-width: 400px; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.provider-logo {
    width: 200px; 
    height: auto;
    margin-bottom: 30px;
    filter: brightness(0) invert(1); 
    animation: pulse 2s infinite;
}

.transfer-text { color: #888; font-size: 12px; letter-spacing: 1px; margin-bottom: 10px; text-transform: uppercase; }
.transfer-amount { color: var(--gold); font-size: 32px; font-weight: 800; margin-bottom: 25px; text-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }

.loading-track {
    width: 100%; 
    height: 8px; 
    background: #1a1a1a; 
    border-radius: 10px;
    overflow: hidden; 
    border: 1px solid #333; 
    position: relative;
}

.loading-fill {
    height: 100%; 
    background: linear-gradient(90deg, var(--gold), #fff);
    width: 0%; 
    border-radius: 10px;
    box-shadow: 0 0 10px var(--gold);
    transition: width 3s cubic-bezier(0.22, 1, 0.36, 1);
}

.status-log {
    margin-top: 20px; 
    font-size: 11px; 
    color: #0f0; 
    font-family: 'Courier New', monospace;
    min-height: 20px;
    letter-spacing: 0.5px;
}

/* Server Selector Styling */
.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;
}
@media (max-width: 600px) {
    .promo-grid { grid-template-columns: 1fr; } 
    .username-sm, .level-sm { display: none; } 
    .game-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .transfer-amount { font-size: 26px; }
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleUp { from { transform: scale(0.8); } to { transform: scale(1); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

