/* ============================================
   SUBVERSE CSS - Main Stylesheet
   Extracted from index.html for better maintainability
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (Variables)
   ============================================ */
:root {
    /* Colors - Primary */
    --color-cyan: #00D4FF;
    --color-purple: #a855f7;
    --color-gold: #ffd700;
    --color-green: #22c55e;
    --color-red: #ff6464;
    --color-orange: #ff9500;

    /* Colors - Backgrounds */
    --bg-dark: #0a0a1a;
    --bg-panel: rgba(10, 10, 26, 0.95);
    --bg-panel-solid: rgba(15, 15, 35, 0.98);
    --bg-overlay: rgba(0, 0, 0, 0.5);

    /* Colors - Borders */
    --border-cyan: rgba(0, 212, 255, 0.4);
    --border-purple: rgba(168, 85, 247, 0.4);
    --border-gold: rgba(255, 215, 0, 0.4);
    --border-green: rgba(34, 197, 94, 0.4);
    --border-red: rgba(255, 100, 100, 0.4);

    /* Glows */
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.4);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.4);
    --glow-gold: 0 0 20px rgba(255, 215, 0, 0.4);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50%;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 20px;

    /* Typography */
    --font-main: 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'Courier New', monospace;
    --font-display: 'Orbitron', 'Segoe UI', sans-serif;

    /* Z-Index Layers */
    --z-base: 100;
    --z-hud: 200;
    --z-panel: 300;
    --z-header: 400;
    --z-dropdown: 500;
    --z-modal: 600;
    --z-loading: 9999;

    /* Header Heights */
    --header-height: 60px;
    --toolbar-height: 50px;
    --total-header-height: 110px;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, #cesiumContainer {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-dark);
    font-family: var(--font-main);
}

/* Hide Cesium credits for cleaner look */
.cesium-credit-logoContainer,
.cesium-credit-textContainer {
    display: none !important;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.panel-purple {
    border-color: var(--border-purple);
}

.panel-gold {
    border-color: var(--border-gold);
}

.glow-cyan {
    box-shadow: var(--glow-cyan);
}

.glow-purple {
    box-shadow: var(--glow-purple);
}

.hidden {
    display: none !important;
}

/* ============================================
   SUBWORKIT HEADER BAR (Top)
   ============================================ */
.subworkit-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(180deg, rgba(10, 10, 26, 0.98), rgba(10, 10, 26, 0.9));
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    z-index: var(--z-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.subworkit-logo {
    width: 44px;
    height: 44px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--border-cyan);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.subworkit-logo:hover {
    border-color: var(--color-cyan);
    background: rgba(0, 212, 255, 0.15);
    transform: scale(1.05);
    box-shadow: var(--glow-cyan);
}

.subworkit-logo img {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
}

.header-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
}

.header-title span {
    color: var(--color-cyan);
}

.header-nav {
    display: flex;
    gap: var(--space-sm);
}

.header-nav-btn {
    padding: var(--space-sm) var(--space-lg);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.header-nav-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--color-cyan);
    color: white;
}

.header-nav-btn.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(168, 85, 247, 0.3));
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Auth Status */
.auth-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px var(--space-md);
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid var(--border-green);
    border-radius: var(--radius-xl);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.user-name {
    font-size: 13px;
    color: var(--color-green);
    font-weight: 500;
}

.auth-btn {
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.auth-btn.login {
    background: linear-gradient(135deg, var(--color-cyan), #0ea5e9);
    color: white;
}

.auth-btn.login:hover {
    background: linear-gradient(135deg, #22d3ee, var(--color-cyan));
    transform: translateY(-1px);
    box-shadow: var(--glow-cyan);
}

.auth-btn.logout {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--border-red);
    color: #ef4444;
}

.auth-btn.logout:hover {
    background: rgba(239, 68, 68, 0.3);
}

.back-to-app {
    padding: var(--space-sm) var(--space-lg);
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid var(--border-purple);
    border-radius: var(--radius-sm);
    color: var(--color-purple);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-to-app:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: var(--color-purple);
}

/* ============================================
   SUBVERSE TOP TOOLBAR
   ============================================ */
.subverse-toolbar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: var(--toolbar-height);
    background: linear-gradient(180deg, rgba(20, 20, 40, 0.95), rgba(15, 15, 35, 0.9));
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    z-index: calc(var(--z-header) - 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    backdrop-filter: blur(8px);
    gap: 15px;
}

.toolbar-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-section.right {
    gap: 8px;
    justify-content: flex-end;
}

.toolbar-search {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-cyan);
    border-radius: 25px;
    padding: 6px 15px;
    min-width: 280px;
    position: relative;
}

.toolbar-search input {
    background: transparent;
    border: none;
    color: white;
    font-size: 13px;
    width: 100%;
    outline: none;
}

.toolbar-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.toolbar-search-icon {
    margin-right: var(--space-sm);
    font-size: 14px;
}

/* City suggestions dropdown */
.toolbar-search .city-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: var(--space-sm);
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-md);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.toolbar-search .city-suggestions.visible {
    display: block;
}

.toolbar-search .city-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.toolbar-search .city-suggestion:hover {
    background: rgba(0, 212, 255, 0.15);
}

.toolbar-search .city-suggestion-icon {
    font-size: 18px;
}

.toolbar-search .city-suggestion-info {
    flex: 1;
}

.toolbar-search .city-suggestion-name {
    color: white;
    font-weight: 500;
    font-size: 13px;
}

.toolbar-search .city-suggestion-country {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.toolbar-search .city-suggestion-pop {
    color: var(--color-cyan);
    font-size: 11px;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-sm) 14px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.toolbar-btn:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: var(--color-purple);
    color: white;
}

.toolbar-btn.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

/* Toolbar Dropdown */
.toolbar-dropdown {
    position: relative;
}

.toolbar-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    min-width: 180px;
    background: rgba(20, 20, 40, 0.98);
    border: 1px solid var(--border-purple);
    border-radius: 10px;
    padding: var(--space-sm) 0;
    display: none;
    z-index: var(--z-dropdown);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.toolbar-dropdown.open .toolbar-dropdown-menu {
    display: block;
}

.toolbar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px var(--space-lg);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toolbar-dropdown-item:hover {
    background: rgba(168, 85, 247, 0.2);
    color: white;
}

.toolbar-dropdown-item .item-icon {
    font-size: 16px;
}

.toolbar-divider {
    height: 1px;
    background: rgba(168, 85, 247, 0.2);
    margin: 6px 0;
}

/* ============================================
   ACTIONS MEGA DROPDOWN
   ============================================ */
.actions-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    min-width: 280px;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-md);
    padding: var(--space-sm) 0;
    display: none;
    z-index: var(--z-dropdown);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 212, 255, 0.2);
}

.actions-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.actions-dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.actions-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.4);
    border-radius: 3px;
}

.toolbar-dropdown.open .actions-dropdown-menu {
    display: block;
}

.actions-dropdown-category {
    position: relative;
}

.actions-dropdown-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px var(--space-lg);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.actions-dropdown-category-header:hover {
    background: rgba(0, 212, 255, 0.15);
    border-left-color: var(--color-cyan);
    color: var(--color-cyan);
}

.actions-dropdown-category-header .cat-icon {
    font-size: 16px;
}

.actions-dropdown-category-header .cat-label {
    flex: 1;
}

.actions-dropdown-category-header .cat-arrow {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.actions-dropdown-category.expanded .cat-arrow {
    transform: rotate(90deg);
}

.actions-dropdown-submenu {
    display: none;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.actions-dropdown-category.expanded .actions-dropdown-submenu {
    display: block;
}

.actions-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px var(--space-lg) 10px 32px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.actions-dropdown-item:hover {
    background: rgba(168, 85, 247, 0.2);
    color: white;
}

.actions-dropdown-item .item-icon {
    font-size: 14px;
}

.actions-dropdown-item .item-text {
    flex: 1;
}

.actions-dropdown-item .item-reward {
    font-size: 10px;
    color: var(--color-green);
    background: rgba(34, 197, 94, 0.15);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.actions-dropdown-item.premium .item-reward {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0a1a, #1a1a3e);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loading);
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-title {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--color-cyan);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

.loading-status {
    margin-top: var(--space-xl);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes spin {
    to { transform: rotate(360deg); }
}

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

@keyframes panelSlideIn {
    from {
opacity: 0;
transform: translateX(30px);
    }
    to {
opacity: 1;
transform: translateX(0);
    }
}

@keyframes successPop {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes successFade {
    to { opacity: 0; transform: translate(-50%, -70%) scale(0.8); }
}

@keyframes tokenPop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fireGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.4); }
}

@keyframes levelUpPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 212, 255, 0.5); }
    50% { box-shadow: 0 0 30px rgba(168, 85, 247, 1), 0 0 60px rgba(0, 212, 255, 0.8); }
}

@keyframes pulseVignette {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes achievementSlideIn {
    from {
transform: translateX(-50%) scale(0) translateY(-50px);
opacity: 0;
    }
    to {
transform: translateX(-50%) scale(1) translateY(0);
opacity: 1;
    }
}

@keyframes achievementSlideOut {
    to {
transform: translateX(-50%) scale(0.8) translateY(-30px);
opacity: 0;
    }
}

/* ============================================
   CAR DASHBOARD - LEGACY DEFINITION REMOVED
   See Sprint 29 cockpit section around line 5200
   ============================================ */



.dash-speed-control,
.dash-altitude-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.control-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.speed-slider-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.speed-btn,
.altitude-btn {
    width: 24px;
    height: 24px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-sm);
    color: var(--color-cyan);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.speed-btn:hover,
.altitude-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    transform: scale(1.1);
}

.speed-slider,
.altitude-slider {
    width: 100px;
    accent-color: var(--color-cyan);
}

.dash-speed-value-control {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.altitude-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-cyan);
}

.altitude-unit {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 2px;
}

.altitude-controls {
    display: flex;
    gap: var(--space-sm);
}

.dash-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-sm) var(--space-md);
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid var(--border-purple);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dash-menu-btn:hover {
    background: rgba(168, 85, 247, 0.25);
    color: white;
}

.dash-icon {
    font-size: 16px;
}

.dash-label {
    font-weight: 500;
}

/* ============================================
   GAME HUD
   ============================================ */
.game-hud {
    position: fixed;
    top: var(--total-header-height);
    left: var(--space-xl);
    z-index: var(--z-hud);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 300px;
    margin-top: var(--space-xl);
}

.game-hud > * {
    pointer-events: auto;
}

/* Player Stats */
.player-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--bg-panel);
    border: 2px solid var(--border-cyan);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    min-width: 280px;
}

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    position: relative;
}

.player-level-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: linear-gradient(135deg, var(--color-gold), #ff8c00);
    color: #000;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(10, 10, 26, 0.9);
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 14px;
    font-weight: bold;
    color: white;
    margin-bottom: var(--space-xs);
}

