/* Google Fonts carregadas via <link> em includes/header.php (sem @import duplicado) */

/* ==========================================================================
   CARONA.ONLINE - CYBERPUNK 2077 DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Cyberpunk Core Palette */
    --bg-cyber-dark: #0a0b10;
    --bg-cyber-card: #121526;
    --bg-cyber-surface: #181b30;
    --bg-cyber-hover: #212642;

    /* Neon Accents */
    --neon-cyan: #00f3ff;
    --neon-purple: #9d00ff;
    --neon-green: #00ff66;
    --neon-amber: #ffb800;
    --neon-danger: #ff0055;

    /* Glassmorphism Variables */
    --glass-bg: rgba(18, 21, 38, 0.72);
    --glass-bg-heavy: rgba(10, 11, 16, 0.88);
    --glass-border: rgba(0, 243, 255, 0.18);
    --glass-border-purple: rgba(157, 0, 255, 0.25);
    --glass-glow-cyan: 0 0 25px rgba(0, 243, 255, 0.15);
    --glass-glow-purple: 0 0 25px rgba(157, 0, 255, 0.2);
    --glass-glow-green: 0 0 20px rgba(0, 255, 102, 0.2);

    /* Typography */
    --font-cyber: 'Rajdhani', 'Orbitron', 'Inter', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

/* Base Body & Reset */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-cyber-dark) !important;
    color: #e2e8f0;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ambient Cyberpunk Glow Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 15% 10%, rgba(0, 243, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(157, 0, 255, 0.09) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(0, 255, 102, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Esconder Scrollbar Customizada */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-track {
    background: rgba(10, 11, 16, 0.6);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
}

.pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 24px);
}

/* ==========================================================================
   GLASSMORPHISM & CYBER UTILITIES
   ========================================================================== */

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-glow-cyan);
}

.glass-card {
    background: linear-gradient(135deg, rgba(24, 27, 48, 0.75) 0%, rgba(18, 21, 38, 0.85) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 243, 255, 0.16);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 1.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 12px 36px 0 rgba(0, 243, 255, 0.15);
    transform: translateY(-2px);
}

.glass-card-purple {
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.75) 0%, rgba(18, 21, 38, 0.85) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border-purple);
    box-shadow: var(--glass-glow-purple);
    border-radius: 1.75rem;
}

.glass-input {
    background: rgba(14, 17, 30, 0.8) !important;
    border: 1px solid rgba(0, 243, 255, 0.2) !important;
    color: #ffffff !important;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.glass-input:focus {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3) !important;
    outline: none !important;
}

.glass-input::placeholder {
    color: #64748b;
}

/* Cyberpunk Search Input & Bar Icons */
.search-icon-cyber,
#search-query ~ i,
.relative:has(#search-query) > i,
#view-container .bi-search {
    color: #00f3ff !important;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.8) !important;
    filter: drop-shadow(0 0 6px rgba(0, 243, 255, 0.7)) !important;
    z-index: 1 !important;
}

/* Garante que qualquer ícone, prefixo de moeda ou botão dentro de inputs fique sempre sobre o efeito de vidro/blur */
.relative > i.absolute,
.relative > span.absolute,
.relative > button.absolute,
.input-icon-adornment {
    z-index: 2 !important;
}

/* Neon Glows & Borders */
.glow-cyan {
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.45);
}
.glow-purple {
    box-shadow: 0 0 15px rgba(157, 0, 255, 0.45);
}
.glow-green {
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.45);
}

.text-neon-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.6);
}
.text-neon-purple {
    color: var(--neon-purple);
    text-shadow: 0 0 8px rgba(157, 0, 255, 0.6);
}
.text-neon-green {
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.6);
}

/* ==========================================================================
   AVATARES HOLOGRÁFICOS & AURAS DE STATUS
   ========================================================================== */

.avatar-hologram {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50%;
    padding: 3px;
    background: transparent;
    transition: transform 0.3s ease;
}

.avatar-hologram img {
    border-radius: 50%;
    display: block;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
    max-width: none;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* Scanlines Holográficas Sobrepostas */
.avatar-hologram::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 243, 255, 0.12),
        rgba(0, 243, 255, 0.12) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 3;
    opacity: 0.6;
}

/* Anel Holográfico Luminoso */
.avatar-hologram::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--neon-cyan), var(--neon-purple), var(--neon-green), var(--neon-cyan));
    animation: rotateHoloRing 4s linear infinite;
    z-index: 1;
    opacity: 0.8;
}

@keyframes rotateHoloRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Estado de Upload Ativo do Avatar */
.avatar-hologram.avatar-uploading::before {
    animation: rotateHoloRing 0.7s linear infinite !important;
    background: conic-gradient(from 0deg, var(--neon-cyan), #ffffff, var(--neon-green), var(--neon-cyan)) !important;
    opacity: 1 !important;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.9);
}

