@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background-color: #050b14; 
    color: #f8fafc; 
    -webkit-font-smoothing: antialiased; 
    padding-bottom: 80px; 
    overflow-x: hidden; 
}

.app-header { 
    background: #050b14; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}

.compact-card { 
    background: linear-gradient(145deg, #0f172a 0%, #080d17 100%); 
    border: 1px solid #1e293b; 
    border-radius: 12px; 
    position: relative; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.4); 
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, border-color 0.3s ease; 
}

/* Ranking Styles */
.rank-1 { border-color: rgba(251, 191, 36, 0.8) !important; box-shadow: 0 0 25px rgba(251, 191, 36, 0.15), inset 0 0 15px rgba(251, 191, 36, 0.05) !important; background: linear-gradient(145deg, rgba(251, 191, 36, 0.1) 0%, #080d17 100%) !important; }
.rank-1 .score-ring { background: linear-gradient(135deg, #fbbf24, #b45309); color: #fff; border: 1px solid #fde68a; box-shadow: 0 0 15px rgba(251, 191, 36, 0.6); }

.rank-2 { border-color: rgba(148, 163, 184, 0.8) !important; box-shadow: 0 0 20px rgba(148, 163, 184, 0.12), inset 0 0 15px rgba(148, 163, 184, 0.05) !important; background: linear-gradient(145deg, rgba(148, 163, 184, 0.1) 0%, #080d17 100%) !important; }
.rank-2 .score-ring { background: linear-gradient(135deg, #94a3b8, #475569); color: #fff; border: 1px solid #e2e8f0; box-shadow: 0 0 15px rgba(148, 163, 184, 0.5); }

.rank-3 { border-color: rgba(217, 119, 6, 0.8) !important; box-shadow: 0 0 20px rgba(217, 119, 6, 0.15), inset 0 0 15px rgba(217, 119, 6, 0.05) !important; background: linear-gradient(145deg, rgba(217, 119, 6, 0.1) 0%, #080d17 100%) !important; }
.rank-3 .score-ring { background: linear-gradient(135deg, #d97706, #78350f); color: #fff; border: 1px solid #fcd34d; box-shadow: 0 0 15px rgba(217, 119, 6, 0.5); }

.hex-container { cursor: pointer; transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease; }
.hex-container:hover { transform: scale(1.03); filter: brightness(1.2); }
.hex-container:active { transform: scale(0.97); }

.elegant-live-card { background: linear-gradient(180deg, #0f172a 0%, #0b1121 100%); border: 1px solid #1e293b; border-radius: 12px; }
.live-pnl-box { font-variant-numeric: tabular-nums; transition: all 0.15s ease; }

.font-mono-num { font-family: 'SFMono-Regular', Consolas, Menlo, monospace; font-variant-numeric: tabular-nums; }
.text-pw { color: #94a3b8; font-family: monospace; transition: all 0.2s; cursor: pointer; }
.text-pw:hover { color: #ffffff; }
.score-ring { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; box-shadow: 0 0 10px inset rgba(0,0,0,0.5); transition: all 0.4s ease; }
.score-average { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.5)); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.4); }
.score-good { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.5)); color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.4); }
.score-excellent { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.5)); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.4); }

@keyframes hardcoreBlink { 0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(244, 63, 94, 0.9); transform: scale(1); } 50% { opacity: 0.6; box-shadow: 0 0 4px rgba(244, 63, 94, 0.4); transform: scale(0.95); } }
.btn-live-posisi { animation: hardcoreBlink 1.5s infinite ease-in-out; cursor: pointer; }
.btn-live-posisi:active { transform: scale(0.9); animation: none; }

@keyframes fireText { 0%, 100% { background-position: 0% 50%; text-shadow: 0 0 15px rgba(239,68,68,0.5); } 50% { background-position: 100% 50%; text-shadow: 0 0 25px rgba(245,158,11,0.8); } }
.fire-gradient-text { background-size: 200% auto; color: transparent; -webkit-background-clip: text; background-clip: text; animation: fireText 3s ease infinite; }

@keyframes floatIcon { 0% { transform: translateY(0px) rotate(0deg); opacity: 0.1; } 50% { transform: translateY(-15px) rotate(10deg); opacity: 0.3; } 100% { transform: translateY(0px) rotate(0deg); opacity: 0.1; } }
.float-anim-1 { animation: floatIcon 6s ease-in-out infinite; }
.float-anim-2 { animation: floatIcon 8s ease-in-out infinite reverse; }
.float-anim-3 { animation: floatIcon 7s ease-in-out infinite 1s; }

.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(2, 6, 23, 0.95); backdrop-filter: blur(12px); border-top: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: env(safe-area-inset-bottom); z-index: 50; }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 0; color: #64748b; transition: all 0.2s; cursor: pointer; border: none; background: transparent; outline: none; }
.nav-item.active { color: #60a5fa; }
.nav-item i { font-size: 18px; margin-bottom: 4px; transition: transform 0.2s; }
.nav-item.active i { transform: translateY(-2px) scale(1.1); color: #93c5fd; }
.nav-item span { font-size: 9px; font-weight: 700; letter-spacing: 0.5px; }

.sub-nav-scroll { scrollbar-width: none; -ms-overflow-style: none; }
.sub-nav-scroll::-webkit-scrollbar { display: none; }
.pill-btn { white-space: nowrap; padding: 5px 14px; border-radius: 20px; font-size: 10px; font-weight: 700; background: #1e293b; color: #94a3b8; border: 1px solid #334155; transition: all 0.2s; cursor: pointer;}
.pill-btn.active { background: #3b82f6; color: #fff; border-color: #60a5fa; box-shadow: 0 2px 8px rgba(59,130,246,0.3); }

.modal-overlay { background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); transition: opacity 0.3s ease; }
.modal-content { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease; box-shadow: 0 -10px 50px rgba(0,0,0,0.9); }

.hex-modal-content { background: linear-gradient(160deg, #111827 0%, #030712 100%); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1); border-radius: 24px; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease; position: relative; overflow: hidden; }
.hex-modal-content::before { content: 'TraderPLAN'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-15deg); font-size: 4.5rem; font-weight: 900; color: rgba(255, 255, 255, 0.02); pointer-events: none; z-index: 0; white-space: nowrap; }
.hex-modal-content > * { position: relative; z-index: 10; }

@keyframes slideInUpSmooth { 0% { opacity: 0; transform: translateY(20px) scale(0.98); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.card-animate { animation: slideInUpSmooth 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; opacity: 0; }

.bg-watermark { position: absolute; right: -5px; top: -10px; font-size: 70px; font-weight: 900; opacity: 0.03; color: #ffffff; z-index: 0; pointer-events: none; line-height: 1; transition: all 0.3s ease; }
.rank-1 .bg-watermark { color: #fbbf24; opacity: 0.12; }
.rank-2 .bg-watermark { color: #cbd5e1; opacity: 0.12; }
.rank-3 .bg-watermark { color: #b45309; opacity: 0.12; }

#leaderboard-container { transition: opacity 0.3s ease, transform 0.3s ease; }
.app-view { display: none; padding: 12px; max-width: 480px; margin: 0 auto; min-height: 60vh; }
.app-view.active { display: flex; flex-direction: column; gap: 12px; animation: slideInUpSmooth 0.3s ease forwards; }
#main-loader { display: flex; }
#main-loader.hidden { display: none; }

.pos-closing { opacity: 0.5; pointer-events: none; transform: scale(0.98); filter: grayscale(50%); transition: all 0.5s ease; }
.hidden-card { display: none !important; }

@keyframes tickerMove { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
.news-ticker-content { display: inline-block; white-space: nowrap; animation: tickerMove 20s linear infinite; }

/* =========================================
   SISTEM SENSOR VISUAL VIP (MUTLAK)
   ========================================= */
.blur-sensor { filter: blur(4px); opacity: 0.7; user-select: none; pointer-events: none; }

.locked-pnl {
    filter: blur(4px) !important;
    user-select: none !important;
    opacity: 0.5 !important;
    pointer-events: none !important;
}

.content-blur {
    filter: blur(4px) !important;
    opacity: 0.3 !important;
    user-select: none !important;
    pointer-events: none !important;
}

.overlay-lock-bg {
    background: rgba(234, 179, 8, 0.15);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* =========================================
   ORDER MAP HUD DESIGN (UPDATE BARU)
   ========================================= */

/* Latar Belakang Kotak-Kotak (Grid HUD) */
.bg-grid-hud {
    background-color: #03060c;
    background-size: 35px 35px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Garis Laser Tiang Harga */
.laser-line-buy {
    background: linear-gradient(90deg, rgba(16,185,129,0) 0%, rgba(16,185,129,1) 100%);
}
.laser-line-sell {
    background: linear-gradient(270deg, rgba(244,63,94,0) 0%, rgba(244,63,94,1) 100%);
}

/* Animasi Denyut Harga Saat Ini */
@keyframes pulseGlowBlue {
    0%, 100% { box-shadow: 0 0 15px rgba(59,130,246,0.4); }
    50% { box-shadow: 0 0 25px rgba(59,130,246,0.8); }
}
.live-price-pill {
    animation: pulseGlowBlue 2s infinite ease-in-out;
}