.xp-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--space-xs);
    overflow: hidden;
    position: relative;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
    border-radius: var(--space-xs);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.xp-bar-fill.level-up {
    animation: levelUpPulse 1s ease;
}

.xp-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-xs);
    display: flex;
    justify-content: space-between;
}

/* Token Display */
.token-display {
    display: flex;
    gap: 10px;
}

.token-box {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-panel);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: var(--space-sm) 14px;
}

.token-box.swi {
    border-color: rgba(168, 85, 247, 0.5);
}

.token-icon {
    font-size: 18px;
}

.token-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-gold);
}

.token-box.swi .token-value {
    color: var(--color-purple);
}

.token-change {
    font-size: 12px;
    color: var(--color-green);
    animation: tokenPop 0.5s ease;
}

/* Streak Display */
.streak-display {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-panel);
    border: 1px solid var(--border-red);
    border-radius: var(--radius-md);
    padding: var(--space-sm) 14px;
}

.streak-icon {
    font-size: 20px;
    animation: fireGlow 1s ease infinite;
}

.streak-count {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-red);
}

.streak-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.combo-multiplier {
    background: linear-gradient(135deg, var(--color-red), var(--color-orange));
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 3px var(--space-sm);
    border-radius: var(--radius-sm);
}

/* ============================================
   ACHIEVEMENT POPUP
   ============================================ */
.achievement-popup {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(255, 165, 0, 0.95));
    border: 3px solid var(--color-gold);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) 40px;
    z-index: calc(var(--z-header) + 50);
    text-align: center;
    animation: achievementSlideIn 0.5s ease forwards, achievementSlideOut 0.5s ease 3.5s forwards;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
}

.achievement-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.achievement-title {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-xs);
}

.achievement-name {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin-bottom: var(--space-sm);
}

.achievement-reward {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
}

/* ============================================
   MARKER DETAIL PANEL
   ============================================ */
.marker-detail-panel {
    position: fixed;
    top: calc(var(--total-header-height) + var(--space-xl));
    right: var(--space-xl);
    width: 300px;
    max-height: calc(100vh - 160px);
    background: var(--bg-panel);
    border: 2px solid var(--border-cyan);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    z-index: var(--z-panel);
    display: none;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3),
        inset 0 0 60px rgba(168, 85, 247, 0.1);
}

.marker-detail-panel.visible {
    display: block;
    animation: panelSlideIn 0.3s ease;
}

.detail-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    background: rgba(255, 100, 100, 0.2);
    border: 1px solid var(--border-red);
    border-radius: var(--radius-full);
    color: var(--color-red);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.detail-close:hover {
    background: rgba(255, 100, 100, 0.4);
    transform: scale(1.1);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: var(--space-lg);
}

.detail-icon {
    font-size: 36px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(168, 85, 247, 0.2));
    border-radius: 14px;
    border: 1px solid var(--border-cyan);
}

.detail-title-section {
    flex: 1;
}

.detail-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.detail-type {
    font-size: 11px;
    color: var(--color-cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.detail-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-location {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-rewards-section {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.detail-reward {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-sm) 14px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-xl);
    font-size: 13px;
    color: var(--color-gold);
}

.reward-icon {
    font-size: 14px;
}

/* ============================================
   MOBILE RESPONSIVENESS - ULTRA SIMPLIFIED
   Only: City Slot + Data dropdown + Avatar
   Cockpit: Throttle + Altitude (VERTICAL, centered)
   ============================================ */

/* Hide reCAPTCHA badge on all screens but keep functionality */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    right: -9999px !important;
}

/* ============================================
   CITY SLOT MACHINE - Desktop hidden, Mobile visible
   ============================================ */
.city-slot-machine {
    display: none; /* Hidden on desktop */
}

/* Mobile detection */
@media (max-width: 768px) {
    /* Show slot machine on mobile */
    .city-slot-machine {
display: flex !important;
align-items: center;
gap: 0;
background: linear-gradient(135deg, rgba(10, 10, 26, 0.95), rgba(30, 30, 60, 0.9));
border: 2px solid rgba(0, 212, 255, 0.5);
border-radius: 12px;
padding: 2px;
box-shadow: 0 0 15px rgba(0, 212, 255, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.5);
    }

    .slot-arrow {
background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(168, 85, 247, 0.3));
border: none;
color: #00d4ff;
font-size: 10px;
padding: 8px 6px;
cursor: pointer;
transition: all 0.2s ease;
    }

    .slot-arrow.slot-up {
border-radius: 10px 0 0 10px;
    }

    .slot-arrow.slot-down {
border-radius: 0 10px 10px 0;
    }

    .slot-arrow:hover, .slot-arrow:active {
background: linear-gradient(135deg, rgba(0, 212, 255, 0.6), rgba(168, 85, 247, 0.6));
color: white;
    }

    .slot-display {
width: 80px;
height: 32px;
overflow: hidden;
position: relative;
background: rgba(0, 0, 0, 0.6);
border-left: 1px solid rgba(0, 212, 255, 0.3);
border-right: 1px solid rgba(0, 212, 255, 0.3);
cursor: pointer;
    }

    .slot-display::before,
    .slot-display::after {
content: '';
position: absolute;
left: 0;
right: 0;
height: 8px;
z-index: 2;
pointer-events: none;
    }

    .slot-display::before {
top: 0;
background: linear-gradient(to bottom, rgba(10, 10, 26, 0.9), transparent);
    }

    .slot-display::after {
bottom: 0;
background: linear-gradient(to top, rgba(10, 10, 26, 0.9), transparent);
    }

    .slot-reel {
display: flex;
flex-direction: column;
transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .slot-city {
height: 32px;
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: 600;
color: white;
white-space: nowrap;
text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }

    .slot-city.active {
color: #00d4ff;
text-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
    }

    /* HIDE EVERYTHING except Slot Machine, Data dropdown and Avatar */
    #exploreDropdown,
    #viewDropdown,
    #settingsDropdown,
    #actionsBtn,
    #leaderboardBtn,
    .toolbar-section.center,
    .toolbar-section.right > button.toolbar-btn,
    .toolbar-section.right > .toolbar-dropdown:not(#userAvatarDropdown) {
display: none !important;
    }

    /* Show slot machine and markersDropdown in left section */
    .toolbar-section:first-child > *:not(#markersDropdown):not(.city-slot-machine):not(.view-mode-toggle) {
display: none !important;
    }

    #markersDropdown,
    .city-slot-machine {
display: flex !important;
    }

    /* Simplified toolbar - minimal height */
    .subverse-toolbar {
height: 44px;
padding: 0 10px;
gap: 8px;
justify-content: space-between;
    }

    /* Mobile toolbar sections */
    .toolbar-section {
gap: 6px;
    }

    .toolbar-section.right {
gap: 8px;
    }

    /* Compact toolbar buttons */
    .toolbar-btn {
padding: 6px 10px;
font-size: 11px;
border-radius: 6px;
    }

    /* Data/Markers dropdown - this is the CATEGORY filter */
    #markersDropdown .toolbar-btn {
padding: 6px 12px;
font-size: 12px;
    }

    /* User avatar - keep visible and prominent */
    .user-avatar {
width: 32px;
height: 32px;
    }

    .user-avatar-icon {
font-size: 16px;
    }

    /* Hide the header (Subworkit logo bar) on mobile for more space */
    .subworkit-header {
display: none !important;
    }

    /* Adjust toolbar to top edge when header hidden */
    .subverse-toolbar {
top: 0;
    }

    /* Game HUD - hide on mobile */
    .game-hud {
display: none !important;
    }

    /* Session stats - hide on mobile */
    .session-stats {
display: none !important;
    }

    /* Actions panel - full width on mobile */
    .actions-panel {
left: 10px;
right: 10px;
width: auto !important;
max-width: none !important;
top: 54px !important;
    }

    /* Marker detail panel - optimize for mobile */
    .marker-detail-panel {
top: 50px !important;
left: 10px;
right: 10px;
width: auto;
max-height: 60vh;
    }

    /* ============================================
       SIMPLIFIED COCKPIT - Only Throttle & Altitude
       CENTERED on screen, VERTICAL sliders
       ============================================ */
    .car-dashboard {
position: fixed !important;
bottom: 20px !important;
left: 50% !important;
transform: translateX(-50%) !important;
top: auto !important;
right: auto !important;
padding: 15px 25px !important;
gap: 25px !important;
border-radius: 20px !important;
width: auto !important;
max-width: none !important;
min-width: auto !important;
background: rgba(10, 10, 26, 0.95) !important;
border: 2px solid rgba(0, 212, 255, 0.5) !important;
display: flex !important;
flex-direction: row !important;
align-items: stretch !important;
justify-content: center !important;
z-index: 1000 !important;
box-shadow: 0 0 30px rgba(0, 212, 255, 0.3) !important;
    }

    /* Hide ALL cockpit elements except joystick containers */
    .cockpit-compass,
    .cockpit-center,
    .quick-controls-vertical,
    .dashboard-drag-handle,
    .cockpit-section,
    .dash-speed,
    .dash-mode-indicator,
    .dash-direction-controls {
display: none !important;
    }

    /* Show joystick containers side by side */
    .cockpit-left,
    .cockpit-right {
display: flex !important;
flex-direction: column !important;
align-items: center !important;
justify-content: center !important;
    }

    /* Joystick containers - vertical layout, fully visible */
    .joystick-container {
display: flex !important;
flex-direction: column !important;
align-items: center !important;
gap: 8px !important;
padding: 10px 12px !important;
background: rgba(0, 0, 0, 0.4) !important;
border-radius: 14px !important;
border: 1px solid rgba(0, 212, 255, 0.4) !important;
min-height: 160px !important;
    }

    .joystick-label {
font-size: 10px !important;
writing-mode: horizontal-tb !important;
text-orientation: mixed !important;
transform: none !important;
letter-spacing: 1px !important;
color: rgba(255, 255, 255, 0.7) !important;
text-transform: uppercase !important;
margin-bottom: 5px !important;
    }

    .joystick-track {
display: flex !important;
flex-direction: column !important;
align-items: center !important;
flex: 1 !important;
    }

    /* VERTICAL sliders - properly sized (modern standards-compliant approach) */
    .joystick-slider.vertical {
width: 28px !important;
height: 100px !important;
/* Use modern writing-mode instead of deprecated slider-vertical */
-webkit-appearance: none !important;
appearance: none !important;
writing-mode: vertical-lr !important;
direction: rtl !important;
background: linear-gradient(180deg, rgba(0, 212, 255, 0.3), rgba(168, 85, 247, 0.3)) !important;
border-radius: 14px !important;
    }

    .joystick-slider.vertical::-webkit-slider-thumb {
-webkit-appearance: none !important;
width: 24px !important;
height: 24px !important;
background: linear-gradient(135deg, #00D4FF, #a855f7) !important;
border-radius: 50% !important;
cursor: pointer !important;
box-shadow: 0 0 12px rgba(0, 212, 255, 0.6) !important;
    }

    .joystick-markers {
display: none !important;
    }

    .joystick-value {
font-size: 16px !important;
font-weight: bold !important;
color: #00D4FF !important;
min-width: 45px !important;
text-align: center;
    }

    .joystick-value.alt {
color: #a855f7;
    }
}

/* Extra small screens - even more compact */
@media (max-width: 480px) {
    .subverse-toolbar {
height: 40px;
padding: 0 8px;
    }

    .toolbar-btn {
padding: 5px 8px;
font-size: 10px;
    }

    /* Show only icon in Data button */
    #markersDropdown .toolbar-btn span:not(:first-child) {
display: none !important;
    }

    .marker-total-badge {
display: inline-block !important;
font-size: 9px;
padding: 2px 5px;
    }

    .user-avatar {
width: 28px;
height: 28px;
    }

    /* Compact cockpit but keep vertical sliders */
    .car-dashboard {
padding: 10px 15px;
gap: 15px;
max-width: 180px;
bottom: 8px;
    }

    .joystick-container {
padding: 6px;
    }

    /* Keep sliders VERTICAL, just smaller */
    .joystick-slider.vertical {
width: 20px !important;
height: 80px !important;
    }

    .joystick-value {
font-size: 12px;
min-width: 35px;
    }

    .joystick-label {
font-size: 8px;
    }
}

