/* ==========================================
   BTHUNTER MILITARY RADAR HUD – FINAL
========================================== */
.radar-wrapper {
    position: fixed;

    right: 15px !important;  /* PINDAH KE KANAN */
    left: auto !important;   /* MATIKAN POSISI KIRI */

    top: calc(var(--nav-h) + var(--running-text-h, 40px) + 100px);

    z-index: 980;
    pointer-events: none;
}


/* Ukuran diperkecil */
.radar-circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    font-family: ui-monospace, monospace;
    transition: all .3s ease;
}

/* Speed text kecil */
.radar-speed {
    position: absolute;
    bottom: 28px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

.radar-status {
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    font-size: 8px;
    letter-spacing: 1px;
}


/* ===============================
   MODE NORMAL
================================ */

body:not(.hacker-map) .radar-circle {
    background: radial-gradient(circle at center, #f8f9fa 0%, #e9ecef 70%);
    border: 2px solid #198754;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

body:not(.hacker-map) .radar-speed,
body:not(.hacker-map) .radar-status {
    color: #198754;
}

/* ===============================
   MODE HACKER
================================ */

body.hacker-map .radar-circle {
    background: radial-gradient(circle at center, #001a12 0%, #000 70%);
    border: 2px solid #00ff9c;
    box-shadow: 0 0 25px rgba(0,255,156,.6);
}

body.hacker-map .radar-speed,
body.hacker-map .radar-status {
    color: #00ff9c;
}

/* ===============================
   SWEEP ANIMATION
================================ */

.radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(
        rgba(0,255,156,.35) 0deg,
        rgba(0,255,156,0) 70deg
    );
    animation: radarSweep 3s linear infinite;
}

@keyframes radarSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===============================
   CENTER DOT
================================ */

.radar-center-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

body.hacker-map .radar-center-dot {
    background: #00ff9c;
    box-shadow: 0 0 10px #00ff9c;
}

body:not(.hacker-map) .radar-center-dot {
    background: #198754;
}

/* ===============================
   SPEED TEXT
================================ */

.radar-speed {
    position: absolute;
    bottom: 35px;
    width: 100%;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.radar-speed small {
    font-size: 10px;
}

/* ===============================
   STATUS TEXT
================================ */

.radar-status {
    position: absolute;
    bottom: 12px;
    width: 100%;
    text-align: center;
    font-size: 10px;
    letter-spacing: 1px;
}

/* ===============================
   MOBILE SCALE
================================ */

@media (max-width: 576px) {
    .radar-circle {
        width: 110px;
        height: 110px;
    }

    .radar-speed {
        font-size: 16px;
    }
}
