/* --- ESTILOS GERAIS (Flash Vip - Premium Responsive) --- */
:root { 
    --bg-page: #0F0F13; 
    --bg-card: #15151A; 
    --primary: #2563EB; 
    --primary-hover: #1E40AF; 
    --accent: #D4AF37; /* Dourado Premium */
    --silver: #C0C0C0; 
    --text-main: #FFFFFF; 
    --text-muted: #94A3B8; 
    --success: #10B981; 
    --danger: #EF4444; 
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; -webkit-tap-highlight-color: transparent; }
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-page); 
    color: var(--text-main); 
    min-height: 100vh; 
    display: flex; flex-direction: column;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
.hidden { display: none !important; }

/* HEADER */
header { 
    padding: 15px 5%; 
    display: flex; justify-content: space-between; align-items: center; 
    background: rgba(15,15,19,0.95); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05); 
    width: 100%;
}
.brand img { height: 35px; width: auto; }

.auth-btn { 
    background: transparent; border: 1px solid #444; color: white; 
    padding: 8px 15px; border-radius: 6px; cursor: pointer; 
    display: flex; align-items: center; gap: 8px; font-weight: 600; 
    font-size: 0.9rem; transition: 0.2s; white-space: nowrap;
}
.auth-btn:hover { border-color: var(--primary); color: var(--primary); }

