:root {
    --bg-dark: #020406;
    --bg-panel: rgba(8, 12, 18, 0.9);
    --text-main: #b2ebf2;
    --text-muted: #455a64;
    --primary: #00e5ff;
    /* Daha parlak Siyan */
    --accent: #ffab40;
    --success: #00ff88;
    --danger: #ff1744;
    --gamer-glow: 0 0 20px rgba(0, 229, 255, 0.2);
    --hud-border: 1px solid rgba(0, 229, 255, 0.3);
    --glass-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    --backdrop-blur: blur(12px);
}

html,
body {
    background-color: #050505 !important;
    /* Beyaz ekranı engelle */
    color: var(--text-main);
    font-family: 'Share Tech Mono', monospace;
    /* Teknoloji Fontu */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100%;
}

/* Scrollbar Shared */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Shared Utilities */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--glass-shadow);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.blink {
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* Earthquake Pulse Animations (AFAD Style) */
.quake-marker {
    border-radius: 50% !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.custom-quake-icon {
    overflow: visible !important;
}

.quake-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
}

/* Default Green Pulse */
.quake-pulse.green {
    border: 2px solid rgba(0, 255, 136, 0.8);
    animation: afad-ripple-green 2s infinite ease-out;
}

/* Warning Yellow/Orange Pulse */
.quake-pulse.orange {
    border: 2px solid rgba(255, 171, 64, 0.8);
    animation: afad-ripple-orange 2s infinite ease-out;
}

/* History Blue Pulse */
.quake-pulse.blue {
    border: 2px solid rgba(33, 150, 243, 0.8);
    animation: afad-ripple-blue 2s infinite ease-out;
}

/* Danger Red Pulse */
.quake-pulse.red {
    border: 2px solid rgba(255, 23, 68, 0.8);
    animation: afad-ripple-red 2s infinite ease-out;
}

/* Multi-wave effect using pseudo elements */
.quake-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: inherit;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: inherit;
    animation-delay: 0.6s;
}

.quake-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: inherit;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: inherit;
    animation-delay: 1.2s;
}

@keyframes afad-ripple-green {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.9;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

@keyframes afad-ripple-blue {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.9;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.4);
        opacity: 0;
    }
}

@keyframes afad-ripple-orange {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.9;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.8);
        opacity: 0;
    }
}

@keyframes afad-ripple-red {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.9;
    }

    100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
}

/* --- ICON BACKGROUND COLORS (Shared) --- */
.bg-blue {
    background: rgba(0, 136, 255, 0.15) !important;
    color: #4db3ff !important;
    border: 1px solid rgba(0, 136, 255, 0.4) !important;
}

.bg-orange {
    background: rgba(255, 152, 0, 0.15) !important;
    color: #ffb74d !important;
    border: 1px solid rgba(255, 152, 0, 0.4) !important;
}

.bg-green {
    background: rgba(76, 175, 80, 0.15) !important;
    color: #81c784 !important;
    border: 1px solid rgba(76, 175, 80, 0.4) !important;
}

.bg-red {
    background: rgba(244, 67, 54, 0.15) !important;
    color: #e57373 !important;
    border: 1px solid rgba(244, 67, 54, 0.4) !important;
}

.bg-cyan {
    background: rgba(0, 188, 212, 0.15) !important;
    color: #4dd0e1 !important;
    border: 1px solid rgba(0, 188, 212, 0.4) !important;
}

.bg-purple {
    background: rgba(156, 39, 176, 0.15) !important;
    color: #ba68c8 !important;
    border: 1px solid rgba(156, 39, 176, 0.4) !important;
}

.bg-dark-red {
    background: rgba(183, 28, 28, 0.15) !important;
    color: #ff5252 !important;
    border: 1px solid rgba(183, 28, 28, 0.5) !important;
}

/* --- BUTTON STYLES (Shared) --- */
.btn-hud {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Share Tech Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
    text-decoration: none;
    box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.05);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.btn-hud:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary);
    transform: translateY(-2px);
}

.btn-hud.btn-sm {
    padding: 6px 15px;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.btn-hud-accent {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 171, 64, 0.05);
}

.btn-hud-accent:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent);
}

.btn-hud-success {
    border-color: var(--success);
    color: var(--success);
    background: rgba(0, 255, 136, 0.05);
}

.btn-hud-success:hover {
    background: var(--success);
    color: #000;
    box-shadow: 0 0 20px var(--success);
}

.btn-hud.btn-back {
    border-color: var(--primary);
    background: rgba(0, 229, 255, 0.1);
    padding: 8px 25px;
}

/* --- PREMIUM HUD LOADER (MODAL STYLE) --- */
.loader-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 250px;
    background: rgba(10, 20, 30, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 229, 255, 0.1);
    z-index: 10001;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

/* Background Blur Layer */
#loader-blur-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(0px);
    z-index: 10000;
    display: none;
    transition: backdrop-filter 0.3s ease;
}

.loader-content {
    width: 80%;
    text-align: center;
    position: relative;
}

.loader-text {
    font-family: 'Share Tech Mono', monospace;
    color: var(--primary);
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    animation: blink 0.8s infinite;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 20px var(--primary);
    transition: width 0.1s linear;
}

.loader-percentage {
    margin-top: 15px;
    font-family: 'Share Tech Mono', monospace;
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 900;
    opacity: 0.9;
    letter-spacing: -1px;
}

.loader-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 229, 255, 0.02) 3px,
            transparent 4px);
    pointer-events: none;
    border-radius: 12px;
}

/* --- RESPONSIVE UTILITIES --- */
@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .mobile-only {
        display: none !important;
    }
}