/* ===== COMMON STYLES - Digunakan di semua halaman ===== */

: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; 
}

/* Background Animation */
.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 */
.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); }

/* Content Layout */
.main-content, .lobby-content { 
    padding-top: 70px; 
    padding-bottom: 80px; 
    max-width: 800px; 
    margin: 0 auto; 
    padding-left: 15px; 
    padding-right: 15px; 
}

/* Bottom Navigation */
.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); 
}

/* Modal Styles */
.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;
}

.close-modal-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
}

/* Chat Widget */
.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; 
}

/* Transfer Overlay */
.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;
}

/* Keyframe Animations */
@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 spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

@keyframes bounce { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-10px); } 
}

/* Responsive */
@media (max-width: 600px) {
    .username-sm, .level-sm { display: none; } 
    .transfer-amount { font-size: 26px; }
}