/* ============================================
   DETAIL PANEL ACTIONS
   ============================================ */
.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.action-btn:active {
    transform: translateY(0);
}

.action-icon {
    font-size: 18px;
    margin-right: var(--space-sm);
}

.action-label {
    flex: 1;
    text-align: left;
}

.action-reward {
    font-size: 12px;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.2);
    padding: var(--space-xs) 10px;
    border-radius: var(--radius-md);
}

.action-apply {
    background: linear-gradient(135deg, var(--color-cyan), #0099cc);
    color: white;
}

.action-scout {
    background: linear-gradient(135deg, var(--color-green), #16a34a);
    color: white;
}

.action-validate {
    background: linear-gradient(135deg, var(--color-purple), #7c3aed);
    color: white;
}

.action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.detail-premium {
    margin-top: var(--space-lg);
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    color: var(--color-gold);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Action Success Animation */
.action-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(34, 197, 94, 0.95);
    color: white;
    padding: var(--space-xl) 40px;
    border-radius: var(--radius-lg);
    font-size: 18px;
    font-weight: bold;
    z-index: var(--z-dropdown);
    animation: successPop 0.5s ease, successFade 0.5s ease 1.5s forwards;
    pointer-events: none;
}

/* ============================================
   MINI MAP
   ============================================ */
.mini-map {
    width: 140px;
    height: 140px;
    background: var(--bg-panel);
    border: 2px solid var(--border-cyan);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.mini-map-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.mini-map-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--color-cyan);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px var(--color-cyan);
    z-index: 10;
}

.mini-map-player::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 8px solid var(--color-cyan);
}

.mini-map-marker {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    transform: translate(-50%, -50%);
}

.mini-map-marker.job { background: #3b82f6; }
.mini-map-marker.service { background: var(--color-purple); }
.mini-map-marker.request { background: #06b6d4; }
.mini-map-marker.provider { background: var(--color-green); }
.mini-map-marker.affiliate { background: #ec4899; }

.mini-map-zone {
    position: absolute;
    border: 2px dashed var(--border-purple);
    border-radius: var(--radius-full);
    opacity: 0.5;
}

/* ============================================
   LEVEL UP OVERLAY
   ============================================ */
.level-up-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: var(--z-dropdown);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.level-up-overlay.active {
    opacity: 1;
    pointer-events: auto;
    animation: levelUpBurst 2s ease forwards;
}

@keyframes levelUpBurst {
    0% { background: rgba(0, 0, 0, 0); }
    10% { background: rgba(0, 212, 255, 0.3); }
    30% { background: rgba(168, 85, 247, 0.3); }
    100% { background: rgba(0, 0, 0, 0.8); }
}

.level-up-text {
    font-size: 72px;
    font-weight: bold;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-purple), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(0, 212, 255, 0.8);
    animation: levelUpTextPulse 1s ease infinite;
}

@keyframes levelUpTextPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.level-up-number {
    font-size: 120px;
    font-weight: bold;
    color: var(--color-gold);
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    margin-top: 10px;
}

/* ============================================
   SESSION STATS
   ============================================ */
.session-stats {
    position: fixed;
    top: calc(var(--total-header-height) + var(--space-xl));
    right: var(--space-xl);
    z-index: var(--z-hud);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-end;
}

.session-stat {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-panel);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-xl);
    padding: 6px 14px;
    font-size: 13px;
}

.session-stat-icon {
    font-size: 16px;
}

.session-stat-value {
    font-weight: bold;
    color: var(--color-cyan);
}

.session-stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

/* ============================================
   PARTICLE EFFECTS
   ============================================ */
@keyframes particleFly {
    0% {
opacity: 1;
transform: translate(0, 0) scale(1);
    }
    100% {
opacity: 0;
transform: translate(var(--end-x), var(--end-y)) scale(0);
    }
}

@keyframes floatUp {
    0% {
opacity: 1;
transform: translateY(0) scale(1);
    }
    100% {
opacity: 0;
transform: translateY(-80px) scale(1.2);
    }
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

.particle {
    will-change: transform, opacity;
}

.floating-text {
    will-change: transform, opacity;
    font-family: var(--font-display);
}

/* Screen flash effect for big moments */
.screen-flash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    animation: flashPulse 0.3s ease-out forwards;
}

@keyframes flashPulse {
    0% { background: rgba(255, 215, 0, 0.3); }
    100% { background: transparent; }
}

/* Combo pulse ring effect */
.combo-ring {
    position: fixed;
    pointer-events: none;
    border: 3px solid #f97316;
    border-radius: var(--radius-full);
    animation: ringExpand 0.6s ease-out forwards;
    z-index: 9998;
}

@keyframes ringExpand {
    0% {
width: 20px;
height: 20px;
opacity: 1;
    }
    100% {
width: 150px;
height: 150px;
opacity: 0;
margin-left: -65px;
margin-top: -65px;
    }
}

/* ============================================
   ACTIONS PANEL (Right Side)
   ============================================ */
.actions-panel {
    position: fixed;
    right: var(--space-xl);
    top: calc(var(--total-header-height) + var(--space-xl));
    width: 340px;
    max-height: calc(100vh - 200px);
    background: var(--bg-panel-solid);
    border: 2px solid var(--border-cyan);
    border-radius: var(--radius-xl);
    z-index: var(--z-panel);
    display: none;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3),
        inset 0 0 60px rgba(168, 85, 247, 0.1);
}

.actions-panel.visible {
    display: flex;
    flex-direction: column;
    animation: panelSlideIn 0.3s ease;
}

.actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(168, 85, 247, 0.2));
    border-bottom: 1px solid var(--border-cyan);
}

.actions-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.actions-close {
    width: 28px;
    height: 28px;
    background: rgba(255, 100, 100, 0.2);
    border: 1px solid var(--border-red);
    border-radius: var(--radius-full);
    color: var(--color-red);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.actions-close:hover {
    background: rgba(255, 100, 100, 0.4);
    transform: scale(1.1);
}

.actions-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

.actions-body::-webkit-scrollbar {
    width: 6px;
}

.actions-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.actions-body::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.4);
    border-radius: 3px;
}

.action-category {
    margin-bottom: var(--space-lg);
}

.category-header {
    font-size: 12px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: var(--space-sm) 10px;
    margin-bottom: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-cyan);
}

.category-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    text-align: left;
}

.quick-action:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--border-cyan);
    transform: translateX(4px);
}

.quick-action.premium {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-color: var(--border-purple);
}

.quick-action.premium:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: var(--glow-purple);
}

.quick-action.reward {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border-color: var(--border-gold);
}

.quick-action.reward:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: var(--glow-gold);
}

.qa-icon {
    font-size: 20px;
    min-width: 28px;
    text-align: center;
}

.qa-text {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.qa-reward {
    font-size: 11px;
    color: var(--color-green);
    background: rgba(34, 197, 94, 0.1);
    padding: 3px var(--space-sm);
    border-radius: 10px;
    white-space: nowrap;
}

.quick-action.premium .qa-reward {
    color: var(--color-purple);
    background: rgba(168, 85, 247, 0.2);
}

.quick-action.reward .qa-reward {
    color: var(--color-gold);
    background: rgba(255, 215, 0, 0.2);
}

/* ============================================
   CITY SEARCH (Standalone)
   ============================================ */
.city-search-container {
    position: fixed;
    top: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-panel);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.city-search-box {
    display: flex;
    align-items: center;
    background: var(--bg-panel);
    border: 2px solid var(--border-cyan);
    border-radius: 30px;
    padding: var(--space-sm) var(--space-lg);
    gap: 10px;
    min-width: 350px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.city-search-box:focus-within {
    border-color: var(--color-cyan);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.city-search-icon {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
}

.city-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    color: white;
    font-family: inherit;
}

.city-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.city-search-btn {
    background: linear-gradient(135deg, var(--color-cyan), #0099cc);
    border: none;
    border-radius: var(--radius-xl);
    padding: var(--space-sm) var(--space-lg);
    color: white;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.city-search-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-cyan);
}

.city-suggestions {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-lg);
    margin-top: var(--space-sm);
    display: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.city-suggestions.visible {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.city-suggestion {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.city-suggestion:last-child {
    border-bottom: none;
}

.city-suggestion:hover {
    background: rgba(0, 212, 255, 0.15);
}

.city-suggestion-icon {
    font-size: 24px;
}

.city-suggestion-info {
    flex: 1;
}

.city-suggestion-name {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.city-suggestion-country {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.city-suggestion-pop {
    font-size: 11px;
    color: var(--color-cyan);
    background: rgba(0, 212, 255, 0.1);
    padding: var(--space-xs) 10px;
    border-radius: var(--radius-md);
}

/* Marker count badge */
.marker-count-badge {
    position: fixed;
    bottom: var(--space-xl);
    left: var(--space-xl);
    background: var(--bg-panel);
    border: 1px solid var(--border-purple);
    border-radius: var(--radius-md);
    padding: 10px var(--space-lg);
    z-index: var(--z-hud);
    font-size: 13px;
    color: white;
}

.marker-count-badge .count {
    font-weight: bold;
    color: var(--color-purple);
}

/* ============================================
   DASHBOARD DROP-UP MENUS
   ============================================ */
.dash-menu {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dash-dropup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    min-width: 160px;
    background: var(--bg-panel-solid);
    border: 2px solid var(--border-cyan);
    border-radius: var(--radius-md);
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-dropdown) + 100);
}

.dash-menu:hover .dash-dropup,
.dash-dropup.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.dropup-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.dropup-item:hover {
    background: rgba(0, 212, 255, 0.15);
    color: var(--color-cyan);
}

.dropup-item.active {
    background: rgba(0, 212, 255, 0.2);
    color: var(--color-cyan);
}

.dropup-item .item-icon {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.dropup-item .item-label {
    flex: 1;
}

.dropup-item .item-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(34, 197, 94, 0.2);
    color: var(--color-green);
    border-radius: var(--radius-sm);
}

.dropup-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 0;
}

/* DASHBOARD SPEED & MODE - DUPLICATE REMOVED, see Sprint 29 cockpit section */

/* ============================================
   FLOATING WIDGETS
   ============================================ */
.floating-widget {
    position: fixed;
    background: var(--bg-panel);
    border: 2px solid var(--border-cyan);
    border-radius: 14px;
    z-index: var(--z-header);
    cursor: move;
    min-width: 120px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.floating-widget .widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.15));
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    cursor: grab;
}

.floating-widget .widget-header:active {
    cursor: grabbing;
}

.floating-widget .widget-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-cyan);
    text-transform: uppercase;
}

