        :root { --bg: #080914; --card: #121626; --accent: #6366f1; --accent-cyan: #06b6d4; --text: #ffffff; --muted: #94a3b8; }
        * { box-sizing: border-box; }

        /* ULTRA GLASSMORPHISM GLOBAL BLURS */
        .glass, .glass-card, .sheet, .driver-sheet, .sidebar, .hamburger-btn, .in-row, .modal-content, .pill-header, .top-header-pill, .login-card, .terms-container {
            background: rgba(18, 22, 38, 0.76) !important;
            backdrop-filter: blur(24px) saturate(180%) !important;
            -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
        }

        .btn-primary, .btn-confirm, .glow-btn, .btn-action, .online-toggle, .p-btn {
            backdrop-filter: blur(16px) !important;
            -webkit-backdrop-filter: blur(16px) !important;
            border: 1px solid rgba(255, 255, 255, 0.2) !important;
        }
        
        /* MODO CLARO (LIGHT MODE) */
        body.light-mode {
            --bg: #f3f4f6;
            --card: #ffffff;
            --text: #111827;
            background-color: #f3f4f6 !important;
            color: #111827 !important;
        }
        body.light-mode #map { filter: none !important; }
        body.light-mode .sidebar,
        body.light-mode .bottom-sheet,
        body.light-mode .page-container,
        body.light-mode .trip-item,
        body.light-mode .doc-upload-card,
        body.light-mode .custom-modal-overlay > div {
            background: #ffffff !important;
            color: #111827 !important;
            border-color: rgba(0, 0, 0, 0.1) !important;
        }
        body.light-mode .hamburger-btn {
            background: #ffffff !important;
            color: #111827 !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        body.light-mode .menu-item,
        body.light-mode h1, body.light-mode h2, body.light-mode h3, body.light-mode h4 {
            color: #111827 !important;
        }

        body, html { margin:0; padding:0; height:100%; font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); overflow: hidden; }
        #map { position: absolute; top:0; bottom:0; width:100%; z-index:1; filter: invert(82%) hue-rotate(180deg) brightness(90%); }

        /* Pantalla de carga */
        #login-screen { 
            position: fixed; inset:0; background: var(--bg); z-index: 10000; 
            display: flex; flex-direction: column; align-items: center; justify-content: center; 
        }
        
        .loader {
            width: 50px;
            height: 50px;
            border: 4px solid #333;
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Header con menu hamburguesa */
        .top-header {
            position: fixed;
            top: 0;
            left: 0;
            z-index: 2000;
            padding: 15px 20px;
        }

        .hamburger-btn {
            background: rgba(30,30,30,0.95);
            border: 1px solid rgba(255,255,255,0.1);
            color: var(--text);
            width: 50px;
            height: 50px;
            border-radius: 16px;
            font-size: 22px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .hamburger-btn:active {
            transform: scale(0.95);
            background: var(--accent);
            color: #000;
        }

        /* Overlay oscuro con blur */
        .sidebar-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.65);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 2500;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .sidebar-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Sidebar Glassmorphism */
        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: 310px;
            max-width: 85vw;
            height: 100%;
            background: rgba(22, 22, 22, 0.96);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
            z-index: 3000;
            transform: translateX(-100%);
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
            will-change: transform;
        }

        .sidebar.active {
            transform: translateX(0);
        }

        .sidebar-header {
            padding: 35px 25px 25px 25px;
            background: linear-gradient(135deg, #242424 0%, #181818 100%);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            position: relative;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .user-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: 900;
            color: #000;
            overflow: hidden;
            border: 2px solid var(--accent);
            box-shadow: 0 0 20px rgba(192, 241, 28, 0.3);
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .sidebar.active .user-avatar {
            transform: scale(1.05);
        }

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

        .user-details h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 800;
            color: #fff;
        }

        .user-details p {
            margin: 4px 0 0;
            font-size: 13px;
            color: #aaa;
        }

        .sidebar-menu {
            flex: 1;
            padding: 20px 0;
            overflow-y: auto;
        }

        .menu-section {
            padding: 0 15px;
            margin-bottom: 25px;
        }

        .menu-section-title {
            font-size: 11px;
            text-transform: uppercase;
            color: #888;
            letter-spacing: 1.2px;
            padding: 0 10px;
            margin-bottom: 12px;
            font-weight: 700;
        }

        .menu-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 14px 16px;
            border-radius: 14px;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            color: #ddd;
            text-decoration: none;
            opacity: 0.9;
            position: relative;
            overflow: hidden;
        }

        .menu-item i {
            font-size: 18px;
            width: 24px;
            text-align: center;
            transition: transform 0.25s ease, color 0.25s ease;
        }

        .sidebar.active .menu-item {
            animation: sidebarItemSlide 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .menu-section .menu-item:nth-child(1) { animation-delay: 0.05s; }
        .menu-section .menu-item:nth-child(2) { animation-delay: 0.1s; }
        .menu-section .menu-item:nth-child(3) { animation-delay: 0.15s; }
        .menu-section .menu-item:nth-child(4) { animation-delay: 0.2s; }
        .menu-section .menu-item:nth-child(5) { animation-delay: 0.25s; }

        @keyframes sidebarItemSlide {
            0% {
                opacity: 0;
                transform: translateX(-20px);
            }
            100% {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .menu-item:hover {
            background: rgba(192, 241, 28, 0.1);
            color: #fff;
            transform: translateX(6px);
        }

        .menu-item:hover i {
            color: var(--accent);
            transform: scale(1.2) rotate(-5deg);
        }

        .menu-item:active {
            transform: translateX(3px) scale(0.98);
        }

        .menu-item:active {
            background: rgba(255,255,255,0.1);
            transform: scale(0.98);
        }

        .menu-item i {
            width: 24px;
            font-size: 18px;
            text-align: center;
            color: #888;
        }

        .menu-item span {
            font-size: 15px;
            font-weight: 500;
        }

        .menu-item.active {
            background: rgba(192, 241, 28, 0.1);
        }

        .menu-item.active i,
        .menu-item.active span {
            color: var(--accent);
        }

        /* Switch modo conductor */
        .driver-mode-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px;
            background: #222;
            border-radius: 14px;
            margin: 0 15px;
        }

        .driver-mode-toggle .info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .driver-mode-toggle i {
            font-size: 20px;
            color: var(--accent);
        }

        .driver-mode-toggle .label {
            font-size: 15px;
            font-weight: 600;
        }

        .driver-mode-toggle .sublabel {
            font-size: 12px;
            color: #666;
        }

        .toggle-switch {
            width: 52px;
            height: 30px;
            background: #333;
            border-radius: 30px;
            position: relative;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .toggle-switch.active {
            background: var(--accent);
        }

        .toggle-switch::after {
            content: '';
            position: absolute;
            width: 24px;
            height: 24px;
            background: #fff;
            border-radius: 50%;
            top: 3px;
            left: 3px;
            transition: transform 0.3s ease;
        }

        .toggle-switch.active::after {
            transform: translateX(22px);
        }

        .sidebar-footer {
            padding: 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
        }

        .logout-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            padding: 15px;
            background: rgba(255,71,87,0.1);
            border: none;
            border-radius: 14px;
            color: #ff4757;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .logout-btn:hover {
            background: rgba(255,71,87,0.2);
        }

        .glass { background: #1a1a1a; border-radius: 24px; padding: 12px; border: 1px solid rgba(255,255,255,0.1); }
        .in-row { display: flex; align-items: center; gap: 12px; padding: 10px; background: #222; border-radius: 16px; margin-bottom: 6px; position: relative; }
        input { border:none; background:transparent; color:#fff; width:100%; outline:none; font-size:15px; }

        #results { background: var(--card); border-radius: 15px; margin-top: 5px; max-height: 150px; overflow-y: auto; display: none; border: 1px solid #333; }
        .res-item { padding: 14px; border-bottom: 1px solid #222; font-size: 13px; cursor: pointer; color: white; transition: background 0.2s; }
        .res-item:hover { background: rgba(255,255,255,0.05); }

        .btn-inline-gps { background: transparent; border: none; color: var(--accent); font-size: 18px; cursor: pointer; padding: 5px; transition: transform 0.2s; }
        .btn-inline-gps:active { transform: scale(0.9); }

        .sheet { 
            position: fixed; 
            bottom: 0; 
            left: 0; 
            right: 0; 
            z-index: 1500; 
            background: rgba(22, 22, 22, 0.96); 
            border-radius: 28px 28px 0 0; 
            box-shadow: 0 -10px 40px rgba(0,0,0,0.9); 
            border-top: 1px solid rgba(255, 255, 255, 0.12);
            backdrop-filter: blur(16px);
            height: auto; 
            max-height: 85vh; 
            transform: translateY(0); 
            max-width: 500px; 
            margin: 0 auto; 
            touch-action: none;
            will-change: transform;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .leaflet-control-container .leaflet-bottom,
        .leaflet-control-attribution {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }
        
        .handle-area { width: 100%; padding: 12px 0 8px 0; cursor: grab; display: flex; justify-content: center; }
        .handle { width: 45px; height: 5px; background: rgba(255,255,255,0.3); border-radius: 10px; }
        .sheet-content { padding: 0 16px 20px 16px; height: auto; max-height: calc(100vh - 120px); overflow-y: auto; }
        
        .price-ctrl { display: flex; align-items: center; justify-content: space-between; margin: 15px 0; }
        .p-btn { background: #222; border:none; color:#fff; width: 48px; height: 48px; border-radius: 14px; font-size: 20px; cursor: pointer; transition: all 0.2s; }
        .p-btn:active { transform: scale(0.95); background: #333; }
        .price-val { font-size: 36px; font-weight: 900; color: var(--accent); background: transparent; border:none; width: 140px; text-align: center; outline: none; }
        
        .btn-confirm { width: 100%; padding: 18px; background: var(--accent); color: #000; border: none; border-radius: 18px; font-weight: 900; text-transform: uppercase; font-size: 16px; cursor: pointer; margin-top: 5px; transition: all 0.2s; box-shadow: 0 4px 20px rgba(192, 241, 28, 0.3); }
        .btn-confirm:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(192, 241, 28, 0.45); }
        .btn-confirm:active { transform: scale(0.98); }
        .btn-confirm:disabled { opacity: 0.6; }
        .stats-info { font-size: 13px; color: #bbb; margin-bottom: 12px; display: flex; justify-content: center; gap: 25px; }

        /* Modo Pasajero y Conductor */
        #passenger-mode, #driver-mode { display: none; }
        #passenger-mode.active, #driver-mode.active { display: block; }

        .driver-sheet {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1500;
            background: var(--card);
            border-radius: 30px 30px 0 0;
            box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
            padding: 25px 20px;
            max-width: 500px;
            margin: 0 auto;
            max-height: 70vh;
            overflow-y: auto;
        }

        .driver-status {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .status-badge {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #222;
            padding: 12px 20px;
            border-radius: 30px;
            transition: all 0.3s;
        }

        .status-badge .dot {
            width: 10px;
            height: 10px;
            background: #ff4757;
            border-radius: 50%;
            transition: all 0.3s;
        }

        .status-badge.online .dot {
            background: var(--accent);
            animation: pulse 2s infinite;
        }
        
        .status-badge.inservice {
            background: rgba(59, 130, 246, 0.2);
        }
        
        .status-badge.inservice .dot {
            background: #3b82f6;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(1.2); }
        }

        .online-toggle {
            padding: 12px 25px;
            background: #222;
            border: none;
            border-radius: 14px;
            color: var(--text);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .online-toggle.active {
            background: var(--accent);
            color: #000;
        }

        .pending-orders {
            margin-top: 15px;
        }

        .pending-orders h4 {
            font-size: 14px;
            color: #888;
            margin-bottom: 15px;
        }

        .order-card {
            background: #222;
            border-radius: 16px;
            padding: 18px;
            margin-bottom: 12px;
            border: 1px solid rgba(255,255,255,0.05);
            animation: slideIn 0.3s ease;
        }

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

        .order-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .order-user {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .order-user img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }

        .order-user .name {
            font-weight: 600;
        }

        .order-price {
            font-size: 20px;
            font-weight: 900;
            color: var(--accent);
        }

        .order-route {
            font-size: 13px;
            color: #aaa;
        }

        .order-route i {
            margin-right: 8px;
            width: 16px;
        }

        .order-route .dest {
            margin-top: 8px;
        }

        .order-actions {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .order-actions button {
            flex: 1;
            padding: 14px;
            border: none;
            border-radius: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-reject {
            background: rgba(255,71,87,0.15);
            color: #ff4757;
        }
        
        .btn-reject:active { transform: scale(0.98); }

        .btn-accept {
            background: var(--accent);
            color: #000;
        }
        
        .btn-accept:active { transform: scale(0.98); }

        .no-orders {
            text-align: center;
            padding: 40px 20px;
            color: #666;
        }

        .no-orders i {
            font-size: 50px;
            margin-bottom: 15px;
            opacity: 0.3;
        }

        /* Modal de registro conductor */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.85);
            z-index: 5000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }

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

        .modal-overlay.active {
            display: flex;
        }

        .modal-content {
            background: #1a1a1a;
            border-radius: 24px;
            padding: 30px;
            width: 100%;
            max-width: 400px;
            max-height: 90vh;
            overflow-y: auto;
            animation: slideUp 0.3s ease;
        }

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

        .modal-header {
            text-align: center;
            margin-bottom: 25px;
        }

        .modal-header i {
            font-size: 50px;
            color: var(--accent);
            margin-bottom: 15px;
        }

        .modal-header h2 {
            margin: 0;
            font-size: 22px;
        }

        .modal-header p {
            color: #888;
            font-size: 14px;
            margin-top: 8px;
        }

        .form-group {
            margin-bottom: 18px;
        }

        .form-group label {
            display: block;
            font-size: 13px;
            color: #888;
            margin-bottom: 8px;
        }

        .form-group input {
            width: 100%;
            padding: 14px 16px;
            background: #222;
            border: 1px solid #333;
            border-radius: 12px;
            color: #fff;
            font-size: 15px;
            transition: border-color 0.2s;
        }

        .form-group input:focus {
            border-color: var(--accent);
        }

        .photo-upload {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 25px;
            background: #222;
            border-radius: 16px;
            border: 2px dashed #444;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .photo-upload:hover {
            border-color: var(--accent);
        }

        .photo-upload i {
            font-size: 40px;
            color: #666;
            margin-bottom: 10px;
        }

        .photo-upload span {
            font-size: 14px;
            color: #888;
        }

        .photo-upload img {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
        }

        .modal-actions {
            display: flex;
            gap: 12px;
            margin-top: 25px;
        }

        .modal-actions button {
            flex: 1;
            padding: 16px;
            border: none;
            border-radius: 14px;
            font-weight: 700;
            cursor: pointer;
            font-size: 15px;
            transition: all 0.2s;
        }

        .btn-cancel {
            background: #333;
            color: #fff;
        }

        .btn-submit {
            background: var(--accent);
            color: #000;
        }
        
        .btn-submit:disabled {
            opacity: 0.6;
        }

        /* Styles para Wizard de Registro de Conductor (3 Pasos + Verificación AI) */
        .driver-wizard-modal {
            max-width: 520px !important;
            width: 100%;
            padding: 24px !important;
            border: 1px solid rgba(192, 241, 28, 0.2);
            box-shadow: 0 20px 50px rgba(0,0,0,0.9);
            position: relative;
        }

        .wizard-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 18px;
        }

        .wizard-title {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .wizard-title i {
            font-size: 32px;
            color: var(--accent);
        }

        .wizard-title h2 {
            margin: 0;
            font-size: 20px;
            font-weight: 800;
            color: #fff;
        }

        .wizard-title p {
            margin: 2px 0 0 0;
            font-size: 13px;
            color: var(--accent);
            font-weight: 600;
        }

        .wizard-close-btn {
            background: rgba(255,255,255,0.1);
            border: none;
            color: #ccc;
            font-size: 24px;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .wizard-close-btn:hover {
            background: #e74c3c;
            color: #fff;
        }

        .wizard-steps-indicator {
            margin-bottom: 20px;
        }

        .step-progress-bar {
            width: 100%;
            height: 6px;
            background: #2a2a2a;
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 12px;
        }

        .step-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #6366f1, #06b6d4);
            transition: width 0.4s ease;
        }

        .steps-pills {
            display: flex;
            justify-content: space-between;
            gap: 8px;
        }

        .step-pill {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 8px;
            background: #222;
            border: 1px solid #333;
            border-radius: 10px;
            cursor: pointer;
            opacity: 0.6;
            transition: all 0.25s ease;
        }

        .step-pill.active {
            opacity: 1;
            background: rgba(192, 241, 28, 0.12);
            border-color: var(--accent);
        }

        .step-pill.completed {
            opacity: 1;
            background: rgba(0, 255, 170, 0.1);
            border-color: #00ffaa;
        }

        .step-pill .step-num {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: #333;
            color: #fff;
            font-size: 11px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .step-pill.active .step-num {
            background: var(--accent);
            color: #000;
        }

        .step-pill.completed .step-num {
            background: #00ffaa;
            color: #000;
        }

        .step-pill .step-txt {
            font-size: 12px;
            font-weight: 700;
            color: #fff;
        }

        .wizard-step-content {
            animation: fadeIn 0.3s ease;
        }

        .doc-upload-card {
            background: #222;
            border: 2px dashed #444;
            border-radius: 14px;
            padding: 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.25s ease;
            position: relative;
            overflow: hidden;
        }

        .doc-upload-card:hover {
            border-color: var(--accent);
            background: #262626;
        }

        .doc-upload-card.has-file {
            border-style: solid;
            border-color: #00ffaa;
            background: rgba(0, 255, 170, 0.04);
        }

        .doc-preview-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 80px;
        }

        .doc-preview-box i {
            font-size: 32px;
            color: #777;
        }

        .doc-upload-card.has-file .doc-preview-box i {
            color: #00ffaa;
        }

        .doc-preview-box span {
            font-size: 13px;
            color: #aaa;
            font-weight: 500;
        }

        .doc-preview-box img {
            max-width: 100%;
            max-height: 140px;
            border-radius: 10px;
            object-fit: cover;
            box-shadow: 0 4px 12px rgba(0,0,0,0.5);
        }

        .doc-quality-status {
            font-size: 12px;
            margin-top: 6px;
            font-weight: 600;
            min-height: 16px;
        }

        .doc-quality-status.ok {
            color: #00ffaa;
        }

        .doc-quality-status.error {
            color: #ff5555;
        }

        /* Consola de Verificación Algorítmica */
        .algo-console {
            background: #0d1117;
            border: 1px solid #30363d;
            border-radius: 12px;
            padding: 14px;
            margin-top: 15px;
            font-family: 'Courier New', Courier, monospace;
        }

        .algo-header {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 10px;
        }

        .algo-header i.pulse-icon {
            animation: pulseGlow 1.2s infinite alternate;
        }

        @keyframes pulseGlow {
            from { transform: scale(1); opacity: 0.8; }
            to { transform: scale(1.2); opacity: 1; }
        }

        .algo-progress-bar {
            width: 100%;
            height: 5px;
            background: #21262d;
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 10px;
        }

        .algo-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #6366f1, #06b6d4);
            transition: width 0.3s ease;
        }

        .algo-log-output {
            background: #161b22;
            border-radius: 8px;
            padding: 10px;
            font-size: 12px;
            color: #58a6ff;
            max-height: 120px;
            overflow-y: auto;
            white-space: pre-wrap;
            line-height: 1.5;
        }

        /* Sheet de conductor aceptado (para pasajero) */
        .accepted-sheet {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1500;
            background: var(--card);
            border-radius: 30px 30px 0 0;
            box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
            padding: 25px 20px;
            max-width: 500px;
            margin: 0 auto;
            display: none;
            animation: slideUp 0.4s ease;
        }

        .accepted-sheet.active {
            display: block;
        }

        .driver-card {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 20px;
            background: #222;
            border-radius: 20px;
            margin-bottom: 20px;
        }

        .driver-card img {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--accent);
        }

        .driver-card .info h3 {
            margin: 0;
            font-size: 18px;
        }

        .driver-card .info p {
            margin: 5px 0 0;
            color: #888;
            font-size: 14px;
        }

        .driver-card .info .plate {
            display: inline-block;
            background: var(--accent);
            color: #000;
            padding: 4px 10px;
            border-radius: 6px;
            font-weight: 700;
            font-size: 13px;
            margin-top: 8px;
        }

        .trip-status {
            text-align: center;
            padding: 15px;
            background: rgba(192, 241, 28, 0.1);
            border-radius: 14px;
            margin-bottom: 20px;
        }

        .trip-status i {
            color: var(--accent);
            margin-right: 8px;
        }

        .trip-status span {
            font-weight: 600;
            color: var(--accent);
        }
        
        .trip-status.picked-up {
            background: rgba(59, 130, 246, 0.1);
        }
        
        .trip-status.picked-up i, .trip-status.picked-up span {
            color: #3b82f6;
        }

        .action-buttons {
            display: flex;
            gap: 12px;
        }

        .action-buttons button {
            flex: 1;
            padding: 18px;
            border: none;
            border-radius: 16px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-size: 15px;
            transition: all 0.2s;
        }

        .btn-call {
            background: #222;
            color: var(--text);
        }

        .btn-chat {
            background: var(--accent);
            color: #000;
        }
        
        .btn-share {
            background: #3b82f6;
            color: #fff;
        }

        .btn-cancel-trip {
            width: 100%;
            padding: 16px;
            background: rgba(255,71,87,0.15);
            border: none;
            border-radius: 14px;
            color: #ff4757;
            font-weight: 600;
            cursor: pointer;
            margin-top: 12px;
            transition: all 0.2s;
        }
        
        /* Driver InService Sheet */
        .inservice-sheet {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1500;
            background: var(--card);
            border-radius: 30px 30px 0 0;
            box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
            padding: 25px 20px;
            max-width: 500px;
            margin: 0 auto;
            display: none;
            animation: slideUp 0.4s ease;
        }
        
        .inservice-sheet.active {
            display: block;
        }
        
        .passenger-card {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 20px;
            background: #222;
            border-radius: 20px;
            margin-bottom: 20px;
        }
        
        .passenger-card img {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--accent);
        }
        
        .passenger-card .info h3 {
            margin: 0;
            font-size: 18px;
        }
        
        .passenger-card .info p {
            margin: 5px 0 0;
            color: #888;
            font-size: 14px;
        }
        
        .route-info {
            background: #222;
            border-radius: 16px;
            padding: 15px;
            margin-bottom: 20px;
        }
        
        .route-info .route-point {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 10px 0;
        }
        
        .route-info .route-point:first-child {
            border-bottom: 1px solid #333;
        }
        
        .route-info .route-point i {
            margin-top: 3px;
        }
        
        .route-info .route-point .label {
            font-size: 12px;
            color: #888;
        }
        
        .route-info .route-point .address {
            font-size: 14px;
            margin-top: 4px;
        }
        
        .btn-pickup {
            width: 100%;
            padding: 20px;
            background: var(--accent);
            color: #000;
            border: none;
            border-radius: 16px;
            font-weight: 900;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .btn-pickup:active {
            transform: scale(0.98);
        }
        
        .btn-pickup.complete {
            background: #22c55e;
        }
        
        .service-actions {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }
        
        .service-actions button {
            flex: 1;
            padding: 14px;
            border: none;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s;
        }

        /* Chat modal */
        .chat-modal {
            position: fixed;
            inset: 0;
            background: var(--bg);
            z-index: 6000;
            display: none;
            flex-direction: column;
            animation: slideUp 0.3s ease;
        }

        .chat-modal.active {
            display: flex;
        }

        .chat-header {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 20px;
            background: #1a1a1a;
            border-bottom: 1px solid #333;
        }

        .chat-header .back-btn {
            background: none;
            border: none;
            color: var(--text);
            font-size: 20px;
            cursor: pointer;
            padding: 10px;
        }

        .chat-header img {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            object-fit: cover;
        }

        .chat-header .name {
            font-weight: 600;
        }

        .chat-header .status {
            font-size: 12px;
            color: var(--accent);
        }

        .chat-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .message {
            max-width: 80%;
            padding: 12px 16px;
            border-radius: 18px;
            font-size: 14px;
            animation: fadeIn 0.2s ease;
        }

        .message.sent {
            background: var(--accent);
            color: #000;
            align-self: flex-end;
            border-bottom-right-radius: 4px;
        }

        .message.received {
            background: #333;
            color: #fff;
            align-self: flex-start;
            border-bottom-left-radius: 4px;
        }

        .message .time {
            font-size: 11px;
            opacity: 0.7;
            margin-top: 4px;
        }

        .chat-input {
            display: flex;
            gap: 12px;
            padding: 15px 20px;
            background: #1a1a1a;
            border-top: 1px solid #333;
        }

        .chat-input input {
            flex: 1;
            padding: 14px 18px;
            background: #222;
            border: 1px solid #333;
            border-radius: 25px;
            color: #fff;
            font-size: 15px;
        }

        .chat-input button {
            width: 50px;
            height: 50px;
            background: var(--accent);
            border: none;
            border-radius: 50%;
            color: #000;
            font-size: 18px;
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .chat-input button:active {
            transform: scale(0.95);
        }

        /* Paginas del menu */
        .menu-page {
            position: fixed;
            inset: 0;
            background: var(--bg);
            z-index: 4000;
            display: none;
            flex-direction: column;
        }

        .menu-page.active {
            display: flex;
            animation: slideIn 0.3s ease;
        }

        .menu-page-header {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 20px;
            background: #1a1a1a;
            border-bottom: 1px solid #333;
        }

        .menu-page-header .back-btn {
            background: none;
            border: none;
            color: var(--text);
            font-size: 20px;
            cursor: pointer;
            padding: 10px;
        }

        .menu-page-header h2 {
            margin: 0;
            font-size: 18px;
        }

        .menu-page-content {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
        }

        /* Historial de viajes */
        .trip-item {
            background: #1a1a1a;
            border-radius: 16px;
            padding: 18px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .trip-item:active {
            transform: scale(0.98);
        }

        .trip-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .trip-item-date {
            font-size: 13px;
            color: #888;
        }

        .trip-item-price {
            font-weight: 700;
            color: var(--accent);
        }

        .trip-item-route {
            font-size: 14px;
        }

        .trip-item-route i {
            width: 20px;
            margin-right: 8px;
        }

        .trip-item-route .dest {
            margin-top: 8px;
        }

        /* Vacio */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #666;
        }

        .empty-state i {
            font-size: 60px;
            margin-bottom: 20px;
            opacity: 0.3;
        }

        .empty-state p {
            font-size: 15px;
        }

        /* Marcador de conductor custom */
        .driver-marker {
            width: 44px;
            height: 44px;
            background: var(--accent);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(192, 241, 28, 0.5);
            border: 3px solid #fff;
            position: relative;
        }
        
        .driver-marker i {
            color: #000;
            font-size: 18px;
        }
        
        .driver-marker::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-top: 8px solid #fff;
        }

        /* Marcador de mi ubicacion */
        .my-location-marker {
            width: 20px;
            height: 20px;
            background: var(--accent);
            border-radius: 50%;
            border: 4px solid rgba(192, 241, 28, 0.3);
            box-shadow: 0 0 20px rgba(192, 241, 28, 0.5);
        }
        
        /* Marcador destino */
        .destination-marker {
            width: 36px;
            height: 36px;
            background: #ff4757;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(255, 71, 87, 0.5);
            border: 3px solid #fff;
        }
        
        .destination-marker i {
            color: #fff;
            font-size: 14px;
        }
        
        /* Marcador pickup */
        .pickup-marker {
            width: 36px;
            height: 36px;
            background: #3b82f6;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
            border: 3px solid #fff;
        }
        
        .pickup-marker i {
            color: #fff;
            font-size: 14px;
        }

        /* Leaflet popup custom */
        .leaflet-popup-content-wrapper {
            background: #1a1a1a !important;
            border-radius: 16px !important;
            padding: 0 !important;
        }
        
        .leaflet-popup-content {
            margin: 0 !important;
            color: #fff;
        }
        
        .leaflet-popup-tip {
            background: #1a1a1a !important;
        }
        
        .driver-popup {
            padding: 15px;
            text-align: center;
        }
        
        .driver-popup img {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--accent);
            margin-bottom: 10px;
        }
        
        .driver-popup .name {
            font-weight: 700;
            font-size: 15px;
            margin-bottom: 4px;
        }
        
        .driver-popup .plate {
            background: var(--accent);
            color: #000;
            padding: 4px 10px;
            border-radius: 6px;
            font-weight: 700;
            font-size: 12px;
            display: inline-block;
        }
        
        /* Share location page */
        .share-page {
            position: fixed;
            inset: 0;
            background: var(--bg);
            z-index: 10001;
            display: none;
            flex-direction: column;
        }
        
        .share-page.active {
            display: flex;
        }
        
        .share-header {
            padding: 20px;
            background: #1a1a1a;
            text-align: center;
            border-bottom: 1px solid #333;
        }
        
        .share-header h2 {
            margin: 0;
            font-size: 18px;
        }
        
        .share-header p {
            margin: 8px 0 0;
            font-size: 13px;
            color: #888;
        }
        
        .share-map {
            flex: 1;
            position: relative;
        }
        
        .share-map #shareMapContainer {
            width: 100%;
            height: 100%;
            filter: invert(82%) hue-rotate(180deg) brightness(90%);
        }
        
        .share-info {
            padding: 20px;
            background: var(--card);
        }
        
        .share-driver-info {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            background: #222;
            border-radius: 16px;
        }
        
        .share-driver-info img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .share-driver-info .details h4 {
            margin: 0;
            font-size: 16px;
        }
        
        .share-driver-info .details p {
            margin: 4px 0 0;
            font-size: 13px;
            color: #888;
        }

        /* =============================================
           ESTILOS SECCIÓN DE RECARGAS (Nequi & Breb)
           ============================================= */
        .recharge-container {
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding-bottom: 30px;
        }

        .recharge-card-box {
            background: #1a1a1a;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            padding: 20px;
            backdrop-filter: blur(10px);
        }

        .recharge-section-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 15px;
            font-weight: 700;
            margin-bottom: 16px;
            color: #fff;
        }

        .payment-methods-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .payment-method-card {
            position: relative;
            background: #242424;
            border: 2px solid transparent;
            border-radius: 16px;
            padding: 20px 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .payment-method-card:hover {
            background: #2d2d2d;
            border-color: rgba(192, 241, 28, 0.4);
            transform: translateY(-2px);
        }

        .payment-method-card.selected {
            background: rgba(192, 241, 28, 0.08);
            border-color: var(--accent);
            box-shadow: 0 0 20px rgba(192, 241, 28, 0.15);
        }

        .method-radio {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 18px;
            color: #666;
        }

        .payment-method-card.selected .method-radio {
            color: var(--accent);
        }

        .payment-method-card img {
            height: 48px;
            max-width: 100%;
            object-fit: contain;
        }

        .payment-method-card .method-name {
            font-size: 14px;
            font-weight: 700;
            color: #fff;
        }

        .amounts-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-bottom: 15px;
        }

        .amount-btn {
            background: #242424;
            border: 2px solid transparent;
            border-radius: 14px;
            padding: 14px 10px;
            color: #fff;
            font-size: 16px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .amount-btn:hover {
            background: #2d2d2d;
            border-color: rgba(192, 241, 28, 0.4);
        }

        .amount-btn.selected {
            background: var(--accent);
            color: #000;
            border-color: var(--accent);
            box-shadow: 0 0 15px rgba(192, 241, 28, 0.3);
        }

        .custom-amount-wrapper {
            margin-top: 10px;
        }

        .custom-amount-wrapper label {
            display: block;
            font-size: 12px;
            color: #888;
            margin-bottom: 6px;
        }

        .custom-amount-input-box {
            display: flex;
            align-items: center;
            background: #242424;
            border: 1px solid #333;
            border-radius: 12px;
            padding: 0 14px;
            transition: border-color 0.2s;
        }

        .custom-amount-input-box:focus-within {
            border-color: var(--accent);
        }

        .custom-amount-input-box span {
            font-size: 18px;
            font-weight: 800;
            color: var(--accent);
            margin-right: 8px;
        }

        .custom-amount-input-box input {
            width: 100%;
            background: transparent;
            border: none;
            outline: none;
            color: #fff;
            font-size: 16px;
            font-weight: 700;
            padding: 12px 0;
        }

        .policy-box {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .policy-checkbox-label {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            cursor: pointer;
            user-select: none;
        }

        .policy-checkbox-label input[type="checkbox"] {
            display: none;
        }

        .custom-checkbox {
            width: 22px;
            height: 22px;
            min-width: 22px;
            border: 2px solid #555;
            border-radius: 6px;
            background: #242424;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            margin-top: 1px;
        }

        .policy-checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
            background: var(--accent);
            border-color: var(--accent);
        }

        .policy-checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: #000;
            font-size: 12px;
        }

        .policy-text {
            font-size: 13px;
            color: #ccc;
            line-height: 1.4;
        }

        .policy-text a {
            color: var(--accent);
            text-decoration: underline;
        }

        .policy-details {
            background: #242424;
            border-left: 3px solid var(--accent);
            border-radius: 8px;
            padding: 12px 15px;
            font-size: 12px;
            color: #aaa;
            line-height: 1.5;
            margin-top: 5px;
            animation: fadeIn 0.3s ease;
        }

        .policy-details ul {
            margin: 8px 0 0;
            padding-left: 18px;
        }

        .policy-details li {
            margin-bottom: 4px;
        }

        .recharge-error-msg {
            background: rgba(255, 71, 87, 0.15);
            border: 1px solid rgba(255, 71, 87, 0.4);
            color: #ff4757;
            padding: 14px 16px;
            border-radius: 14px;
            font-size: 13px;
            font-weight: 600;
            animation: fadeIn 0.3s ease;
        }

        .btn-recharge-submit {
            width: 100%;
            padding: 18px;
            background: var(--accent);
            color: #000;
            border: none;
            border-radius: 16px;
            font-size: 16px;
            font-weight: 900;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 20px rgba(192, 241, 28, 0.25);
        }

        .btn-recharge-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(192, 241, 28, 0.4);
        }

        .btn-recharge-submit:active {
            transform: scale(0.98);
        }

        /* =============================================
           SECTOR DE PAGO EN EL VIAJE (EFECTIVO, NEQUI, BREB)
           ============================================= */
        .trip-payment-selector {
            margin: 14px 0 10px 0;
            background: #1e1e1e;
            border-radius: 18px;
            padding: 12px;
            border: 1px solid rgba(255,255,255,0.08);
        }

        .payment-selector-title {
            font-size: 12px;
            font-weight: 700;
            color: #aaa;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .payment-options {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }

        .pay-option {
            background: #282828;
            border: 2px solid transparent;
            border-radius: 12px;
            padding: 10px 6px;
            color: #ccc;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.2s ease;
        }

        .pay-option img {
            height: 16px;
            max-width: 45px;
            object-fit: contain;
        }

        .pay-option:hover {
            background: #333;
            border-color: rgba(192, 241, 28, 0.3);
        }

        .pay-option.active {
            background: rgba(192, 241, 28, 0.12);
            border-color: var(--accent);
            color: var(--accent);
            box-shadow: 0 0 12px rgba(192, 241, 28, 0.2);
        }

        /* Badges de pago en la tarjeta del conductor */
        .order-pay-tag {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 3px 8px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .order-pay-tag.efectivo {
            background: rgba(34, 197, 94, 0.15);
            color: #22c55e;
            border: 1px solid rgba(34, 197, 94, 0.3);
        }

        .order-pay-tag.nequi {
            background: rgba(224, 86, 172, 0.15);
            color: #f472b6;
            border: 1px solid rgba(244, 114, 182, 0.3);
        }

        .order-pay-tag.breb {
            background: rgba(192, 241, 28, 0.15);
            color: var(--accent);
            border: 1px solid rgba(192, 241, 28, 0.3);
        }

        .inservice-pay-badge {
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 6px;
            margin-left: 6px;
            vertical-align: middle;
        }
        .inservice-pay-badge.efectivo { background: #22c55e; color: #000; }
        .inservice-pay-badge.nequi { background: #e056ac; color: #fff; }
        .inservice-pay-badge.breb { background: var(--accent); color: #000; }

        /* =============================================
           MODAL ALERTA PERSONALIZADO
           ============================================= */
        .custom-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.82);
            z-index: 10000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            backdrop-filter: blur(8px);
            animation: fadeIn 0.25s ease;
        }

        .custom-modal-overlay.active {
            display: flex;
        }

        .custom-modal-box {
            background: #1e1e1e;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 24px;
            padding: 28px 24px;
            width: 100%;
            max-width: 360px;
            text-align: center;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
            animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .custom-modal-icon {
            font-size: 46px;
            margin-bottom: 14px;
        }

        .custom-modal-box h3 {
            margin: 0 0 8px 0;
            font-size: 20px;
            font-weight: 800;
            color: #fff;
        }

        .custom-modal-box p {
            margin: 0 0 22px 0;
            font-size: 14px;
            color: #bbb;
            line-height: 1.5;
        }

        .custom-modal-actions {
            display: flex;
            gap: 10px;
        }

        .btn-modal-ok {
            flex: 1;
            padding: 14px;
            background: var(--accent);
            color: #000;
            border: none;
            border-radius: 14px;
            font-size: 15px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-modal-ok:active {
            transform: scale(0.96);
        }

        .btn-modal-cancel {
            flex: 1;
            padding: 14px;
            background: #333;
            color: #fff;
            border: none;
            border-radius: 14px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-modal-cancel:active {
            transform: scale(0.96);
        }

        /* =============================================
           EDICIÓN DE PERFIL EN CONFIGURACIÓN
           ============================================= */
        .profile-edit-box {
            background: #1a1a1a;
            border-radius: 20px;
            padding: 22px;
            border: 1px solid rgba(255,255,255,0.08);
        }

        .profile-photo-upload {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: #242424;
            border: 2px dashed var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px auto;
            cursor: pointer;
            transition: all 0.2s ease;
            overflow: hidden;
        }

        .profile-photo-upload:hover {
            transform: scale(1.05);
            background: #2c2c2c;
        }

        /* =============================================
           SWITCHES Y MODAL DE MÉTODOS DE PAGO DE VIAJE
           ============================================= */
        .payment-toggle-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px;
            background: #242424;
            border-radius: 14px;
            margin-bottom: 10px;
            border: 1px solid rgba(255,255,255,0.05);
        }

        .trip-modal-pay-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .trip-modal-pay-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            background: #282828;
            border: 2px solid transparent;
            border-radius: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .trip-modal-pay-card:hover {
            background: #303030;
            border-color: rgba(192, 241, 28, 0.3);
        }

        .trip-modal-pay-card.selected {
            background: rgba(192, 241, 28, 0.1);
            border-color: var(--accent);
        }

        .trip-modal-pay-card.selected .check-icon {
            color: var(--accent);
        }

        /* =============================================
           DISEÑO MEJORADO DE EDICIÓN DE PERFIL Y PERMISOS
           ============================================= */
        .profile-header-card {
            background: linear-gradient(135deg, #222 0%, #181818 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            padding: 25px 20px;
            text-align: center;
            margin-bottom: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .profile-avatar-wrapper {
            position: relative;
            width: 96px;
            height: 96px;
            margin: 0 auto 12px auto;
            cursor: pointer;
        }

        .avatar-preview-box {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: #282828;
            border: 3px solid var(--accent);
            box-shadow: 0 0 20px rgba(192, 241, 28, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .profile-avatar-wrapper:hover .avatar-preview-box {
            transform: scale(1.05);
            box-shadow: 0 0 28px rgba(192, 241, 28, 0.4);
        }

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

        .avatar-camera-btn {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 32px;
            height: 32px;
            background: var(--accent);
            border: 2px solid #1a1a1a;
            border-radius: 50%;
            color: #000;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.5);
            transition: transform 0.2s ease;
        }

        .profile-avatar-wrapper:hover .avatar-camera-btn {
            transform: scale(1.1);
        }

        .profile-status-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 12px;
            background: rgba(192, 241, 28, 0.12);
            border: 1px solid rgba(192, 241, 28, 0.3);
            color: var(--accent);
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
        }

        .profile-section-subtitle {
            font-size: 14px;
            font-weight: 800;
            color: #fff;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .input-field-group {
            margin-bottom: 16px;
        }

        .input-field-group label {
            display: block;
            font-size: 12px;
            font-weight: 700;
            color: #aaa;
            margin-bottom: 6px;
        }

        .input-with-icon {
            position: relative;
            display: flex;
            align-items: center;
        }

        .input-with-icon .icon-left {
            position: absolute;
            left: 14px;
            color: #666;
            font-size: 15px;
            pointer-events: none;
            transition: color 0.2s ease;
        }

        .input-with-icon input {
            width: 100%;
            padding: 14px 14px 14px 42px;
            background: #242424;
            border: 1px solid #333;
            border-radius: 14px;
            color: #fff;
            font-size: 15px;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .input-with-icon input:focus {
            border-color: var(--accent);
            background: #2a2a2a;
            box-shadow: 0 0 15px rgba(192, 241, 28, 0.15);
        }

        .input-with-icon input:focus + .icon-left,
        .input-with-icon input:focus ~ .icon-left {
            color: var(--accent);
        }

        .gps-permission-card {
            background: #242424;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .gps-status-badge {
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .gps-status-badge.granted {
            background: rgba(34, 197, 94, 0.15);
            color: #22c55e;
            border: 1px solid rgba(34, 197, 94, 0.3);
        }

        .gps-status-badge.denied {
            background: rgba(255, 71, 87, 0.15);
            color: #ff4757;
            border: 1px solid rgba(255, 71, 87, 0.3);
        }

        .gps-status-badge.prompt {
            background: rgba(255, 159, 67, 0.15);
            color: #ff9f43;
            border: 1px solid rgba(255, 159, 67, 0.3);
        }

        .btn-request-gps {
            width: 100%;
            padding: 12px;
            background: rgba(192, 241, 28, 0.1);
            border: 1px solid var(--accent);
            color: var(--accent);
            border-radius: 12px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s ease;
        }

        .btn-request-gps:hover {
            background: var(--accent);
            color: #000;
        }

        .btn-request-gps:active {
            transform: scale(0.98);
        }

        /* =============================================
           ESTILOS BOTÓN GUARDAR PERFIL Y ACCIONES (.btn-submit)
           ============================================= */
        .btn-submit {
            width: 100%;
            padding: 16px 24px;
            background: var(--accent);
            color: #000;
            font-size: 16px;
            font-weight: 800;
            border: none;
            border-radius: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 8px 25px rgba(192, 241, 28, 0.3);
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .btn-submit:hover {
            background: #cbf438;
            transform: translateY(-2px);
            box-shadow: 0 12px 30px rgba(192, 241, 28, 0.45);
        }

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

        /* =============================================
           ESTILOS MEJORADOS GLASS INPUTS & SEARCH RESULTS
           ============================================= */
        .glass {
            background: rgba(22, 22, 28, 0.85) !important;
            backdrop-filter: blur(16px) !important;
            -webkit-backdrop-filter: blur(16px) !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            border-radius: 20px !important;
            padding: 14px !important;
            margin-bottom: 16px !important;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
        }

        .glass input, #origin, #dest {
            background: rgba(30, 30, 38, 0.95) !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            color: #ffffff !important;
            border-radius: 12px !important;
            padding: 12px 14px !important;
            font-size: 14px !important;
            font-weight: 600 !important;
            outline: none !important;
            transition: all 0.25s ease !important;
            width: 100% !important;
        }

        .glass input:focus, #origin:focus, #dest:focus {
            background: rgba(40, 40, 50, 0.98) !important;
            border-color: var(--accent) !important;
            box-shadow: 0 0 14px rgba(192, 241, 28, 0.3) !important;
            color: #ffffff !important;
        }

        #results {
            background: rgba(18, 18, 24, 0.96) !important;
            backdrop-filter: blur(20px) !important;
            -webkit-backdrop-filter: blur(20px) !important;
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            border-radius: 16px !important;
            margin-top: 10px !important;
            max-height: 240px !important;
            overflow-y: auto !important;
            box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7) !important;
            z-index: 1000 !important;
            position: relative !important;
        }

        #results .res-item {
            padding: 14px 18px !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
            color: #e2e8f0 !important;
            cursor: pointer !important;
            font-size: 13.5px !important;
            font-weight: 500 !important;
            display: flex !important;
            align-items: center !important;
            gap: 12px !important;
            transition: background 0.2s ease, color 0.2s ease !important;
        }

        #results .res-item:last-child {
            border-bottom: none !important;
        }

        #results .res-item:hover {
            background: rgba(192, 241, 28, 0.15) !important;
            color: var(--accent) !important;
        }

        #results .res-item i {
            color: var(--accent) !important;
            font-size: 15px !important;
        }

        /* =============================================
           ESTILOS PROFESIONALES DE MARCADORES DE MAPA
           ============================================= */
        .driver-marker-container {
            position: relative;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .driver-marker-glow {
            position: absolute;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(192, 241, 28, 0.25);
            box-shadow: 0 0 20px rgba(192, 241, 28, 0.6);
            animation: driverGlowPulse 2s infinite ease-in-out;
        }

        .driver-marker-card {
            position: relative;
            z-index: 2;
            width: 42px;
            height: 42px;
            background: #0d0d12;
            border: 2.5px solid var(--accent);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
            transition: transform 0.25s ease;
        }

        .driver-marker-card:hover {
            transform: scale(1.15);
        }

        .driver-marker-card i {
            color: var(--accent);
            font-size: 18px;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
        }

        .driver-marker-card img {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
        }

        @keyframes driverGlowPulse {
            0%, 100% {
                transform: scale(0.95);
                opacity: 0.5;
            }
            50% {
                transform: scale(1.25);
                opacity: 0.9;
            }
        }

        /* Marcador de Mi Ubicación */
        .my-location-container {
            position: relative;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .my-location-pulse {
            position: absolute;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(59, 130, 246, 0.3);
            border: 1.5px solid #3b82f6;
            animation: gpsPulseRing 2.2s infinite ease-out;
        }

        .my-location-dot {
            width: 16px;
            height: 16px;
            background: #3b82f6;
            border: 3px solid #ffffff;
            border-radius: 50%;
            box-shadow: 0 0 14px rgba(59, 130, 246, 0.9);
            z-index: 2;
        }

        @keyframes gpsPulseRing {
            0% {
                transform: scale(0.4);
                opacity: 1;
            }
            100% {
                transform: scale(1.6);
                opacity: 0;
            }
        }

        /* Marcador de Punto de Recogida (Pickup) */
        .pickup-marker-container {
            position: relative;
            width: 44px;
            height: 52px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .pickup-pin-head {
            width: 38px;
            height: 38px;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            border: 2px solid #ffffff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            font-size: 16px;
            box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
            z-index: 2;
        }

        .pickup-pin-tail {
            width: 0;
            height: 0;
            border-left: 7px solid transparent;
            border-right: 7px solid transparent;
            border-top: 10px solid #059669;
            margin-top: -3px;
            z-index: 1;
        }

        /* Marcador de Destino */
        .destination-marker-container {
            position: relative;
            width: 44px;
            height: 52px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .dest-pin-head {
            width: 38px;
            height: 38px;
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            border: 2px solid #ffffff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            font-size: 16px;
            box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
            z-index: 2;
        }

        .dest-pin-tail {
            width: 0;
            height: 0;
            border-left: 7px solid transparent;
            border-right: 7px solid transparent;
            border-top: 10px solid #dc2626;
            margin-top: -3px;
            z-index: 1;
        }

        /* Leaflet Popups Estilizados */
        .custom-popup .leaflet-popup-content-wrapper {
            background: rgba(18, 18, 24, 0.94) !important;
            backdrop-filter: blur(16px) !important;
            border: 1px solid rgba(192, 241, 28, 0.3) !important;
            border-radius: 18px !important;
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7) !important;
            color: #ffffff !important;
            padding: 4px !important;
        }

        .custom-popup .leaflet-popup-tip {
            background: rgba(18, 18, 24, 0.94) !important;
            border: 1px solid rgba(192, 241, 28, 0.3) !important;
        }

        .driver-popup {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 12px;
        }

        .driver-popup img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid var(--accent);
            object-fit: cover;
        }

        .driver-popup .name {
            font-weight: 800;
            font-size: 14px;
            color: #ffffff;
        }

        .driver-popup .plate {
            font-size: 11px;
            font-weight: 700;
            color: var(--accent);
            background: rgba(192, 241, 28, 0.15);
            padding: 2px 8px;
            border-radius: 6px;
            display: inline-block;
            margin-top: 2px;
        }