.user-logged-area { display: none; align-items: center; gap: 10px; }
.avatar { width: 35px; height: 35px; background: var(--primary); border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 1px solid var(--accent); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
#user-name { font-size: 0.9rem; max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }

/* BOTÕES DE NAVEGAÇÃO DO HEADER */
.btn-icon-nav {
    background: transparent; border: 1px solid #333; color: white;
    width: 35px; height: 35px; border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center; cursor: pointer;
    transition: 0.2s;
}
.btn-icon-nav:hover { border-color: var(--accent); color: var(--accent); }

/* HERO SECTION */
.hero-vitrine { 
    background: linear-gradient(rgba(0,0,0,0.7), var(--bg-page)), url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?q=80&w=1920&auto=format&fit=crop'); 
    background-size: cover; background-position: center; 
    padding: 60px 20px 100px 20px; 
    text-align: center; 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.hero-title { font-size: 2.5rem; margin-bottom: 15px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.8); line-height: 1.1; }
.hero-subtitle { color: #ccc; font-size: 1rem; margin-bottom: 40px; max-width: 600px; text-shadow: 0 2px 5px rgba(0,0,0,0.8); line-height: 1.5; }

/* BARRA DE BUSCA */
.search-bar-container { 
    background: rgba(20, 20, 25, 0.95); padding: 20px; 
    border-radius: 12px; display: flex; gap: 15px; 
    width: 100%; max-width: 900px; 
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    flex-wrap: wrap; align-items: flex-end; margin-bottom: 20px;
}

.search-group { flex: 1; min-width: 200px; text-align: left; }
.search-group label { display: block; font-size: 0.75rem; color: #888; margin-bottom: 8px; text-transform: uppercase; font-weight: bold; letter-spacing: 1px; }
.search-input { 
    width: 100%; padding: 12px; background: #0b0b0e; 
    border: 1px solid #333; border-radius: 8px; 
    color: white; font-size: 1rem; height: 48px;
}
.btn-search { 
    background: var(--primary); color: white; border: none; 
    padding: 0 30px; height: 48px; border-radius: 8px; 
    font-weight: bold; cursor: pointer; transition: 0.2s; 
}
.btn-search:hover { background: var(--primary-hover); transform: translateY(-2px); }

.btn-ofertar-outline {
    margin-top: 20px; background: transparent; border: 1px solid var(--accent); 
    color: var(--accent); padding: 12px 25px; border-radius: 6px; 
    font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s ease;
}
.btn-ofertar-outline:hover { background: rgba(212, 175, 55, 0.1); color: white; border-color: white; }

/* MURAL DE OPORTUNIDADES (MOTORISTA) */
.feed-container { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }

.ride-card {
    background: #1A1A20; border-radius: 8px; padding: 20px;
    position: relative; border: 1px solid #333; transition: transform 0.2s;
    border-left: 4px solid var(--primary);
}
.ride-card:hover { transform: translateY(-2px); border-color: #555; }

.ride-header { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 0.85rem; color: #aaa; }
.ride-status { font-weight: bold; padding: 2px 8px; border-radius: 4px; background: #333; color: white; }
.status-disponivel { background: var(--success); }

.ride-body { margin-bottom: 20px; }
.ride-route { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px; }
.route-point { font-size: 1rem; color: white; font-weight: 500; }
.route-line { height: 20px; border-left: 2px dashed #444; margin-left: 9px; }

.ride-info { display: flex; gap: 15px; font-size: 0.9rem; color: var(--accent); font-weight: 600; }

.ride-footer { display: flex; justify-content: flex-end; }
.btn-accept {
    background: var(--primary); color: white; border: none;
    padding: 10px 20px; border-radius: 6px; font-weight: bold; cursor: pointer;
}
.btn-accept:hover { background: var(--primary-hover); }

.btn-toggle {
    background: #222; border: 1px solid #444; color: #888;
    padding: 6px 12px; border-radius: 4px; cursor: pointer; margin-right: 5px;
}
.btn-toggle.active {
    background: var(--accent); color: black; border-color: var(--accent); font-weight: bold;
}

/* VITRINE & CARDS */
.vitrine-container { max-width: 1200px; margin: 0 auto; padding: 40px 5%; }
.section-title { 
    font-size: 1.5rem; margin-bottom: 25px; 
    border-left: 4px solid var(--primary); padding-left: 15px; 
    font-weight: 700; color: white;
}
.vitrine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; width: 100%; }

.driver-card { 
    background: var(--bg-card); border-radius: 12px; overflow: hidden; 
    border: 1px solid #282830; transition: transform 0.2s; 
    display: flex; flex-direction: column;
}
.driver-card:hover { transform: translateY(-5px); border-color: #444; }

.card-header { height: 160px; position: relative; background: #000; }
.profile-pic { 
    width: 80px; height: 80px; border-radius: 50%; 
    border: 4px solid var(--bg-card); position: absolute; bottom: -40px; left: 20px; 
    object-fit: cover; background: #333; z-index: 5; 
}

.badge-tier { 
    position: absolute; top: 10px; right: 10px; 
    padding: 6px 12px; border-radius: 6px; 
    font-size: 0.7rem; font-weight: 900; text-transform: uppercase; 
    color: #000; z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.tier-bronze { background: #CD7F32; color: white; }
.tier-prata { background: linear-gradient(135deg, #E0E0E0, #F5F5F5); }
.tier-ouro { background: linear-gradient(135deg, #FFD700, #FDB931); }
.tier-diamante { background: linear-gradient(135deg, #B9F2FF, #A0E6FF); }

.card-body { padding: 50px 20px 20px 20px; flex: 1; }
.driver-name { font-size: 1.1rem; font-weight: bold; margin-bottom: 5px; color: white; }
.driver-location { display: flex; align-items: center; gap: 5px; color: #888; font-size: 0.85rem; margin-bottom: 10px; }
.elite-score { font-size: 0.8rem; color: var(--accent); font-weight: bold; margin-top: 5px; }

.card-footer { 
    padding: 15px 20px; background: rgba(0,0,0,0.2); border-top: 1px solid rgba(255,255,255,0.05); 
    display: flex; justify-content: space-between; align-items: center; 
}
.btn-contact { 
    background: var(--success); color: white; border: none; 
    padding: 10px 16px; border-radius: 6px; font-weight: 600; font-size: 0.85rem; 
    cursor: pointer; display: flex; align-items: center; gap: 6px; text-decoration: none;
    transition: 0.2s; width: 100%; justify-content: center;
}
.btn-contact:hover { opacity: 0.9; }

/* MODAIS & FORMULÁRIOS */
.fullscreen-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.9); z-index: 2000; 
    display: flex; align-items: center; justify-content: center; 
    padding: 15px; backdrop-filter: blur(5px); animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.modal-box { 
    background: #15151A; width: 100%; max-width: 550px; 
    padding: 30px; border-radius: 16px; border: 1px solid #333; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9); 
    position: relative; max-height: 90vh; overflow-y: auto; 
}
.modal-box h2 { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.modal-box p { color: #9CA3AF; margin-bottom: 25px; font-size: 0.9rem; }

label { display: block; color: #D1D5DB; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; margin-top: 15px; text-transform: uppercase; }
.b-input, .b-select { 
    width: 100%; padding: 12px 15px; background: #1F2937; 
    border: 1px solid #374151; border-radius: 8px; color: white; 
    font-size: 1rem; transition: 0.2s; margin-bottom: 5px;
}
.b-input:focus, .b-select:focus { border-color: var(--primary); background: #111827; }

.section-divider { margin-top: 20px; margin-bottom: 10px; color: var(--accent); font-size: 0.9rem; font-weight: bold; border-bottom: 1px solid #333; padding-bottom: 5px; }

.btn-action { 
    width: 100%; padding: 15px; background: var(--primary); color: white; 
    border: none; border-radius: 8px; font-weight: 800; font-size: 1rem; 
    cursor: pointer; margin-top: 25px; text-transform: uppercase; letter-spacing: 1px;
}
.btn-action:hover { background: var(--primary-hover); }
.btn-action:disabled { background: #555; cursor: not-allowed; }

.btn-outline {
    background: transparent; border: 1px solid #555; color: #ccc;
    padding: 15px; border-radius: 8px; font-weight: 600; cursor: pointer;
    text-transform: uppercase;
}
.btn-outline:hover { border-color: white; color: white; }

/* UPLOAD BOX */
.upload-grid-secured { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.upload-box { 
    background: #1F2937; border: 1px dashed #555; border-radius: 8px; 
    height: 100px; display: flex; flex-direction: column; 
    align-items: center; justify-content: center; cursor: pointer; 
    transition: 0.2s; color: #aaa; text-align: center; padding: 10px;
}
.upload-box:hover { border-color: var(--accent); color: white; }
.upload-box i { margin-bottom: 5px; }
.upload-box span { font-size: 0.75rem; }

/* RESPONSIVIDADE */
@media (max-width: 600px) {
    .modal-box { padding: 20px; width: 95%; }
    .search-bar-container { flex-direction: column; align-items: stretch; }
    .btn-search { width: 100%; margin-top: 10px; }
}

/* GOOGLE MAPS AUTOCOMPLETE STYLE */
.pac-container { background-color: #15151A; border: 1px solid #333; z-index: 10000; font-family: 'Inter', sans-serif; }
.pac-item { border-top: 1px solid #333; color: #ccc; padding: 10px; cursor: pointer; }
.pac-item:hover { background-color: #2563EB; color: white; }
.pac-item-query { color: white; font-weight: bold; }