.floating-widget .widget-close {
    width: 20px;
    height: 20px;
    background: rgba(255, 100, 100, 0.2);
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-red);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-widget .widget-body {
    padding: 10px var(--space-md);
}

/* ============================================
   DIRECTION CONTROLS
   ============================================ */
.dash-direction-controls {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-panel);
    border: 2px solid var(--border-purple);
    border-radius: 14px;
}

.direction-btn {
    width: 50px;
    height: 50px;
    background: rgba(168, 85, 247, 0.2);
    border: 2px solid rgba(168, 85, 247, 0.5);
    border-radius: 10px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
}

.direction-btn:hover {
    background: rgba(168, 85, 247, 0.4);
    border-color: var(--color-purple);
    transform: scale(1.05);
}

.direction-btn:active {
    background: rgba(168, 85, 247, 0.6);
    transform: scale(0.95);
    box-shadow: var(--glow-purple);
}

/* ============================================
   BOOST BUTTON
   ============================================ */
.dash-boost-btn {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.3), rgba(255, 100, 0, 0.3)) !important;
    border-color: var(--color-orange) !important;
    position: relative;
    overflow: hidden;
}

.dash-boost-btn:hover {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.5), rgba(255, 100, 0, 0.4)) !important;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.5) !important;
}

.dash-boost-btn.on-cooldown {
    opacity: 0.5;
    cursor: not-allowed;
}

.dash-boost-cooldown {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--color-cyan);
    transition: width 0.1s linear;
    width: 0%;
}

/* Street Level Badge */
.street-level-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff4444, #ff6b00);
    color: white;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-weight: bold;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 68, 68, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 68, 68, 0.8); }
}

/* Engine animation when flying */
.dash-start-stop.flying .start-icon {
    animation: engine-pulse 0.5s ease-in-out infinite;
}