.avatar-hologram.avatar-uploading img {
    filter: brightness(0.75) blur(1px);
    transition: filter 0.2s ease;
}

/* Status Aura: Oferecendo Carona (Driver - Neon Green & Cyan Pulse) */
.status-offering {
    position: relative;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}
.status-offering .avatar-hologram::before {
    background: conic-gradient(from 0deg, var(--neon-green), var(--neon-cyan), var(--neon-green));
}
.status-offering::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--neon-green);
    animation: auraPulseGreen 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes auraPulseGreen {
    0% {
        transform: scale(0.95);
        opacity: 0.9;
        box-shadow: 0 0 0 0 rgba(0, 255, 102, 0.7);
    }
    70% {
        transform: scale(1.18);
        opacity: 0;
        box-shadow: 0 0 20px 10px rgba(0, 255, 102, 0);
    }
    100% {
        transform: scale(1.22);
        opacity: 0;
    }
}

/* Status Aura: Procurando Carona (Passenger - Neon Purple Pulse) */
.status-searching {
    position: relative;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}
.status-searching .avatar-hologram::before {
    background: conic-gradient(from 0deg, var(--neon-purple), #e000ff, var(--neon-purple));
}
.status-searching::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--neon-purple);
    animation: auraPulsePurple 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes auraPulsePurple {
    0% {
        transform: scale(0.95);
        opacity: 0.9;
        box-shadow: 0 0 0 0 rgba(157, 0, 255, 0.7);
    }
    70% {
        transform: scale(1.18);
        opacity: 0;
        box-shadow: 0 0 20px 10px rgba(157, 0, 255, 0);
    }
    100% {
        transform: scale(1.22);
        opacity: 0;
    }
}

/* Status Aura: Offline (Gray/Dim) */
.status-offline {
    position: relative;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}
.status-offline .avatar-hologram::before {
    background: #334155;
    animation: none;
    opacity: 0.5;
}
.status-offline .avatar-hologram img {
    filter: grayscale(0.6);
}

/* Badge Holográfico Hexagonal / Pílula */
.badge-holo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.badge-holo-cyan {
    background: rgba(0, 243, 255, 0.12);
    color: var(--neon-cyan);
    border-color: rgba(0, 243, 255, 0.35);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}
.badge-holo-purple {
    background: rgba(157, 0, 255, 0.15);
    color: #d8b4fe;
    border-color: rgba(157, 0, 255, 0.4);
    box-shadow: 0 0 10px rgba(157, 0, 255, 0.2);
}
.badge-holo-green {
    background: rgba(0, 255, 102, 0.12);
    color: var(--neon-green);
    border-color: rgba(0, 255, 102, 0.35);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
}

/* ==========================================================================
   MICRO-ANIMAÇÕES & TACTILE PULSE
   ========================================================================== */

.btn-cyber-pulse {
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cyber-pulse:active {
    transform: scale(0.96);
}

.btn-cyber-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-out, height 0.4s ease-out;
}

.btn-cyber-pulse:active::before {
    width: 250%;
    height: 250%;
}

.btn-cyber-primary {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    box-shadow: 0 4px 20px rgba(0, 114, 255, 0.35);
    border: 1px solid rgba(0, 243, 255, 0.4);
    color: #ffffff;
    font-weight: 800;
}
.btn-cyber-primary:hover {
    box-shadow: 0 6px 28px rgba(0, 243, 255, 0.5);
    transform: translateY(-1px);
}

.btn-cyber-neon {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, #0099ff 100%);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.45);
    color: #0a0b10;
    font-weight: 900;
    border: none;
}
.btn-cyber-neon:hover {
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.7);
}

/* ==========================================================================
   CONTAINER DO MAPBOX GL JS & THREE.JS 3D
   ========================================================================== */

#cyber-map-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid rgba(0, 243, 255, 0.25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 243, 255, 0.15);
    margin-bottom: 1.5rem;
    background: #0d111a;
    transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Modo Imersivo Expandido (100% Full-Screen Real) */
#cyber-map-wrapper.expanded {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 50 !important;
}

/* Bottom Sheet Container para Lista de Caronas */
.rides-sheet-container {
    position: relative;
    width: 100%;
}

.rides-sheet-container.sheet-mode {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    background: rgba(10, 11, 16, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(0, 243, 255, 0.4);
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 243, 255, 0.2);
    border-radius: 2rem 2rem 0 0;
    max-width: 32rem;
    margin: 0 auto;
    padding: 0.75rem 1rem 5.5rem;
    max-height: 78vh;
    overflow-y: auto;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(calc(100% - 68px)); /* Peek preview */
}

.rides-sheet-container.sheet-mode.sheet-open {
    transform: translateY(0);
}

.sheet-handle-wrapper {
    cursor: pointer;
    user-select: none;
    padding-bottom: 0.5rem;
}

