        :root {
            --bg-dark: #0d0d0d;
            --bg-card: rgba(22, 22, 22, 0.75);
            --nexus-gold: #ffcc00;
            --nexus-gold-glow: rgba(255, 204, 0, 0.2);
            --text-main: #ffffff;
            --text-muted: #a0a0a0;
            --danger-red: #ff3333;
            --premium-border: rgba(255, 255, 255, 0.08);
        }

        * {
            margin: 0; padding: 0; box-sizing: border-box;
            font-family: 'Inter', sans-serif;
            -webkit-tap-highlight-color: transparent;
        }

        body, html {
            width: 100%; height: 100%;
            background-color: var(--bg-dark);
            color: var(--text-main);
            overflow: hidden;
        }

        #map {
            width: 100%; height: 100%;
            position: absolute; top: 0; left: 0;
            z-index: 1; background: #e0ddd8;
        }

        .mapboxgl-ctrl-attrib {
            font-size: 9px !important;
            background: rgba(255,255,255,0.8) !important;
            color: #666 !important;
            border-radius: 4px 0 0 0 !important;
        }
        .mapboxgl-ctrl-attrib a {
            color: #888 !important;
        }

        .mapboxgl-ctrl-group button {
            background: rgba(22,22,22,0.85) !important;
            color: white !important;
            border: 1px solid rgba(255,255,255,0.1) !important;
            backdrop-filter: blur(10px);
        }
        .mapboxgl-ctrl-group button:hover {
            background: rgba(40,40,40,0.9) !important;
        }
        .mapboxgl-ctrl-group {
            border: none !important;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
            border-radius: 8px !important;
            overflow: hidden;
        }

        .mapboxgl-popup-content {
            background: white !important;
            border-radius: 14px !important;
            box-shadow: 0 6px 25px rgba(0,0,0,0.2) !important;
            border: 1px solid rgba(0,0,0,0.06) !important;
            padding: 10px 14px !important;
            margin: 0 !important;
        }
        .mapboxgl-popup-tip {
            background: white !important;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
        }
        .mapboxgl-popup-close-button {
            color: #999 !important;
            font-size: 18px !important;
            padding: 6px 8px !important;
            background: none !important;
            border: none !important;
            cursor: pointer !important;
        }
        .mapboxgl-popup-close-button:hover {
            color: #333 !important;
        }

        .fleet-badge {
            position: absolute; top: 80px; left: 50%; transform: translateX(-50%); z-index: 10;
            background: rgba(18,18,18,0.85); backdrop-filter: blur(15px);
            border: 1px solid rgba(212,175,55,0.3); border-radius: 50px;
            padding: 8px 18px; display: flex; align-items: center; gap: 8px;
            font-size: 12px; font-weight: 600; color: #fff;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
            transition: all 0.3s ease;
            opacity: 0; pointer-events: none;
        }
        .fleet-badge.active { opacity: 1; }
        .fleet-badge .dot {
            width: 8px; height: 8px; border-radius: 50%; background: var(--nexus-gold);
            animation: fleetPulse 2s infinite;
        }
        @keyframes fleetPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(255,204,0,0.4); }
            50% { box-shadow: 0 0 0 6px rgba(255,204,0,0); }
        }
        @keyframes userPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(66,133,244,0.5); }
            50% { box-shadow: 0 0 0 10px rgba(66,133,244,0); }
        }
        @keyframes destPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(229,57,53,0.4); transform: scale(1); }
            50% { box-shadow: 0 0 0 8px rgba(229,57,53,0); transform: scale(1.05); }
        }

        .premium-header {
            position: absolute; top: 0; left: 0; width: 100%; z-index: 10;
            padding: 20px; display: flex; justify-content: space-between; align-items: center;
            background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
        }
        .brand-title { font-weight: 700; font-size: 18px; letter-spacing: 1.5px; text-transform: uppercase; }
        .brand-title span { color: var(--nexus-gold); }

        .top-search {
            position: absolute; top: 0; left: 0; width: 100%; z-index: 9;
            padding: 78px 16px 16px 16px;
            background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.45) 70%, rgba(0,0,0,0) 100%);
            transition: opacity 0.3s ease;
        }
        .top-search.hidden { display: none; }
        .top-search .search-container { gap: 10px; }
        .top-search .premium-input {
            background: rgba(255, 255, 255, 0.10);
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }
        .top-search .premium-input:focus {
            border-color: var(--nexus-gold); background: rgba(255, 255, 255, 0.14);
            box-shadow: 0 0 15px rgba(255, 204, 0, 0.15);
        }

        .vip-badge {
            background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 8px 14px; border-radius: 50px; display: flex; align-items: center; gap: 8px;
            backdrop-filter: blur(10px); cursor: pointer;
        }
        .vip-badge i { color: var(--nexus-gold); }
        .vip-badge span { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; }

        #profile-photo-input { display: none; }

        .sos-floating-btn {
            position: absolute; right: 16px; bottom: calc(60px + env(safe-area-inset-bottom, 0px)); z-index: 15;
            width: 52px; height: 52px; border-radius: 50%;
            background: rgba(255, 51, 51, 0.15); border: 1.5px solid rgba(255, 51, 51, 0.35);
            backdrop-filter: blur(12px); display: flex; justify-content: center; align-items: center;
            color: var(--danger-red); font-size: 18px; cursor: pointer; transition: all 0.3s ease; user-select: none;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        .sos-floating-btn.holding {
            background: var(--danger-red); color: white;
            box-shadow: 0 0 20px var(--danger-red); transform: scale(1.1);
        }

        .sos-modal-overlay {
            position: fixed; inset: 0; background: rgba(0,0,0,0.85);
            display: none; justify-content: center; align-items: center;
            z-index: 99999; backdrop-filter: blur(8px);
        }
        .sos-modal-overlay.active { display: flex; }
        .sos-modal {
            background: rgba(20,20,20,0.98); border: 1px solid rgba(255,51,51,0.3);
            border-radius: 24px; padding: 30px 24px; width: 90%; max-width: 340px;
            text-align: center; box-shadow: 0 0 40px rgba(255,0,0,0.3);
        }
        .sos-modal h3 { color: #ff3333; font-size: 18px; margin: 0 0 6px; font-weight: 800; }
        .sos-modal p { color: rgba(255,255,255,0.5); font-size: 12px; margin: 0 0 20px; }
        .sos-modal-btn {
            display: flex; align-items: center; gap: 14px; width: 100%;
            padding: 16px; margin-bottom: 10px; border-radius: 16px;
            background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
            color: white; font-size: 15px; font-weight: 600; cursor: pointer;
            text-decoration: none; transition: all 0.2s;
        }
        .sos-modal-btn:active { background: rgba(255,51,51,0.2); border-color: #ff3333; }
        .sos-modal-btn .sos-icon { font-size: 22px; width: 40px; text-align: center; }
        .sos-modal-btn .sos-label { flex: 1; text-align: left; }
        .sos-modal-btn .sos-num { color: rgba(255,255,255,0.4); font-size: 13px; font-weight: 400; }
        .sos-modal-cancel {
            width: 100%; padding: 12px; margin-top: 6px; border-radius: 12px;
            background: transparent; border: 1px solid rgba(255,255,255,0.15);
            color: rgba(255,255,255,0.6); font-size: 14px; cursor: pointer;
        }

        .bottom-sheet {
            position: absolute; bottom: 0; left: 0; width: 100%;
            max-height: min(500px, 55vh); min-height: 160px;
            background: rgba(18, 18, 18, 0.92); border-top: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 24px 24px 0 0; backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px); z-index: 10;
            padding: 0 20px calc(env(safe-area-inset-bottom, 0px) + 20px) 20px;
            transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
            transform: translateY(30%);
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
            overflow-y: auto;
        }
        .sheet-handle {
            width: 40px; height: 5px; background: rgba(255, 255, 255, 0.2);
            border-radius: 10px; margin: 12px auto 20px auto; cursor: pointer;
        }

        .sheet-step { display: none; width: 100%; }
        .sheet-step.active { display: block; animation: fadeIn 0.3s ease; }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .search-container { display: flex; flex-direction: column; gap: 12px; }
        .input-wrapper { position: relative; width: 100%; }
        .input-wrapper i {
            position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
            color: var(--text-muted); font-size: 16px;
        }
        .input-wrapper i.fa-circle-dot { color: var(--nexus-gold); }
        .pick-btn {
            position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
            width: 34px; height: 34px; border: none; border-radius: 50%;
            background: rgba(255, 255, 255, 0.08); color: var(--text-muted);
            font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
            transition: all 0.2s ease;
        }
        .pick-btn:hover, .pick-btn:focus { color: var(--nexus-gold); background: rgba(255, 204, 0, 0.12); outline: none; }
        .premium-input.pick-padded { padding-right: 48px; }

        .premium-input {
            width: 100%; background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 16px 16px 16px 48px; border-radius: 16px;
            color: var(--text-main); font-size: 15px; font-weight: 500;
            outline: none; transition: all 0.3s ease;
        }
        .premium-input:focus {
            border-color: var(--nexus-gold); background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 15px rgba(255, 204, 0, 0.1);
        }

        .premium-btn {
            width: 100%; background: var(--nexus-gold); color: #000000; border: none;
            padding: 16px; border-radius: 16px; font-size: 16px; font-weight: 700;
            letter-spacing: 0.5px; cursor: pointer; margin-top: 20px;
            transition: all 0.3s ease; box-shadow: 0 4px 15px var(--nexus-gold-glow);
        }
        .premium-btn:active { transform: scale(0.98); }
        .premium-btn:disabled { opacity: 0.5; cursor: not-allowed; }
        .premium-btn.secondary { background: rgba(255,255,255,0.08); color: white; }

        .pulse-loader {
            display: flex; flex-direction: column; align-items: center;
            justify-content: center; height: 100%; text-align: center; gap: 20px;
        }
        .radar-ring {
            width: 80px; height: 80px; border-radius: 50px;
            border: 2px solid var(--nexus-gold);
            animation: radarPulse 1.5s infinite ease-out;
            display: flex; justify-content: center; align-items: center;
        }
        @keyframes radarPulse {
            0% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.4); }
            100% { transform: scale(1.2); opacity: 0; box-shadow: 0 0 0 30px rgba(255, 204, 0, 0); }
        }

        .ride-detail-card {
            background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
            border-radius: 16px; padding: 16px; margin-bottom: 12px;
        }
        .ride-detail-card .label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
        .ride-detail-card .value { font-size: 15px; font-weight: 600; margin-top: 4px; }

        .driver-card {
            display: flex; align-items: center; gap: 14px;
            background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
            border-radius: 16px; padding: 16px; margin-bottom: 12px;
        }
        .driver-avatar {
            width: 48px; height: 48px; border-radius: 50%;
            background: var(--nexus-gold); display: flex; align-items: center;
            justify-content: center; font-weight: 800; color: black; font-size: 18px; flex-shrink: 0;
        }
        .driver-info h5 { margin: 0; font-size: 14px; font-weight: 600; }
        .driver-info p { margin: 2px 0 0; font-size: 11px; color: var(--text-muted); }

        .price-display {
            text-align: center; padding: 16px 0;
        }
        .price-display .amount {
            font-size: 36px; font-weight: 800; color: var(--nexus-gold);
        }
        .price-display .subtitle { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

        .pix-container {
            text-align: center; margin: 12px 0;
        }
        .pix-container img { width: 180px; height: 180px; border-radius: 12px; background: white; padding: 8px; }
        .pix-code-box {
            background: rgba(0,0,0,0.3); padding: 12px; border-radius: 12px;
            font-family: monospace; font-size: 10px; word-break: break-all;
            margin: 12px 0; border: 1px dashed rgba(255,255,255,0.15);
            color: var(--text-muted); max-height: 60px; overflow-y: auto;
        }
        .btn-copy-pix {
            background: #009ee3; color: white; border: none; padding: 14px;
            border-radius: 16px; font-size: 14px; font-weight: 700; cursor: pointer;
            width: 100%; transition: all 0.3s;
        }
        .btn-copy-pix:active { transform: scale(0.98); }
        .btn-confirm-pay {
            background: #4CAF50; color: white; border: none; padding: 14px;
            border-radius: 16px; font-size: 14px; font-weight: 700; cursor: pointer;
            width: 100%; margin-top: 10px; transition: all 0.3s;
        }

        .status-badge-pill {
            display: inline-block; padding: 6px 14px; border-radius: 20px;
            font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
        }
        .status-searching { background: rgba(255,204,0,0.15); color: var(--nexus-gold); }
        .status-accepted { background: rgba(33,150,243,0.15); color: #2196F3; }
        .status-arrived { background: rgba(76,175,80,0.15); color: #4CAF50; }
        .status-progress { background: rgba(255,152,0,0.15); color: #FF9800; }
        .status-completed { background: rgba(76,175,80,0.15); color: #4CAF50; }

        .chat-btn-float {
            position: absolute; right: 16px; bottom: calc(120px + env(safe-area-inset-bottom, 0px)); z-index: 15;
            width: 52px; height: 52px; border-radius: 50%;
            background: rgba(212, 175, 55, 0.15); border: 1.5px solid rgba(212, 175, 55, 0.35);
            backdrop-filter: blur(12px); display: none; justify-content: center; align-items: center;
            color: var(--nexus-gold); font-size: 18px; cursor: pointer;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        #chat-panel {
            position: absolute; bottom: 0; left: 0; width: 100%; height: 70%;
            background: var(--bg-card); border-top: 1px solid rgba(255,255,255,0.12);
            border-radius: 30px 30px 0 0; backdrop-filter: blur(25px);
            z-index: 20; display: none; flex-direction: column;
            padding: 0 20px 20px 20px;
        }
        #chat-panel.active { display: flex; }
        .chat-header {
            display: flex; justify-content: space-between; align-items: center;
            padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
        }
        .chat-header h4 { color: var(--nexus-gold); font-size: 14px; font-weight: 800; }
        .chat-messages { flex: 1; overflow-y: auto; padding: 16px 0; display: flex; flex-direction: column; gap: 10px; }
        .msg { max-width: 80%; padding: 10px 14px; border-radius: 15px; font-size: 13px; line-height: 1.4; }
        .msg.sent { align-self: flex-end; background: var(--nexus-gold); color: #000; }
        .msg.received { align-self: flex-start; background: rgba(255,255,255,0.1); color: white; }
        .chat-input-area { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
        #chat-input {
            flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px; padding: 10px 14px; color: white; font-size: 13px; outline: none;
        }
        .btn-send-chat {
            background: var(--nexus-gold); border: none; border-radius: 12px;
            width: 42px; height: 42px; cursor: pointer; color: black; font-size: 16px;
        }

        #rating-panel {
            position: absolute; bottom: 0; left: 0; width: 100%;
            background: var(--bg-card); border-top: 1px solid rgba(255,255,255,0.12);
            border-radius: 30px 30px 0 0; backdrop-filter: blur(25px);
            z-index: 20; display: none; padding: 24px; text-align: center;
        }
        #rating-panel.active { display: block; }
        .stars-row { display: flex; justify-content: center; gap: 12px; margin: 16px 0; }
        .star-btn { font-size: 32px; color: #333; cursor: pointer; transition: all 0.2s; }
        .star-btn.active { color: var(--nexus-gold); transform: scale(1.15); }

        .auth-overlay {
            position: fixed; inset: 0;
            background: radial-gradient(circle at center, rgba(13,13,13,0.98), rgba(0,0,0,0.99));
            display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 9999;
        }
        .auth-card {
            width: 90%; max-width: 400px;
            background: rgba(22, 22, 22, 0.8); backdrop-filter: blur(30px);
            border: 1px solid rgba(255,255,255,0.08); border-radius: 30px;
            padding: 40px 30px; text-align: center;
            box-shadow: 0 30px 60px rgba(0,0,0,0.7);
        }
        @media (min-width: 768px) {
            .auth-overlay { background: var(--bg-dark); }
        }
        .auth-card h1 { color: var(--nexus-gold); font-weight: 800; letter-spacing: 3px; margin: 0 0 4px; font-size: 24px; }
        .auth-card p.auth-sub { font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,0.4); margin: 0 0 30px; text-transform: uppercase; }
        .auth-card input {
            width: 100%; padding: 14px 16px; background: rgba(0,0,0,0.3);
            border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
            color: white; font-size: 14px; outline: none; margin-bottom: 12px;
        }
        .auth-card input:focus { border-color: var(--nexus-gold); }
        .auth-card select {
            width: 100%; padding: 14px 16px; background: rgba(0,0,0,0.3);
            border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
            color: white; font-size: 14px; outline: none; margin-bottom: 12px;
        }
        .auth-error { color: #f44336; font-size: 12px; margin-top: 8px; display: none; }
        .auth-link { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 12px; }
        .auth-link.gold { color: var(--nexus-gold); font-weight: 600; }

        /* Container de sugestões que flutua dentro do input-wrapper */
        .suggestions-list {
            background: rgba(30, 30, 30, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            max-height: 200px;
            overflow-y: auto;
            margin-top: 5px;
            display: none;
            z-index: 999;
            backdrop-filter: blur(10px);
        }
        .input-wrapper .suggestions-list {
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            right: 0;
            width: auto;
            max-height: 200px;
            z-index: 9999;
        }

        .suggestion-item {
            padding: 14px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: background 0.2s;
        }

        .suggestion-item:last-child { border-bottom: none; }
        .suggestion-item:hover, .suggestion-item:active {
            background: rgba(255, 204, 0, 0.1);
        }
        .suggestion-item i { color: var(--nexus-gold); font-size: 14px; }
        .suggestion-icon { font-size: 14px; }
        .suggestion-item.active {
            background: rgba(255, 204, 0, 0.18);
        }
        .suggestion-item mark {
            background: rgba(255, 204, 0, 0.4);
            color: #fff;
            border-radius: 2px;
            padding: 0 1px;
        }
        .suggestion-loading {
            cursor: default;
            color: rgba(255, 255, 255, 0.7);
        }
        .suggestion-group-header {
            padding: 8px 16px 4px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            color: rgba(255, 255, 255, 0.45);
        }
        .suggestion-noresult {
            cursor: pointer;
            color: rgba(255, 255, 255, 0.85);
        }

        @media (min-width: 768px) {
            .bottom-sheet { max-width: 440px; left: 50%; transform: translateX(-50%) translateY(30%); }
            .sos-floating-btn { right: calc(50% - 250px); bottom: calc(50vh + 40px); }
            .chat-btn-float { right: calc(50% - 250px); bottom: calc(50vh - 20px); }
        }
        @media (max-width: 380px) {
            .bottom-sheet { max-height: min(450px, 50vh); min-height: 140px; padding: 0 14px calc(env(safe-area-inset-bottom, 0px) + 14px) 14px; }
            .premium-input { padding: 12px 12px 12px 40px; font-size: 14px; }
            .premium-btn { padding: 14px; font-size: 14px; }
            .brand-title { font-size: 16px; }
            .premium-header { padding: 14px; }
        }
        @media (max-height: 640px) {
            .bottom-sheet { max-height: min(400px, 45vh); min-height: 120px; }
        }
