﻿        :root {
            --bg-space: #030611;
            --jita-blue: #00d2ff;
            --jita-amber: #f59e0b;
            --caldari-grey: #1e293b;
            --panel-bg: rgba(10, 16, 32, 0.92);
            --panel-border: rgba(0, 210, 255, 0.28);
            --text-main: #e2e8f0;
            --text-muted: #94a3b8;
        }

        /* Language Dropdown Menu */
        .eve-lang-selector {
            position: relative;
            display: inline-flex;
            align-items: center;
        }
        .eve-lang-trigger .lang-caret {
            font-size: 9px;
            color: #64748b;
            transition: transform 0.2s ease;
            margin-left: 2px;
        }
        .eve-lang-selector.is-open .eve-lang-trigger .lang-caret {
            transform: rotate(180deg);
            color: var(--jita-blue);
        }
        .eve-lang-menu {
            position: absolute;
            top: calc(100% + 6px);
            right: 0;
            z-index: 99999;
            background: rgba(10, 15, 29, 0.98);
            border: 1px solid rgba(0, 240, 255, 0.45);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 240, 255, 0.2);
            backdrop-filter: blur(14px);
            border-radius: 8px;
            min-width: 220px;
            padding: 6px;
            display: none;
            flex-direction: column;
            gap: 4px;
        }
        .eve-lang-selector.is-open .eve-lang-menu,
        .eve-lang-menu.is-open {
            display: flex !important;
            animation: langMenuFadeIn 0.15s ease-out;
        }
        @keyframes langMenuFadeIn {
            from { opacity: 0; transform: translateY(-4px); }
            to { opacity: 1; transform: translateY(0); }
        }

        * {
            box-sizing: border-box;
            user-select: none;
        }

        html {
            width: 100%;
            height: 100%;
            max-width: 100vw;
            overflow: hidden !important;
            overflow-x: hidden !important;
            margin: 0;
            padding: 0;
            -webkit-text-size-adjust: 100%;
        }

        body {
            width: 100%;
            height: 100%;
            max-width: 100vw;
            height: 100dvh;
            overflow: hidden !important;
            overflow-x: hidden !important;
            background-color: var(--bg-space) !important;
            font-family: 'Rajdhani', sans-serif;
            color: var(--text-main);
            margin: 0;
            padding: 0;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        /* Fullscreen Video Background */
        .video-bg-container {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 0;
            pointer-events: none;
        }

        #bg-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: brightness(0.92) contrast(1.05);
            pointer-events: none;
        }

        /* Glass HUD base */
        .hud-glass {
            background: var(--panel-bg);
            border: 1px solid var(--panel-border);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-radius: 8px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.75), inset 0 0 14px rgba(0, 210, 255, 0.06);
            pointer-events: auto;
        }

        /* Header Navigation */
        .hud-header {
            position: fixed;
            top: 14px;
            left: 88px; /* Safe margin: no collision with NEOCOM bar */
            right: 18px;
            max-width: calc(100vw - 106px);
            z-index: 40;
            display: flex;
            justify-content: space-between;
            align-items: center;
            pointer-events: none;
            gap: 12px;
            box-sizing: border-box;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .station-branding {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 8px 16px;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .station-logo-badge {
            width: 38px;
            height: 38px;
            background: linear-gradient(135deg, #0284c7, #0369a1);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 15px rgba(2, 132, 199, 0.5);
            border: 1px solid rgba(56, 189, 248, 0.4);
        }

        .station-meta h1 {
            font-family: 'Orbitron', sans-serif;
            font-size: 13px;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: #ffffff;
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0;
        }

        .station-status-pill {
            font-size: 9px;
            padding: 2px 6px;
            background: rgba(16, 185, 129, 0.2);
            color: #34d399;
            border: 1px solid rgba(16, 185, 129, 0.4);
            border-radius: 4px;
            font-family: 'Share Tech Mono', monospace;
        }

        .station-sub {
            font-family: 'Share Tech Mono', monospace;
            font-size: 11px;
            color: var(--jita-blue);
            display: flex;
            gap: 10px;
            margin-top: 2px;
        }

        .hud-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: nowrap;
            flex-shrink: 0;
            pointer-events: auto;
        }

        .hud-btn {
            background: rgba(15, 23, 42, 0.88);
            border: 1px solid rgba(0, 210, 255, 0.3);
            color: #cbd5e1;
            padding: 7px 12px;
            border-radius: 6px;
            font-family: 'Rajdhani', sans-serif;
            font-weight: 700;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s ease;
            text-decoration: none;
            outline: none;
        }
        .hud-btn:hover {
            background: rgba(0, 210, 255, 0.22);
            border-color: var(--jita-blue);
            color: #ffffff;
            box-shadow: 0 0 14px rgba(0, 210, 255, 0.4);
            transform: translateY(-1px);
        }
        .hud-btn.active {
            background: rgba(0, 210, 255, 0.28);
            border-color: var(--jita-blue);
            color: #38bdf8;
            box-shadow: 0 0 16px rgba(0, 210, 255, 0.55);
        }

        /* Pilot Chip */
        .pilot-chip {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 4px 12px 4px 5px;
        }
        .pilot-avatar-img {
            width: 34px;
            height: 34px;
            border-radius: 5px;
            border: 1px solid var(--jita-blue);
            background: #0f172a;
            object-fit: cover;
        }
        .pilot-name-text {
            font-weight: 700;
            font-size: 13px;
            color: #ffffff;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .corp-tag {
            color: var(--jita-amber);
            font-family: 'Share Tech Mono', monospace;
            font-size: 11px;
        }

        /* --- NEOCOM FLOATING BAR (LEFT DOCK) --- */
        .neocom-dock {
            position: absolute;
            left: 14px;
            top: 14px;
            z-index: 50;
            display: flex;
            flex-direction: column;
            gap: 6px;
            padding: 8px 5px;
            background: rgba(8, 14, 26, 0.94);
            border: 1px solid rgba(0, 210, 255, 0.35);
            border-radius: 10px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 210, 255, 0.2);
            backdrop-filter: blur(18px);
            transition: opacity 0.3s ease, transform 0.3s ease;
            max-height: calc(100vh - 28px);
            overflow-y: auto;
        }
        .neocom-dock::-webkit-scrollbar {
            width: 0;
        }

        .neocom-btn {
            width: 42px;
            height: 42px;
            border-radius: 7px;
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(0, 210, 255, 0.2);
            color: #94a3b8;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            position: relative;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            outline: none;
        }
        .neocom-btn:hover {
            background: rgba(0, 210, 255, 0.22);
            border-color: var(--jita-blue);
            color: #ffffff;
            box-shadow: 0 0 14px rgba(0, 210, 255, 0.45);
            transform: scale(1.06);
        }
        .neocom-btn.active {
            background: linear-gradient(135deg, rgba(2, 132, 199, 0.7), rgba(0, 210, 255, 0.45));
            border-color: var(--jita-blue);
            color: #ffffff;
            box-shadow: 0 0 18px rgba(0, 210, 255, 0.7);
        }

        /* Balãozinho Moderno / Mini-Modal Flutuante para os Ícones do Neocom */
        .neocom-modern-popover {
            position: fixed;
            pointer-events: none;
            z-index: 99999;
            width: 290px;
            background: linear-gradient(135deg, rgba(8, 14, 28, 0.97) 0%, rgba(13, 22, 40, 0.96) 100%);
            border: 1px solid rgba(0, 210, 255, 0.45);
            border-radius: 9px;
            padding: 12px 14px;
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 22px rgba(0, 210, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            opacity: 0;
            visibility: hidden;
            transform: translateX(-10px) scale(0.96);
            transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
        }
        .neocom-modern-popover.is-visible {
            opacity: 1;
            visibility: visible;
            transform: translateX(0) scale(1);
        }
        .neocom-modern-popover .popover-arrow {
            position: absolute;
            left: -6px;
            top: 20px;
            width: 10px;
            height: 10px;
            background: rgba(8, 14, 28, 0.97);
            border-left: 1px solid rgba(0, 210, 255, 0.45);
            border-bottom: 1px solid rgba(0, 210, 255, 0.45);
            transform: rotate(45deg);
        }
        .neocom-modern-popover .popover-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 6px;
        }
        .neocom-modern-popover .popover-badge {
            font-family: 'Share Tech Mono', monospace;
            font-size: 10px;
            text-transform: uppercase;
            color: var(--jita-blue);
            background: rgba(0, 210, 255, 0.12);
            border: 1px solid rgba(0, 210, 255, 0.3);
            padding: 2px 7px;
            border-radius: 4px;
            letter-spacing: 0.8px;
            font-weight: 700;
        }
        .neocom-modern-popover .popover-indicator {
            display: flex;
            align-items: center;
            gap: 5px;
            font-family: 'Share Tech Mono', monospace;
            font-size: 9px;
            color: #10b981;
        }
        .neocom-modern-popover .popover-indicator-dot {
            width: 6px;
            height: 6px;
            background: #10b981;
            border-radius: 50%;
            box-shadow: 0 0 8px #10b981;
        }
        .neocom-modern-popover .popover-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 13px;
            font-weight: 700;
            color: #ffffff;
            letter-spacing: 0.6px;
            margin-bottom: 5px;
            text-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
        }
        .neocom-modern-popover .popover-desc {
            font-family: 'Rajdhani', sans-serif;
            font-size: 13px;
            line-height: 1.4;
            color: #cbd5e1;
            font-weight: 500;
        }
        .neocom-modern-popover .popover-footer {
            margin-top: 9px;
            padding-top: 7px;
            border-top: 1px solid rgba(0, 210, 255, 0.16);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .neocom-modern-popover .popover-hint {
            font-family: 'Share Tech Mono', monospace;
            font-size: 10px;
            color: #38bdf8;
            letter-spacing: 0.6px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .neocom-divider {
            width: 100%;
            height: 1px;
            background: rgba(0, 210, 255, 0.2);
            margin: 2px 0;
        }

        /* --- NEOCOM FLOATING WINDOWS / EVE MODALS (ABERTURA NO CENTRO) --- */
        .hud-floating-window {
            position: fixed;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 440px;
            max-width: calc(100vw - 40px);
            max-height: calc(100vh - 40px);
            background: rgba(10, 16, 32, 0.50);
            border: 1px solid var(--jita-blue);
            border-radius: 10px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 28px rgba(0, 210, 255, 0.18);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            z-index: 60;
            display: none;
            user-select: text;
        }
        .hud-floating-window.is-dragging {
            transition: none !important;
            user-select: none;
        }
        .hud-floating-window.active {
            display: flex;
            flex-direction: column;
            animation: windowPopCenter 0.22s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* Large Modals for Dossier, Hub, Corp, Skills */
        .hud-floating-window.window-large {
            width: 1160px;
            max-width: calc(100vw - 80px);
            height: calc(100vh - 80px);
            max-height: calc(100vh - 80px);
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }

        .hud-floating-window.window-fullscreen {
            top: 10px !important;
            left: 10px !important;
            transform: none !important;
            width: calc(100vw - 20px) !important;
            height: calc(100vh - 20px) !important;
            max-width: none !important;
            max-height: none !important;
        }

        @keyframes windowPopCenter {
            from { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
            to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
        }

        .window-header {
            padding: 8px 14px;
            border-bottom: 1px solid rgba(0, 210, 255, 0.25);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            background: rgba(15, 23, 42, 0.82);
            border-radius: 9px 9px 0 0;
            flex-shrink: 0;
            cursor: grab;
            touch-action: none;
            user-select: none;
        }
        .window-header:active,
        .hud-floating-window.is-dragging .window-header {
            cursor: grabbing;
        }

        .window-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1.2px;
            color: var(--jita-blue);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .window-header-actions {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .window-ctrl-btn {
            background: none;
            border: none;
            color: #94a3b8;
            font-size: 15px;
            cursor: pointer;
            line-height: 1;
            padding: 2px 6px;
            border-radius: 4px;
            transition: all 0.15s;
        }
        .window-ctrl-btn:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.1);
        }

        .window-body {
            padding: 12px 14px;
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
        }

        /* Responsive Fleet Cards Grid */
        .fleet-cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
            gap: 14px;
        }
        .hub-char-card {
            position: relative;
        }
        .eve-card-loader {
            position: absolute;
            top: 8px;
            right: 8px;
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 3px 7px;
            border-radius: 999px;
            background: rgba(8, 14, 27, 0.9);
            border: 1px solid rgba(0, 210, 255, 0.45);
            box-shadow: 0 0 10px rgba(0, 210, 255, 0.25);
            opacity: 0;
            transform: translateY(-2px) scale(0.95);
            pointer-events: none;
            transition: opacity 0.2s ease, transform 0.2s ease;
            z-index: 5;
        }
        .hub-char-card.is-syncing .eve-card-loader {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
        .eve-orbital-ring {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }
        .eve-orbital-outer {
            transform-origin: center;
            animation: eveOrbitalSpin 1.15s linear infinite;
        }
        .eve-orbital-inner {
            transform-origin: center;
            animation: eveOrbitalSpinReverse 1.6s linear infinite;
        }
        .eve-loader-label {
            font-family: 'Share Tech Mono', monospace;
            font-size: 9.5px;
            letter-spacing: 0.5px;
            color: #38bdf8;
            font-weight: 700;
        }
        @keyframes eveOrbitalSpin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        @keyframes eveOrbitalSpinReverse {
            from { transform: rotate(360deg); }
            to { transform: rotate(0deg); }
        }

        /* Floating Window Resize Handles (8-way Mouse & Touch) */
        .window-resize-handle {
            position: absolute;
            z-index: 25;
            touch-action: none;
            user-select: none;
            -webkit-user-select: none;
        }
        .window-resize-handle.handle-n { top: -4px; left: 12px; right: 12px; height: 9px; cursor: ns-resize; }
        .window-resize-handle.handle-s { bottom: -4px; left: 12px; right: 12px; height: 9px; cursor: ns-resize; }
        .window-resize-handle.handle-e { top: 12px; bottom: 12px; right: -4px; width: 9px; cursor: ew-resize; }
        .window-resize-handle.handle-w { top: 12px; bottom: 12px; left: -4px; width: 9px; cursor: ew-resize; }
        .window-resize-handle.handle-ne { top: -4px; right: -4px; width: 16px; height: 16px; cursor: nesw-resize; z-index: 27; }
        .window-resize-handle.handle-nw { top: -4px; left: -4px; width: 16px; height: 16px; cursor: nwse-resize; z-index: 27; }
        .window-resize-handle.handle-se { bottom: -4px; right: -4px; width: 20px; height: 20px; cursor: nwse-resize; z-index: 27; }
        .window-resize-handle.handle-sw { bottom: -4px; left: -4px; width: 16px; height: 16px; cursor: nesw-resize; z-index: 27; }
        .window-resize-grip {
            position: absolute;
            right: 4px;
            bottom: 4px;
            width: 12px;
            height: 12px;
            opacity: 0.5;
            pointer-events: none;
            display: flex;
            align-items: flex-end;
            justify-content: flex-end;
            transition: opacity 0.2s ease;
        }
        .hud-floating-window:hover .window-resize-grip,
        .hud-floating-window.is-resizing .window-resize-grip {
            opacity: 1;
        }
        .hud-floating-window.window-fullscreen .window-resize-handle,
        .hud-floating-window.window-fullscreen .window-resize-grip {
            display: none;
        }
        .hud-floating-window.is-resizing {
            transition: none !important;
            user-select: none;
        }
            position: relative;
        }
        /* Dark Gray Scrollbar Theme (apenas scroll, sem alterar outras cores) */
        * {
            scrollbar-width: thin;
            scrollbar-color: #374151 #111827;
        }
        *::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        *::-webkit-scrollbar-track {
            background: #111827;
            border-radius: 4px;
        }
        *::-webkit-scrollbar-thumb {
            background: #374151;
            border-radius: 4px;
            border: 1px solid #1f2937;
        }
        *::-webkit-scrollbar-thumb:hover {
            background: #4b5563;
        }
        *::-webkit-scrollbar-corner {
            background: #111827;
        }
        .window-body::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        .window-body::-webkit-scrollbar-track {
            background: #111827;
            border-radius: 4px;
        }
        .window-body::-webkit-scrollbar-thumb {
            background: #374151;
            border-radius: 4px;
            border: 1px solid #1f2937;
        }
        .window-body::-webkit-scrollbar-thumb:hover {
            background: #4b5563;
        }

        /* Central Quick-Launch Wrapper & Header (Deck de Cards Rápidos no Salão) */
        .lounge-quick-wrapper {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 15;
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: auto;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .lounge-quick-wrapper.minimized {
            display: none !important;
        }

        .lounge-quick-deck-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 7px 14px;
            background: rgba(10, 16, 30, 0.85);
            border: 1px solid rgba(0, 210, 255, 0.25);
            border-radius: 8px;
            backdrop-filter: blur(14px);
            box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
        }

        .deck-header-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 11px;
            font-weight: 700;
            color: var(--jita-blue);
            letter-spacing: 1.2px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .deck-pulse-indicator {
            width: 7px;
            height: 7px;
            background: #00d2ff;
            border-radius: 50%;
            box-shadow: 0 0 8px #00d2ff;
            display: inline-block;
        }

        .btn-deck-hide {
            background: rgba(15, 23, 42, 0.7);
            border: 1px solid rgba(0, 210, 255, 0.25);
            color: #94a3b8;
            padding: 4px 10px;
            border-radius: 4px;
            font-family: 'Share Tech Mono', monospace;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .btn-deck-hide:hover {
            color: #ffffff;
            border-color: var(--jita-blue);
            background: rgba(0, 210, 255, 0.2);
        }

        .lounge-quick-deck {
            display: grid;
            grid-template-columns: repeat(4, 250px);
            gap: 16px;
        }

        .quick-card {
            background: rgba(10, 16, 30, 0.88);
            border: 1px solid rgba(0, 210, 255, 0.3);
            border-radius: 12px;
            padding: 18px 16px;
            backdrop-filter: blur(14px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(0, 210, 255, 0.05);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 12px;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            overflow: hidden;
        }

        .quick-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; height: 3px;
            background: linear-gradient(90deg, #0284c7, #00d2ff);
            opacity: 0.7;
        }

        .quick-card:hover {
            border-color: var(--jita-blue);
            transform: translateY(-4px) scale(1.02);
            box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 210, 255, 0.3);
        }

        .quick-card-icon {
            font-size: 26px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .quick-card-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 13px;
            font-weight: 700;
            color: #ffffff;
            letter-spacing: 0.8px;
        }

        .quick-card-desc {
            font-size: 12px;
            color: #94a3b8;
            line-height: 1.4;
        }

        .quick-card-footer {
            font-family: 'Share Tech Mono', monospace;
            font-size: 11px;
            color: var(--jita-blue);
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            padding-top: 10px;
        }

        /* Top Central Pill Button to Restore Quick Deck when minimized */
        .btn-restore-quick-deck {
            position: absolute;
            top: 76px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 35;
            background: rgba(10, 16, 30, 0.92);
            border: 1px solid var(--jita-blue);
            color: #ffffff;
            padding: 6px 18px;
            border-radius: 20px;
            font-family: 'Share Tech Mono', monospace;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.8px;
            cursor: pointer;
            backdrop-filter: blur(14px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 16px rgba(0, 210, 255, 0.35);
            display: none;
            align-items: center;
            gap: 8px;
            transition: all 0.2s ease;
        }
        .btn-restore-quick-deck:hover {
            background: rgba(0, 210, 255, 0.25);
            border-color: #38bdf8;
            box-shadow: 0 0 22px rgba(0, 210, 255, 0.6);
            transform: translateX(-50%) translateY(-1px);
        }

        /* Bottom HUD Controls (Chat & Pilots Directory) */
        .hud-bottom-left {
            position: fixed;
            bottom: 16px;
            bottom: calc(16px + env(safe-area-inset-bottom, 0px));
            left: 88px; /* Aligned with top header */
            z-index: 45;
            width: 360px;
            height: 250px;
            min-width: 260px;
            min-height: 140px;
            max-width: calc(100vw - 16px);
            max-height: calc(100vh - 20px);
            pointer-events: auto;
            box-sizing: border-box;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .hud-bottom-left.is-dragging,
        .hud-bottom-left.is-resizing {
            transition: none !important;
            user-select: none !important;
            -webkit-user-select: none !important;
        }

        .chat-box {
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
            max-height: 100%;
            overflow: hidden;
            position: relative;
            box-sizing: border-box;
            transition: height 0.25s ease;
        }
        .chat-box.minimized,
        .hud-bottom-left.minimized {
            height: 38px !important;
            min-height: 38px !important;
            max-height: 38px !important;
        }
        .chat-box.minimized #chatToggleMinimize svg {
            transform: rotate(180deg);
        }
        .hud-bottom-left.minimized .chat-logs,
        .hud-bottom-left.minimized .chat-form,
        .hud-bottom-left.minimized .chat-resize-handle,
        .hud-bottom-left.minimized .chat-resize-grip {
            display: none !important;
        }

        .chat-header {
            padding: 8px 14px;
            border-bottom: 1px solid rgba(0, 210, 255, 0.15);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(8, 12, 22, 0.85);
            flex-shrink: 0;
            min-height: 38px;
            height: 38px;
            cursor: grab;
            user-select: none;
            -webkit-user-select: none;
            touch-action: none;
        }
        .chat-header:active,
        .hud-bottom-left.is-dragging .chat-header {
            cursor: grabbing;
        }
        .chat-header-actions {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .chat-header-btn {
            background: none;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            padding: 3px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            transition: color 0.15s ease, background 0.15s ease;
        }
        .chat-header-btn:hover {
            color: var(--jita-blue);
            background: rgba(0, 210, 255, 0.1);
        }

        /* Chat Resize Handles (Mouse & Touch) */
        .chat-resize-handle {
            position: absolute;
            z-index: 20;
            touch-action: none;
            user-select: none;
            -webkit-user-select: none;
        }
        .chat-resize-handle.handle-n {
            top: -4px;
            left: 10px;
            right: 10px;
            height: 10px;
            cursor: ns-resize;
        }
        .chat-resize-handle.handle-s {
            bottom: -4px;
            left: 10px;
            right: 10px;
            height: 10px;
            cursor: ns-resize;
        }
        .chat-resize-handle.handle-e {
            top: 10px;
            bottom: 10px;
            right: -4px;
            width: 10px;
            cursor: ew-resize;
        }
        .chat-resize-handle.handle-w {
            top: 10px;
            bottom: 10px;
            left: -4px;
            width: 10px;
            cursor: ew-resize;
        }
        .chat-resize-handle.handle-ne {
            top: -4px;
            right: -4px;
            width: 18px;
            height: 18px;
            cursor: nesw-resize;
            z-index: 22;
        }
        .chat-resize-handle.handle-nw {
            top: -4px;
            left: -4px;
            width: 18px;
            height: 18px;
            cursor: nwse-resize;
            z-index: 22;
        }
        .chat-resize-handle.handle-se {
            bottom: -4px;
            right: -4px;
            width: 22px;
            height: 22px;
            cursor: nwse-resize;
            z-index: 22;
        }
        .chat-resize-handle.handle-sw {
            bottom: -4px;
            left: -4px;
            width: 18px;
            height: 18px;
            cursor: nesw-resize;
            z-index: 22;
        }

        .chat-resize-grip {
            position: absolute;
            right: 4px;
            bottom: 4px;
            width: 12px;
            height: 12px;
            opacity: 0.45;
            transition: opacity 0.2s ease, filter 0.2s ease;
            pointer-events: none;
            display: flex;
            align-items: flex-end;
            justify-content: flex-end;
            z-index: 15;
        }
        .hud-bottom-left:hover .chat-resize-grip,
        .hud-bottom-left.is-resizing .chat-resize-grip {
            opacity: 0.95;
            filter: drop-shadow(0 0 4px var(--jita-blue));
        }

        .chat-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 11px;
            font-weight: 700;
            color: var(--jita-blue);
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .chat-logs {
            flex: 1 1 0;
            min-height: 0; /* Crucial for preventing flex container overflow on mobile */
            max-height: 100%;
            padding: 8px 12px;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            display: flex;
            flex-direction: column;
            gap: 6px;
            font-size: 12px;
            scroll-behavior: smooth;
            user-select: text;
            -webkit-user-select: text;
            cursor: text;
        }
        .chat-logs::-webkit-scrollbar {
            width: 6px;
        }
        .chat-logs::-webkit-scrollbar-track {
            background: #111827;
            border-radius: 4px;
        }
        .chat-logs::-webkit-scrollbar-thumb {
            background: #374151;
            border-radius: 4px;
        }
        .chat-logs::-webkit-scrollbar-thumb:hover {
            background: #4b5563;
        }

        .chat-msg {
            display: flex;
            align-items: flex-start;
            gap: 6px;
            line-height: 1.4;
            word-break: break-word;
            user-select: text;
            -webkit-user-select: text;
        }
        .chat-msg-pending {
            opacity: 0.72;
        }
        .chat-msg-failed {
            opacity: 0.9;
            border-left: 2px solid #ef4444;
            padding-left: 6px;
        }
        .chat-retry-btn {
            background: rgba(239, 68, 68, 0.16);
            border: 1px solid rgba(239, 68, 68, 0.45);
            color: #fca5a5;
            font-size: 10px;
            padding: 1px 6px;
            border-radius: 4px;
            cursor: pointer;
            margin-left: 4px;
        }
        .chat-time {
            font-family: 'Share Tech Mono', monospace;
            font-size: 10px;
            color: var(--text-muted);
            white-space: nowrap;
            user-select: text;
            -webkit-user-select: text;
        }
        .chat-sender {
            font-weight: 700;
            color: #38bdf8;
            cursor: pointer;
            user-select: text;
            -webkit-user-select: text;
        }
        .chat-corp {
            color: var(--jita-amber);
            font-family: 'Share Tech Mono', monospace;
            font-size: 10px;
            user-select: text;
            -webkit-user-select: text;
        }
        .chat-text {
            color: #f1f5f9;
            user-select: text;
            -webkit-user-select: text;
        }

        .chat-form {
            display: flex;
            padding: 6px 10px;
            background: rgba(8, 12, 22, 0.95);
            border-top: 1px solid rgba(0, 210, 255, 0.2);
            gap: 6px;
            flex-shrink: 0;
            min-height: 40px;
        }
        .chat-input {
            flex: 1;
            background: rgba(15, 23, 42, 0.9);
            border: 1px solid rgba(0, 210, 255, 0.25);
            border-radius: 5px;
            color: #ffffff;
            padding: 6px 10px;
            font-family: 'Rajdhani', sans-serif;
            font-size: 13px;
            outline: none;
        }
        .chat-send-btn {
            background: linear-gradient(135deg, #0284c7, #0369a1);
            border: 1px solid #38bdf8;
            border-radius: 5px;
            color: #ffffff;
            padding: 0 12px;
            font-weight: 700;
            cursor: pointer;
        }

        /* Right Panel: Modules Deck & Pilots in Lounge Directory */
        .hud-bottom-right {
            position: fixed;
            bottom: 16px;
            bottom: calc(16px + env(safe-area-inset-bottom, 0px));
            right: 18px;
            right: calc(18px + env(safe-area-inset-right, 0px));
            z-index: 35;
            width: 280px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: auto;
            transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, transform 0.3s ease;
        }

        /* Auto 2-colunas se a tela for pequena / compacta */
        .hud-bottom-right.two-columns {
            width: 540px !important;
        }

        /* Vertical Modules Stack (Em cima do card Pilotos no Salão) */
        .modules-deck-box {
            display: flex;
            flex-direction: column;
            border-radius: 8px;
            overflow: hidden;
            max-height: calc(100vh - 210px);
            transition: max-height 0.3s ease;
        }
        .modules-deck-header {
            padding: 7px 12px;
            border-bottom: 1px solid rgba(0, 210, 255, 0.18);
            background: rgba(8, 12, 22, 0.92);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .modules-deck-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 11px;
            font-weight: 700;
            color: var(--jita-blue);
            letter-spacing: 0.8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .modules-deck-counter {
            font-family: 'Share Tech Mono', monospace;
            font-size: 10px;
            color: #38bdf8;
            background: rgba(0, 210, 255, 0.12);
            border: 1px solid rgba(0, 210, 255, 0.25);
            padding: 1px 6px;
            border-radius: 4px;
        }
        .modules-vertical-stack {
            padding: 6px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 5px;
            background: rgba(8, 14, 26, 0.78);
            overflow-y: auto;
            overflow-x: hidden;
            max-height: calc(100vh - 250px);
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .modules-vertical-stack::-webkit-scrollbar {
            width: 6px;
        }
        .modules-vertical-stack::-webkit-scrollbar-track {
            background: #111827;
            border-radius: 4px;
        }
        .modules-vertical-stack::-webkit-scrollbar-thumb {
            background: #374151;
            border-radius: 4px;
        }
        .modules-vertical-stack.two-columns {
            display: grid !important;
            grid-template-columns: 1fr 1fr !important;
            grid-auto-flow: column;
            overflow-y: auto !important;
        }
        .module-stack-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 9px;
            background: rgba(15, 23, 42, 0.75);
            border: 1px solid rgba(0, 210, 255, 0.15);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            text-align: left;
            width: 100%;
            outline: none;
            color: inherit;
        }
        .module-stack-item:hover {
            background: rgba(0, 210, 255, 0.2);
            border-color: var(--jita-blue);
            box-shadow: 0 0 12px rgba(0, 210, 255, 0.38);
            transform: translateX(-2px);
        }
        .module-item-icon {
            font-size: 14px;
            width: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .module-item-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            line-height: 1.2;
        }
        .module-item-title {
            font-family: 'Rajdhani', sans-serif;
            font-weight: 700;
            font-size: 12.5px;
            color: #ffffff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .module-item-sub {
            font-family: 'Share Tech Mono', monospace;
            font-size: 9.5px;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .module-item-badge {
            font-family: 'Share Tech Mono', monospace;
            font-size: 9px;
            padding: 1px 4px;
            border-radius: 3px;
            background: rgba(0, 210, 255, 0.1);
            color: var(--jita-blue);
            border: 1px solid rgba(0, 210, 255, 0.22);
            flex-shrink: 0;
        }
        .module-item-badge.badge-page {
            background: rgba(16, 185, 129, 0.12);
            color: #10b981;
            border-color: rgba(16, 185, 129, 0.28);
        }
        .module-item-arrow {
            color: var(--jita-blue);
            font-size: 11px;
            opacity: 0.6;
            transition: transform 0.2s, opacity 0.2s;
            flex-shrink: 0;
        }
        .module-stack-item:hover .module-item-arrow {
            opacity: 1;
            transform: translateX(2px);
            color: #38bdf8;
        }

        .directory-box {
            max-height: 190px;
            display: flex;
            flex-direction: column;
            border-radius: 8px;
            overflow: hidden;
        }
        .directory-header {
            padding: 7px 12px;
            border-bottom: 1px solid rgba(0, 210, 255, 0.15);
            background: rgba(8, 12, 22, 0.85);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }
        .directory-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 11px;
            font-weight: 700;
            color: var(--jita-blue);
            letter-spacing: 0.8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .directory-count {
            background: rgba(0, 210, 255, 0.15);
            color: #38bdf8;
            padding: 2px 6px;
            border-radius: 10px;
            font-family: 'Share Tech Mono', monospace;
            font-size: 11px;
        }
        .pilots-list {
            padding: 6px;
            overflow-y: auto;
            max-height: 130px;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .pilots-list::-webkit-scrollbar {
            width: 6px;
        }
        .pilots-list::-webkit-scrollbar-track {
            background: #111827;
            border-radius: 4px;
        }
        .pilots-list::-webkit-scrollbar-thumb {
            background: #374151;
            border-radius: 4px;
        }

        .pilot-row {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 5px 8px;
            background: rgba(15, 23, 42, 0.55);
            border-radius: 5px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .pilot-row:hover {
            background: rgba(0, 210, 255, 0.15);
            border-color: rgba(0, 210, 255, 0.4);
            transform: translateX(-2px);
        }
        .pilot-row img {
            width: 28px;
            height: 28px;
            border-radius: 4px;
            border: 1px solid rgba(0, 210, 255, 0.3);
        }
        .pilot-row-info {
            flex: 1;
            overflow: hidden;
        }
        .pilot-row-name {
            font-weight: 700;
            font-size: 12px;
            color: #ffffff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .pilot-row-sub {
            font-size: 10px;
            font-family: 'Share Tech Mono', monospace;
            color: var(--jita-amber);
        }

        /* Pilot Profile Modal Card */
        .pilot-modal {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 100;
            width: 340px;
            background: rgba(10, 16, 32, 0.96);
            border: 1px solid var(--jita-blue);
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 0 35px rgba(0, 210, 255, 0.3), 0 20px 40px rgba(0, 0, 0, 0.8);
            display: none;
            backdrop-filter: blur(16px);
        }
        .pilot-modal.active {
            display: block;
            animation: modalFade 0.2s ease-out;
        }
        @keyframes modalFade {
            from { opacity: 0; transform: translate(-50%, -46%); }
            to { opacity: 1; transform: translate(-50%, -50%); }
        }

        .modal-close-btn {
            position: absolute;
            top: 12px;
            right: 14px;
            background: none;
            border: none;
            color: #94a3b8;
            font-size: 18px;
            cursor: pointer;
        }
        .modal-close-btn:hover {
            color: #ffffff;
        }

        /* Audio Indicator */
        .audio-indicator {
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            border-radius: 6px;
            border: 1px solid rgba(0, 210, 255, 0.3);
            background: rgba(15, 23, 42, 0.85);
            color: var(--jita-blue);
            transition: all 0.2s;
        }
        .audio-indicator:hover {
            box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
            border-color: var(--jita-blue);
        }

        /* Cinema Mode Toggle */
        body.hud-hidden .hud-header,
        body.hud-hidden .hud-bottom-left,
        body.hud-hidden .hud-bottom-right,
        body.hud-hidden .lounge-quick-wrapper,
        body.hud-hidden .btn-restore-quick-deck {
            opacity: 0;
            pointer-events: none;
            transform: translateY(12px);
        }

        /* Progress Bar & Skill Boxes */
        .skill-level-boxes {
            display: flex;
            gap: 4px;
            margin-top: 6px;
        }
        .lvl-box {
            width: 14px;
            height: 10px;
            border: 1px solid rgba(0, 210, 255, 0.4);
            border-radius: 2px;
            background: rgba(15, 23, 42, 0.6);
        }
        .lvl-box.filled {
            background: var(--jita-blue);
            box-shadow: 0 0 6px rgba(0, 210, 255, 0.8);
            border-color: #ffffff;
        }
        .lvl-box.training {
            background: #0284c7;
            animation: pulseBox 1.5s infinite;
        }
        @keyframes pulseBox {
            0%, 100% { opacity: 0.4; }
            50% { opacity: 1; background: var(--jita-blue); }
        }

        .progress-bar-container {
            width: 100%;
            height: 8px;
            background: #0f172a;
            border: 1px solid rgba(0, 210, 255, 0.3);
            border-radius: 4px;
            margin: 8px 0;
            overflow: hidden;
            position: relative;
        }
        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #0284c7, #00d2ff, #38bdf8, #0284c7);
            background-size: 200% 100%;
            box-shadow: 0 0 10px rgba(0, 210, 255, 0.7);
            border-radius: 3px;
            transition: width 0.6s linear;
        }
        .progress-bar-fill.is-training {
            animation: skillBarFlow 2.4s linear infinite;
        }
        @keyframes skillBarFlow {
            0% { background-position: 100% 0; }
            100% { background-position: -100% 0; }
        }

        .alt-pilot-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(15, 23, 42, 0.7);
            border: 1px solid rgba(0, 210, 255, 0.15);
            border-radius: 8px;
            padding: 10px;
            margin-bottom: 8px;
            transition: all 0.2s;
        }
        .alt-pilot-item:hover {
            border-color: var(--jita-blue);
            background: rgba(0, 210, 255, 0.08);
        }
        .alt-pilot-item.active-item {
            border-color: #10b981;
            background: rgba(16, 185, 129, 0.08);
        }

        /* Tablet Adjustments (e.g. iPad, Galaxy Tab - max 1024px) */
        @media (max-width: 1024px) {
            .lounge-quick-deck {
                grid-template-columns: repeat(2, 220px);
            }
            .hud-header {
                left: 74px;
                gap: 8px;
            }
            .hud-actions {
                overflow-x: auto;
                max-width: 60vw;
                padding-bottom: 2px;
            }
            .hud-bottom-left {
                left: 74px;
                width: 320px;
                height: 210px;
                max-width: calc(100vw - 86px);
                bottom: 12px;
                bottom: calc(12px + env(safe-area-inset-bottom, 0px));
                z-index: 45;
            }
            .hud-bottom-right {
                right: 12px;
                bottom: 12px;
                bottom: calc(12px + env(safe-area-inset-bottom, 0px));
                width: 220px;
            }
            .chat-box {
                width: 100%;
                height: 100%;
                max-height: 100%;
            }
            .chat-box.minimized,
            .hud-bottom-left.minimized {
                height: 38px !important;
                min-height: 38px !important;
                max-height: 38px !important;
            }
            .hud-floating-window.window-large {
                width: min(420px, 55vw);
                height: min(480px, 62dvh);
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
            }
        }

        /* Mobile Phone Adjustments (up to 768px) */
        @media (max-width: 768px) {
            .neocom-dock {
                left: 6px;
                top: 6px;
                padding: 4px;
            }
            .neocom-btn {
                width: 36px;
                height: 36px;
            }
            .hud-header {
                left: 48px;
                right: 8px;
                top: 6px;
                flex-direction: column;
                align-items: flex-start;
                gap: 6px;
            }
            .hud-actions {
                width: 100%;
                max-width: 100%;
                overflow-x: auto;
                padding-bottom: 2px;
            }
            .hud-bottom-right {
                display: none !important;
            }
            .hud-bottom-left {
                left: 8px;
                right: 8px;
                width: auto;
                height: 200px;
                max-width: calc(100vw - 16px);
                bottom: 8px;
                bottom: calc(8px + env(safe-area-inset-bottom, 0px));
                z-index: 48;
            }
            .chat-box {
                width: 100%;
                height: 100%;
                max-height: 100%;
            }
            .chat-box.minimized,
            .hud-bottom-left.minimized {
                height: 38px !important;
                min-height: 38px !important;
                max-height: 38px !important;
            }
            .chat-input {
                font-size: 14px;
            }
            .lounge-quick-deck {
                grid-template-columns: 1fr;
                width: calc(100vw - 28px);
                max-height: 50vh;
                overflow-y: auto;
                padding: 2px;
            }
            .lounge-quick-wrapper {
                width: calc(100vw - 28px);
                top: 48%;
            }
            .hud-floating-window,
            .hud-floating-window.window-large {
                left: 50%;
                top: 52%;
                transform: translate(-50%, -50%);
                width: min(340px, calc(100vw - 36px));
                height: min(410px, 56dvh);
                max-width: calc(100vw - 24px);
                max-height: calc(100dvh - 70px);
            }
        }

        /* Short Landscape Viewports (Phones/Tablets in Landscape) */
        @media (max-height: 520px) {
            .hud-bottom-left {
                bottom: 6px;
                bottom: calc(6px + env(safe-area-inset-bottom, 0px));
                height: 150px;
                max-width: min(340px, 50vw);
            }
            .chat-box {
                width: 100%;
                height: 100%;
                max-height: 100%;
            }
            .chat-box.minimized,
            .hud-bottom-left.minimized {
                height: 34px !important;
                min-height: 34px !important;
                max-height: 34px !important;
            }
            .lounge-quick-wrapper {
                transform: translate(-50%, -50%) scale(0.85);
            }
            .hud-bottom-right {
                display: none !important;
            }
        }