@keyframes engine-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Flight mode header hide */
.subworkit-header.flight-mode {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Hide old HUD in dashboard mode */
.nav-hud.dashboard-mode,
.speed-hud.dashboard-mode {
    display: none;
}

/* ============================================
   SUBWORKIT 3D - EXTRACTED FROM INLINE STYLES
   Consolidated: 2026-01-07
   ============================================ */


/* ============================================
   SUBWORKIT 3D UNIFIED TOP TOOLBAR (Single Layer)
   Merges all HUD elements into one clean bar
   ============================================ */
.subworkit3d-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(180deg, rgba(10, 10, 26, 0.98), rgba(15, 15, 35, 0.95));
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    z-index: 399;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    backdrop-filter: blur(10px);
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Toolbar Stats Container - Compact inline counters */
.toolbar-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* XP/Level Badge - Compact */
.toolbar-xp-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.toolbar-xp-badge:hover {
    border-color: #00D4FF;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

.toolbar-xp-badge .level-icon {
    font-size: 14px;
}

.toolbar-xp-badge .level-num {
    color: #ffd700;
    font-weight: 700;
}

.toolbar-xp-badge .xp-progress {
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-xp-badge .xp-bar {
    width: 50px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.toolbar-xp-badge .xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00D4FF, #a855f7);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.toolbar-xp-badge .xp-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
}

/* Token Counter - Compact */
.toolbar-token {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.toolbar-token:hover {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.toolbar-token.swiv {
    border-color: rgba(168, 85, 247, 0.5);
}

.toolbar-token.swiv:hover {
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.toolbar-token .token-icon {
    font-size: 12px;
}

.toolbar-token .token-value {
    font-weight: 700;
    color: #ffd700;
}

.toolbar-token.swiv .token-value {
    color: #a855f7;
}

/* Scout Button - Prominent in toolbar */
.toolbar-scout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.toolbar-scout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.toolbar-scout-btn .scout-icon {
    font-size: 16px;
}

.toolbar-scout-btn .scout-label {
    display: none;
}

@media (min-width: 768px) {
    .toolbar-scout-btn .scout-label {
        display: inline;
    }
}

/* 🎰 CITY SLOT MACHINE - Mobile City Selector */
.city-slot-machine {
    display: flex;
    align-items: center;
    gap: 2px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 2px 6px;
    height: 32px;
}

.slot-arrow {
    background: transparent;
    border: none;
    color: rgba(0, 212, 255, 0.8);
    font-size: 10px;
    cursor: pointer;
    padding: 2px 4px;
    transition: all 0.2s;
    line-height: 1;
}

.slot-arrow:hover {
    color: #00D4FF;
    transform: scale(1.2);
}

.slot-display {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.slot-reel {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slot-city {
    display: none; /* Hide all cities by default */
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.slot-city.active {
    display: flex; /* Show only the active city */
    color: #00D4FF;
}

/* Hide slot machine on desktop (show dropdown instead) */
@media (min-width: 769px) {
    .city-slot-machine {
        display: none;
    }
}

/* 📱 MOBILE TOOLBAR FIXES - 2-LINE LAYOUT for better visibility */
@media (max-width: 768px) {
    .subworkit3d-toolbar {
        padding: 4px 6px;
        gap: 2px;
        height: auto; /* Allow dynamic height for 2 lines */
        min-height: 70px; /* Reduced from 100px - tighter 2 rows */
        flex-wrap: wrap; /* Enable wrapping to 2 lines */
        align-content: flex-start;
    }

    /* Row 1: Navigation (Left section spans full width) */
    .toolbar-section.left {
        order: 1;
        width: 100%;
        justify-content: space-between;
        gap: 4px;
        padding-bottom: 2px;
        border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    }

    /* Row 2: Stats & User (Center hidden, Right spans full width) */
    .toolbar-section.center {
        order: 2;
        display: none; /* Hide search on mobile - use city slot instead */
    }

    .toolbar-section.right {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 4px;
        padding-top: 2px;
    }

    .toolbar-btn {
        padding: 4px 8px;
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        flex-shrink: 0;
        color: #FFFFFF;
    }

    .toolbar-btn span:last-child {
        display: none; /* Hide dropdown arrows on mobile */
    }

    .toolbar-token {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 50px;
    }

    .toolbar-xp-badge {
        padding: 5px 10px;
        min-width: 70px;
    }

    .toolbar-xp-badge .xp-progress {
        display: flex; /* Show progress bar on 2-line layout */
    }

    .toolbar-xp-badge .xp-bar {
        width: 40px;
    }

    .toolbar-scout-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .toolbar-scout-btn .scout-label {
        display: inline; /* Show "Scout" text on 2-line mobile */
    }

    /* City slot machine full visibility */
    .city-slot-machine {
        display: flex;
    }

    /* Nav HUD (bottom buttons) - better mobile spacing */
    .nav-hud {
        bottom: 10px;
        gap: 8px;
    }

    .nav-btn {
        width: 56px;
        height: 56px;
        font-size: 11px;
    }
}

/* 📱 VERY SMALL SCREENS - Tighter spacing */
@media (max-width: 400px) {
    .subworkit3d-toolbar {
        padding: 4px 6px;
        min-height: 90px;
    }

    .toolbar-btn {
        padding: 5px 8px;
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .toolbar-token {
        padding: 4px 8px;
        font-size: 11px;
    }

    .toolbar-xp-badge {
        padding: 4px 8px;
    }

    .toolbar-xp-badge .xp-bar {
        width: 30px;
    }

    .toolbar-scout-btn {
        padding: 6px 10px;
    }

    .toolbar-scout-btn .scout-label {
        display: none; /* Hide on very small screens */
    }
}

/* Center section for search */
.toolbar-section.center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 350px;
}

/* Right section pushed to right edge */
.toolbar-section.right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-section.left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-section {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.toolbar-search {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 5px 12px;
    min-width: 200px;
    max-width: 280px;
    position: relative;
}

.toolbar-search input {
    background: transparent;
    border: none;
    color: white;
    font-size: 13px;
    width: 100%;
    outline: none;
}

.toolbar-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.toolbar-search-icon {
    margin-right: 8px;
    font-size: 14px;
}

/* City suggestions dropdown in toolbar */
.toolbar-search .city-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: rgba(15, 15, 35, 0.98);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.toolbar-search .city-suggestions.visible {
    display: block;
}

.toolbar-search .city-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.toolbar-search .city-suggestion:hover {
    background: rgba(0, 212, 255, 0.15);
}

.toolbar-search .city-suggestion-icon {
    font-size: 18px;
}

.toolbar-search .city-suggestion-info {
    flex: 1;
}

.toolbar-search .city-suggestion-name {
    color: white;
    font-weight: 500;
    font-size: 13px;
}

.toolbar-search .city-suggestion-country {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.toolbar-search .city-suggestion-pop {
    color: #00D4FF;
    font-size: 11px;
}

/* Duplicate .toolbar-btn removed - see line ~423 for canonical definition */

/* Home Button - Special styling */
.toolbar-btn.home-btn {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.2));
    border-color: rgba(59, 130, 246, 0.5);
    font-size: 16px;
    padding: 6px 12px;
}
.toolbar-btn.home-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(37, 99, 235, 0.3));
    border-color: #3b82f6;
    transform: scale(1.05);
}

/* SWIV Counter in Toolbar */
.toolbar-swiv-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(139, 69, 219, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toolbar-swiv-counter:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(139, 69, 219, 0.25));
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.toolbar-swiv-counter .swiv-icon {
    font-size: 16px;
}

.toolbar-swiv-counter .swiv-value {
    color: #a855f7;
    font-weight: 700;
    min-width: 30px;
    text-align: right;
}

.toolbar-swiv-counter .swiv-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toolbar-dropdown {
    position: relative;
}

.toolbar-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    min-width: 180px;
    background: rgba(20, 20, 40, 0.98);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 10px;
    padding: 8px 0;
    display: none;
    z-index: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.toolbar-dropdown.open .toolbar-dropdown-menu {
    display: block;
}

.toolbar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #FFFFFF;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toolbar-dropdown-item:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #FFFFFF;
}

.toolbar-dropdown-item .item-icon {
    font-size: 16px;
}

.toolbar-divider {
    height: 1px;
    background: rgba(168, 85, 247, 0.2);
    margin: 6px 0;
}

/* ============================================
   USER AVATAR (Authentication)
   ============================================ */
.user-avatar-container {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(0, 212, 255, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    border-color: #00D4FF;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    transform: scale(1.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-icon {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.user-avatar.authenticated {
    border-color: #22c55e;
}

.user-avatar.authenticated:hover {
    border-color: #16a34a;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

/* User dropdown menu */
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 200px;
    background: rgba(20, 20, 40, 0.98);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    padding: 12px 0;
    display: none;
    z-index: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.user-avatar-container.open .user-dropdown-menu {
    display: block;
}

.user-info-header {
    padding: 8px 16px 12px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    margin-bottom: 8px;
}

.user-info-name {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-info-email {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    margin-top: 2px;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.user-dropdown-item:hover {
    background: rgba(168, 85, 247, 0.2);
    color: white;
}

.user-dropdown-item .item-icon {
    font-size: 16px;
}

/* Trust Score Badge in User Dropdown */
.user-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin: 8px 12px;
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.2),
        rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
}

.user-trust-icon {
    font-size: 20px;
}

.user-trust-info {
    flex: 1;
}

.user-trust-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-trust-level {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.user-trust-level.new { color: #22c55e; }
.user-trust-level.trusted { color: #00d4ff; }
.user-trust-level.expert { color: #fbbf24; }
.user-trust-level.scout { color: #a855f7; }

/* Marker Total Badge */
.marker-total-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    margin-left: 4px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    color: white;
}

/* Marker Filter Items */
.marker-filter-item {
    justify-content: space-between !important;
}

.marker-filter-item .item-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 10px;
    font-weight: bold;
}

.marker-filter-item.active {
    background: rgba(34, 197, 94, 0.1);
}

.marker-filter-item.active::before {
    content: '✓';
    position: absolute;
    left: 8px;
    color: #22c55e;
    font-size: 12px;
}

.marker-filter-item {
    position: relative;
    padding-left: 24px !important;
}

.toolbar-dropdown-header {
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

/* Adjust other elements to account for unified toolbar */
.city-search-container {
    top: 70px !important;
}

/* Hide old game-hud - now merged into toolbar */
.game-hud {
    display: none !important;
}

/* Hide old session-stats - now merged into toolbar */
.session-stats {
    display: none !important;
}

.marker-detail-panel {
    top: 70px !important;
}

.actions-panel {
    top: 62px !important;
    right: 5px !important;
    width: calc(100vw - 10px) !important;
    max-width: 400px !important;
}

.subworkit-logo img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

/* ============================================
   NAVIGATION HUD
   ============================================ */
.nav-hud {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 200;
    pointer-events: auto;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(10, 10, 26, 0.9);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.nav-btn:hover {
    border-color: rgba(0, 212, 255, 0.8);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.nav-btn.active {
    border-color: #00D4FF;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(168, 85, 247, 0.2));
    color: #00D4FF;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.nav-btn .icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-btn .label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* INVALID CSS REMOVED - "Subworkit Flight" class names had spaces (never worked) */

/* Boost Button */
.boost-btn {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 100, 0, 0.2)) !important;
    border-color: #ff9500 !important;
    position: relative;
}

.boost-btn:hover {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.4), rgba(255, 100, 0, 0.3)) !important;
    box-shadow: 0 0 25px rgba(255, 165, 0, 0.5) !important;
}

.boost-btn.on-cooldown {
    opacity: 0.5;
    cursor: not-allowed;
}

.boost-cooldown {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #00D4FF;
    border-radius: 0 0 14px 14px;
    transition: width 0.1s linear;
    width: 0%;
}

/* SPEED-HUD CSS DELETED - Now using .car-dashboard (Sprint 29) */



/* ============================================
   MAGICAL STRUCTURES INFO - Bottom Left
   ============================================ */
.structure-info {
    position: fixed;
    bottom: 70px;
    left: 20px;
    background: rgba(10, 10, 26, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 16px;
    padding: 16px 20px;
    min-width: 250px;
    max-width: 280px;
    z-index: 200;
    display: none;
}

.structure-info.visible {
    display: block;
    animation: slideIn 0.3s ease;
}

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

.structure-name {
    font-size: 18px;
    font-weight: bold;
    color: #00D4FF;
    margin-bottom: 8px;
}

.structure-type {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.structure-rewards {
    display: flex;
    gap: 12px;
}

.reward-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: #ffd700;
}

/* LOADING SCREEN DUPLICATE REMOVED - See line ~634 for canonical definition */

/* OLD COORDINATES DISPLAY - Disabled, moved to cockpit dashboard
   ============================================ */
/* .coords-display is now styled in the cockpit section below */

/* ============================================
   🎴 HOLOGRAPHIC MARKER INFO CARD (Sprint 29)
   Beautiful futuristic popup when clicking markers
   ============================================ */
.marker-detail-panel {
    position: fixed;
    top: 120px;
    right: 20px;
    transform: none;
    width: 360px;
    max-height: calc(100vh - 250px);
    background: linear-gradient(145deg,
        rgba(10, 15, 35, 0.95) 0%,
        rgba(15, 20, 45, 0.98) 50%,
        rgba(10, 15, 35, 0.95) 100%);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg,
        rgba(0, 212, 255, 0.8),
        rgba(168, 85, 247, 0.8),
        rgba(0, 212, 255, 0.8)) 1;
    border-radius: 24px;
    padding: 0;
    z-index: 300;
    display: none;
    overflow: hidden;
    box-shadow:
        0 0 60px rgba(0, 212, 255, 0.4),
        0 0 120px rgba(168, 85, 247, 0.2),
        inset 0 0 60px rgba(0, 0, 0, 0.4);
}

.marker-detail-panel.visible {
    display: block;
    animation: cardHoloAppear 0.5s ease forwards;
}

@keyframes cardHoloAppear {
    0% {
        opacity: 0;
        transform: translateX(50px) scale(0.8) rotateY(15deg);
    }
    50% {
        opacity: 1;
        transform: translateX(-10px) scale(1.02) rotateY(-3deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1) rotateY(0deg);
    }
}

/* Holographic shimmer effect */
.marker-detail-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 212, 255, 0.1) 25%,
        rgba(168, 85, 247, 0.15) 50%,
        rgba(0, 212, 255, 0.1) 75%,
        transparent 100%);
    animation: holoShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes holoShimmer {
    0% { transform: translateX(-25%); }
    100% { transform: translateX(25%); }
}

/* Card header with image/icon area */
.card-header-image {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.3) 0%,
        rgba(168, 85, 247, 0.3) 50%,
        rgba(236, 72, 153, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-header-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(10, 15, 35, 0.98));
}

.card-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.5);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #00D4FF;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    z-index: 2;
}

.detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 100, 100, 0.5);
    border-radius: 50%;
    color: #ff6464;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    z-index: 5;
}

.detail-close:hover {
    background: rgba(255, 100, 100, 0.3);
    border-color: #ff6464;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 100, 100, 0.5);
}

.card-icon-large {
    font-size: 60px;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Card body content - scrollable for long content */
.card-body-content {
    padding: 20px;
    position: relative;
    max-height: calc(100vh - 370px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.5) rgba(0, 0, 0, 0.3);
}

.card-body-content::-webkit-scrollbar {
    width: 6px;
}

.card-body-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.card-body-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.6), rgba(168, 85, 247, 0.6));
    border-radius: 3px;
}

.card-body-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.8), rgba(168, 85, 247, 0.8));
}

.detail-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.detail-icon {
    display: none; /* Hidden - using card header instead */
}

.detail-title-section {
    flex: 1;
}

.detail-title {
    font-size: 22px;
    font-weight: bold;
    color: white;
    margin-bottom: 6px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.detail-type {
    font-size: 12px;
    color: #a855f7;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-type::before {
    content: '◆';
    font-size: 8px;
    color: #00D4FF;
}

.detail-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 16px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid rgba(0, 212, 255, 0.6);
    border-radius: 0 10px 10px 0;
    max-height: 150px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.3) transparent;
}

.detail-description::-webkit-scrollbar {
    width: 4px;
}

.detail-description::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.4);
    border-radius: 2px;
}

/* Extended info section for entity-specific data */
.detail-extended-info {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
}

.detail-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.detail-info-row:last-child {
    border-bottom: none;
}

.detail-info-label {
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-info-value {
    color: #00D4FF;
    font-weight: 600;
}

.detail-info-value.highlight {
    color: #ffd700;
}

.detail-info-value.success {
    color: #22c55e;
}

/* Tags/Skills section */
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.detail-tag {
    padding: 4px 10px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    font-size: 11px;
    color: #00D4FF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-tag.urgent {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.detail-tag.premium {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

.detail-location {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
}

.detail-location .loc-icon {
    font-size: 16px;
}

/* Rewards section - more prominent */
.detail-rewards-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-reward {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #ffd700;
    transition: all 0.2s ease;
}

.detail-reward:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.2));
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.detail-reward.xp {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 150, 200, 0.1));
    border-color: rgba(0, 212, 255, 0.4);
    color: #00D4FF;
}

.detail-reward.swi {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(120, 60, 200, 0.1));
    border-color: rgba(168, 85, 247, 0.4);
    color: #a855f7;
}

.reward-icon {
    font-size: 18px;
}

/* Action buttons - futuristic style */
.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    height: 70px;
    min-height: 70px;
    padding: 10px 8px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 10px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    color: white;
    flex-shrink: 0;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.action-btn:active {
    transform: translateY(0) scale(0.98);
}

.action-icon {
    font-size: 20px;
    margin-right: 0;
}

.action-label {
    font-size: 9px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.action-reward {
    font-size: 8px;
    opacity: 0.9;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.action-apply {
    background: linear-gradient(135deg, #00D4FF, #0088cc);
    color: white;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.action-scout {
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: white;
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
}

.action-validate {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: white;
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.4);
}

.action-navigate {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    box-shadow: 0 5px 20px rgba(249, 115, 22, 0.4);
}

.action-fly {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

.action-fly:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

.action-profile {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
}

.action-profile:hover {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.action-directions {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.action-directions:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.action-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    filter: grayscale(50%);
}

.detail-premium {
    margin-top: 16px;
    text-align: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.15));
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 12px;
    color: #ffd700;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    animation: premiumPulse 2s ease-in-out infinite;
}

@keyframes premiumPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.6); }
}