.sheet-drag-handle {
    width: 44px;
    height: 4px;
    background: rgba(0, 243, 255, 0.6);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.8);
    border-radius: 9999px;
    margin: 0 auto 0.5rem;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.sheet-handle-wrapper:hover .sheet-drag-handle {
    width: 56px;
    background: var(--neon-cyan);
}

/* Top Overlay Header do Mapa (Zero Sobreposição de Badges com Botão Fechar) */
#map-top-overlay {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

#cyber-map-wrapper.expanded #map-top-overlay {
    position: fixed;
    top: calc(0.75rem + env(safe-area-inset-top, 0px));
    left: calc(0.75rem + env(safe-area-inset-left, 0px));
    right: calc(0.75rem + env(safe-area-inset-right, 0px));
    width: auto;
    max-width: 100vw;
    box-sizing: border-box;
    z-index: 70;
}

#floating-collapse-btn-wrapper {
    pointer-events: auto;
    flex-shrink: 0;
    margin-left: auto;
    animation: fadeInRightBtn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInRightBtn {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Botões de Zoom Discretos no Modo Tela Cheia */
.map-zoom-pill {
    display: flex;
    flex-direction: column;
    background: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 243, 255, 0.35);
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 243, 255, 0.2);
    overflow: hidden;
}

.map-zoom-btn {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
}

.map-zoom-btn:hover {
    background: rgba(0, 243, 255, 0.2);
}

.map-zoom-btn:active {
    transform: scale(0.9);
}

.map-zoom-divider {
    height: 1px;
    background: rgba(0, 243, 255, 0.2);
    width: 70%;
    margin: 0 auto;
}

/* Controles Flutuantes do Mapa (Centralizar e Expandir) */
#map-floating-controls {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
    transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease;
}

/* No Modo Tela Cheia: Posicionado confortavelmente acima da barra inferior de navegação (80px / 5rem) em coluna vertical */
#cyber-map-wrapper.expanded #map-floating-controls {
    position: fixed;
    bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
    right: 1.25rem;
    z-index: 70;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* Quando o mini-card de prévia estiver ativo no modo tela cheia, sobe os controles suavemente */
#cyber-map-wrapper.expanded.has-preview #map-floating-controls {
    bottom: calc(18.5rem + env(safe-area-inset-bottom, 0px));
}

/* Mini-Card Flutuante de Carona Selecionada no Mapa Expandido */
#expanded-ride-preview {
    position: fixed;
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    left: 1rem;
    right: 1rem;
    max-width: 30rem;
    margin: 0 auto;
    z-index: 60;
    animation: fadeInUpPreview 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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


#cyber-map {
    width: 100%;
    height: 100%;
}

#three-canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Mapbox Dark Theme Overrides */
.mapboxgl-ctrl-bottom-left, .mapboxgl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right {
    opacity: 0.6;
    filter: invert(1) hue-rotate(180deg);
}

.mapboxgl-popup, .maplibregl-popup {
    z-index: 65 !important;
}

.mapboxgl-popup-content, .maplibregl-popup-content {
    background: rgba(10, 11, 16, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 243, 255, 0.5) !important;
    border-radius: 1.25rem !important;
    color: #ffffff !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 243, 255, 0.3) !important;
    padding: 14px !important;
    position: relative !important;
    z-index: 65 !important;
}

.mapboxgl-popup-tip, .maplibregl-popup-tip {
    border-top-color: rgba(10, 11, 16, 0.96) !important;
    border-bottom-color: rgba(10, 11, 16, 0.96) !important;
    z-index: 65 !important;
}

.mapboxgl-popup-close-button, .maplibregl-popup-close-button {
    color: #94a3b8 !important;
    padding: 6px 10px !important;
    font-size: 16px !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 66 !important;
}
.mapboxgl-popup-close-button:hover, .maplibregl-popup-close-button:hover {
    color: var(--neon-cyan) !important;
}

/* Marcador Holográfico no Mapa */
.mapboxgl-marker, .maplibregl-marker {
    z-index: 10 !important;
}
.mapboxgl-marker:hover, .maplibregl-marker:hover {
    z-index: 20 !important;
}
.map-holo-marker {
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 10;
}
.map-holo-marker:hover {
    transform: scale(1.15);
    z-index: 20;
}

/* Marcador de Agrupamento (Cluster) Holográfico */
.map-holo-cluster {
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    z-index: 10;
}
.map-holo-cluster:hover {
    transform: scale(1.15);
    z-index: 20;
}
.map-holo-cluster-badge {
    background: rgba(10, 11, 16, 0.92);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 16px rgba(0, 243, 255, 0.7), inset 0 0 8px rgba(0, 243, 255, 0.3);
    border-radius: 9999px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--neon-cyan);
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* ==========================================================================
   SWEETALERT2 & MODAL CYBERPUNK DESIGN SYSTEM
   ========================================================================== */

