/* Use light mode variables for Step 2 as it's a white background flow */
        .vehicle-card {
            transition: all 0 cubic-bezier(0.16, 1, 0.3, 1);
        }

        .vehicle-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
            border-color: #000;
        }

        .vehicle-card.selected-vehicle {
            border-color: #d4af37 !important;
            border-width: 2px !important;
            box-shadow: 0 0 20px rgba(212, 175, 55, 0.2) !important;
            background-color: #fff9e6 !important;
        }

        .vehicle-card:hover .vehicle-sticker-hover,
        .selected-vehicle .vehicle-sticker-hover {
            transform: scale(1.22);
            filter: brightness(1.05);
            z-index: 50;
        }

        .contact-shadow {
            position: absolute;
            bottom: 2px;
            /* Ajustado para ficar na base real */
            left: 50%;
            transform: translateX(-50%);
            width: 80%;
            height: 10px;
            background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 85%);
            border-radius: 50%;
            filter: blur(4px);
            z-index: 1;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }

        .vehicle-card:hover .contact-shadow,
        .selected-vehicle .contact-shadow {
            width: 90%;
            height: 12px;
            background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 80%);
            bottom: -5px;
            /* Sombra move-se ligeiramente para baixo no zoom */
            filter: blur(8px);
            opacity: 0.8;
        }

        /* Container helper para evitar cortes */
        .vehicle-card .relative {
            overflow: visible !important;
        }

        .selected-badge {
            display: none;
            position: absolute;
            top: 8px;
            right: 8px;
            background: #d4af37;
            color: white;
            padding: 2px 8px;
            border-radius: 20px;
            font-size: 8px;
            font-weight: 800;
            letter-spacing: 0.05em;
            box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
            z-index: 10;
        }

        @media (max-width: 640px) {
            .selected-badge {
                top: auto !important;
                right: auto !important;
                bottom: 12px !important;
                left: 12px !important;
                padding: 4px 10px;
                font-size: 9px;
            }
        }

        .selected-vehicle .selected-badge {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        @keyframes bounce {
            from {
                transform: translateY(0);
                opacity: 0.5;
            }

            to {
                transform: translateY(-6px);
                opacity: 1;
            }
        }

        @keyframes shimmer {
            0% {
                background-position: -400px 0;
            }

            100% {
                background-position: 400px 0;
            }
        }

        .price-skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 800px 100%;
            animation: shimmer 1.2s infinite linear;
            border-radius: 6px;
        }

        /* Mobile Drawer Styles */
        #mobile-booking-drawer {
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 51;
        }

        #mobile-booking-drawer.open {
            transform: translateY(0);
        }

        #mobile-booking-drawer.closed {
            transform: translateY(100%);
        }

        #drawer-backdrop {
            transition: opacity 0.3s ease;
        }

        #drawer-backdrop.active {
            opacity: 1;
            pointer-events: auto;
        }

        @keyframes pulse-text {

            0%,
            100% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.1);
                opacity: 0.8;
                text-shadow: 0 0 8px rgba(22, 163, 74, 0.3);
            }
        }

        .animate-pulse-slow {
            display: inline-block;
            transform-origin: left center;
            animation: pulse-text 2.5s infinite ease-in-out;
        }

        /* Border Beam Animation */
        .badge-beam {
            position: relative;
            z-index: 1;
            overflow: hidden !important;
            border: none !important;
        }

        .badge-beam::before {
            content: '';
            position: absolute;
            inset: -200%;
            z-index: -2;
            background: conic-gradient(from 0deg, transparent, #16a34a, transparent 20%);
            animation: rotate-beam 3s linear infinite;
        }

        .badge-beam-red::before {
            background: conic-gradient(from 0deg, transparent, #ef4444, transparent 20%);
        }

        .badge-beam-gold::before {
            background: conic-gradient(from 0deg, transparent, #fbbf24, transparent 20%);
        }

        .badge-beam::after {
            content: '';
            position: absolute;
            inset: 1px;
            z-index: -1;
            background: white;
            border-radius: inherit;
        }

        .badge-beam-red::after {
            background: #fef2f2;
            /* red-50 */
        }

        .badge-beam-gold::after {
            background: #111827;
            /* gray-900 */
        }

        @keyframes rotate-beam {
            100% {
                transform: rotate(1turn);
            }
        }

        /* Edit Route Modal Overlay */
        #edit-route-modal {
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
        }

        .pac-container {
            z-index: 10000 !important;
            font-family: 'Inter', sans-serif;
            border-radius: 8px;
            margin-top: 4px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }

        /* Help Icon Life & Tooltip Styles */
        .help-icon-animate {
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer;
        }

        .help-icon-animate:hover {
            color: #d4af37 !important;
            transform: scale(1.2);
            filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
        }

        @keyframes pulse-gold {
            0% {
                box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.2);
            }

            70% {
                box-shadow: 0 0 0 6px rgba(212, 175, 55, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
            }
        }

        .pulse-once {
            animation: pulse-gold 2s infinite;
            border-radius: 9999px;
        }

        #altus-tooltip {
            position: fixed;
            z-index: 10000;
            background: #000;
            color: #fff;
            padding: 10px 16px;
            border-radius: 12px;
            font-size: 13px;
            line-height: 1.4;
            max-width: 240px;
            pointer-events: none;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid rgba(212, 175, 55, 0.3);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
        }

        #altus-tooltip.visible {
            opacity: 1;
            transform: translateY(0);
        }

        #altus-tooltip::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-top: 5px solid #000;
        }

        /* Stripe Checkout Modal */
        #checkout-modal {
            position: fixed;
            inset: 0;
            z-index: 99999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            padding: 20px;
            background: rgba(0, 0, 0, 0.8);
        }

        #checkout-modal.open {
            display: flex;
        }

        #checkout-container-inner {
            background: #fff;
            width: 100%;
            max-width: 600px;
            max-height: 90vh;
            border-radius: 20px;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        #checkout-loader {
            position: absolute;
            inset: 0;
            background: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }

        .hidden-loader {
            display: none !important;
        }

        /* Redesigned Native Settings Modal */
        #native-lang-menu {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .settings-sheet {
            background: rgba(15, 15, 15, 0.85) !important;
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid rgba(212, 175, 55, 0.2) !important;
            border-radius: 28px !important;
            width: 100%;
            max-width: 320px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(212, 175, 55, 0.1);
        }

        .settings-header {
            padding: 20px 20px 10px;
            text-align: center;
        }

        .settings-section-title {
            color: #d4af37;
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.25em;
            margin-bottom: 12px;
            opacity: 0.9;
        }

        .settings-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            padding: 0 16px 16px;
        }

        .settings-option {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            padding: 12px 8px;
            color: #9ca3af;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .settings-option.active {
            background: rgba(212, 175, 55, 0.1);
            border-color: rgba(212, 175, 55, 0.4);
            color: #d4af37;
            box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
        }

        .settings-option:active {
            transform: scale(0.96);
        }

        /* --- NATIVE QUICK ROUTES --- */
        #native-quick-routes-container {
            scrollbar-width: none;
            -ms-overflow-style: none;
            -webkit-overflow-scrolling: touch;
            overflow-x: auto;
            width: 100%;
            display: flex;
            gap: 12px;
            padding: 2px 4px 12px 4px;
            cursor: grab;
            scroll-behavior: auto;
        }

        #native-quick-routes-container:active {
            cursor: grabbing;
        }

        #native-quick-routes-container::-webkit-scrollbar {
            display: none;
        }

        .native-route-pill {
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #ffffff;
            border: 1px solid #f3f4f6;
            color: #111827;
            /* Darker text for more contrast */
            padding: 7px 14px;
            border-radius: 99px;
            font-size: 10px;
            font-weight: 700;
            white-space: nowrap;
            transition: all 0.2s;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
        }

        .native-route-pill:active {
            transform: scale(0.95);
            background: rgba(212, 175, 55, 0.1);
            border-color: #d4af37;
            color: #d4af37;
        }

        .settings-save-footer {
            padding: 16px;
            border-top: 1px solid rgba(212, 175, 55, 0.1);
            background: rgba(0, 0, 0, 0.2);
        }

        .btn-save-settings {
            width: 100%;
            background: #d4af37;
            color: #000;
            padding: 14px;
            border-radius: 16px;
            font-size: 13px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
        }

        .btn-save-settings:hover {
            transform: translateY(-2px);
            background: #edc54a;
        }

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

        .btn-save-settings:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none !important;
        }

        .spinner-settings {
            width: 16px;
            height: 16px;
            border: 2px solid rgba(0, 0, 0, 0.2);
            border-top-color: #000;
            border-radius: 50%;
            animation: spin-settings 0.8s linear infinite;
        }

        @keyframes spin-settings {
            to {
                transform: rotate(360deg);
            }
        }

        /* Region Specific Backgrounds for Native App Home */
        #native-app-home {
            background-size: 100% auto;
            background-position: top center;
            background-repeat: no-repeat;
            background-color: #000;
            transition: background-image 0.5s ease-in-out;
        }

        .region-ch #native-app-home {
            background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 1) 100%), url('/imagens/caralpes.webp');
        }

        .region-pt #native-app-home {
            background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 1) 100%), url('/imagens/lisbonmobilept.webp');
        }

        /* Enhanced Contrast Classes */
        .label-micro {
            color: #111827 !important;
            font-weight: 800 !important;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-size: 10px;
            margin-bottom: 4px;
            display: block;
        }

        #native-t-h1 {
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
            font-weight: 600;
        }

        #native-t-p {
            text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
            font-weight: 500;
        }

        .input-cockpit {
            color: #000000 !important;
            font-weight: 500;
        }

        /* Logo Brilliance */
        .logo-brilliant-gold {
            background: linear-gradient(135deg, #f7da8b 0%, #d4af37 45%, #f7da8b 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: drop-shadow(0 0 1px rgba(212, 175, 55, 0.2));
            display: inline-block;
        }

        .logo-transfers-black {
            color: #000000 !important;
            text-shadow: 0 0 1px rgba(255, 255, 255, 0.5), 0 0 5px rgba(255, 255, 255, 0.2);
            font-weight: 800;
        }

        /* Logic for Global region: White logo text against dark background */
        .region-global .logo-transfers-black {
            color: #ffffff !important;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        :root {
            --safe-area-inset-top: env(safe-area-inset-top, 0px);
        }

        /* Default website padding (no gap in localhost) */
        body {
            padding-top: 0;
        }

        /* Only apply extra padding when running as a native app with a notch */
        .is-native body {
            padding-top: var(--safe-area-inset-top) !important;
        }

        .is-native nav {
            padding-top: var(--safe-area-inset-top) !important;
        }