/* Distance indicator */
.detail-distance {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 20px;
    font-size: 12px;
    color: #22c55e;
    margin-bottom: 12px;
}

/* Card footer stats */
.card-footer-stats {
    display: flex;
    justify-content: space-around;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    margin-top: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #00D4FF;
}

.stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* Action Success Animation */
.action-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(34, 197, 94, 0.95);
    color: white;
    padding: 20px 40px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: bold;
    z-index: 500;
    animation: successPop 0.5s ease, successFade 0.5s ease 1.5s forwards;
    pointer-events: none;
}

@keyframes successPop {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes successFade {
    to { opacity: 0; transform: translate(-50%, -70%) scale(0.8); }
}

/* ============================================
   GAMING HUD (Sprint 24) - Top toolbar row
   ============================================ */
.game-hud {
    position: fixed;
    top: 90px;
    left: 20px;
    right: 20px;
    z-index: 250;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    max-width: calc(100vw - 40px);
}

.game-hud > * {
    pointer-events: auto;
}

/* Player Level & XP Bar - Compact horizontal */
.player-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 10, 26, 0.95);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 12px;
    padding: 8px 14px;
    min-width: auto;
    flex-shrink: 0;
}

.player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00D4FF, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    position: relative;
}

.player-level-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 6px;
    border: 1px solid rgba(10, 10, 26, 0.9);
}

.player-info {
    flex: 1;
    min-width: 120px;
}

.player-name {
    font-size: 12px;
    font-weight: bold;
    color: white;
    margin-bottom: 3px;
}

.xp-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00D4FF, #a855f7);
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.xp-bar-fill.level-up {
    animation: levelUpPulse 1s ease;
}

@keyframes levelUpPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 212, 255, 0.5); }
    50% { box-shadow: 0 0 30px rgba(168, 85, 247, 1), 0 0 60px rgba(0, 212, 255, 0.8); }
}

.xp-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
}

/* Token Counter - Compact inline */
.token-display {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.token-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 10, 26, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    padding: 6px 10px;
}

.token-box.swi {
    border-color: rgba(168, 85, 247, 0.5);
}

.token-icon {
    font-size: 14px;
}

.token-value {
    font-size: 13px;
    font-weight: bold;
    color: #ffd700;
}

.token-box.swi .token-value {
    color: #a855f7;
}

.token-change {
    font-size: 10px;
    color: #22c55e;
    animation: tokenPop 0.5s ease;
}

@keyframes tokenPop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); opacity: 1; }
}

/* Streak & Combo - Compact inline */
.streak-display {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 10, 26, 0.95);
    border: 1px solid rgba(255, 100, 100, 0.4);
    border-radius: 10px;
    padding: 6px 10px;
    flex-shrink: 0;
}

.streak-icon {
    font-size: 16px;
    animation: fireGlow 1s ease infinite;
}

@keyframes fireGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.4); }
}

.streak-count {
    font-size: 14px;
    font-weight: bold;
    color: #ff6464;
}

.streak-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.combo-multiplier {
    background: linear-gradient(135deg, #ff6464, #ff8c00);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 8px;
}

/* Mini Map */
.mini-map {
    width: 140px;
    height: 140px;
    background: rgba(10, 10, 26, 0.95);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.mini-map-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.mini-map-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #00D4FF;
    border-radius: 50%;
    box-shadow: 0 0 10px #00D4FF;
    z-index: 10;
}

.mini-map-player::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 8px solid #00D4FF;
}

.mini-map-marker {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.mini-map-marker.job { background: #3b82f6; }
.mini-map-marker.service { background: #a855f7; }
.mini-map-marker.request { background: #06b6d4; }
.mini-map-marker.provider { background: #22c55e; }
.mini-map-marker.affiliate { background: #ec4899; }

.mini-map-zone {
    position: absolute;
    border: 2px dashed rgba(168, 85, 247, 0.4);
    border-radius: 50%;
    opacity: 0.5;
}

/* Achievement Popup */
.achievement-popup {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(255, 165, 0, 0.95));
    border: 3px solid #ffd700;
    border-radius: 20px;
    padding: 20px 40px;
    z-index: 400;
    text-align: center;
    animation: achievementSlideIn 0.5s ease forwards, achievementSlideOut 0.5s ease 3.5s forwards;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
}

@keyframes achievementSlideIn {
    from {
        transform: translateX(-50%) scale(0) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) scale(1) translateY(0);
        opacity: 1;
    }
}

/* DUPLICATE KEYFRAMES REMOVED - Defined earlier in file:
   @keyframes achievementSlideOut (line ~755)
   @keyframes pulseVignette (line ~734)
   @keyframes blink (line ~739)
*/

/* 🎮 Subworkit Flight Gaming Effects */
@keyframes barrelRollFlash {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes trickComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.achievement-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.achievement-title {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.achievement-name {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
}

.achievement-reward {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
}

/* Level Up Overlay */
.level-up-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.level-up-overlay.active {
    opacity: 1;
    pointer-events: auto;
    animation: levelUpBurst 2s ease forwards;
}

@keyframes levelUpBurst {
    0% { background: rgba(0, 0, 0, 0); }
    10% { background: rgba(0, 212, 255, 0.3); }
    30% { background: rgba(168, 85, 247, 0.3); }
    100% { background: rgba(0, 0, 0, 0.8); }
}

.level-up-text {
    font-size: 72px;
    font-weight: bold;
    background: linear-gradient(90deg, #00D4FF, #a855f7, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px rgba(0, 212, 255, 0.8);
    animation: levelUpTextPulse 1s ease infinite;
}

@keyframes levelUpTextPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.level-up-number {
    font-size: 120px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    margin-top: 10px;
}

/* Session Stats (Top Right - Below actions menu) */
.session-stats {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 250;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.session-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 10, 26, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
}

.session-stat-icon {
    font-size: 16px;
}

.session-stat-value {
    font-weight: bold;
    color: #00D4FF;
}

.session-stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

/* ====================================== */
/* PARTICLE EFFECTS (Sprint 25)          */
/* ====================================== */

@keyframes particleFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) scale(0);
    }
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(1.2);
    }
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

.particle {
    will-change: transform, opacity;
}

.floating-text {
    will-change: transform, opacity;
    font-family: 'Orbitron', sans-serif;
}

/* Screen flash effect for big moments */
.screen-flash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    animation: flashPulse 0.3s ease-out forwards;
}

@keyframes flashPulse {
    0% { background: rgba(255, 215, 0, 0.3); }
    100% { background: transparent; }
}

/* Combo pulse ring effect */
.combo-ring {
    position: fixed;
    pointer-events: none;
    border: 3px solid #f97316;
    border-radius: 50%;
    animation: ringExpand 0.6s ease-out forwards;
    z-index: 9998;
}

@keyframes ringExpand {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: 150px;
        height: 150px;
        opacity: 0;
        margin-left: -65px;
        margin-top: -65px;
    }
}

/* ============================================
   ACTIONS PANEL (Sprint 26) - Toolbar Dropdown
   ============================================ */
.actions-panel {
    position: fixed;
    right: 10px;
    top: 55px;
    width: 360px;
    max-height: calc(100vh - 80px);
    background: rgba(10, 10, 26, 0.98);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 16px;
    z-index: 500;
    display: none;
    overflow: hidden;
    box-shadow: 0 4px 40px rgba(0, 212, 255, 0.4),
                inset 0 0 60px rgba(168, 85, 247, 0.1);
}

.actions-panel.visible {
    display: flex;
    flex-direction: column;
    animation: panelSlideIn 0.3s ease;
}

.actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(168, 85, 247, 0.2));
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.actions-title {
    font-size: 16px;
    font-weight: bold;
    color: #00D4FF;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.actions-close {
    width: 28px;
    height: 28px;
    background: rgba(255, 100, 100, 0.2);
    border: 1px solid rgba(255, 100, 100, 0.4);
    border-radius: 50%;
    color: #ff6464;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.actions-close:hover {
    background: rgba(255, 100, 100, 0.4);
    transform: scale(1.1);
}

.actions-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.actions-body::-webkit-scrollbar {
    width: 6px;
}

.actions-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.actions-body::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.4);
    border-radius: 3px;
}

.action-category {
    margin-bottom: 16px;
}

.category-header {
    font-size: 12px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #00D4FF;
}

.category-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    text-align: left;
}

.quick-action:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateX(4px);
}

.quick-action.premium {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-color: rgba(168, 85, 247, 0.4);
}

.quick-action.premium:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.quick-action.reward {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.3);
}

.quick-action.reward:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.qa-icon {
    font-size: 20px;
    min-width: 28px;
    text-align: center;
}

.qa-text {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.qa-reward {
    font-size: 11px;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.quick-action.premium .qa-reward {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.2);
}

.quick-action.reward .qa-reward {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.2);
}

/* Actions Toggle Button - HIDDEN (use toolbar button instead) */
.actions-toggle {
    display: none !important;
}

.actions-toggle.active {
    background: rgba(168, 85, 247, 0.3);
    border-color: #00D4FF;
}

/* ============================================
   CITY SEARCH BAR (Sprint 26)
   ============================================ */
.city-search-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.city-search-box {
    display: flex;
    align-items: center;
    background: rgba(10, 10, 26, 0.95);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 30px;
    padding: 8px 16px;
    gap: 10px;
    min-width: 350px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.city-search-box:focus-within {
    border-color: #00D4FF;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.city-search-icon {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
}

.city-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    color: white;
    font-family: inherit;
}

.city-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.city-search-btn {
    background: linear-gradient(135deg, #00D4FF, #0099cc);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.city-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.city-suggestions {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(10, 10, 26, 0.98);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    margin-top: 8px;
    display: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.city-suggestions.visible {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.city-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.city-suggestion:last-child {
    border-bottom: none;
}

.city-suggestion:hover {
    background: rgba(0, 212, 255, 0.15);
}

.city-suggestion-icon {
    font-size: 24px;
}

.city-suggestion-info {
    flex: 1;
}

.city-suggestion-name {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.city-suggestion-country {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.city-suggestion-pop {
    font-size: 11px;
    color: #00D4FF;
    background: rgba(0, 212, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Marker count badge - Bottom Left */
.marker-count-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(10, 10, 26, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    padding: 10px 16px;
    z-index: 200;
    font-size: 13px;
    color: white;
}

.marker-count-badge .count {
    font-weight: bold;
    color: #a855f7;
}

/* ============================================
   � SPACESHIP COCKPIT DASHBOARD (Sprint 29)
   Futuristic starship control interface
   ============================================ */

/* Flight Mode: Hide header when moving */
.subworkit-header.flight-mode {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.subworkit-header {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Main Cockpit Dashboard - Compact boat cockpit */
.car-dashboard {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 1100px;
    height: 140px;
    background: linear-gradient(180deg,
        rgba(5, 5, 20, 0.85) 0%,
        rgba(10, 10, 30, 0.95) 40%,
        rgba(5, 8, 25, 0.98) 100%);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 212, 255, 0.3) 15%,
        rgba(0, 212, 255, 0.8) 30%,
        rgba(168, 85, 247, 0.8) 50%,
        rgba(0, 212, 255, 0.8) 70%,
        rgba(0, 212, 255, 0.3) 85%,
        transparent 100%) 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 20px;
    z-index: 500;
    box-shadow:
        0 -10px 60px rgba(0, 0, 0, 0.8),
        inset 0 2px 40px rgba(0, 212, 255, 0.1),
        inset 0 -20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

/* Cockpit glass reflection effect */
.car-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 100%);
    pointer-events: none;
}

/* Animated scan line */
.car-dashboard::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 212, 255, 0.5) 50%,
        transparent 100%);
    animation: cockpitScan 4s linear infinite;
    pointer-events: none;
}

@keyframes cockpitScan {
    0% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(90px); opacity: 1; }
    100% { transform: translateY(180px); opacity: 0.5; }
}

.car-dashboard.dragging {
    opacity: 0.95;
    box-shadow: 0 0 80px rgba(0, 212, 255, 0.6);
}

/* Dashboard drag handle indicator */
.dashboard-drag-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.6), transparent);
    border-radius: 2px;
    cursor: grab;
    z-index: 10;
}