/* Container Backdrop com Glassmorphism */
.swal2-container {
    background: rgba(10, 11, 16, 0.78) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
}

/* Popup Cyberpunk */
.swal2-popup,
.swal2-popup.cyber-swal {
    pointer-events: auto !important;
    background: rgba(10, 11, 16, 0.94) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(0, 243, 255, 0.35) !important;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.22), 0 25px 70px rgba(0, 0, 0, 0.88), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    color: #e2e8f0 !important;
    padding: 26px 22px !important;
    font-family: inherit !important;
}

/* Título com Glow Sutil */
.swal2-title {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-shadow: 0 0 14px rgba(0, 243, 255, 0.45) !important;
    margin-bottom: 8px !important;
}

/* Conteúdo e Tipografia */
.swal2-html-container,
.swal2-content {
    color: #cbd5e1 !important;
    font-size: 0.925rem !important;
    line-height: 1.55 !important;
    margin: 12px 0 18px 0 !important;
}

/* Headings e títulos internos no corpo do modal/alerta (Garante legibilidade total) */
.swal2-html-container h1,
.swal2-html-container h2,
.swal2-html-container h3,
.swal2-html-container h4,
.swal2-html-container h5,
.swal2-html-container h6 {
    color: #ffffff !important;
    font-family: var(--font-cyber), 'Rajdhani', -apple-system, sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em !important;
    text-shadow: 0 0 12px rgba(0, 243, 255, 0.45) !important;
}

.swal2-html-container .text-gray-900,
.swal2-html-container .text-gray-800,
.swal2-html-container .text-gray-700,
.swal2-html-container .text-gray-600 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3) !important;
}

.swal2-html-container .text-gray-500,
.swal2-html-container .text-gray-400 {
    color: #94a3b8 !important;
}

/* Ações e Botões */
.swal2-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 18px !important;
    width: 100% !important;
}

/* Botão Confirmar (Neon Cyan / Blue Gradient) */
.swal2-confirm {
    background: linear-gradient(135deg, #00f3ff, #0088ff) !important;
    color: #0a0b10 !important;
    font-weight: 800 !important;
    font-size: 0.825rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: 14px !important;
    padding: 12px 26px !important;
    border: none !important;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.45) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.swal2-confirm:hover {
    filter: brightness(1.15) !important;
    box-shadow: 0 0 32px rgba(0, 243, 255, 0.75) !important;
    transform: translateY(-1px) !important;
}
.swal2-confirm:active {
    transform: scale(0.96) !important;
}

/* Botão Cancelar / Negar (Dark Glass com Hover Magenta) */
.swal2-cancel,
.swal2-deny {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #e2e8f0 !important;
    font-weight: 700 !important;
    font-size: 0.825rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: 14px !important;
    padding: 12px 24px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.swal2-cancel:hover,
.swal2-deny:hover {
    background: rgba(255, 0, 85, 0.16) !important;
    border-color: rgba(255, 0, 85, 0.5) !important;
    color: #ff5577 !important;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.35) !important;
    transform: translateY(-1px) !important;
}
.swal2-cancel:active,
.swal2-deny:active {
    transform: scale(0.96) !important;
}

/* Ícones Estilizados por Categoria */
/* Sucesso (Verde Neon) */
.swal2-icon.swal2-success {
    border-color: #00ff66 !important;
    color: #00ff66 !important;
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.35) !important;
}
.swal2-icon.swal2-success .swal2-success-line-tip,
.swal2-icon.swal2-success .swal2-success-line-long {
    background-color: #00ff66 !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
    border: 4px solid rgba(0, 255, 102, 0.4) !important;
}
.swal2-icon.swal2-success [class^='swal2-success-circular-line'] {
    background: transparent !important;
}
.swal2-icon.swal2-success .swal2-success-fix {
    background: transparent !important;
}

/* Erro (Magenta / Red Neon) */
.swal2-icon.swal2-error {
    border-color: #ff0055 !important;
    color: #ff0055 !important;
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.35) !important;
}
.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ff0055 !important;
}

/* Aviso (Amarelo / Âmbar Neon) */
.swal2-icon.swal2-warning {
    border-color: #ffbe0b !important;
    color: #ffbe0b !important;
    box-shadow: 0 0 30px rgba(255, 190, 11, 0.35) !important;
}

/* Informação (Cyan Neon) */
.swal2-icon.swal2-info {
    border-color: #00f3ff !important;
    color: #00f3ff !important;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.35) !important;
}

/* Pergunta (Purple Neon) */
.swal2-icon.swal2-question {
    border-color: #9d00ff !important;
    color: #9d00ff !important;
    box-shadow: 0 0 30px rgba(157, 0, 255, 0.35) !important;
}

