:root {
    --bg-color: #0d0d0d;
    --card-bg: rgba(30, 30, 30, 0.6);
    --primary: #00f3ff;
    --accent: #39ff14;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --gradient-main: linear-gradient(135deg, #00f3ff, #39ff14);
    --shadow-main: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --accent-red: #ff3b3b;
    --accent-green: #00ff41;
    --accent-purple: #bc13fe;
    --leaflet-popup-bg: rgba(20, 20, 20, 0.95);
}

body.theme-matrix {
    --primary: #00ff41;
    --primary-glow: rgba(0, 255, 65, 0.5);
}

body.theme-inferno {
    --primary: #ff3b3b;
    --primary-glow: rgba(255, 59, 59, 0.5);
}

body.theme-stealth {
    --primary: #bc13fe;
    --primary-glow: rgba(188, 19, 254, 0.5);
}

body.theme-amoled {
    --bg-color: #000000;
    --card-bg: rgba(15, 15, 15, 0.8);
    --primary: #00ff88;
    --primary-glow: rgba(0, 255, 136, 0.5);
    --accent: #00ffc8;
    --gradient-main: linear-gradient(135deg, #00ff88, #00ffc8);
    --glass-border: 1px solid rgba(0, 255, 136, 0.08);
    --text-muted: #606060;
}

body.theme-amoled .hero-banner {
    background: #000;
    border-bottom: 1px solid rgba(0, 255, 136, 0.08);
}

body.theme-amoled input, body.theme-amoled textarea {
    background: #0a0a0a;
    border-color: #1a1a1a;
}

body.theme-amoled .card {
    background: rgba(10, 10, 10, 0.8);
}

body.theme-amoled .modal-content {
    background: #000;
}

body.hud-mode-active {
    background: #000 !important;
}

body.hud-mode-active .hero-banner,
body.hud-mode-active .app-header,
body.hud-mode-active .filters-container,
body.hud-mode-active .search-container,
body.hud-mode-active main,
body.hud-mode-active .fab-container,
body.hud-mode-active #modal-cost {
    display: none !important;
}

body.hud-mode-active .tracking-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    transform: scaleY(-1);
    border: none;
}

body.hud-mode-active .tracking-info {
    flex-direction: column;
    gap: 3rem;
    transform: scaleX(-1);
}

body.hud-mode-active .telemetry-item {
    font-size: 3rem;
}

body.hud-mode-active .telemetry-item span {
    font-size: 6rem;
}

body.hud-mode-active .elite-telemetry {
    border: none;
    padding: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 243, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(57, 255, 20, 0.05) 0%, transparent 40%);
}

input[type="text"],
textarea {
    width: 100%;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
}

input[type="text"]:focus,
textarea:focus {
    border-color: var(--primary);
}

.hidden {
    display: none !important;
}

.filters-container::-webkit-scrollbar {
    display: none;
}

.sort-bar::-webkit-scrollbar {
    display: none;
}

@keyframes heroGlowPulse {
    0% { opacity: 0.6; transform: scale(1) rotate(0deg); }
    100% { opacity: 1; transform: scale(1.1) rotate(2deg); }
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100%) scale(0); }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 243, 255, 0.3), 0 0 40px rgba(57, 255, 20, 0.1); }
    50% { box-shadow: 0 0 40px rgba(0, 243, 255, 0.5), 0 0 80px rgba(57, 255, 20, 0.2); }
}

@keyframes pulseInstall {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalSlideIn {
    from { transform: translateY(60px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 59, 59, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

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

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOutDown {
    to { transform: translateY(20px); opacity: 0; }
}

/* Transition Animations */
@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modalBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes filterSlide {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes qrPop {
    0% { transform: scale(0) rotate(-15deg); opacity: 0; }
    70% { transform: scale(1.1) rotate(3deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.card {
    animation: cardEntrance 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.1) both;
}

.card:nth-child(1) { animation-delay: 0.02s; }
.card:nth-child(2) { animation-delay: 0.06s; }
.card:nth-child(3) { animation-delay: 0.10s; }
.card:nth-child(4) { animation-delay: 0.14s; }
.card:nth-child(5) { animation-delay: 0.18s; }
.card:nth-child(6) { animation-delay: 0.22s; }
.card:nth-child(7) { animation-delay: 0.26s; }
.card:nth-child(8) { animation-delay: 0.30s; }

.modal-overlay {
    animation: modalBackdropIn 0.25s ease;
}

.modal-overlay.hidden {
    display: none !important;
}

.filter-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.util-btn {
    transition: all 0.2s ease;
}

.hero-stat-value {
    transition: all 0.3s ease;
}