.dashboard-drag-handle:hover {
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 1), transparent);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* ============================================
   COCKPIT LAYOUT: 3-SECTION DESIGN
   [LEFT GAUGES] [CENTER WHEEL] [RIGHT GAUGES]
   ============================================ */
.cockpit-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
}

.cockpit-left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-right: 15px;
}

.cockpit-center {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cockpit-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding-left: 15px;
}

/* ============================================
   🎮 STEERING WHEEL - Drag to turn
   ============================================ */
.steering-wheel {
    position: relative;
    width: 100px;
    height: 100px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto !important;
    z-index: 1000;
}
.steering-wheel:active { cursor: grabbing; }

.wheel-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 6px solid #444;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a2a3a, #1a1a2a);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), inset 0 0 15px rgba(0, 0, 0, 0.8);
    transition: transform 0.05s linear;
}
.steering-wheel:hover .wheel-ring {
    border-color: #00D4FF;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.8);
}
.steering-wheel.turning .wheel-ring {
    border-color: #a855f7;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.6), inset 0 0 15px rgba(0, 0, 0, 0.8);
}

/* Spokes */
.wheel-spoke {
    position: absolute;
    background: linear-gradient(90deg, #333, #555, #333);
    border-radius: 3px;
}
.wheel-spoke.top { width: 6px; height: 30px; top: 8px; left: 50%; transform: translateX(-50%); }
.wheel-spoke.left { width: 30px; height: 6px; left: 8px; top: 50%; transform: translateY(-50%); }
.wheel-spoke.right { width: 30px; height: 6px; right: 8px; top: 50%; transform: translateY(-50%); }

/* Center hub */
.wheel-center {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #1a1a2a, #0a0a15);
    border: 2px solid #00D4FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.wheel-heading {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: bold;
    color: #00D4FF;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.8);
}

/* Side grips */
.wheel-grip {
    position: absolute;
    width: 14px;
    height: 28px;
    background: linear-gradient(90deg, #555, #777, #555);
    border: 2px solid #888;
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.wheel-grip.left { left: -8px; border-radius: 6px 3px 3px 6px; }
.wheel-grip.right { right: -8px; border-radius: 3px 6px 6px 3px; }
.wheel-grip:hover { background: linear-gradient(90deg, #666, #888, #666); border-color: #00D4FF; }

/* ============================================
   📊 SPEEDOMETER GAUGE - LEFT SIDE
   Circular gauge with needle animation
   ============================================ */
.speedometer-gauge {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-outer {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: conic-gradient(
        from 135deg,
        rgba(34, 197, 94, 0.8) 0deg,
        rgba(0, 212, 255, 0.8) 90deg,
        rgba(168, 85, 247, 0.8) 180deg,
        rgba(239, 68, 68, 0.8) 270deg,
        rgba(34, 197, 94, 0.8) 270deg
    );
    mask: radial-gradient(transparent 55%, black 56%);
    -webkit-mask: radial-gradient(transparent 55%, black 56%);
    animation: gaugeRotate 20s linear infinite;
}

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

.gauge-inner {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(20, 20, 40, 0.95), rgba(10, 10, 25, 0.98));
    border: 2px solid rgba(0, 212, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 212, 255, 0.2);
}

.gauge-needle {
    position: absolute;
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, #ff4444, #ff8800);
    border-radius: 2px;
    transform-origin: center bottom;
    bottom: 50%;
    left: 50%;
    transition: transform 0.3s ease-out;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.6);
}

.gauge-center-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #ffffff, #888888);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.speed-value-display {
    font-size: 32px;
    font-weight: bold;
    color: #00D4FF;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
    line-height: 1;
    margin-top: 15px;
}

.speed-unit-display {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.speed-label {
    position: absolute;
    bottom: -8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   📏 ALTIMETER GAUGE - RIGHT SIDE
   Circular gauge with height display
   ============================================ */
.altimeter-gauge {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alt-gauge-outer {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: conic-gradient(
        from 135deg,
        rgba(34, 197, 94, 0.8) 0deg,
        rgba(34, 197, 94, 0.6) 60deg,
        rgba(168, 85, 247, 0.8) 120deg,
        rgba(168, 85, 247, 0.6) 180deg,
        rgba(239, 68, 68, 0.6) 240deg,
        rgba(239, 68, 68, 0.8) 270deg
    );
    mask: radial-gradient(transparent 55%, black 56%);
    -webkit-mask: radial-gradient(transparent 55%, black 56%);
}

.alt-gauge-inner {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(20, 20, 40, 0.95), rgba(10, 10, 25, 0.98));
    border: 2px solid rgba(168, 85, 247, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(168, 85, 247, 0.2);
}

.alt-needle {
    position: absolute;
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, #a855f7, #ec4899);
    border-radius: 2px;
    transform-origin: center bottom;
    bottom: 50%;
    left: 50%;
    transition: transform 0.3s ease-out;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.alt-center-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #ffffff, #888888);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.alt-value-display {
    font-size: 28px;
    font-weight: bold;
    color: #a855f7;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.7);
    line-height: 1;
    margin-top: 15px;
}

.alt-unit-display {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.alt-label {
    position: absolute;
    bottom: -8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   🕹️ JOYSTICK CONTROLS (Sprint 29)
   Plane-style throttle and altitude sticks
   ============================================ */
.joystick-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.joystick-label {
    font-size: 10px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.joystick-track {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.joystick-slider.vertical {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 80px;
    background: linear-gradient(180deg,
        rgba(34, 197, 94, 0.4) 0%,
        rgba(0, 212, 255, 0.4) 50%,
        rgba(239, 68, 68, 0.4) 100%);
    border-radius: 10px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    cursor: ns-resize;
    writing-mode: vertical-lr;
    direction: rtl;
    box-shadow:
        inset 0 0 10px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(0, 212, 255, 0.2);
}

.joystick-slider.vertical::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 30px;
    height: 18px;
    background: linear-gradient(180deg, #00D4FF, #0088aa);
    border-radius: 6px;
    cursor: grab;
    border: 2px solid #fff;
    box-shadow:
        0 0 10px rgba(0, 212, 255, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.4);
}

.joystick-slider.vertical::-moz-range-thumb {
    width: 30px;
    height: 18px;
    background: linear-gradient(180deg, #00D4FF, #0088aa);
    border-radius: 6px;
    cursor: grab;
    border: 2px solid #fff;
    box-shadow:
        0 0 10px rgba(0, 212, 255, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.4);
}

.joystick-slider.vertical:active::-webkit-slider-thumb {
    cursor: grabbing;
    background: linear-gradient(180deg, #00FFFF, #00D4FF);
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.9),
        0 4px 8px rgba(0, 0, 0, 0.4);
}

.joystick-markers {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 80px;
    font-size: 7px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.joystick-markers.alt {
    color: rgba(168, 85, 247, 0.7);
}

.joystick-value {
    font-size: 16px;
    font-weight: bold;
    color: #00D4FF;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.joystick-value.alt {
    color: #a855f7;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.throttle-joystick .joystick-slider.vertical {
    background: linear-gradient(180deg,
        rgba(239, 68, 68, 0.4) 0%,
        rgba(255, 165, 0, 0.4) 50%,
        rgba(34, 197, 94, 0.4) 100%);
}

.altitude-joystick .joystick-slider.vertical {
    background: linear-gradient(180deg,
        rgba(168, 85, 247, 0.6) 0%,
        rgba(168, 85, 247, 0.3) 50%,
        rgba(34, 197, 94, 0.4) 100%);
    border-color: rgba(168, 85, 247, 0.5);
}

.altitude-joystick .joystick-slider.vertical::-webkit-slider-thumb {
    background: linear-gradient(180deg, #a855f7, #7c3aed);
}

/* ============================================
   📍 COORDINATES DISPLAY (Sprint 29)
   Real-time lat/lon in cockpit dashboard
   Positioned next to Home button in right section
   ============================================ */
.coords-display {
    margin-top: 0;
    margin-left: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 8px;
    text-align: center;
    flex-shrink: 0;
    height: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.coords-label {
    display: none; /* Hide label for compact view next to buttons */
}

.coords-value {
    display: flex;
    flex-direction: row;
    gap: 8px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
}

.coord-lat {
    color: #22c55e; /* Green for latitude */
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.coord-lon {
    color: #00D4FF; /* Cyan for longitude */
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.altitude-joystick .joystick-slider.vertical::-moz-range-thumb {
    background: linear-gradient(180deg, #a855f7, #7c3aed);
}

/* Quick Controls Horizontal Layout */
.quick-controls-vertical {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 0;
    align-items: center;
}

.quick-controls-vertical .cockpit-btn {
    width: 36px;
    height: 36px;
}

.quick-controls-vertical .cockpit-btn .btn-icon {
    font-size: 14px;
}

/* ============================================
   🎛️ CONTROL BUTTONS - COCKPIT STYLE
   ============================================ */
.cockpit-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.9), rgba(15, 15, 30, 0.95));
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.8);
}

.cockpit-btn:hover {
    border-color: #00D4FF;
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.15), rgba(30, 30, 50, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.cockpit-btn .btn-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.cockpit-btn .btn-label {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
}

/* Engine Start/Stop Button - Big red/green */
.engine-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.1));
    border: 3px solid #22c55e;
    box-shadow:
        0 0 20px rgba(34, 197, 94, 0.4),
        inset 0 0 20px rgba(34, 197, 94, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.engine-btn:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 30px rgba(34, 197, 94, 0.6),
        inset 0 0 25px rgba(34, 197, 94, 0.3);
}

.engine-btn.active {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.1));
    border-color: #ef4444;
    box-shadow:
        0 0 20px rgba(239, 68, 68, 0.4),
        inset 0 0 20px rgba(239, 68, 68, 0.2);
    animation: enginePulse 1s ease-in-out infinite;
}

@keyframes enginePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.4), inset 0 0 20px rgba(239, 68, 68, 0.2); }
    50% { box-shadow: 0 0 35px rgba(239, 68, 68, 0.7), inset 0 0 30px rgba(239, 68, 68, 0.4); }
}

.engine-btn .btn-icon {
    font-size: 28px;
}

.engine-btn .btn-label {
    font-size: 9px;
    font-weight: bold;
}

.engine-btn.active .btn-label {
    color: #ef4444;
}

/* Speed/Altitude sliders - futuristic style */
.cockpit-slider-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background: rgba(10, 10, 30, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
}

.cockpit-slider-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cockpit-slider {
    width: 100px;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #22c55e, #00D4FF, #a855f7, #ef4444);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.cockpit-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(145deg, #ffffff, #cccccc);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.cockpit-slider-value {
    font-size: 14px;
    font-weight: bold;
    color: #00D4FF;
    font-family: 'Courier New', monospace;
}

/* ============================================
   COCKPIT COMPASS - Restored 2026-01-08
   Rotating compass with N/S/E/W labels
   ============================================ */
.cockpit-compass {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a1a2e, #0d0d1a);
    border: 3px solid rgba(0, 212, 255, 0.6);
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.3),
        inset 0 0 15px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cockpit-compass-label {
    position: absolute;
    font-size: 11px;
    font-weight: bold;
    font-family: 'Orbitron', 'Courier New', monospace;
    text-shadow: 0 0 8px currentColor;
}

.cockpit-compass-label.n {
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff4444;
    font-size: 13px;
    text-shadow: 0 0 10px #ff4444;
}

.cockpit-compass-label.s {
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
}

.cockpit-compass-label.e {
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
}

.cockpit-compass-label.w {
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
}

.cockpit-compass-needle {
    position: absolute;
    width: 4px;
    height: 28px;
    top: 50%;
    left: 50%;
    margin-left: -2px;
    margin-top: -14px;
    transform-origin: center center;
    background: linear-gradient(to top, #ffffff 0%, #ffffff 45%, #ff4444 55%, #ff4444 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
    transition: transform 0.1s ease-out;
}

/* Compass center dot */
.cockpit-compass::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #00D4FF, #0066aa);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    z-index: 5;
}

/* Dashboard Menu Item */
.dash-menu {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dash-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 8px 12px;
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.8);
}

.dash-menu-btn:hover {
    border-color: #00D4FF;
    background: rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
}

.dash-menu-btn.active {
    border-color: #00D4FF;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(168, 85, 247, 0.25));
    color: #00D4FF;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.dash-menu-btn .dash-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.dash-menu-btn .dash-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Drop-up Menu */
.dash-dropup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    min-width: 160px;
    background: rgba(10, 10, 26, 0.98);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 12px;
    padding: 8px 0;
    margin-bottom: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 600;
}

.dash-menu:hover .dash-dropup,
.dash-dropup.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.dropup-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.dropup-item:hover {
    background: rgba(0, 212, 255, 0.15);
    color: #00D4FF;
}

.dropup-item.active {
    background: rgba(0, 212, 255, 0.2);
    color: #00D4FF;
}

.dropup-item .item-icon {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.dropup-item .item-label {
    flex: 1;
}

.dropup-item .item-badge {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-radius: 8px;
}

.dropup-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 0;
}

/* Speed Display - Integrated into dashboard */
.dash-speed {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 20px;
    background: rgba(10, 10, 26, 0.9);
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 14px;
    min-width: 100px;
}

.dash-speed-value {
    font-size: 28px;
    font-weight: bold;
    color: #00D4FF;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    line-height: 1;
}

.dash-speed-unit {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* Flight Mode Indicator */
.dash-mode-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 20px;
    font-size: 12px;
    color: #a855f7;
    font-weight: 600;
}

.dash-mode-indicator .mode-icon {
    font-size: 16px;
}

/* Draggable Panel Base Styles */
.draggable-panel {
    cursor: move;
    user-select: none;
}

.draggable-panel .panel-drag-handle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    cursor: grab;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.1), transparent);
    border-radius: 12px 12px 0 0;
}

.draggable-panel .panel-drag-handle:active {
    cursor: grabbing;
}

.draggable-panel .panel-drag-handle::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(0, 212, 255, 0.4);
    border-radius: 2px;
}

/* OLD HUD HIDING - Consolidated above, removed duplicate */



/* Boost button in dashboard */
.dash-boost-btn {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.3), rgba(255, 100, 0, 0.3)) !important;
    border-color: #ff9500 !important;
    position: relative;
    overflow: hidden;
}