/* Campos de Entrada no SweetAlert */
.swal2-input,
.swal2-textarea,
.swal2-select {
    background: rgba(16, 20, 32, 0.85) !important;
    border: 1px solid rgba(0, 243, 255, 0.3) !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    font-family: inherit !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
}
.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus {
    border-color: #00f3ff !important;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4) !important;
    outline: none !important;
}

/* ==========================================================================
   SWEETALERT2 TOASTS CYBERPUNK (PADRONIZAÇÃO GLOBAL DE NOTIFICAÇÕES)
   ========================================================================== */

/* Container de Toast Transparente e Sem Bloqueio (Apenas quando for Toast) */
body.swal2-toast-shown .swal2-container {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 99999 !important;
    pointer-events: none !important;
}

body.swal2-toast-shown .swal2-container .swal2-popup.swal2-toast,
body.swal2-toast-shown .swal2-popup.swal2-toast,
.swal2-popup.swal2-toast,
.swal2-toast {
    pointer-events: auto !important;
    background: rgba(10, 11, 16, 0.96) !important;
    background-color: rgba(10, 11, 16, 0.96) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(0, 243, 255, 0.45) !important;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.25), 0 12px 40px rgba(0, 0, 0, 0.9) !important;
    border-radius: 18px !important;
    padding: 12px 18px !important;
    color: #ffffff !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Toast Title */
