:root {
            --app-height: 100%;
            --hn-blue: #0c4a8e;
            --hn-blue-light: #1a6bb5;
            --hn-sky: #38bdf8;
            --hn-white: #ffffff;
        }
        html, body { 
            font-family: 'Inter', sans-serif; 
            background-color: #f8fafc; 
            overflow: hidden; 
            height: 100dvh;
            width: 100%;
            position: fixed;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }
        
        #app-interface {
            display: flex;
            flex-direction: column;
            height: 100dvh;
            width: 100%;
            overflow: hidden;
            padding-top: env(safe-area-inset-top, 0px);
            padding-bottom: env(safe-area-inset-bottom, 0px);
        }

        /* Header fijo arriba — el logo no invade el panel de viajes */
        #app-header {
            flex-shrink: 0;
            overflow: visible;
            z-index: 250;
            position: relative;
            isolation: isolate;
        }

        .header-toolbar {
            position: relative;
            min-height: 3.5rem;
            display: grid;
            grid-template-columns: auto 1fr auto;
            align-items: center;
            gap: 0.35rem;
            overflow: visible;
        }

        .header-slot-left { grid-column: 1; justify-self: start; position: relative; z-index: 3; }
        .header-slot-center { grid-column: 2; justify-self: center; width: 100%; max-width: 100%; }
        .header-slot-right {
            grid-column: 3;
            justify-self: end;
            position: relative;
            z-index: 4;
        }

        .header-actions-mobile {
            position: relative;
            z-index: 5;
        }

        #app-logo-center {
            top: auto;
            left: auto;
            transform: none;
        }

        .header-icon-btn {
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            flex-shrink: 0;
            cursor: pointer;
            border: none;
            background-clip: padding-box;
        }

        .service-zone-collapse-bar {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            width: 100%;
            padding: 0.65rem 0.75rem;
            text-align: left;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            background: transparent;
            border: none;
            cursor: pointer;
        }

        .service-zone-collapse-title {
            font-size: 0.58rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #64748b;
            display: flex;
            align-items: center;
            gap: 0.35rem;
            flex-shrink: 0;
        }

        .service-zone-summary {
            flex: 1;
            min-width: 0;
            font-size: 0.72rem;
            font-weight: 800;
            color: #1e40af;
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .service-zone-chevron {
            font-size: 0.65rem;
            color: #94a3b8;
            transition: transform 0.2s ease;
            flex-shrink: 0;
        }

        #service-zone-picker.zone-collapsed .service-zone-chevron {
            transform: rotate(180deg);
        }

        #service-zone-picker.zone-collapsed .service-zone-body {
            display: none !important;
        }

        #service-zone-picker.zone-collapsed #client-setup-collapsed-radius {
            display: block !important;
        }

        .client-setup-collapsed-radius {
            background: rgba(248, 250, 252, 0.95);
        }

        .client-setup-panel .service-type-picker {
            margin-bottom: 0.15rem;
        }

        .service-zone-map-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.5rem 0.75rem;
            background: rgba(255, 255, 255, 0.97);
            border: 1px solid #dbeafe;
            border-radius: 999px;
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
            font-size: 0.68rem;
            font-weight: 800;
            color: #1e3a8a;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            cursor: pointer;
        }

        body.zone-picker-collapsed #control-panel {
            max-height: min(50%, 46dvh);
        }

        @media (max-width: 639px) {
            body.zone-picker-collapsed #control-panel {
                max-height: min(46%, 42dvh);
            }
        }

        .header-more-menu {
            position: fixed;
            left: 0.5rem;
            right: 0.5rem;
            z-index: 500;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 1rem;
            box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
            padding: 0.35rem;
            display: flex;
            flex-direction: column;
            gap: 0.15rem;
            max-height: min(70dvh, 420px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .header-more-menu.hidden {
            display: none !important;
        }

        .header-more-item {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            width: 100%;
            padding: 0.7rem 0.85rem;
            border-radius: 0.75rem;
            font-size: 0.8rem;
            font-weight: 700;
            color: #1e293b;
            text-align: left;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .header-more-item:active {
            background: #f1f5f9;
        }

        .header-more-item-danger {
            color: #dc2626;
        }

        @media (max-width: 639px) {
            .header-map-logo {
                max-height: 2.15rem;
                max-width: 5.5rem;
            }

            .header-brand-fallback {
                font-size: 0.95rem;
                letter-spacing: -0.02em;
            }
        }

        @media (min-width: 640px) {
            .header-toolbar {
                min-height: 4rem;
                display: flex;
                align-items: center;
                justify-content: space-between;
            }

            .header-slot-left,
            .header-slot-center,
            .header-slot-right {
                grid-column: auto;
            }

            #app-logo-center {
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
                max-width: 52%;
                pointer-events: none;
            }
        }

        .header-brand-fallback {
            font-weight: 900;
            color: var(--hn-blue);
            line-height: 1;
            white-space: nowrap;
        }

        .header-map-logo {
            max-height: 3.5rem;
            max-width: 14rem;
            width: auto;
            height: auto;
            filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.18));
        }

        @media (min-width: 640px) {
            .header-toolbar {
                min-height: 4.5rem;
            }

            .header-map-logo {
                max-height: 3.85rem;
                max-width: 16rem;
            }
        }

        @media (min-width: 768px) {
            .header-toolbar {
                min-height: 5rem;
            }

            .header-map-logo {
                max-height: 4.5rem;
                max-width: 20rem;
            }
        }

        @media (min-width: 1024px) {
            .header-toolbar {
                min-height: 5.5rem;
            }

            .header-map-logo {
                max-height: 5rem;
                max-width: 24rem;
            }
        }

        @media (min-width: 1280px) {
            .header-map-logo {
                max-height: 5.75rem;
                max-width: 28rem;
            }
        }

        html[data-theme="dark"] .header-map-logo {
            filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.5));
        }

        html[data-theme="dark"] .header-brand-fallback {
            color: #93c5fd;
        }

        .app-shell {
            flex: 1;
            position: relative;
            min-height: 0;
            overflow: hidden;
        }

        #map-container {
            position: absolute;
            inset: 0;
            z-index: 0;
            pointer-events: auto;
        }

        #map { height: 100%; width: 100%; position: absolute; inset: 0; transition: opacity 0.35s ease; }

        .moto-star-banner {
            animation: moto-glow 4s ease-in-out infinite;
        }

        @keyframes moto-glow {
            0%, 100% { box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25); }
            50% { box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4); }
        }

        .service-type-picker {
            position: relative;
            z-index: 6;
            touch-action: manipulation;
        }

        .service-type-btn {
            min-height: 3.25rem;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            cursor: pointer;
            overflow: hidden;
            isolation: isolate;
        }

        .service-type-btn > * {
            pointer-events: none;
        }

        .trip-route-fields {
            position: relative;
            z-index: 4;
        }

        .trip-route-actions {
            position: relative;
            z-index: 12;
            isolation: isolate;
        }

        gmp-place-autocomplete {
            display: block;
            width: 100%;
            position: relative;
            z-index: 1;
        }

        .trip-origin-wrap {
            z-index: 2;
        }

        #btn-calculate-trip,
        #fare-request-btn,
        #btn-use-location,
        .favorite-chip {
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            cursor: pointer;
            isolation: isolate;
        }

        #btn-calculate-trip,
        #fare-request-btn {
            min-height: 48px;
            position: relative;
            z-index: 8;
        }

        #btn-use-location {
            min-width: 44px;
            min-height: 44px;
            z-index: 15;
        }

        #btn-calculate-trip > *,
        #fare-request-btn > *,
        #btn-use-location > *,
        .favorite-chip > * {
            pointer-events: none;
        }

        [data-trip-action],
        [data-accept-trip],
        [data-decline-trip],
        .trip-drag-handle[data-trip-action] {
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            cursor: pointer;
        }

        [data-trip-action] > *:not(input):not(textarea):not(select),
        [data-accept-trip] > *,
        [data-decline-trip] > * {
            pointer-events: none;
        }

        .trip-touch-btn {
            min-height: 48px;
            position: relative;
            z-index: 4;
            isolation: isolate;
        }

        #active-trip-panel {
            position: relative;
            z-index: 5;
        }

        .trip-actions-sticky {
            position: relative;
            z-index: 20;
            isolation: isolate;
            flex-shrink: 0;
            padding-bottom: env(safe-area-inset-bottom, 0px);
        }

        #searching-state [data-trip-action],
        #rating-screen [data-trip-action],
        #cancellation-survey-screen [data-trip-action],
        #nav-hud-bottom [data-trip-action],
        .nav-fab[data-trip-action] {
            z-index: 6;
        }

        .star-btn,
        .tip-btn {
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            min-width: 44px;
            min-height: 44px;
        }

        #chat-section:not(.collapsed) {
            position: relative;
            z-index: 8;
        }

        .svc-star-badge {
            position: absolute;
            top: 4px;
            right: 4px;
            background: #7c3aed;
            color: white;
            font-size: 8px;
            font-weight: 900;
            width: 16px;
            height: 16px;
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid white;
            pointer-events: none;
        }

        .svc-star-badge.svc-star-amber {
            background: #d97706;
            width: auto;
            min-width: 22px;
            padding: 0 4px;
            font-size: 7px;
        }

        .service-type-moto.active {
            border-color: #7c3aed !important;
            background: #f5f3ff !important;
            color: #6d28d9 !important;
        }

        .service-type-delivery.active {
            border-color: #d97706 !important;
            background: #fffbeb !important;
            color: #b45309 !important;
        }

        .favorite-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.4rem 0.65rem;
            border-radius: 999px;
            border: 1px solid #e2e8f0;
            background: white;
            font-size: 10px;
            font-weight: 800;
            color: #475569;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        .favorite-chip:active {
            transform: scale(0.96);
            background: #f1f5f9;
        }

        .favorite-chip-save {
            border-color: #bfdbfe;
            color: #2563eb;
            background: #eff6ff;
        }

        #fare-card.fare-moto {
            background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 55%, #8b5cf6 100%);
        }

        #fare-card.fare-delivery {
            background: linear-gradient(135deg, #b45309 0%, #d97706 55%, #f59e0b 100%);
        }

        .login-screen, .setup-screen, .rating-screen, .cancellation-survey-screen { 
            background: linear-gradient(165deg, #041e42 0%, var(--hn-blue) 38%, #0f4c8a 68%, #1e5f9e 100%);
            z-index: 10000; 
            position: fixed;
            inset: 0;
            overflow-y: auto;
        }

        /* --- LOGIN MÓVIL: logo hero grande --- */
        .login-hero {
            padding-top: max(2rem, env(safe-area-inset-top, 0px));
        }

        .login-logo-wrap {
            position: relative;
            width: clamp(7.5rem, 38vw, 10.5rem);
            height: clamp(7.5rem, 38vw, 10.5rem);
            margin-bottom: 1.25rem;
        }

        .login-logo-glow {
            position: absolute;
            inset: -14px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.55) 0%, rgba(14, 165, 233, 0.2) 45%, transparent 72%);
            filter: blur(10px);
            animation: login-glow-pulse 3s ease-in-out infinite;
        }

        @keyframes login-glow-pulse {
            0%, 100% { opacity: 0.75; transform: scale(0.96); }
            50% { opacity: 1; transform: scale(1.04); }
        }

        .login-logo-box {
            position: relative;
            z-index: 1;
            width: 100%;
            height: 100%;
            border-radius: 2rem;
            background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
            box-shadow:
                0 22px 50px rgba(0, 0, 0, 0.38),
                0 0 0 1px rgba(255, 255, 255, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            padding: 0.85rem;
        }

        .login-logo-img,
        .auth-hero-logo-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: none;
        }

        .login-logo-img.auth-logo-loaded,
        .login-logo-box .auth-hero-logo-img.auth-logo-loaded,
        #login-firebase-logo.auth-logo-loaded {
            display: block !important;
        }

        .driver-setup-mini-logo.auth-logo-loaded {
            display: block !important;
            width: 2rem;
            height: 2rem;
        }

        .login-logo-fallback {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 1.35rem;
            overflow: hidden;
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #0ea5e9 100%);
            color: white;
            font-size: clamp(2.75rem, 12vw, 3.75rem);
            box-shadow: inset 0 -4px 12px rgba(0, 0, 0, 0.15);
        }

        .login-default-icon-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: inherit;
        }

        .login-brand-title {
            font-size: clamp(1.85rem, 8vw, 2.35rem);
            font-weight: 900;
            letter-spacing: -0.03em;
            color: #ffffff;
            line-height: 1.1;
            text-shadow: 0 2px 20px rgba(37, 99, 235, 0.35);
        }

        .login-brand-sub {
            margin-top: 0.35rem;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.22em;
            text-transform: uppercase;
            color: rgba(191, 219, 254, 0.95);
        }

        .login-brand-tagline {
            margin-top: 0.4rem;
            font-size: 0.72rem;
            font-weight: 600;
            color: rgba(226, 232, 240, 0.75);
            letter-spacing: 0.02em;
        }

        .hn-flag-stripe {
            height: 3px;
            background: linear-gradient(90deg, var(--hn-blue) 0%, var(--hn-blue) 33%, #ffffff 33%, #ffffff 66%, var(--hn-blue) 66%, var(--hn-blue) 100%);
        }

        .service-type-btn.active {
            transform: scale(1.02);
            box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
        }

        .service-type-btn.active[data-svc="moto"],
        #svc-btn-moto.service-type-btn.active {
            border-color: #7c3aed !important;
            background: #f5f3ff !important;
            color: #6d28d9 !important;
            box-shadow: 0 4px 14px rgba(124, 58, 237, 0.2);
        }

        .service-type-btn.active[data-svc="delivery"],
        #svc-btn-delivery.service-type-btn.active {
            border-color: #d97706 !important;
            background: #fffbeb !important;
            color: #b45309 !important;
            box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2);
        }

        #fare-card.fare-moto { background: linear-gradient(135deg, #6d28d9, #7c3aed) !important; }
        #fare-card.fare-delivery { background: linear-gradient(135deg, #d97706, #f59e0b) !important; }

        .login-welcome-msg {
            margin-top: 0.65rem;
            font-size: 0.8rem;
            font-weight: 600;
            color: rgba(226, 232, 240, 0.85);
            max-width: 18rem;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.35;
        }

        .login-card {
            background: #ffffff;
            border-top: 1px solid rgba(255, 255, 255, 0.6);
        }

        .auth-form-scroll {
            scrollbar-width: thin;
            scrollbar-color: #cbd5e1 transparent;
        }

        /* Login más compacto en celular */
        @media (max-width: 639px) {
            .login-hero {
                padding-top: max(0.85rem, env(safe-area-inset-top, 0px));
                padding-bottom: 0.35rem;
            }

            .login-logo-wrap {
                width: clamp(4.5rem, 24vw, 5.5rem);
                height: clamp(4.5rem, 24vw, 5.5rem);
                margin-bottom: 0.5rem;
            }

            .login-brand-title {
                font-size: 1.45rem;
            }

            .login-brand-sub {
                font-size: 0.58rem;
            }

            .login-brand-tagline {
                font-size: 0.6rem;
                margin-top: 0.2rem;
            }

            .login-card {
                padding-top: 1.25rem !important;
            }
        }

        .login-hero-compact .login-logo-wrap {
            width: clamp(3rem, 14vw, 3.75rem);
            height: clamp(3rem, 14vw, 3.75rem);
            margin-bottom: 0.25rem;
        }

        .login-hero-compact .login-brand-title { font-size: 1rem; }
        .login-hero-compact .login-brand-sub { font-size: 0.52rem; }
        .login-hero-compact .login-brand-tagline { font-size: 0.5rem; }

        /* Registro conductor — móvil primero, formulario completo con fotos */
        .driver-setup-screen {
            position: fixed;
            inset: 0;
            z-index: 20000;
            background: linear-gradient(165deg, #041e42 0%, var(--hn-blue) 38%, #0f4c8a 68%, #1e5f9e 100%);
            display: none;
            flex-direction: column;
            overflow: hidden;
        }

        .driver-setup-screen.auth-screen-open {
            display: flex !important;
        }

        .driver-setup-bar {
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
            padding: max(0.5rem, env(safe-area-inset-top, 0px)) 0.75rem 0.5rem;
            background: rgba(4, 30, 66, 0.92);
            border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        }

        .driver-setup-bar-brand {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            min-width: 0;
        }

        .driver-setup-mini-logo {
            width: 2rem;
            height: 2rem;
            object-fit: contain;
            border-radius: 0.5rem;
            background: white;
            padding: 0.15rem;
        }

        .driver-setup-body {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 0.65rem 0.75rem 1.25rem;
            max-width: 28rem;
            width: 100%;
            margin: 0 auto;
        }

        .setup-step {
            background: #fff;
            border-radius: 1rem;
            padding: 0.75rem;
            margin-bottom: 0.55rem;
            border: 1px solid #e2e8f0;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
        }

        .setup-step-head {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            margin-bottom: 0.45rem;
        }

        .setup-step-num {
            width: 1.25rem;
            height: 1.25rem;
            border-radius: 999px;
            color: #fff;
            font-size: 0.6rem;
            font-weight: 900;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .setup-step-title {
            font-size: 0.78rem;
            font-weight: 900;
            color: #0f172a;
            line-height: 1.2;
        }

        .setup-step-desc {
            font-size: 0.62rem;
            color: #64748b;
            line-height: 1.35;
            margin-bottom: 0.45rem;
        }

        .setup-input {
            width: 100%;
            padding: 0.55rem 0.7rem;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            font-size: 0.8rem;
            background: #f8fafc;
        }

        .setup-input:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
        }

        .driver-type-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.15rem;
            padding: 0.55rem 0.35rem;
            border-radius: 0.85rem;
            border: 2px solid #e2e8f0;
            background: #f8fafc;
            font-size: 0.62rem;
            font-weight: 900;
            text-transform: uppercase;
            color: #64748b;
            transition: all 0.15s ease;
        }

        .driver-type-btn i { font-size: 1.1rem; }

        .driver-type-btn.active[data-type="auto"] {
            border-color: #2563eb;
            background: #eff6ff;
            color: #1d4ed8;
        }

        .driver-type-btn.active[data-type="moto"] {
            border-color: #7c3aed;
            background: #f5f3ff;
            color: #6d28d9;
        }

        .setup-photo-slot {
            height: 3.5rem;
            background: #f1f5f9;
            border: 1px dashed #cbd5e1;
            border-radius: 0.75rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            text-align: center;
            padding: 0.2rem;
            overflow: hidden;
        }

        .setup-photo-slot img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 0.65rem;
        }

        .setup-photo-face {
            width: 5.5rem;
            height: 5.5rem;
            margin: 0 auto;
            border-radius: 1rem;
            border: 2px dashed #60a5fa;
            background: #eff6ff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            overflow: hidden;
        }

        .setup-photo-face img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .setup-photo-doc {
            height: 4.5rem;
        }

        @media (min-width: 768px) {
            .login-screen {
                justify-content: center;
                padding: 1.5rem;
            }
            .login-hero {
                padding-top: 1.5rem;
            }
            .login-card {
                flex: 0 1 auto;
                border-radius: 2.5rem !important;
                margin-bottom: 1rem;
            }
        }

        /* --- INTERFAZ DE NAVEGACIÓN PROFESIONAL --- */
        #nav-hud-top {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 92%;
            max-width: 400px;
            background: #004d40;
            color: white;
            padding: 16px;
            border-radius: 1.2rem;
            box-shadow: 0 10px 25px rgba(0,0,0,0.4);
            z-index: 2000;
            display: none;
            align-items: center;
            gap: 15px;
        }

        #nav-hud-bottom {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background: white;
            padding: 20px 24px;
            border-radius: 2rem 2rem 0 0;
            box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
            z-index: 2000;
            display: none;
        }

        .nav-fab {
            position: absolute;
            right: 15px;
            width: 52px;
            height: 52px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            z-index: 1900;
            color: #1e293b;
            cursor: pointer;
            border: 1px solid #f1f5f9;
            transition: all 0.3s ease;
        }
        
        .nav-fab.active {
            background-color: #2563eb;
            color: white;
            border-color: #2563eb;
        }

        #fab-center { bottom: 210px; left: 15px; width: auto; border-radius: 30px; padding: 0 20px; font-weight: 800; font-size: 12px; gap: 8px; color: #2563eb; }
        #fab-traffic { bottom: 210px; right: 15px; } 

        #control-panel {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 100;
            width: 100%;
            /* % del área del mapa: nunca sube al header del logo */
            max-height: min(58%, 62dvh);
            background: rgba(255, 255, 255, 0.97);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 1.75rem 1.75rem 0 0;
            border-top: 1px solid rgba(226, 232, 240, 0.9);
            box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.15);
            padding: 0.2rem 1.1rem 1.25rem;
            touch-action: pan-y;
            pointer-events: auto;
            transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.38s;
        }

        #control-panel.panel-hidden {
            transform: translateY(100%);
            visibility: hidden;
            pointer-events: none;
        }

        .control-panel-header {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            min-height: 1.75rem;
            margin-bottom: 0.55rem;
            flex-shrink: 0;
        }

        .control-panel-grab {
            width: 42px;
            height: 4px;
            background: #cbd5e1;
            border-radius: 999px;
        }

        .panel-hide-btn {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 2.25rem;
            height: 2.25rem;
            border: none;
            border-radius: 0.75rem;
            background: #f1f5f9;
            color: #64748b;
            display: flex;
            align-items: center;
            justify-content: center;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            cursor: pointer;
        }

        .panel-expand-fab {
            display: none;
            position: absolute;
            left: 50%;
            bottom: max(14px, env(safe-area-inset-bottom, 14px));
            transform: translateX(-50%);
            z-index: 110;
            align-items: center;
            justify-content: center;
            gap: 0.45rem;
            padding: 0.7rem 1.25rem;
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            color: #fff;
            border: none;
            border-radius: 999px;
            box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
            font-size: 0.72rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            cursor: pointer;
        }

        body.panel-hidden .panel-expand-fab {
            display: inline-flex;
        }

        body.panel-hidden #fab-center,
        body.panel-hidden #fab-traffic {
            bottom: 78px;
        }

        body.panel-hidden.zone-picker-collapsed #control-panel,
        body.panel-hidden #control-panel {
            max-height: min(58%, 62dvh);
        }

        #control-panel::before {
            display: none;
        }

        body.driver-mode #control-panel { max-height: min(60%, 58dvh); }

        #panel-content {
            min-height: 0;
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
            touch-action: pan-y;
        }

        #requests-list {
            padding-bottom: 0.5rem;
        }
        body.driver-mode #client-view,
        body.driver-mode #fare-card,
        body.driver-mode #searching-state { display: none !important; }

        body.driver-mode #client-service-type-wrap,
        body.driver-mode #service-type-picker,
        body.driver-mode #moto-campaign-banner {
            display: none !important;
        }

        body.is-searching #client-service-type-wrap,
        body.trip-active #client-service-type-wrap {
            display: none !important;
        }

        .client-service-type-wrap {
            flex-shrink: 0;
        }
        body.trip-active #control-panel { max-height: min(72%, 70dvh); }
        body.is-searching #control-panel { max-height: min(48%, 45dvh); }

        .trip-request-card {
            padding: 0.9rem;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 1.1rem;
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
        }

        .trip-pay-badge {
            display: inline-block;
            margin-top: 0.15rem;
            padding: 0.15rem 0.45rem;
            font-size: 8px;
            font-weight: 900;
            border-radius: 999px;
            text-transform: uppercase;
        }

        .trip-pay-cash { background: #d1fae5; color: #047857; }
        .trip-pay-saldo { background: #ede9fe; color: #6d28d9; }

        #service-radius-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #2563eb;
            border: 2px solid #fff;
            box-shadow: 0 1px 4px rgba(37, 99, 235, 0.4);
        }

        .radius-chip-active {
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
        }

        .collapsible-panel { transition: max-height 0.35s ease; }

        body.trip-active #nav-hud-bottom { display: none !important; }

        body.trip-active #control-panel.panel-collapsed {
            max-height: min(58dvh, 380px) !important;
            overflow-x: hidden;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        body.trip-active #control-panel.panel-collapsed #trip-expanded-content {
            display: none;
        }

        body.trip-active #control-panel.panel-collapsed .panel-expanded-only {
            display: none !important;
        }

        body.trip-active #control-panel.panel-collapsed .trip-drag-handle {
            display: none;
        }

        body.trip-active #control-panel.panel-collapsed #active-trip-panel {
            height: auto;
            flex: 0 0 auto;
        }

        body.trip-active #control-panel.panel-collapsed #panel-content {
            flex: 0 0 auto;
            min-height: 0;
        }

        body.trip-active #control-panel.panel-collapsed::before {
            margin-bottom: 0.5rem;
            cursor: pointer;
        }

        body.trip-active #control-panel.panel-collapsed #trip-mini-bar {
            margin-bottom: 0.5rem;
            padding-top: 0.25rem;
        }

        body.trip-active #control-panel.panel-collapsed .trip-actions-sticky {
            padding-top: 0;
        }

        body.trip-active.panel-minimized #fab-center,
        body.trip-active.panel-minimized #fab-traffic {
            bottom: min(58dvh, 396px);
        }

        body.trip-active #control-panel {
            z-index: 300;
        }

        body.is-navigating #nav-hud-top {
            top: max(12px, env(safe-area-inset-top, 0px));
        }

        #nearby-drivers-indicator {
            top: max(12px, env(safe-area-inset-top, 0px));
        }

        body.trip-active #nearby-drivers-indicator {
            top: max(52px, calc(env(safe-area-inset-top, 0px) + 40px));
        }
        
        #chat-section { transition: max-height 0.4s ease, opacity 0.3s ease; overflow: hidden; }
        #chat-section.collapsed { max-height: 0; opacity: 0; padding: 0; }

        .pac-container { z-index: 100000 !important; border-radius: 1rem !important; border: none !important; }
        
        @keyframes pulse-blue {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
        }
        .searching-pulse { animation: pulse-blue 2s infinite; }

        .survey-option {
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
            padding: 0.75rem;
            border-radius: 0.75rem;
            border: 1px solid #f1f5f9;
            background: #f8fafc;
            cursor: pointer;
        }
        .survey-option:has(:checked) {
            border-color: #f59e0b;
            background: #fffbeb;
        }
        
        #app-interface, #rating-screen, #cancellation-survey-screen { display: none; }

        #setup-screen:not(.auth-screen-open) {
            display: none !important;
        }

        @media (min-width: 768px) {
            #control-panel {
                left: auto;
                right: 1rem;
                bottom: 1rem;
                width: 380px;
                max-height: calc(100% - 1.25rem);
                border-radius: 1.25rem;
                border: 1px solid #e2e8f0;
            }
            #control-panel::before { display: none; }
        }

        @media (max-width: 767px) {
            body.is-searching #control-panel {
                max-height: min(44%, 42dvh);
            }
            body.is-searching #map-container { opacity: 0.35; }
            body.is-navigating #app-header { display: none !important; }
        }

        .chat-msg { max-width: 85%; padding: 8px 12px; border-radius: 14px; margin-bottom: 8px; font-size: 13px; display: flex; flex-direction: column; }
        .msg-mine { background: #2563eb; color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
        .msg-theirs { background: #f1f5f9; color: #1e293b; align-self: flex-start; border-bottom-left-radius: 2px; }
        
        input { font-size: 16px !important; }

        /* ========== MODO DÍA / NOCHE ========== */
        html[data-theme="light"] {
            color-scheme: light;
        }

        html[data-theme="dark"] {
            color-scheme: dark;
            --dm-bg: #0b1220;
            --dm-surface: #111827;
            --dm-surface-2: #1e293b;
            --dm-surface-3: #334155;
            --dm-text: #f1f5f9;
            --dm-text-muted: #94a3b8;
            --dm-border: #334155;
            --dm-panel: rgba(17, 24, 39, 0.97);
        }

        html[data-theme="dark"] body {
            background-color: var(--dm-bg);
        }

        html[data-theme="dark"] #app-header {
            background: var(--dm-surface) !important;
            border-color: var(--dm-border) !important;
        }

        html[data-theme="dark"] #app-header .text-gray-900,
        html[data-theme="dark"] #user-greeting-display {
            color: var(--dm-text) !important;
        }

        html[data-theme="dark"] #app-header .text-blue-700 {
            color: #60a5fa !important;
        }

        html[data-theme="dark"] #app-header button.bg-blue-50 {
            background: #1e3a5f !important;
            color: #93c5fd !important;
        }

        html[data-theme="dark"] #app-header button.bg-gray-100,
        html[data-theme="dark"] #app-header button.bg-slate-100,
        html[data-theme="dark"] #app-header button.bg-gray-50 {
            background: var(--dm-surface-2) !important;
            color: var(--dm-text-muted) !important;
        }

        html[data-theme="dark"] #app-header button.bg-purple-100 {
            background: #3b0764 !important;
            color: #d8b4fe !important;
        }

        html[data-theme="dark"] #app-header button.bg-emerald-100 {
            background: #064e3b !important;
            color: #6ee7b7 !important;
        }

        html[data-theme="dark"] #app-header button.bg-amber-100 {
            background: #78350f !important;
            color: #fcd34d !important;
        }

        html[data-theme="dark"] .header-more-menu {
            background: var(--dm-surface);
            border-color: var(--dm-border);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
        }

        html[data-theme="dark"] .header-more-item {
            color: var(--dm-text);
        }

        html[data-theme="dark"] .header-more-item:active {
            background: var(--dm-surface-2);
        }

        html[data-theme="dark"] .panel-hide-btn {
            background: #334155;
            color: #cbd5e1;
        }

        html[data-theme="dark"] .control-panel-grab {
            background: #475569;
        }

        html[data-theme="dark"] #control-panel {
            background: var(--dm-panel) !important;
            border-top-color: var(--dm-border) !important;
            box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
        }

        html[data-theme="dark"] #control-panel::before {
            background: var(--dm-surface-3);
        }

        html[data-theme="dark"] #client-view .text-gray-900,
        html[data-theme="dark"] #driver-view .text-gray-900,
        html[data-theme="dark"] #driver-list-title {
            color: var(--dm-text) !important;
        }

        html[data-theme="dark"] #client-view .text-gray-400,
        html[data-theme="dark"] #driver-view .text-gray-500,
        html[data-theme="dark"] #driver-view .text-gray-400 {
            color: var(--dm-text-muted) !important;
        }

        html[data-theme="dark"] #client-view .text-blue-700,
        html[data-theme="dark"] #client-trip-subline {
            color: #60a5fa !important;
        }

        html[data-theme="dark"] .service-type-btn:not(.active) {
            background: var(--dm-surface-2) !important;
            border-color: var(--dm-border) !important;
            color: var(--dm-text-muted) !important;
        }

        html[data-theme="dark"] #delivery-details-panel {
            background: #422006 !important;
            border-color: #92400e !important;
        }

        html[data-theme="dark"] #delivery-details-panel input,
        html[data-theme="dark"] #delivery-details-panel textarea {
            background: var(--dm-surface) !important;
            border-color: #92400e !important;
            color: var(--dm-text) !important;
        }

        html[data-theme="dark"] #service-zone-picker {
            background: var(--dm-surface-2) !important;
            border-color: var(--dm-border) !important;
        }

        html[data-theme="dark"] #service-zone-picker label,
        html[data-theme="dark"] #service-zone-picker p {
            color: var(--dm-text-muted) !important;
        }

        html[data-theme="dark"] #service-zone-picker input,
        html[data-theme="dark"] #service-zone-picker select {
            background: var(--dm-surface) !important;
            border-color: var(--dm-border) !important;
            color: var(--dm-text) !important;
        }

        html[data-theme="dark"] #service-radius-slider {
            background: var(--dm-surface-3) !important;
        }

        html[data-theme="dark"] .service-zone-collapse-title {
            color: var(--dm-text-muted);
        }

        html[data-theme="dark"] .service-zone-summary {
            color: #93c5fd;
        }

        html[data-theme="dark"] .service-zone-map-chip {
            background: var(--dm-surface);
            border-color: var(--dm-border);
            color: var(--dm-text);
        }

        html[data-theme="dark"] .trip-request-card {
            background: var(--dm-surface-2);
            border-color: var(--dm-border);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
        }

        html[data-theme="dark"] .trip-request-card .text-gray-900 {
            color: var(--dm-text) !important;
        }

        html[data-theme="dark"] .trip-request-card .text-gray-600 {
            color: var(--dm-text-muted) !important;
        }

        html[data-theme="dark"] .trip-request-card .bg-gray-100 {
            background: var(--dm-surface) !important;
            color: var(--dm-text-muted) !important;
            border-color: var(--dm-border) !important;
        }

        html[data-theme="dark"] #nearby-drivers-indicator,
        html[data-theme="dark"] #eta-indicator {
            background: var(--dm-surface) !important;
            border-color: var(--dm-border) !important;
        }

        html[data-theme="dark"] #eta-text {
            color: var(--dm-text) !important;
        }

        html[data-theme="dark"] #searching-state .text-gray-800,
        html[data-theme="dark"] #searching-state .text-gray-500 {
            color: var(--dm-text-muted) !important;
        }

        html[data-theme="dark"] #searching-trip-summary,
        html[data-theme="dark"] #trip-viewers-panel,
        html[data-theme="dark"] #client-driver-busy-notice {
            filter: brightness(0.92);
        }

        html[data-theme="dark"] #active-trip-panel .bg-white,
        html[data-theme="dark"] #active-trip-panel .bg-gray-50,
        html[data-theme="dark"] #trip-partner-info {
            background: var(--dm-surface-2) !important;
            border-color: var(--dm-border) !important;
        }

        html[data-theme="dark"] #active-trip-panel .text-gray-900,
        html[data-theme="dark"] #active-trip-panel .text-gray-600,
        html[data-theme="dark"] #active-trip-panel .text-gray-500,
        html[data-theme="dark"] #active-trip-panel .text-gray-400 {
            color: var(--dm-text-muted) !important;
        }

        html[data-theme="dark"] #active-trip-panel .bg-blue-50 {
            background: #1e3a5f !important;
            border-color: #1d4ed8 !important;
        }

        html[data-theme="dark"] .nav-fab {
            background: var(--dm-surface-2);
            color: var(--dm-text);
            border-color: var(--dm-border);
        }

        html[data-theme="dark"] #nav-hud-bottom {
            background: var(--dm-surface);
            color: var(--dm-text);
        }

        html[data-theme="dark"] #profile-manage-panel > div {
            background: var(--dm-surface) !important;
            color: var(--dm-text);
        }

        html[data-theme="dark"] #profile-manage-panel .text-gray-900 {
            color: var(--dm-text) !important;
        }

        html[data-theme="dark"] #profile-manage-panel .text-gray-500,
        html[data-theme="dark"] #profile-manage-panel .text-gray-400 {
            color: var(--dm-text-muted) !important;
        }

        html[data-theme="dark"] #profile-manage-panel input,
        html[data-theme="dark"] #profile-manage-panel select,
        html[data-theme="dark"] #profile-manage-panel textarea {
            background: var(--dm-surface-2) !important;
            border-color: var(--dm-border) !important;
            color: var(--dm-text) !important;
        }

        html[data-theme="dark"] #profile-manage-panel .bg-gray-50,
        html[data-theme="dark"] #profile-manage-panel .bg-emerald-50,
        html[data-theme="dark"] #profile-manage-panel .bg-purple-50,
        html[data-theme="dark"] #profile-manage-panel .bg-blue-50,
        html[data-theme="dark"] #profile-manage-panel .bg-amber-50,
        html[data-theme="dark"] #profile-manage-panel .bg-slate-50 {
            filter: brightness(0.85);
        }

        html[data-theme="dark"] #profile-manage-panel button.border-gray-200,
        html[data-theme="dark"] #profile-manage-panel button.border-slate-200 {
            border-color: var(--dm-border) !important;
            color: var(--dm-text) !important;
        }

        html[data-theme="dark"] .login-card {
            background: var(--dm-surface) !important;
            color: var(--dm-text);
        }

        html[data-theme="dark"] .login-card .bg-gray-100 {
            background: var(--dm-surface-2) !important;
        }

        html[data-theme="dark"] .login-card .text-gray-400,
        html[data-theme="dark"] .login-card .text-gray-500 {
            color: var(--dm-text-muted) !important;
        }

        html[data-theme="dark"] .login-card input {
            background: var(--dm-surface-2) !important;
            border-color: var(--dm-border) !important;
            color: var(--dm-text) !important;
        }

        html[data-theme="dark"] .setup-step {
            background: var(--dm-surface) !important;
            border-color: var(--dm-border) !important;
            color: var(--dm-text);
        }

        html[data-theme="dark"] .setup-input,
        html[data-theme="dark"] #setup-screen input,
        html[data-theme="dark"] #setup-screen select {
            background: var(--dm-surface-2) !important;
            border-color: var(--dm-border) !important;
            color: var(--dm-text) !important;
        }

        html[data-theme="dark"] #setup-screen .text-gray-900 {
            color: var(--dm-text) !important;
        }

        html[data-theme="dark"] #theme-toggle-btn[data-theme-toggle] {
            background: var(--dm-surface-2) !important;
            color: #fbbf24 !important;
        }

        html[data-theme="dark"] .msg-theirs {
            background: var(--dm-surface-2);
            color: var(--dm-text);
        }

        html[data-theme="dark"] .survey-option {
            background: var(--dm-surface-2);
            border-color: var(--dm-border);
            color: var(--dm-text);
        }

        @media (min-width: 768px) {
            html[data-theme="dark"] #control-panel {
                border-color: var(--dm-border) !important;
            }
        }

        /* — Empresa SOZIN: aviso de derechos reservados — */
        .sozin-copyright {
            text-align: center;
            line-height: 1.35;
            user-select: none;
        }

        .sozin-copyright__owner {
            font-size: 0.65rem;
            font-weight: 900;
            letter-spacing: 0.14em;
            text-transform: uppercase;
        }

        .sozin-copyright__text {
            margin-top: 0.2rem;
            font-size: 0.58rem;
            font-weight: 600;
        }

        .sozin-copyright__app {
            margin-top: 0.15rem;
            font-size: 0.52rem;
            font-weight: 600;
        }

        .sozin-copyright--compact .sozin-copyright__line {
            font-size: 0.52rem;
            font-weight: 600;
            line-height: 1.4;
        }

        .sozin-copyright--compact .sozin-copyright__owner {
            font-size: inherit;
            letter-spacing: 0.08em;
        }

        html[data-theme="dark"] .sozin-copyright__owner {
            color: var(--dm-text) !important;
        }

        html[data-theme="dark"] .sozin-copyright__text,
        html[data-theme="dark"] .sozin-copyright--compact .sozin-copyright__line {
            color: var(--dm-text-muted) !important;
        }

        html[data-theme="dark"] .sozin-copyright__app {
            color: var(--dm-text-muted) !important;
            opacity: 0.85;
        }

        /* — Pantallas pequeñas: que todo quepa sin amontonarse — */
        @media (max-width: 639px) {
            #login-screen > [data-sozin-copyright="on-gradient"] {
                display: none;
            }

            #control-panel {
                padding: 0.3rem 0.85rem 1rem;
                max-height: min(58%, 56dvh);
            }

            body.driver-mode #control-panel {
                max-height: min(56%, 54dvh);
            }

            body.trip-active #control-panel {
                max-height: min(68%, 64dvh);
            }

            body.is-searching #control-panel {
                max-height: min(44%, 40dvh);
            }

            #panel-content {
                padding-bottom: 0.25rem;
            }

            #service-zone-picker {
                margin-bottom: 0.65rem !important;
            }

            #service-zone-picker .service-zone-body {
                padding-left: 0.75rem !important;
                padding-right: 0.75rem !important;
            }

            .favorite-chip {
                font-size: 0.62rem;
                padding: 0.35rem 0.55rem;
            }

            .service-type-btn {
                min-height: 3rem;
                padding-top: 0.5rem;
                padding-bottom: 0.5rem;
                font-size: 0.62rem;
            }

            .service-type-btn i {
                font-size: 1rem;
            }

            #fare-card {
                padding: 1rem !important;
            }

            #fare-card .text-3xl {
                font-size: 1.65rem;
                line-height: 1.1;
            }

            #fab-center,
            #fab-traffic {
                bottom: min(46dvh, 280px);
            }

            body.trip-active.panel-minimized #fab-center,
            body.trip-active.panel-minimized #fab-traffic {
                bottom: min(52dvh, 320px);
            }
        }

        @media (max-width: 400px) {
            .header-map-logo {
                max-height: 1.9rem;
                max-width: 4.75rem;
            }

            .header-brand-fallback {
                font-size: 0.85rem;
            }

            .login-brand-tagline {
                display: none;
            }

            .login-role-hint,
            #login-role-hint {
                font-size: 0.58rem;
                margin-bottom: 0.65rem;
            }

            .role-btn {
                padding-top: 0.55rem;
                padding-bottom: 0.55rem;
                font-size: 0.62rem;
            }

            #my-referral-code {
                font-size: 1.65rem;
            }
        }

        @media (max-width: 360px) {
            .login-logo-wrap {
                width: 4.25rem;
                height: 4.25rem;
                margin-bottom: 0.4rem;
            }

            .login-brand-title {
                font-size: 1.35rem;
            }

            .login-card {
                padding-top: 1rem !important;
                padding-left: 1rem !important;
                padding-right: 1rem !important;
            }

            #client-trip-headline {
                font-size: 0.95rem;
            }

            #trip-options-panel label span {
                font-size: 0.58rem;
                line-height: 1.25;
            }

            #control-panel {
                max-height: min(50%, 48dvh);
            }
        }

        @media (max-width: 380px) and (max-height: 700px) {
            .login-hero {
                padding-top: 0.55rem;
                padding-bottom: 0.35rem;
            }

            .login-card {
                padding-top: 0.85rem !important;
            }
        }

        /* Ride options (Moto/Auto/Envío) - Uber style after locations */
        #ride-options {
            margin-top: 0.75rem;
        }

        .ride-card {
            min-height: 58px;
            transition: all 0.1s ease;
        }

        .ride-card .price-value {
            font-weight: 900;
            letter-spacing: -0.01em;
        }

        /* Light mode defaults (already mostly covered by bg-white etc) */

        /* Dark mode improvements for visibility */
        html[data-theme="dark"] .ride-card {
            background-color: #1e2937 !important;
            border-color: #334155 !important;
            color: #f1f5f9;
        }

        html[data-theme="dark"] .ride-card:hover {
            border-color: #475569 !important;
            background-color: #334155 !important;
        }

        html[data-theme="dark"] .ride-card.border-blue-600,
        html[data-theme="dark"] .ride-card.border-violet-600 {
            background-color: #1e3a5f !important;
            border-color: #3b82f6 !important;
        }

        html[data-theme="dark"] .ride-card .price-value {
            color: #f8fafc !important;
        }

        html[data-theme="dark"] .ride-card .text-gray-500,
        html[data-theme="dark"] .ride-card .text-gray-400 {
            color: #94a3b8 !important;
        }

        html[data-theme="dark"] .ride-card .bg-violet-100,
        html[data-theme="dark"] .ride-card .bg-blue-100,
        html[data-theme="dark"] .ride-card .bg-amber-100 {
            filter: brightness(0.85);
        }

        /* Better mobile touch and spacing */
        @media (max-width: 420px) {
            .ride-card {
                padding: 0.6rem 0.75rem;
                min-height: 54px;
                gap: 0.6rem;
            }

            .ride-card .w-10 {
                width: 2.25rem;
                height: 2.25rem;
            }

            .ride-card .text-sm {
                font-size: 0.8rem;
            }

            .ride-card .text-\[10px\] {
                font-size: 0.65rem;
            }
        }

        /* Ensure prices visible in all contexts */
        .ride-card .price-value {
            white-space: nowrap;
        }