.dash-boost-btn:hover {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.5), rgba(255, 100, 0, 0.4)) !important;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.5) !important;
}

.dash-boost-btn.on-cooldown {
    opacity: 0.5;
    cursor: not-allowed;
}

.dash-boost-cooldown {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #00D4FF;
    transition: width 0.1s linear;
    width: 0%;
}

/* Direction Controls (Left/Right Arrows) */
.dash-direction-controls {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(10, 10, 26, 0.9);
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 14px;
}

.direction-btn {
    width: 50px;
    height: 50px;
    background: rgba(168, 85, 247, 0.2);
    border: 2px solid rgba(168, 85, 247, 0.5);
    border-radius: 10px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
}

.direction-btn:hover {
    background: rgba(168, 85, 247, 0.4);
    border-color: #a855f7;
    transform: scale(1.05);
}

.direction-btn:active {
    background: rgba(168, 85, 247, 0.6);
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.direction-btn.left-btn:active {
    box-shadow: -5px 0 20px rgba(168, 85, 247, 0.6);
}

.direction-btn.right-btn:active {
    box-shadow: 5px 0 20px rgba(168, 85, 247, 0.6);
}

/* Actions menu minimized in dashboard */
.dash-actions-mini {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 450;
}

/* Floating minimized panels */
.floating-widget {
    position: fixed;
    background: rgba(10, 10, 26, 0.95);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 14px;
    z-index: 400;
    cursor: move;
    min-width: 120px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.floating-widget .widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.15));
    border-radius: 12px 12px 0 0;
    cursor: grab;
}

.floating-widget .widget-header:active {
    cursor: grabbing;
}

.floating-widget .widget-title {
    font-size: 11px;
    font-weight: 600;
    color: #00D4FF;
    text-transform: uppercase;
}

.floating-widget .widget-close {
    width: 20px;
    height: 20px;
    background: rgba(255, 100, 100, 0.2);
    border: none;
    border-radius: 50%;
    color: #ff6464;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-widget .widget-body {
    padding: 10px 12px;
}

/* Speed Control Slider */
.dash-speed-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: rgba(10, 10, 26, 0.9);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 14px;
    min-width: 140px;
}

.dash-speed-control .control-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.dash-speed-control .speed-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.speed-btn {
    width: 28px;
    height: 28px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 6px;
    color: #00D4FF;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.speed-btn:hover {
    background: rgba(0, 212, 255, 0.4);
    transform: scale(1.1);
}

.speed-btn:active {
    transform: scale(0.95);
}

.speed-slider {
    flex: 1;
    height: 6px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #00D4FF, #a855f7);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.speed-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #00D4FF, #a855f7);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.dash-speed-value-control {
    font-size: 18px;
    font-weight: bold;
    color: #00D4FF;
    min-width: 50px;
    text-align: center;
}

/* Altitude Control */
.dash-altitude-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: rgba(10, 10, 26, 0.9);
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 14px;
    min-width: 90px;
}

.dash-altitude-control .control-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.altitude-value {
    font-size: 18px;
    font-weight: bold;
    color: #a855f7;
    font-family: 'Courier New', monospace;
}

.altitude-unit {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
}

.altitude-controls {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.altitude-btn {
    width: 32px;
    height: 24px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 4px;
    color: #a855f7;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.altitude-btn:hover {
    background: rgba(168, 85, 247, 0.4);
}

.altitude-btn.preset {
    font-size: 10px;
    padding: 0 6px;
    width: auto;
}

/* Altitude Slider */
.altitude-slider {
    width: 100%;
    margin-top: 8px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #22c55e 0%, #a855f7 50%, #ff4444 100%);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.altitude-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
}

.altitude-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
    border: none;
}

/* STEERING WHEEL CSS DELETED - Feature removed 2026-01-08 */

/* Street Level Mode Indicator */
.street-level-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff4444, #ff6b00);
    color: white;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* DUPLICATE @keyframes pulse-glow REMOVED - Defined at line ~2493 */

/* Start/Stop Toggle Button */
.dash-start-stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.1));
    border: 2px solid #22c55e;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.dash-start-stop:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.5), rgba(34, 197, 94, 0.3));
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.dash-start-stop.flying {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.1));
    border-color: #ef4444;
}

.dash-start-stop.flying:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.5), rgba(239, 68, 68, 0.3));
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.dash-start-stop .start-icon {
    font-size: 24px;
    line-height: 1;
}

.dash-start-stop .start-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #22c55e;
}

.dash-start-stop.flying .start-label {
    color: #ef4444;
}

/* Engine animation when flying */
.dash-start-stop.flying .start-icon {
    animation: engine-pulse 0.5s ease-in-out infinite;
}

@keyframes engine-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============================================
   AUTH MODAL (Login/Signup)
   ============================================ */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal.visible {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.98), rgba(30, 30, 60, 0.95));
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(168, 85, 247, 0.2);
    animation: modal-slide-in 0.3s ease;
}

@keyframes modal-slide-in {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.auth-modal-header {
    padding: 24px 24px 0;
    text-align: center;
}

.auth-modal-logo {
    font-size: 48px;
    margin-bottom: 8px;
}

.auth-modal-title {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.auth-modal-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-top: 6px;
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-modal-close:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin: 20px 24px 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.auth-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.auth-tab.active {
    color: #00D4FF;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00D4FF, #A855F7);
}

/* Auth Forms */
.auth-form-container {
    display: none;
    padding: 24px;
}

.auth-form-container.active {
    display: block;
}

.auth-form-group {
    margin-bottom: 18px;
}

.auth-form-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.auth-form-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-form-input:focus {
    outline: none;
    border-color: #00D4FF;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.auth-form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-password-wrapper {
    position: relative;
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 16px;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #A855F7, #00D4FF);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
    display: none;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

.auth-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fca5a5;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.auth-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    color: #86efac;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.auth-2fa-container {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(168, 85, 247, 0.2);
}

.auth-divider span {
    padding: 0 12px;
}

.auth-footer {
    text-align: center;
    padding: 0 24px 24px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.auth-footer a {
    color: #00D4FF;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}