body.swal2-toast-shown .swal2-container .swal2-popup.swal2-toast .swal2-title,
body.swal2-toast-shown .swal2-popup.swal2-toast .swal2-title,
.swal2-popup.swal2-toast .swal2-title,
.swal2-toast .swal2-title {
    color: #ffffff !important;
    font-family: var(--font-cyber), 'Rajdhani', -apple-system, sans-serif !important;
    font-size: 0.925rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

/* Toast Body/HTML Text */
body.swal2-toast-shown .swal2-container .swal2-popup.swal2-toast .swal2-html-container,
body.swal2-toast-shown .swal2-popup.swal2-toast .swal2-html-container,
.swal2-popup.swal2-toast .swal2-html-container,
.swal2-toast .swal2-html-container {
    color: #cbd5e1 !important;
    font-size: 0.825rem !important;
    margin: 4px 0 0 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

/* Toast Timer Progress Bar Cyber Gradient */
body.swal2-toast-shown .swal2-container .swal2-popup.swal2-toast .swal2-timer-progress-bar,
body.swal2-toast-shown .swal2-popup.swal2-toast .swal2-timer-progress-bar,
.swal2-popup.swal2-toast .swal2-timer-progress-bar,
.swal2-toast .swal2-timer-progress-bar {
    background: linear-gradient(90deg, #00f3ff, #9d00ff, #00ff66) !important;
    height: 3px !important;
    border-radius: 0 0 18px 18px !important;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.6) !important;
}

/* Toast Close Button */
body.swal2-toast-shown .swal2-container .swal2-popup.swal2-toast .swal2-close,
.swal2-popup.swal2-toast .swal2-close {
    color: #00f3ff !important;
    font-size: 1.25rem !important;
    transition: all 0.2s ease !important;
}
body.swal2-toast-shown .swal2-container .swal2-popup.swal2-toast .swal2-close:hover,
.swal2-popup.swal2-toast .swal2-close:hover {
    color: #ff0055 !important;
    transform: scale(1.15) !important;
}

/* Toast Icons Neon Styling */
body.swal2-toast-shown .swal2-container .swal2-popup.swal2-toast .swal2-icon,
.swal2-popup.swal2-toast .swal2-icon,
.swal2-toast .swal2-icon {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    margin: 0 10px 0 0 !important;
    border-width: 2px !important;
}

body.swal2-toast-shown .swal2-container .swal2-popup.swal2-toast .swal2-icon.swal2-success,
.swal2-popup.swal2-toast .swal2-icon.swal2-success {
    border-color: #00ff66 !important;
    color: #00ff66 !important;
    box-shadow: 0 0 14px rgba(0, 255, 102, 0.5) !important;
}
body.swal2-toast-shown .swal2-container .swal2-popup.swal2-toast .swal2-icon.swal2-warning,
.swal2-popup.swal2-toast .swal2-icon.swal2-warning {
    border-color: #ffbe0b !important;
    color: #ffbe0b !important;
    box-shadow: 0 0 14px rgba(255, 190, 11, 0.5) !important;
}
body.swal2-toast-shown .swal2-container .swal2-popup.swal2-toast .swal2-icon.swal2-error,
.swal2-popup.swal2-toast .swal2-icon.swal2-error {
    border-color: #ff0055 !important;
    color: #ff0055 !important;
    box-shadow: 0 0 14px rgba(255, 0, 85, 0.5) !important;
}
body.swal2-toast-shown .swal2-container .swal2-popup.swal2-toast .swal2-icon.swal2-info,
.swal2-popup.swal2-toast .swal2-icon.swal2-info {
    border-color: #00f3ff !important;
    color: #00f3ff !important;
    box-shadow: 0 0 14px rgba(0, 243, 255, 0.5) !important;
}
body.swal2-toast-shown .swal2-container .swal2-popup.swal2-toast .swal2-icon.swal2-question,
.swal2-popup.swal2-toast .swal2-icon.swal2-question {
    border-color: #9d00ff !important;
    color: #9d00ff !important;
    box-shadow: 0 0 14px rgba(157, 0, 255, 0.5) !important;
}

/* ==========================================================================
   MODAIS HTML / BOOTSTRAP E CAIXAS DE ALERTA NATIVAS
   ========================================================================== */

/* Modal HTML/Bootstrap */
.modal-content {
    background: rgba(10, 11, 16, 0.94) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(0, 243, 255, 0.3) !important;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.2), 0 25px 65px rgba(0, 0, 0, 0.9) !important;
    border-radius: 24px !important;
    color: #e2e8f0 !important;
}
.modal-header {
    border-bottom: 1px solid rgba(0, 243, 255, 0.15) !important;
}
.modal-footer {
    border-top: 1px solid rgba(0, 243, 255, 0.15) !important;
}

/* Caixas de Alerta Padrão (.alert) com Borda Luminescente */
.alert {
    background: rgba(16, 20, 32, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left-width: 4px !important;
    padding: 14px 18px !important;
}
.alert-success {
    border-left-color: #00ff66 !important;
    box-shadow: 0 0 22px rgba(0, 255, 102, 0.15) !important;
    color: #a7f3d0 !important;
}
.alert-danger {
    border-left-color: #ff0055 !important;
    box-shadow: 0 0 22px rgba(255, 0, 85, 0.15) !important;
    color: #fecdd3 !important;
}
.alert-warning {
    border-left-color: #ffbe0b !important;
    box-shadow: 0 0 22px rgba(255, 190, 11, 0.15) !important;
    color: #fef08a !important;
}
.alert-info {
    border-left-color: #00f3ff !important;
    box-shadow: 0 0 22px rgba(0, 243, 255, 0.15) !important;
    color: #bae6fd !important;
}

/* ==========================================================================
   UTILIDADES CONSOLIDADAS (ex-inline CSS)
   ========================================================================== */

/* Máscara de segurança para campos PIN (substitui style="-webkit-text-security: disc") */
.cyber-pin-mask {
    -webkit-text-security: disc;
    -moz-text-security: disc;
    text-security: disc;
}

/* Container invisível para honeypot anti-bot (substitui style inline) */
.sr-honeypot {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    pointer-events: none;
}

/* Alvo de toque mínimo (WCAG 2.5.8 — 44×44px recomendado, usamos 48×48px) */
.touch-target {
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   GLASSMORPHISM DARK THEME PARA VIEWS INTERNAS
   (my_rides, my_bookings, profile — migração do tema claro)
   ========================================================================== */

.cyber-page-card {
    background: linear-gradient(135deg, rgba(24, 27, 48, 0.75) 0%, rgba(18, 21, 38, 0.85) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 243, 255, 0.12);
    border-radius: 1.25rem;
    color: #e2e8f0;
}

.cyber-page-card-hover:hover {
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 8px 28px rgba(0, 243, 255, 0.1);
}

.cyber-section-header {
    color: var(--neon-cyan);
    font-family: var(--font-cyber);
    text-shadow: 0 0 6px rgba(0, 243, 255, 0.4);
}

.cyber-btn-approve {
    background: linear-gradient(135deg, #00ff66 0%, #00cc52 100%);
    color: #0a0b10;
    font-weight: 800;
    border: none;
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.3);
}
.cyber-btn-approve:hover {
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.5);
}

.cyber-btn-reject {
    background: linear-gradient(135deg, #ff0055 0%, #cc0044 100%);
    color: #ffffff;
    font-weight: 800;
    border: none;
    box-shadow: 0 0 12px rgba(255, 0, 85, 0.3);
}
.cyber-btn-reject:hover {
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
}

.cyber-badge-pending {
    background: rgba(255, 184, 0, 0.15);
    color: var(--neon-amber);
    border: 1px solid rgba(255, 184, 0, 0.35);
}

.cyber-badge-confirmed {
    background: rgba(0, 255, 102, 0.12);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 102, 0.35);
}

.cyber-badge-paid {
    background: rgba(0, 243, 255, 0.12);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 243, 255, 0.35);
}

.cyber-text-muted {
    color: #64748b;
}

.cyber-text-secondary {
    color: #94a3b8;
}

/* Barra de notificação estática segura (substitui triggerVisualAlert piscante) */
.cyber-notification-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #ff0055 0%, #ff6600 100%);
    color: #ffffff;
    text-align: center;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 20px rgba(255, 0, 85, 0.4);
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
}

.cyber-notification-bar.visible {
    transform: translateY(0);
}

/* ==========================================================================
   SMART SEARCH AUTOCOMPLETE DROPDOWN & ROUTE MATCHING
   ========================================================================== */
#search-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(10, 11, 16, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(0, 243, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 243, 255, 0.2);
    border-radius: 1.25rem;
    overflow: hidden;
    animation: fadeInDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.autocomplete-section-header {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7ee7f8;
    padding: 0.6rem 0.9rem 0.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.autocomplete-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.9rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: #e2e8f0;
    transition: background-color 0.15s ease, color 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover, .autocomplete-item:focus {
    background: rgba(0, 243, 255, 0.1);
    color: #ffffff;
}

.autocomplete-item:active {
    background: rgba(0, 243, 255, 0.18);
}

/* Destaque Visual de Correspondência de Waypoint (Parada Intermediária) */
.waypoint-match {
    background: rgba(0, 243, 255, 0.14) !important;
    border: 1px solid rgba(0, 243, 255, 0.6) !important;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.35), inset 0 0 10px rgba(0, 243, 255, 0.15) !important;
    border-radius: 0.65rem;
    padding: 0.25rem 0.55rem;
    transition: all 0.3s ease;
    animation: pulseWaypointGlow 2.5s infinite alternate;
}

.waypoint-match .waypoint-dot {
    background: #00ff66 !important;
    box-shadow: 0 0 8px #00ff66 !important;
    transform: scale(1.3);
}

.waypoint-match .waypoint-text {
    color: #00f3ff !important;
    font-weight: 800 !important;
}

@keyframes pulseWaypointGlow {
    0% {
        box-shadow: 0 0 8px rgba(0, 243, 255, 0.3);
        border-color: rgba(0, 243, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 18px rgba(0, 255, 102, 0.45);
        border-color: rgba(0, 255, 102, 0.7);
    }
}

/* Marcador Holográfico: Ponto de Embarque no Mapa (Ancorado com Precisão GPS) */
.map-boarding-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 40;
    pointer-events: auto;
    filter: drop-shadow(0 0 14px rgba(0, 243, 255, 0.85));
    user-select: none;
}

.map-boarding-badge {
    background: rgba(10, 11, 16, 0.96);
    border: 1.5px solid #00f3ff;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6), inset 0 0 10px rgba(0, 243, 255, 0.15);
    white-space: nowrap;
    position: relative;
    z-index: 3;
}

/* Haste / Laser vertical conectando o badge ao chão */
.map-boarding-stem {
    width: 2px;
    height: 14px;
    background: linear-gradient(to bottom, #00f3ff, rgba(0, 255, 102, 0.8));
    box-shadow: 0 0 6px #00f3ff;
    position: relative;
    z-index: 2;
}

/* Ponto de ancoragem no chão com pulso de sonar */
.map-boarding-ground {
    position: relative;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.map-boarding-dot {
    width: 8px;
    height: 8px;
    background: #00ff66;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff66, 0 0 18px #00ff66;
    position: relative;
    z-index: 2;
}

.map-boarding-pulse {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #00f3ff;
    animation: boardingSonarPulse 2s infinite cubic-bezier(0, 0.2, 0.8, 1);
    pointer-events: none;
}

@keyframes boardingSonarPulse {
    0% {
        transform: scale(0.35);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* ==========================================================================
   BILHETE DIGITAL — CYBERPUNK TICKET DESIGN SYSTEM
   ========================================================================== */

/* Card Principal do Bilhete (Estilo Ticket de Embarque) */
.ticket-card {
    background: #0d111a;
    border: 1px solid rgba(0, 243, 255, 0.35);
    border-radius: 2rem;
    position: relative;
    overflow: visible;
    box-shadow:
        0 0 25px rgba(0, 243, 255, 0.12),
        0 12px 40px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.ticket-card:hover {
    border-color: rgba(0, 243, 255, 0.55);
    box-shadow:
        0 0 35px rgba(0, 243, 255, 0.2),
        0 16px 50px rgba(0, 0, 0, 0.6);
}

/* Recortes Semicirculares nas Laterais (Estilo Boarding Pass) */
.ticket-card::before,
.ticket-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bg-cyber-dark, #0a0b10);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.ticket-card::before {
    left: -10px;
    box-shadow: inset -3px 0 8px rgba(0, 243, 255, 0.2);
}

.ticket-card::after {
    right: -10px;
    box-shadow: inset 3px 0 8px rgba(0, 243, 255, 0.2);
}

/* Timeline Route Dots */
.ticket-route-dot-origin {
    width: 14px;
    height: 14px;
    background: #00ff66;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.7), 0 0 24px rgba(0, 255, 102, 0.3);
    flex-shrink: 0;
}

.ticket-route-dot-destination {
    width: 14px;
    height: 14px;
    background: #d946ef;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 12px rgba(217, 70, 239, 0.7), 0 0 24px rgba(217, 70, 239, 0.3);
    flex-shrink: 0;
}

.ticket-route-dot-waypoint {
    width: 8px;
    height: 8px;
    background: rgba(148, 163, 184, 0.5);
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Linha Vertical da Rota (Gradiente Verde → Roxo) */
.ticket-route-line {
    position: absolute;
    left: 6px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(0, 255, 102, 0.6), rgba(148, 163, 184, 0.3), rgba(217, 70, 239, 0.6));
    border-radius: 2px;
}

/* Badge de Status (Informativo, SEM aparência de botão) */
.ticket-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    pointer-events: none;
    user-select: none;
}

.ticket-status-badge--pending {
    background: rgba(250, 204, 21, 0.08);
    border: 1.5px dashed rgba(250, 204, 21, 0.4);
    color: #facc15;
}

.ticket-status-badge--confirmed {
    background: rgba(0, 255, 102, 0.08);
    border: 1.5px solid rgba(0, 255, 102, 0.35);
    color: #00ff66;
}

.ticket-status-badge--paid {
    background: rgba(0, 243, 255, 0.08);
    border: 1.5px solid rgba(0, 243, 255, 0.35);
    color: #00f3ff;
}

/* Tag do Veículo / Placa */
.ticket-vehicle-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(15, 18, 30, 0.9);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    font-size: 0.7rem;
    color: #94a3b8;
    backdrop-filter: blur(8px);
}

.ticket-vehicle-tag .plate {
    font-family: 'Rajdhani', 'Orbitron', monospace;
    font-weight: 800;
    color: #00f3ff;
    letter-spacing: 0.08em;
    text-shadow: 0 0 6px rgba(0, 243, 255, 0.4);
}

/* Botão WhatsApp com Label */
.ticket-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #22c55e;
    color: #ffffff;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ticket-wa-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.5);
    color: #ffffff;
}

.ticket-wa-btn i {
    font-size: 1.1rem;
}

/* Botão Cancelar Reserva — Contraste Vermelho Neon */
.ticket-cancel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 0, 85, 0.08);
    border: 1px solid rgba(255, 0, 85, 0.25);
    border-radius: 12px;
    color: #ff5577;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-cancel-btn:hover {
    background: rgba(255, 0, 85, 0.15);
    border-color: rgba(255, 0, 85, 0.5);
    color: #ff3366;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.2);
}

/* Seção QR Code de Verificação */
.ticket-qr-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(10, 11, 16, 0.6);
    border-top: 1px dashed rgba(0, 243, 255, 0.15);
    border-radius: 0 0 2rem 2rem;
}

.ticket-qr-section img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    image-rendering: pixelated;
}

.ticket-qr-section .ticket-qr-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    line-height: 1.4;
}

/* Prevenir auto-zoom no iOS Safari em inputs e garantir foco acessível */
@media (max-width: 768px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    select,
    textarea {
        font-size: 16px !important;
    }
}

:where(button, a, input, select, textarea, [role="button"]):focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

.ticket-qr-section .ticket-qr-code {
    font-family: 'Rajdhani', 'Orbitron', monospace;
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(0, 243, 255, 0.5);
    letter-spacing: 0.15em;
}

/* Seção de Rota dentro do Bilhete */
.ticket-route-container {
    background: rgba(18, 21, 38, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.12);
    border-radius: 1rem;
    padding: 20px;
}

.ticket-route-stop {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
}

.ticket-route-stop .stop-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
    line-height: 1;
}

.ticket-route-stop .stop-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.15);
    transition: color 0.2s ease;
    display: block;
}

.ticket-route-stop .stop-name:hover {
    color: #00f3ff;
    text-decoration-color: rgba(0, 243, 255, 0.3);
}

/* Ações Secundárias com Rótulo (Labeled Action Pattern) */
.ticket-action-labeled {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: transform 0.15s ease;
}

.ticket-action-labeled:hover {
    transform: translateY(-2px);
}

.ticket-action-labeled:active {
    transform: scale(0.95);
}

.ticket-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid;
    transition: all 0.2s ease;
}

.ticket-action-labeled:hover .ticket-action-icon {
    filter: brightness(1.3);
    box-shadow: 0 0 12px currentColor;
}

.ticket-action-text {
    font-size: 0.6rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Ticket vehicle tag overflow fix */
.ticket-vehicle-tag {
    max-width: 100%;
    overflow: hidden;
}

/* Native Dark-Mode Date & Time Picker Icons */
input[type="time"],
input[type="date"],
input[type="datetime-local"] {
    color-scheme: dark;
}
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(0.9) sepia(0.3) saturate(3) hue-rotate(155deg);
    opacity: 0.85;
    cursor: pointer;
}
